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' -

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

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -