Code example for ScrollingMovementMethod

0
    } 
     
    public void setTextView(String text) {
    	TextView view = new TextView(this);
    	view.setText(text);
    	view.setMovementMethod(new ScrollingMovementMethod());
        setContentView(view);
    } 
 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present. 
        getMenuInflater().inflate(R.menu.main, menu);
        return true; 
    } 
     
}