Answer the question
In order to leave comments, you need to log in
How to output smooth scrolling RecyclerView with separate TextView?
How to output smooth scrolling RecyclerView with separate TextView? Now I’m displaying weaves and from the bottom of the list my text sticks to the top and doesn’t scroll.
After some time, I managed to display the text and the list in the scroll
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="fdsffddf"></TextView>
<androidx.recyclerview.widget.RecyclerView
android:layout_marginTop="140dp"
android:id="@+id/contact_recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.recyclerview.widget.RecyclerView>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question