From cb0b6e1540f3eb9e4c76e3122de1603f2ee6fb90 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 20 Jul 2017 22:18:32 +0300 Subject: [PATCH] Layout fixes (mostly for tablets), rolled back recyclable --- .../mthmmy/activities/topic/TopicAdapter.java | 2 -- .../main/res/layout-sw600dp/activity_main.xml | 34 +++++++++++++++++++ app/src/main/res/layout/activity_about.xml | 2 +- app/src/main/res/layout/activity_bookmark.xml | 4 +-- .../main/res/layout/activity_downloads.xml | 2 +- app/src/main/res/layout/activity_topic.xml | 5 +-- app/src/main/res/menu/topic_menu.xml | 2 +- 7 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 app/src/main/res/layout-sw600dp/activity_main.xml diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java index ecc7a011..b37ec5e4 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java @@ -178,8 +178,6 @@ class TopicAdapter extends RecyclerView.Adapter { final Post currentPost = postsList.get(position); final PostViewHolder holder = (PostViewHolder) currentHolder; - holder.setIsRecyclable(false); - //Post's WebView parameters holder.post.setClickable(true); holder.post.setWebViewClient(new LinkLauncher()); diff --git a/app/src/main/res/layout-sw600dp/activity_main.xml b/app/src/main/res/layout-sw600dp/activity_main.xml new file mode 100644 index 00000000..62b3d010 --- /dev/null +++ b/app/src/main/res/layout-sw600dp/activity_main.xml @@ -0,0 +1,34 @@ + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 2e724601..797665a2 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -30,7 +30,7 @@ android:id="@+id/scrollview" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginTop="64dp" + app:layout_behavior="@string/appbar_scrolling_view_behavior" android:background="@color/background"> + android:scrollbars="none" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> diff --git a/app/src/main/res/layout/activity_topic.xml b/app/src/main/res/layout/activity_topic.xml index 1334fe4e..27f9b6b1 100644 --- a/app/src/main/res/layout/activity_topic.xml +++ b/app/src/main/res/layout/activity_topic.xml @@ -37,12 +37,13 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="top|start" - android:layout_marginTop="64dp" android:background="@color/background" + android:paddingTop="4dp" android:paddingBottom="54dp" android:clipToPadding="false" android:scrollbars="none" - tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity"> + tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> \ No newline at end of file