From 9d00e47f74d6fdedd8f60681bc8f40ab70ef7e78 Mon Sep 17 00:00:00 2001 From: tarsin Date: Sun, 17 Jul 2022 15:55:58 +0800 Subject: [PATCH] Refactor gallery comment to adapt non-divider recyclerview --- .../main/res/layout/item_gallery_comment.xml | 69 +++++++++++-------- .../res/layout/scene_gallery_comments.xml | 2 + 2 files changed, 44 insertions(+), 27 deletions(-) diff --git a/app/src/main/res/layout/item_gallery_comment.xml b/app/src/main/res/layout/item_gallery_comment.xml index a8ca4d165..b3c4b3fc3 100644 --- a/app/src/main/res/layout/item_gallery_comment.xml +++ b/app/src/main/res/layout/item_gallery_comment.xml @@ -13,36 +13,51 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - + android:paddingTop="4dp" + android:paddingBottom="4dp"> - + - + - + - + + + + + + + + + diff --git a/app/src/main/res/layout/scene_gallery_comments.xml b/app/src/main/res/layout/scene_gallery_comments.xml index 6da0a716e..b30f6b4b8 100644 --- a/app/src/main/res/layout/scene_gallery_comments.xml +++ b/app/src/main/res/layout/scene_gallery_comments.xml @@ -29,6 +29,8 @@ android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" + android:paddingLeft="@dimen/keyline_margin" + android:paddingRight="@dimen/keyline_margin" android:clipToPadding="false" app:fitsSystemWindowsInsets="bottom" />