Wie kann ich in Android eine Schaltfläche zur Hälfte auf einem Layout und zur Hälfte auf einem anderen Layout anzeigen?

Ich möchte ein Layout wie das folgende entwerfen:

Ich habe versucht, es mit dem relativen Layout zu tun, aber ich habe keine Lösung gefunden. Es sollte sich für alle Gerätebildschirme in derselben Position befinden. Wie kann ich das erreichen ??? Ich habe diesen Code ausprobiert:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@+id/relative_layout_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/obaz" >

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/relative_layout_bottom"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/relative_layout_top"
        android:background="@drawable/obaz2" >

        <Button
            android:id="@+id/bt_atoz"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_marginTop="-20dp"

            android:background="@drawable/button_active" />

    </RelativeLayout>

</RelativeLayout>

Jeder Vorschlag wird geschätzt.

Antworten auf die Frage(1)

Ihre Antwort auf die Frage