In Android, when you onLongClick
an overflow menu item icon, a tooltip of its title will appear.
I've tried setting the menu title to blank, but a blank tooltip will 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 is telling me to use it due to having Theme.AppCompat.Light.NoActionBar
as my theme. I've tried android namespace. Doesn't work either.
• My menu is created in a Fragment
with hasOptionsMenu(true)
.
• My ActionBar is a Toolbar
.
How can I remove this tooltip if it's possible? Thanks!