开发者

Creating a stepped seek bar

开发者 https://www.devze.com 2023-03-12 00:57 出处:网络
How can I create a stepped seek bar for an android interface, one that functions like the seek bar in the men开发者_开发知识库u below.

How can I create a stepped seek bar for an android interface, one that functions like the seek bar in the men开发者_开发知识库u below.

Creating a stepped seek bar


I think you could use the RatingBar widget with some clever graphics. The other option is to Make your own widget, maybe starting with a subclass of SeekBar and implementing some sort of snapping to integer values (in the change listener).


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

0

精彩评论

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

关注公众号