How can i get the height of BottomNavigationView using XML?

Viewed 2987

Is there any way to get the height of BottomNavigationViewheight using XML attribute just like this ?attr/actionBarSize

<com.google.android.material.bottomnavigation.BottomNavigationView 
    android:layout_width="match_parent"
    android:background="@color/whiteColor"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom"
    app:menu="@menu/bottom_navigation_menu"
    app:layout_behavior="@string/hide_bottom_view_on_scroll_behavior"
    android:id="@+id/bottomNavigationView"/>
0 Answers
Related