rogcg
rogcg

Reputation: 10471

How to implement a trackbar

Is there anyway to implement something like a trackbar on android, so I can explicity specify the values and select it?

enter image description here

Upvotes: 1

Views: 2706

Answers (2)

matsjoe
matsjoe

Reputation: 1480

What you are you looking for is the SeekBar

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

Upvotes: 3

DArkO
DArkO

Reputation: 16110

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

Upvotes: 3

Related Questions