2424 android : id =" @+id/nav_rail"
2525 android : layout_width =" wrap_content"
2626 android : layout_height =" 0dp"
27- app : layout_constraintBottom_toTopOf =" @+id/ad_view "
27+ app : layout_constraintBottom_toTopOf =" @+id/ad_container "
2828 app : layout_constraintStart_toStartOf =" parent"
2929 app : layout_constraintTop_toBottomOf =" @id/app_bar_layout"
3030 app : menu =" @menu/bottom_nav_menu" />
3535 android : layout_width =" 0dp"
3636 android : layout_height =" 0dp"
3737 app : defaultNavHost =" true"
38- app : layout_constraintBottom_toTopOf =" @+id/ad_view "
38+ app : layout_constraintBottom_toTopOf =" @+id/ad_container "
3939 app : layout_constraintEnd_toEndOf =" parent"
4040 app : layout_constraintStart_toEndOf =" @id/nav_rail"
4141 app : layout_constraintTop_toBottomOf =" @id/app_bar_layout"
4242 app : navGraph =" @navigation/mobile_navigation" />
4343
44- <com .d4rk.androidtutorials.java.ads.views.NativeAdBannerView
45- android : id =" @+id/ad_view "
44+ <FrameLayout
45+ android : id =" @+id/ad_container "
4646 android : layout_width =" match_parent"
4747 android : layout_height =" wrap_content"
4848 app : layout_constraintBottom_toTopOf =" @+id/nav_view"
4949 app : layout_constraintEnd_toEndOf =" parent"
50- app : layout_constraintStart_toStartOf =" parent"
51- app : nativeAdLayout =" @layout/ad_bottom_app_bar" />
50+ app : layout_constraintStart_toStartOf =" parent" >
51+
52+ <View
53+ android : id =" @+id/ad_placeholder"
54+ android : layout_width =" match_parent"
55+ android : layout_height =" match_parent"
56+ android : background =" ?attr/colorSurfaceContainer" />
57+
58+ <com .d4rk.androidtutorials.java.ads.views.NativeAdBannerView
59+ android : id =" @+id/ad_view"
60+ android : layout_width =" match_parent"
61+ android : layout_height =" wrap_content"
62+ app : nativeAdLayout =" @layout/ad_bottom_app_bar" />
63+ </FrameLayout >
5264
5365 <com .google.android.material.bottomnavigation.BottomNavigationView
5466 android : id =" @+id/nav_view"
6678 app : layout_constraintEnd_toEndOf =" parent"
6779 app : layout_constraintStart_toStartOf =" parent"
6880 app : layout_constraintTop_toTopOf =" parent" />
69- </androidx .constraintlayout.widget.ConstraintLayout>
81+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments