Changing the height of an existing, visible TextView

Posted by Jim Blackler on Stack Overflow See other posts from Stack Overflow or by Jim Blackler
Published on 2010-03-19T17:34:47Z Indexed on 2010/03/19 17:51 UTC
Read the original article Hit count: 111

Filed under:

Hi I'd like to programatically increase the height allocated to a TextView, and have the activity layout redrawn accordingly (the text view has a maximum height until the user clicks it, then it takes up all height required, wrap_content).

setHeight() isn't working, even coupled with invalidate() or postInvalidate(). I am able to change the contents of the TextBox with setText() but it isn't altering the existing specified height.

Android 1.5 under the 1.6 SDK.

© Stack Overflow or respective owner

Related posts about android