Questions tagged [android-slider]

Sliders allow users to make selections from a range of values.

Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.

Sliders can have icons on both ends of the bar that reflect a range of values.

More info in the official doc.

34 questions
264
votes
26 answers

Android - styling seek bar

I wanted to style a seek bar which looks like the one in the image below. By using default seekbar I will get something like this: So what I need is to only change the color. I need no extra styles. Is there any straight forward approach to do…
94
votes
11 answers

Custom seekbar (thumb size, color and background)

I would like to have this seekbar in my Android project : This is my seekbar :
user6299584
59
votes
8 answers

Changing step values in seekbar?

I have a seekbar, while moving it I want to change values from 0 to 200. I have a TextView, where I display those values while moving the seekbar. But I don't want to have every value from that interval(0,1,2,3,4,5...), but to have 10, 20, 30...so…
lomza
  • 9,412
  • 15
  • 70
  • 85
25
votes
4 answers

Implementation of Google design guidelines for Sliders

Yesterday I was looking for sliders in Android and found this website with the Google search: https://material.io/guidelines/components/sliders.html#sliders-discrete-slider I know that I can use a SeekBar in Android to implement sliders. However,…
14
votes
3 answers

Add a custom label to material range slider

I'm using Android material components library's latest (1.3.0-alpha01) version to display a range slider (slider with two thumbs). Now need to customize the labels and always show each thumb's value over the thumbs in TextView (without any…
12
votes
3 answers

How to show tick marks for Discrete Slider?

I'm trying to style a seekbar/slider like the one labeled Discrete Slider - Click (that has the little tick mark indicators) in the Material Design Guidelines. I can't figure out the magical incantation to have the tickmarks show up, does anyone…
11
votes
5 answers

How to get value from new android material design Slider

Using new material design slider com.google.android.material.slider.Slider. The documentation is quite poor for it as it has been just recently released. Trying to get value from slider but no luck for now. In other words, what would be a slider's…
8
votes
3 answers

Two thumbs with the slider of Material component for android?

on the sliders presentation of the Material.io website they show the double thumbs slider below, but I can't find how to enable it, and I didnt really find any docs. Is it available for the android component?
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.
5
votes
1 answer

What's the difference between slider and seekbar in android

I am new to Android and i am learning SeekBars. in Google material design site i found Sliders from (com.google.android.material.slider.Slider) package instead of seekbars. I wonder what the difference is between Slider and SeekBar, which should I…
3
votes
2 answers

How to use Databinding and LiveData for RangeSlider (valueFrom and valueTo)

I have the following RangeSlider and I am using DataBinding to provide the minimum / maximum value of the slider, as it may change while the user is on the screen. layout.xml
3
votes
1 answer

How to change slider font style?

I am using the material slider, I want to change the custom font slider's toast can anyone guide me how to change the slider's font style? My code:
3
votes
2 answers

Hide thumb on Material Slider

I'm migrating from AppCompatSeekBar to material.slider.Slider Removing the thumb on the SeekBar was easy using splitTrack="false". How can I achieve the same with the Slider?
Pablo Cegarra
  • 20,955
  • 12
  • 92
  • 110
3
votes
1 answer

Position ViewPager's (Carousel/Slider) indicators (dots) in bottom using TabLayout android studio

I want to position my dots in bottom.. I dont know why they are in top of my viewPager(image below) any solution ? my activity_main.xml :
2
votes
2 answers

Jetpack Compose Discrete Slider is not showing the exact numbers

I have implemented a discrete slider like this: class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { …
SemicolonSpace
  • 1,007
  • 11
  • 20
1
2 3