내 애플리케이션에 adview를 추가하려고합니다. 문제는 adview가 버튼 옆에 표시되고 화면의 하단에는 보이지 않는다는 것입니다. android : layout_gravity = "bottom"을 시도했지만 효과가 없으므로 상위 레이아웃이 선형 레이아웃입니다. 당신은 간단한 설정을 할 수선형 레이아웃의 하단에 adview가 표시됩니다.
<com.google.ads.AdView android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
android:layout_gravity="bottom"
ads:adUnitId="xxxxxxxxxxx"
ads:testDevices="TEST_EMULATOR"
ads:loadAdOnCreate="true"/>
<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:gravity="center"
android:orientation="vertical"
android:layout_height="wrap_content">
LinearLayout을 사용하는 경우 Android로 변경하십시오. layout_gravity = "bottom"to android : gravity = "bottom" –
'RelativeLayout'을 사용하십시오. 이것을 확인하십시오 [답변] (http://stackoverflow.com/questions/18191535/align-fragment-on-bottom-of-screen) – zella
다른 종속성 때문에 선형 레이아웃을 수정할 수 없습니다. – Psypher