意図している通りか分かりませんが、
l-------------l
l l
l l
l-------------l
l-------------l
l l
l l
l-------------l
のような配置のコードは以下のようになります。(layout_weightプロパティがキモです)
lang
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 android:orientation="vertical" android:layout_width="match_parent"
4 android:layout_height="match_parent">
5
6 <LinearLayout
7 android:background="#0000FF"
8 android:orientation="horizontal"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:layout_weight="1"/>
12
13 <LinearLayout
14 android:background="#FF0000"
15 android:orientation="horizontal"
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:layout_gravity="center_horizontal"
19 android:layout_weight="1"/>
20</LinearLayout>
![イメージ説明]WIDTH:600
余談ですが質問の際はxmlのコードも添付すると、適切な回答が得られやすいかと思います!
追記:
上記コードではRelativeLayoutではなくLinearLayoutになっていますが、RelativeLayoutでも同様です
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。