• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java EaseChatMessageList类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.hyphenate.easeui.widget.EaseChatMessageList的典型用法代码示例。如果您正苦于以下问题:Java EaseChatMessageList类的具体用法?Java EaseChatMessageList怎么用?Java EaseChatMessageList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EaseChatMessageList类属于com.hyphenate.easeui.widget包,在下文中一共展示了EaseChatMessageList类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setUpView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * set property according message and postion
 * 
 * @param message
 * @param position
 */
public void setUpView(EMMessage message, int position,
        EaseChatMessageList.MessageListItemClickListener itemClickListener) {
    this.message = message;
    this.position = position;
    this.itemClickListener = itemClickListener;

    setUpBaseView();
    onSetUpView();
    setClickListener();
}
 
开发者ID:turoDog,项目名称:KTalk,代码行数:17,代码来源:EaseChatRow.java


示例2: setUpView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * set property according message and postion
 * 
 * @param message
 * @param position
 */
public void setUpView(EMMessage message, int position,
        EaseChatMessageList.MessageListItemClickListener itemClickListener,
                      EaseMessageListItemStyle itemStyle) {
    this.message = message;
    this.position = position;
    this.itemClickListener = itemClickListener;
    this.itemStyle = itemStyle;

    setUpBaseView();
    onSetUpView();
    setClickListener();
}
 
开发者ID:funnyzhaov,项目名称:Tribe,代码行数:19,代码来源:EaseChatRow.java


示例3: setUpView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * 根据当前message和position设置控件属性等
 * 
 * @param message
 * @param position
 */
public void setUpView(EMMessage message, int position,
        EaseChatMessageList.MessageListItemClickListener itemClickListener) {
    this.message = message;
    this.position = position;
    this.itemClickListener = itemClickListener;

    setUpBaseView();
    onSetUpView();
    setClickListener();
}
 
开发者ID:Rabbit00,项目名称:MeifuGO,代码行数:17,代码来源:EaseChatRow.java


示例4: initView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * init view
 */
