R
R
rafaelSalihov2020-02-01 07:30:00
Java
rafaelSalihov, 2020-02-01 07:30:00

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>

But there is a problem when I rewind, it does not automatically go as usual with receclerview, you rewind a little, it stops right away, i.e. not smooth as if slowing down.

I don’t know on the video you can see https://youtu.be/ZV4HTcQxwVE

In short, it doesn’t automatically scroll, but stops, but should scroll to the end with one movement

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question