在 Android 键盘的右下角显示笑脸按钮
Display smiley button at right bottom on Android keyboard
当用户在我的 EditText 中输入时,我需要默认显示笑脸按钮。
现在我的 EditText 键盘看起来像:
看右下角,你会看到完成按钮。
同时在短信应用程序中键盘看起来像:
[
右下角显示笑脸按钮。
如何在键盘上为我的 EditText 显示微笑按钮?
现在我有了下一个 ExitText 布局:
<EditText
... // some layout params
android:inputType="textCapSentences|textAutoCorrect|textAutoComplete"/>
您可以尝试在 EditText
中添加以下属性。您的代码中缺少 属性 是 textShortMessage
。所以你可以尝试添加相同的。
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
您只需添加 imeOption textShortMessage
.
<EditText
... // some layout params
android:inputType="textShortMessage|textCapSentences|textAutoCorrect|textAutoComplete"/>
当用户在我的 EditText 中输入时,我需要默认显示笑脸按钮。
现在我的 EditText 键盘看起来像:
看右下角,你会看到完成按钮。
同时在短信应用程序中键盘看起来像:
[
右下角显示笑脸按钮。
如何在键盘上为我的 EditText 显示微笑按钮?
现在我有了下一个 ExitText 布局:
<EditText
... // some layout params
android:inputType="textCapSentences|textAutoCorrect|textAutoComplete"/>
您可以尝试在 EditText
中添加以下属性。您的代码中缺少 属性 是 textShortMessage
。所以你可以尝试添加相同的。
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"
您只需添加 imeOption textShortMessage
.
<EditText
... // some layout params
android:inputType="textShortMessage|textCapSentences|textAutoCorrect|textAutoComplete"/>