80,490
社区成员
发帖
与我相关
我的任务
分享tongzhi1=(TextView)findViewById(R.id.tongzhi1);
tongzhi1.setOnClickListener(new OnClickListener(){
public void onClick(View args0){
Intent intent = new Intent();
Bundle bundle = new Bundle();
String hh = tongzhi1.getText().toString();
// String content = tongzhi1.getText().toString();
// String time = tongzhi1.getText().toString();
bundle.putString("noticeTitle", "");
bundle.putString("notice", hh);
bundle.putString("sendDateStr", "");
intent.putExtras(bundle);
intent.setClass(NoticeActivity.this,NoticeDetailedActivity.class);
startActivity(intent);
}
});Intent intent = new Intent();
Bundle bundle = new Bundle();
String hh = tongzhi1.getText().toString();
String content = tongzhi1.getText().toString();
String time = tongzhi1.getText().toString();
bundle.putString("noticeTitle", content);
bundle.putString("notice", hh);
bundle.putString("sendDateStr", time);
intent.putExtras(bundle);
intent.setClass(NoticeActivity.this,NoticeDetailedActivity.class);
startActivity(intent);
因为只有一个控件,我不会传递三个值,接收我会,但是传过去不会