Android 设置EditText光标Cursor颜色及粗细
来源:互联网 发布:全境封锁网络优化 编辑:程序博客网 时间:2024/06/03 22:41
转载自http://blog.csdn.net/jdsjlzx/article/details/45075865
在android的输入框里,如果要修改光标的颜色及粗细步骤如下两步即可搞定:
1.在资源文件drawable下新建一个光标控制color_cursor.xml
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <size android:width="1dp" /> <solid android:color="#008000" /> </shape>
2.设置EditText:android:textCursorDrawable="@drawable/color_cursor"
0 0
- Android 设置EditText光标Cursor颜色及粗细
- Android 设置EditText光标Cursor颜色及粗细
- Android 设置EditText光标Cursor颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标颜色及粗细
- Android 设置EditText光标Curso颜色及粗细
- Android 设置EditText光标Curso颜色及粗细
- Android 设置EditText光标显示与隐藏,颜色及粗细
- Android 设置EditText光标显示与隐藏,颜色及粗细
- Android 设置EditText光标位置、粗细颜色
- Android 设置edittext光标颜色和粗细
- Android 设置EditText 光标颜色 粗细
- Android:EditText光标颜色及粗细
- 安卓开发——设置EditText光标cursor的颜色及粗细
- SVN 常见问题
- Leetcode 172 Factorial Trailing Zeroes
- 随笔
- PostgreSQL自定义函数处理特殊需求
- UE4 编辑器坐标轴绘制和事件处理
- Android 设置EditText光标Cursor颜色及粗细
- TCP通信常用的send,sendto,recv,recvfrom函数详解
- Leetcode 119 Pascal's Triangle II
- 5-14 电话聊天狂人 (25分)/PTA
- Service知识点整理
- EasyAR1.3.1入门
- 平衡二叉树中的AVL树的旋转
- 使用“交换技巧”来修整容器过剩容量
- Android开发——下列表框Spinner(二)Spinner的多级级联