バックグラウンドをRelativeLayoutに設定しようとしています。問題は、画像のサイズに合わせてレイアウトのサイズが変更されることです。これは望ましくありません。レイアウトのサイズを2つのテキストビューの後にしたいと思います。
とにかく、レイアウトが背景のサイズに拡大縮小されないようにするには?
これはxmlコードです
<RelativeLayout
android:id="@+id/hud"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@+drawable/hud_background"
android:layout_weight="1" >
<TextView
android:id="@+id/lblScore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="Score: " />
<TextView
android:id="@+id/txtScore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/lblScore"
android:layout_alignBottom="@+id/lblScore"
android:layout_toRightOf="@+id/lblScore"
android:text="00" />
</RelativeLayout>
よろしく