How to always show scrollbar
As of now the best way is to use android:fadeScrollbars="false"
in xml which is equivalent to ScrollView.setScrollbarFadingEnabled(false);
in java code.
Setting the android:scrollbarFadeDuration="0"
will do the trick.
There are 2 ways:
- from Java code:
ScrollView.setScrollbarFadingEnabled(false);
- from XML code:
android:fadeScrollbars="false"
Simple as that!