-
Notifications
You must be signed in to change notification settings - Fork 1.1k
FloatingActionButton sample is not working properly for animated fab menu. #78
Comments
I've checked on Android Emulator 4.4.4 and on Samsung Galaxy S5 4.4.2 - everything works fine. |
its reproducible on below device Please check the video |
Is there any specific reason of adding below code in onLayout() of FloatingActionMenu.java? In my case onMeasure() and onLayout() gets called multiple times in between animation to show the fab. In this case changed parameter in onLayout() has false value. Issue can be handled by checking changed parameter value in onLayout(), if changed parameter is false, no need to layout the children's in OnLayout(). Please let me know if you need any inputs. |
Could you please check this build on your device? |
Thanks a lot, Please check the video(using sample-debug.apk) |
Thanks Clans, |
Tested on
Model number : Micromax A290
Android version : 4.4.2
FloatingActionButton sample is not working for animated fab menu on Android 4.4.2. It was working fine on FloatingActionButton version 1.5.0.
Root cause :
In version 1.5.1, mMenuOpened = true is moved inside the postDelay(). On Android version 4.4.2 OnLayout() gets called for each item after fab.show(animated) and there is a mMenuOpened check for fab item that hides the fab menu button.
The text was updated successfully, but these errors were encountered: