Exemplo n.º 1
0
        private void SetMenuSelection(int pos)
        {
            int parentPos = drawerAdapter.GetParentPosition(pos - 1);

            DrawerListView.ClearChoices();
            if (parentPos > -1)
            {
                DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeMultiple;
                DrawerListView.SetItemChecked(parentPos, true);
                DrawerListView.SetItemChecked(pos, true);
            }
            else
            {
                DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeSingle;
                DrawerListView.SetItemChecked(pos, true);
            }
        }
Exemplo n.º 2
0
 private void SetMenuSelection(int pos)
 {
     DrawerListView.ClearChoices();
     DrawerListView.ChoiceMode = (ChoiceMode)ListView.ChoiceModeSingle;
     DrawerListView.SetItemChecked(pos, true);
 }