From 603c761ebe5b1a61436ad557d169697b9704c996 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 29 Dec 2016 22:20:07 +0200 Subject: [PATCH] Recyclerview layout changes --- .../activities/main/forum/ForumAdapter.java | 18 ----------- .../activities/main/forum/ForumFragment.java | 7 ++++- .../res/layout/fragment_forum_board_row.xml | 16 ++++++---- .../layout/fragment_forum_category_row.xml | 30 +++++++------------ .../main/res/layout/fragment_recent_row.xml | 15 ++-------- app/src/main/res/values/colors.xml | 3 +- 6 files changed, 31 insertions(+), 58 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/main/forum/ForumAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/main/forum/ForumAdapter.java index e6842165..894f4bdf 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/main/forum/ForumAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/main/forum/ForumAdapter.java @@ -69,34 +69,16 @@ class ForumAdapter extends ExpandableRecyclerAdapter + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:background="@color/primary_lighter"> + android:textColor="@color/accent" + android:textSize="16sp" + android:background="?attr/selectableItemBackground" + android:clickable="true" + android:gravity="center_horizontal" + android:padding="8dp"/> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_forum_category_row.xml b/app/src/main/res/layout/fragment_forum_category_row.xml index 4be9c8a1..e235e98e 100644 --- a/app/src/main/res/layout/fragment_forum_category_row.xml +++ b/app/src/main/res/layout/fragment_forum_category_row.xml @@ -1,27 +1,19 @@ - + android:orientation="vertical" + android:background="@color/primary_light"> + android:textColor="@color/primary_text" + android:textSize="20sp" + android:background="?attr/selectableItemBackground" + android:gravity="center_horizontal" + android:padding="8dp"/> - - - - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_recent_row.xml b/app/src/main/res/layout/fragment_recent_row.xml index cb4d23ca..930b3dd4 100644 --- a/app/src/main/res/layout/fragment_recent_row.xml +++ b/app/src/main/res/layout/fragment_recent_row.xml @@ -5,21 +5,10 @@ android:orientation="vertical" > - - - + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 15e3ba63..8fa836d0 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -26,7 +26,8 @@ #2B2B2B #333333 - #3C3F41 + #3C3C3C + #454545 #26A69A #E7E7E7 #757575