Кнопка управления музыкой перекрывается баннером admob - PullRequest
0 голосов
/ 21 октября 2018

Я пытаюсь разместить рекламу AdMob в нижней части экрана, но она частично совпадает с кнопками пользовательского интерфейса.Я также пробовал smart_banner, но все равно он не работает.Я приложил скриншот введите описание изображения здесь , пожалуйста, проверьте и дайте мне знать правильное решение для этого.Правильное изображение должно быть таким. введите описание изображения здесь

<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:sothree="http://schemas.android.com/apk/res-auto"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">


        <com.sothree.slidinguppanel.SlidingUpPanelLayout
            android:id="@+id/sliding_layout"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="bottom"
            sothree:umanoOverlay="false"
            sothree:umanoPanelHeight="0dp"
            android:layout_above="@+id/banner_container"
            sothree:umanoShadowHeight="@dimen/card_elevation">

            <FrameLayout
                android:id="@+id/content_container"
                android:layout_width="match_parent"
                android:layout_height="match_parent">

            </FrameLayout>

            <FrameLayout
                android:id="@+id/sliding_panel"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="?android:colorBackground">

                <FrameLayout
                    android:id="@+id/player_fragment_container"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" />

                <fragment
                    android:id="@+id/mini_player_fragment"
                    class="shubham.kajaria.musicplayer.ui.fragments.player.MiniPlayerFragment"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/mini_player_height" />

            </FrameLayout>

        </com.sothree.slidinguppanel.SlidingUpPanelLayout>

        <com.google.android.gms.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/res-auto"
            android:id="@+id/banner_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            android:layout_gravity="bottom"
            ads:adSize="BANNER"
            android:visibility="visible"
            ads:adUnitId="@string/ad_mob">
        </com.google.android.gms.ads.AdView>
    </RelativeLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...