我有一些混乱,因为我有一个可滚动的片段,其中存在TableLayout。现在的问题是文本视图最终没有显示全文(巨大的rawtext)。虽然我使用的是textView.setMovementMethod(new ScrollingMovementMethod())也是如此,但它仍然无法正常工作。有什么帮助吗?
xml代码贴在下面。
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/pbackground"
android:orientation="vertical">
<TableLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:stretchColumns="*">
////////////////////////////// some table rows...
<TableRow
android:layout_weight="1"
android:gravity="left">
<TextView
android:id="@+id/address"
style="@android:style/TextAppearance.Small"
android:layout_width="fill_parent"
android:layout_column="1"
android:padding="3dip"
android:scrollbars="vertical"
android:singleLine="false"
android:text="pojodjfpojsdpoj
fposdjfpjsdpofjposdjofpjsodppoj
odjfpojsdpojfposdjfpjsdpofjposdjofpjs
odppojodjfpojsdpojfposdjfpjsdpofjposdj
ofpjsodppojodjfpojsdpojfposdjfpjsdpofjp
fpojsdpojfposdjfpjsdpofjposdjofpjsodp"
android:textColor="#000" />
</TableRow>
</TableLayout>
</LinearLayout>