title: How to add colour to each cell of Grid view in Android?
body: <p>Am developing a calculator in Android. I placed all the numbers and arithmetic operators in a grid view. The following is the xml code of the grid view :</p>
  
  <pre><code>&lt;GridView
      android:id="@+id/gridView1"
      android:layout_width="320dp"
      android:layout_height="270dp"
      android:layout_below="@+id/textView2"
      android:layout_centerHorizontal="true"
      android:columnWidth="20dp"
      android:horizontalSpacing="50dp"
      android:numColumns="4"
      android:padding="0dp"
      android:verticalSpacing="20dp" &gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p>I need to give colours to each cell of the grid view. Is it possible to do that ? If yes, how ?</p>