Wie android Z-Reihenfolge?

In meiner app möchte ich das zeichnen auf dem hintergrund. Ich habe Folgendes xml:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg2"
>
    <com.myapp.drawings.DrawingSurface
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/drawingSurface"
    />
    <LinearLayout
            android:orientation="horizontal"
            android:background="@drawable/bg2" 
            android:layout_width="match_parent" 
            android:layout_height="match_parent">
        <Button
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:text="OK"
                android:onClick="onClick"
                android:id="@+id/colorBlueBtn"
        />
        <Button
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:text="Save"
                android:onClick="onClick"
                android:id="@+id/saveBtn"
        />
    </LinearLayout>
</FrameLayout>

Nein, das problem ist, dass meine Zeichnung wird nicht angezeigt, wenn ich versuche zu zeichnen auf der Zeichenfläche. Das Hintergrundbild und die buttons wurden angezeigt. Und einmal habe ich Sie gespeichert, die image-Datei erzeugt, die von meiner app angezeigt. Ich denke, das problem ist die Z-Reihenfolge von meinem layout.

Irgendwelche Ideen? Vielen Dank für jede Hilfe!!! 🙂

InformationsquelleAutor Mico | 2011-09-20

Schreibe einen Kommentar