EmojiCompat 需要哪些 API 级别?
For which API levels is EmojiCompat needed?
在 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.
这应该可以回答您的问题。
在 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.
这应该可以回答您的问题。