0
我使用Html.fromHtml
方法从HTML源文件填充TextView
的内容,但由于某种原因文本显示为斜体,并且前几个字母被剪切。我试过.clearComposingText()
,这没有帮助。从HTML中设置TextView内容会切断文本的一部分
任何想法为什么?
这里的混蛋:
<RelativeLayout android:layout_width="match_parent" android:layout_height="120dip" android:duplicateParentState="false">
<ScrollView android:layout_width="match_parent" android:layout_height="120dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:id="@+id/textDetailsScrollable" android:textStyle="normal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4dip" android:paddingRight="10dip" />
</ScrollView>
<ProgressBar android:layout_height="15dip" android:id="@+id/loadingExtendedData" android:layout_width="15dip" android:indeterminateOnly="true" android:layout_centerInParent="true" />
</RelativeLayout>
(这不是ScrollView
,我试图消除它,也没有工作,没有任何元素做填充)。
请标记为正确答案。 – Joe 2012-04-24 07:40:15