Ich habe ein lineares Layout innerhalb eines relativen Layouts und ich versuche, das übergeordnete Layout relativ zum unteren Rand des Bildschirms auszurichten.Andorid: Wie ordne ich alle Elemente im relativen Layout am unteren Rand des Bildschirms
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom">
<TextView
android:id="@+id/fruits"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Fruits"
android:layout_centerHorizontal="true"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16sp"
android:layout_alignParentBottom="true"
android:gravity="bottom">
<TextView
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="Message: " />
<EditText
android:id="@+id/message_text"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
Im Grunde ein Text zum Zentrum versucht, und es gibt einen Text und Text bearbeiten unter ihm und richten sie alle an den unteren Rand des Bildschirms Diese
Fruits
Message: ___________________________
würden Sie ein Bild zeichnen, um deutlich zu machen, wo man Dinge sein wollen!? – MohammedAlSafwan
Ich möchte diese ganze Sache am unteren Rand des Bildschirms sein –