Btn.setOnClickListener(new View.OnClickListener() { //绑定监听 @Override public void onClick(View v) { Intent intent=new Intent(MainActivity.this,Main2Activity.class); startActivity(intent);
}
});