List of usage examples for android.widget TextView setScrollBarStyle
public void setScrollBarStyle(@ScrollBarStyle int style)
Specify the style of the scrollbars.
From source file:de.janrenz.app.mediathek.MediathekActivity.java
protected AlertDialog getInfoDialog() { TextView tv = new TextView(this); //tv.setBackgroundColor(getResources().getColor(R.color.abs__bright_foreground_holo_dark)); tv.setPadding(15, 15, 15, 15);//from ww w. j a v a 2 s .c om tv.setMovementMethod(new ScrollingMovementMethod()); tv.setScrollBarStyle(1); tv.setText(Html.fromHtml(getString(R.string.infotext))); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Mediathek 1").setView(tv).setInverseBackgroundForced(true)//needed for old android version .setCancelable(false) // OK button .setPositiveButton(this.getResources().getString(R.string.changelog_ok_button), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); // Show "More" button if we're only displaying a partial change log. builder.setNegativeButton(R.string.info_popup_changelog, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { if (cl != null) cl.getFullLogDialog().show(); } }); return builder.create(); }