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

How to remove drag effect when moving a Slider in Jetpack Compose

I'd like to remove the drag effect from the slider tick and I move it. I don't want to have this light purple circle in the image below. I'm aware of interactionSource param in the Slider component but I'm not handling it properly to…
2
votes
0 answers

Is there a way to set custom definined discrete ticks on Slider?

I am trying to create a discrete Slider (Google's material UI), but I do not see an option to specify custom ticks values. For example, say a range of 0 to 100 but only 3, 24, and 40 are selectable. Is this possible?
Brandex07
  • 85
  • 1
  • 9
2
votes
4 answers

How to change material slider font

How to change material slider bubble typeface programmatically?
2
votes
1 answer

What dependency I need to add to use com.google.android.material.slider.Slider

What dependency I need to add to my Android Studio project to use this component? And, in general, how to know what dependency I need to add to use a Google Material component?
2
votes
3 answers

Android sliders with fixed numbers

I'm trying to implement a discrete slider with fixed values, but the only thing I can set is the valueFrom, valueTo and stepSize. Here is my code how I'm trying to do
groff07
  • 2,363
  • 3
  • 32
  • 48
2
votes
1 answer

Custom Seekbar with on top value

I'm trying to make some Seekbar for my app as a distance value. I had liked it to looks something like this (image was taken from - link): Can someone please show a simple example of how to make something like this? I know that I can use "already…
1
vote
1 answer

How can I custom progress bar with button in jetpack compose?

I am trying to do custom progress bar like this in jetpack compose. When I slide the user button to the right and left, it will increase and decrease with values ​​of 0.25. The first value will be 0.25 and the last value will be 1, that is, it will…
1
vote
1 answer

Android Range Slider Label Overlaps with one another

I have android material range slider to select price range between two values. But I encountered a design issue that whenever two thumbs are brought closer to select a closer range of value, its label-text located at top of thumb overlaps. …
Sheershak
  • 39
  • 6
1
vote
1 answer

How to implement Google.Android.Material.Slider ChangeListener or addOnChangeListener events in Xamarin.Android

I added a control Google.Android.Material.Slider and I need to listen when user select a value on it. According to Google's documentation (https://material.io/components/sliders/android#using-sliders) the listeners may be addOnChangeListener or…
1
vote
2 answers

Android Material Slider OnChangeListener Response Delay/Skip Problem

So I have a "both" Slider which controls "width" Slider and "length" Slider, like below:
1
vote
1 answer

How to disable Material Slider Widget

I'm using Slider Widget from google Material library and I need to prevent user from slide the widget for a while. Is there any way to do that? (I prefer to not using onPositionChanged() method)
1
vote
2 answers

seekbar change background progress colour

I want the entire progress bar to be white, but can't figure out how to do it. This is what I have now:
1
vote
1 answer

Android change seekbar color

I have this SeekBar in my app: And this is the style…
1
vote
1 answer

How to make a seekBar with negative values?

I tried some libraries from Github but either they don't work or I couldn't figure out how to make them work. I just want to create a seekbar with float values, with a center of 0.
0
votes
0 answers

Android Studio Range Slider With Custom Thumb

I have a RangeSlider in my android project I want to change my thumbs with one of my drawables. When i tried it with seekbar in my xml code this works -> android:thumb="@drawable/my_drawable" but it doesn't work with sliders or range slider. Is…