You will have to modify this a little. It does most of the job but you have to be prepared to do some coding to get exactly what you want.
Just tap the screen in the area of the progress display to set a value. The subroutine displayProgress(pcnt) draws the progress bar as a percentage value. The "touch_Touch" subroutine detects screen tap positions and converts them to percentage values. The "external scaling" value (0-500 for your case), is set in the last line.
I have extracted this code from a project of my own, but I have not tidied it up very much. If it is what you are looking for but you need more information then let me know, but I am hoping that you can adapt it into exactly what you want.
Hi, I needed the same and worked on Erel's code to get it.
You can set max value in the Designer and by code, and can also change colors, size, duration and stroke by code.
Hope it's what you are looking for.
- Added 'SetLayout' method. This way it is easier to position the view and the label is presented correctly. In my previous version it wasn't when the layout was modified.
- Added 'AnimationType' property, that can be set in Designer and code. Ease-In Ease-Out animation isn't fine sometimes, e.g. with temporizers. It's easy to add more animations, just by looking at the code and visiting the page provided by Erel: http://gizma.com/easing/
- Can change label TextColor, Typeface and TextSize by code