<span style="font-family: Arial, Helvetica, sans-serif;">eat.setOnClickListener(new OnClickListener(){</span>
public void onClick(View v){
Choose chooseeat=new Choose("eat",6);
String[] listeat=new String[chooseeat.getLength()];
listeat[0]="鸡排饭";
listeat[1]="油泼面";
listeat[2]="盖浇饭";
listeat[3]="干拌面";
listeat[4]="冒菜";
listeat[5]="砂锅";
chooseeat.setList(listeat);
Intent intent=new Intent();
Bundle bundle=new Bundle();
bundle.putSerializable("choose", chooseeat);
intent.putExtras(bundle);
intent.setClass(Main.this, Shake.class);
startActivity(intent);
}
});
//使用putSerializable实现