0

In my app, using bottom navigation bar. Inside bottom navigation bar,text not needed. so i put android:title="" but that icon always in top. how to set center? This is Mine
I need this type

Rob
  • 2,133
  • 3
  • 29
  • 39
Deepankumar
  • 57
  • 4
  • 10

2 Answers2

5

You can add the app:labelVisibilityMode attribute to BottomNavigationView like below. Then it automatically center positions the icons.

<android.support.design.widget.BottomNavigationView
...
app:labelVisibilityMode="unlabeled"
/>

Reference: https://developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode

Praneeth
  • 587
  • 7
  • 10
-5

Just add a space (&nbsp). This will consider a white space. Also try adding !important along with the value of property and this might also help you.

Venkat Ramanan
  • 187
  • 1
  • 7