Use the spannablestringbuilder object to save the string and use its setspan method to set different formats.
Int start = 0;
Txtcontent((textview1_findviewbyid(r.id.txt content_help );
Spannablestringbuilder mspannable = new spannablestringbuilder ();
Mspannable. append ("Image Library browsing \ r \ n"). setspan (New foregroundcolorspan (color. Cyan), 0, mspannable. Length (),
Spannable. span_exclusive_inclusive );
Mspannable. setspan (New underlinespan (), 0, mspannable. Length (), spannable. span_exclusive_exclusive );
Start = mspannable. Length ();
Mspannable. append ("go to the video library and click the next category to be viewed on the left to enter the corresponding library"). setspan
(New foregroundcolorspan (color. White), start, mspannable. Length (), spannable. span_exclusive_inclusive );
Mspannable. append ("\ r \ n ");
Start = mspannable. Length ();
Mspannable. append ("order video \ r \ n"). setspan (New foregroundcolorspan (color. Cyan), start, mspannable. Length (),
Spannable. span_exclusive_inclusive );
Mspannable. setspan (New underlinespan (), start, mspannable. Length (), spannable. span_exclusive_exclusive );
Start = mspannable. Length ();
Mspannable. append ("click a program in the category or directly search for a program, and click the order button to order" + ""). setspan
(New foregroundcolorspan (color. White), start, mspannable. Length (), spannable. span_exclusive_inclusive );
Mspannable. append ("\ r \ n ");
Start = mspannable. Length ();
Mspannable. append ("playing video \ r \ n"). setspan (New foregroundcolorspan (color. Cyan), start, mspannable. Length (),
Spannable. span_exclusive_inclusive );
Mspannable. setspan (New underlinespan (), start, mspannable. Length (), spannable. span_exclusive_exclusive );
Start = mspannable. Length ();
Mspannable. append ("the program that has been ordered and downloaded. In the downloaded management or when you can browse the video library, click play to view the program "). setspan
(New foregroundcolorspan (color. White), start, mspannable. Length (), spannable. span_exclusive_inclusive );
Mspannable. append ("\ r \ n ");
Start = mspannable. Length ();
Mspannable. append ("delete video \ r \ n"). setspan (New foregroundcolorspan (color. Cyan), start, mspannable. Length (),
Spannable. span_exclusive_inclusive );
Mspannable. setspan (New underlinespan (), start, mspannable. Length (), spannable. span_exclusive_exclusive );
Start = mspannable. Length ();
Mspannable. append ("select a Downloaded Program from" Download Management ", click the" delete "icon of the garbage basket, or click" delete all "button to delete"). setspan
(New foregroundcolorspan (color. White), start, mspannable. Length (), spannable. span_exclusive_inclusive );
Mspannable. append ("\ r \ n ");
Start = mspannable. Length ();
Mspannable. append ("download time \ r \ n"). setspan (New foregroundcolorspan (color. Cyan), start, mspannable. Length (),
Spannable. span_exclusive_inclusive );
Mspannable. setspan (New underlinespan (), start, mspannable. Length (), spannable. span_exclusive_exclusive );
Start = mspannable. Length ();
Mspannable. append ("varies depending on the size of the selected program and the download time of the user's bandwidth. "+
"\ R \ n2mb bandwidth, SD movies take 1-2 hours. "). Setspan (New foregroundcolorspan
(Color. White), start, mspannable. Length (), spannable. span_exclusive_inclusive );
Txtcontent. settext (mspannable );