Android doesn't seem to offer such a useful widget. However, my screen requires the following:

In addition, interaction design requires that such fields be displayed and hidden depending on other data.
Of course, I could build such a box from separate elements in my XML layout (for example, from a form and text above it), but then controlling their visibility turns to hell ...
So, it is clear that a container is needed here, as a relative layout. Such a container can have children in an XML layout and can be displayed and hidden with a simple call to setVisibility (...).
Can someone give me advice on how to do this, please?
source share