0
안녕하세요 여러분, 아래 코드는 LinearLayout 중력을 바닥으로 정의한 광고입니다.admod 광고가 페이지 상단에 있으며 하단에 싶습니다.
어떻게 맨 아래로 이동할 수 있습니까?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/mainLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="bottom"
android:orientation="vertical" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="50dp"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-3322077143918557/4267166755" />
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@null"
android:dividerHeight="0dp" >
</ListView>
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:context=".MainActivity" />
</LinearLayout>
맨 아래 또는 전체 레이아웃에 admod를 추가 하시겠습니까? –
예 전체 레이아웃의 맨 아래에 있습니다. –