我的任务是从系统表情符号键盘中选择表情符号并在 EditTextView 中显示。
尝试过以下inputType:
android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine" android:imeOptions="actionSend|flagNoEnterAction"
预计将显示系统表情符号键盘。
您需要使用EmojiCompat支持库
添加依赖项
dependencies { implementation("androidx.emoji:emoji:28.0.0")}
参考这个链接