내 레이아웃에서 Adview
을 테스트하고 있습니다. ListView
앞에 Adview
을 배치하면 모든 것이 잘되지만, ListView
후에 배치하면 그냥 나타나지 않습니다.왜 ListView 후에 Adview를 배치 할 수 없습니까?
무엇이 잘못 되었나요?
<LinearLayout 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="wrap_content"
android:orientation="vertical" >
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="bottom"
android:background="@android:color/white" />
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="xxxx"
ads:testDevices="xxxx" />
</LinearLayout>
위대한! 감사합니다 @ K-ballo, 그 코드를 시도했지만 AdView에서 사용해야한다고 생각했습니다. 이제 잘 작동합니다. – eskalera
이것은 UI를 정렬하는 데 사용되지만 광고가로드되고 표시되는 즉시 ListView가 데이터의 아래쪽으로 스크롤됩니다 .-( –
'android : transcriptMode'는 비활성화해야합니다 .-- 이제 더 이상 스크롤하지 않습니다. –