constraintlayout
constraintlayout copied to clipboard
ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way
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...
```xml ``` ```kotlin class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_flow_visibility) val clRoot = findViewById(R.id.clRoot) val constraintSet = ConstraintSet() constraintSet.clone(clRoot) constraintSet.applyTo(clRoot) } } ``` Executing the...
I have the following `ConstraintSet`s for the `MotionLayout`: ```kotlin @Composable private fun StartConstraintSet() = ConstraintSet( """ { title: { top: ['parent', 'top'], start: ['parent', 'start'], end: ['parent', 'end'], bottom: ['content',...
The motion layout is crashing with this error. ``` java.lang.IllegalArgumentException: Failed requirement. at androidx.compose.ui.node.MeasureAndLayoutDelegate.doRemeasure(MeasureAndLayoutDelegate.kt:177) at androidx.compose.ui.node.MeasureAndLayoutDelegate.remeasureAndRelayoutIfNeeded(MeasureAndLayoutDelegate.kt:228) at androidx.compose.ui.node.MeasureAndLayoutDelegate.access$remeasureAndRelayoutIfNeeded(MeasureAndLayoutDelegate.kt:38) at androidx.compose.ui.node.MeasureAndLayoutDelegate.measureAndLayout(MeasureAndLayoutDelegate.kt:201) at androidx.compose.ui.platform.AndroidComposeView.measureAndLayout(AndroidComposeView.android.kt:662) at androidx.compose.ui.node.Owner$DefaultImpls.measureAndLayout$default(Owner.kt:182) at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.android.kt:846) at android.view.View.draw(View.java:22648) at android.view.View.updateDisplayListIfDirty(View.java:21520)...
Note: This bug replaces #229 In this example of `OnDrag`, the drag handle moves faster than the cursor. It looks like there is an interpolator attached to the drag transition....
I am using flow like below, ``` ``` In **app:flow_wrapMode="none"** i wanted to scroll the elements if it's not fit in screen. But it's not happening i tried by adding...
Tested CL versions: 2.0.4 and 2.1.3 When setting a width of 0dp on a Placeholder the content view (in this case a Button) has a much bigger height, or it's...
Hi, i try to implement programmatically version of MotionLayout by extending it. And i have a base activity ayout using RecyclerView. However, when i add my motion layout as an...
I don't know this is bug or feature, or it is a mistake of xamarin.android. ## Question When i use `centerVertical` at Xamarin.Android, if i use `constraintSet.centerVertically(firstView.Id, secondView.Id)`, the firstView...
### When I use motionlayout and set app:touchRegionId="@id/recyclerView" a click on the item at the end of the recyclerview will call the item onclick of the recyclerView twice . ###...