dimanche 11 février 2018

Comment créer "Jeu de la vie" pour Android

Qu'est ce que "Jeu de la vie"?

Le jeu de la vie est un automate cellulaire imaginé par John Horton Conway en 1970 qui est probablement, au début du xxie siècle, le plus connu de tous les automates cellulaires. Malgré des règles très simples, le jeu de la vie est Turing-complet. (Jeu de la vie, wikipedia)




D'abord, installer Android studio et créer un projet du jeu de la vie. J'ai choisi "API22" pour le SDK minimum.



Créer xml pour l'application. Cliquer sur "Text" et nous pouvons directement éditer xml.




Changer les lettres rouges par le nom du site web et changer les lettres bleus par le nom du projet.
Copier coller dans l'éditeur de xml.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.blogspot.noteoneverything.gameoflife.MainActivity">

    <TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Le jeu de la vie"
        android:textAppearance="@android:style/TextAppearance.Material.Large"
        android:textSize="25dp"
        app:layout_constraintBottom_toBottomOf="@+id/guideline-topword-h"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TableLayout
        android:id="@+id/game_panel"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:background="#cccccc"
        android:orientation="vertical"
        android:stretchColumns="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/guideline-topword-h">

        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>
        <TableRow
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5">

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />
            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent"

                />

            <View
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

            <View
                android:layout_width="0dp"
                android:layout_height="0px"
                android:background="#cccccc"
                android:visibility="invisible" />

        </TableRow>


    </TableLayout>


    <android.support.constraint.Guideline
        android:id="@+id/guideline-topword-v"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        app:layout_constraintGuide_percent="0.2" />

    <android.support.constraint.Guideline
        android:id="@+id/guideline-topword-h"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintGuide_percent="0.2" />

    <Button
        android:id="@+id/start_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="evaluatePanel"
        android:text="Start"
        app:layout_constraintBottom_toTopOf="@+id/game_panel"
        app:layout_constraintEnd_toEndOf="parent" />

</android.support.constraint.ConstraintLayout>

Cliquer sur "Design".

Nous allons voir un 40 x 40 panneau.

