CircularDemo
CircularDemo copied to clipboard
https://github.com/daentech/CircularDemo regarding maximum and minimum values
how can i set values from 0 to 100 instead of 0 to 1 so that i can show values from 0 to 100 %
Passing a float of 0 to 1.0f will give you the values 0-100% as 100% is 1.0f :)
i m also trying to show values using for loop or inside the thread means that will run from 0 to 1 and will show value in Progres bar that will be something like some work is doing in background how can i do that ...i have taken for loop but its not working fine .....can u pls help me i have to show this animation for 1 sec or for 2 sec on start of activity it will show progress values from 0 to 100% and one thing more can i slow down the animation speed and how can i add sound as soon as my progress value reaches 100%
@erumhannan If you set the value repeatedly the animation should move from the value it is currently set at to the new value. This should mean that if you keep setting it in your for loop it should animate to that position.
If that isn't working, could you describe the problem you're seeing?
If you want to change the speed, the startAnimation method has a hardcoded duration. If you alter the 500 to whatever time you want in milliseconds it will change this.
If you want to play a sound I would probably call the sound code from the place where you send 1.0f to this graph.