android - How to get the parent of a menu item? -


in click listener

 public boolean onnavigationitemselected(menuitem item) 

how can find parent menu of item? want able go through each item of menu contains item , change child elements. far can determine group in

    int groupid = item.getgroupid();     if (groupid == r.id.group1) {      } 

thanks


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

java - Log4j2 configuration not found when running standalone application builded by shade plugin -

python - How do I create a list index that loops through integers in another list -