How can I remove the scrollbar in my recyclerview? I've tried with mRecyclerView.setScrollBarSize(0);
but it's not working. (Actually, it doesn't do anything, whatever the value I set).
You can open or close it. Basically, you need to add android:overScrollMode=“never” line to your RecyclerView.
In RecyclerView use android:nestedSrollingEnabled="false" and use NestedScrollView as a parent Scroll View.
Make a setDataList method in your adapter class. And set your updated list to adapter list. And then every time of calling API set that list to setDataList and call adapter. notifyDataSetChanged() method of your adapter class.
Put android:scrollbars="none"
like this:
<android.support.v7.widget.RecyclerView android:id="@+id/RecyclerViewId" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" > </android.support.v7.widget.RecyclerView>
<androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" > </androidx.recyclerview.widget.RecyclerView>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With