标签:android io java for sp on 问题 cti log
============问题描述============
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); } }
============解决方案1============
============解决方案2============
标签:android io java for sp on 问题 cti log
原文地址:http://www.cnblogs.com/liangxieliang56/p/4041964.html