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
1 answer

Multiple seekbar in one java class, need implement each setOnSeekBarChangeListener for each seekbar?

I need to make multiple seek bar in the same Java class. However, I wonder do we need to set each setOnSeekBarChangeListener for each seek bar? The code seems too long if I am doing so (I need to create 10 seek bar in the same class). Is there any…
-1
votes
1 answer

Need to make custom seekbar for music player

I want to make a seekbar like the one in the figure for a music player project I'm working on. Searched everywhere could not find anything helpful, any help will be appreciated
Balu B
  • 13
  • 1
  • 2
-1
votes
1 answer

Android Studio 3.0 Development Essentials Kotlin Edition Chapter 37 - Fragments

this is my first Android/Kotlin question and new to android so please have patience with me. In this android book which is listed in the title on chapter 37 when I try to use the "seekBar" to make text bigger/smaller the app crashes. I am used to…
Lukas Bimba
  • 817
  • 14
  • 35
-1
votes
1 answer

How to make SeekBar to change colors on different positions?

I need to make SeekBar with 3 positions that will change color on each of them, green, yellow and red. For now i am still on beginning of code
-1
votes
1 answer

Android custom seekbar/progressbar like this (see image)

I want to create one custom seekbar/progress bar like this.. Any idea or link how to achieve this ? (see the shape and three color) Thanks.
-1
votes
1 answer

TextView not Displaying Seekbar

I just had this issue now and I can't figure out how to solve this. I created an app which can calculate the average of four subjects (Science, Mathematics, English, and Programming). The user can input the student's grade using a seekbar (the…
pokoyo
  • 19
  • 5
-1
votes
1 answer

Adding values (interval text) on top discrete seekbar

How to add values(interval text) on top discrete seekbar. For example:- I want to add 0-9(interval value) on top of seekbar Any help appreciated.
Joe
  • 550
  • 2
  • 11
  • 21
-1
votes
1 answer

seek bar not working when playing mp3 song from server

In my app I am trying to play a media player from server along with a seek bar. When I tried to play the song from server, my app was working fine but the seek bar was not getting moved ! Also, The seekbar is not working.... It's not…
-1
votes
1 answer

How to set Min and Max value dynamically?

Im using this link https://github.com/Jay-Goo/RangeSeekBar. Import this rangeseekbar module .how to set min and maximum value programatically. Here java code, seekbar1.setOnRangeChangedListener(new RangeSeekBar.OnRangeChangedListener() { …
user8438324
-1
votes
1 answer

Handle NullPointerException with SeekBar

I am receiving a NullPointerException sometimes with my SeekBar. I am learning Android, and I am not able to find the proper way to fix this error. I am using the below code for the onStopTrackingTouch SeekBar: public void…
Priya
  • 1,602
  • 4
  • 22
  • 37
-1
votes
2 answers

Android set seekbar with decimal

So I have a seekbar that I want to display or setProgress the value of that I get from SharedPreferences String, but since I can't use decimals, I am not 100% sure how to do this, can someone point me in the right direction? String BarValue =…
Jayce
  • 781
  • 3
  • 16
  • 35
-1
votes
2 answers

Detect direction of SeekBar movement

I have a multiple SeekBars. I want to detect details about change in every SeekBar's progress value in order to calculate/update totalVal. More specifically, I want to detect whether the selected SeekBar value was moved to the right or to the left…
an0o0nym
  • 1,456
  • 16
  • 33
-1
votes
1 answer

draw circle and update radius by seekbar

i have an activity which contain this seekbar and have another view of drawing which is drawing circle in Ondraw() mathod,i dont get any solution can anyone help. here is my code Activity.java protected void onCreate(Bundle savedInstanceState)…
jigar savaliya
  • 474
  • 1
  • 8
  • 21
-1
votes
1 answer

Change seekbar color depending on progress

I have a SeekBar in one of my activites in my app. That seekbar gives me an importance of the object I create. Importance can be 0,1 or 2. I'd like to dinamically change the background color of my SeekBar when I'm using it. How can I do that ? Here…
David
  • 221
  • 3
  • 13
-1
votes
1 answer

Nearest step seekbar discret

As you can see in this image I have a seekbar with 3 stes. If I tap (for example) on the black dot, the seekbar will select the second step but the nearest step is the third one. So, how can I have a seekbar that select the nearest step?
1 2 3
43
44