修改EditText的光标颜色
16lz
2021-12-04
在使用EditText的XML 文件中加入一个属性:
android:textCursorDrawable="@null"
android:textCursorDrawable 这个属性是用来控制光标颜色的,
"@null" 是作用是让光标颜色和text color一样
android:textCursorDrawable 的用法可以查看android sdk
public static final intTextView_textCursorDrawable
Reference to a drawable that will be drawn under the insertion cursor.
Must be a reference to another resource, in the form "@[+][package:]type:name
" or to a theme attribute in the form "?[package:][type:]name
".
This corresponds to the global attribute resource symboltextCursorDrawable
.
原文链接 http://blog.csdn.net/drevy/article/details/7302345
更多相关文章
- Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区
- Android(安卓)layout xml总结
- textview设置文本每行的行间距
- Android动画学习笔记-Android(安卓)Animation
- android APP安装支持安装到SDCard
- android ctl属性的实现过程
- android控件隐藏与显示
- Android设置TextView字间距与行间距
- 整理:RelativeLayout的相关属性