How can i add marks on seekbar like this yellow mark on seekbar in android.
But i want to to this on run time.
e.g
May be i need to add mark on 10sec and 26sec.
Thanks in advance.
How can i add marks on seekbar like this yellow mark on seekbar in android.
But i want to to this on run time.
e.g
May be i need to add mark on 10sec and 26sec.
Thanks in advance.
The Android SeekBar doesn't have an API for correctly placing marks on the bar. There is also no way of telling the actual pixel location of various positions on the bar, so you wouldn't want to guess at an overlay position.
Instead, you'll want to implement your own seekbar, maybe copying the Android source code for SeekBar as a starting point, and having it expose an api for attaching a marker at a position.
I found a solution of this problem on stackoverflow. Not perfect but working.