简单的扑克牌游戏
扑克牌
再来一次
恭喜您,猜对了,你该买彩票了!
很遗憾,猜错了,有志者事竟成,再来一次!
猜猜A是哪一个张?
Activity
public class CardsActivity extends Activity {
/** Called when the activity is first created. */
private ImageView imageView0=null;
private ImageView imageView1=null;
private ImageView imageView2=null;
private ImageView imageView3=null;
private ImageView imageView4=null;
private TextView textView01=null;
//得到所有的图片的id
private static int image[]=new int[]
{R.drawable.image1,R.drawable.image2,R.drawable.image3,R.drawable.image4,R.drawable.main,};
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
imageView0=(ImageView)findViewById(R.id.card1);
imageView