Android: How to remove overflow menu icon tooltip? -
in android, when onlongclick
overflow menu item icon, tooltip of title appear.
i've tried setting menu title blank, blank tooltip pop up.
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_icon" android:title="icon title" android:icon="@drawable/ic_myicon" app:showasaction="always"/> </menu>
notes:
• i'm using app namespace because android studio telling me use due having theme.appcompat.light.noactionbar
theme. i've tried android namespace. doesn't work either.
• menu created in fragment
hasoptionsmenu(true)
.
• actionbar toolbar
.
how can remove tooltip if it's possible? thanks!
yes possible. in java class remove public boolean oncreateoptionsmenu(menu menu) , job done. if no remove java class public boolean onoptionsitemselected(menuitem item)
Comments
Post a Comment