Search in sources :

Example 1 with EaseScrollTabBarItemClickListener

use of com.hyphenate.easeui.widget.emojicon.EaseEmojiconScrollTabBar.EaseScrollTabBarItemClickListener in project SmartCampus by Vegen.

the class EaseEmojiconMenu method init.

public void init(List<EaseEmojiconGroupEntity> groupEntities) {
    if (groupEntities == null || groupEntities.size() == 0) {
        return;
    }
    for (EaseEmojiconGroupEntity groupEntity : groupEntities) {
        emojiconGroupList.add(groupEntity);
        tabBar.addTab(groupEntity.getIcon());
    }
    pagerView.setPagerViewListener(new EmojiconPagerViewListener());
    pagerView.init(emojiconGroupList, emojiconColumns, bigEmojiconColumns);
    tabBar.setTabBarItemClickListener(new EaseScrollTabBarItemClickListener() {

        @Override
        public void onItemClick(int position) {
            pagerView.setGroupPostion(position);
        }
    });
}
Also used : EaseScrollTabBarItemClickListener(com.hyphenate.easeui.widget.emojicon.EaseEmojiconScrollTabBar.EaseScrollTabBarItemClickListener) EaseEmojiconGroupEntity(com.hyphenate.easeui.domain.EaseEmojiconGroupEntity) EaseEmojiconPagerViewListener(com.hyphenate.easeui.widget.emojicon.EaseEmojiconPagerView.EaseEmojiconPagerViewListener)

Aggregations

EaseEmojiconGroupEntity (com.hyphenate.easeui.domain.EaseEmojiconGroupEntity)1 EaseEmojiconPagerViewListener (com.hyphenate.easeui.widget.emojicon.EaseEmojiconPagerView.EaseEmojiconPagerViewListener)1 EaseScrollTabBarItemClickListener (com.hyphenate.easeui.widget.emojicon.EaseEmojiconScrollTabBar.EaseScrollTabBarItemClickListener)1