diff options
author | lado <herrlado@gmail.com> | 2016-01-04 17:11:22 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2016-01-04 17:11:22 +0100 |
commit | 96367cf54a15167925a7fe8bdf207e027f32d593 (patch) | |
tree | 4b1453d6f4e2636fac81f147519cce94ca14c4f9 /vdrmanager/app/src/main/res | |
parent | 44f80541e006a1c2b499201247dd47d9bf8f04b1 (diff) | |
download | vdr-manager-96367cf54a15167925a7fe8bdf207e027f32d593.tar.gz vdr-manager-96367cf54a15167925a7fe8bdf207e027f32d593.tar.bz2 |
avoid static field null in Preferences
Diffstat (limited to 'vdrmanager/app/src/main/res')
-rw-r--r-- | vdrmanager/app/src/main/res/layout/vdr_list_add_delete.xml | 41 | ||||
-rw-r--r-- | vdrmanager/app/src/main/res/menu/vdrlist.xml | 5 |
2 files changed, 27 insertions, 19 deletions
diff --git a/vdrmanager/app/src/main/res/layout/vdr_list_add_delete.xml b/vdrmanager/app/src/main/res/layout/vdr_list_add_delete.xml index 054b4d5..a8b0e85 100644 --- a/vdrmanager/app/src/main/res/layout/vdr_list_add_delete.xml +++ b/vdrmanager/app/src/main/res/layout/vdr_list_add_delete.xml @@ -1,24 +1,37 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" android:orientation="vertical" - android:layout_height="fill_parent" > +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + - <ListView - android:id="@id/android:list" - android:layout_width="fill_parent" - android:layout_height="fill_parent" - android:choiceMode="singleChoice" - android:drawSelectorOnTop="false" - android:fastScrollEnabled="true" - android:scrollingCache="true" /> <TextView - android:id="@android:id/empty" + android:id="@+id/empty_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" - android:padding="20dip" + android:padding="20.0dip" android:text="@string/no_vdr" android:textAppearance="?android:textAppearanceMedium" /> -</LinearLayout>
\ No newline at end of file + <Button + android:id="@+id/new_vdr" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + + android:text="@string/new_vdr" /> + + + <ListView + android:id="@+id/vdr_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:choiceMode="singleChoice" + android:drawSelectorOnTop="false" + android:fastScrollEnabled="true" + android:layout_above="@+id/new_vdr" + android:scrollingCache="true" /> +</RelativeLayout>
\ No newline at end of file diff --git a/vdrmanager/app/src/main/res/menu/vdrlist.xml b/vdrmanager/app/src/main/res/menu/vdrlist.xml index f156173..821dc21 100644 --- a/vdrmanager/app/src/main/res/menu/vdrlist.xml +++ b/vdrmanager/app/src/main/res/menu/vdrlist.xml @@ -2,11 +2,6 @@ <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > <item - android:id="@+id/main_menu_vdrlist_add" - android:icon="@android:drawable/ic_menu_add" - v7:showAsAction="always" - android:title="@string/new_vdr"/> - <item android:id="@+id/main_menu_vdrlist_restore" android:title="@string/settings_backup_restore"/> |