これは XML コードです。
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/relative_layout_main"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.adsdk.sdk.banner.AdView
android:id="@+id/ad_1"
android:layout_width="300dp"
android:background="#000000"
android:layout_height="50dp"
request_url="http://my.mobfox.com/request.php"
publisherId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
android:layout_centerHorizontal="true"
android:gravity="center"
location="true"
animation="true" />
<TextView
android:textIsSelectable="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textStyle="bold"
android:id="@+id/error_view_2"
android:layout_marginTop="20dp"
android:layout_below="@id/ad_1"
android:text="@string/gen_mess_err" />
<TextView
android:textIsSelectable="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:layout_below="@id/error_view_2"
android:id="@+id/error_view_1" />
<com.adsdk.sdk.banner.AdView
android:id="@+id/ad_2"
android:layout_width="300dp"
android:background="#000000"
android:layout_height="50dp"
request_url="http://my.mobfox.com/request.php"
publisherId="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:layout_below="@id/error_view_1"
android:gravity="bottom"
location="true"
animation="true" />
</RelativeLayout>
私が望むのは、広告を画面の上部と下部に 1 つずつ、テキストビューを画面の中央に設定することですが、これは機能しません。どのようにできるのか?
事前にThx :)