This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Android and the fly likes Scrolling a TextView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Scrolling a TextView" Watch "Scrolling a TextView" New topic

Scrolling a TextView

Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Hi all

i have TextView and EditText on the Same acivity.
out of those, i want to make the TextView scrollable.

i've tried [syntax="xml"] android:scrollbars="vertical" [/syntax]
and it displays the scrollbar but m not able to scroll it.... :?

can anyone please help me out....
Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Hey i got the solution....

i've wrappped my TextView with ScrollView and it worked.....

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 636

Just take overview of default API examples provided by Android SDK.
I think they have given the example , how to do it

Author @
Moody blogger who do not like to behave like target setting machines work.
Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi Prajakta,

Get fun with SDK 1.5, HorizontalScrollView widget is also coming.

Thanks & Regards
Pratik Goswami

iOS * Android Developer
Melissa Dawson

Joined: Nov 07, 2011
Posts: 1
The code snippet should help as well:

I agree. Here's the link:
subject: Scrolling a TextView
jQuery in Action, 3rd edition