I have some specific requirement. I have A seek bar. Now suppose progress is 0, so as I'll increase the seek bar it must go directly 50, and as I increase the seek bar then it must go to directly 100. It is working properly. But now when I decrease the progress then it must go again 50, and when I decrease again then it must go to 0 again. So last two steps is not happening.
@Override
        public void onProgressChanged(SeekBar seekBar, int progress,
                boolean fromUser) {
            progress_value.setText(progress + "");
            if (progress > 1 && progress <= 50) {
                seek_bar.setProgress(50);
            }
            //seekBar.setSaveEnabled(true);
            if (progress ==100 ) {
                if(progress <100)
                seek_bar.setProgress(50);
            }
            if (progress > 50 && progress < 100) {
                seek_bar.setProgress(100);
            }
        }