mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
Allow the textview to scroll
This commit is contained in:
parent
2905b5073a
commit
77c4117da5
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue