背景画像を線形レイアウトで垂直方向と水平方向の両方に伸縮または拡大縮小する方法を教えてください。ただし、背景を設定しようとするたびに、画面に合わせて画像が引き伸ばされません。アスペクト比を維持することも気にしません。
現時点でテストxmlにあるものは次のとおりです。
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/title"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/background">
</LinearLayout>
プレビュー (およびゲーム) では次のように表示されます。
layout_height を fill_parent に変更すると、背景が繰り返し表示されます。
解決策は非常に基本的なものだと確信していますが、何らかの理由でそれがありません。どんな助けでもいただければ幸いです
ありがとう