You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: