In android I want to apply a color to my ListView.
Here is the ListView
:
listView = (ListView) findViewById (R.id.listView1)
and my adapter to display the list:
adapter = new ArrayAdapter <String> (this, android.R.layout.simple_list_item_1,
ArrayofName);
listView.setAdapter (adapter);
My variable that contains the color: int textColor
. How I could do it? For example you can change the background of the list like this:
listView.setBackgroundColor(textColor);
But I want to change the color of text.