Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 338
Rulogarcillan Avatar asked Aug 28 '19 09:08

Rulogarcillan


People also ask

How do I position the tooltip text?

CSS) The tooltip class use position:relative, which is needed to position the tooltip text (position:absolute). Note: See examples below on how to position the tooltip. The tooltiptext class holds the actual tooltip text. It is hidden by default, and will be visible on hover (see below).

What is a tooltip in HTML?

A tooltip is often used to specify extra information about something when the user moves the mouse pointer over an element: Top. Tooltip text. Right. Tooltip text. Bottom. Tooltip text. Left. Tooltip text.

What is the tooltiptext class?

The tooltiptext class holds the actual tooltip text. It is hidden by default, and will be visible on hover (see below). We have also added some basic styles to it: 120px width, black background color, white text color, centered text, and 5px top and bottom padding.

What is bottomnavigationview in Android?

BottomNavigationView is the best option for navigation in android. It makes life easier for a user to switch between multiple activities and fragments. It’s really a pain in the butt to use an android app without having proper navigation.


1 Answers

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)

like image 111
Cameron Ketcham Avatar answered Sep 23 '22 19:09

Cameron Ketcham