EditText设置光标颜色

从版本3.0开始,editeText加入  android:textCursorDrawable属性用于设置光标的颜色

若设置为@null,则默认为字体颜色

 

        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)

 

你可能感兴趣的:(android,null,reference)