Slide 7
Slide 7 text
UI 、繪圖與控制 : 事件
ImageView image = (ImageView) findViewById(R.id.image1);
image.setImageResource(R.drawable.member_01);
TextView text = (TextView) findViewById(R.id.text1);
text.setText("test");
Button NewGameButton = (Button)findViewById(R.id.button1);
NewGameButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent NewGameIntent = new Intent(start.this,NewGame.class);
startActivity(NewGameIntent);
}
});