aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-14 12:04:20 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-14 12:04:20 +0000
commit4f9bd0cde0140ef77e3e4004e96f6f990de572c5 (patch)
tree0302447ac5647d6dd706991d24d8c4c0147f00a3 /app/src/main/res
parentf6aca0e9a0510e520f6fb1e81f85df5c6e8d0f81 (diff)
downloadinfinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar.gz
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar.bz2
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar.lz
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar.xz
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.tar.zst
infinity-for-reddit-4f9bd0cde0140ef77e3e4004e96f6f990de572c5.zip
Declare LayoutManager for RecyclerView in ViewPostDetailFragment.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout-land/fragment_view_post_detail.xml7
-rw-r--r--app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml7
-rw-r--r--app/src/main/res/layout/fragment_view_post_detail.xml3
3 files changed, 12 insertions, 5 deletions
diff --git a/app/src/main/res/layout-land/fragment_view_post_detail.xml b/app/src/main/res/layout-land/fragment_view_post_detail.xml
index 6d0beecc..2b107e94 100644
--- a/app/src/main/res/layout-land/fragment_view_post_detail.xml
+++ b/app/src/main/res/layout-land/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>
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>
diff --git a/app/src/main/res/layout/fragment_view_post_detail.xml b/app/src/main/res/layout/fragment_view_post_detail.xml
index 7875516b..6a6a4a4d 100644
--- a/app/src/main/res/layout/fragment_view_post_detail.xml
+++ b/app/src/main/res/layout/fragment_view_post_detail.xml
@@ -17,7 +17,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="144dp"
- android:clipToPadding="false" />
+ android:clipToPadding="false"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>