protected void initView() {
    // hold to record voice
    //noinspection ConstantConditions
    voiceRecorderView = (EaseVoiceRecorderView) getView().findViewById(R.id.voice_recorder);

    // message list layout
    messageList = (EaseChatMessageList) getView().findViewById(R.id.message_list);
    if(chatType != EaseConstant.CHATTYPE_SINGLE)
        messageList.setShowUserNick(true);
    listView = messageList.getListView();

    extendMenuItemClickListener = new MyItemClickListener();
    inputMenu = (EaseChatInputMenu) getView().findViewById(R.id.input_menu);
    registerExtendMenuItem();
    // init input menu
    inputMenu.init(null);
    inputMenu.setChatInputMenuListener(new ChatInputMenuListener() {

        @Override
        public void onSendMessage(String content) {
            sendTextMessage(content);
        }

        @Override
        public boolean onPressToSpeakBtnTouch(View v, MotionEvent event) {
            return voiceRecorderView.onPressToSpeakBtnTouch(v, event, new EaseVoiceRecorderCallback() {
                
                @Override
                public void onVoiceRecordComplete(String voiceFilePath, int voiceTimeLength) {
                    sendVoiceMessage(voiceFilePath, voiceTimeLength);
                }
            });
        }

        @Override
        public void onBigExpressionClicked(EaseEmojicon emojicon) {
            sendBigExpressionMessage(emojicon.getName(), emojicon.getIdentityCode());
        }
    });

    swipeRefreshLayout = messageList.getSwipeRefreshLayout();
    swipeRefreshLayout.setColorSchemeResources(R.color.holo_blue_bright, R.color.holo_green_light,
            R.color.holo_orange_light, R.color.holo_red_light);

    inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
    clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
 
开发者ID:turoDog,项目名称:KTalk,代码行数:52,代码来源:EaseChatFragment.java


示例5: initView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
     * init view
     */
    protected void initView() {
        // hold to record voice
        //noinspection ConstantConditions
        voiceRecorderView = (EaseVoiceRecorderView) getView().findViewById(R.id.voice_recorder);

        // message list layout
        messageList = (EaseChatMessageList) getView().findViewById(R.id.message_list);
        if(chatType != EaseConstant.CHATTYPE_SINGLE)
            messageList.setShowUserNick(true);
//        messageList.setAvatarShape(1);
        listView = messageList.getListView();

        extendMenuItemClickListener = new MyItemClickListener();
        inputMenu = (EaseChatInputMenu) getView().findViewById(R.id.input_menu);
        registerExtendMenuItem();
        // init input menu
        inputMenu.init(null);
        inputMenu.setChatInputMenuListener(new ChatInputMenuListener() {

            @Override
            public void onSendMessage(String content) {
                sendTextMessage(content);
            }

            @Override
            public boolean onPressToSpeakBtnTouch(View v, MotionEvent event) {
                return voiceRecorderView.onPressToSpeakBtnTouch(v, event, new EaseVoiceRecorderCallback() {
                    
                    @Override
                    public void onVoiceRecordComplete(String voiceFilePath, int voiceTimeLength) {
                        sendVoiceMessage(voiceFilePath, voiceTimeLength);
                    }
                });
            }

            @Override
            public void onBigExpressionClicked(EaseEmojicon emojicon) {
                sendBigExpressionMessage(emojicon.getName(), emojicon.getIdentityCode());
            }
        });

        swipeRefreshLayout = messageList.getSwipeRefreshLayout();
        swipeRefreshLayout.setColorSchemeResources(R.color.holo_blue_bright, R.color.holo_green_light,
                R.color.holo_orange_light, R.color.holo_red_light);

        inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
        clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
        getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

        if (isRoaming) {
            fetchQueue = Executors.newSingleThreadExecutor();
        }
    }
 
开发者ID:funnyzhaov,项目名称:Tribe,代码行数:57,代码来源:EaseChatFragment.java


示例6: initView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * init view
 */
protected void initView() {
    // 按住说话录音控件
    voiceRecorderView = (EaseVoiceRecorderView) getView().findViewById(R.id.voice_recorder);

    // 消息列表layout
    messageList = (EaseChatMessageList) getView().findViewById(R.id.message_list);
    if(chatType != EaseConstant.CHATTYPE_SINGLE)
        messageList.setShowUserNick(true);
    listView = messageList.getListView();

    extendMenuItemClickListener = new MyItemClickListener();
    inputMenu = (EaseChatInputMenu) getView().findViewById(R.id.input_menu);
    registerExtendMenuItem();
    // init input menu
    inputMenu.init(null);
    inputMenu.setChatInputMenuListener(new ChatInputMenuListener() {

        @Override
        public void onSendMessage(String content) {
            // 发送文本消息
            sendTextMessage(content);
        }

        @Override
        public boolean onPressToSpeakBtnTouch(View v, MotionEvent event) {
            return voiceRecorderView.onPressToSpeakBtnTouch(v, event, new EaseVoiceRecorderCallback() {

                @Override
                public void onVoiceRecordComplete(String voiceFilePath, int voiceTimeLength) {
                    // 发送语音消息
                    sendVoiceMessage(voiceFilePath, voiceTimeLength);
                }
            });
        }

        @Override
        public void onBigExpressionClicked(EaseEmojicon emojicon) {
            //发送大表情(动态表情)
            sendBigExpressionMessage(emojicon.getName(), emojicon.getIdentityCode());
        }
    });

    swipeRefreshLayout = messageList.getSwipeRefreshLayout();
    swipeRefreshLayout.setColorSchemeResources(R.color.holo_blue_bright, R.color.holo_green_light,
            R.color.holo_orange_light, R.color.holo_red_light);

    inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
    clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
 
开发者ID:Rabbit00,项目名称:MeifuGO,代码行数:54,代码来源:EaseChatFragment.java


示例7: initView

import com.hyphenate.easeui.widget.EaseChatMessageList; //导入依赖的package包/类
/**
 * init view
 */
protected void initView() {
    // hold to record voice
    voiceRecorderView = (EaseVoiceRecorderView) getView().findViewById(R.id.voice_recorder);

    // message list layout
    messageList = (EaseChatMessageList) getView().findViewById(R.id.message_list);
    if(chatType != EaseConstant.CHATTYPE_SINGLE)
        messageList.setShowUserNick(true);
    listView = messageList.getListView();

    extendMenuItemClickListener = new MyItemClickListener();
    inputMenu = (EaseChatInputMenu) getView().findViewById(R.id.input_menu);
    registerExtendMenuItem();
    // init input menu
    inputMenu.init(null);
    inputMenu.setChatInputMenuListener(new ChatInputMenuListener() {

        @Override
        public void onSendMessage(String content) {
            sendTextMessage(content);
        }

        @Override
        public boolean onPressToSpeakBtnTouch(View v, MotionEvent event) {
            return voiceRecorderView.onPressToSpeakBtnTouch(v, event, new EaseVoiceRecorderCallback() {
                
                @Override
                public void onVoiceRecordComplete(String voiceFilePath, int voiceTimeLength) {
                    sendVoiceMessage(voiceFilePath, voiceTimeLength);
                }
            });
        }

        @Override
        public void onBigExpressionClicked(EaseEmojicon emojicon) {
            sendBigExpressionMessage(emojicon.getName(), emojicon.getIdentityCode());
        }
    });

    swipeRefreshLayout = messageList.getSwipeRefreshLayout();
    swipeRefreshLayout.setColorSchemeResources(R.color.holo_blue_bright, R.color.holo_green_light,
            R.color.holo_orange_light, R.color.holo_red_light);

    inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
    clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
    getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
 
开发者ID:HyphenateInc,项目名称:Hyphenate-EaseUI-Android,代码行数:51,代码来源:EaseChatFragment.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DOMDataBroker类代码示例发布时间:2022-05-22
下一篇:
Java Point4f类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap