格对齐并没有在Android的TextView工作 [英] div align doesn't work on android textview
本文介绍了格对齐并没有在Android的TextView工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要使用DIV调整到右的android TextView中,但由于某种原因,这是行不通的。
I'm trying to use div align to right in android textview but for some reason it doesn't work.
<string name="Avot">
<![CDATA[
<div align="right">
my text ....
<br />
</div>
]]>
</string>
请不要建议我用web视图的工作,因为它不支持希伯来语正常 预先感谢
Please do not suggest me to work with webview as it doesn't support Hebrew normally Thank in advance
推荐答案
字符串资源唯一支持&LT; B&GT;
,&LT; I&GT;
和&LT; U&GT;
标签。 Html.fromHtml()
不支持的属性&LT; DIV&GT;
标签
String resources only support <b>
, <i>
, and <u>
tags. Html.fromHtml()
does not support attributes on <div>
tags.
这篇关于格对齐并没有在Android的TextView工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文