내 LinearLayout 안에 두 번째 광고 배너를 추가하고 싶지만 두 번째 banner.Works를 RelativeLayout에 외부 배너와 함께 넣을 때 내 앱이 충돌하지만 두 번째 ... ScrollView 내부에 추가하려고합니다. 무엇을 할 수 있습니까? 내 코드는 다음과 같습니다.얼마나 많은 광고 배너를 android 레이아웃에 추가 할 수 있습니까?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
/>
<ToggleButton
/>
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="xxxxxxxx"
ads:loadAdOnCreate="true"
>
</com.google.ads.AdView>
</LinearLayout>
</ScrollView>
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="xxxxxxxxx"
ads:loadAdOnCreate="true"
>
</com.google.ads.AdView>
</RelativeLayout>
그래, 왜 LinearLayout 안에 배너를 삽입 할 때 충돌이 발생합니까? – user2342687
사용중인 XML을 게시하십시오. 이 XML에서 기본 상대 레이아웃을 닫지 마십시오 – Rahul
Ok.I my XML을 업데이트했습니다 ... 두 번째 xmlns : ads = "http : // ....? – user2342687