控件

290 阅读1分钟

Group

官方原文
This class controls the visibility of a set of referenced widgets. 
Widgets are referenced by being added to a comma separated list of ids

// 将通过 'app:constraint_referenced_ids' 属性引用的 'id' 进行统一的可见性处理。
<androidx.constraintlayout.widget.Group
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"
    	app:constraint_referenced_ids="id1, id2, id3" />

官方文档地址:developer.android.google.cn/reference/a…