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:
@@ -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>
|
||||
@@ -15,7 +15,7 @@
|
||||
android:orientation="horizontal"
|
||||
android:stretchColumns="0,2" >
|
||||
|
||||
<TableRow >
|
||||
<TableRow>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -102,31 +102,28 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llButtons"
|
||||
style="?android:attr/buttonBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/notiyfyme"
|
||||
android:layout_marginTop="10dip"
|
||||
android:background="@drawable/distance_background"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/btSetTimer"
|
||||
android:layout_width="130dip"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
android:text="@string/setTimer"
|
||||
android:textSize="14dip" />
|
||||
android:text="@string/setTimer" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btRemoveTimer"
|
||||
android:layout_width="130dip"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal|center_vertical"
|
||||
android:text="@string/removeTimer"
|
||||
android:textSize="14dip" />
|
||||
android:text="@string/removeTimer" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
10
FindMyCarLib/res/values-v11/theme.xml
Normal file
10
FindMyCarLib/res/values-v11/theme.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Any customizations for your app running on devices with Theme.Holo here -->
|
||||
|
||||
<style name="MyTheme" parent="@android:style/Theme.Holo.Light.NoActionBar"></style>
|
||||
|
||||
<style name="MyDialogTheme" parent="@android:style/Theme.Holo.Dialog"></style>
|
||||
|
||||
</resources>
|
||||
@@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="MyTheme" parent="@android:style/Theme">
|
||||
<!-- Any customizations for your app running on pre-3.0 devices here -->
|
||||
</style>
|
||||
<!-- Any customizations for your app running on pre-3.0 devices here -->
|
||||
|
||||
<style name="MyTheme" parent="@android:style/Theme.Light.NoTitleBar"></style>
|
||||
|
||||
<style name="MyDialogTheme" parent="@android:style/Theme.Dialog"></style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user