 |
|
|  |
| 안드로이드 텍스트 뷰에서 지원하는 HTML 태그들 |
|
|
 |
10년 전 |
Html in textview
http://daniel-codes.blogspot.kr/2011/04/html-in-textviews.html
Tags Supported in String Resources
아래 태그들은 정적 스트링에 포함된 경우 android.content.res.StringBlock 에 의해 파싱된다.
•<a> (supports attributes "href")
•<annotation>
•<b>
•<big>
•<font> (supports attributes "height", "size", "fgcolor" and "bicolor", as integers)
•<i>
•<li>
•<marquee>
•<small>
•<strike>
•<sub>
•<sup>
•<tt>
•<u>
Tags Supported by Html.fromHtml()
무슨 이유인지, Html.fromHtml() 로 지원되는 태그의 종류가 다르다.
•<a> (supports attribute "href")
•<b>
•<big>
•<blockquote>
•<br>
•<cite>
•<dfn>
•<div>
•<em>
•<font> (supports attributes "color" and "face")
•<i>
•<img> (supports attribute "src". Note: you have to include an ImageGetter to handle retrieving a Drawable for this tag)
•<p>
•<small>
•<strong>
•<sub>
•<sup>
•<tt>
•<u>
폰트 색상 "color" 속성으로 지원되는 값.
•aqua
•black
•blue
•fuchsia
•green
•grey
•lime
•maroon
•navy
•olive
•purple
•red
•silver
•teal
•white
•yellow
|
|
추천 : 514 |
추천
목록
|
|
|  |
|