Bottom Navigation View With Left Righ Space Issue

后端 未结 3 730
北海茫月
北海茫月 2021-01-12 08:39

I am newbie in android, i am use bottom navigation view with two menus

but im getting left right space

Here is my Navigation View,



        
相关标签:
3条回答
  • 2021-01-12 09:15

    Solution

    Inside BottomAppBar set attribute

    android:padding="0dp"
    
    0 讨论(0)
  • 2021-01-12 09:16

    According to Material design guidelines You can't use two menus with bottom navigation use, instead of bottomNavigation view use tab layout Check this link for guidlines https://material.io/guidelines/components/bottom-navigation.html#bottom-navigation-usage

    Still, if you want to use bottom navigation view

    Try This inside BottomNavigationView

    android:background="@color/colorRed"
    
    0 讨论(0)
  • 2021-01-12 09:27

    If there are fewer than three destinations, consider using tabs instead. In Bottom

    0 讨论(0)
提交回复
热议问题