android - 自定义 Android EditText

标签 android android-edittext customization

有没有办法像下图一样自定义android EditText?谢谢。

Customize EditText

最佳答案

试试这个

<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>

希望这就是你要找的..

关于android - 自定义 Android EditText,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7316214/

相关文章:

android - 如何使用 picaso 库而不是可绘制资源将图像作为 url 传递到 arraylist 中?

android - 以编程方式更改 Android 的 EditText 光标指针颜色

创建 printf 的自定义版本

ios - Cocos2d : How Can I Make a Small Scrollable & Customisable List Like Doodle Jump's Leaderboard

windows - 在哪里可以找到在 Windows 上运行的 Emacs 的 .emacs 文件?

android - java.lang.ClassNotFoundException : Didn't find class on path: DexPathList , 更新sdk后

android - java.lang.ClassNotFoundException : Didn't find class "android.support.v4.app.CoreComponentFactory"

Android,如何修复 EditText 的最大字符长度/大小

java - 无法使用 Android PhotoView Activity

java - 字符串操作每 4 个字符插入一个字符