This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Scrolling a TextView" Watch "Scrolling a TextView" New topic
Author

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: 629

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


http://www.androcid.com/
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
Greenhorn

Joined: Nov 07, 2011
Posts: 1
The code snippet should help as well: http://blog.teamgrowth.net/index.php/android/how-to-make-the-textview-in-android-scrollable

Cheers!!
 
 
subject: Scrolling a TextView
 
Similar Threads
Null pointer exception probably due to synchronisation issues; problem in starting activity
list view problem
retrieve value from edittext from ListView
How to use AttributeSet in constructor
How to get View from customised ListView?