constraintlayout
constraintlayout copied to clipboard
ConstraintLayout is an Android layout component which allows you to position and size widgets in a flexible way
I am trying to perform an action when a Transition contained in my fragment's MotionLayout has completed. To do so, I am using a TransitionListener and invoke the required action...
What parameter is responsible for the speed of tracking a swipe? If I understood correctly, then this is a **dragScale**, but changing its value does not change anything. Video: https://i.stack.imgur.com/0yrjt.gif...
Animate when we have something like: ``` var isVisible by remember {...} ... ConstraintSet { ... constraint(id1) { visibility = if (isVisible) Visible else Gone } } ``` Would probably...
**Description:** Using included ConstraintLayout inside a ConstraintLayout causes views to dissapear under certain circumstances (see below for sample project). This does not happen with version 2.0.1 and 2.1.0-alpha2. But with...
In constraintlayout version 1.1.3 the following layout specification used to work: android:layout_width="0dp" app:layout_constraintWidth_max="200dp" app:layout_constraintWidth_percent="0.5" It set the width to 50% but it would max out at 200dp. Specifying layout_constraintWidth_max="wrap" was...
If you place a View off-screen such that its left and/or top positions are negative, then that View will have a position that's off by 2px, and a dimension that's...
### Mark this as a WIP - Even though setters work properly, but it uses the ConstrainSet approach instead of LayoutParams The main purpose of this PR is to migrate...
I'm having trouble adding an onClickListener to my carousel's items. I've tried setting the onClickListener in the adapter like so: ``` java carousel.setAdapter(object : Carousel.Adapter { override fun populate(view: View?,...