Hello! Tell me please, can I set my own width for BottomNavigationView elements (built-in widget from Android)? In particular, I have 4 menu items; I want to give them a 4: 4: 3: 1 width ratio:

<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/favorites" android:icon="@mipmap/ic_favorites" android:title="Избранное"/> <item android:id="@+id/home" android:icon="@mipmap/ic_keyboard" android:title="Позвонить" /> <item android:id="@+id/contacts" android:icon="@mipmap/ic_contacts" android:title="Контакты" /> <item android:id="@+id/settings" android:icon="@mipmap/ic_settings" android:title="" /> </menu> 
  • one
    Most likely this is impossible without wild, hellish hacks. In this case, it is easier to use markup from a regular view + own animation. According to Google's guides, this widget itself should determine the size of its cells - YuriySPb
  • Thank! It is a pity that it is impossible ... - Paul

0