From 97c20e0c32f243edc1c05ef3004cab9deabc1cbd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2011 13:17:03 +0300 Subject: [PATCH] use proper layout separation for normal and large screens --- AndroidManifest.xml | 5 +- res/{layout => layout-land}/headlines_row.xml | 0 .../headlines_row_selected.xml | 0 .../headlines_row_unread.xml | 0 res/layout-large/headlines_row.xml | 45 +++++++++ res/layout-large/headlines_row_selected.xml | 95 +++++++++++++++++++ res/layout-large/headlines_row_unread.xml | 47 +++++++++ ...dlines_row_small.xml => headlines_row.xml} | 0 ...elected.xml => headlines_row_selected.xml} | 0 ...ll_unread.xml => headlines_row_unread.xml} | 0 res/menu/main_menu.xml | 15 +-- src/org/fox/ttrss/HeadlinesFragment.java | 13 +-- 12 files changed, 193 insertions(+), 27 deletions(-) rename res/{layout => layout-land}/headlines_row.xml (100%) rename res/{layout => layout-land}/headlines_row_selected.xml (100%) rename res/{layout => layout-land}/headlines_row_unread.xml (100%) create mode 100644 res/layout-large/headlines_row.xml create mode 100644 res/layout-large/headlines_row_selected.xml create mode 100644 res/layout-large/headlines_row_unread.xml rename res/layout-port/{headlines_row_small.xml => headlines_row.xml} (100%) rename res/layout-port/{headlines_row_small_selected.xml => headlines_row_selected.xml} (100%) rename res/layout-port/{headlines_row_small_unread.xml => headlines_row_unread.xml} (100%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8c824eac..ff878595 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,10 +1,9 @@ + android:versionCode="25" + android:versionName="0.1.24"> - diff --git a/res/layout/headlines_row.xml b/res/layout-land/headlines_row.xml similarity index 100% rename from res/layout/headlines_row.xml rename to res/layout-land/headlines_row.xml diff --git a/res/layout/headlines_row_selected.xml b/res/layout-land/headlines_row_selected.xml similarity index 100% rename from res/layout/headlines_row_selected.xml rename to res/layout-land/headlines_row_selected.xml diff --git a/res/layout/headlines_row_unread.xml b/res/layout-land/headlines_row_unread.xml similarity index 100% rename from res/layout/headlines_row_unread.xml rename to res/layout-land/headlines_row_unread.xml diff --git a/res/layout-large/headlines_row.xml b/res/layout-large/headlines_row.xml new file mode 100644 index 00000000..4b66b747 --- /dev/null +++ b/res/layout-large/headlines_row.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-large/headlines_row_selected.xml b/res/layout-large/headlines_row_selected.xml new file mode 100644 index 00000000..fa7e7ad0 --- /dev/null +++ b/res/layout-large/headlines_row_selected.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-large/headlines_row_unread.xml b/res/layout-large/headlines_row_unread.xml new file mode 100644 index 00000000..e0aa00cf --- /dev/null +++ b/res/layout-large/headlines_row_unread.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-port/headlines_row_small.xml b/res/layout-port/headlines_row.xml similarity index 100% rename from res/layout-port/headlines_row_small.xml rename to res/layout-port/headlines_row.xml diff --git a/res/layout-port/headlines_row_small_selected.xml b/res/layout-port/headlines_row_selected.xml similarity index 100% rename from res/layout-port/headlines_row_small_selected.xml rename to res/layout-port/headlines_row_selected.xml diff --git a/res/layout-port/headlines_row_small_unread.xml b/res/layout-port/headlines_row_unread.xml similarity index 100% rename from res/layout-port/headlines_row_small_unread.xml rename to res/layout-port/headlines_row_unread.xml diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml index 09a7050d..bbdb0904 100644 --- a/res/menu/main_menu.xml +++ b/res/menu/main_menu.xml @@ -31,24 +31,11 @@ - - - -