ajay-dewari / floatingactionbutton-menu Goto Github PK
View Code? Open in Web Editor NEWAndroid Floating Action button with menu
Android Floating Action button with menu
Case 1. When the Snackbar is visible, and user triggers showFABMenu(), the small FABs will all overlapped together at the bottom of the screen after the Snackbar is dismissed.
Case 2. When the FABMenu is visible, and then the Snackbar is shown, the MoveUpwardBehavior correctly "pushes" the big FAB upwards, but the small FABs aren't moving.
Any idea to fix this? I'm not too familiar with the animation of this kind. Thank you!
there is a bug in the rotation of the main FAB. the bug is not apparent in the current demo because the graphic (ic_toys) is symmetrical. if you replace the graphic with one that is not symmetrical (for example, if you replace ic_toys with ic_mic) then you get the bug - the graphic ends up upside down after the animation.
edit: after running this in the debugger, it appears to me that showFABMenu() sometimes triggers the listener in closeFABMenu(), and vice versa. so the rotation set by one of those functions may get superseded by the rotation set by the other, leaving the FAB in an incorrect position. this is under API 28.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.