Ajouter les lignes de code dans MainActivity.java (ou votre java fichier d'Activity du panneau):
package com.blogspot.noteoneverything.gameoflife;

import android.content.ClipData;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.DragEvent;
import android.view.View;
import android.view.MotionEvent;
import android.view.View.OnTouchListener;
import android.view.View.OnDragListener;
import android.widget.Button;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class MainActivity extends AppCompatActivity {
    ArrayList<View> aliveCells = new ArrayList<View>();
    ArrayList<View> deadCells = new ArrayList<View>();
    volatile boolean running = false;
    AsyncEvaluate ae = new AsyncEvaluate();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TableLayout tl = (TableLayout) findViewById(R.id.game_panel);
        final int childCount = tl.getChildCount();
        for (int i = 0; i < childCount; i++) {
            TableRow row = (TableRow) tl.getChildAt(i);
            final int rowChildCount = row.getChildCount();
            for (int j = 0; j < rowChildCount; j++) {
                View cell = row.getChildAt(j);
                cell.setOnTouchListener(new OnTouchListener() {
                    @Override
                    public boolean onTouch(View v, MotionEvent ev) {
                        switch (ev.getAction() & MotionEvent.ACTION_MASK) {
                            case MotionEvent.ACTION_DOWN:
                                ClipData data = ClipData.newPlainText("", "");
                                View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(null);
                                v.startDrag(data, shadowBuilder, v, 0);

                                break;
                            case MotionEvent.ACTION_CANCEL:
                            case MotionEvent.ACTION_UP:
                                break;
                            case MotionEvent.ACTION_MOVE:
                                changeColor(v);
                                break;
                            default:
                                break;
                        }
                        return true;
                    }
                });
                cell.setOnDragListener(new OnDragListener() {
                    @Override
                    public boolean onDrag(View v, DragEvent ev) {
                        final int action = ev.getAction();
                        switch (action) {
                            case DragEvent.ACTION_DRAG_STARTED:
                                break;
                            case DragEvent.ACTION_DRAG_ENTERED:
                                changeColor(v);
                                break;
                            case DragEvent.ACTION_DROP:
                                break;
                            default:
                                break;
                        }
                        return true;
                    }
                });
            }
        }
    }

    public void evaluatePanel(View v){
        if(ae.getStatus() == AsyncTask.Status.RUNNING){
            System.out.println("stopped");
            ae.cancel(true);
            running = false;
        } else {
            System.out.println("running");
            ae = new AsyncEvaluate();
            ae.execute("");
            running = true;
        }
    }

    public void changeCells(){
        TableLayout tl = (TableLayout) findViewById(R.id.game_panel);
        final int childCount = tl.getChildCount();
        for (int i = 0; i < childCount; i++) {
            TableRow rowMain = (TableRow) tl.getChildAt(i);
            final int rowChildCount = rowMain.getChildCount()-1;
            for (int j = 0; j < rowChildCount; j++) {
                View cellMain = rowMain.getChildAt(j);
                TableRow rowUp = null;
                if(i >= 1) rowUp = (TableRow) tl.getChildAt(i-1);
                else rowUp = (TableRow) tl.getChildAt(childCount-1);
                TableRow rowDown = null;
                if(i < childCount-1) rowDown = (TableRow) tl.getChildAt(i+1);
                else rowDown = (TableRow) tl.getChildAt(0);
                View cellN = null;
                View cellNW = null;
                View cellNE = null;
                if(rowUp != null){
                    cellN = rowUp.getChildAt(j);
                    if(j > 0) cellNW = rowUp.getChildAt(j-1);
                    else cellNW = rowUp.getChildAt(rowChildCount-1);
                    if(j < rowChildCount-1) cellNE = rowUp.getChildAt(j+1);
                    else cellNE = rowUp.getChildAt(0);
                }
                View cellW = null;
                if(j >= 1) cellW = rowMain.getChildAt(j-1);
                else if(j==0) cellW = rowMain.getChildAt(rowChildCount-1);
                View cellE = null;
                if(j < rowChildCount-1) cellE = rowMain.getChildAt(j+1);
                else{
                    cellE = rowMain.getChildAt(0);
                }
                View cellS = null;
                View cellSW = null;
                View cellSE = null;
                if(rowDown != null){
                    cellS = rowDown.getChildAt(j);
                    if(j > 0) cellSW = rowDown.getChildAt(j-1);
                    else cellSW = rowDown.getChildAt(rowChildCount-1);
                    if(j < rowChildCount-1) cellSE = rowDown.getChildAt(j+1);
                    else cellSE = rowDown.getChildAt(0);
                }
                ArrayList<View> cells = new ArrayList<View>();
                cells.add(cellN);
                cells.add(cellNE);
                cells.add(cellNW);
                cells.add(cellE);
                cells.add(cellW);
                cells.add(cellS);
                cells.add(cellSE);
                cells.add(cellSW);
                Map<String, View> allCells = evaluateCellsAroundMe(cellMain, cells);
                View dead = allCells.get("dead");
                if(dead != null) deadCells.add(dead);
                View alive = allCells.get("alive");
                if(alive != null) aliveCells.add(alive);
            }
        }
        changeCellColor(aliveCells, deadCells);
    }

    public Map<String, View> evaluateCellsAroundMe(View cellMain, ArrayList<View> cells){
        Map<String, View> map = new HashMap<String, View>();
        int numOfCellsAlive = 0;
        int color;
        for (View cell: cells) {
            if(cell != null){
                color = Color.TRANSPARENT;
                Drawable background = cell.getBackground();
                if (background instanceof ColorDrawable) color = ((ColorDrawable) background).getColor();
                if(color == -16711936) numOfCellsAlive++;
            }
        }
        int colorMain = Color.TRANSPARENT;
        Drawable backgroundMain = cellMain.getBackground();
        if (backgroundMain instanceof ColorDrawable) colorMain = ((ColorDrawable)backgroundMain).getColor();

        //Birth
        if(numOfCellsAlive == 3 && colorMain != -16711936){
            map.put("alive", cellMain);
            return map;
        }
        //Crowded
        if(numOfCellsAlive >= 4 && colorMain == -16711936){
            map.put("dead", cellMain);
            return map;
        }
        //Live
        if((numOfCellsAlive == 2 || numOfCellsAlive == 3) && colorMain == -16711936){
            map.put("alive", cellMain);
            return map;
        };
        //Isolated
        if(numOfCellsAlive <= 1 && colorMain == -16711936){
            map.put("dead", cellMain);
            return map;
        }
        return map;
    }

    public void changeColor(View v) {
        int color = Color.TRANSPARENT;
        Drawable background = v.getBackground();
        if (background instanceof ColorDrawable) color = ((ColorDrawable) background).getColor();
        if(color == -16711936) v.setBackgroundColor(Color.parseColor("#cccccc"));
        else v.setBackgroundColor(0xFF00FF00);
    }
    public void changeColorGray(View v) {
        v.setBackgroundColor(Color.parseColor("#cccccc"));
    }
    public void changeColorGreen(View v){
        v.setBackgroundColor(0xFF00FF00);
    }
    public void changeCellColor(ArrayList<View> aliveCells, ArrayList<View> deadCells){
        for (View aliveCell: aliveCells) {
            if(aliveCell != null){
                changeColorGreen(aliveCell);
            }
        }
        aliveCells.clear();
        for (View deadCell: deadCells) {
            if(deadCell != null){
                changeColorGray(deadCell);
            }
        }
        deadCells.clear();
    }


    private class AsyncEvaluate extends AsyncTask<String, Void, String> {
        @Override
        protected String doInBackground(String... params) {
            while (running) {
                try {
                    Thread.sleep(100);
                    runOnUiThread(new Runnable() // start actions in UI thread
                    {
                        @Override
                        public void run() {;
                            // this action have to be in UI thread
                            changeCells();
                        }
                    });
                } catch (InterruptedException e) {
                    Thread.interrupted();
                    return "Interrupted";
                } catch (IllegalThreadStateException e){
                    Thread.interrupted();
                    return "Interrupted";
                }
            }
            return "Executed";
        }

        @Override
        protected void onPostExecute(String result) {

            // txt.setText(result);
            // might want to change "executed" for the returned string passed
            // into onPostExecute() but that is upto you
        }

        @Override
        protected void onPreExecute() {
            Button startbtn = (Button) findViewById(R.id.start_button);
            startbtn.setText("Stop");
        }

        @Override
        protected void onProgressUpdate(Void... values) {}

        @Override
        protected void onCancelled() {
            Button startbtn = (Button) findViewById(R.id.start_button);
            startbtn.setText("Start");
        }
    }
}

Et exécuter le code. Nous pouvons dessiner sur le panneau.

Cliquer sur "Start".


Le jeu de la vie va commencer!










Aucun commentaire:

Enregistrer un commentaire