开发者

Android bigger and always visible scrollbar for WebView

开发者 https://www.devze.com 2023-03-12 04:24 出处:网络
I d like a bigger and always visible scrollbar for my WebView i am in minSDK 3, version 1.5 step 1: this codes not working: (the scrollbars disappear after a while)

I d like a bigger and always visible scrollbar for my WebView

i am in minSDK 3, version 1.5

step 1: this codes not working: (the scrollbars disappear after a while)

android:scrollbarAlwaysDrawVerticalTrack="true" 
android:scrollbarAlwaysDrawHorizontalTrack="true" 

(android:fadeScrollbars="false" not worked too, in that api level not usable)

step 2: how can i make a bigger scrollbar开发者_StackOverflow中文版?


add android:fadeScrollbars="false" in your xml activity...it will be working fine..!


If its important to create a bigger scrollbar you could extend ScrollView and use computeVerticalScrollOffset() to position a custom drawable in another view represting the overlaying scrollbar down the side. Could be a bit of work but you could fully customise it all.

0

精彩评论

暂无评论...
验证码 换一张
取 消