Android 为什么EditText在某些设备上不显示自动完成/自动更正建议?

Android 为什么EditText在某些设备上不显示自动完成/自动更正建议?,android,android-edittext,autocorrect,Android,Android Edittext,Autocorrect,我有一个可编辑字段,在大多数设备上显示键盘自动更正选项。然而,在Android 5.0.2的LG上,当用户打字时,键盘不会显示自动更正建议。其他应用程序,如Whatsapp会显示自动更正建议。inputType属性缺少什么 <EditText android:id="@+id/user_input_edit" android:layout_width="0dp" android:layout_height="wrap_content"

我有一个可编辑字段,在大多数设备上显示键盘自动更正选项。然而,在Android 5.0.2的LG上,当用户打字时,键盘不会显示自动更正建议。其他应用程序,如Whatsapp会显示自动更正建议。
inputType
属性缺少什么

    <EditText
        android:id="@+id/user_input_edit"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:layout_weight="1"
        android:fadeScrollbars="false"
        android:hint="@string/global_footer_hint"
        android:inputType="textMultiLine|textCapSentences|textAutoComplete|textAutoCorrect"
        android:maxLength="@integer/post_max_len"
        android:maxLines="4"
        android:minLines="1"
        android:scrollbars="vertical"
        android:textColor="@color/white"
        android:textColorHint="@color/grey_005"
        android:textCursorDrawable="@null"
        />

更新:根据建议,我在上创建了一个示例测试,一个简单的应用程序,其中包含一些
EditText
小部件,每个小部件都有不同的设置。在大多数设备上,所有字段都显示软键盘的自动完成建议,但在这个特定的旧Android上,只有works建议的已弃用的
自动图文集
字段。看起来这可能是一个实现错误。

尝试添加:

android:autoText="true"
到您的
EditText


但这在模拟器上可能不起作用。

使用android试试:autoText=“true”试试这个mEditText.setInputType(InputType.TYPE\u TEXT\u FLAG\u AUTO\u COMPLETE)@NongthonbamTonthoi您可能希望将该评论作为实际答案来写。