画面の幅よりも小さいが、画面よりも高さが大きい画像を使用したい。画像全体を使用できるようにスクロールビューを使用することを考えていましたが、フィッティングすると画像の元の比率が変わります。幅を調整し、高さを同じ比率で増やすにはどうすればよいですか?コードは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/tutorial"
>
<ScrollView
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/tutorial">
</ImageView>
</ScrollView>
</LinearLayout>