diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/about_dialog.xml | 33 | ||||
-rw-r--r-- | res/layout/bustimes.xml | 120 | ||||
-rw-r--r-- | res/layout/donate_dialog.xml | 49 | ||||
-rw-r--r-- | res/layout/favourite_dialog.xml | 22 | ||||
-rw-r--r-- | res/layout/find.xml | 36 | ||||
-rw-r--r-- | res/layout/main.xml | 15 | ||||
-rw-r--r-- | res/layout/view_child_row.xml | 23 | ||||
-rw-r--r-- | res/layout/view_dialog.xml | 16 | ||||
-rw-r--r-- | res/layout/view_group_row.xml | 16 |
9 files changed, 330 insertions, 0 deletions
diff --git a/res/layout/about_dialog.xml b/res/layout/about_dialog.xml new file mode 100644 index 0000000..03a68ad --- /dev/null +++ b/res/layout/about_dialog.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <TextView + android:id="@+id/textView1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/app_name" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <TextView + android:id="@+id/textView2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/about_menu_instruction_text" /> + + <ExpandableListView + android:id="@+id/helpExpandableListView" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="0.05" > + </ExpandableListView> + + <Button + android:id="@+id/donateButton" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/donate_button" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/bustimes.xml b/res/layout/bustimes.xml new file mode 100644 index 0000000..b076274 --- /dev/null +++ b/res/layout/bustimes.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center|top" + android:orientation="vertical" + android:theme="@android:style/Theme.NoTitleBar" > + + <TextView + android:id="@+id/busStopName" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <TextView + android:id="@+id/busStopU1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="3dp" + android:background="@drawable/u1_back" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:text="@string/U1" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#FFFFFF" /> + + <TextView + android:id="@+id/busStopU1N" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u1n_back" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:text="@string/U1N" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#FFFFFF" /> + + <TextView + android:id="@+id/busStopU2" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u2_back" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:text="@string/U2" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#FFFFFF" /> + + <TextView + android:id="@+id/busStopU6" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u6_back" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:text="@string/U6" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#FFFFFF" /> + + <TextView + android:id="@+id/busStopU9" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/u9_back" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:text="@string/U9" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#FFFFFF" /> + + <CheckBox + android:id="@+id/favouriteCheckBox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/bustimes_favourite_checkbox_label" /> + + <TextView + android:id="@+id/busStopID" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:textAppearance="?android:attr/textAppearanceSmall" /> + + </LinearLayout> + + <LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/busTimeContentLayout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="vertical" > + + <TextView + android:id="@+id/busStopMessage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="" + android:textAppearance="?android:attr/textAppearanceLarge" /> + + <ProgressBar + android:id="@+id/busStopLoadBar" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <ListView + android:id="@+id/busStopTimes" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + </ListView> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/donate_dialog.xml b/res/layout/donate_dialog.xml new file mode 100644 index 0000000..ce44e31 --- /dev/null +++ b/res/layout/donate_dialog.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout_root" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:padding="10dp" > + + <LinearLayout + android:id="@+id/linearLayout2" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <TextView + android:id="@+id/donateDialogMessage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="5dp" + android:text="@string/donate_dialog_message" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <ProgressBar + android:id="@+id/donateDialogProgress" + android:layout_width="24dp" + android:layout_height="24dp" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/donateDialogMessageLayout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:visibility="gone" > + + <TextView + android:id="@+id/donateDialogErrorMessage" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/bitcoin_error_message" + android:visibility="gone" /> + + <TextView + android:id="@+id/donateBitcoinAddress" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:visibility="gone" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/favourite_dialog.xml b/res/layout/favourite_dialog.xml new file mode 100644 index 0000000..44cb02a --- /dev/null +++ b/res/layout/favourite_dialog.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout_root" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + android:padding="10dp" > + + <TextView + android:id="@+id/favouriteDialogMessage" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:visibility="gone" /> + + <ListView + android:id="@+id/favouriteListItems" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + </ListView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/find.xml b/res/layout/find.xml new file mode 100644 index 0000000..62a3000 --- /dev/null +++ b/res/layout/find.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center|top" + android:orientation="vertical" + android:theme="@android:style/Theme.NoTitleBar" > + + <EditText + android:id="@+id/searchBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:inputType="text" /> + + <LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/findContentLayout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="vertical" > + + <ProgressBar + android:id="@+id/findLoadBar" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <ListView + android:id="@+id/findListItems" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + </ListView> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 0000000..dff45bd --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:theme="@android:style/Theme.NoTitleBar"> + + <org.osmdroid.views.MapView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/mapview" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + </org.osmdroid.views.MapView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/view_child_row.xml b/res/layout/view_child_row.xml new file mode 100644 index 0000000..d1ac7f3 --- /dev/null +++ b/res/layout/view_child_row.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:paddingRight="10dp" > + + <TextView + android:id="@+id/childname" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:focusable="false" + android:paddingLeft="50dp" + android:textSize="25dp" /> + + <CheckBox + android:id="@+id/check1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:focusable="false" + android:gravity="right" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/view_dialog.xml b/res/layout/view_dialog.xml new file mode 100644 index 0000000..c03d169 --- /dev/null +++ b/res/layout/view_dialog.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout_root" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="horizontal" + android:padding="10dp" > + + <ExpandableListView + android:id="@+id/view_list" + android:layout_width="0dip" + android:layout_height="fill_parent" + android:layout_weight="1" > + </ExpandableListView> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/view_group_row.xml b/res/layout/view_group_row.xml new file mode 100644 index 0000000..7b5989a --- /dev/null +++ b/res/layout/view_group_row.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <TextView + android:id="@+id/childname" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="5dp" + android:paddingLeft="50dp" + android:paddingTop="5dp" + android:textSize="28dp" /> + +</LinearLayout>
\ No newline at end of file |