I have a SeekBar inside the end panel of a DrawerLayout
The problem is that we can't swipe the Seekbar without closing the Right Panel.
If tryed to play by overriding the methods onTouchEvent and closeDrawer of DrawerLayout without success
A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys. Placing focusable widgets to the left or right of a SeekBar is discouraged.
The SeekBar class is a subclass of ProgressBar , which contains a getProgress() method. Calling PRICEbar. getProgress() will return the value you are looking for.
Found it :)
mSeekBar.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
mProgressBar.getParent().requestDisallowInterceptTouchEvent(true);
return false;
}
});
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