Aghajari / AXEmojiView

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

Expand to full screen #34

Closed dbreskvar closed 2 years ago

dbreskvar commented 2 years ago

Is it possible to expand the AXEmojiPopupLayout to have a height of the display screen? In case I would want it to be a standalone component? Or to display it above the edit text itself?

Aghajari commented 2 years ago

Hello @dbreskvar , Do not use AXEmojiPopupLayout here. Just add AXEmojiView (or the pager) as a normal view to your activity without using popup.

dbreskvar commented 2 years ago

@Aghajari this works perfect! Just one more question. Is it possible to anchor the pager tabs to be persisted at the top when scrolling up? I might be missing something 🤞

Aghajari commented 2 years ago

Hello @dbreskvar What do you mean by pages? Emoji category?

dbreskvar commented 2 years ago

Yes, the categories get scrolled as well. This is the screenshot.

image

And I'd like them to stay pinned at the top. They do come down when I fling scroll down but is it possible to always keep them at the top?

image
Aghajari commented 2 years ago

@dbreskvar Try this code disableEmojiViewCategoryParallax(emojiView); just after creating the view.

    public static void disableEmojiViewCategoryParallax(AXSingleEmojiView emojiView) {
        try {
            Field field = emojiView.getClass().getDeclaredField("scrollListener2");
            field.setAccessible(true);
            //noinspection ConstantConditions
            emojiView.getRecyclerView().removeOnScrollListener(
                    (RecyclerView.OnScrollListener) field.get(emojiView));
        } catch (Exception ignore) {
        }
    }
dbreskvar commented 2 years ago

Works like a charm! Thank you!