AdMob에서 정말 이상한 상황입니다. 아래쪽에 광고를 배치하고 싶습니다. LinearLayout이 있습니다. 내가 할 때 결코 나타나지 않는다. 내가 위에 놓을 때 그것은 완벽하게 나타난다. 그 협상이 내 코드인지 모르겠다. 나는 말한다 로그 캣에 경고받을 수 있나요! "싶어하지 충분한 공간이 광고 게재를 < 480,75>이 있습니다 < 480, 0>"Android AdMob에서 LinearLayout 하단에 표시되지 않습니다.
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res/mypackage"
android:id="@+id/mainmenulayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/headerpic"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/header"/>
<ListView android:id="@android:id/list"
android:divider="#00000000"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawSelectorOnTop="false"
android:background="@android:color/transparent"
android:cacheColorHint="#00000000"
android:layout_alignParentTop="true">
</ListView>
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="myadunit"
ads:adSize="BANNER"
/>
</LinearLayout>
을 내에서 onCreate() :
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.appmenu);
// Look up the AdView as a resource and load a request.
AdView adView = (AdView)this.findViewById(R.id.adView);
adView.loadAd(new AdRequest());
String[] mainMenuList = getResources().getStringArray(R.array.mainMenuList);
TypedArray[] picFiles = getResources().obtainTypedArray(R.array.arrayIcon);
setListAdapter(new MyIconAdapter(mainMenuList, picFiles));
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
} //close onCreate
그래, 고마워, 나는 아직도 무게가 작동하는 방법을 배워야 해. 뒤쪽에서 일종의 높이가 0 인 것처럼 보이지만 나머지는 채우기 위해 무게를 봅니다. 정말 안드로이드 레이아웃으로 화가 나고 ... 다시 한번 감사드립니다. – JPM