0

広告が小さくてクリックできない理由がわかりません。ここに 2 つのリンクがあります。1 つ目は私の広告です。2 つ目は別の広告です。広告を同じサイズでクリックできるようにしたいのですが、いろいろ試しましたが、取得できませんでした http://imageshack.us/f/13/ 6o0t.jpg/ http://imageshack.us/f/547/s8l3.jpg/

ここに私の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="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg" >

    <ListView
        android:id="@+id/lst_add_newDevices"
        android:layout_width="200dp"
        android:layout_height="fill_parent"
        android:layout_alignParentRight="true"
        android:layout_marginRight="40dp"
        android:layout_marginTop="20dp"
        android:background="#22222222"
        android:cacheColorHint="#00000000"
        android:scrollbars="none" >
    </ListView>

    <RelativeLayout
        android:id="@+id/RelativeLayout_main"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/f"
        android:orientation="vertical" >

        <LinearLayout
            android:id="@+id/l1"
            android:layout_width="fill_parent"
            android:layout_height="90dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentLeft="true"
            android:layout_marginBottom="10dp"
            android:gravity="center_vertical"
            android:orientation="horizontal" >

            <ImageButton
                android:id="@+id/moreapps1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1.0"
                android:background="@null"
                android:src="@drawable/moreapps" />

            <ImageButton
                android:id="@+id/show1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1.0"
                android:background="@null"
                android:src="@drawable/show" />
        </LinearLayout>
    </RelativeLayout>

    <com.google.ads.AdView
        android:id="@+id/ad"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"    
        ads:adSize="BANNER"
        ads:adUnitId="id"
        ads:loadAdOnCreate="true" />

    <ImageView
        android:id="@+id/about"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scaleType="fitXY"
        android:src="@drawable/final_about"
android:visibility="gone" />

</RelativeLayout>
4

1 に答える 1

0

ListView には android:layout_height="fill_parent" があります。

推測にすぎませんが、それはページ全体に表示されることを意味すると思います。つまり、広告と重なっている可能性があります。広告が ListView の下にある場合、クリックできません。

広告をボタンに置​​き換えてみてください。クリックできない場合は、私の推測が正しいことを示しています。

于 2013-12-19T20:42:49.180 に答える