Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scrolling a TextView

 
Prajkti Khadse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey i got the solution....

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

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just take overview of default API examples provided by Android SDK.
I think they have given the example , how to do it

 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prajakta,

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

Thanks & Regards
Pratik Goswami
 
Melissa Dawson
Greenhorn
Posts: 1
 
Amit Aswal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To make the textview scrollable try the link

https://androidsubway.wordpress.com/2015/12/16/textview-in-android-multiline-scrollable/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic