Questions tagged [android-seekbar]

A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys.

A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys.

Placing focusable widgets to the left or right of a SeekBar is discouraged.

Clients of the SeekBar can attach a SeekBar.OnSeekBarChangeListener to be notified of the user's actions.

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

659 questions
8
votes
1 answer

Android: Media Player Duration Issue

I have set: mSeekBar.setMax(mp.getDuration()); // 8480 After completion of Audiofile, What I am getting is: player.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { public void onCompletion(MediaPlayer…
Sagar Shah
  • 4,272
  • 2
  • 25
  • 36
7
votes
0 answers

How to set up media player like WhatsApp voice notes (recyclerview)?

What I'm trying to do is something like the image below. voices notes inside a recyclerView using MediaPlayer. Audio should play when the play button is pressed and when the audio ends set the seek bar to 0 and stop the player. The application…
7
votes
7 answers

android Seekbar show progress value along the seekbar

I have a listview with seekbar, each seekbar represents 100% of a value of product. By moving the seekbar the % value can be changed, I want to show the change in value along the seekbar while the user is dragging the seekbar. I do not wish to add…
user2622786
  • 779
  • 3
  • 9
  • 21
7
votes
4 answers

Can't move Android SeekBar with Appium

I have a customized Android seekbar like this, and the positions where it can move to. And it starts from the middle: I want to move the slider first and then check if it's saved. I have a method which I use TouchAction: public void moveSeekBar(){ …
Ragnarsson
  • 1,715
  • 7
  • 41
  • 74
7
votes
2 answers

How to implement price range seekbar?

I need to the price range seekbar or slider like I have mentioned in the below image. Any help or sample code will be much appreciated. Thanks in advance.
Farhan Shah
  • 2,344
  • 7
  • 28
  • 54
7
votes
2 answers

SeekBar set line thickness and color from code

I want to create a seek bar totally programmatically. All formatting is to be done from code itself. I cant even use a drawable from xml files. Everything is working fine except the drawable for seek bar line. I can change the color of the line /…
6
votes
2 answers

Seekbar where I can change both min max value with 2 thumbs

I want to have a thumb for both min and max for my seekbar. You should be able to drag both thumbs independently.
6
votes
0 answers

Seekbar change tick mark color on progress

I have discrete seekbar on which I want to change color of custom made tick marks as well on progress but I was unable to find solution for that. I have read that there is a bug in AppCompatSeekbar which makes tick marker in front of the thumb but…
Yupi
  • 4,402
  • 3
  • 18
  • 37
6
votes
2 answers
6
votes
2 answers

Requesting guidance in creating custom SeekBar in Android. (like shown in the image)

I have a task to create a SeekBar looking like this: My question is: How to segment the seekbar like that? I have made custom seekbars before, but I don't know how to segment the bar like that, with lines extending beyond the seekbar's height. I…
Vlad Iancu
  • 487
  • 1
  • 6
  • 15
6
votes
1 answer

Android - Custom SeekBar - round corners on progress bar

Trying to make a custom SeekBar. I want to achieve this. What I have done so far is this. I can't find a way to round the corners on the progress bar. Can someone help with this? Here is my code main_activity.xml
Anonymous
  • 4,470
  • 3
  • 36
  • 67
6
votes
4 answers

Custom inline SeekBarPreference - how to set SeekBar progress on the 1st run?

I have prepared a simple test project for my question at GitHub. In my project there is a custom inline SeekBarPreference, which mostly works fine (its summary is updated when seekbar is being dragged and it saves integer value): However there is a…
6
votes
3 answers

Using gradient for Android SeekBar progressDrawable

Currently I'm working on custom SeekBar with gradient like this one. I've tried to implement seekbar with my own styles. So I did like that: ...