List of usage examples for android.widget TextView setScroller
public void setScroller(Scroller s)
From source file:devicroft.burnboy.Activities.MainActivity.java
private void dispatchLicenseDialog() { Log.d(LOG_TAG, "dispatchLicenseDialog"); AlertDialog d = new AlertDialog.Builder(this).setTitle("Licenses") .setMessage(Html.fromHtml(getString(R.string.license_fab) + "<br><br>" + getString(R.string.license_mpandroidchart) + getString(R.string.app_name))) //https://stackoverflow.com/questions/3235131/set-textview-text-from-html-formatted-string-resource-in-xml .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { dialog.dismiss();/* ww w . j ava 2 s .co m*/ } }).show(); TextView textView = (TextView) d.findViewById(android.R.id.message); textView.setScroller(new Scroller(this)); textView.setVerticalScrollBarEnabled(true); textView.setAllCaps(false); textView.setMovementMethod(new ScrollingMovementMethod()); }