Closed DilipSinghPanwar closed 4 years ago
Have you fixed this issue? @DilipSinghPanwar cause I have the same.
Tried with: implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
and
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1'
And this also because I know that there was an issue with it before.
Anyone knows how to fix it ?
I got same issue. Anyone can help?
Hello, so I fiexed it like this:
NestedScrollView with: android:clipToPadding="true" android:fillViewport="true" android:fitsSystemWindows="true"
Inside constraint layout: <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/constraint" android:layout_width="match_parent" android:layout_height="wrap_content">
RecyclerView inside of ConstraintLayout <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="0dp" android:background="@color/colorWhite" android:layout_marginTop="8dp" app:layout_constraintBottom_toBottomOf="@+id/constraint" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/viewInTopOfRecycler" />
I did it like this and using this version of gradle.
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'
Hope it is useful!
I don't think you should set the android:layout_height of NestedScrollView child to match_parent it should be wrap_content
Any update on this?
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/background_light" android:fitsSystemWindows="false">