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

The parent color is getting applied to the child span tag even though it has inline color of its own #28

Open
Saiprasad122 opened this issue Feb 22, 2023 · 0 comments

Comments

@Saiprasad122
Copy link

I am pass this String as Html text to HtmlCompat class
red yellow

but here the first parent span tag "red" is getting red color applied but the child span .i.e. "yellow" is also getting red color applied. But instead it should get yellow color to the text since I am adding style with color yellow.

Can you guys help me or am I doing something wrong.

Below this the code that i am doing:
textView.setText(
HtmlCompat.fromHtml("red yellow",HtmlCompat.FROM_HTML_MODE_LEGACY));

here i am creating instance of TextView and adding that view programmatically
Screenshot 2023-02-22 at 10 00 40 AM

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

1 participant