gowong / material-sheet-fab

Android library that provides the floating action button to sheet transition from Google's Material Design.
MIT License
1.58k stars 255 forks source link

Can you show example of having a normal FAB on one of the fragments? #4

Closed AndroidDeveloperLB closed 9 years ago

AndroidDeveloperLB commented 9 years ago

To show how it's best to transition between different FABs ...

gowong commented 9 years ago

Check out the sample app. It has examples of a FAB and how to show/hide it. Let me know if there's something specific you're looking for.

AndroidDeveloperLB commented 9 years ago

I already tested it. It either has a FAB with menu, or hide it. What's the best way to transition between different FABs ?

gowong commented 9 years ago

Which transition are you referring to? Do you mean transitioning between FABs when swiping between tabs?

AndroidDeveloperLB commented 9 years ago

When you swipe between fragments, you can have this transiton of FABs (animation when of the FAB itself when switching between fragments) : https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B6Okdz75tqQsVlhxNGJCNTEzNFU/components-buttons-fab-behavior_04_xhdpi_009.webm

On Mon, Aug 17, 2015 at 11:01 AM, Gordon Wong notifications@github.com wrote:

Which transition are you referring to? Do you mean transitioning between FABs when swiping between tabs?

— Reply to this email directly or view it on GitHub https://github.com/gowong/material-sheet-fab/issues/4#issuecomment-131722197 .

gowong commented 9 years ago

I haven't implemented such a transition myself, but I imagine that you can get the effect you're after by using scale animations on two FABs, shrinking one FAB and expanding the other. Since this isn't a question about the library, you should post on StackOverflow so that other people can help you out.