对齐方式Html.fromHtml() [英] Alignment in Html.fromHtml()

查看:372
本文介绍了对齐方式Html.fromHtml()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的HTML.fromHtml调整工作()在一个TextView?

Is alignment working in HTML.fromHtml() in a TextView?

我试过

<div align="center"><p>Test</p></div>

和这一些variaties,其中包括将对准标签,而不括号的段落标记,但没有奏效。该文本总是留给。

and some variaties of this, including putting the alignment tabs without parenthesis to the paragraph tag, but none worked. The text is always left.

感谢您的帮助!

你的。

推荐答案

对齐,不支持在TextView中的HTML文本。

Alignment is not supported in HTML text in TextView.

这篇关于对齐方式Html.fromHtml()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