문제

I am getting a strage behaviour with my navigation drawer. I use a custom layout for it, containing not only the usual listview!

Whenever i click somehwere in the drawer section the rows from the behind listview are getting clicked. How can i disable that?

SOLUTION: just set android:clickable="true" on the parent layout in the drawer outside the listview and it all works fine.

Thanks for your answers.

도움이 되었습니까?

해결책

Try this in your MainAcivty with the drawer content when it's open, to disable sending touch events to parent layout

getParent().requestDisallowInterceptTouchEvent(true);

다른 팁

Set android:clickable="true" to the parent layout in the drawer section.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top