Android custom vertical drag seekbar progress bar
•
Android
The seekbar provided with Android is horizontal. To be vertical, you must write a class to inherit the seekbar.
A simple example of vertical seekbar:
(but it actually has some problems. But it can make do if it meets basic needs.)
A horizontal seekbar is added to the demo for comparison, and the code is as follows:
Activity:
HelloSeekBarActivity
Layout:
activity_ hello_ seek_ bar.xml
Operation screenshot:
An improved version of seekbar
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码