Animate Floating Button to Bottom Sheet

Animate Floating Button to Bottom Sheet

FabulousFilter

API
Android Arsenal
Material Up

[block]3[/block]Show some ❤️ and star the repo to support the project

GitHub stars
GitHub forks
GitHub watchers
GitHub followers
Twitter Follow

This library is the implementation of filter-concept posted on MaterialUp.com.

It makes animation of FloatingActionButton to BottomSheetDialog easy to implement.

[block]10[/block]Concept

fabulousfilter concept

[block]12[/block]Demo

fabulousfilter demo 1
fabulousfilter demo 1

[block]15[/block]Download

Gradle

Step 1. Add the jCenter repository to your project-level build.gradle file

Step 2. Add the dependency to your app-level build.gradle file:

[block]16[/block]Usage

Create a Fragment that extends AAH_FabulousFragment:

Create view for the fragment which has parent element AAH_FilterView:

Start the fragment on click of FloatingActionButton as below:

[block]17[/block]Parameters

  • Main View (Required)

This parameter specifies the ViewGroup of the bottom sheet to be shown after animation ends. It can be any ViewGroup(LinearLayout/FrameLayout etc):

  • Inflated Dialog View (Required)

This parameter speicfies the inflated view for the dialog:

  • Animation duration (Optional)

This paramter sets animation duration of translate and scale animation in milliseconds:

  • Peek Height (Optional)

This parameter sets the peek height of the bottom sheet in dp:

  • Callback (Optional)

This paramter is used to get callback from AAH_FabulousFragment to the component that called it:

To use it, implement the callback in the calling component(Activity/Fragment etc), example:

  • Animation Listener (Optional)

This parameter is used to get animation callbacks.

To use it, implement the AnimationListener in the calling component(Activity/Fragment etc), example:

  • Static View (Optional)

This parameter is used to make view in Bottom Sheet static when user slides it. It can be any ViewGroup(LinearLayout/FrameLayout etc):

  • ViewPager (Optional)

This parameter is used to support scrolling in ViewPager as BottomSheetDialog does not support multiple views with scroll:

630 total views, 5 views today

(Visited 209 times, 2 visits today)

You May Also Like

About the Author: Android Developer

This is Mohammad I am Android Application Developer. I am the founder of Android Tutorial Online blog. I am programming lover and professional blogger from India. I spend most of my time doing programming and helping other programmers. This Android tutorial online blog for learning and share Android code.
My Chatbot
Powered by Replace Me
Android Tutorial Online

Android Tutorial Online