You need to retrieve the ListView
:
ListView list = getListView();
Then, set a color by using setBackgroundColor
method as follows:
// use a color in colors.xml file
list.setBackgroundColor(getResources().getColor(R.color.white));
Same with setBackgroundDrawable
with a drawable resource:
list.setBackgroundDrawable(getResources().getDrawable(R.drawable.bg_list));