私はこれと同じトピックについて多くの質問を見て、
android:adjustViewBounds="true"
android:scaleType="fitCenter"
それでも私の画像はそのまま表示されます。
android:scaleType = "fitCenter"
しかし、
fitXY
ドキュメントによると、これはアスペクト比を維持していません。では、コードを変更して期待どおりに機能させるにはどうすればよいですか?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/card"
android:layout_marginTop="25dp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/card" >
<ImageView
android:id="@+id/idImage"
android:layout_width="fill_parent"
android:layout_height="110dp"
android:layout_margin="10dp"
android:adjustViewBounds="true"
android:scaleType="fitCenter"
android:src="@drawable/783454" />
</LinearLayout>
</LinearLayout>
![ここに画像の説明を入力してください] [1]![ここに画像の説明を入力してください] [2] iamがコンセプトを見逃しているのはどこですか?