支持自定义的step的range bar效果
应用介绍
支持自定义的step的range bar 滑杆(Slider) 效果,实现可高度自定义的step range seek bar。所谓range seek bar,就是bar上面有两个滑块,从而可以选择滑块中间的一个范围;所谓step seek bar,就是步长滑动,也就是只能离散选择一些数值。 可自定义的参数包括: seek bar的颜色; seek bar的粗细程度; seek bar上刻度的高度; seek bar上刻度的数目; 滑块的默认图片; 滑块滑动时的图片等。 The RangeBar is similar to an enhanced SeekBar widget, though it does not make use of the SeekBar. It provides for the selection of a range of values rather than a single value. The selectable range values are discrete values designated by tick marks; the thumb (handle) will snap to the nearest tick mark. Developers can customize the following attributes (both via XML and programmatically): bar color bar thickness tick height number of ticks connecting line thickness connecting line color thumb normal image thumb pressed image If any of the following attributes are specified, the thumb images will be ignored and be replaced with a circle whose properties can be specified as follows: thumb radius thumb normal color thumb pressed color Finally, the following property can be set programmatically, but not via XML: thumb indices (the location of the thumbs on the RangeBar) Supported on API Level 7 and above.

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 支持自定义的step的range bar效果
发表评论 取消回复