如何解决我可以将自适应广告放置在折叠的工具栏上吗?
我正在尝试将自适应广告放置在如下所示的折叠式工具栏中,并且效果很好。但我想知道是否违反AdMob
广告政策。
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Food_Items_Show"
>
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/Collapsing_App_Bar_Id"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"
android:fitsSystemWindows="true">
<com.google.android.material.appbar.CollapsingToolbarLayout
...>
<com.google.android.material.imageview.ShapeableImageView
.../>
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/Collapsing_Tool_bar_Id"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:layout_gravity="top"
app:layout_collapseMode="pin"
/>
</com.google.android.material.appbar.CollapsingToolbarLayout>
I have placed the ad in the framelayout due to Addaptive banner ad--------------------
<FrameLayout
android:id="@+id/bannercontainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"/>
</com.google.android.material.appbar.AppBarLayout>
当我向上滚动时(例如NestedScrollView
),自适应广告会上升并停留在工具栏上。
我可以不受限制地放置上述广告吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。