scrollable TextView in android  [ 622 views ]

Goal: making a TextView scrollable

put two lines to the layout file:

  android:maxLines = "10" <!-- 10 or less lines -->
  android:scrollbars = "vertical"

plus to the activity:

  myTextView.setMovementMethod(new ScrollingMovementMethod());
#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }