i’m trying to set different textcolor for different list items of a listview. How to achieve it?
Any help is really appreciated and thanks in advance…
i’m trying to set different textcolor for different list items of a listview. How
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For that you have to define a custom adapter by extending BaseAdapter. Now define a class and extends BaseAdapter, inside it you can perform the change color kind of stuffs inside the
getView()method.For defining custom listview, here are examples for the same. Go through the examples and try to implement in your way.