I'm trying to change group color but background attribute android:background="#666"
did not change the color.
How can i add background color for group in constraint layout?
if i cannot what is the alternative?
Asked
Active
Viewed 499 times
2

Phantômaxx
- 37,901
- 21
- 84
- 115

Haitham Haitham
- 157
- 1
- 1
- 6
1 Answers
0
A group is a construct in ConstraintLayout
that helps to control the visibility of each view within the group.
From the `Group docs:
This class controls the visibility of a set of referenced widgets. Widgets are referenced by being added to a comma separated list of ids...
If you want to change an attribute for each view within a group other than visibility, you will have to get the id of each view and work from there. Use getReferencedIds() to do this.
Check out this answer on how to do this.

Cheticamp
- 61,413
- 10
- 78
- 131