私はView
チェッカーボードを描いた を持っています
protected void onDraw(Canvas canvas) {
for (int i = 0; i < 8; i ++) {
for (int j = 0; j < 8; j ++) {
float x = j * width;
float y = i * height;
if ((i + j) % 2 == 0) {
canvas.drawRect(x, y, x + width, y + height, lite_square);
}
ここDrawableAnimation
で、チェッカー ボードの任意の正方形にオブジェクトを配置します。解決のためのヘルプ/ポインターが必要です。