Skip to content

Instantly share code, notes, and snippets.

@douzifly
Created April 16, 2014 09:05
Show Gist options
  • Save douzifly/10837564 to your computer and use it in GitHub Desktop.
Save douzifly/10837564 to your computer and use it in GitHub Desktop.
TextView 滚动
<TextView
android:id="@+id/textView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:singleLine="false"
/>
TextView textView = (TextView)findViewById(R.id.textView);
textView.setMovementMethod(ScrollingMovementMethod.getInstance());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment