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);
}
});
}
Aggregations