Navigation drawer - Disable click through on items behind the drawer

前端 未结 6 2149
旧时难觅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:58

    You have to set clickable, focusable and focusableInTouchMode in the highest view of your drawer's layout.

    
    

提交回复
热议问题