标签:android io java for sp c 问题 on cti
public boolean onTouchEvent(MotionEvent event) { //Log.i("sudu002", "done!!!!!!!!!!!!!!!!!"); if(event.getAction() != event.ACTION_DOWN) return super.onTouchEvent(event); int x = (int) (event.getX()/width); int y = (int) (event.getY()/height); int [] used = game.getUsedTilesByCoor(x,y); //Log.i("sudu002", "return usedData" + used.length); for(int a:used) Log.i("SHUDU", a+""); dialog = new MyDialog(getContext(),used); dialog.show(); return true; }
public class MyDialog extends Dialog{ private View keyButton[] = new View[9]; private int[] usedData = new int[9]; public MyDialog(Context context, int[] usedData) { super(context); this.usedData = usedData; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle("123"); setContentView(R.layout.my_dialog); } }
标签:android io java for sp c 问题 on cti
原文地址:http://www.cnblogs.com/meizhenfen42/p/4011028.html