This example will tell you how to set android.widget.TextView text foreground color and background color in source code. For other android UI components, it is similar to change foreground and background color like this.
This example will tell you how to display html text in android android.widget.TextView and android.webkit.WebView object. 1. Display Html Data In Android TextView And WebView Example. There are three buttons in the screen. When click the first button, it will read a html source text and display the source code in the first textview. When …
android.text.SpannableString is a character sequence type class. You can use it as a String object in android TextView. But SpannableString can make TextView content more colorful and diverse. This article will show you examples about how to use SpannableString with TextView.