android中itemClickListener怎么跳转到另一个activity?
2个回答
展开全部
Intent intent = new Intent();
// 传值就用注释的这里,不传值就不用;
// Bundle bundle = new Bundle();
// bundle.putString("key_height", fieldHeight.getText().toString());
// bundle.putString("key_weight", fieldWeight.getText().toString());
// intent.putExtras(bundle);
intent.setClass(A.this,B.class);
startActivity(intent);
A.B分别为当前activity,目的Activity;
// 传值就用注释的这里,不传值就不用;
// Bundle bundle = new Bundle();
// bundle.putString("key_height", fieldHeight.getText().toString());
// bundle.putString("key_weight", fieldWeight.getText().toString());
// intent.putExtras(bundle);
intent.setClass(A.this,B.class);
startActivity(intent);
A.B分别为当前activity,目的Activity;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询