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 :
<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" >
</GridView>
I need to give colours to each cell of the grid view. Is it possible to do that ? If yes, how ?