Allow the textview to scroll

This commit is contained in:
Xavi Artigas 2012-09-04 16:07:11 +02:00
parent 2905b5073a
commit 77c4117da5

View file

@ -18,6 +18,7 @@ package com.gst_sdk_tutorials.tutorial_1;
import android.app.Activity; import android.app.Activity;
import android.widget.TextView; import android.widget.TextView;
import android.os.Bundle; import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
public class Tutorial1 extends Activity public class Tutorial1 extends Activity
{ {
@ -34,6 +35,7 @@ public class Tutorial1 extends Activity
* function. * function.
*/ */
TextView tv = new TextView(this); TextView tv = new TextView(this);
tv.setMovementMethod(new ScrollingMovementMethod());
tv.setText( gstVersion() ); tv.setText( gstVersion() );
setContentView(tv); setContentView(tv);
} }