title: Android Find the position of touched TextView in a TableLayout
body: <p>I have a <code>TableLayout</code> with 60 <code>TextViews</code> and i need to recognize witch <code>TextViews</code> the user touch for change their text and background color.
  The problem is that i save in a sqlite database the inputed data and i don't know how load the content inside <code>TableView</code> when the user launch the app.
  I try with ids saved in the database but it's not good.
  How can i do that?
  Any idea?</p>
  
  <p>If the user touch the <code>TextView</code> in a position 1:1 Row:Column how can i know this?
  If i know Row:Column in <code>onCreate</code> method i can insert to <code>TableView</code> the new changed <code>TextViews</code></p>
  
  <p>Some xml of the TableLayout:</p>
  
  <pre><code>&lt;TableRow
                  android:id="@+id/prima_riga"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:id="@+id/h1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="1"
                      android:textColor="@color/text_orario"
                      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
                  &lt;TextView
                      android:id="@+id/mat11"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="20dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text=""/&gt;
                  &lt;TextView
                      android:id="@+id/mat12"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="33dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text="" /&gt;
                  &lt;TextView
                      android:id="@+id/mat13"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="33dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text="" /&gt;
                  &lt;TextView
                      android:id="@+id/mat14"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="33dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text="" /&gt;
                  &lt;TextView
                      android:id="@+id/mat15"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="33dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text="" /&gt;
                  &lt;TextView
                      android:id="@+id/mat16"
                      android:layout_width="50dp"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="33dp"
                      android:gravity="center"
                      android:clickable="true"
                      android:onClick="addMateria"
                      android:background="@color/grigio_chiaro"
                      android:text="" /&gt;
              &lt;/TableRow&gt;
  </code></pre>
  
  <p>With the method addMateria i change text and background of the TextViews.</p>