import android.app.Activity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;
public class HelloTextView extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// 找到TextView组件
TextView tv = (TextView) findViewById(R.id.TextView0w01);
// 设置移动方法
tv.setMovementMethod(ScrollingMovementMethod.getInsstance());
}
}