|
24 | 24 | android:id="@+id/nav_rail" |
25 | 25 | android:layout_width="wrap_content" |
26 | 26 | android:layout_height="0dp" |
27 | | - app:layout_constraintBottom_toTopOf="@+id/ad_container" |
| 27 | + app:layout_constraintBottom_toTopOf="@+id/ad_view" |
28 | 28 | app:layout_constraintStart_toStartOf="parent" |
29 | 29 | app:layout_constraintTop_toBottomOf="@id/app_bar_layout" |
30 | 30 | app:menu="@menu/bottom_nav_menu" /> |
|
35 | 35 | android:layout_width="0dp" |
36 | 36 | android:layout_height="0dp" |
37 | 37 | app:defaultNavHost="true" |
38 | | - app:layout_constraintBottom_toTopOf="@+id/ad_container" |
| 38 | + app:layout_constraintBottom_toTopOf="@+id/ad_view" |
39 | 39 | app:layout_constraintEnd_toEndOf="parent" |
40 | 40 | app:layout_constraintStart_toEndOf="@id/nav_rail" |
41 | 41 | app:layout_constraintTop_toBottomOf="@id/app_bar_layout" |
42 | 42 | app:navGraph="@navigation/mobile_navigation" /> |
43 | 43 |
|
44 | | - <FrameLayout |
45 | | - android:id="@+id/ad_container" |
| 44 | + <com.d4rk.androidtutorials.java.ads.views.NativeAdBannerView |
| 45 | + android:id="@+id/ad_view" |
46 | 46 | android:layout_width="match_parent" |
47 | 47 | android:layout_height="wrap_content" |
48 | | - app:layout_constraintBottom_toTopOf="@+id/nav_view"> |
49 | | - |
50 | | - <View |
51 | | - android:id="@+id/ad_placeholder" |
52 | | - android:layout_width="match_parent" |
53 | | - android:layout_height="match_parent" |
54 | | - android:background="?attr/colorSurfaceContainer" /> |
55 | | - |
56 | | - <com.d4rk.androidtutorials.java.ads.views.NativeAdBannerView |
57 | | - android:id="@+id/ad_view" |
58 | | - android:layout_width="match_parent" |
59 | | - android:layout_height="wrap_content" |
60 | | - app:nativeAdLayout="@layout/ad_bottom_app_bar" /> |
61 | | - </FrameLayout> |
| 48 | + app:layout_constraintBottom_toTopOf="@+id/nav_view" |
| 49 | + app:layout_constraintEnd_toEndOf="parent" |
| 50 | + app:layout_constraintStart_toStartOf="parent" |
| 51 | + app:nativeAdLayout="@layout/ad_bottom_app_bar" /> |
62 | 52 |
|
63 | 53 | <com.google.android.material.bottomnavigation.BottomNavigationView |
64 | 54 | android:id="@+id/nav_view" |
|
0 commit comments