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 <rickbarrette@gmail.com>
This commit is contained in:
2012-04-16 11:21:10 -04:00
parent e5f57674fd
commit 21d43d7f97
6 changed files with 70 additions and 104 deletions

View File

@@ -1,94 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/distance_background"
android:baselineAligned="false"
android:orientation="horizontal" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageButton
android:id="@+id/my_location"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
android:contentDescription="@string/my_location"
android:src="@drawable/my_location_action_bar" />
<com.TwentyCodes.android.FindMyCarLib.UI.DelegatedImageButton
android:id="@+id/my_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/my_location_action_bar"
android:contentDescription="@string/my_location"
android:duplicateParentState="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageButton
android:id="@+id/mark_my_location"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
android:contentDescription="@string/mark_car"
android:src="@drawable/mark_my_location_action_bar" />
<com.TwentyCodes.android.FindMyCarLib.UI.DelegatedImageButton
android:id="@+id/mark_my_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/mark_my_location_action_bar"
android:contentDescription="@string/mark_car"
android:duplicateParentState="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageButton
android:id="@+id/show_both"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
android:contentDescription="@string/show_both"
android:src="@drawable/car_action_bar" />
<com.TwentyCodes.android.FindMyCarLib.UI.DelegatedImageButton
android:id="@+id/show_both"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:background="@drawable/car_action_bar"
android:duplicateParentState="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageButton
android:id="@+id/parking_timer"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
android:contentDescription="@string/parking_timer"
android:src="@drawable/time_action_bar" />
<com.TwentyCodes.android.FindMyCarLib.UI.DelegatedImageButton
android:id="@+id/parking_timer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/time_action_bar"
android:contentDescription="@string/parking_timer"
android:duplicateParentState="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageButton
android:id="@+id/directions"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<com.TwentyCodes.android.FindMyCarLib.UI.DelegatedImageButton
android:id="@+id/directions"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/nav_action_bar"
android:contentDescription="@string/directions"
android:duplicateParentState="true" />
</RelativeLayout>
android:contentDescription="@string/directions"
android:src="@drawable/nav_action_bar" />
</LinearLayout>