画像があり、画面サイズに合わせて拡大したい。それが私のコードです:
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="false"
android:baselineAlignBottom="false"
android:cropToPadding="false"
android:maxWidth="@dimen/padding_small"
android:src="@drawable/footerheader_bg" />
何が起こるかというと、imageViewフレームは実際に画面の左右に引き伸ばされていますが、その中の画像は以前と同じくらい小さいままです。画像はJPEGであり、Macを使用しています(該当する場合)。ありがとう!