私は次のXMLレイアウトを持っています
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|center_vertical">
<ImageView
android:id="@+id/IVLEFT"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:background="#ff0000"
android:padding="1dp"
/>
<ImageView
android:id="@+id/IVRIGHT"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_toRightOf="@+id/IVLEFT"
android:layout_alignParentRight="true"
android:layout_alignBottom="@+id/IVLEFT"
android:layout_alignTop="@+id/IVLEFT"
android:src="@drawable/shadow_pages"
android:background="#00ff00"
android:padding="1dp" />
</RelativeLayout>
レイアウトには2つのImageViewがあります。1つは左に、もう1つは右にあります。しかし、実際に起こることは次のとおりです。
実行時に、IVLEFTの画像を大きな画像(たとえば1024X768)に設定しました-そしてそれは私のレイアウトのすべてをカバーし、IVRIGHTを放棄します(私はそれを見ることができません)
何か案は?