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
18
votes
5 answers

Espresso - Set SeekBar

does anybody know, how to set a seekBar to a specific value or just a click on that view on Espresso UI Testing ? I just get an exception: Error performing 'single click' on view with id... onView(withId(R.id.FilterPriceMax)).perform(click());
Luser_k
  • 514
  • 1
  • 4
  • 18
15
votes
6 answers

Animate seekbar progress

I have a screen with 4 seek bars ( As shown in the image below) . If the user moves B,C or D I calculate the average of the three and setProgress of A to the average. That was the easy part . What I would like to do is animate the progress bar A…
Ravi Vyas
  • 12,212
  • 6
  • 31
  • 47
15
votes
4 answers

android disable seek bar for audio controller

I used the following seek bar for displacing the progress of my audio.
Labeeb Panampullan
  • 34,521
  • 28
  • 94
  • 112
15
votes
8 answers

How to make double seekbar in android?

I am building an android application where the user select the a maximum value by seekbar. I need another button on the same seekbar so that user can select maximum and minimum value from a particular unique seekbar. Here is my code of single seek…
Hitesh Matnani
  • 533
  • 2
  • 8
  • 26
15
votes
4 answers

How to make SeekBar take up full width of parent

I have a SeekBar in a RelativeLayout whose width is equal to the screen width. I applied layout_width="match_parent" to the SeekBar but it seems to keep some empty space on both sides of the SeekBar to accommodate the thumb. I also tried using…
David Heisnam
  • 2,463
  • 1
  • 21
  • 32
15
votes
4 answers

Detecting thumb position in SeekBar prior to API version 16

Basically, I need to detect when the progress changes in the SeekBar and draw a text view on top of the thumb indicating the progress value. I do this by implementing a OnSeekBarChangeListener and on the public void onProgressChanged(SeekBar…
Henrique
  • 4,921
  • 6
  • 36
  • 61
14
votes
5 answers

Android seekbar solution

Is it possible to have the seekbar move only when the thumb is moved. Right now the seekbar moves even on finger touch in the progressdrawable. How do we disable the movement of the seekbar on finger touch of the progressdrawable? Thanks.
user1239418
14
votes
3 answers

How add TextView in middle of SeekBar thumb?

I am working in Android. I want to make a SeekBar. In thumb of SeekBar i want to show progress (probably on a TextView aligned over thumb which moves along with thumb). This is my XML for SeekBar and TextView.
Pushpendra Kuntal
  • 6,118
  • 20
  • 69
  • 119
14
votes
7 answers

Changing TextView Opacity in Android

So I'm trying to dynamically change the opacity of a TextView in my android app. I have a seekbar and as I slide the thumb to the right, the TextView I have layered under it should start becoming transparent. When the thumb reaches about half way…
Michael Brew
  • 225
  • 1
  • 2
  • 9
14
votes
5 answers

Implementing Simple SeekBar in android

Filters.java public class Filters extends Activity implements OnSeekBarChangeListener{ private SeekBar PRICEbar,DISTANCEbar, RATINGbar; // declare seekbar object variable // declare text label objects private TextView…
Devrath
  • 42,072
  • 54
  • 195
  • 297
14
votes
4 answers

Seekbar or progress bar with multiple colors

I want to create a bar like this initially when progress is zero it will be a fade in color but and as progress goes on it will become bright on that part(This is best I can explain) main thing is i want bar to show all colors at the same time.
Sandip Jadhav
  • 7,377
  • 8
  • 44
  • 76
14
votes
3 answers

Android How to add intervals texts in a seekbar

I am using a seekbar, and I want to add certain marks in the seekbar with text to use it as a scale. The selected interval points should be highlighted. The corresponding code is here: seekbar = (SeekBar) findViewById(R.id.seekBar1); …
Sanghita
  • 1,307
  • 3
  • 16
  • 28
13
votes
6 answers

How to change Android SeekBar track start position?

I'd like to set the SeekBars's track start position so it does not start from the left side of the seekbar, but form an arbitrary position. Here is a photoshop image how it should look like: http://i.imgur.com/QCMEu.png It should be just a graphical…
user1000594
  • 131
  • 1
  • 1
  • 5
13
votes
7 answers

Set SeekBar's progress color to transparent

Here is a picture of what I want to accomplish, where there is no progress color (transparent), with a solid grey background bar: I tried android:progressTint="#00000000" But that sets the whole bar (progress bar AND the back bar) to…
baekacaek
  • 1,527
  • 3
  • 22
  • 45
13
votes
3 answers

Custom SeekBar Drawable Android

I want to personalise the default Android seekbar to: I read about nine patch image and created 6 png images. The first three are for the gray progress bar (progressDrawable), as shown below: Right image Center image Left image The result…
Dimitri
  • 1,924
  • 9
  • 43
  • 65
1 2
3
90 91