當前位置: 首頁>>代碼示例>>Java>>正文


Java EmojiSelectionListener類代碼示例

本文整理匯總了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);
}
 
開發者ID:XecureIT,項目名稱:PeSanKita-android,代碼行數:18,代碼來源:EmojiDrawer.java

示例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);
}
 
開發者ID:rafjordao,項目名稱:Nird2,代碼行數:17,代碼來源:EmojiDrawer.java

示例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;
}
 
開發者ID:XecureIT,項目名稱:PeSanKita-android,代碼行數:10,代碼來源:EmojiDrawer.java

示例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;
}
 
開發者ID:rafjordao,項目名稱:Nird2,代碼行數:9,代碼來源:EmojiDrawer.java


注:本文中的org.thoughtcrime.securesms.components.emoji.EmojiPageView.EmojiSelectionListener類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。