Попитах същия въпрос и въпросната връзка е: Как да се покаже бутон половин на едно оформление и половина на друго оформление в Android? Не намерих решение за този проблем. Искам да направя това оформление отзивчиво за цялото устройство. Всеки може да ми помогне да се отърва от този проблем.
Отговори:
2 за отговор № 1Опитайте това ..! Позволете ми да знам дали това помага.
<?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" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#d67070">
<RelativeLayout
android:id="@+id/relative_layout_top"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#70a7d6">
<RelativeLayout
android:id="@+id/relative_layout_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/relative_layout_top"
>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<Button
android:id="@+id/bt_atoz"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="Button"
android:textColor="#000000"
android:layout_marginRight="10dp"
android:background="#ffffff"
/>
</RelativeLayout>