如何在Android中显示系统表情符号键盘?

问题描述 投票:0回答:1

我的任务是从系统表情符号键盘中选择表情符号并在 EditTextView 中显示。

尝试过以下inputType

android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions="actionSend|flagNoEnterAction"

预计将显示系统表情符号键盘。

android android-softkeyboard keyboard-events
1个回答
0
投票

您需要使用EmojiCompat支持库

添加依赖项

dependencies {
implementation("androidx.emoji:emoji:28.0.0")}

参考这个链接

© www.soinside.com 2019 - 2024. All rights reserved.