营销网站制作流程,wordpress邮箱模板,专业网站制作公司是如何处理一个优秀网站的,网页背景图片适合网页介绍一种比较常见的用法 第一步#xff1a;准备两张图片大小一样#xff0c;颜色不同的图片。图片名称分为#xff1a;editbox_focus.png和editbox_normal.png 放入工程的drawable文件夹下。 第二步#xff1a;在drawable文件下创建 my_edittext.xml文件 内容如下#xff…介绍一种比较常见的用法 第一步准备两张图片大小一样颜色不同的图片。图片名称分为editbox_focus.png和editbox_normal.png 放入工程的drawable文件夹下。 第二步在drawable文件下创建 my_edittext.xml文件 内容如下 ?xml version1.0 encodingutf-8? selector xmlns:androidhttp://schemas.android.com/apk/res/android item android:drawabledrawable/editbox_focus android:state_focusedtrue / item android:drawabledrawable/editbox_normal //selector 第三步编辑values文件下的styles.xml文件 内容如下 style namemy_edittext_style parentandroid:style/Widget.EditText item nameandroid:backgrounddrawable/my_edittext/item /style 第四步在所要添加边框的editText中设置style属性 内容如下 EditText android:idid/editText1 android:layout_widthwrap_content android:layout_heightwrap_content android:layout_alignParentLefttrue android:layout_alignTopid/textView1 android:ems10 android:inputTypetextPersonName style style/my_edittext_style/ 以上步骤就是简单自定义边框设置。 转载于:https://www.cnblogs.com/michaelShao/p/4445635.html