1. Via XML
<ScrollView android:id="@+id/textAreaScroller"
android:layout_width="fill_parent"
android:layout_height="173px"
android:layout_x="0px"
android:layout_y="25px"
android:scrollbars="vertical">
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/fbedittext"
android:layout_alignParentRight="true"
android:layout_below="@+id/fbedittext"
android:layout_marginTop="22dp"
android:lines="7"
android:text="@string/fbtext" />
</ScrollView>
2.Via Code
ScrollView scroller = new ScrollView(this);
TextView tv=(TextView)findViewById(R.id.textView1);
scroller.addView(tv);
OR
Putting following properties inside your <TextView>
android:scrollbars = "vertical"
In the Code
tv.setMovementMethod(new ScrollingMovementMethod());