How to Slowly Fade a Scrollbar in a TextView
added in API Level 5Defines the delay in milliseconds(1/1000th of a second) that a scrollbar takes to fade out.
1 millisecond is 0.001 seconds
1 second = 1,000 milliseconds(ms)
1 minute = 60,000 milliseconds (ms)
1. Add a HorizontalScrollView to a TextView, in your main.xml file.
2. Ensure to change the minSDKVersion to 5, or greater.
3. In the main.xml file, add the code below. This will slowly fade the scrollbar for 15 seconds.
<HorizontalScrollView
...
android:scrollbarFadeDuration = "15000"
/>
4. Compile and run!
Related Articles:
Resources: