I have a question is How to get current duration of seekbar when click on seekbar? Thanks!
I've already try this code but it's not work:
seekBar.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
Log.i("debug", String.valueOf(seekBar.getProgress()));
}
});
At any time, you can call SeekBar.getProgress() to get the current value. To do this when the seekbar is clicked, set an OnClickListener (SeekBar.setOnClickListener) and to do this when the value is updated, set an OnSeekbarChangeListener
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With