私はAndroidプロジェクトに取り組んでいますが、画面下部のリストビューの下に広告が重ならないように表示されるのに問題があります。
現時点では、リストビュー内にスクロールの原因となるアイテムが多数ある場合、広告はリストビューの下に表示されるはずですが、現時点では広告はリストビューの上に表示されているため、ユーザーは次のことができます。リストビューの下部にあるものを確認します。
以下は私のXMLレイアウトのコピーです
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@color/black"
android:orientation="vertical" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView android:id="@+id/password_noRecords"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="center"
android:text="There are currently\nno saved logins"
android:textSize="20dp"
android:textStyle="bold|italic"/>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>
<Button android:id="@+id/password_clearSearch"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/password_clear_search"
android:layout_alignParentBottom="true"
android:visibility="gone"/>
</LinearLayout>
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_alignParentBottom="true"
android:gravity="center_horizontal"
ads:adUnitId="a14d6125d95c70b"
ads:adSize="BANNER"
ads:testDevices="TEST_EMULATOR, 015d1884222bfe01"/>
</RelativeLayout>
私にはさまざまな方法があります。別の線形レイアウトではなく、すべてを相対レイアウト内に配置し、親のbottom = trueを揃えないようにしますが、リストビューの上部に配置され、リストビューの上部にあるものと重なります。
あなたが提供できるどんな助けにも感謝します。