如何在 ConstraintLayout 中将多个视图视为一个视图
How can I treat several views as one in ConstraintLayout
我想以编程方式设置多个视图的可见性。有没有办法将它们视为一个单一的视图(或视图组)?
查看 ConstraintLayout
“群组”中的一项新功能。通过使用此功能将 ConstraintLayout
中的视图分组,您可以将它们的可见性设置为一个。看到这个 Medium Post.
Group
Groups, like the Guidelines, are widgets with size 0. But Group helps to apply some action to a set of widgets. The most common case, is to control a visibility of a collection of widgets.
我想以编程方式设置多个视图的可见性。有没有办法将它们视为一个单一的视图(或视图组)?
查看 ConstraintLayout
“群组”中的一项新功能。通过使用此功能将 ConstraintLayout
中的视图分组,您可以将它们的可见性设置为一个。看到这个 Medium Post.
Group
Groups, like the Guidelines, are widgets with size 0. But Group helps to apply some action to a set of widgets. The most common case, is to control a visibility of a collection of widgets.