понедельник, 19 декабря 2011 г.

Make part of layout invisible and the other part visible


I would like to make a LinearLayout that was created from xml invisible, and another LinearLayout visible to replace it. The replacement layout starts out as invisible. When I make the originally visible layout invisible, it still leaves space for it on the screen. How can I refresh the screen so that space is gone?
link|improve this question

79% accept rate
feedback
Perhaps you are mixing up View.INVISIBLE with View.GONE:
int GONE This view is invisible, and it doesn't take any space for layout purposes.
int INVISIBLE This view is invisible, but it still takes up space for layout purposes.

Комментариев нет:

Отправить комментарий