Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int y = 0; y < MAX; y++)
- {
- rows[y] = new TableRow(ctx);
- for(int x = 0; x < MAX; x++)
- {
- img[x][y] = new ImageView(ctx);
- img[x][y].setMaxHeight(15);
- img[x][y].setMaxWidth(15);
- img[x][y].setImageResource(R.drawable.case0);
- img[x][y].setOnClickListener(new CaseListener(x, y));
- img[x][y].setOnLongClickListener(new FlagListener(x, y));
- rows[y].addView(img[x][y]);
- }
- table.addView(rows[y]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement