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
The AccordionTransformer doesn't support RTL direction.
I've tried to redo the math in order to support it, but no luck so far.
Any idea how to solve this.?
override fun onTransform(page: View, position: Float) {
page.run {
if (page.layoutDirection == 0) { // ltr
pivotX = if (position < 0f) 0f else width.toFloat()
scaleX = if (position < 0f) 1f + position else 1f - position
} else { // rtl
// that's the closest that I've got, but it's not 100% correct, something needs adjustment..
pivotX = if (position < 0f) 0f else width.toFloat()
scaleX = if (position < 0f) 1f + position else 1f - position
}
}
}
The text was updated successfully, but these errors were encountered:
The AccordionTransformer doesn't support RTL direction.
I've tried to redo the math in order to support it, but no luck so far.
Any idea how to solve this.?
The text was updated successfully, but these errors were encountered: