Vertical Scroll Bar in Android


<TextView android:id="@+id/response_sms_textView3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="20dp" android:background="@color/White" android:gravity="center" android:lines="8" android:maxLines="8" android:scrollbars="vertical" android:text=”@string/without_account_response_sms_tv3″ android:textAppearance=”?android:attr/textAppearanceMedium” android:textColor=”@color/Black” />


tv3.setMovementMethod(new ScrollingMovementMethod()); // include

but if you put this inside ScrollView layout, it might not work. Thanks

Here is a funny meme 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s