lawloretienne / discreteslider Goto Github PK
View Code? Open in Web Editor NEWA slider that allows a user to select a value at one of the specified tickmarks
License: Apache License 2.0
A slider that allows a user to select a value at one of the specified tickmarks
License: Apache License 2.0
I want to change icon of thub when i select and drag to other position but not found any mehod for that.
discreteSlider.setOnDiscreteSliderChangeListener in i can set thumb at position but select and drag time change icon. As like Uber app in select time change thumb icon.
Hello, its possible make animated setPosition method, to get a same effect when pressing.
It looks like gradle-wrapper.jar file was missed in this repository.
i want to give position pogramatically.
like set position with number . slider.setPosition(1)
Hello
I have following queries:
hello
how can I set the current progress. Need something like
slider.setCurrentProgress(4);
Thanks a lot
whenever onPositionChanged
is called, I have to call setPosition
to make the new position permanent. Is this an expected thing to do or is it a bug?
Hello,
thanks for the library. Its manifest sould not include any section.
hi, lawloretienne
when i set horizontalBarThickness=2dp, tickMarkRaduis=2.5dp, and a normal progressDrawable, the progressDrawable just fit tickMark's height, but not the backdrop's height.
Hi
I'm trying to have dynamic number of tickMarkCount, however after change in that value, its not reflected in UI
so when original y slider has 4 positions and in run-time I'm incising it it 5 then, slider moves like there are 5 positions but in UI I still se only four, is there any way to resolve it?
is it possible to change it to minSdkVersion 15 ?
Hi,
Trying to set thebackdropFillColor
both in XML and programatically, however it is not changing. It always stays the color that's in the demo, grey.
I want it to match the color of a layout in it's background so ideally I'd set the background to transparent but failing that, I would set it to a color of my choosing programatically.
Is this a bug?
Please guide me to change the smooth scroll speed of slider.
We have a non-linear data to be selected upon like, 1hours,1 day, 1week, 2 weeks,1 month, 6 months, 1 year, 2 year.
So this library comes as a healthy rescue. I have hit upon a problem which I am not sure is the problem with the library or it is with my code. I have tried quite a few things before thinking to write to you.
By default I set the selection for 1 week (i.e. position = 2). This works, and the circle thumb appears at the correct position. This is more like initializing the position of the slider when it is shown to the user. There after the user slides and sets the position. And we capture the user's selection in
setOnDiscreteSliderChangeListener
We get the position as argument and we perform slider.setPosition(position). This also works.
This time we have defined a red area (starts from 1 month to 2 year selection). If the user slides to any of the values in red area, we want to prompt the user that he is not allowed to select these values as he is not a premium user. I am able to read the position value from the changeListener and bring up the pop-up to the user. However sliding the thumb back to its original or for that matter even hardcoded position of 0 does not work for me (visually). the thumb does not slide back, however the position value of the slider is programatically set.
At one end when we initialize the slider, i do see that setPosition works (but this happens on main UI thread). When I try to set a position in the setOnDiscreteSliderChangeListener , i dont see the thumb moving, but the variable value of position gets set. Not sure how do I address this.
I want to change thumb icon when i drag my icon to other position. i could not found proper solution from this library.
Here i can change tick count but not get tickMark point in slider. that means count size is proper but not showing new point on slider
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.