自定义Android编辑文本

自定义Android编辑文本,android,android-edittext,customization,Android,Android Edittext,Customization,有没有一种方法可以像下图一样定制android编辑文本?谢谢 我认为在你的布局中,你可以放置两个编辑文本 还有一张照片 因此,您将有一个布局,该布局将有一个背景图片,然后是esit框是。设置线性/相对或任何用于将编辑文本保存到银色图像的布局的背景 添加编辑文本并将背景设置为透明颜色。添加包含所需内容的文本提示 添加另一个带有边框的图像视图。试试这个 <LinearLayout android:layout_height="wrap_content" android:layout_w

有没有一种方法可以像下图一样定制android编辑文本?谢谢


我认为在你的布局中,你可以放置两个编辑文本 还有一张照片
因此,您将有一个布局,该布局将有一个背景图片,然后是esit框

是。设置线性/相对或任何用于将编辑文本保存到银色图像的布局的背景

添加编辑文本并将背景设置为透明颜色。添加包含所需内容的文本提示

添加另一个带有边框的图像视图。

试试这个

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


我希望这就是你要找的

在xml文件中使用此属性

android:drawableBottom=“@drawable/ic_启动器”