Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ExtendedFloatingActionButton] shrink not work with Motionlayout #1090

Open
OHoussein opened this issue Mar 4, 2020 · 3 comments
Open

[ExtendedFloatingActionButton] shrink not work with Motionlayout #1090

OHoussein opened this issue Mar 4, 2020 · 3 comments

Comments

@OHoussein
Copy link

Th ExtendedFloatingActionButton does't shrink when it's a child of a Motionlayout. I think because it update its size in the with:
layoutParams.width = size.getWidth()
layoutParams.height = size.getHeight()
(in ChangeSizeStrategy.performNow())

which shouldn't be done like that when the layoutParams is a ConstraintLayout.LayoutParams.

@OHoussein OHoussein changed the title ExtendedFloatingActionButton shrink not work with Motionlayout [ExtendedFloatingActionButton] shrink not work with Motionlayout Mar 5, 2020
@sebaslogen
Copy link

sebaslogen commented Jul 14, 2020

I've been fighting with this problem for hours until I understood this is broken.

My workaround is to wrap the MotionLayout into another Layout where I put the ExtendedFAB and then use a TransitionListener in the MotionLayout to trigger shrink/extend in the FAB.

@GBouerat
Copy link

This issue is still relevant, Ii just encounter it :(

@daniel-waiguru
Copy link

Experiencing the same issue here. Any solution so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants