예제 #1
0
 @Override
 public void handleMessage(android.os.Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case UPDATE_LAST_PAGE_LISTVIEW:
       Log.i("Tag", "收到更新消息列表的消息");
       mChatAdapter.refresh();
       mChatView.removeHeadView();
       break;
     case UPDATE_CHAT_LISTVIEW:
       mChatAdapter.refresh();
       break;
   }
 }
예제 #2
0
 public void refresh() {
   mChatView.setChatTitle(mConv.getDisplayName());
   mChatAdapter.refresh();
 }