Schaltfläche zeigt immer oben in FrameLayout

Habe ich FrameLayout wie diese:

<FrameLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="changeColor"
        android:text="new button"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="some text"/>

</FrameLayout>

Das problem ist, dass die Taste auf der Oberseite während FrameLayout Klasse übersicht sagt uns dies: "Kind, Ansichten gezeichnet werden, in einem stack mit den zuletzt hinzugefügten Kind auf".

InformationsquelleAutor Nokuap | 2015-08-31
Schreibe einen Kommentar