text view not wrapping

Posted by leenolasco on Stack Overflow See other posts from Stack Overflow or by leenolasco
Published on 2012-09-30T21:27:29Z Indexed on 2012/09/30 21:37 UTC
Read the original article Hit count: 346

Filed under:
|

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>

© Stack Overflow or respective owner

Related posts about android

Related posts about textview