{"id":15034483,"url":"https://github.com/rubensousa/floatingtoolbar","last_synced_at":"2025-10-05T17:13:54.843Z","repository":{"id":57722515,"uuid":"56949117","full_name":"rubensousa/FloatingToolbar","owner":"rubensousa","description":"A toolbar that morphs from a FloatingActionButton","archived":false,"fork":false,"pushed_at":"2017-07-28T12:01:19.000Z","size":2077,"stargazers_count":1550,"open_issues_count":1,"forks_count":177,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-05-23T00:06:30.235Z","etag":null,"topics":["fab","floatingactionbutton","floatingmenu","toolbar","transition"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubensousa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-24T01:49:59.000Z","updated_at":"2025-05-18T00:49:57.000Z","dependencies_parsed_at":"2022-08-29T23:02:05.526Z","dependency_job_id":null,"html_url":"https://github.com/rubensousa/FloatingToolbar","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/rubensousa/FloatingToolbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubensousa%2FFloatingToolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubensousa%2FFloatingToolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubensousa%2FFloatingToolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubensousa%2FFloatingToolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubensousa","download_url":"https://codeload.github.com/rubensousa/FloatingToolbar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubensousa%2FFloatingToolbar/sbom","scorecard":{"id":788668,"data":{"date":"2025-08-11","repo":{"name":"github.com/rubensousa/FloatingToolbar","commit":"c5fe81266cb5bb2b6004d9dd1d98a0a0d16104f1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-23T06:49:29.543Z","repository_id":57722515,"created_at":"2025-08-23T06:49:29.543Z","updated_at":"2025-08-23T06:49:29.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486308,"owners_count":25994945,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":["fab","floatingactionbutton","floatingmenu","toolbar","transition"],"created_at":"2024-09-24T20:25:15.808Z","updated_at":"2025-10-05T17:13:54.825Z","avatar_url":"https://github.com/rubensousa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FloatingToolbar\nA toolbar that morphs from a FloatingActionButton\n\nInspired by the material design spec: https://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-transitions\n\nAvailable from API 14.\n\n\n\u003cimg src=\"screenshots/demo.gif\" width=\"350\"\u003e\u003cimg src=\"screenshots/demo_scroll.gif\" width=\"350\"\u003e\n\n## How to use\n\n##### 1. Add the following to your build.gradle:\n```groovy\ncompile 'com.github.rubensousa:floatingtoolbar:1.5.1'\n```\n##### 2. Add FloatingToolbar as a direct child of CoordinatorLayout and before the FloatingActionButton:\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:id=\"@+id/coordinatorLayout\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"true\"\u003e\n    \n    \u003c!-- Appbar --\u003e\n\n    \u003ccom.github.rubensousa.floatingtoolbar.FloatingToolbar\n        android:id=\"@+id/floatingToolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"?attr/actionBarSize\"\n        android:layout_gravity=\"bottom\"\n        app:floatingMenu=\"@menu/main\" /\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_gravity=\"bottom|end\"\n        android:layout_margin=\"@dimen/fab_margin\"\n        android:src=\"@drawable/ic_share_black_24dp\" /\u003e\n        \n        \n\u003c/android.support.design.widget.CoordinatorLayout\u003e\n```\n##### 3. Specify a menu resource file or custom layout with app:floatingMenu or app:floatingCustomView\n\nYou can also build a menu programmatically using FloatingToolbarMenuBuilder:\n\n```java\n mFloatingToolbar.setMenu(new FloatingToolbarMenuBuilder(this)\n                .addItem(R.id.action_unread, R.drawable.ic_markunread_black_24dp, \"Mark unread\")\n                .addItem(R.id.action_copy, R.drawable.ic_content_copy_black_24dp, \"Copy\")\n                .addItem(R.id.action_google, R.drawable.ic_google_plus_box, \"Google+\")\n                .addItem(R.id.action_facebook, R.drawable.ic_facebook_box, \"Facebook\")\n                .addItem(R.id.action_twitter, R.drawable.ic_twitter_box, \"Twitter\")\n                .build());\n```\n\n##### 4. Attach the FAB to the FloatingToolbar to automatically start the transition on click event:\n\n```java\nmFloatingToolbar.attachFab(fab);\n```\n\n##### 5. Set a click listener\n```java\nmFloatingToolbar.setClickListener(new FloatingToolbar.ItemClickListener() {\n            @Override\n            public void onItemClick(MenuItem item) {\n                \n            }\n\n            @Override\n            public void onItemLongClick(MenuItem item) {\n\n            }\n        });\n```\n\n##### 6. If you want to show a snackbar in the same layout as the FloatingToolbar, please use:\n\n```java\nmFloatingToolbar.showSnackBar(snackbar);\n```\n\n##### 7. (Optional) Attach a RecyclerView to hide the FloatingToolbar on scroll:\n\n```java\nmFloatingToolbar.attachRecyclerView(recyclerView);\n```\n\n##### 8. (Optional) Use show() and hide() to trigger the transition anytime:\n\n```java\nmFloatingToolbar.show();\nmFloatingToolbar.hide();\n```      \n  \n##### 9. (Optional) Add a MorphListener to listen to morph animation events\n\n```java\nmFloatingToolbar.addMorphListener(new FloatingToolbar.MorphListener() {\n    @Override\n    public void onMorphEnd() {\n        \n    }\n\n    @Override\n    public void onMorphStart() {\n\n    }\n\n    @Override\n    public void onUnmorphStart() {\n\n    }\n\n    @Override\n    public void onUnmorphEnd() {\n\n    }\n});\n``` \n\n## Attributes\n\n- app:floatingToastOnLongClick -\u003e boolean. Defaults to true\n- app:floatingHandleFabClick -\u003e boolean. Defaults to true\n- app:floatingMenu -\u003e Menu resource\n- app:floatingItemBackground -\u003e Drawable resource\n- app:floatingCustomView -\u003e Layout resource\n- app:floatingAutoHide -\u003e boolean. Defaults to true\n\n## Apps using FloatingToolbar (Send a PR to add your app here)\n\n- [EuroMillions](https://play.google.com/store/apps/details?id=io.github.rubensousa.euromillions)\n\n## License\n\n    Copyright 2016 Rúben Sousa\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%2Frubensousa%2Ffloatingtoolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubensousa%2Ffloatingtoolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubensousa%2Ffloatingtoolbar/lists"}