Question

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

Était-ce utile?

La solution

Found it :)

mSeekBar.setOnTouchListener(new OnTouchListener() {

        @Override
        public boolean onTouch(View v, MotionEvent event) {
            mProgressBar.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
        }
    });
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top