先放完成截图:
实现代码:
完成初始化的一些工作:
private static final int CODE =123;
public static final int MAX_COUNT=10;
private static final int RANDOM_NUMBER = 500;
TextView mResultView;
ImageView mouseImageView;
Button startbutton;
public int [][] mPosition=new int[][]{
{123,678},{432,880},
{532,234},{429,244},
{145,789},{666,777},
{555,666},{432,880}
};
private int mTotalCount;
private int mSuccessCount;
private MouseHandler hander=new MouseHandler(this);
@Override