开发者

Android: Overriding the scrollbar drawable in an application

开发者 https://www.devze.com 2023-01-12 21:18 出处:网络
Is there a way to replace the scrollbar drawable in an application (i.e. I have a customized scrollbar view that I would like to use instead of the default gray scrollbar that comes with the Android f

Is there a way to replace the scrollbar drawable in an application (i.e. I have a customized scrollbar view that I would like to use instead of the default gray scrollbar that comes with the Android framework). I looked through I believe all of the android attributes and none seem to support it (at leas开发者_高级运维t the simplest way I know how which I would assume would be setting a drawable to some android attribute).

If not and say it requires a change in the framework, where would I start looking for it (in the framework)?

Thanks

MB


Custom scrollbar thumb:

android:scrollbarThumbHorizontal="..."
android:scrollbarThumbVertical="..."

Custom scrollbar track (scrollbar background):

android:scrollbarTrackHorizontal="..."
android:scrollbarTrackVertical="..."
0

精彩评论

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