title: Remove bottom navigation view text in android
body: <p>I use bottom navigation view for my app and want to remove the text under the icon. I looked for it on the internet but still can't find the solution. Did anyone use to deal with this please give me your solution. </p>
  
  <p><a href="https://i.stack.imgur.com/iid0V.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iid0V.png" alt="enter image description here"></a></p>
  
  <p>All i want is like this:</p>
  
  <p><a href="https://i.stack.imgur.com/7p6KL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7p6KL.png" alt="enter image description here"></a></p>
  
  <p>My code here:
  The main layout contain a recyclerview and a bottomnavigationview:</p>
  
  <pre><code>&lt;LinearLayout
      android:weightSum="10"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;android.support.v7.widget.RecyclerView
          android:layout_marginTop="20dp"
          android:layout_weight="8.5"
          android:id="@+id/recyclerview_menu"
          android:layout_width="match_parent"
          android:layout_height="0dp"&gt;
  
      &lt;/android.support.v7.widget.RecyclerView&gt;
      &lt;android.support.design.widget.BottomNavigationView
          android:background="@color/whiteColor"
          android:id="@+id/bottom_navigation_bar"
          android:layout_weight="1.5"
          app:menu="@menu/menu_bottom_navigation"
          android:layout_width="match_parent"
          android:layout_height="0dp"&gt;
  
      &lt;/android.support.design.widget.BottomNavigationView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the bottomnavigation menu:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  &lt;item
      android:id="@+id/action_favorites"
      android:enabled="true"
      android:icon="@drawable/ic_search"
      android:title="Home"
      app:showAsAction="ifRoom" /&gt;
  &lt;item
      android:id="@+id/action_schedules"
      android:enabled="true"
      android:icon="@drawable/ic_search"
      android:title="Search"
      app:showAsAction="ifRoom" /&gt;
  &lt;item
      android:id="@+id/action_music"
      android:enabled="true"
      android:icon="@drawable/ic_search"
      android:title="Save"
      app:showAsAction="ifRoom" /&gt;
  &lt;item
      android:id="@+id/action_me"
      android:enabled="true"
      android:icon="@drawable/ic_search"
      android:title="Me"
      app:showAsAction="ifRoom" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>And in MainActivity:</p>
  
  <pre><code>    mBottomBar = (BottomNavigationView) 
      findViewById(R.id.bottom_navigation_bar);
      disableShiftMode(mBottomBar);
  
      public void disableShiftMode(BottomNavigationView view) {
      BottomNavigationMenuView menuView = (BottomNavigationMenuView) view.getChildAt(0);
      try {
          Field shiftingMode = menuView.getClass().getDeclaredField("mShiftingMode");
          shiftingMode.setAccessible(true);
          shiftingMode.setBoolean(menuView, false);
          shiftingMode.setAccessible(false);
          for (int i = 0; i &lt; menuView.getChildCount(); i++) {
              BottomNavigationItemView item = (BottomNavigationItemView) menuView.getChildAt(i);
              item.setShiftingMode(false);
              // set once again checked value, so view will be updated
              item.setChecked(item.getItemData().isChecked());
          }
      } catch (NoSuchFieldException e) {
          Log.e("Luan", "Unable to get shift mode field");
      } catch (IllegalAccessException e) {
          Log.e("Luan", "Unable to change value of shift mode");
      }
  }
  </code></pre>