I want to implement something similar to android seek bar.But not in a linear fashion,in an arc shape. is it possible to customize the seek bar in an arc shape?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can't make SeekBar to draw its thumb any other way than offset horizontally.
The code that actually draws thumb is in AbsSeekBar.onDraw, and there it's seen it's just horizontal offset. You may however make your own widget extending ProgressBar, which would draw thumb whatever way is needed (in arc). But you'll also need to make response to touches to translate it to linear range that ProgressBar expects.
I thought you might be able to achieve the effect with an XML drawable like the LevelList, though you would probably have to have lots of images to achieve the effect http://developer.android.com/guide/topics/resources/drawable-resource.html#LevelList
You can change the style of seekbar in your own themes, (have a look at android:style/Widget.SeekBar), but it could be hard to make it like a rainbow.
Try to read the source code of ProgressBar and write your own base on your requirements.