diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-02 15:23:27 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-02 15:23:27 +0100 |
commit | f48ad7f90ad1d494299b08f5e1866ccb63ee7b2d (patch) | |
tree | 00411d2561d7b3587a6ade03a8b018024760bfb6 /same-android/res | |
parent | 22c5f285c0e66e6b6439ca6237da3c7e955240c6 (diff) |
Change UI of main view.
Change from: Empty screen with menu used to pick activity.
To: ListView of available choices. User picks directly from main screen.
Diffstat (limited to 'same-android/res')
-rw-r--r-- | same-android/res/layout/main.xml | 11 | ||||
-rw-r--r-- | same-android/res/menu/main_menu.xml | 22 |
2 files changed, 5 insertions, 28 deletions
diff --git a/same-android/res/layout/main.xml b/same-android/res/layout/main.xml index f6f0090..77e35b2 100644 --- a/same-android/res/layout/main.xml +++ b/same-android/res/layout/main.xml @@ -4,11 +4,10 @@ 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="See menu." - android:textAppearance="?android:attr/textAppearanceLarge" /> + <ListView + android:id="@+id/activities_menu" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + </ListView> </LinearLayout>
\ No newline at end of file diff --git a/same-android/res/menu/main_menu.xml b/same-android/res/menu/main_menu.xml deleted file mode 100644 index 342ca60..0000000 --- a/same-android/res/menu/main_menu.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<menu xmlns:android="http://schemas.android.com/apk/res/android" > - - <item - android:id="@+id/same_settings" - android:title="Same settings"/> - <item - android:id="@+id/variable_test" - android:title="Variable Test"/> - <item - android:id="@+id/state_viewer" - android:title="State Monitor"/> - - <item - android:id="@+id/graphics_demo" - android:title="Graphics demo"/> - - <item - android:id="@+id/benchmark" - android:title="Benchmark"/> - -</menu>
\ No newline at end of file |