0

drawable-mdpi にある plan.jpg という背景画像ファイルがあります。

ここに画像の説明を入力

背景を表示するための次のxmlがあります。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/plan"
    tools:context=".MainActivity" >

    <com.example.anothertest.DrawPlan
        android:id="@+id/drawPlan1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true" >
    </com.example.anothertest.DrawPlan>

</RelativeLayout>

他に必要な手順はありますか?

4

1 に答える 1