What I mean is, is it possible to change the text \"This text is blue\" to the color blue in a single string? There must be a way...
Html.fromHtml(String)
is deprecated in Android NTo support latest version of Android so something like this
val colorText = ("Some Normal Text\n"
+ " Orange Text "
+ "More Normal text")
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
venueAddressValue.setText(Html.fromHtml(colorText, Html.FROM_HTML_MODE_LEGACY));
} else {
venueAddressValue.setText(Html.fromHtml(colorText));
}