i have a recycler view which contains a lot of posts. while i scroll the recyclerview my frame layout doesn't scroll. it is fixed like a navigation bar. I want it to scroll as if it was part of the recyclerview. Here is my layout:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
tools:context=".HomePageFragment">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FrameLayout
android:id="@+id/status_frame"
android:layout_width="match_parent"
android:layout_height="wrap_content"></FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler"
android:layout_width="match_parent"
android:layout_height="wrap_content"
></androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
</ScrollView>
i tried using nestedScrollView but it adds extra empty posts. I dont know why.
My frameLayout is the status part. which is another recyclerview itself.while scrolling the posts the statuspart doesn't scroll.