i was wondering if i can change the slider thumb image to percent. basically what i want is that if the slider position is at 10 then thumb should show 10%. similarly if slider position is at 50 then slider thumb should show 50%. is it possible? if yes then pls guide me how to do this.
(consider slider min value 1 and max value to 100)
Hi
Firstly, I’d like to remind you that this is a community run forum, meaning people will respond to you as and when they find time.
It isn’t unusual for one to wait at least 12 hours before they can expect a response.
Coming to your question, I’m not sure if what you’re asking is possible.
But I stand to be corrected.
Step 1: Only allow integers for ease of use. To do this, when the slider is moved, set the slider position to the current position rounded off.
Step 2: join(slider position, “%”)
It’s a bad idea because the slider knob would be completely hidden by the user’s finger. You could display the text in a moving label or a Canvas. I’ll try to get something prototyped tomorrow unless someone does it earlier.
I did a little modification on my slider via canvas example from here:
and just set the width and height of the image sprite to the player volumen (1-100).
With the multiplikator (x3 for example) you may finetune the scale of your imagesprite