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>
129 lines
4.7 KiB
XML
129 lines
4.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" >
|
|
|
|
<TableLayout
|
|
android:id="@+id/pickerlayout"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="7dip"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal"
|
|
android:stretchColumns="0,2" >
|
|
|
|
<TableRow>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="right"
|
|
android:text="@string/hours"
|
|
android:textSize="15dip"
|
|
android:textStyle="bold" />
|
|
<!-- This time picker picks the hour and minutes of the timer -->
|
|
|
|
<TimePicker
|
|
android:id="@+id/tpParkingTimerTimePicker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="left"
|
|
android:text="@string/minutes"
|
|
android:textSize="15dip"
|
|
android:textStyle="bold" />
|
|
</TableRow>
|
|
</TableLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/notiyfyme"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/pickerlayout" >
|
|
|
|
<!-- this checkbox is used to enable/disable the notification alarm -->
|
|
|
|
<CheckBox
|
|
android:id="@+id/chNotify"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_marginLeft="7dip"
|
|
android:layout_marginTop="10dip"
|
|
android:paddingLeft="7dip" />
|
|
|
|
<!-- textview to hold text after the checkbox "Notify me" -->
|
|
|
|
<TextView
|
|
android:id="@+id/tvNotify1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dip"
|
|
android:layout_toRightOf="@id/chNotify"
|
|
android:gravity="center_vertical"
|
|
android:text="@string/notify_me"
|
|
android:textStyle="bold" />
|
|
<!-- this text field will hold the value for the notifcation alarm. -->
|
|
|
|
<EditText
|
|
android:id="@+id/etNotify"
|
|
android:layout_width="50dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignTop="@id/chNotify"
|
|
android:layout_marginLeft="7dip"
|
|
android:layout_toRightOf="@id/tvNotify1"
|
|
android:gravity="right|center_horizontal"
|
|
android:phoneNumber="true"
|
|
android:singleLine="true"
|
|
android:text="5" />
|
|
<!-- textview for "minutes after alarm" -->
|
|
|
|
<TextView
|
|
android:id="@+id/tvBefore"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="7dip"
|
|
android:layout_marginTop="17dip"
|
|
android:layout_toRightOf="@id/etNotify"
|
|
android:text="@string/before"
|
|
android:textStyle="bold" />
|
|
<!-- this layout holds the two start and stop timer buttons -->
|
|
|
|
</RelativeLayout>
|
|
|
|
<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:background="@drawable/distance_background"
|
|
android:orientation="horizontal" >
|
|
|
|
<Button
|
|
android:id="@+id/btSetTimer"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/setTimer" />
|
|
|
|
<Button
|
|
android:id="@+id/btRemoveTimer"
|
|
style="?android:attr/buttonBarButtonStyle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/removeTimer" />
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout> |