BottomNavigation View design issue while run in tablet

走远了吗. 提交于 2020-01-16 12:00:13

问题


I am facing BottomNavigationView issue in tablet

Here is my XML code

   <com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bnvHome"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/colorBackground"
        app:layout_constraintBottom_toBottomOf="parent"
        app:menu="@menu/bottom_nav_menu" />

Menu XML-

<item
    android:id="@+id/navAppointment"
    android:icon="@drawable/ic_appointment_tab"
    android:title="@string/bn_title_appointment" />


<item
    android:id="@+id/navAvailability"
    android:icon="@drawable/ic_availability_tab"
    android:title="@string/bn_title_availability" />

<item
    android:id="@+id/navAlerts"
    android:icon="@drawable/ic_alerts_tab"
    android:title="@string/bn_title_alerts" />

Also attached screenshots of my design

Mobile Design

Tablet Design

What i have to change in XML?

来源:https://stackoverflow.com/questions/59194549/bottomnavigation-view-design-issue-while-run-in-tablet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!