点击threadItem查看MessageList时传递数据

@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    TxrjThreads thread = mThreads.get(position);
    Intent it = new Intent();
    it.setClass(mContext, MessageListActivity.class);
    it.putExtra(TxrjConstant.EXTRA_THREAD_ID, thread.getThreadId());
    if(!TextUtils.isEmpty(thread.getName())) {
        it.putExtra(TxrjConstant.EXTRA_THREAD_DISPLAY_NAME, thread.getName());
    } else {
        it.putExtra(TxrjConstant.EXTRA_THREAD_DISPLAY_NAME, thread.getNumber());
    }
    startActivity(it);
}

你可能感兴趣的:(message)