AdView는 몇 초 후에 표시되지만 투명하며 listView가 전체 화면을 차지합니다. 모든 곳을 보았지만 Adview가 작동하지 않습니다. ListView가 Adview를위한 공간을 만들기 위해 내가 뭘 잘못하고 있는지 알 수 있습니까?ListActivity에서 Admob 투명
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.activity_with_adview);
}
내가 맨 위에 목록 조각을 마련했다
<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="match_parent"
android:orientation="vertical" >
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="xxxxxxxxxxxxxx"
ads:loadAdOnCreate="true"
ads:testDevices="TEST_EMULATOR"
android:background="@android:color/black" />
<LinearLayout
android:id="@+id/home_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/adView"
android:orientation="vertical" >
<ListView
android:id="@id/android:list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/black" >
</ListView>
</LinearLayout>
</RelativeLayout>