From ba2d2a1f5d53be2b05633d632b1e1fef07e5593f Mon Sep 17 00:00:00 2001 From: barbeau Date: Tue, 27 Oct 2015 18:10:54 -0400 Subject: [PATCH] Fix #340 - Add About Activity Also update the Contributors.md file --- CONTRIBUTORS.md | 6 +- .../src/main/AndroidManifest.xml | 10 +++ .../onebusaway/android/ui/AboutActivity.java | 77 +++++++++++++++++++ .../android/ui/PreferencesActivity.java | 10 +++ .../src/main/res/layout/activity_about.xml | 38 +++++++++ .../src/main/res/layout/content_about.xml | 19 +++++ .../src/main/res/values-v21/styles.xml | 9 +++ .../src/main/res/values/dimens.xml | 4 + .../src/main/res/values/donottranslate.xml | 2 + .../src/main/res/values/strings.xml | 38 +++++++++ .../src/main/res/values/styles.xml | 7 ++ .../src/main/res/xml/preferences.xml | 4 + 12 files changed, 222 insertions(+), 2 deletions(-) create mode 100644 onebusaway-android/src/main/java/org/onebusaway/android/ui/AboutActivity.java create mode 100644 onebusaway-android/src/main/res/layout/activity_about.xml create mode 100644 onebusaway-android/src/main/res/layout/content_about.xml create mode 100644 onebusaway-android/src/main/res/values-v21/styles.xml diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 499077ea8..89664a86c 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -5,5 +5,7 @@ We'd like to thank the following developers who have contributed to OneBusAway A * Daniel Welsh * Arno Hart (ahart@skuzme.com) * Sean Barbeau (sjbarbeau@gmail.com) - -The bus stop marker was adapted from the Map Marker designed by Venkatesh Aiyulu from the thenounproject.com \ No newline at end of file +* Ari Rusakko +* Ben Du +* Cagri Cetin +* Mike Karabushin \ No newline at end of file diff --git a/onebusaway-android/src/main/AndroidManifest.xml b/onebusaway-android/src/main/AndroidManifest.xml index ca4e59edf..881811cfb 100644 --- a/onebusaway-android/src/main/AndroidManifest.xml +++ b/onebusaway-android/src/main/AndroidManifest.xml @@ -195,6 +195,16 @@ + + + + + + + + + + + + + + + + + + diff --git a/onebusaway-android/src/main/res/layout/content_about.xml b/onebusaway-android/src/main/res/layout/content_about.xml new file mode 100644 index 000000000..b9ce2228d --- /dev/null +++ b/onebusaway-android/src/main/res/layout/content_about.xml @@ -0,0 +1,19 @@ + + + + + + diff --git a/onebusaway-android/src/main/res/values-v21/styles.xml b/onebusaway-android/src/main/res/values-v21/styles.xml new file mode 100644 index 000000000..fac2bd540 --- /dev/null +++ b/onebusaway-android/src/main/res/values-v21/styles.xml @@ -0,0 +1,9 @@ + + + + diff --git a/onebusaway-android/src/main/res/values/dimens.xml b/onebusaway-android/src/main/res/values/dimens.xml index bf6c4e7bc..f748b8548 100644 --- a/onebusaway-android/src/main/res/values/dimens.xml +++ b/onebusaway-android/src/main/res/values/dimens.xml @@ -78,4 +78,8 @@ 5dp 16dp + + + 180dp + 16dp diff --git a/onebusaway-android/src/main/res/values/donottranslate.xml b/onebusaway-android/src/main/res/values/donottranslate.xml index 86122f26f..be8734b8a 100644 --- a/onebusaway-android/src/main/res/values/donottranslate.xml +++ b/onebusaway-android/src/main/res/values/donottranslate.xml @@ -29,6 +29,7 @@ preference_google_analytics preference_donate preference_powered_by_oba + preference_about preference_preferred_units preference_arrival_info_style preference_show_negative_arrivals @@ -81,6 +82,7 @@ Clicked Settings Link Clicked Donate Link Clicked Powered By Oba Link + Clicked About Clicked Help Link Clicked Email Link Loaded StopInfo from\u0020 diff --git a/onebusaway-android/src/main/res/values/strings.xml b/onebusaway-android/src/main/res/values/strings.xml index 6a9efa725..d4fb154cb 100644 --- a/onebusaway-android/src/main/res/values/strings.xml +++ b/onebusaway-android/src/main/res/values/strings.xml @@ -473,6 +473,8 @@ Powered by OneBusAway Find out more about the open-source project + About + Version, contributor, and license information ft mi @@ -498,4 +500,40 @@ Data updated %1$d sec ago Data updated %1$d min %2$d sec ago Position calculated from schedule + + + About + + "Find out more about the OneBusAway open-source project at http://onebusaway.org.\n\n" + + "*** Code ***\n\n" + + "We'd like to thank the following developers who have contributed to OneBusAway + Android:\n\n" + + "* Paul Watts\n" + "* Brian Ferris\n" + "* Daniel Welsh\n" + "* Arno Hart\n" + "* Sean Barbeau\n" + "* Ari Rusakko\n" + "* Ben Du\n" + "* Cagri Cetin\n" + "* Mike Karabushin\n\n" + + "Want to contribute to this app? Check it out on Github at + https://github.com/OneBusAway/onebusaway-android.\n\n" + + "*** Images ***\n\n" + + "Thanks to the designers who created images used in the vehicle icons, which were uploaded " + "to the Noun Project under CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/us/):\n\n" + + "* Arrow by Zlatko Najdenovski, MK\n" + "* Map Marker by Housin Aziz, SE\n\n" + + "Thanks to Google for the material design icons + (https://github.com/google/material-design-icons), " + "licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/).\n\n" + diff --git a/onebusaway-android/src/main/res/values/styles.xml b/onebusaway-android/src/main/res/values/styles.xml index 2c50f5f31..cd1a8abd7 100644 --- a/onebusaway-android/src/main/res/values/styles.xml +++ b/onebusaway-android/src/main/res/values/styles.xml @@ -211,4 +211,11 @@ 12sp @color/header_text_color + + +