Text Color of a Substring - Android Studio - Kotlin
We will change the color of some sub-strings of text of TextView using the ''SpannableString'', and "ForeGroundColorSpan" classes using Android Studio IDE and Java language ✓RED ✓GREEN ✓BLUE Check For Java VIDEO Step 1: Create a new Project or open new project Step 2: Code activity_main.xml <? xml version = "1.0" encoding = "utf-8" ?> < android . support . constraint . ConstraintLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: app = "http://schemas.android.com/apk/res-auto" xmlns: tools = "http://schemas.android.com/tools" android: layout_width = "match_parent" android: layout_height = "match_parent" tools: context = ".MainActivity" > < TextView android: id = "@+id/text_view" android: textSize = "20sp" android: layout_width = "wrap...