From 1983b63ce87a55df063bce18cf0c89c7a575c445 Mon Sep 17 00:00:00 2001 From: Jimmy Shih Date: Fri, 5 Oct 2012 11:26:57 -0700 Subject: [PATCH] Add a widget configuration screen --- MyTracks/AndroidManifest.xml | 30 +- MyTracks/res/layout-v14/bottom_buttons.xml | 28 ++ MyTracks/res/layout/bottom_buttons.xml | 28 ++ MyTracks/res/layout/track_controller.xml | 2 +- MyTracks/res/layout/track_widget_config.xml | 49 ++++ MyTracks/res/layout/track_widget_large.xml | 189 +++++++------ MyTracks/res/layout/track_widget_small.xml | 15 +- MyTracks/res/values/keys.xml | 6 +- MyTracks/res/values/strings.xml | 6 + MyTracks/res/values/styles.xml | 38 ++- MyTracks/res/xml/track_widget_info.xml | 1 + .../apps/mytracks/util/PreferencesUtils.java | 5 + .../widgets/TrackWidgetConfigActivity.java | 137 +++++++++ .../mytracks/widgets/TrackWidgetProvider.java | 259 ++++++++++++------ 14 files changed, 593 insertions(+), 200 deletions(-) create mode 100644 MyTracks/res/layout-v14/bottom_buttons.xml create mode 100644 MyTracks/res/layout/bottom_buttons.xml create mode 100644 MyTracks/res/layout/track_widget_config.xml create mode 100644 MyTracks/src/com/google/android/apps/mytracks/widgets/TrackWidgetConfigActivity.java diff --git a/MyTracks/AndroidManifest.xml b/MyTracks/AndroidManifest.xml index c0ee2d7c6..a584d2ae2 100755 --- a/MyTracks/AndroidManifest.xml +++ b/MyTracks/AndroidManifest.xml @@ -19,7 +19,6 @@ limitations under the License. android:versionCode="56" android:versionName="2.0.2" package="com.google.android.maps.mytracks" > - @@ -79,7 +78,6 @@ limitations under the License. android:name="com.google.android.apps.mytracks.WRITE_TRACK_DATA" android:permissionGroup="android.permission-group.LOCATION" android:protectionLevel="dangerous" /> - @@ -115,22 +113,19 @@ limitations under the License. - - - - + - - @@ -158,8 +150,7 @@ limitations under the License. - + - @@ -181,15 +171,12 @@ limitations under the License. android:label="@string/menu_sensor_state" android:name="com.google.android.apps.mytracks.SensorStateActivity" /> - + - - @@ -215,6 +202,13 @@ limitations under the License. + + + + + - - \ No newline at end of file diff --git a/MyTracks/res/layout-v14/bottom_buttons.xml b/MyTracks/res/layout-v14/bottom_buttons.xml new file mode 100644 index 000000000..18a88de6d --- /dev/null +++ b/MyTracks/res/layout-v14/bottom_buttons.xml @@ -0,0 +1,28 @@ + + + +