Aghajari / AXEmojiView

an advanced library which adds emoji,sticker,... support to your Android application.
Apache License 2.0
179 stars 45 forks source link

How to implement the sticker inside custom keyboard? #26

Open fnzainal opened 2 years ago

fnzainal commented 2 years ago

I'm trying to include the AXEmoji inside a custom android keyboard / IME. Which is run on a service not activity. I try to use AXEmojiPopupLayout into keyboard layout, but it's throw Exception because the parameter needed is context from Activity not from service.

this line throw Exception. parentView = Utils.asActivity(popupLayout.getContext()).findViewById(android.R.id.content);

Can you solve this? I hope it's can be run on android keyboard. Thanks in advance.

shahzaibKhanSalsoft4860 commented 2 years ago

@fnzainal have you found any solution for this issue?