dix: comment scroll deadspace

This commit is contained in:
rebelonion 2024-03-20 13:54:25 -05:00
parent b454a2e3d9
commit 3bbf9efe63
2 changed files with 5 additions and 3 deletions

View file

@ -66,6 +66,7 @@ class CommentsFragment : Fragment() {
savedInstanceState: Bundle?
): View {
binding = FragmentCommentsBinding.inflate(inflater, container, false)
binding.commentsLayout.isNestedScrollingEnabled = true
return binding.root
}

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/commentsLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:colorBackground">
android:background="?android:colorBackground"
android:fillViewport="true">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@ -82,4 +83,4 @@
</LinearLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</FrameLayout>
</androidx.core.widget.NestedScrollView>