I have a default ListView from android say android.R.layout.simple_list_item_1.In which ListView having the background color black and text of the list is white.
Now i have changed the background color of the ListView to White. So the text poputating on the listView are also of white color by default. That’s why the data of the ListView are not visible.
The text which are populating on the ListView is the arraylist. So where I set the color of the text of ListView?? I want to change the Text color populated on the ListView.
Can anybody tell whether it is possible without custom ListView.
Answer by
@Archie.bpgcis right. Go Through This Link that will help you understand what is to be Done.Let me try to explain:
here is your list adapter :
And R.layout.listlayout :
Now i hope you understood.
R.layout.listlayoutis your layout for list view.listTextViewis the id of the text view inside the lay out on which your text is to be written.Values are the string array of the content you want to write on list view