設置佈局時出現問題。AD加載期間的佈局問題
廣告之前加載,它看起來是這樣的:加載廣告
後,一切都將它的位置。它看起來像這樣(糾正)
有誰知道如何解決這個問題?這不僅僅是在AD加載的時候看起來「醜陋」,AD也可能永遠不會加載,並且佈局可以永遠保持這種方式(第一圖像)。
有什麼建議嗎?
我有這樣的XML佈局:
<com.example.touch.TouchImageView android:id="@+id/mytouchview"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:layout_above="@+id/relat"
/>
<RelativeLayout
android:id="@id/relat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_above="@+id/myAdView"
>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="3dp" android:layout_alignParentLeft="true"
android:background="@null" android:src="@drawable/previous" android:id="@+id/previous"/>
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:textSize="20sp" android:text="2/15"
android:id="@+id/memeNumber" android:layout_centerInParent="true" android:layout_margin="5dp"/>
<ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="3dp" android:layout_alignParentRight="true"
android:background="@null" android:src="@drawable/next" android:id="@+id/next"/>
</RelativeLayout>
<com.csjy.sfwn148282.AdView
xmlns:ap="http://schemas.android.com/apk/res-auto"
android:id="@id/myAdView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ap:animation="fade"
ap:placementType="interstitial"
ap:banner_type="inappad"
ap:test_mode="true"
ap:canShowMR="false"
android:layout_alignParentBottom="true"
/>
編輯:
後@Szymon回答佈局看起來是這樣的。沒關係,因爲加載廣告時是一樣的。問題是,現在,按鈕丟失..
謝謝。有效 :) – rootpanthera