Example of using SpannableString for Android. This shows three examples of SpannableString using the start and end points based on the position of the substring in the string with String.contains(subString). Examples one and two provide greater design.
SpannableString is hosted in the following web site
https://github.com/BradSchmidt/SpannableString
If you think the Android project SpannableString listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of SpannableString.
Item | Value |
---|---|
Java File Count | 1 |
Target SDK Version | 18 |
Minimum SDK Version | 8 |
Activity Count | 1 |
jar files used | android-support-v4.jar |
SpannableString has the following Java source files.
com.example.spannable_string_tutorial.MainActivity.java