@Nonnull private List<LayoutPart> getLayoutChildrenWithIndependentWidth() { if (children == null) { return Collections.emptyList(); } final int childrenCount = children.size(); List<LayoutPart> layoutPartChild = new ArrayList<LayoutPart>(childrenCount); for (int i = 0; i < childrenCount; i++) { Element e = children.get(i); SizeValue childWidth = e.getConstraintWidth(); if (childWidth.isPixel() && childWidth.isIndependentFromParent()) { layoutPartChild.add(e.layoutPart); } } return layoutPartChild; }
@Nonnull private List<LayoutPart> getLayoutChildrenWithIndependentHeight() { if (children == null) { return Collections.emptyList(); } final int childrenCount = children.size(); List<LayoutPart> layoutPartChild = new ArrayList<LayoutPart>(childrenCount); for (int i = 0; i < childrenCount; i++) { Element e = children.get(i); SizeValue childHeight = e.getConstraintHeight(); if (childHeight.isPixel() && childHeight.isIndependentFromParent()) { layoutPartChild.add(e.layoutPart); } } return layoutPartChild; }