2017-04-26 59 views
0

我在設計選項卡中的廣告沒有展示的一切,我不知道我的思念, 當我把它放在我的列表視圖之前,它顯示在右上角和推我向右按鈕,我不知道有什麼可以爲這種情況的原因,AdMob沒有顯示在我的列表視圖

請幫助我,謝謝

<ScrollView 
    android:id="@+id/scrollView1" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:layout_editor_absoluteY="8dp" 
    tools:layout_editor_absoluteX="8dp"> 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:orientation="vertical" > 


     <ImageButton 
      android:id="@+id/chap1" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:background="@null" 
      app:srcCompat="@drawable/chap1" 
      tools:layout_editor_absoluteX="16dp" 
      tools:layout_editor_absoluteY="16dp" /> 

     <ImageButton 
      android:id="@+id/chap2" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:background="@null" 
      app:srcCompat="@drawable/chap2" 
      tools:layout_editor_absoluteX="16dp" 
      tools:layout_editor_absoluteY="16dp" /> 

     <ImageButton 
      android:id="@+id/chap3" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:background="@null" 
      app:srcCompat="@drawable/chap3" 
      tools:layout_editor_absoluteX="16dp" 
      tools:layout_editor_absoluteY="16dp" /> 

    </LinearLayout> 

</ScrollView> 

<com.google.android.gms.ads.AdView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_centerHorizontal="true" 
    android:layout_alignParentBottom="true" 
    ads:adSize="BANNER" 
    ads:adUnitId="@string/banner_ad_unit_id"> 
</com.google.android.gms.ads.AdView> 

+0

我已經改變了android:layout_height =「match_parent」到Android:layout_height =「WRAP_CONTENT」我已經增加的重量在同類職位建議,但這並沒有解決我的問題,我已經完成我的應用程序,現在我只有等待這個發佈我的應用程序:/ – user7833150

回答

0

scrollviewadview通過fragmentlayout