2012-01-18 1 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

감사합니다 Padma Kumar.Really help me – Krishna

+0

다음 Kumar 원하는 내용 – Krishna

+0

런타임시 텍스트 크기가 변경되지 않았습니다. – Krishna

관련 문제