views:

25

answers:

0

Hi All,

It appears that Android doesn't offer such a useful widget. However, my screen design requires a view like this: Design example

Also, the interaction design requires that such boxes are displayed and hidden, depending on other data.

Of course, I could construct such box from separate elements in my XML layout (e.g. from a shape and a textview over it), but then managing their visibility turns into hell...

So it's clear that what is needed here is a container, like a relative layout. Such container can have children in XML layout and can be shown and hidden with a simple setVisibility(...) call.

Can someone give me a tip how to do that, please?