Yeray
Yeray

Reputation: 1265

Error: I can click under the navigation drawer

I have a bug in my application and I dont know how to solve it. My application has two navigation drawer, right and left. The right navigation drawer works well but when the left navigation drawer is open and I click within it, it detect that I'm clicking in the main layout. In order to understand better I show you this picture:

enter image description here

I hope I explained well.

This is my code:

Upvotes: 5

Views: 1694

Answers (2)

Kiryl Bielašeŭski
Kiryl Bielašeŭski

Reputation: 2683

You have to write android:clickable="true" in your sliding pane layout.

Upvotes: 10

Yashdeep Patel
Yashdeep Patel

Reputation: 3140

You have framelayout for right drawer so it will transfer your click to bottom widget if your top widget is not consuming that user click. So you need to add empty view and set onclick listener and consume click there. Button will not get click any more.

Upvotes: 1

Related Questions