Android : Strike out Text with bold or thicker line than default STRIKE_THRU_TEXT_FLAG
You can't change the thickness of the strikethrough line.
As you can see from the docs its just a flag. Either on or off.
There are a couple of options though (more hacks than solutions):
Make the text bold or stroke it. This will automatically stroke the strikethrough too which will make it more visible
Manually draw the line with
drawLine
. (This would be really difficult to do accurately though)
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.
Animating strike-through on a TextView
You have a couple of options:
Extend TextView and make a custom view which checks if the STRIKE_THRU_TEXT_FLAG is set and fires off an animation that will draw a small line on the text incrementing it's width on each frame of the animation.
Use an empty view and place it on your TextView (using RelativeLayout, FrameLayout etc). Make sure the dimensions of this view match exactly with your TextView. Then animate this view following the same strategy as before: Draw a horizontal line at the center of the view whose width is incremented at each frame of the animation.
If you want to know how to the animation itself, then you can look up Animator, AnimatorSet etc and their related guides.
How to add strike through on Text in react native?
With :
<Text style={{textDecorationLine: 'line-through', textDecorationStyle: 'solid'}}>
Solid line-through
</Text>
How could this manner of writing code be called?
I would call it 'twice is better'. It's made like that to be sure that the runtime really understood the question ;).
(although in multi-threaded, not-safe environment, the result may differ between the two variants.)
Find two consecutive rows
Assuming the rows have sequential IDs, something like this may be what you're looking for:
select top 1 *
from
Bills b1
inner join Bills b2 on b1.id = b2.id - 1
where
b1.IsEstimate = 1 and b2.IsEstimate = 1
order by
b1.BillDate desc
Related Topics
Android: How to Scale a Bitmap to Fit the Screen Size Using Canvas/Draw Bitmap
How to Receive Fcm Push Notifications When App Is Killed
How to Remove Background Resource of Button
Setcontentview(R.Layout.Main); Gives Error from Start
Change Button Background At Runtime in Android
Ship an Application With a Database
Open Facebook Page in Facebook App (If Installed) on Android
Android Webview & Localstorage
Can't Create Handler Inside Thread That Has Not Called Looper.Prepare()
Android: Textview: Remove Spacing and Padding on Top and Bottom
Clear Cache in Android Application Programmatically
Android Q, Programmatically Connect to Different Wifi Ap for Internet
Add Text to Image in Android Programmatically
Load Video from Firebase Storage to Videoview
Android Shared Preferences For Creating One Time Activity (Example)