0

最近、私はこの問題を解決しようとしましたが、それを行うことができませんでした。ユーザーによってレビューされたように、一部のデバイスではスクロールビューのテキストビューに広告バナーが重なっていますが、Samsung Galaxy Fit では完璧に動作します。

ここに私の完全なXMLがあります:

  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >    
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:background="#ffffff" >      
    <TextView
        android:id="@+id/tx1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:textSize="27dp"
        android:layout_marginBottom="5px" />        
    <ScrollView  xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginBottom="50px" >    
        <LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">             
            <TextView
                android:id="@+id/tx2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                android:textSize="25dp" 
                android:textColor="#000000" />              
            <TextView
                android:id="@+id/tx3"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                android:textSize="20dp" 
                android:textColor="#000000"
                android:layout_marginTop="1px" />
                 </LinearLayout>        
    </ScrollView>       
</LinearLayout> 
<com.google.ads.AdView  xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
    android:id="@+id/adView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_gravity="center_horizontal"
    ads:adSize="BANNER"
    ads:adUnitId="XXX"
    ads:loadAdOnCreate="true" />   
  </RelativeLayout>

これを解決するための助けをいただければ幸いです。Samsung アプリの認証チームから、この欠陥のビデオが送られてきまし

4

2 に答える 2

-2

ピクセルを参照するときは、px ではなく dp を使用します。scrollView で、layout_paddingBottom="50dp" と layout_marginBottom="50dp" の両方を試して、それが目的の解決策であるかどうかを確認します

于 2013-09-05T14:43:38.683 に答える