Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paint Flags support #816

Closed
ezbzprog1 opened this issue Aug 29, 2021 · 1 comment
Closed

Paint Flags support #816

ezbzprog1 opened this issue Aug 29, 2021 · 1 comment

Comments

@ezbzprog1
Copy link

ezbzprog1 commented Aug 29, 2021

I'm developing a cash text component and I need to apply paint flags to mark a price before discount. on a TextView I would use TextView.paintFlags(Paint.STRIKE_THRU_TEXT_FLAG). any equivalent on a litho Text component?

@colriot
Copy link
Contributor

colriot commented Sep 6, 2021

You can use a generic StrikethroughSpan for that https://developer.android.com/reference/android/text/style/StrikethroughSpan, adding it to the Spannable text should solve the case. Please, reopen if I'm missing something

@colriot colriot closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants