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.

1358 questions
29
votes
7 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
  • 5,573
  • 2
  • 31
  • 36
28
votes
3 answers

Implementing a slider (SeekBar) in Android

I want to implement a slider, which is basically two lines, one vertical and one horizontal, crossing where the screen is touched. I have managed to make one but I have to issues: The slider is not very smooth, there is a slight delay when I'm…
Flavian Hautbois
  • 2,940
  • 6
  • 28
  • 45
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,573
  • 5
  • 34
  • 35
26
votes
4 answers

Android seekbar how to block dragging / disable it for short time

I want to block the dragging of a seekbar if a value is true. Is this even possible? I use a seekbar as a switch. If my seekbar value is 0, and I press the button action A started. If my seekbar value is 1 and I press the button action B is started.…
Leandros
  • 16,805
  • 9
  • 69
  • 108
25
votes
3 answers

Android seekbar clipped thumb

I ran into some weird problem..I implemented a seekbar with custom thumb..and when I ran my app on HTC Desire, it all works fine..but, when I ran it on Samsung Galaxy, the thumb becomes clipped! Here are the screenshots.. Desire: Samsung Galaxy: I…
Tomislav Novoselec
  • 4,570
  • 2
  • 27
  • 22
22
votes
6 answers

Android SeekBar to control MediaPlayer progress

I have a SeekBar, it displays correctly MediaPlayer progress. However, I have troubles with seeking - if I seek scroll box somewhere it just returns on the position where audio file is playing. public class EntityPageActivity extends Activity…
Ilya Blokh
  • 11,923
  • 11
  • 52
  • 84
22
votes
1 answer

Slider control in Android...is SeekBar really my best/only option?

I'm using SeekBar as a slider because I can't find anything else, but I have to do so much hacky work because it doesn't allow me to set a minimum value or go in between ints. So, any time I need a slider to start at a value other than 0 or return…
Rich
  • 36,270
  • 31
  • 115
  • 154
22
votes
3 answers

How to change colour of the thumb in seekbar?

I have the default seekbar in my android app. I noticed that when the thumb on the seekbar is held, it turns yellow. Instead, I want it to turn blue when it is held. How can this be done? I apologize if this is a basic question, I am new to android…
vergil corleone
  • 1,091
  • 3
  • 16
  • 34
21
votes
11 answers

Add dynamic text over Android SeekBar thumb

I'm trying to make this custom SeekBar in Android 2.2 and everything I do seems to be wrong! I'm trying to display the value of the seekbar over the thumb image of the SeekBar. Does anybody have some experiences with this?
20
votes
2 answers

ValueAnimator only repeats once

I am trying to get a ValueAnimator to repeat once it has ended. I am using it with a SeekBar in a ListView. For some reason, the ValueAnimator will finish, trigger the onAnimationEnd() go again, but then when it reaches the end the…
Tyler
  • 17,669
  • 10
  • 51
  • 89
20
votes
2 answers

SeekBar in a NavigationDrawer

I want to use a seekbar in a Navigation Drawer Basically I need to slide left and right to set the seekbar and, well, you guessed it, it slides the navigation drawer... What I would like to do is to slide the seekbar when it's focused and the…
nsvir
  • 8,781
  • 10
  • 32
  • 47
19
votes
4 answers

HTML5 video seeking on iPad

I have an HTML5 video player with a custom seek bar, that's working great on the iPhone (playing inline) and on the browser. It plays great on the iPad too and the seek bar is updated as the movie plays, but for some reason, I can't seek. All of the…
Andre
  • 4,417
  • 8
  • 32
  • 37
19
votes
6 answers

Mediaplayer progress update to seekbar not smooth?

I am working on an app with recorder and player. I am using mediaplayer to play the recorded .wav file and meantime I want to update to a seekbar. Everything is working fine But my problem is mediaplayer progress updation to seekbar is not happening…
Sreedev
  • 6,563
  • 5
  • 43
  • 66
18
votes
1 answer

Making A Custom Skinny ProgressBar / Seekbar

At a high level, I have done several types of progress bar styles, but they are all ugly when I have attempted to make them skinny. I am looking for a jump start tutorial or layout that will give a bar that looks similar to below image Any ideas? …
Du3
  • 1,424
  • 6
  • 18
  • 36
18
votes
5 answers

Modifying the Android seekbar widget to operate vertically

I'm trying to get a vertical seekbar going with the emulator, but I'm sort of stuck. I can get the seekbar to display the way I want it to, and I can get the progress to do what I want, and I can modify the onTouchEvent to get the thumb to go…
Neil
  • 2,316
  • 1
  • 22
  • 26
1
2
3
90 91