constraintlayout icon indicating copy to clipboard operation
constraintlayout copied to clipboard

Feature request: duplicateParentState via ConstraintHelper

Open InsaneDoggo opened this issue 5 years ago • 3 comments

ConstraintLayout encourages "flatten style", so we missing duplicateParentState feature, cuz widgets are sliblings now. Would be nice to have ConstraintHelper that will share state between referenced views (e.g. state of first view in list on the rest ones). Seems like it isn't possible to implement this feature without changes to framework or without extending views, cuz there is no listeners for View#onCreateDrawableState nor Drawable#onStateChange.

InsaneDoggo avatar Nov 04 '20 18:11 InsaneDoggo

When you say state, What are the properties of a View you are thinking of?

jafu888 avatar Jan 05 '21 05:01 jafu888

Drawable state (focused, pressed, etc.)

https://developer.android.com/reference/android/view/View#attr_android:duplicateParentState

InsaneDoggo avatar Jan 05 '21 05:01 InsaneDoggo

Any news or workaround on this?

akrezic1 avatar May 27 '22 08:05 akrezic1