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
Post a Comment