ページがあります。サーバーから画像を読み込み、4 つのペアで画面に表示します。一部の画像はサイズが大きく、小さくなっています。問題は、画像が大きい場合、画像ビューが画像の実際のサイズに引き伸ばされることです。画像のサイズに関係なく、他の3つの画像を邪魔することなく画像ビューに収まるようにする必要があります。そのxmlは「
<LinearLayout android:id="@+id/videolist"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/trendingnowmanual"
android:layout_above="@+id/navigatevideo"
android:gravity="center_vertical|center_horizontal"
android:background="#ffffff"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:layout_marginTop="5dip"
android:layout_marginBottom="5dip" >
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip"
android:layout_marginBottom="5dip"
android:layout_weight="100">
<ImageView android:id="@+id/one"
android:src="@drawable/add1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="5dip"
android:layout_weight="50"
android:adjustViewBounds="true"
>
</ImageView>
<ImageView android:id="@+id/two"
android:src="@drawable/add2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:layout_weight="50"
android:adjustViewBounds="true"
>
</ImageView>
</LinearLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|center_horizontal"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
android:layout_marginTop="5dip"
android:layout_marginBottom="10dip"
android:layout_weight="100" >
<ImageView android:id="@+id/three"
android:src="@drawable/add3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="5dip"
android:layout_weight="50"
android:adjustViewBounds="true"
>
</ImageView>
<ImageView android:id="@+id/four"
android:src="@drawable/add4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
android:layout_weight="50"
android:adjustViewBounds="true"
>
</ImageView>
</LinearLayout>
</LinearLayout>
何か案が?