定制的Andr​​oid的EditText [英] Customize Android EditText

查看:128
本文介绍了定制的Andr​​oid的EditText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法,我可以自定义的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..

这篇关于定制的Andr​​oid的EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