Domanda

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

È stato utile?

Soluzione

Found it :)

mSeekBar.setOnTouchListener(new OnTouchListener() {

        @Override
        public boolean onTouch(View v, MotionEvent event) {
            mProgressBar.getParent().requestDisallowInterceptTouchEvent(true);
            return false;
        }
    });
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top