I have tried making ScrollView parent of the TextView, but then I also have a background image set on this RelativeLayout, and it gives me an error saying:"This ScrollView Layout or its RelativeLayout parent is useless; transfer the background attribute to the other view". And if I make ScrollView the parent of my RelativeLayout, it stretches the background image, which I don't want. Here's my xml code:
<?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:background="@drawable/hp_instr" > <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:text="@string/instr" android:textColor="#FFFFFF" android:textAppearance="?android:attr/textAppearanceLarge" /> </ScrollView> </RelativeLayout>