2011-11-22 2 views
0

다음 코드가 있습니다 .... 내 스크롤보기 외부로 광고를 가져올 수 없습니다. 이 주제에 대한 다른 질문을 따르려고했습니다. 도와주세요. 내 모든 추가 내용이 내 콘텐츠 위에 표시됩니다. 스크롤 뷰 외부에서 광고를 실행하는 것이 좋습니다.Android 용 Admob 레이아웃

내 코드 :

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 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="fill_parent" > 


     <com.google.ads.AdView 
      android:id="@+id/adView" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      ads:adSize="BANNER" 
      ads:adUnitId="xxxxxxxxxxxxxxxxx" 
      ads:loadAdOnCreate="true" /> 


    <ScrollView 
     xmlns:android="http://schemas.android.com/apk/res/android" 
       android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:fillViewport="true" > 

     <LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:id="@+id/layoutbottom" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent" 
      android:layout_alignParentBottom="true" 
      android:orientation="vertical" 
      android:padding="5dp" > 

      <!-- android:layout_height="456dp" --> 

      <TextView 
       android:id="@+id/txtPlaceName" 
       style="@style/HeaderText" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" /> 

      <TextView 
       android:id="@+id/txtAddress" 
       android:layout_width="fill_parent" 
       android:layout_height="wrap_content" /> 

      <ImageView 
       android:id="@+id/img" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" /> 

      <TextView 
       android:id="@+id/txtStory" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" /> 

      <TextView 
       android:id="@+id/txtURL" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:autoLink="web" /> 
     </LinearLayout> 
    </ScrollView> 

</RelativeLayout> 

답변

0

에 한번 당신의있는 ScrollView에 AdView가에 android:layout_alignParentTop="true"android:layout_below="@id/adView"를 추가.

+0

그건 속임수 였어! 감사합니다! –