看来,Android不提供这样一个有用的小工具。然而,我的屏幕设计需要这样的观点:
It appears that Android doesn't offer such a useful widget. However, my screen design requires a view like this:
另外,交互设计要求此类框被显示和隐藏的,这取决于其它的内容
Also, the interaction design requires that such boxes are displayed and hidden, depending on other data.
当然,我可以在我的XML布局构建由独立的元素,例如对话框(例如,从形状和一个TextView在它),但后来管理自己的知名度变成地狱......
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...
所以,很显然,这里需要的是一个容器,就像一个相对布局。这种容器可以在XML布局的孩子,可显示和隐藏用一个简单的setVisibility(...)调用。
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?
唯一有用的事情,我发现你的问题的这个链接。 Android的似乎并不有一个分组框,所以你要模拟的。
The only useful thing I found for your question is this link. Android doesn't seem to have a GroupBox, so you have to simulate one.