ListView selector color and view(in listview backgroundcolor

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

ListView selector color and view(in listview backgroundcolor

Postby chidkido » Mon Mar 02, 2009 8:57 am

I have layout name MyLayout extends LinearLayout for contain a lot of view
and show my layout in listview(via my custom adapter)

:P

and then I setBackgroundColor in constructor of MyLayout as Color.RED

it work

but when I set listView.setSelector(grColor); //grColor is GradientDrawable
it don't show selected color :(

I try to change background color of my view as Color.argb(50, 255, 0, 0)
now it show selected color
but it's red color + backgroundcolor(black)
it's not red :(

how to set Selector and set View backgroundcolor as Color.RED???

thanks
chidkido
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Mar 02, 2009 8:31 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 20 guests