@Override public void onClick(View v) { // TODO Auto-generated method stub switch (v.getId()) { case R.id.del_tv: SureDelCollectSmsItemDailog dialog = new SureDelCollectSmsItemDailog( CollectListDetailActivity.this, R.style.Theme_CustomDialog); dialog.setItem(mSmsItem); dialog.showDialog(); break; case R.id.forward_tv: Intent intent = new Intent(CollectListDetailActivity.this, KindroidMessengerWriteMessageActivity.class); intent.putExtra( KindroidMessengerWriteMessageActivity.FORWARD_MESSAGE_KEY, mSmsItem.getmBody() + ""); startActivity(intent); break; default: break; } }
private void initContentViews() { View contentView = null; try { contentView = KindroidMessengerApplication.mThemeRegistry.inflate(LAYOUT_FILE); } catch (Exception e) { contentView = null; } if (contentView == null) { setContentView(R.layout.collect_detail_layout); } else { setContentView(contentView); } mSmsItem = (CategorySmsListItem) getIntent().getSerializableExtra(CollectListActivity.COLLET_LIST_ITEM); findView(); bindListenerToView(); mSmsContentTv.setText(mSmsItem.getmBody() + ""); }