开发者

Android change TextField outline/boarder color

开发者 https://www.devze.com 2023-03-25 04:02 出处:网络
I have a text field, and on Android 2.2, when it 开发者_如何学Cis in focus or being used, it highlights it and puts an orange boarder around it.

I have a text field, and on Android 2.2, when it 开发者_如何学Cis in focus or being used, it highlights it and puts an orange boarder around it.

The orange really doesn't look good with the other colors in my app, so I am wondering if there is any way to change that to a different color...

Thanks in advance.


You can write selectors for your textview using which you can change the appearance of your textview when it is selected. You can refer to this: http://developer.android.com/reference/android/content/res/ColorStateList.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号