constraintlayout
constraintlayout copied to clipboard
Feature request: duplicateParentState via ConstraintHelper
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.
When you say state, What are the properties of a View you are thinking of?
Drawable state (focused, pressed, etc.)
https://developer.android.com/reference/android/view/View#attr_android:duplicateParentState
Any news or workaround on this?