在使用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.

Constant Value:70 (0x00000046)


原文链接 http://blog.csdn.net/drevy/article/details/7302345

更多相关文章

  1. Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区
  2. Android(安卓)layout xml总结
  3. textview设置文本每行的行间距
  4. Android动画学习笔记-Android(安卓)Animation
  5. android APP安装支持安装到SDCard
  6. android ctl属性的实现过程
  7. android控件隐藏与显示
  8. Android设置TextView字间距与行间距
  9. 整理:RelativeLayout的相关属性

随机推荐

  1. Java及Android中常用链式调用写法简单示
  2. Android(安卓)API Guides---Motion Senso
  3. [掌上智能] 为什么Android即使硬件高一档
  4. android 摇摇棒 之surfaceView vs. View-
  5. 微信检查被删好友(Android(安卓)Accessibi
  6. PackageInstaller 5.0源码分析静默安装与
  7. Android(安卓)P的系统架构
  8. Android(安卓)中 View移动总结:ViewDragHe
  9. Android(安卓)Camera API/Camera2 API 相
  10. Android下使用TCP/IP协议实现断点上传