解决方法有以下3种

1.在Edittext中加入以下属性

android:cursorVisible="true"android:textCursorDrawable="@null"

2.在Edittext中加入以下属性

android:cursorVisible="true"android:textCursorDrawable="@drawable/test_cursor"

对应的drawable文件

    <?xml version="1.0" encoding="utf-8"?>    <shape xmlns:android="http://schemas.android.com/apk/res/android"        android:shape="rectangle">        <size android:width="1dp" />        <span style="font-family: Arial, Helvetica, sans-serif;">span>        <solid android:color="#008000" />    shape>

3.如果以上没有效果就请用这个

明确指定EditText的inputType属性值inputType属性中的textCapSentences
不要用这个,国内手机好像没有用到这个,个人证实而已,用text或者textMultiLine

android:inputType="text|textMultiLine"

更多相关文章

  1. ListView 常用属性 详解
  2. Android中MaterialDesign使用 (四)CoordinatorLayout初识:AppBar
  3. RealtiveLayout(相对布局属性)
  4. 各种Layout用到的一些重要的属性
  5. Android之自定义View
  6. Android之android:gravity和android:layout_gravity属性
  7. Android RadioGroup RadioButton 自定义样式------按钮式
  8. android 自定义checkbox大小和图片[已验证]
  9. [摘]android:windowSoftInputMode属性使用

随机推荐

  1. ANDROID NDK使用第三方静态库的方法
  2. android 扫面无线网络
  3. Android(安卓)图片压缩
  4. JSP EL表达式详细介绍
  5. JSP 报表打印的一种简单解决方案
  6. jsp 自定义标签实例
  7. jsp 自定义标签实例
  8. 函数参数,返回值与模板字面量,模板函数
  9. 实例讲解JSP获取ResultSet结果集中的数据
  10. 访问器的原理及DOM元素