android - Is there an easy way to strike through text in an app widget? -


i wondering if there easy way strike text within app widget in android. in normal activity, pretty easy, using textview flags:

textview.setpaintflags(textview.getpaintflags() | paint.strike_thru_text_flag); 

but since in app widget, can use remoteviews... not know if possible

anyone know this?

thanks!

you can use this:

remoteviews.setint(r.id.yourtextview, "setpaintflags", paint.strike_thru_text_flag | paint.anti_alias_flag); 

of course can add other flags android.graphics.paint class.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -