Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Increase textview height  RSS feed

 
Ruben Matt
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

Is there any way of increase the size of a TextView depending on the amount of text that exists? I tried "wrap_content" and doesnt work, if the text is too big i can not see the rest. The text comes from the DB.
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wrap-content is the correct way to go, but there are likely other constraints on the size of the view. Can you provide the layout you are using?
 
Ruben Matt
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying.

It's working now, I had settings that were in conflict with each other.
This is how i have now.

 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!