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

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

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

  • Common ways to obtain EaseConversationList
private void myMethod () {
EaseConversationList e =
  • Codota IconEaseConversationListFragment easeConversationListFragment;(EaseConversationList) easeConversationListFragment.getView().findViewById(id)
  • Smart code suggestions by Codota
}
origin: easemob/livestream_demo_android

@Override public void onMessageReceived(List<EMMessage> list) {
 conversationListView.refresh();
}
origin: Vegen/SmartCampus

public EaseConversationList(Context context, AttributeSet attrs, int defStyle) {
  super(context, attrs, defStyle);
  init(context, attrs);
}
origin: zhangchunbin/HuanXinDemo

public void onTextChanged(CharSequence s, int start, int before, int count) {
  conversationListView.filter(s);
  if (s.length() > 0) {
    clearSearch.setVisibility(View.VISIBLE);
  } else {
    clearSearch.setVisibility(View.INVISIBLE);
  }
}
origin: Vegen/SmartCampus

@Override
protected void setUpView() {
  conversationList.addAll(loadConversationList());
  conversationListView.init(conversationList);
    conversationListView.setOnItemClickListener(new OnItemClickListener() {
  conversationListView.setOnTouchListener(new OnTouchListener() {
origin: easemob/livestream_demo_android

@Override public void onActivityCreated(@Nullable Bundle savedInstanceState) {
 super.onActivityCreated(savedInstanceState);
 if(getArguments() != null) {
  anchorId = getArguments().getString(ARG_ANCHOOR);
  isNormalStyle = getArguments().getBoolean(ARG_IS_NORMAL, false);
 }
 if(isNormalStyle){
  getView().findViewById(R.id.close).setVisibility(View.INVISIBLE);
  toolbar.setBackgroundColor(getResources().getColor(R.color.colorPrimary));
  titleView.setTextColor(getResources().getColor(R.color.common_white));
 }
 conversationList.clear();
 conversationList.addAll(loadConversationList());
 conversationListView.init(conversationList);
 conversationListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   if(!isNormalStyle) {
    ChatFragment chatFragment = ChatFragment.newInstance(conversationList.get(position).conversationId(), isNormalStyle);
    getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.message_container, chatFragment).addToBackStack(null).commit();
   } else {
    startActivity(new Intent(getActivity(), ChatActivity.class).putExtra("username", conversationList.get(position).conversationId()));
   }
  }
 });
}
origin: WuXiaolong/WoChat

public void init(List<EMConversation> conversationList){
  passedListRef = conversationList;
  conversations.addAll(conversationList);
  
  adapter = new EaseConversationAdapater(context, 0, conversations);
  adapter.setPrimaryColor(primaryColor);
  adapter.setPrimarySize(primarySize);
  adapter.setSecondaryColor(secondaryColor);
  adapter.setSecondarySize(secondarySize);
  adapter.setTimeColor(timeColor);
  adapter.setTimeSize(timeSize);
  setAdapter(adapter);
}

origin: WuXiaolong/WoChat

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    EMConversation conversation = conversationListView.getItem(position);
    listItemClickListener.onListItemClicked(conversation);
  }
});
origin: easemob/livestream_demo_android

private void init(Context context, AttributeSet attrs) {
  this.context = context;
  TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.EaseConversationList);
  primaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListPrimaryTextColor, getResources().getColor(R.color.list_itease_primary_color));
  secondaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListSecondaryTextColor,getResources().getColor(R.color.list_itease_secondary_color));
  timeColor = ta.getColor(R.styleable.EaseConversationList_cvsListTimeTextColor, getResources().getColor(R.color.list_itease_secondary_color));
  primarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListPrimaryTextSize, 0);
  secondarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListSecondaryTextSize, 0);
  timeSize = ta.getDimension(R.styleable.EaseConversationList_cvsListTimeTextSize, 0);
  
  ta.recycle();
  
}
origin: easemob/livestream_demo_android

