Search code examples
androidmaterial-components

Disable tooltipText in BottomNavigationView


Im using

implementation 'com.google.android.material:material:1.1.0-alpha09'

this is my menu

 <item
    android:id="@+id/llHome"
    android:icon="@drawable/selector_menu_home"
    android:title="@string/navigation.bottom.home"
    app:tooltipText="@null" />

but as much as I write long click or disable it, the tooltip with the name of the menu continues to appear. Any idea how to disable the tooltip?

enter image description here


Solution

  • It will either show the tooltip text or the tab title. You might be able to clear out the text by iterating over all the BottomNavigationItemViews and calling TooltipCompat.setTooltipText(view, null)