解决方法有以下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. android界面无标题栏和全屏效果的实现方式
  2. ListView 常用属性 详解
  3. Android中MaterialDesign使用 (四)CoordinatorLayout初识:AppBar
  4. RealtiveLayout(相对布局属性)
  5. 各种Layout用到的一些重要的属性
  6. layout_alignParentBottom失效
  7. [摘]android:windowSoftInputMode属性使用
  8. Android(安卓)WebView相关属性
  9. android设置属性

随机推荐

  1. 【转】Android(安卓)studio2.2.3 支持Jav
  2. [转]处理各种触摸事件
  3. 网页链接拉起Unity Android和iOS APP
  4. android 获取设备唯一标识:imei 通过Telep
  5. Android检测电源状态
  6. 任务栏一键删除 Recent APP
  7. 用contentResolver+ListView+mediaPlayer
  8. android 时钟组件AnalogClock与Clock
  9. Android(安卓)中调用 其他 app 的 url 协
  10. android之autoCompleteTextView