在使用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 ctl属性的实现过程
  2. 整理:RelativeLayout的相关属性
  3. android ImageView android:adjustViewBounds属性的作用。
  4. EditText的属性
  5. android笔记一 控件属性
  6. [Android] 启动无线与网络设置的Action___android:duplicatePare
  7. android中属性动画
  8. Shape属性详解
  9. 关于文字颜色/图片背景---selector状态列表

随机推荐

  1. Android TextView文字链接4中方法
  2. Android 导入Flutter模块
  3. android ARM 汇编学习 —— hello world
  4. android去掉系统默认标题栏
  5. Android 性能优化系列视频(五)
  6. [2011.02.22] Android SDK离线安装
  7. Android(安卓)SDK,ADT,API 版本的对应关
  8. 【游戏语音技术开发互联网公司】android
  9. Android中的Selector
  10. Android (6.0) 系统启动流程梳理