Activity的切换
Activity的切换:
Button btn = (Button) findViewById(R.id.jump_btn);
btn.setOnClickListener(test_view);
}
private Button.OnClickListener test_view = new Button.OnClickListener() {
@Override
public void onClick(View v) {
Intent in = new Intent();
in.setClass(MainActivity.this, Act1.class);
startActivity(in);
}
};