Files
findmycar/FindMyCarLib/res/layout/map_buttons.xml
Ricky Barrette cd1a00ac52 Added tich delegation to the map button, to make them easier to click
Change-Id: Ia43fa2a13af68c5e81f6023a8948d4d851479f21
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
2012-03-09 10:48:05 -05:00

94 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<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"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<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"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<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"
android:layout_weight="1"
android:paddingBottom="10dip"
android:paddingTop="10dip" >
<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"
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>
</LinearLayout>