当前位置: 首页>>代码示例>>Java>>正文


Java EmojiconsPopup类代码示例

本文整理汇总了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);
}
 
开发者ID:marcovann,项目名称:Firebase-Chat-Demo,代码行数:26,代码来源:ConversationView.java

示例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);

}
 
开发者ID:marcovann,项目名称:Firebase-Chat-Demo,代码行数:20,代码来源:GlobalView.java

示例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);

}
 
开发者ID:saurabhk7,项目名称:TripV1.0,代码行数:21,代码来源:GlobalView.java

示例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);

}
 
开发者ID:saurabhk7,项目名称:TripV1.0,代码行数:28,代码来源:ConversationView.java

示例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();
}
 
开发者ID:weichweich,项目名称:AluShare,代码行数:15,代码来源:ChatController.java

示例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();
            }
        }
    });
}
 
开发者ID:weichweich,项目名称:AluShare,代码行数:41,代码来源:ChatController.java


注:本文中的github.ankushsachdeva.emojicon.EmojiconsPopup类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。