how to change the font color of an item in a gridview (android) -
i have gridview of letters wordsearch , i'm trying when click on letter changes colour (which working fine). want able change font color if word not correct.
public void onitemclick(adapterview<?> parent, view v, int position, long id) { toast.maketext(todayspuzzleclass.this, "" + position, toast.length_short).show(); ((textview) v).settextcolor(color.blue); }
this code when click on item changes color.
using coordinates toast possble change items color way?
looking aroung need use postion if item changes color, how do that?
try one,
((textview) v).settextcolor(color.parsecolor("#000000"));
Comments
Post a Comment