admobサイトで提供されているコードを使用しました
これが私のxmlです
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_img"
android:orientation="vertical"
android:id="@+id/atozlayout"
>
<GridView
android:id="@+id/gridView1"
android:numColumns="auto_fit"
android:gravity="center"
android:columnWidth="55dp"
android:stretchMode="columnWidth"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
>
</GridView>
</LinearLayout>
しかし、logcatはE / Ads(4244)を示しています:広告を表示するのに十分なスペースがありません!欲しいもの:<480、75>、持っているもの:<800、0>
レイアウトが問題を引き起こしているようです。修正方法を提案してください。どうもありがとう。