Android Jetpack
UI Components
Palette
Layout
Fragment
Emoji
Animation & transitions
Jetpack Components
introduction
Foundation
Architecture
Behavior
UI
Foundation Components
Android KTX
AppCompat
Auto
Benchmark
Multidex
Security
Test
TV
Wear OS by Google
Architecture Components
Data Binding
Lifecycles
LiveData
Navigation
Paging
Room
ViewModel
WorkManager
Behavior Components
CameraX
Download manager
Media & playback
Notifications
Permissions
Preferences
Sharing
Slices

Emoji



Emoji, Android Jetpack UI Components, Enable an up-to-date emoji font on older platforms


The EmojiCompat support library is used to make sure Android devices will have up to date emoji, and are available for your app.


The EmojiCompat support library, supported from Android 4.4 (API level 19) and higher. for lower version devices prior to API level 19, the EmojiCompat and its widgets are in a "no operation" state. and the emoji will be displayed exactly like a regular TextView.


Add EmojiCompat support library to App Project

Add it in dependencies section of build.gradle file of your app.


    dependencies {
        ...
        implementation "com.android.support:support-emoji:28.0.0"
    }

Initializing EmojiCompat

Initialize EmojiCompat in app to load the metadata and the typeface. the initialization process runs on a background thread and can take some time.


  • Create an instance of the FontRequest class.
  • Create an instance of FontRequestEmojiCompatConfig.
  • Initialize EmojiCompat by calling the init().

Initializing EmojiCompat Code


    FontRequest fontRequestObject = new FontRequest(
        "com.ft.fontprovider",
        "com.ft",
        "emoji Font Query",
        SSL_CERTIFICATES);
    EmojiCompat.Config configObject = new FontRequestEmojiCompatConfig( this, fontRequestObject);
    EmojiCompat.init( configObject);


Emoji Views / Widgets

WidgetClass
EmojiTextViewandroid.support.text.emoji.widget.EmojiTextView
EmojiEditTextandroid.support.text.emoji.widget.EmojiEditText
EmojiButtonandroid.support.text.emoji.widget.EmojiButton

Emoji Views / Widgets for AppCompat

for using Emoji Widgets in AppCompat,- use EmojiCompat widgets that extend from AppCompat widgets.


Add the AppCompat support library to the dependencies section of build.gradle file of your app.



    dependencies {
        ...
        implementation "com.android.support:support-emoji-appcompat:$version"
    }


WidgetClass
EmojiAppCompatTextViewandroid.support.text.emoji.widget.EmojiAppCompatTextView
EmojiAppCompatEditTextandroid.support.text.emoji.widget.EmojiAppCompatEditText
EmojiAppCompatButtonandroid.support.text.emoji.widget.EmojiAppCompatButton


Animation & transitions

Animation & transitions, Android Jetpack UI Components, Move widgets and transition between screens

posted on 2019-10-25 08:04:17 - Android Jetpack Tutorials


Emoji

Emoji, Android Jetpack UI Components, Enable an up-to-date emoji font on older platforms

posted on 2019-10-25 08:03:43 - Android Jetpack Tutorials


Fragment

Fragment, Android Jetpack UI Components, A basic unit of composable UI

posted on 2019-10-25 08:03:24 - Android Jetpack Tutorials


Prompt Examples

ChatGPT Prompt Examples

posted on 2023-06-21 22:37:19 - ChatGPT Tutorials


Use Cases

Chat GPT Key Use Cases

posted on 2023-06-21 21:03:17 - ChatGPT Tutorials


Prompt Frameworks

Prompt Frameworks

posted on 2023-06-21 19:33:06 - ChatGPT Tutorials