推荐安卓开发神器(里面有各种UI特效和android代码库实例)

在使用EditText的XML 文件中加入一个属性:

android:textCursorDrawable="@null"

android:textCursorDrawable   这个属性是用来控制光标颜色的,

"@null"   是作用是让光标颜色和text color一样

android:textCursorDrawable 的用法可以查看android sdk

public static final int TextView_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 symbol textCursorDrawable.

Constant Value: 70 (0x00000046)  

更多相关文章

  1. Android 基本控件Text属性
  2. android 滚动条 相关属性
  3. Android设置颜色的几种方法
  4. Android 的Margin和Padding属性以及支持的长度单位
  5. Android Switch属性全记录
  6. android 常用 属性
  7. Android 设置完autoLink属性后自定义跳转到指定界面

随机推荐

  1. Android(安卓)ButterKnife Zelezny
  2. android vector
  3. Android(安卓)GridView中GridAdapter 用
  4. android 学习笔记6——分页标签之TabHost
  5. SystemUI之——信号显示流程,基于Android(
  6. 出现add 'tools:replace="android:value"
  7. android 保存bitmap到SD卡
  8. android progressbar 藏到imageview下面
  9. Android文档学习09_多媒体1
  10. Android(安卓)采用pull解析xml文件