I have been trying to give a "Cards UI" type layout to my ListView and came across this tutorial. Using this implementation, I have tried to set up a ListView with the following code.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.listview_activity);
// Show the Up button in the action bar.
setupActionBar();
ListView list = (ListView) findViewById(R.id.cardListView);
final String[] values = new String[] { "Android", "iPhone", "WindowsMobile",
"Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X",
"Linux", "OS/2" }; // You have the necessary data to bind the list.
final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, android.R.id.text1, values);
list.setAdapter(adapter);
}
However, I have been unable to give the ListView elements the background that is specified in the linked tutorial. They instead appear as follows (no cards background).

Could you please guide me on what I'm doing wrong?