I need to create a custom progress bar with a different style. Hopefully, I found a good example how to achieve this in this thread: Custom Drawable for ProgressBar/ProgressDialog, and it's working fine.
However, I need also to display the played time in a simple view just above the progress bar. The tricky part is that this view should move along with the progress of the progressBar and display the minutes and seconds.
To fully understand me what am I talking about, just take a look at the Vimeo player: https://jira.sakaiproject.org/secure/attachment/25159/Vimeo+player+in+Sakai.jpg. (00:22).
Could you please give me some some directions from where to start, and how this effect can be achieved?
My first idea is to get the duration of the audio file (milliseconds), and then depending of the current position, convert the milliseconds to pixels and move the View horizontally with "X" pixels.... but maybe there's a more intelligent solution.