Skip to content

toanvc/FloatingActionMenu-Animation

 
 

Repository files navigation

FloatingActionButton

This library is an extended version of the FloatingActionButton library by str4d with adding Scroll handler and animation for floatingActionMenu button This library supports API 7+.

Features

  • Support all features from its' base version: FloatingActionButton

  • Using custom FloatingActionMenu icon (default is add button): *fab:fab_menuIcon="@drawable/sort"

  • Scroll handler listener custom and animations: scale, translationY, translationX, fade

    Scale:

    TranslationY:

Sample

Download this apk or run sample project

Usage

The library is available on jcenter(). Just add the dependency to your build.gradle:

dependencies {
    compile 'com.github.toanvc:floatingactionmenu:0.8.9'
}

Add these lines to proguard, make sure that RotatingDrawable run well:

-keepclassmembers class toan.android.floatingactionmenu.FloatingActionsMenu$RotatingDrawable {
   void set*(***);
   *** get*();
}

Credits

This library is an extended version of the FloatingActionButton library by str4d.

That library used FloatingActionButton library by Oleksandr Melnykov as a base for development for handler of scroll.

License

Copyright (C) 2016 toanvc
Copyright (C) 2014 str4d
Copyright (C) 2014 Jerzy Chalupski

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

This library is an extended version of the FloatingActionButton library by str4d with adding Scroll handler and animation for floatingActionMenu button

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%