Android Question Deselect menu from NavigationDrawer From Additional Material Design

scsjc

Well-Known Member
Licensed User
Longtime User
Hello, i'm use a NavigationDrawer from Library DesignSupport - Additional Material Components
When i click on menu leave selected... how can deselect the click option ???

Thanks !!!
Screenshot_1476791194.jpg
 
If you want to just uncheck the item you can get the ACMenuItem object and set the Checked property to false.

If you don't want a complete menu items group to be checkable you can disable the complete group:
Code: Copy
NavDrawer.NavigationView.Menu.SetGroupCheckable(2, False, False)

If you want a single item to be not checkable just disable the Checkable property:
Code: Copy
NavDrawer.NavigationView.Menu.AddWithGroup2(2, 12, 1200, "Help", xml.GetDrawable("ic_help_black_24dp")).Checkable = False
 
Upvote 0
If you want to just uncheck the item you can get the ACMenuItem object and set the Checked property to false.

If you don't want a complete menu items group to be checkable you can disable the complete group:
Code: Copy
NavDrawer.NavigationView.Menu.SetGroupCheckable(2, False, False)

If you want a single item to be not checkable just disable the Checkable property:
Code: Copy
NavDrawer.NavigationView.Menu.AddWithGroup2(2, 12, 1200, "Help", xml.GetDrawable("ic_help_black_24dp")).Checkable = False

thanks !!!
 
Upvote 0
Back
Top