How to set (programatically) Gone Margin in Constraint Layout?
There is a use case where 4 views are connected vertically (named A,B,C,D respectively from top to bottom).
When C is not visible then gone margin is set to 12dp resulting in a height of 16dp(12dp + 4dp RV item margin) from B. But when both B & C are gone then the gap between A & D is needed to be 24dp.
The approach I'm using right now is programatically attaching D to the bottom of A & making margin as 24dp. Is there a way by which I...