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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -