我想將TextView
中的文本與EditText
內的文本對齊,該文本位於其正下方。這可能沒有使用填充技巧?將TextView左對齊到EditText中的文本?
如果不是,這是因爲它氣餒嗎?我可以看到它被阻止,因爲它可能會使用戶錯失兩個控件之間的區別。
下面是創建上面的截圖佈局:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/text_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:text="Please align my first character" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/text_view"
android:hint="To my first character" />
</RelativeLayout>