Reputation: 802
I will be working on an app that records button presses, where I can play back that session on a SeekBar. Each event will be timestamped from the value of a Chronometer. When playing back, on each of those recorded events I will play a sound. That part shouldn't be a problem.
Now, what I would like to figure out is how I can mark the timestamps on the SeekBar by drawing red bars at the positions where each event occurred. I would like the red bars to be drawn prior to playback.
Since I haven't started this app yet, I don't have any code at this time.
Upvotes: 5
Views: 1036
Reputation: 1378
You can't mark anything on seek bar. So don't use seek bar. Just use a simple Pixels to draw as a line with width of match_parent and height of 2dp. Put a small circular image as seek bar over there. Then mark pixels wherever you want marking.
Look at the concept
...................O............................................................
This is your seekbar. Mark particular point for you dynamically.
Upvotes: 0
Reputation: 1463
If I were to this, I would use the following procedures:
I know this isn't code but hopefully it will give you a good idea on how to solve this problem.
Upvotes: 2