 <p>In mainactivity.java:</p> <p>after code text view:</p> <pre><code>TextView txt = (TextView) findViewById(R.id.textView id); </code></pre> <p>Enter this code:</p> <pre><code>txt.setMovementMethod(new ScrollingMovementMethod()); </code></pre> <p>and you will be ok.</p>