Hi, Sorry if this has been answered before, but I just cannot input the right term into search box to find the answer.
Here's what's bugging me. To generalize a given screen as much as possible, I include several elements (button1, text1, button2, text2) Depending on the internal state, I would like to remove (for instance) element button2. Now, I've already tried (although in vain) by using button2.setVisibility(INVISIBLE). The element was not shown, but it consumed the screen area never the less (so it was there, but just not drawn nor active). 1) How do I completely remove button2 from layout ? 2) What's the proper way to deal with such requirement ? 2a) Create a common (most generic) layout and then remove elements by state or 2b) Create the least common denominator layout and then add elements by state ? Thank you, Regards Hatch -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

