+-
![android – 更改edittext边框颜色[复制] android – 更改edittext边框颜色[复制]](/img/no_img.png)
参见英文答案 > how to change focus color of EditText in Android 3个
我想知道如何将android中的EditText视图的边框颜色更改为其他内容…
我想知道如何将android中的EditText视图的边框颜色更改为其他内容…
这是我的edittext视图:
<EditText
android:
android:id="@+id/codeEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnEqual"
android:layout_marginTop="20dp"
android:ems="10"
android:gravity="top|left"
android:inputType="textMultiLine|textNoSuggestions"
android:scrollbars="vertical"
android:singleLine="false" >
Thanx前期.
最佳答案
有一个伟大的Widget生成器可以为您完成所有工作,它对我很有用.
您只需选择颜色和所需的小部件(例如EditText),然后您将在drawable目录中获得一个xml文件,您应该将此xml设置为您的Widget和Done的背景!
http://android-holo-colors.com/
点击查看更多相关文章
转载注明原文:android – 更改edittext边框颜色[复制] - 乐贴网