From 4e5b04d9aa6e7a2a2699c7644c6e86ff892071be Mon Sep 17 00:00:00 2001 From: Karim Abou Zeid Date: Sun, 6 Sep 2015 20:46:42 +0200 Subject: [PATCH] Added landscape and rtl support for the new about screen. --- app/build.gradle | 1 + .../layout-w640dp/activity_about_content.xml | 55 +++++++++++++++++++ app/src/main/res/layout/activity_about.xml | 28 +--------- .../res/layout/activity_about_content.xml | 28 ++++++++++ app/src/main/res/layout/card_author.xml | 2 +- .../main/res/layout/card_special_thanks.xml | 2 +- .../res/layout/card_support_development.xml | 2 +- 7 files changed, 88 insertions(+), 30 deletions(-) create mode 100644 app/src/main/res/layout-w640dp/activity_about_content.xml create mode 100644 app/src/main/res/layout/activity_about_content.xml diff --git a/app/build.gradle b/app/build.gradle index 8d158ec6..ef718750 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -90,6 +90,7 @@ dependencies { compile 'com.android.support:support-v13:23.0.1' compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:recyclerview-v7:23.0.1' + compile 'com.android.support:gridlayout-v7:23.0.1' compile 'com.android.support:cardview-v7:23.0.1' compile 'com.android.support:palette-v7:23.0.1' compile 'com.android.support:design:23.0.1' diff --git a/app/src/main/res/layout-w640dp/activity_about_content.xml b/app/src/main/res/layout-w640dp/activity_about_content.xml new file mode 100644 index 00000000..ab207de1 --- /dev/null +++ b/app/src/main/res/layout-w640dp/activity_about_content.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index fcf0b1af..5795ba59 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -19,33 +19,7 @@ android:clipToPadding="false" android:isScrollContainer="true"> - - - - - - - - - - - + diff --git a/app/src/main/res/layout/activity_about_content.xml b/app/src/main/res/layout/activity_about_content.xml new file mode 100644 index 00000000..5cd875b8 --- /dev/null +++ b/app/src/main/res/layout/activity_about_content.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/card_author.xml b/app/src/main/res/layout/card_author.xml index c3d55323..5fe7b120 100644 --- a/app/src/main/res/layout/card_author.xml +++ b/app/src/main/res/layout/card_author.xml @@ -16,7 +16,7 @@