{"id":13395947,"url":"https://github.com/gowong/material-sheet-fab","last_synced_at":"2026-01-14T03:41:57.947Z","repository":{"id":35012011,"uuid":"39108999","full_name":"gowong/material-sheet-fab","owner":"gowong","description":"Android library that provides the floating action button to sheet transition from Google's Material Design.","archived":false,"fork":false,"pushed_at":"2024-07-31T02:44:17.000Z","size":5317,"stargazers_count":1574,"open_issues_count":16,"forks_count":253,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-01-02T16:11:48.743Z","etag":null,"topics":["android-library","fab","material-design"],"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/gowong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-07-15T01:16:16.000Z","updated_at":"2024-11-13T10:23:26.000Z","dependencies_parsed_at":"2024-10-25T12:47:07.379Z","dependency_job_id":"6aac6927-0f98-4c49-b6d2-25b66661a7a7","html_url":"https://github.com/gowong/material-sheet-fab","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/gowong/material-sheet-fab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowong%2Fmaterial-sheet-fab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowong%2Fmaterial-sheet-fab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowong%2Fmaterial-sheet-fab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowong%2Fmaterial-sheet-fab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gowong","download_url":"https://codeload.github.com/gowong/material-sheet-fab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gowong%2Fmaterial-sheet-fab/sbom","scorecard":{"id":442471,"data":{"date":"2025-08-11","repo":{"name":"github.com/gowong/material-sheet-fab","commit":"c42d5df80ded18d0a8274bdcece427a2e368ec98"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T05:52:17.821Z","repository_id":35012011,"created_at":"2025-08-19T05:52:17.821Z","updated_at":"2025-08-19T05:52:17.821Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android-library","fab","material-design"],"created_at":"2024-07-30T18:00:36.042Z","updated_at":"2026-01-14T03:41:57.927Z","avatar_url":"https://github.com/gowong.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","FAB","Index"],"sub_categories":[],"readme":"# MaterialSheetFab\n[![Maven Central](https://img.shields.io/maven-central/v/com.gordonwong/material-sheet-fab.svg)](https://oss.sonatype.org/content/repositories/releases/com/gordonwong/material-sheet-fab/)\n[![Codacy Badge](https://api.codacy.com/project/badge/grade/7bc537c29cfc4b74917fb0b2448d7127)](https://www.codacy.com/app/gowong/material-sheet-fab)\n[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://raw.githubusercontent.com/gowong/material-sheet-fab/master/LICENSE)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MaterialSheetFab-green.svg?style=flat)](https://android-arsenal.com/details/1/2178)\n[![Android Weekly](https://img.shields.io/badge/Android%20Weekly-166-green.svg?style=flat)](http://androidweekly.net/issues/issue-166)\n\n\nLibrary that implements the floating action button to sheet [transition](https://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions) from Google's Material Design documentation. It can be used with any FAB library on Android 4.0+ (API levels \u003e= 14).  \n\n![Transition](art/bgmonitor.gif)\n\n## Installation\n### Gradle\nAdd the dependency (available from mavenCentral and jcenter) to your `build.gradle`:  \n```groovy\nimplementation 'com.gordonwong:material-sheet-fab:1.2.1'\n```\n\n### Proguard\nModify your proguard configuration (if your app is using Proguard).\n```java\n-keep class io.codetail.animation.arcanimator.** { *; }\n```\n\n## Usage\n### Implement the FAB:  \nYou can use any FAB library as long as it implements the `AnimatedFab` interface.  \n```java\nimport android.support.design.widget.FloatingActionButton;\n\npublic class Fab extends FloatingActionButton implements AnimatedFab {\n\n   /**\n    * Shows the FAB.\n    */\n    @Override\n    public void show() {\n        show(0, 0);\n    }\n\n    /**\n     * Shows the FAB and sets the FAB's translation.\n     *\n     * @param translationX translation X value\n     * @param translationY translation Y value\n     */\n    @Override\n    public void show(float translationX, float translationY) {\n        // NOTE: Using the parameters is only needed if you want\n        // to support moving the FAB around the screen.\n        // NOTE: This immediately hides the FAB. An animation can \n        // be used instead - see the sample app.\n        setVisibility(View.VISIBLE);\n    }\n\n    /**\n     * Hides the FAB.\n     */\n    @Override\n    public void hide() {\n        // NOTE: This immediately hides the FAB. An animation can\n        // be used instead - see the sample app.\n        setVisibility(View.INVISIBLE);\n    }\n}\n```\n\n### Modify the layouts:  \n```xml\n\u003cRelativeLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n   \u003c!-- Your FAB implementation --\u003e\n   \u003cpath.to.your.fab\n        android:id=\"@+id/fab\"\n        android:layout_alignParentBottom=\"true\"\n        android:layout_alignParentEnd=\"true\"\n        android:layout_alignParentRight=\"true\" /\u003e\n\n    \u003c!-- Overlay that dims the screen --\u003e\n    \u003ccom.gordonwong.materialsheetfab.DimOverlayFrameLayout\n        android:id=\"@+id/overlay\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\" /\u003e\n\n    \u003c!-- Circular reveal container for the sheet --\u003e\n    \u003cio.codetail.widget.RevealLinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:gravity=\"end|bottom\"\n        android:orientation=\"vertical\"\u003e\n\n        \u003c!-- Sheet that contains your items --\u003e\n        \u003candroid.support.v7.widget.CardView\n            android:id=\"@+id/fab_sheet\"\n            android:layout_width=\"250dp\"\n            android:layout_height=\"300dp\"\u003e\n            \n            \u003c!-- TODO: Put your sheet items here --\u003e\n            \n        \u003c/android.support.v7.widget.CardView\u003e\n    \u003c/io.codetail.widget.RevealLinearLayout\u003e\n\u003c/RelativeLayout\u003e\n```\n\n### Initialize the MaterialSheetFab:  \nThis can be in your Activity or Fragment.  \n```java\npublic class MaterialSheetFabActivity extends Activity {\n\n    @Override\n    public void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n\n        Fab fab = (Fab) findViewById(R.id.fab);\n        View sheetView = findViewById(R.id.fab_sheet);\n        View overlay = findViewById(R.id.dim_overlay);\n        int sheetColor = getResources().getColor(R.color.fab_sheet_color);\n        int fabColor = getResources().getColor(R.color.fab_color);\n\n        // Initialize material sheet FAB\n        materialSheetFab = new MaterialSheetFab\u003c\u003e(fab, sheetView, overlay,\n            sheetColor, fabColor);\n    }\n}\n```\n\n### Optional:\n**Close sheet on back button:**  \n```java\n@Override\npublic void onBackPressed() {\n    if (materialSheetFab.isSheetVisible()) {\n        materialSheetFab.hideSheet();\n    } else {\n        super.onBackPressed();\n    }\n}\n```\n\n**Listen to events:**  \n```java\nmaterialSheetFab.setEventListener(new MaterialSheetFabEventListener() {\n    @Override\n    public void onShowSheet() {\n        // Called when the material sheet's \"show\" animation starts.\n    }\n    \n    @Override\n    public void onSheetShown() {\n        // Called when the material sheet's \"show\" animation ends.\n    }\n\n    @Override\n    public void onHideSheet() {\n        // Called when the material sheet's \"hide\" animation starts.\n    }\n     \n    public void onSheetHidden() {\n        // Called when the material sheet's \"hide\" animation ends.\n    }\n});\n```\n\n**Move the FAB around the screen** (this is useful for coordinating with [snackbars](http://www.google.com/design/spec/components/snackbars-toasts.html)):  \n```java\nmaterialSheetFab.showFab(translationX, translationY);\n```\n\n## Sample app\n[![Get it on Google Play](https://developer.android.com/images/brand/en_generic_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=com.gordonwong.materialsheetfab.sample)\n\n![Sample 1](art/sample1.png) ![Sample 2](art/sample2.png)\n\nTake a look at the [sample code](./sample/) and try the [app](https://play.google.com/store/apps/details?id=com.gordonwong.materialsheetfab.sample).\n\n## Apps using MaterialSheetFab\nFeel free to open a pull request to include your app here.\n\nIcon | App\n --- | ---\n![BG Monitor](http://bg-monitor.com/images/favicon.png)|[BG Monitor - Diabetes Management](http://bg-monitor.com/)\n\n## Changelog\nSee changelog [here](./CHANGELOG.md).\n\n## Credits\nThe following libraries are used:  \n[CircularReveal](https://github.com/ozodrukh/CircularReveal) - Adds circular reveal animation on Android versions \u003c 5.0  \n[ArcAnimator](https://github.com/asyl/ArcAnimator) - Used to animate FAB in an arc\n\n## License\n```\nThe MIT License (MIT)\n\nCopyright (c) 2015 Gordon Wong\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%2Fgowong%2Fmaterial-sheet-fab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgowong%2Fmaterial-sheet-fab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgowong%2Fmaterial-sheet-fab/lists"}