Skip to content
Advertisement

RelativeLayout dosen’t get OnClick Events because of the DrawerLayout

If I set the order as seen in the picture –> Image

The DrawerLayout is drawn under the content_main And the DrawerLayout dosen’t get OnClickEvents

If I set The Order: first content_main then drawer_layout

The DrawerLayout is drawn over the content_main but the content_main doesn’t get OnClick Events

Here my activity_main.xml

JavaScript

The Problem is only one of the layouts get OnClickEvents. How do i do that both Layouts get OnClickEvents.

Sorry for my English.

Advertisement

Answer

You should put the content_main into the DrawerLayout as seen in the picture.

Picture

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement