Listview Styles Help (Urgent)

Put your problem here if it does not fit any of the other categories.

Listview Styles Help (Urgent)

Postby zeeshan » Fri Mar 14, 2008 5:51 am

Hello I want to create a border listview how can i do that ?? any idea?

how to change text color of listview item on selection ?

like

i have a listview

A
B
C
when i select its A would be in white color ??
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Top

Postby erbedo » Fri Mar 14, 2008 12:36 pm

You need to change the listSelector item.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. android:listSelector = "@drawable/list_selector"
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


That's it :)
erbedo
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Mar 13, 2008 9:39 pm

Postby zeeshan » Fri Mar 14, 2008 12:44 pm

i want to change text color how can i do that?
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Postby erbedo » Fri Mar 14, 2008 2:20 pm

Related to android:listSelector, you have
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. setSelector(Drawable)
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
What you need to do is simply pass a drawable id to that method.

HTH
erbedo
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Mar 13, 2008 9:39 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 19 guests