Here is my menu xml code for menu and submenu, When i press in menu that contain submenu, there is submenu autometic show title of there parent menu i want to remove it. Here is screen for it's
<item
android:id="@+id/action_call"
android:icon="@drawable/call_icon"
android:orderInCategory="1"
android:title="@string/menu_search"
app:showAsAction="always" />
<item
android:id="@+id/action_attach"
android:icon="@drawable/ic_attachment"
android:orderInCategory="2"
android:title="@string/menu_comment"
app:showAsAction="always" />
<item
android:id="@+id/menuScheduleSmS"
android:title="@string/menu_schedule_sms" />
<item
android:id="@+id/menuMore"
android:title="@string/menu_more">
<menu>
<item
android:id="@+id/menuBlockContact"
android:title="@string/menu_block_contact" />
<item
android:id="@+id/menuClearChat"
android:title="@string/menu_clear_chat" />
<item
android:id="@+id/menuEmailChat"
android:title="@string/menu_email_chat" />
</menu>
</item>
</menu>
/* remove header of submenu */
MenuItem menuMore = menu.findItem(R.id.menuMore);
if (menuMore != null) {
menuMore.getSubMenu().clearHeader();
}