2017-04-26 62 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