Android TagHandler and CSS

I am trying to display HTML using a TextView. My HTML contains some CSS styles. Here's an example of my HTML.

<p><strong>bold </strong><em>&nbsp;italic </em><span style="text-decoration: underline;">underlined</span>&nbsp;<span style="text-decoration: line-through;">striked</span><span style="font-family: symbol;"> custom font</span><span style="font-size: large;"> bigger&nbsp;</span></p>
<br/><p style="text-align: right;"><span style="font-size: x-small;">aligned to right</span></p>
<br/><p style="text-align: center;"><span style="font-size: x-small;">aligned to center</span></p>
<br/><p style="text-align: justify;"><span style="font-size: x-small;">this text is justifyed&nbsp;</span></p>
<br/><p><span style="font-size: x-small; color: #ff0000;">colored&nbsp;</span></p>
<br/><p><span style="font-size: xx-large; color: #ff0000;"><span style="font-size: x-small;">symbol&nbsp;</span>&clubs;</span></p>

      

I can handle all tags using TagHandler. But I couldn't get information about the styles. Is it possible to get style information using TagHandler?

+3


source to share


1 answer


You may have already decided, but no. The method handleTag

simply gets the tag name in the format String

.



0


source







All Articles