With the EmojiCompat library, part of Jetpack, your app can get backwards-compatible emoji support on devices with API level 19 and higher and get rid of the blank square characters. To use EmojiCompat, initialize the library when the application starts by using downloadable or bundled fonts. Start supporting emojis in your text views, either by integrating the provided widgets or update your custom views by using the provided helper classes.

For more information:
EmojiCompat guide →
EmojiCompat sample app →
Google I/O 2017 talk on “What’s new in Support Library” →

Watch more Android Jetpack videos here →

Subscribe to the Android Developers channel here →

#jetpack #featured

Nguồn:https://u-os.org/

Author

Write A Comment