android - set one item in gridview to underlined on gridview load -


ok have gridview of strings , want when load gridview can have 1 underlined.

final gridview gridview = (gridview)findviewbyid(r.id.gridview);         final arrayadapter<string> arrayadapter = new arrayadapter<string>(                 this,                 r.layout.customstyle,                  letters );          gridview.setnumcolumns(columnsize);         gridview.setadapter(arrayadapter); 

here gridview code, how set 1 underlined?

why dont try custom adapter , pass spannablestring textview .

spannablestring spanstring = new spannablestring(textstring); text.settext(spanstring); 

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 -