定制的Andr​​oid的EditTextAndr、oid、EditText

2023-09-09 21:00:11 作者:独守一座空城

有没有办法,我可以自定义的Andr​​oid的EditText就像下面的图像的方法吗?谢谢你。

Is there a way that I can customize the android EditText just like the image below? Thanks.

推荐答案

试试这个

<LinearLayout android:layout_height="wrap_content"
    android:layout_width="match_parent" android:background="@color/front_white"
    android:orientation="vertical">
    <EditText android:layout_height="35dip" android:layout_width="fill_parent"
        android:id="@+id/editText1" android:background="@color/front_white"
        android:hint="Email Address"></EditText>
    <TextView android:layout_height="1dip" android:layout_width="fill_parent"
        android:background="@color/dark_gry" />
    <EditText android:layout_height="35dip" android:layout_width="fill_parent"
        android:id="@+id/editText2" android:background="@color/front_white"
        android:hint="Re-enter"></EditText>
</LinearLayout>

我希望这是你正在寻找。

I hope it is what you are looking for..