Wie setzt Vorder-Attribut zu einem anderen nicht FrameLayout anzeigen

Ich würde gerne wissen, wie sich zu bewerben oder emulieren Vordergrund-Effekt in eine Ansicht unterscheidet sich von FrameLayout, als LinearLayout oder RelativeLayout

Dies ist, was ich jetzt habe:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/cardContent"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/row_background"
    android:foreground="@drawable/foreground_row">

    ...

</FrameLayout>

Und ich will etwas wie:

<?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/cardContent"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/row_background"
        app:foreground="@drawable/foreground_row">

        ...

    </RelativeLayout>

Vielen Dank im Voraus!!

InformationsquelleAutor cesards | 2013-05-28
Schreibe einen Kommentar