本文整理汇总了Java中github.ankushsachdeva.emojicon.EmojiconsPopup类的典型用法代码示例。如果您正苦于以下问题:Java EmojiconsPopup类的具体用法?Java EmojiconsPopup怎么用?Java EmojiconsPopup使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EmojiconsPopup类属于github.ankushsachdeva.emojicon包,在下文中一共展示了EmojiconsPopup类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onFinishInflate
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_conversation_view, this);
View rootView = this.getRootView();
popup = new EmojiconsPopup(rootView, getContext());
popup.setSizeForSoftKeyboard();
messageEditText = (EmojiconEditText) this.findViewById(R.id.messageEditText);
sendButton = (ImageButton) this.findViewById(R.id.sendButton);
emojiconButton = (ImageButton) this.findViewById(R.id.emoticonButton);
toolbar = (Toolbar) this.findViewById(R.id.toolbar);
profileImageView = (CircleImageView) toolbar.findViewById(R.id.profileImageView);
nameTextView = (TextView) toolbar.findViewById(R.id.nameTextView);
lastSeenTextView = (TextView) toolbar.findViewById(R.id.lastSeenTextView);
typingTextView = (TextView) this.findViewById(R.id.typingTextView);
toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
messageRecyclerView = (RecyclerView) this.findViewById(R.id.messageRecyclerView);
layoutManager.setStackFromEnd(true);
messageRecyclerView.setLayoutManager(layoutManager);
messageRecyclerView.setAdapter(conversationMessageAdapter);
}
示例2: onFinishInflate
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_global_view, this);
View rootView = this.getRootView();
popup = new EmojiconsPopup(rootView, getContext());
popup.setSizeForSoftKeyboard();
messageEditText = (EmojiconEditText) this.findViewById(R.id.messageEditText);
sendButton = (ImageButton) this.findViewById(R.id.sendButton);
emojiconButton = (ImageButton) this.findViewById(R.id.emoticonButton);
messageRecyclerView = (RecyclerView) this.findViewById(R.id.messageRecyclerView);
layoutManager.setStackFromEnd(true);
messageRecyclerView.setLayoutManager(layoutManager);
messageRecyclerView.setAdapter(messageAdapter);
}
示例3: onFinishInflate
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_global_view, this);
View rootView = this.getRootView();
popup = new EmojiconsPopup(rootView, getContext());
popup.setSizeForSoftKeyboard();
messageEditText = (EmojiconEditText) this.findViewById(R.id.messageEditText);
sendButton = (ImageButton) this.findViewById(R.id.sendButton);
emojiconButton = (ImageButton) this.findViewById(R.id.emoticonButton);
messageRecyclerView = (RecyclerView) this.findViewById(R.id.messageRecyclerView);
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
layoutManager.setStackFromEnd(true);
messageRecyclerView.setLayoutManager(layoutManager);
messageRecyclerView.setAdapter(messageAdapter);
}
示例4: onFinishInflate
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
@Override
protected void onFinishInflate() {
super.onFinishInflate();
View.inflate(getContext(), R.layout.merge_conversation_view, this);
View rootView = this.getRootView();
popup = new EmojiconsPopup(rootView, getContext());
popup.setSizeForSoftKeyboard();
messageEditText = (EmojiconEditText) this.findViewById(R.id.messageEditText);
sendButton = (ImageButton) this.findViewById(R.id.sendButton);
emojiconButton = (ImageButton) this.findViewById(R.id.emoticonButton);
toolbar = (Toolbar) this.findViewById(R.id.toolbar);
profileImageView = (CircularImageView) toolbar.findViewById(R.id.profileImageView);
nameTextView = (TextView) toolbar.findViewById(R.id.nameTextView);
lastSeenTextView = (TextView) toolbar.findViewById(R.id.lastSeenTextView);
typingTextView = (TextView) this.findViewById(R.id.typingTextView);
toolbar.setNavigationIcon(R.drawable.ic_arrow_back);
messageRecyclerView = (RecyclerView) this.findViewById(R.id.messageRecyclerView);
LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());
layoutManager.setStackFromEnd(true);
messageRecyclerView.setLayoutManager(layoutManager);
messageRecyclerView.setAdapter(conversationMessageAdapter);
}
示例5: ChatController
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
public ChatController(ChatActivity chatActivity){
this.chatActivity = chatActivity;
this.context = chatActivity.getApplicationContext();
this.preferences = PreferenceManager.getDefaultSharedPreferences(context);
this.v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
this.recorder = new AudioRecorder(this);
this.imm = (InputMethodManager) chatActivity.getSystemService(Context.INPUT_METHOD_SERVICE);
this.popupEmojiWindow = new EmojiconsPopup(chatActivity.getWindow().getDecorView().getRootView(), chatActivity);
popupEmojiWindow.setSizeForSoftKeyboard();
audio = new AtomicBoolean(false);
initControls();
initEmojiPopupWindow();
}
示例6: initEmojiPopupWindow
import github.ankushsachdeva.emojicon.EmojiconsPopup; //导入依赖的package包/类
/**
* Sets the EmojiPopupWindows of the ChatActivity.
*/
private void initEmojiPopupWindow(){
emojiconsReady = false;
popupEmojiWindow.setOnEmojiconClickedListener(new EmojiconGridView.OnEmojiconClickedListener() {
@Override
public void onEmojiconClicked(Emojicon emojicon) {
mEmojiEditText.append(emojicon.getEmoji());
}
});
popupEmojiWindow.setOnEmojiconBackspaceClickedListener(new EmojiconsPopup.OnEmojiconBackspaceClickedListener() {
@Override
public void onEmojiconBackspaceClicked(View v) {
KeyEvent event = new KeyEvent(
0, 0, 0, KeyEvent.KEYCODE_DEL, 0, 0, 0, 0, KeyEvent.KEYCODE_ENDCALL);
mEmojiEditText.dispatchKeyEvent(event);
}
});
popupEmojiWindow.setOnSoftKeyboardOpenCloseListener(new EmojiconsPopup.OnSoftKeyboardOpenCloseListener() {
@Override
public void onKeyboardOpen(int keyBoardHeight) {
if (!emojiconsReady) {
emojiconsReady = true;
}
}
@Override
public void onKeyboardClose() {
if (popupEmojiWindow.isShowing()) {
popupEmojiWindow.dismiss();
}
}
});
}