【发布时间】:2013-07-13 15:36:18
【问题描述】:
我如何在edittext和下面的按钮之间添加行分隔符是我的代码帮助我请我遵循本教程How to add (vertical) divider to a horizontal LinearLayout?对我没有帮助请我只想在edittext和按钮之间添加行分隔
<RelativeLayout
android:layout_height="wrap_content"
android:background="#a8a8a8"
android:layout_width="fill_parent">
<EditText
android:id="@+id/EditText01"
android:hint="Enter some text..."
android:layout_alignParentLeft="true"
android:layout_width="fill_parent"
android:background="#a8a8a8"
android:paddingTop="15dp"
android:hint="SEARCH SCHOOL BY NAME"
android:layout_toLeftOf="@+id/Button01"
android:layout_height="wrap_content">
</EditText>
<Button
android:id="@+id/Button01"
android:text="Press Here!"
android:layout_width="wrap_content"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"></Button>
</RelativeLayout>
【问题讨论】:
-
查看我的更新答案!
标签: android