EditText上的改变线条颜色 - 机器人 [英] Change Line Color of EditText - Android
本文介绍了EditText上的改变线条颜色 - 机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以更改的EditText
线条颜色。当有效时,它有一些发绿。
Can I change the line color on EditText
. When is active it has some greenish color.
是否有可能时,是主动改线只有颜色,我怎么能做到这一点...?
Is it possible to change only the color of line when is active, and how can I do this...?
推荐答案
您需要设置背景来源为编辑文本。
You need to set background source for an edit text.
- 生成它 http://android-holo-colors.com/
- 比你可以应用生成的绘制作为背景像
安卓背景=@可绘制/ my_theme_edit_text
自定义的EditText
。或者你也可以设置背景,你的应用程序的主题 - 你会发现例如.zip文件从该网站
- Generate it http://android-holo-colors.com/
- Than you can apply generated drawable as background like
android:background="@drawable/my_theme_edit_text"
for the customEditText
. Or you can set that background in your app theme - you will find example in .zip file from that site
这篇关于EditText上的改变线条颜色 - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文