From 4f9bd0cde0140ef77e3e4004e96f6f990de572c5 Mon Sep 17 00:00:00 2001
From: Alex Ning <chineseperson5@gmail.com>
Date: Wed, 14 Jul 2021 20:04:20 +0800
Subject: Declare LayoutManager for RecyclerView in ViewPostDetailFragment.

---
 app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'app/src/main/res/layout-sw600dp')

diff --git a/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml b/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml
index 6d0beecc..d7fd9d2a 100644
--- a/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml
+++ b/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml
@@ -22,7 +22,9 @@
                 android:id="@+id/post_detail_recycler_view_view_post_detail_fragment"
                 android:layout_width="0dp"
                 android:layout_height="match_parent"
-                android:layout_weight="1" />
+                android:layout_weight="1"
+                android:clipToPadding="false"
+                app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
 
             <androidx.recyclerview.widget.RecyclerView
                 android:id="@+id/comments_recycler_view_view_post_detail_fragment"
@@ -30,7 +32,8 @@
                 android:layout_height="match_parent"
                 android:layout_weight="1"
                 android:paddingBottom="144dp"
-                android:clipToPadding="false" />
+                android:clipToPadding="false"
+                app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
 
         </LinearLayout>
 
-- 
cgit v1.2.3