{"id":13989529,"url":"https://github.com/konifar/fab-transformation","last_synced_at":"2025-04-05T01:05:49.013Z","repository":{"id":35760423,"uuid":"40039838","full_name":"konifar/fab-transformation","owner":"konifar","description":"Support Floating Action Button transformation for Android","archived":false,"fork":false,"pushed_at":"2016-12-02T01:46:06.000Z","size":666,"stargazers_count":766,"open_issues_count":8,"forks_count":116,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-29T00:07:34.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/konifar.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}},"created_at":"2015-08-01T08:01:09.000Z","updated_at":"2025-03-22T07:46:16.000Z","dependencies_parsed_at":"2022-08-29T06:51:44.168Z","dependency_job_id":null,"html_url":"https://github.com/konifar/fab-transformation","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/konifar%2Ffab-transformation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Ffab-transformation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Ffab-transformation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konifar%2Ffab-transformation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konifar","download_url":"https://codeload.github.com/konifar/fab-transformation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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-09T13:01:43.512Z","updated_at":"2025-04-05T01:05:48.991Z","avatar_url":"https://github.com/konifar.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Animations\"\u003e\u003c/A\u003eAnimations"],"readme":"[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/konifar/fab-transformation/blob/master/LICENSE)\n[ ![Download](https://api.bintray.com/packages/konifar/maven/fab-transformation/images/download.svg) ](https://bintray.com/konifar/maven/fab-transformation/_latestVersion)\n\n# Fab Transformation\nThis library supports Floating Action Button transformation in [Material Design Guideline](https://www.google.com/design/spec/components/buttons-floating-action-button.html).\n\n# Screenshot\n![Demo1](art/transform_to_toolbar.gif)\n![Demo2](art/transform_to_sheet.gif)\n\n# Sample App\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.konifar.example.fabtransformation\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"https://developer.android.com/images/brand/en_generic_rgb_wo_60.png\" /\u003e\n\u003c/a\u003e\n\n# Installation\nAdd the dependency (jcenter) to your `build.gradle`.\n```groovy\ndependencies {\n    compile 'konifar:fab-transformation:1.0.0'\n}\n```\n\n# How to use\nThis is footer toolbar transformation example.\n\n## Layout\n1. Put Floating Action Button and transform view in your layout.\n2. Wrap transform view in Circular reveal container.\n\n```xml\n\u003cRelativeLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n    \n    \u003c!-- Any Fab is OK. (Third party library, your custom view and so on) --\u003e\n    \u003candroid.support.design.widget.FloatingActionButton\n        android:id=\"@+id/fab\"\n        style=\"@style/FabMargin\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentBottom=\"true\"\n        android:layout_alignParentRight=\"true\"\n        android:src=\"@drawable/ic_share_white_24dp\"\n        app:backgroundTint=\"@color/blue_accent200\"\n        app:borderWidth=\"0dp\" /\u003e\n\n    \u003c!-- You must wrap transform view in Circular reveal container --\u003e\n    \u003cio.codetail.widget.RevealFrameLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentBottom=\"true\"\u003e\n\n        \u003c!-- Transform view --\u003e\n        \u003candroid.support.v7.widget.Toolbar\n            android:id=\"@+id/toolbar_footer\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"@dimen/footer\"\n            android:background=\"@color/blue_accent200\"\n            android:visibility=\"invisible\"\u003e\n            \u003c!-- Put view you like --\u003e\n        \u003c/android.support.v7.widget.Toolbar\u003e\n\n    \u003c/io.codetail.widget.RevealFrameLayout\u003e\n\u003c/RelativeLayout\u003e\n```\n\n## Java\n### Transform fab to other view.\n```java\n\nFabTransformation.with(fab)\n                 .transformTo(toolbarFooter);\n```\n\n### Transform other view to fab.\n```java\nFabTransformation.with(fab)\n                 .transformFrom(toolbarFooter);\n```\n\n## Options\n```java\nFabTransformation.with(fab)\n                 .overlay(overlayView)\n                 .duration(500)\n                 .setListener(new FabTransformation.OnTransformListener() {\n                                @Override\n                                public void onStartTransform() {\n                                    // \n                                }\n\n                                @Override\n                                public void onEndTransform() {\n                                    //\n                                }\n                 })\n                 .transformFrom(toolbarFooter);\n```\n\n# Requirements\nAndroid 2.3+\n\n# Credits\nThis library use following libraries.\n* [CircularReveal](https://github.com/ozodrukh/CircularReveal)\n* [NineOldAndroids](https://github.com/JakeWharton/NineOldAndroids)\n\n# Developed By\nYusuke Konishi (konifar) - \u003cyahpeycoy0403@gmail.com\u003e\n\n# License\n```\nThe MIT License (MIT)\n\nCopyright (c) 2015 Yusuke Konishi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonifar%2Ffab-transformation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonifar%2Ffab-transformation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonifar%2Ffab-transformation/lists"}