开发者

How to implement a trackbar

开发者 https://www.devze.com 2023-03-18 12:09 出处:网络
Is there anyway to implement something like a trackbar on android, so I can explicity specify the 开发者_StackOverflow中文版values and select it?

Is there anyway to implement something like a trackbar on android, so I can explicity specify the 开发者_StackOverflow中文版values and select it?

How to implement a trackbar


Well i recall there were some tutorials on how to add one to a preference activity, so it is certanly possible, other than that there is the seekbar component in the sdk. you can even drag it in layout with the GUI tool.

if you have seen the media player controls and other similar things that can be added that is also a possibility although i don't know if those can be modified.

see this for customizing the seek Bar:

seekBar

also this thing about vertical seekbar can be helpfull:

Vertical seekBar


What you are you looking for is the SeekBar

http://developer.android.com/reference/android/widget/SeekBar.html

0

精彩评论

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

关注公众号