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
-1
votes
3 answers

Changing radius of a layout using seekBar in Android

I need to change radius of all four corners of a layout using SeekBar. How can I do that? I know I can create a layout with round corners using XML, but I need to do it at runtime using SeekBar.
Sadeel Anjum
  • 135
  • 2
  • 14
-1
votes
1 answer

progress intervals in Range Seekbar

Hai i created a two thumb range seek bar using given code.its working fine.now i want to set the specific range for the slider in seekbar like, factor =100 upto 30000, after that factor should be 500..means from 1000 t0 30000 progress interval 100…
-1
votes
2 answers

How to get SeekBar value when using it in a Fragment?

I am building and android application where I am using seekbar for maximum and minimum value. I had used an example from this link - http://www.kpbird.com/2011/05/android-seek-bar-with-two-thumb.html But when I use it in fragment Activity I am…
Hitesh Matnani
  • 533
  • 2
  • 8
  • 26
-1
votes
2 answers

Vertical seekbar for Android 4

I got the following code from here which draws a vertical seekbar: import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.view.MotionEvent; import…
user1922137
-1
votes
2 answers

Crash when working with SeekBar

So I'm working on an app that needs a SeekBar. This SeekBar is inside a Fragment, and shows up when the user clicks a drop down button. The SeekBar showed up and worked fine. However, once I tried to use this seekbar, I get a crash. What I wanted…
Dtroll MC
  • 303
  • 5
  • 14
-1
votes
1 answer

Draw Rectangle on Top of SeekBar and Fill

I want to have the functionality of a SeekBar, but customize the line (it's vertical) to be a rectangle with the colors filled per segment of the max I set the bar to. Here is my class which I extend the SeekBar: public class VerticalSeekBar…
taraloca
  • 9,077
  • 9
  • 44
  • 77
-2
votes
1 answer

MediaPlayer - handler.getCurrentPosition()

The issue is with these lines seekBar1.setProgress(player.getCurrentPosition()); and seekBar2.setProgress(player2.getCurrentPosition()); Error Attempt to invoke virtual method 'int android.media.MediaPlayer.getCurrentPosition()' on a null object…
Vasant Raval
  • 257
  • 1
  • 12
  • 31
-2
votes
1 answer

Attempt to invoke virtual method 'int android.widget.SeekBar.getProgress()' on a null object reference

I am building an Android application using Android Studio. I got an error of "Attempt to invoke virtual method 'int android.widget.SeekBar.getProgress()' on a null object reference". The application works well in the interface which i can see the…
Mouris
  • 67
  • 1
  • 8
-2
votes
1 answer

Draw icons over video seekbar in android

I have a requirement to draw a elevated seekbar, with ups and downs and also have icons drawn over it. Seekbar is highlighted with red circle. If elevation is not possible, I like to draw a linear seekbar, but I need to draw the icons, and click on…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
-2
votes
2 answers

Seekbar min value 100 and max 0 Android

A vertical seekbar has minimum value 0 and maximum value 1000. Is it possible that at the bottom the seekbar min progress is 1000 and when at top level it becomes 0. The current seekbar range…
Dimitri
  • 1,924
  • 9
  • 43
  • 65
-3
votes
2 answers

Draw custom Seekbar on Android

I know there are a lot of libraries about that on GitHub and several questions on stack overflow about this argument. But no of those fit my needs. I just need to draw something like this : The progress line must be yellow with no thumb. Thank…
-3
votes
1 answer

Define android SeekBar programmatically

I use SeekBar in my app with ticks. Currently this SeekBar is defined in xml file: and it…
Giks91
  • 273
  • 3
  • 5
  • 20
-3
votes
2 answers

How can i implement seek bar to change contrast

I am trying to implement a seek bar to change contrast of an image in android. Anyone Help me to Implement this please.There is any other options for image processing ? Does anyone know the solution Please help me Thanks in Advance. CODE: public…
-4
votes
2 answers

What is timerSeekBar in this java code an object or variable?What is findViewById,

I checked findViewById is a method so what is timerSeekBar, an object or a variable,got told its a variable but we are calling methods with it so it should'nt it be an object.Please explain why are we writing SeekBar before findViewById. SeekBar…
rov_0
  • 7
  • 6
1 2 3
43
44