Skip to content

Commit f2a44ab

Browse files
Refactor: Update BottomNavigationView and fix layout constraints
1 parent 21e721f commit f2a44ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
android:visibility="gone"
2727
app:layout_constraintStart_toStartOf="parent"
2828
app:layout_constraintTop_toBottomOf="@id/app_bar_layout"
29-
app:layout_constraintBottom_toTopOf="@id/ad_view"
29+
app:layout_constraintBottom_toTopOf="@+id/ad_view"
3030
app:menu="@menu/bottom_nav_menu" />
3131

3232
<androidx.fragment.app.FragmentContainerView
@@ -37,7 +37,7 @@
3737
app:defaultNavHost="true"
3838
app:layout_constraintStart_toEndOf="@id/nav_rail"
3939
app:layout_constraintEnd_toEndOf="parent"
40-
app:layout_constraintBottom_toTopOf="@id/ad_view"
40+
app:layout_constraintBottom_toTopOf="@+id/ad_view"
4141
app:layout_constraintTop_toBottomOf="@id/app_bar_layout"
4242
app:navGraph="@navigation/mobile_navigation" />
4343

@@ -47,9 +47,9 @@
4747
android:layout_height="wrap_content"
4848
app:adSize="FULL_BANNER"
4949
app:adUnitId="@string/ad_banner_unit_id"
50-
app:layout_constraintBottom_toTopOf="@id/nav_view" />
50+
app:layout_constraintBottom_toTopOf="@+id/nav_view" />
5151

52-
<com.google.android.material.navigation.NavigationBarView
52+
<com.google.android.material.bottomnavigation.BottomNavigationView
5353
android:id="@+id/nav_view"
5454
android:layout_width="match_parent"
5555
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)