BartRunnerAndroid/res/layout/route_form.xml

82 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"
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"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="15dip" />
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"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:paddingTop="15dip" />
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>
<TextView
android:id="@+id/return_checkbox_text"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_below="@id/destination_spinner"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="@string/also_add_return_route"
android:visibility="gone" />
2012-07-16 15:06:31 +00:00
<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"
android:layout_toLeftOf="@id/return_checkbox_text"
2012-07-16 15:06:31 +00:00
android:visibility="gone" />
</RelativeLayout>