Open chandruscm opened 11 months ago
When programmatically adding an OnSwipe behaviour to a Motion Layout Transition, the dragScale cannot be set to values less than 1 since the public setDragScale method only accepts an integer.
// ../constraintlayout/motion/widget/OnSwipe.java public OnSwipe setDragScale(int dragScale) { mDragScale = dragScale; return this; }
The expectation would be to pass a float value as the xml attribute allows it.
The same signature is used for setDragThreshold.
setDragThreshold
Happy to create a quick PR if this is indeed unintended.
When programmatically adding an OnSwipe behaviour to a Motion Layout Transition, the dragScale cannot be set to values less than 1 since the public setDragScale method only accepts an integer.
The expectation would be to pass a float value as the xml attribute allows it.
The same signature is used for
setDragThreshold
.Happy to create a quick PR if this is indeed unintended.