Android: Striking out a check list item once checked like in Google Keep -


i'm working on app wherein i'm allowing user add notes , check list in google keep. challenging i'm facing right once check list checked need strike text out. idea how this?

enter image description here

you can handle check box click oncheckedchangedlistener in getview method.

refer blog , find sample here

and strike textview use paint flag

textview tv=(textview) v.findviewbyid(android.r.id.text1); tv.setpaintflags(tv.getpaintflags() | paint.strike_thru_text_flag); 

see answer


Comments

Popular posts from this blog

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

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

keyboard - Smiles and long press feature in Android -