{"id":13396066,"url":"https://github.com/truizlop/FABRevealLayout","last_synced_at":"2025-03-13T22:31:31.721Z","repository":{"id":96196136,"uuid":"42060360","full_name":"truizlop/FABRevealLayout","owner":"truizlop","description":"A layout to transition between two views using a Floating Action Button as shown in many Material Design concepts","archived":true,"fork":false,"pushed_at":"2019-04-23T07:59:24.000Z","size":1006,"stargazers_count":894,"open_issues_count":9,"forks_count":130,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-07-31T18:16:25.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/truizlop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-09-07T15:25:17.000Z","updated_at":"2024-05-29T18:26:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"723a4b88-6da2-4bb5-818c-03270078e556","html_url":"https://github.com/truizlop/FABRevealLayout","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/truizlop%2FFABRevealLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truizlop%2FFABRevealLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truizlop%2FFABRevealLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truizlop%2FFABRevealLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truizlop","download_url":"https://codeload.github.com/truizlop/FABRevealLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493693,"owners_count":20299703,"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-07-30T18:00:38.867Z","updated_at":"2025-03-13T22:31:31.709Z","avatar_url":"https://github.com/truizlop.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index","Java"],"sub_categories":[],"readme":"⚠ This library is no longer maintained ⚠️\n\n# FABRevealLayout \n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FABRevealLayout-green.svg?style=flat)](https://android-arsenal.com/details/1/2459)\n\nA layout to transition between two views using a Floating Action Button as shown in many Material Design concepts\n\n### Usage\n\n![Sample 1](art/fabrl_mgsv.gif)\n\n`FABRevealLayout` is very simple to use. You only need to include a `FloatingActionButton` from the Android Design Support Library and two views (namely main and secondary) within the layout. `FABRevealLayout` will position your views accordingly and provide the transition between them automatically.\n\n``` xml\n\u003ccom.truizlop.fabreveallayout.FABRevealLayout\n    android:id=\"@+id/fab_reveal_layout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"@dimen/fab_reveal_height\"\n    \u003e\n\n    \u003candroid.support.design.widget.FloatingActionButton\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:backgroundTint=\"@color/some_color\"\n        android:src=\"@drawable/some_drawable\"\n        /\u003e\n\n    \u003cRelativeLayout\n        android:id=\"@+id/main_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n\n\t\t...\n    \u003c/RelativeLayout\u003e\n\n    \u003cRelativeLayout\n        android:id=\"@+id/secondary_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n\n\t\t...\n    \u003c/RelativeLayout\u003e\n\n\u003c/com.truizlop.fabreveallayout.FABRevealLayout\u003e\n```\n\nPlease note that the secondary view should have a transparent background so that the color animation works correctly.\n\n### Further animation\n\n![Sample 2](art/fabrl_qotsa.gif)\n\nIf you want to animate the items inside the views of a `FABRevealLayout` or perform any other action when the transition is completed, you can register a listener.\n\n``` java\nprivate void configureFABReveal(FABRevealLayout fabRevealLayout) {\n    fabRevealLayout.setOnRevealChangeListener(new OnRevealChangeListener() {\n        @Override\n        public void onMainViewAppeared(FABRevealLayout fabRevealLayout, View mainView) {}\n\n        @Override\n        public void onSecondaryViewAppeared(final FABRevealLayout fabRevealLayout, View secondaryView) {}\n    });\n}\n```\n\nAlso, to trigger the reveal and hide animations programmatically, you can use the following methods:\n\n``` java\nfabRevealLayout.revealMainView();\nfabRevealLayout.revealSecondaryView();\n```\n\n### Limitations\n\nCurrently, both main and secondary views inside `FABRevealLayout` should have the same height so that the animation works properly.\n\n### Get it!\n\n`FABRevealLayout` is available through JCenter. To be able to use this library in your project, add the following dependency to your `build.gradle` file:\n\n```groovy\ndependencies{\n\timplementation 'com.truizlop.fabreveallayout:library:1.0.0'\n}\n```\n\n### Acknowledgements\n\n`FABRevealLayout` is based on this [proof of concept](https://github.com/saulmm/Curved-Fab-Reveal-Example) by Saúl Molinero and the explanations for [curved animations](http://graphics-geek.blogspot.com.es/2012/01/curved-motion-in-android.html) by Chet Haase.\n\n## License\n\n\n    Copyright 2015 Tomás Ruiz-López\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruizlop%2FFABRevealLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruizlop%2FFABRevealLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruizlop%2FFABRevealLayout/lists"}