2014-02-28 3 views
0

이 코드를 사용하면 내 배너가 나타나지 않습니다 ..ScrollView 및 TableLayout이있는 Admob

나는 무엇을 할 수 있는지 알지 못합니다. 누군가 나를 도울 수 있니? 당신은 그것의 모든 부모의 사용 가능한 높이의 conume 할 수있는 ScrollView를 말한

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
    <ScrollView android:id="@+id/scrollLayout" 
     android:layout_height="fill_parent" 
     android:layout_width="fill_parent" 
     android:layout_above="@+id/adView"> 
     <TableLayout 

    android:id="@+id/myTableLayout" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    > 
    </TableLayout> 
    </ScrollView> 
    <com.google.ads.AdView 
     xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" 
     android:id="@id/adView" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_alignParentBottom="true" 
     ads:adUnitId="ca-app-pub-3950917322157508/3705058678" 
     ads:adSize="BANNER" 
     ads:testDevices="TEST_EMULATOR" 
     ads:loadAdOnCreate="true"/> 
</RelativeLayout> 

답변

0

:

내 activity_main.xml입니다. 설정을 다음으로 변경하십시오 :

<ScrollView android:id="@+id/scrollLayout" 
    android:layout_height="wrap_content" 
    android:layout_width="fill_parent" 
    android:layout_above="@+id/adView">