This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Scrolling textview stops working  RSS feed

 
Ranch Hand
Posts: 205
13
Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a TextView inside a ScrollView


Clicking the buttons either appends text to the TextView or sets its text to "".




The odd thing is that the scrolling doesn't work until the device is rotated, after which it does, even if I start in portrait, rotate to landscape & then rotate back to portrait.

Set the text to "" and scrolling stops again.

Could anyone tell me what the cause is?
 
Richard Hayward
Ranch Hand
Posts: 205
13
Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So if anyone else here experiences the same problem, I got a solution at stackoverflow:

http://stackoverflow.com/questions/29155840/scrollview-stops-scrolling-after-clearing-textview-text
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!