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

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -