AppListFragment: ConstraintLayout cannot be the parent of SwipeRefreshLayout
It causes problems with click events. Just use plain old FrameLayout for this fragment.
This commit is contained in:
parent
4ea875be1a
commit
6db4f84d35
|
@ -8,6 +8,7 @@
|
|||
<entry key="app/src/main/res/layout/activity_main.xml" value="0.2838541666666667" />
|
||||
<entry key="app/src/main/res/layout/activity_settings.xml" value="0.19375" />
|
||||
<entry key="app/src/main/res/layout/app_list_item.xml" value="0.2838541666666667" />
|
||||
<entry key="app/src/main/res/layout/fragment_list.xml" value="0.2838541666666667" />
|
||||
<entry key="app/src/main/res/menu/bottom_navigation.xml" value="0.2828125" />
|
||||
<entry key="app/src/main/res/menu/main_activity_menu.xml" value="0.2838541666666667" />
|
||||
</map>
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/fragment_swipe_refresh"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
|
@ -21,4 +16,4 @@
|
|||
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</FrameLayout>
|
Loading…
Reference in New Issue