1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to change GridView highlight color

Discussion in 'Android Apps & Games' started by innovator, May 15, 2011.

  1. innovator

    innovator Lurker
    Thread Starter

    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.
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...