Skip to content

Commit fde9682

Browse files
committed
Update BottomNavigationView in Navigation-Component module
1 parent aa9f1a3 commit fde9682

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
xmlns:android="http://schemas.android.com/apk/res/android">
2+
<layout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools">
55

66
<androidx.constraintlayout.widget.ConstraintLayout
77
android:layout_width="match_parent"
@@ -10,9 +10,9 @@
1010

1111
<androidx.fragment.app.FragmentContainerView
1212
android:id="@+id/fragmentContainerView"
13+
android:name="androidx.navigation.fragment.NavHostFragment"
1314
android:layout_width="0dp"
1415
android:layout_height="0dp"
15-
android:name="androidx.navigation.fragment.NavHostFragment"
1616
app:defaultNavHost="true"
1717
app:layout_constraintBottom_toTopOf="@id/bottomNav"
1818
app:layout_constraintEnd_toEndOf="parent"
@@ -22,13 +22,13 @@
2222

2323
<com.google.android.material.bottomnavigation.BottomNavigationView
2424
android:id="@+id/bottomNav"
25+
style="@style/Widget.Material3.BottomNavigationView"
2526
android:layout_width="match_parent"
26-
style="@style/Widget.MaterialComponents.BottomNavigationView"
27-
android:layout_height="64dp"
28-
app:menu="@menu/main_nav_bottom"
27+
android:layout_height="wrap_content"
2928
app:layout_constraintBottom_toBottomOf="parent"
3029
app:layout_constraintEnd_toEndOf="parent"
31-
app:layout_constraintStart_toStartOf="parent" />
30+
app:layout_constraintStart_toStartOf="parent"
31+
app:menu="@menu/main_nav_bottom" />
3232

3333
</androidx.constraintlayout.widget.ConstraintLayout>
3434
</layout>

0 commit comments

Comments
 (0)