Make fragment clickable when navigation drawer is opened
问题 My problem is as follows: I lock the navigation drawer menu setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_OPEN) in the landscape mode of the tablet, but I need the fragment from the right to be active, so I can click it with navigation always opened. But I dont know how to do it. Please help. 回答1: There are a few things you need to do: Disable the layout fading by setting a transparent color: drawer.setScrimColor(Color.TRANSPARENT); Lock the drawer drawer.setDrawerLockMode(DrawerLayout.LOCK