gpt4 book ai didi

android - 哪些 API 级别需要 EmojiCompat?

转载 作者:行者123 更新时间:2023-11-30 00:02:06 25 4
gpt4 key购买 nike

build.gradle 我有以下内容: minSdkVersion 17我决定尝试一下表情符号。

EmojiCompat文档状态:

The EmojiCompat support library provides classes to implement backward-compatible emoji support on devices running Android 4.4 (API level 19) and higher.

相当困惑。哪些 API 级别需要 EmojiCompat 库?

最佳答案

它在文档中说 FAQ

What happens if I add widgets in layout XMLs on devices that run on Android 4.4 (API level 19) or lower?

You can include the EmojiCompat support library or its widgets in your applications that support devices running Android 4.4 (API level 19) or lower. However, if a device runs on an Android version prior to API level 19, EmojiCompat and its widgets are in a "no operation" state. This means that EmojiTextView behaves exactly like a regular TextView. EmojiCompat instance; it immediately gets into a LOAD_STATE_SUCCEEDED state when you call the init() method.

这应该可以回答您的问题。

关于android - 哪些 API 级别需要 EmojiCompat?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49743024/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com