可以在垂直的LinearLayout包裝你TextViews。 要在中間(左側或中間的右側)移動此LinearLayout,請使用具有空視圖和android:layout_weight屬性的水平LinearLayout。 例如:
RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
<ImageView
android:layout_width="match_parent"
android:src="@drawable/your_image"
android:layout_height="match_parent"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:layout_marginBottom="50dp"
android:layout_height="wrap_content">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1.2"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content">
<TextView
android:id="@+id/text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Short text"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Looooooooooooooooooooooong text"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
在此處張貼您的代碼您嘗試過什麼? – Mahesh