Hello World!
Screenshots :
Usage
Install Emoji Provider
First step, you should install EmojiView with your EmojiProvider!
Custom Emoji Provider
If you wanna display your own Emojis you can create your own implementation of EmojiProvider and pass it to AXEmojiManager.install.
Basic Usage
Create an AXEmojiEditText in your layout.
you should create a Page. Current pages are :
And add this page to AXEmojiPopup :
And we are done! ? Result :
AXEmojiPopupLayout
you can also create an AXEmojiPopupLayout instead of AXEmojiPopup! i believe that AXEmojiPopupLayout has a better performance.
Result is just same as AXEmojiPopup result!
Single Emoji View
SingleEmojiView is a RecyclerView and all emojis will load in one page (Same As Telegram Inc)
Result :
StickerView
StickerView : you have to create your StickerProvider and load all your Stickers (from Url,Res,Bitmap or anything you want!) see example
Result :
Also you can create your custom pages in StickerProvider . see example : ShopStickers
Result :
AXEmojiPager - Use Multiple Pages Together!
you can create an AXEmojiPager and add all your pages (EmojiView,StickerView,...) to the EmojiPager
Result :
Create Your Custom Pages
Create an AXEmojiBase (ViewGroup) and load your page layout And add your CustomPage to emojiPager
Result :
Customization
Customize theme with AXEmojiTheme.
Result :
Custom Footer
Result :
DarkMode
Views
Replace String With Emojis
RecentManager And VariantManager
you can add your custom recentManager for emojis and stickers . implements to RecentEmoji/RecentSticker
Variant View
you can also create your own VariantPopupView ! but you don't need to, the default one is also nice
The Default Variant:
Download Lib+Sample
FileSize : 6MB
See more in GitHub
AXEmojiView is an advanced Android Library
which adds emoji,sticker,... support to your Android application ?
Demo • GitHub
AXEmojiView 1.2.0which adds emoji,sticker,... support to your Android application ?
Demo • GitHub
Screenshots :
Usage
Install Emoji Provider
First step, you should install EmojiView with your EmojiProvider!
B4X:
Dim EmojiManager As AX_EmojiManager
Dim Provider As AX_IOSEmojiProvider
Provider.Initialize
EmojiManager.Install(Provider)
Custom Emoji Provider
If you wanna display your own Emojis you can create your own implementation of EmojiProvider and pass it to AXEmojiManager.install.
Basic Usage
Create an AXEmojiEditText in your layout.
you should create a Page. Current pages are :
- EmojiView
- SingleEmojiView
- StickerView
B4X:
Dim EmojiView As AX_EmojiView
EmojiView.Initialize("Amir")
EmojiView.EditText = YourEditText
And add this page to AXEmojiPopup :
B4X:
Dim EmojiPopup As AXEmojiPopup
EmojiPopup.Initialize(EmojiView,"Amir")
EmojiPopup.Toggle ' Toggles visibility of the Popup.
EmojiPopup.Show ' Shows the Popup.
EmojiPopup.Dismiss ' Dismisses the Popup.
EmojiPopup.IsShowing ' Returns true when Popup is showing.
And we are done! ? Result :
AXEmojiPopupLayout
you can also create an AXEmojiPopupLayout instead of AXEmojiPopup! i believe that AXEmojiPopupLayout has a better performance.
- create an AXEmojiPopupLayout in your layout. (Using FrameLayout - See Sample Code)
- add the created page to AXEmojiPopupLayout.
B4X:
Layout.InitPopupView(EmojiView)
Layout.Toggle ' Toggles visibility of the Popup.
Layout.Show ' Shows the Popup.
Layout.Dismiss ' Dismisses the Popup.
Layout.HideAndOpenKeyboard ' Hides the popup
Layout.IsShowing ' Returns true when Popup is showing.
Result is just same as AXEmojiPopup result!
Single Emoji View
SingleEmojiView is a RecyclerView and all emojis will load in one page (Same As Telegram Inc)
B4X:
Dim SingleEmojiView As AX_SingleEmojiView
SingleEmojiView.Initialize("")
SingleEmojiView.EditText = YourEditText
Result :
StickerView
StickerView : you have to create your StickerProvider and load all your Stickers (from Url,Res,Bitmap or anything you want!) see example
B4X:
Dim StickerView As AX_StickerView
Dim StickerProvider As MyStickerProvider
StickerProvider.Initialize
StickerView.Initialize("Sticker","Stickers",StickerProvider.Provider)
Result :
Also you can create your custom pages in StickerProvider . see example : ShopStickers
Result :
AXEmojiPager - Use Multiple Pages Together!
you can create an AXEmojiPager and add all your pages (EmojiView,StickerView,...) to the EmojiPager
Result :
Create Your Custom Pages
Create an AXEmojiBase (ViewGroup) and load your page layout And add your CustomPage to emojiPager
Result :
Customization
Customize theme with AXEmojiTheme.
B4X:
EmojiManager.EmojiViewTheme.FooterEnabled = true
EmojiManager.EmojiViewTheme.SelectionColor = 0xFFFF4081
EmojiManager.EmojiViewTheme.FooterSelectedItemColor = 0xFFFF4081
EmojiManager.EmojiViewTheme.SelectionColor = Colors.Transparent
EmojiManager.EmojiViewTheme.SelectedColor = 0xFFFF4081
EmojiManager.EmojiViewTheme.CategoryColor = Colors.White
EmojiManager.EmojiViewTheme.FooterBackgroundColor = Colors.White
EmojiManager.EmojiViewTheme.AlwaysShowDivider = True
EmojiManager.StickerViewTheme.SelectionColor = 0xFFFF4081
EmojiManager.StickerViewTheme.SelectedColor = 0xFFFF4081
EmojiManager.StickerViewTheme.CategoryColor = Colors.White
EmojiManager.StickerViewTheme.AlwaysShowDivider = True
Result :
Custom Footer
Result :
DarkMode
Views
- AXEmojiPopupLayout
- AXEmojiBase / AXEmojiLayout
- AXEmojiView
- AXSingleEmojiView
- AXStickerView
- AXEmojiEditText
- AXEmojiMultiAutoCompleteTextView
- AXEmojiButton
- AXEmojiImageView
- AXEmojiTextView
- AXEmojiCheckBox
Replace String With Emojis
RecentManager And VariantManager
you can add your custom recentManager for emojis and stickers . implements to RecentEmoji/RecentSticker
Variant View
you can also create your own VariantPopupView ! but you don't need to, the default one is also nice
The Default Variant:
Download Lib+Sample
FileSize : 6MB
See more in GitHub