{"id":13822159,"url":"https://github.com/marcoscgdev/FABScrollAnimations","last_synced_at":"2025-05-16T15:33:06.372Z","repository":{"id":144174232,"uuid":"54833689","full_name":"marcoscgdev/FABScrollAnimations","owner":"marcoscgdev","description":"[DISCONTINUED] A very simple library to animate the Support Library FAB when the user scrolls.","archived":true,"fork":false,"pushed_at":"2018-09-21T10:07:34.000Z","size":4369,"stargazers_count":46,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-04T08:07:49.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcoscgdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-27T15:02:40.000Z","updated_at":"2024-08-04T08:07:53.937Z","dependencies_parsed_at":null,"dependency_job_id":"abb1b791-9ea7-48f0-9090-db3070c001a5","html_url":"https://github.com/marcoscgdev/FABScrollAnimations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FFABScrollAnimations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FFABScrollAnimations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FFABScrollAnimations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FFABScrollAnimations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoscgdev","download_url":"https://codeload.github.com/marcoscgdev/FABScrollAnimations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225436545,"owners_count":17474166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T08:01:46.074Z","updated_at":"2024-11-19T22:32:27.750Z","avatar_url":"https://github.com/marcoscgdev.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# [DISCONTINUED] FAB Scroll Animations  [![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FAB%20Scroll%20Animations-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/3367)\n\nWith this Android library, you can made this animations with your [Support Library Floating Action Button](http://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html) when a NestedScrollView is beeing scrolled:\n\n| DEFAULT | FADE | FLOAT |\n|----------|:-------------:|------:|\n| ![](http://i.imgur.com/qps7rJU.gif) | ![](http://i.imgur.com/eBi91N9.gif) | ![](http://i.imgur.com/jyKygPS.gif) |\n\n---\n\n## Demo:\n\n**Video demo:** \u003ca href=#\u003e\u003cimg src=http://www.marketingtango.com/wp-content/uploads/2014/02/YouTube-icon-full_color.png width=50 /\u003e\u003c/a\u003e\n\nYou can download the **sample apk** [here](https://github.com/marcoscgdev/fabscrollanimations/blob/master/sample/sample.apk?raw=true).\n\n---\n\n## Requirements:\n\n* The Android Support Library v7 AppCompat.\n* The Android Support Design Library Floating Action Button.\n* A CoordinatorLayout as the master layout.\n* A NestedScrollView based scrolling content (Ex: RecyclerView).\n \n---\n\n## Usage:\n\n#### Step: 1\nInclude the [fabscrollanimations.jar](https://github.com/marcoscgdev/FABScrollAnimations/blob/master/library/fabscrollanimations.jar?raw=true) file to your _libs_ folder.\n#### Step: 2\nEnsure that your layout starts with a _CoordinatorLayout_.\n#### Step: 3\nThis library only works with _NestedScrollView based content_.\n####Step: 4\nAn example layout structure can be:\n```xml\n\u003candroid.support.design.widget.CoordinatorLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003candroid.support.v7.widget.RecyclerView\n        android:id=\"@+id/recyclerview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"/\u003e\n        \n    \u003candroid.support.design.widget.FloatingActionButton\n        android:id=\"@+id/fab\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"16dp\"\n        android:src=\"@drawable/plus\"\n        app:rippleColor=\"#4DFFFFFF\"\n        app:borderWidth=\"0dp\"\n        app:elevation=\"6dp\"\n        app:layout_anchor=\"@+id/recyclerview\"\n        app:layout_anchorGravity=\"bottom|end\"\n        app:layout_behavior=\"com.marcoscg.fabscrollanimations.Fade\"/\u003e\n\n\u003c/android.support.design.widget.CoordinatorLayout\u003e\n```\nYou have to emphasize the last line of code of the FloatingActionButton.\n```xml\n        app:layout_behavior=\"com.marcoscg.fabscrollanimations.Fade\"\n```\nIt tells to the FAB the animation that it have to do when user scrolls the content.\n\n---\n\nThere are currently three animations:\n\n* **DEFAULT:**\n\n  Use this layout_behavior:\n```xml\n        app:layout_behavior=\"com.marcoscg.fabscrollanimations.Default\"\n```\n\n* **FADE:**\n\n  Use this layout_behavior:\n```xml\n        app:layout_behavior=\"com.marcoscg.fabscrollanimations.Fade\"\n```\n\n* **FLOAT:**\n\n  Use this layout_behavior:\n```xml\n        app:layout_behavior=\"com.marcoscg.fabscrollanimations.Float\"\n```\n\n---\n\u003eSee the [sample project](https://github.com/marcoscgdev/FABScrollAnimations/tree/master/sample) to clarify any queries you may have.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoscgdev%2FFABScrollAnimations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoscgdev%2FFABScrollAnimations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoscgdev%2FFABScrollAnimations/lists"}