I have the default list view as with the black background, I would like to have it like this:
or:

How do I achieve this?
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.
If you using array adapter you should create two layouts. In one of them to define view of listview element, another must contain
<listview>tag.In onCreate:
You shold use
R.array.<name>instead ofsome arrayExample of list_item.xml:
Example of list.xml:
For more specific layout you can look at this link http://www.ezzylearning.com/tutorial.aspx?tid=1763429&q=customizing-android-listview-items-with-custom-arrayadapter
Added:
At first you can change background for entire layout in list.xml, also you can use custom divider (You should use tag
divideras above).You can’t add another layouts into list_item.xml, but you can use
android:backgroundto set item background. I never used that but I know it works. For more changes you should use simplearray or write your own adapter.Example how to use gradient (I’m using it for buttons):