package com.example.grille;

import android.os.Bundle;
import android.view.GestureDetector;
import android.view.View;
import android.widget.GridLayout;
import android.app.Activity;


public class MainActivity extends Activity {
    private GestureDetector gestureDetector;
    private View[][] cases = new View[3][3];

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        GridLayout gridLayout = new GridLayout(this);
        gridLayout.setColumnCount(3);
        gridLayout.setRowCount(3);
        gridLayout.setLayoutParams(new GridLayout.LayoutParams());

        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                CellView cell = new CellView(this);
                gridLayout.addView(cell);
                cases[i][j] = cell;
            }
        }

        setContentView(gridLayout);
    }
}
