简体   繁体   中英

font tag in textView by fromHtml() android

Hi i am using tag in text view as follows:

textViewobj.setText(Html.fromHtml("<font size=\"40\" face=\"arial\" color=\"red\">ggg</font><br><br>"));

It makes the text red but neither size attribute works nor face works. I am really struggling with this issue. Actually i want to show html formatted text in email body by using email intent. There is no way achieve this but to use fromHtml().

为有效起见,设备上必须存在一种字体,如果您使用的是arial字体,则应将其安装在设备上,以指定字体大小,并使用带有数字的px(例如40px)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM