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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -