From 21d43d7f97107a8d214c6c9fc914af2ac6738afc Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 16 Apr 2012 11:21:10 -0400 Subject: [PATCH] Added dynamic themes for slecting holo were avaiable fixed the button bars in the map fragment, and parking timer to use android's button bar styles Change-Id: I63e1d2a07f6d13964616f23cc3772dd99437bbee Signed-off-by: Ricky Barrette --- FindMyCarFull/AndroidManifest.xml | 12 +- FindMyCarLib/res/layout/map_buttons.xml | 113 ++++++------------ .../res/layout/parkingtimer_layout.xml | 19 ++- FindMyCarLib/res/values-v11/theme.xml | 10 ++ FindMyCarLib/res/values/theme.xml | 8 +- FindMyCarLite/AndroidManifest.xml | 12 +- 6 files changed, 70 insertions(+), 104 deletions(-) create mode 100644 FindMyCarLib/res/values-v11/theme.xml diff --git a/FindMyCarFull/AndroidManifest.xml b/FindMyCarFull/AndroidManifest.xml index a93fb3e..23ddf43 100644 --- a/FindMyCarFull/AndroidManifest.xml +++ b/FindMyCarFull/AndroidManifest.xml @@ -1,7 +1,7 @@ @@ -27,14 +27,14 @@ + android:label="@string/app_name" + android:theme="@style/MyTheme" > @@ -54,9 +54,7 @@ android:name="com.TwentyCodes.android.FindMyCarLib.ParkingTimerService" android:process=":parkingtimer" /> - + @@ -65,7 +63,7 @@ android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> + android:theme="@style/MyDialogTheme" /> diff --git a/FindMyCarLib/res/layout/map_buttons.xml b/FindMyCarLib/res/layout/map_buttons.xml index 8314db9..4190cd1 100644 --- a/FindMyCarLib/res/layout/map_buttons.xml +++ b/FindMyCarLib/res/layout/map_buttons.xml @@ -1,94 +1,55 @@ - + android:contentDescription="@string/my_location" + android:src="@drawable/my_location_action_bar" /> - - - - + android:contentDescription="@string/mark_car" + android:src="@drawable/mark_my_location_action_bar" /> - - - - + android:contentDescription="@string/show_both" + android:src="@drawable/car_action_bar" /> - - - - + android:contentDescription="@string/parking_timer" + android:src="@drawable/time_action_bar" /> - - - - - - - + android:contentDescription="@string/directions" + android:src="@drawable/nav_action_bar" /> \ No newline at end of file diff --git a/FindMyCarLib/res/layout/parkingtimer_layout.xml b/FindMyCarLib/res/layout/parkingtimer_layout.xml index 4e5a660..3c5d792 100644 --- a/FindMyCarLib/res/layout/parkingtimer_layout.xml +++ b/FindMyCarLib/res/layout/parkingtimer_layout.xml @@ -15,7 +15,7 @@ android:orientation="horizontal" android:stretchColumns="0,2" > - +