BartRunnerAndroid/res/layout/route_form.xml

79 lines
2.8 KiB
XML
Raw Normal View History

2012-07-16 15:06:31 +00:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2012-10-03 19:29:31 +00:00
xmlns:holo="http://schemas.android.com/apk/res-auto"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:gravity="center_vertical" >
<View
android:id="@+id/titleDivider"
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_alignParentTop="true"
android:background="@color/abs__holo_blue_light" />
<Spinner
android:id="@+id/origin_spinner"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/titleDivider"
2012-10-03 19:29:31 +00:00
android:drawSelectorOnTop="true"
android:paddingLeft="5dp"
android:paddingRight="5dp"
2012-10-03 19:29:31 +00:00
android:paddingTop="15dip"
holo:spinnerMode="dialog" />
2012-07-16 15:06:31 +00:00
<TextView
android:id="@+id/origin_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/origin_spinner"
android:layout_alignParentLeft="true"
android:layout_below="@id/titleDivider"
android:gravity="center_vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="15dip"
2012-07-16 15:06:31 +00:00
android:text="@string/origin"
android:textSize="15sp" >
2012-07-16 15:06:31 +00:00
</TextView>
<Spinner
android:id="@+id/destination_spinner"
android:layout_width="200dp"
2012-07-16 15:06:31 +00:00
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@+id/origin_spinner"
2012-10-03 19:29:31 +00:00
android:drawSelectorOnTop="true"
android:paddingLeft="5dp"
android:paddingRight="5dp"
2012-10-03 19:29:31 +00:00
android:paddingTop="15dip"
holo:spinnerMode="dialog" />
2012-07-16 15:06:31 +00:00
<TextView
android:id="@+id/destination_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/destination_spinner"
android:layout_alignParentLeft="true"
2012-07-16 15:06:31 +00:00
android:layout_below="@+id/origin_spinner"
android:gravity="center_vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="15dip"
2012-07-16 15:06:31 +00:00
android:text="@string/destination"
android:textSize="15sp" >
2012-07-16 15:06:31 +00:00
</TextView>
<CheckBox
android:id="@+id/return_checkbox"
android:layout_width="wrap_content"
2012-07-16 15:06:31 +00:00
android:layout_height="wrap_content"
android:layout_below="@id/destination_spinner"
2012-10-03 19:29:31 +00:00
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="@string/also_add_return_route"
2012-07-16 15:06:31 +00:00
android:visibility="gone" />
</RelativeLayout>