0

I just tried a sample of retrieving and passing it to a textview.
I am having some trouble wrapping my textview.
The bottom part is not completely shown.
What do i need to add to the xml file for it to completely show the bottom part of the data?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="left"
    android:orientation="vertical"
    android:padding="5dp" >




<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
     >

    <TextView
        android:id="@+id/tvFA"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginLeft="36dp"
        android:layout_marginTop="36dp"
        android:text="TextView"
        android:maxLines = "1000"
        android:scrollbars = "vertical"
        android:textSize="20sp" />
</ScrollView>
</RelativeLayout>
4

1 回答 1

0

在 ScrollView 中,设置为 fill_parent:

<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
于 2012-09-30T21:34:54.500 回答