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".
- Sie können Linear-layout
- Mögliche Duplikate von Falsche overlay-Verhalten im FrameLayout