Search code examples
androidxmlandroid-studioscrollbarhorizontalscrollview

Horizontal scroll bar is not visible for some devices


In android I implimented horizontal scroll view n set the scroll bars true for that,

But in some device's it's visible but other it's not where I'm going wrong can you suggest

Also both devices are in android 10 only

Also I have set fade as false


Solution

  • Add these two lines in your recyclerView xml

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