• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to change GridView highlight color

innovator

Lurker
Hi,

I am using Android composite GridView and it is highlighted in default orange color.

Below is the xml which i used to show GridView but what is the attribute i have to add to my own color for highlighting the Grids

<?​
xml version="1.0" encoding="utf-8"?>
<
GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

android:numColumns="auto_fit"

android:verticalSpacing="40dp"

android:horizontalSpacing="40dp"

android:columnWidth="90dp"

android:stretchMode="columnWidth"

android:gravity="center" android:background="#FF696969"/>

Please provide a sample code on doing this.
 
Back
Top Bottom