diff --git a/flexbox/src/main/java/com/google/android/flexbox/FlexboxLayout.java b/flexbox/src/main/java/com/google/android/flexbox/FlexboxLayout.java index 5f890033..ed0e7a30 100644 --- a/flexbox/src/main/java/com/google/android/flexbox/FlexboxLayout.java +++ b/flexbox/src/main/java/com/google/android/flexbox/FlexboxLayout.java @@ -2024,6 +2024,21 @@ public LayoutParams(Context context, AttributeSet attrs) { a.recycle(); } + public LayoutParams(LayoutParams source) { + super(source); + + order = source.order; + flexGrow = source.flexGrow; + flexShrink = source.flexShrink; + alignSelf = source.alignSelf; + flexBasisPercent = source.flexBasisPercent; + minWidth = source.minWidth; + minHeight = source.minHeight; + maxWidth = source.maxWidth; + maxHeight = source.maxHeight; + wrapBefore = source.wrapBefore; + } + public LayoutParams(ViewGroup.LayoutParams source) { super(source); }