androidxmlandroid-studioscrollbarhorizontalscrollview

Horizontal scroll bar is not visible for some devices


In android I implemented horizontal scroll view n set the scroll bars true for that.

But on some devices, it's visible, but on others, it's not - where am I going wrong? Can you suggest anything?

Also both devices are using Android 10 only.

I have set fade as false.


Solution

  • Add these two lines in your recyclerView xml

    android:scrollbarFadeDuration="0"
    android:scrollbarDefaultDelayBeforeFade="0"