我想将
如果不行,是因为这样做被不鼓励吗?我认为不鼓励这样做,因为它可能会让用户忽略两个控件之间的区别。
以下是创建上述屏幕截图的布局:
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>