本文整理匯總了Java中org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener類的典型用法代碼示例。如果您正苦於以下問題:Java EmojiSelectionListener類的具體用法?Java EmojiSelectionListener怎麽用?Java EmojiSelectionListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
EmojiSelectionListener類屬於org.thoughtcrime.securesms.components.emoji.EmojiPageView包,在下文中一共展示了EmojiSelectionListener類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initializeEmojiGrid
import org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener; //導入依賴的package包/類
private void initializeEmojiGrid() {
pager.setAdapter(new EmojiPagerAdapter(getContext(),
models,
new EmojiSelectionListener() {
@Override
public void onEmojiSelected(String emoji) {
Log.w("EmojiDrawer", "onEmojiSelected()");
recentModel.onCodePointSelected(emoji);
if (listener != null) listener.onEmojiSelected(emoji);
}
}));
if (recentModel.getEmoji().length == 0) {
pager.setCurrentItem(1);
}
strip.setViewPager(pager);
}
示例2: initializeEmojiGrid
import org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener; //導入依賴的package包/類
private void initializeEmojiGrid() {
pager.setAdapter(new EmojiPagerAdapter(getContext(),
models,
new EmojiSelectionListener() {
@Override
public void onEmojiSelected(String emoji) {
recentModel.onCodePointSelected(emoji);
if (listener != null) listener.onEmojiSelected(emoji);
}
}));
if (recentModel.getEmoji().length == 0) {
pager.setCurrentItem(1);
}
strip.setViewPager(pager);
}
示例3: EmojiPagerAdapter
import org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener; //導入依賴的package包/類
public EmojiPagerAdapter(@NonNull Context context,
@NonNull List<EmojiPageModel> pages,
@Nullable EmojiSelectionListener listener)
{
super();
this.context = context;
this.pages = pages;
this.listener = listener;
}
示例4: EmojiPagerAdapter
import org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener; //導入依賴的package包/類
private EmojiPagerAdapter(@NonNull Context context,
@NonNull List<EmojiPageModel> pages,
@Nullable EmojiSelectionListener listener) {
super();
this.context = context;
this.pages = pages;
this.listener = listener;
}