2bb1b5d035
Now more well-behaved when switching orientations. Added option to view routes on m.bart.gov --HG-- rename : res/menu/favorite_context_menu.xml => res/menu/route_context_menu.xml rename : res/menu/favorites_menu.xml => res/menu/routes_list_menu.xml rename : src/com/dougkeen/bart/AddFavoriteActivity.java => src/com/dougkeen/bart/AddRouteActivity.java rename : src/com/dougkeen/bart/FavoritesDashboardActivity.java => src/com/dougkeen/bart/RoutesListActivity.java rename : src/com/dougkeen/bart/data/FavoritesColumns.java => src/com/dougkeen/bart/data/RoutesColumns.java
34 lines
2.0 KiB
XML
34 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent" android:layout_height="fill_parent"
|
|
android:paddingLeft="5dp" android:paddingRight="5dp">
|
|
<TextView android:id="@+id/form_header" android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" android:textSize="24dp"
|
|
android:textStyle="bold" android:layout_alignParentTop="true"
|
|
android:text="@string/add_route" android:paddingBottom="10dp" />
|
|
<TextView android:id="@+id/origin_label" android:text="@string/origin"
|
|
android:layout_width="wrap_content" android:layout_height="wrap_content"
|
|
android:textSize="15dp" android:layout_below="@+id/form_header"
|
|
android:layout_alignLeft="@+id/form_header"></TextView>
|
|
<Spinner android:id="@+id/origin_spinner" android:layout_below="@id/origin_label"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent" />
|
|
<TextView android:id="@+id/destination_label" android:text="@string/destination"
|
|
android:layout_width="wrap_content" android:layout_height="wrap_content"
|
|
android:textSize="15dp" android:layout_below="@+id/origin_spinner"
|
|
android:layout_alignLeft="@+id/origin_spinner"></TextView>
|
|
<Spinner android:id="@+id/destination_spinner"
|
|
android:layout_below="@id/destination_label" android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent" />
|
|
<LinearLayout android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent" android:layout_below="@id/destination_spinner"
|
|
style="@style/ButtonBar" android:id="@+id/buttonBar"
|
|
android:orientation="horizontal">
|
|
<Button android:text="@string/save" android:layout_weight="1"
|
|
android:layout_height="wrap_content" android:id="@+id/saveButton"
|
|
android:layout_width="fill_parent"></Button>
|
|
<Button android:text="@string/cancel" android:layout_weight="1"
|
|
android:layout_height="wrap_content" android:id="@+id/cancelButton"
|
|
android:layout_width="fill_parent"></Button>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|