Morph Floating Action Button Into Related Actions
I would like to morph the floating action button into related actions after it is first touched. If one of these buttons gets clicked the corresponding action will be performed and
Solution 1:
I personally used futuresimple's android-floating-action-button to make 2 java class that handles all that.
It supports the four expand directions:
publicstaticfinalint EXPAND_UP = 0;
publicstaticfinalint EXPAND_DOWN = 1;
publicstaticfinalint EXPAND_LEFT = 2;
publicstaticfinalint EXPAND_RIGHT = 3;
You can add his library or just copy its few java class. Really minimal code and working great.
Or just look at how he animates things (from FloatingActionMenu.java
).
Post a Comment for "Morph Floating Action Button Into Related Actions"