How to use a Seekbar in android as a seekBar as well as a progressBar simultaneously?
I intend to write a custom media controller for my app. I was planning to use seekbar to do both seeking and showing progress. Trying to implement this. Does anyone have such implementation or am I on the wrong path ? Finally I figured it out!! The solution that I came up with was something like this : First of all set the max progress for seekbar as the duration of the video videoView.setOnPreparedListener(new OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { seekBar.setMax(videoView.getDuration()); seekBar.postDelayed(onEverySecond, 1000); } }); This runnable will