Navigation drawer - Disable click through on items behind the drawer

前端 未结 6 2152
旧时难觅i
旧时难觅i 2021-02-06 20:34

Is there any way to make sure that the navigation drawer stays on top of the content in the fragment?

I created a small test application with dummy data. 10 fragments w

6条回答
  •  借酒劲吻你
    2021-02-06 20:57

    The problem seem not because of click focus,

    Visit https://developer.android.com/training/implementing-navigation/nav-drawer.html#DrawerLayout

    The main content view (the FrameLayout above) must be the first child in the DrawerLayout because the XML order implies z-ordering and the drawer must be on top of the content.

提交回复
热议问题