1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
public class main extends Activity implements OnDispatchClickListener, OnClickListener {
private Button bcompte;
private Button bcredit;
private Button bbourse;
@Override
public void onCreate(Bundle savedInstanceState){
bcompte=(Button) findViewById(R.id.bcompte);
bcompte.setOnClickListener(this);
bcredit=(Button) findViewById(R.id.bcredit);
bcredit.setOnClickListener(this);
bbourse=(Button) findViewById(R.id.bbourse);
bbourse.setOnClickListener(this);
}
public void onClick1(View menu1view) {
Intent gomenu1= new Intent(Menu1.this, Menu2.class);
startActivity(gomenu1);}
public void onClick2(View menu2view) {
Intent gomenu2= new Intent(Menu1.this, Menu2.class);
startActivity(gomenu2);}
public void onClick3(View menu3view) {
Intent gomenu3= new Intent(Menu1.this, Menu2.class);
startActivity(gomenu3);}
} |
Partager