@Override
protected void setUpView() {
  conversationList.addAll(loadConversationList());
  conversationListView.init(conversationList);
    conversationListView.setOnItemClickListener(new OnItemClickListener() {
  conversationListView.setOnTouchListener(new OnTouchListener() {
origin: zhangchunbin/HuanXinDemo

public void init(List<EMConversation> conversationList, EaseConversationListHelper helper){
  conversations = conversationList;
  if(helper != null){
    this.conversationListHelper = helper;
  }
  adapter = new EaseConversationAdapter(context, 0, conversationList);
  adapter.setCvsListHelper(conversationListHelper);
  adapter.setPrimaryColor(primaryColor);
  adapter.setPrimarySize(primarySize);
  adapter.setSecondaryColor(secondaryColor);
  adapter.setSecondarySize(secondarySize);
  adapter.setTimeColor(timeColor);
  adapter.setTimeSize(timeSize);
  setAdapter(adapter);
}

origin: stevenwsg/XSY-University-trade

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    EMConversation conversation = conversationListView.getItem(position);
    listItemClickListener.onListItemClicked(conversation);
  }
});
origin: Vegen/SmartCampus

private void init(Context context, AttributeSet attrs) {
  this.context = context;
  TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.EaseConversationList);
  primaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListPrimaryTextColor, getResources().getColor(R.color.list_itease_primary_color));
  secondaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListSecondaryTextColor, getResources().getColor(R.color.list_itease_secondary_color));
  timeColor = ta.getColor(R.styleable.EaseConversationList_cvsListTimeTextColor, getResources().getColor(R.color.list_itease_secondary_color));
  primarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListPrimaryTextSize, 0);
  secondarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListSecondaryTextSize, 0);
  timeSize = ta.getDimension(R.styleable.EaseConversationList_cvsListTimeTextSize, 0);
  
  ta.recycle();
  
}
origin: zhangchunbin/HuanXinDemo

@Override
protected void setUpView() {
  conversationList.addAll(loadConversationList());
  conversationListView.init(conversationList);
    conversationListView.setOnItemClickListener(new OnItemClickListener() {
  conversationListView.setOnTouchListener(new OnTouchListener() {
origin: zhangchunbin/HuanXinDemo

public EaseConversationList(Context context, AttributeSet attrs) {
  super(context, attrs);
  init(context, attrs);
}

origin: stevenwsg/XSY-University-trade

  public void run() {
    while (true) {
      // ------- code for task to run
      conversationListView.refresh();
      // ------- ends here
      try {
        Thread.sleep(timeInterval);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
  }
};
origin: stevenwsg/XSY-University-trade

public void init(List<EMConversation> conversationList, EaseConversationListHelper helper){
  conversations = conversationList;
  if(helper != null){
    this.conversationListHelper = helper;
  }
  adapter = new EaseConversationAdapter(context, 0, conversationList);
  adapter.setCvsListHelper(conversationListHelper);
  adapter.setPrimaryColor(primaryColor);
  adapter.setPrimarySize(primarySize);
  adapter.setSecondaryColor(secondaryColor);
  adapter.setSecondarySize(secondarySize);
  adapter.setTimeColor(timeColor);
  adapter.setTimeSize(timeSize);
  setAdapter(adapter);
}

origin: easemob/livestream_demo_android

  @Override
  public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    EMConversation conversation = conversationListView.getItem(position);
    listItemClickListener.onListItemClicked(conversation);
  }
});
origin: stevenwsg/XSY-University-trade

public void onTextChanged(CharSequence s, int start, int before, int count) {
  conversationListView.filter(s);
  if (s.length() > 0) {
    clearSearch.setVisibility(View.VISIBLE);
  } else {
    clearSearch.setVisibility(View.INVISIBLE);
  }
}
origin: stevenwsg/XSY-University-trade

private void init(Context context, AttributeSet attrs) {
  this.context = context;
  TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.EaseConversationList);
  primaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListPrimaryTextColor, getResources().getColor(R.color.list_itease_primary_color));
  secondaryColor = ta.getColor(R.styleable.EaseConversationList_cvsListSecondaryTextColor, getResources().getColor(R.color.list_itease_secondary_color));
  timeColor = ta.getColor(R.styleable.EaseConversationList_cvsListTimeTextColor, getResources().getColor(R.color.list_itease_secondary_color));
  primarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListPrimaryTextSize, 0);
  secondarySize = ta.getDimensionPixelSize(R.styleable.EaseConversationList_cvsListSecondaryTextSize, 0);
  timeSize = ta.getDimension(R.styleable.EaseConversationList_cvsListTimeTextSize, 0);
  
  ta.recycle();
  
}
origin: stevenwsg/XSY-University-trade

@Override
protected void setUpView() {
  conversationList.addAll(loadConversationList());
  conversationListView.init(conversationList);
    conversationListView.setOnItemClickListener(new OnItemClickListener() {
  conversationListView.setOnTouchListener(new OnTouchListener() {
com.hyphenate.easeui.widgetEaseConversationList

Javadoc

会话列表控件

Most used methods

  • refresh
  • init
  • setOnItemClickListener
  • filter
  • getItem
  • setAdapter
  • setOnTouchListener
  • getResources
  • sortConversationByLastChatTime
    根据最后一条消息的时间排序
  • setConversationListHelper

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Socket (java.net)
    Provides a client-side TCP socket.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JFileChooser (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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