Questions tagged [seekbar]

Seek bar is a UI control analogous to a slider. In Android, it is an extension of ProgressBar with a draggable thumb.

1346 questions
82
votes
13 answers

Android SeekBar Minimum Value

How to define a SeekBar's minimum value? Is this done in the XML layout or do I need to define it programatically? Basically I need to change my minimum value from 0 to 0.2
Sachin
  • 2,537
  • 8
  • 31
  • 38
78
votes
11 answers

Custom seekbar (thumb size, color and background)

I would like to have this seekbar in my Android project : This is my seekbar :
user6299584
77
votes
16 answers

How to make a vertical SeekBar in Android?

Can a SeekBar be vertical? I am not very good at UI design, so how can I make the SeekBar more beautiful, please give me some templates and examples.
Chris
  • 5,751
  • 9
  • 39
  • 56
57
votes
5 answers

Android Seekbar with two thumbs

Variations of this question can be found all over the internet but not an answer. I want a seekbar with two-thumb range selection. I'm willing to program this myself but I lack experience with Android. Could someone give me some pointers on where to…
SeeDoubleYou
  • 1,181
  • 1
  • 14
  • 24
53
votes
9 answers

How can I get a working vertical SeekBar in Android?

I've implemented the commonly-pointed-to VerticalSeekBar post here. As it is, the SeekBar operates a little quirky. Here is my slightly adapted onTouchEvent() from that example: public boolean onTouchEvent(MotionEvent event) { xPos =…
Snailer
  • 3,603
  • 3
  • 32
  • 45
42
votes
6 answers

Android SeekBar setOnSeekBarChangeListener

I'm wondering about the behavior of the android SeekBars OnSeekBarChangeListener. In particular, is the onProgressChanged-method notified only for the first and the last touch on the seekbar? I'm trying to refresh a TextView that should show the…
user1162729
  • 451
  • 1
  • 5
  • 8
42
votes
15 answers

How to set seekbar min and max value

I have a seekbar and trying to set the value from 60 to 180 for one and 40 to 190 for the second one in step of 1. sb1 = (SeekBar) findViewById(R.id.progresss); sb1.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { …
Si8
  • 8,578
  • 20
  • 88
  • 201
41
votes
4 answers

how to fix seekbar-bar-thumb-centering-issues

I have set thumb image of a seek bar but my thumb looks little below of seek bar. How to set thumb at proper position of a seekbar. Have a look on the attached image
user831722
41
votes
7 answers

Using SeekBar to Control Volume in android?

How can I accurately change the volume of my app using a seekbar without controlling the volume by the volume buttons on my android device? I have seperate function on the Volume keys on my android that's why I want to use a seekbar to control the…
Niel Prince
  • 465
  • 1
  • 5
  • 9
40
votes
6 answers

Android - How to change default SeekBar thickness?

I have this SeekBar:
Joe Rakhimov
  • 3,734
  • 7
  • 36
  • 91
37
votes
6 answers

how to limit seekbar

I'd like to set max and minimum limits of SeekBar to 50 and 20 respectively. SeekBar has a direct option top provide max value, but how to set its minimum value to 20 rather than 0?
Shishir.bobby
  • 10,696
  • 20
  • 67
  • 99
33
votes
5 answers

How to display some value on seekbar as default?

I have a seekbar for example: from 0 to 10. How can I make if I want to set seekbar to 5 as default position. So in this example seekbar should start from middle.
Adam
  • 2,028
  • 4
  • 33
  • 43
29
votes
6 answers

Android SeekBar can't be full width even set padding 0 in AppCompat 23.1.0

when I update android support lib from 23.0.1 to 23.1.0, I find the SeekBar is not full width any more. this is the test XML file:
Spark.Bao
  • 4,563
  • 2
  • 25
  • 33
28
votes
2 answers

How to Set an Android SeekBar to be unmoveable/frozen?

In my XML, I've set the focusable, focusableInTouchMode, clickable, and longClickable variables to false, yet I can still click and move the SeekBar. Do I need to actually change the listener events to do this? That seems so unnecessary.
Rockmaninoff
  • 3,493
  • 5
  • 31
  • 35
28
votes
7 answers

Discrete seekbar in Android app?

I would like to create a seekbar for an Android app that allows the user to select a value between -5 and 5 (which maps to "strongly disagree" and "strongly agree"). How do I make a seekbar with discrete values? or is there a better UI widget I…
vee
  • 281
  • 1
  • 3
  • 3
1
2 3
89 90