All Projects → dev-labs-bg → flying-fab

dev-labs-bg / flying-fab

Licence: MIT License
No description or website provided.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to flying-fab

Expandablemenu
Expandable Menu button
Stars: ✭ 47 (+135%)
Mutual labels:  fab
Quickactionview
View that shows quick actions when long pressed, inspired by Pinterest
Stars: ✭ 185 (+825%)
Mutual labels:  fab
FabDialog
🎈 Fab into Dialog Animation on Android
Stars: ✭ 36 (+80%)
Mutual labels:  fab
Floating Navigation View
A simple Floating Action Button that shows an anchored Navigation View
Stars: ✭ 1,169 (+5745%)
Mutual labels:  fab
Floatingtoolbar
A toolbar that morphs from a FloatingActionButton
Stars: ✭ 1,540 (+7600%)
Mutual labels:  fab
React Native Action Button
customizable multi-action-button component for react-native
Stars: ✭ 2,408 (+11940%)
Mutual labels:  fab
Fabdialogmorph
🐠 Fab and Dialog Morphing Animation on Android
Stars: ✭ 737 (+3585%)
Mutual labels:  fab
LavaFab
💧 Android floating action button menu with "lava" animation
Stars: ✭ 51 (+155%)
Mutual labels:  fab
Material Sheet Fab
Android library that provides the floating action button to sheet transition from Google's Material Design.
Stars: ✭ 1,584 (+7820%)
Mutual labels:  fab
flutter fab dialer
Floating action button dialer
Stars: ✭ 66 (+230%)
Mutual labels:  fab
Hover
🎈 The smartest floating button
Stars: ✭ 81 (+305%)
Mutual labels:  fab
Gradient Screens
🌈 Gradients applied to buttons, texts and backgrounds in Flutter
Stars: ✭ 97 (+385%)
Mutual labels:  fab
Fabulousfilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa
Stars: ✭ 2,477 (+12285%)
Mutual labels:  fab
Faboptions
A multi-functional FAB component with customizable options
Stars: ✭ 1,060 (+5200%)
Mutual labels:  fab
Hidely
Custom Views that can hide/show a View with some Animations (inspired by the Android FAB)
Stars: ✭ 46 (+130%)
Mutual labels:  fab
React Fab Fan
Floating action button fan built with react and react-motion
Stars: ✭ 14 (-30%)
Mutual labels:  fab
Materialfabspeeddial
Android UI library of FAB speed dial
Stars: ✭ 193 (+865%)
Mutual labels:  fab
Fab
🛍️ A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.
Stars: ✭ 24 (+20%)
Mutual labels:  fab
easy-animated-vector-drawable
A library that helps using Animated Vector Drawables.
Stars: ✭ 40 (+100%)
Mutual labels:  fab
Jjfloatingactionbutton
Floating Action Button for iOS
Stars: ✭ 243 (+1115%)
Mutual labels:  fab

FlyingFab

License: MIT Download Kotlin

FlyingFab is a small library for animating FAB as if it is "flying", written in Kotlin.

It is created for the specific case in which an AppBarLayout containing CollapsingToolbarLayout is present alongside with the FAB.

It listens for AppBarLayout.OnOffsetChangedListener and implements FAB animation depending on its state - Collapsed, Expanded or Collapsing.

The interface is pretty simple to use. You just need to pass the AppBarLayout and the FAB after they are inflated.

override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_animated_fab)
        
        FlyingFab().setup(app_bar_layout, fab_1)
        //...
}

FlyingFab includes a flexible API that allows developers to change the animation duration and TimeInterpolator for the up or/and down animations. You just need to use the methods below:

public fun interpolatorUp(interpolator: TimeInterpolator?): FlyingFab
public fun interpolatorDown(interpolator: TimeInterpolator?): FlyingFab
public fun animationDurationUp(animationDuration: Long?): FlyingFab
public fun animationDurationDown(animationDuration: Long?): FlyingFab

Download

Grab via Gradle:

compile 'bg.devlabs.flyingfab:library:<latest version>'

or Maven:

<dependency>
  <groupId>bg.devlabs.flyingfab</groupId>
  <artifactId>flying-fab</artifactId>
  <version><latest version></version>
  <type>pom</type>
</dependency> 

Samples

Code samples are available in the app module. Here's a sample video:

Sample Video

Getting Help

To report a specific problem or feature request, open a new issue on Github. For questions, suggestions, or anything else you can send me an email.

Author

Simona Stoyanova - @sstoyanova on GitHub, @SimonaStoyanova on Twitter

License

FlyingFab is released under the MIT License.

Disclaimer

As this animation is not recognized as a best practice I don't advice you to use it in your application.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].