You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Android app. I have a layout consisting of an ImageView and a NestedScrollView within a ConstraintLayout. The layout is designed with three ConstraintSet states: constraints_start, constraints_end, and constraints_search.
I have set up a transition between constraints_start and constraints_end, which is triggered by a swipe gesture on the header or NestedScrollView. The XML for this transition is as follows:
The issue I'm facing is that when I programmatically set the transition state using setTransition or transitionToState, the NestedScrollView seems to scroll on its own, and the MotionLayout transition doesn't trigger immediately. However, it works as intended if I manually scroll on the header after setting the transition programmatically.
Steps to Reproduce:
Programmatically set the transition state using setTransition or transitionToState.
Observe that the NestedScrollView starts scrolling on its own.
Manually scroll on the header
After the manual scroll, the MotionLayout transition triggers as expected.
Expected Behavior:
The MotionLayout transition should be triggered programmatically without the need for a manual scroll on the header or NestedScrollView.
The text was updated successfully, but these errors were encountered:
ConstraintLayout version: 2.1.4
Recyclerview: 1.3.1
In my Android app. I have a layout consisting of an ImageView and a NestedScrollView within a ConstraintLayout. The layout is designed with three ConstraintSet states: constraints_start, constraints_end, and constraints_search.
I have set up a transition between constraints_start and constraints_end, which is triggered by a swipe gesture on the header or NestedScrollView. The XML for this transition is as follows:
The issue I'm facing is that when I programmatically set the transition state using setTransition or transitionToState, the NestedScrollView seems to scroll on its own, and the MotionLayout transition doesn't trigger immediately. However, it works as intended if I manually scroll on the header after setting the transition programmatically.
Steps to Reproduce:
Programmatically set the transition state using setTransition or transitionToState.
Observe that the NestedScrollView starts scrolling on its own.
Manually scroll on the header
After the manual scroll, the MotionLayout transition triggers as expected.
Expected Behavior:
The MotionLayout transition should be triggered programmatically without the need for a manual scroll on the header or NestedScrollView.
The text was updated successfully, but these errors were encountered: