Is there an easy way to strike through text in an app widget?
You can use this:
remoteviews.setInt(R.id.YourTextView, "setPaintFlags", Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
Of course you can also add other flags from the android.graphics.Paint class.
How to strikethrough Text in android Jetpack Compose?
Add style for text
@Composable
fun TextWithLineThroughExample(){
Text(
text = "Text with LineThrough",
style = TextStyle(textDecoration = TextDecoration.LineThrough)
)
}
Related Topics
Call Recorder Not Working in Android 10 (Q)
Android Listview Child View Setenabled() and Setclickable() Do Nothing
Cordova "Hello World" App Won't Display
Android - Correct Use of Invalidateoptionsmenu()
Android/View/View$Onunhandledkeyeventlistener (Onmeasure Error)
Onbackpressed to Hide Not Destroy Activity
Signing an APK with an Upload Key Provided by Google Play
Onitemclicklistener and Onclicklistener Not Working for Listview
Input Field Hidden When Soft Keyboard Appears in Phonegap
How Do Popular Apps Authenticate User Requests from Their Mobile App to Their Server
How to Add Firebase Database Rules Without Authentication
Background-Attachment: Fixed Interfering with Background-Size
Onpagefinished() Never Called (Webview)!
Insufficent_Storage_Memory Message While Install 50 Mb APK in Emulator
How to Make My Layout Able to Scroll Down
Android Stock Browser Not Respecting CSS Overflow
How to Convert Date Format in Android
How to Close Activity and Go Back to Previous Activity in Android