これを行うにはaを使用できることはわかっていますが、「ステータス」バーのようなものとして、レイアウト全体の下部に固定する必要がある別LinearLayout
のaを使用する必要があります。また、タイトルとテキストをステータスバーの上にあり、上に揃えます。ステータスバーを機能させる唯一の方法は、を使用することでした。唯一の問題は、タイトルとテキストが互いに重なっていることです。テキストはタイトルのすぐ下にある必要があります。RelativeLayout
RelativeLayout
RelativeLayout
TextViews
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:paddingTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
>
<RelativeLayout
android:id="@+id/status"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true"
android:paddingTop="10dp"
>
<TextView
android:id="@+id/status"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
/>
</RelativeLayout>
<TextView
android:id="@+id/title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/status"
android:layout_alignParentTop="true"
/>
<TextView
android:id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title"
android:layout_alignParentTop="true"
/>
</RelativeLayout>
</FrameLayout>