# Grouping

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/widgets/analyzer/Grouping.java+class:androidx.constraintlayout.core.widgets.analyzer.Grouping) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
class Grouping
```

<br />

*** ** * ** ***

Implements a simple grouping mechanism, to group interdependent widgets together. TODO: we should move towards a more leaner implementation -- this is more expensive as it could be.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Grouping#Grouping()()` |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetGroup!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Grouping#findDependents(androidx.constraintlayout.core.widgets.ConstraintWidget,int,java.util.ArrayList<androidx.constraintlayout.core.widgets.analyzer.WidgetGroup>,androidx.constraintlayout.core.widgets.analyzer.WidgetGroup)( constraintWidget: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget!, orientation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, list: https://developer.android.com/reference/java/util/ArrayList.html<https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetGroup!>!, group: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/WidgetGroup! )` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Grouping#simpleSolvingPass(androidx.constraintlayout.core.widgets.ConstraintWidgetContainer,androidx.constraintlayout.core.widgets.analyzer.BasicMeasure.Measurer)( layout: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidgetContainer!, measurer: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/BasicMeasure.Measurer! )` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/analyzer/Grouping#validInGroup(androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour,androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour,androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour,androidx.constraintlayout.core.widgets.ConstraintWidget.DimensionBehaviour)( layoutHorizontal: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour!, layoutVertical: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour!, widgetHorizontal: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour!, widgetVertical: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/widgets/ConstraintWidget.DimensionBehaviour! )` |

## Public constructors

### Grouping

Added in 1.1.2

```
Grouping()
```

## Public functions

### findDependents

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
java-static fun findDependents(
    constraintWidget: ConstraintWidget!,
    orientation: Int,
    list: ArrayList<WidgetGroup!>!,
    group: WidgetGroup!
): WidgetGroup!
```

### simpleSolvingPass

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
java-static fun simpleSolvingPass(
    layout: ConstraintWidgetContainer!,
    measurer: BasicMeasure.Measurer!
): Boolean
```

### validInGroup

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
java-static fun validInGroup(
    layoutHorizontal: ConstraintWidget.DimensionBehaviour!,
    layoutVertical: ConstraintWidget.DimensionBehaviour!,
    widgetHorizontal: ConstraintWidget.DimensionBehaviour!,
    widgetVertical: ConstraintWidget.DimensionBehaviour!
): Boolean
```