Android Question Is there any way to change some listview item color

fash866

Member
Licensed User
Longtime User
Hi:
I want to change the first item's color in the listview,how can i do?
 

DonManfred

Expert
Licensed User
Longtime User
To be more precise:

- You can set/define three layouts.

- All Singleitems will have the same color/size
- All Twoline-Items will have the same color/size
- All Twolineandbitmap-items will have the same size/color.

If your FIRST item fo example is a singlelineitem and all others are twoline-items then it will work as you expected.
But note all additional singleline-items will have the same color.

BUT
It is better to use CustomListView or CheckList
is surely right! With a CustomListView you have the wanted possibilities...
 
Upvote 0

fash866

Member
Licensed User
Longtime User
To be more precise:

- You can set/define three layouts.

- All Singleitems will have the same color/size
- All Twoline-Items will have the same color/size
- All Twolineandbitmap-items will have the same size/color.

If your FIRST item fo example is a singlelineitem and all others are twoline-items then it will work as you expected.
But note all additional singleline-items will have the same color.

BUT

is surely right! With a CustomListView you have the wanted possibilities...
Well, I now is to use this method. Still thank you!
 
Upvote 0
Top