Codota Logo
EaseChatMessageList
Code IndexAdd Codota to your IDE (free)

How to use
EaseChatMessageList
in
com.hyphenate.easeui.widget

Best Java code snippets using com.hyphenate.easeui.widget.EaseChatMessageList (Showing top 20 results out of 315)

  • Common ways to obtain EaseChatMessageList
private void myMethod () {
EaseChatMessageList e =
  • Codota IconEaseChatFragment easeChatFragment;(EaseChatMessageList) easeChatFragment.getView().findViewById(id)
  • Smart code suggestions by Codota
}
origin: Vegen/SmartCampus

@Override
public void onMessageChanged(EMMessage emMessage, Object change) {
  if(isMessageListInited) {
    messageList.refresh();
  }
}
origin: easemob/livestream_demo_android

public EaseChatMessageList(Context context, AttributeSet attrs) {
  super(context, attrs);
  parseStyle(context, attrs);
  init(context);
}
origin: WuXiaolong/WoChat

private void init(Context context){
  this.context = context;
  LayoutInflater.from(context).inflate(R.layout.ease_chat_message_list, this);
  swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.chat_swipe_layout);
  listView = (ListView) findViewById(R.id.list);
}

origin: Vegen/SmartCampus

  messageList.setShowUserNick(true);
listView = messageList.getListView();
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);
origin: easemob/livestream_demo_android

@Override public void onMessageReceived(List<EMMessage> messages) {
 messageListView.refreshSelectLast();
 EaseUI.getInstance().getNotifier().vibrateAndPlayTone(messages.get(messages.size()-1));
}
origin: easemob/livestream_demo_android

protected void onMessageListInit(){
  messageList.init(toChatUsername, chatType, chatFragmentHelper != null ? 
      chatFragmentHelper.onSetCustomChatRowProvider() : null);
  setListItemClickListener();
  
  messageList.getListView().setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
      hideKeyboard();
      inputMenu.hideExtendMenuContainer();
      return false;
    }
  });
  
  isMessageListInited = true;
}

origin: stevenwsg/XSY-University-trade

public EaseChatMessageList(Context context) {
  super(context);
  init(context);
}
origin: Vegen/SmartCampus

protected void setListItemClickListener() {
  messageList.setItemClickListener(new EaseChatMessageList.MessageListItemClickListener() {
origin: easemob/livestream_demo_android

  messageList.setShowUserNick(true);
listView = messageList.getListView();
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);
origin: easemob/livestream_demo_android

private void sendMessage(EMMessage message) {
 editText.setText("");
 //send message
 EMClient.getInstance().chatManager().sendMessage(message);
 //refresh ui
 messageListView.refreshSelectLast();
}
origin: stevenwsg/XSY-University-trade

protected void onMessageListInit(){
  messageList.init(toChatUsername, chatType, chatFragmentHelper != null ? 
      chatFragmentHelper.onSetCustomChatRowProvider() : null);
  setListItemClickListener();
  
  messageList.getListView().setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
      hideKeyboard();
      inputMenu.hideExtendMenuContainer();
      return false;
    }
  });
  
  isMessageListInited = true;
}

origin: easemob/livestream_demo_android

public EaseChatMessageList(Context context) {
  super(context);
  init(context);
}
origin: WuXiaolong/WoChat

protected void setListItemClickListener() {
  messageList.setItemClickListener(new EaseChatMessageList.MessageListItemClickListener() {
origin: WuXiaolong/WoChat

@Override
public void onMessageReadAckReceived(List<EMMessage> messages) {
  if (isMessageListInited) {
    messageList.refresh();
  }
}
origin: stevenwsg/XSY-University-trade

  messageList.setShowUserNick(true);
listView = messageList.getListView();
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);
origin: Vegen/SmartCampus

  @Override
  public void run() {
    try {
      EMClient.getInstance().chatManager().fetchHistoryMessages(
          toChatUsername, EaseCommonUtils.getConversationType(chatType), pagesize, "");
      final List<EMMessage> msgs = conversation.getAllMessages();
      int msgCount = msgs != null ? msgs.size() : 0;
      if (msgCount < conversation.getAllMsgCount() && msgCount < pagesize) {
        String msgId = null;
        if (msgs != null && msgs.size() > 0) {
          msgId = msgs.get(0).getMsgId();
        }
        conversation.loadMoreMsgFromDB(msgId, pagesize - msgCount);
      }
      messageList.refreshSelectLast();
    } catch (HyphenateException e) {
      e.printStackTrace();
    }
  }
});
origin: stevenwsg/XSY-University-trade

public EaseChatMessageList(Context context, AttributeSet attrs) {
  super(context, attrs);
  parseStyle(context, attrs);
  init(context);
}
origin: zhangchunbin/HuanXinDemo

protected void onMessageListInit(){
  messageList.init(toChatUsername, chatType, chatFragmentHelper != null ? 
      chatFragmentHelper.onSetCustomChatRowProvider() : null);
  setListItemClickListener();
  
  messageList.getListView().setOnTouchListener(new OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
      hideKeyboard();
      inputMenu.hideExtendMenuContainer();
      return false;
    }
  });
  
  isMessageListInited = true;
}

origin: zhangchunbin/HuanXinDemo

public EaseChatMessageList(Context context) {
  super(context);
  init(context);
}
origin: easemob/livestream_demo_android

private void init(Context context){
  this.context = context;
  LayoutInflater.from(context).inflate(R.layout.ease_chat_message_list, this);
  swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.chat_swipe_layout);
  listView = (ListView) findViewById(R.id.list);
}

com.hyphenate.easeui.widgetEaseChatMessageList

Javadoc

聊天消息列表控件

Most used methods

  • refresh
    refresh
  • init
    init widget
  • refreshSelectLast
    refresh and jump to the last
  • findViewById
  • getListView
    获取listview
  • getSwipeRefreshLayout
    获取SwipeRefreshLayout
  • parseStyle
  • setItemClickListener
    set click listener
  • setShowUserNick
    设置是否显示用户昵称
  • refreshSeekTo
    refresh and jump to the position

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now