I just want to know , can we change the color of a particular array index? i have a following array-:
String [] all={"1","2","3","4","5","6","7","8","9","10"};
So , i want to print number 6 in red color and rest in black through ArrayAdapter.
How can i change the color of the array index? Please help me out !!!
Yes you can do it simply...
if you need any kind of help let me know!!
for text color create following xml in drawable folder:
item_bg.xml
Now create a layout with textview only:
item_layout.xml
in code:
now if you want 6th item to have different text color call