2012-01-18 3 views

答えて

2

// Html.fromHtml(str)

String str="<font size =\"20\"><B>Bold</B> <br/> Then Normal Text<br/> 
         <i>Then Italic</i> </font>" + 
         "<br/> <font color=\"green\" >this is simple sentence </font>" + 
         "<br/> <font face=\"verdana\" >this is simple sentence </font>"+ 
         "<br/><br/><br/><br/><a>this is simple sentence</a>"; 
     Spanned strHtml= Html.fromHtml(str); 

     TextView tv = (TextView)findViewById(R.id.textView); 
     tv.setText(strHtml); 

を使用するには、以下のようなテキストの途中でテキストの文字サイズを変更するか、

を使用することができます

SpannableString

+0

おかげパドマKumar.Reallyは私を助け – Krishna

+0

そして、あなたはクマー – Krishna

+0

文字サイズは、実行時に変更されなかった何をしたいです。 – Krishna

関連する問題