Home
last modified time | relevance | path

Searched refs:constraint (Results 1 – 15 of 15) sorted by relevance

/constraintlayout/constraintlayout/src/main/java/androidx/constraintlayout/widget/
DConstraintSet.java749 Constraint constraint = mConstraints.get(id); in readFallback() local
750 if (constraint == null) { in readFallback()
753 if (!constraint.layout.mApply) { in readFallback()
754 constraint.layout.copyFrom(parent.layout); in readFallback()
756 if (!constraint.propertySet.mApply) { in readFallback()
757 constraint.propertySet.copyFrom(parent.propertySet); in readFallback()
759 if (!constraint.transform.mApply) { in readFallback()
760 constraint.transform.copyFrom(parent.transform); in readFallback()
762 if (!constraint.motion.mApply) { in readFallback()
763 constraint.motion.copyFrom(parent.motion); in readFallback()
[all …]
DConstraintHelper.java609 public void loadParameters(ConstraintSet.Constraint constraint, in loadParameters() argument
615 if (constraint.layout.mReferenceIds != null) { in loadParameters()
616 setReferencedIds(constraint.layout.mReferenceIds); in loadParameters()
617 } else if (constraint.layout.mReferenceIdString != null) { in loadParameters()
618 if (constraint.layout.mReferenceIdString.length() > 0) { in loadParameters()
619 constraint.layout.mReferenceIds = convertReferenceString( in loadParameters()
620 constraint.layout.mReferenceIdString); in loadParameters()
622 constraint.layout.mReferenceIds = null; in loadParameters()
627 if (constraint.layout.mReferenceIds != null) { in loadParameters()
628 for (int i = 0; i < constraint.layout.mReferenceIds.length; i++) { in loadParameters()
[all …]
DBarrier.java278 public void loadParameters(ConstraintSet.Constraint constraint, in loadParameters() argument
282 super.loadParameters(constraint, child, layoutParams, mapIdToWidget); in loadParameters()
288 updateType(barrier, constraint.layout.mBarrierDirection, isRtl); in loadParameters()
289 barrier.setAllowsGoneWidget(constraint.layout.mBarrierAllowsGoneWidgets); in loadParameters()
290 barrier.setMargin(constraint.layout.mBarrierMargin); in loadParameters()
/constraintlayout/constraintlayout-core/src/test/java/androidx/constraintlayout/core/dsl/
DDslTest.java229 Constraint constraint = new Constraint("a"); in testAnchor01() local
231 constraintSet.add(constraint); in testAnchor01()
232 constraint.linkToLeft(constraint2.getLeft()); in testAnchor01()
264 Constraint constraint = new Constraint("a"); in testAnchor02() local
266 constraintSet.add(constraint); in testAnchor02()
267 constraint.linkToLeft(constraint2.getLeft(), 15); in testAnchor02()
299 Constraint constraint = new Constraint("a"); in testAnchor03() local
303 constraintSet.add(constraint); in testAnchor03()
304 constraint.linkToLeft(constraint2.getRight(), 5, 10); in testAnchor03()
305 constraint.linkToTop(constraint3.getBottom(), 0, 15); in testAnchor03()
[all …]
/constraintlayout/constraintlayout/src/main/java/androidx/constraintlayout/motion/widget/
DViewTransition.java500 ConstraintSet.Constraint constraint = cSet.getConstraint(view.getId());
502 mConstraintDelta.applyDelta(constraint);
503 constraint.mCustomConstraints.putAll(mConstraintDelta.mCustomConstraints);
512 ConstraintSet.Constraint constraint = transformedState.getConstraint(view.getId());
514 mConstraintDelta.applyDelta(constraint);
515 constraint.mCustomConstraints.putAll(mConstraintDelta.mCustomConstraints);
DMotionController.java1155 ConstraintSet.Constraint constraint = constraintSet.getParameters(mId); in setStartState() local
1156 mStartMotionPath.applyParameters(constraint); in setStartState()
1157 mMotionStagger = constraint.motion.mMotionStagger; in setStartState()
1159 mTransformPivotTarget = constraint.transform.transformPivotTarget; in setStartState()
1160 mQuantizeMotionSteps = constraint.motion.mQuantizeMotionSteps; in setStartState()
1161 mQuantizeMotionPhase = constraint.motion.mQuantizeMotionPhase; in setStartState()
1163 constraint.motion.mQuantizeInterpolatorType, in setStartState()
1164 constraint.motion.mQuantizeInterpolatorString, in setStartState()
1165 constraint.motion.mQuantizeInterpolatorID in setStartState()
/constraintlayout/constraintlayout-core/src/main/java/androidx/constraintlayout/core/widgets/analyzer/
DDependencyGraph.java833 String constraint = "\n" + node.name(); in generateDisplayNode() local
834 constraint += " -> " + target.name(); in generateDisplayNode()
836 constraint += "["; in generateDisplayNode()
838 constraint += "label=\"" + node.mMargin + "\""; in generateDisplayNode()
840 constraint += ","; in generateDisplayNode()
844 constraint += " style=dashed "; in generateDisplayNode()
847 constraint += " style=bold,color=gray "; in generateDisplayNode()
849 constraint += "]"; in generateDisplayNode()
851 constraint += "\n"; in generateDisplayNode()
852 contentBuilder.append(constraint); in generateDisplayNode()
/constraintlayout/constraintlayout/resources/examples/
DExampleConstraintSet.java6 import android.support.constraint.ConstraintLayout;
7 import android.support.constraint.ConstraintSet;
/constraintlayout/constraintlayout-core/src/main/java/androidx/constraintlayout/core/state/
DConstraintSetParser.java1821 CLArray constraint = element.getArrayOrNull(constraintName); in parseConstraint() local
1822 if (constraint != null && constraint.size() > 1) { in parseConstraint()
1824 String target = constraint.getString(0); in parseConstraint()
1825 String anchor = constraint.getStringOrNull(1); in parseConstraint()
1828 if (constraint.size() > 2) { in parseConstraint()
1830 CLElement arg2 = constraint.getOrNull(2); in parseConstraint()
1834 if (constraint.size() > 3) { in parseConstraint()
1836 CLElement arg2 = constraint.getOrNull(3); in parseConstraint()
1852 float angle = layoutVariables.get(constraint.get(1)); in parseConstraint()
1854 if (constraint.size() > 2) { in parseConstraint()
[all …]
/constraintlayout/constraintlayout/src/main/java/androidx/constraintlayout/helper/widget/
DCarousel.java383 ConstraintSet.Constraint constraint = constraintSet.getConstraint(view.getId()); in updateViewVisibility() local
384 if (constraint == null) { in updateViewVisibility()
387 constraint.propertySet.mVisibilityMode = ConstraintSet.VISIBILITY_MODE_IGNORE; in updateViewVisibility()
DFlow.java203 public void loadParameters(ConstraintSet.Constraint constraint, HelperWidget child, in loadParameters() argument
206 super.loadParameters(constraint, child, layoutParams, mapIdToWidget); in loadParameters()
/constraintlayout/constraintlayout/
DREADME.md124 …yout) a subclass of ConstraintLayout that supports transitions between constraint sets defined in …
142 - [Build a Responsive UI with ConstraintLayout](https://developer.android.com/training/constraint-l…
143 - [ConstraintLayout Codelab](https://codelabs.developers.google.com/codelabs/constraint-layout/inde…
/constraintlayout/constraintlayout-core/
Dbuild.gradle42 …description = "This library contains engines and algorithms for constraint based layout and comple…
/constraintlayout/constraintlayout-compose/integration-tests/macrobenchmark-target/
Dbuild.gradle50 // Outside of androidx this is resolved via constraint added to lifecycle-common,
/constraintlayout/constraintlayout/api/
Dapi_lint.ignore303 Missing nullability on parameter `constraint` in method `loadParameters`
1149 Missing nullability on parameter `constraint` in method `loadParameters`
1233 Missing nullability on parameter `constraint` in method `loadParameters`