{"id":48577999,"url":"https://github.com/gautamgupta/toolbar-button","last_synced_at":"2026-04-08T16:03:57.192Z","repository":{"id":57714892,"uuid":"55943454","full_name":"GautamGupta/toolbar-button","owner":"GautamGupta","description":"FAB to Toolbar Button library for Android Material Collapsing Toolbar","archived":false,"fork":false,"pushed_at":"2017-10-02T19:49:08.000Z","size":3530,"stargazers_count":298,"open_issues_count":2,"forks_count":46,"subscribers_count":18,"default_branch":"develop","last_synced_at":"2024-04-16T12:22:01.629Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GautamGupta.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":"2016-04-11T05:12:35.000Z","updated_at":"2024-04-16T12:22:01.629Z","dependencies_parsed_at":"2022-09-26T21:31:22.019Z","dependency_job_id":null,"html_url":"https://github.com/GautamGupta/toolbar-button","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/GautamGupta/toolbar-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GautamGupta%2Ftoolbar-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GautamGupta%2Ftoolbar-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GautamGupta%2Ftoolbar-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GautamGupta%2Ftoolbar-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GautamGupta","download_url":"https://codeload.github.com/GautamGupta/toolbar-button/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GautamGupta%2Ftoolbar-button/sbom","scorecard":{"id":55103,"data":{"date":"2025-08-11","repo":{"name":"github.com/GautamGupta/toolbar-button","commit":"ad28dc457c2ea783eecb5d9993e9c002179b7495"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"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 0/23 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":10,"reason":"no binaries found in the repo","details":null,"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":"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":"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:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 9 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-15T00:31:59.085Z","repository_id":57714892,"created_at":"2025-08-15T00:31:59.085Z","updated_at":"2025-08-15T00:31:59.085Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-04-08T16:03:56.854Z","updated_at":"2026-04-08T16:03:57.187Z","avatar_url":"https://github.com/GautamGupta.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Toolbar Button Example](https://raw.githubusercontent.com/GautamGupta/toolbar-button/master/art/toolbar-button.gif)\n\nAndroid Toolbar Button Library\n==============================\n\nThe problem with anchoring a floating action button to a collapsing toolbar is that the CTA gets\nhidden on scroll. This library allows you to artificially add a button in the toolbar with an\nanimation as soon as the FAB hides itself.\n\nWorks with Android 4.0+ (`minSdkVersion 14`).\n\n\nGradle\n------\n\n```\ndependencies {\n    ...\n    compile 'com.android.support:design:25.3.1'\n    compile 'am.gaut.android.toolbarbutton:toolbarbutton:0.1.0'\n}\n```\n\nUsage\n-----\n\nAdd this at the same level where your floating action button is defined in the activity.\n[Example](https://github.com/GautamGupta/toolbar-button/blob/master/app/src/main/res/layout/activity_detail.xml#L155-L169).\n\n```xml\n\u003cam.gaut.android.toolbarbutton.ToolbarButton\n        android:id=\"@+id/btn_toolbar_checkin\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        style=\"?attr/borderlessButtonStyle\"\n        android:background=\"@drawable/selector_toolbar_button\"\n        android:textAppearance=\"@style/TextAppearance.AppCompat.Widget.Button.Inverse\"\n        android:paddingLeft=\"@dimen/toolbar_button_padding\"\n        android:paddingRight=\"@dimen/toolbar_button_padding\"\n        android:drawablePadding=\"@dimen/toolbar_button_padding\"\n        android:drawableLeft=\"@drawable/ic_message_white_18dp\"\n        android:drawableStart=\"@drawable/ic_message_white_18dp\"\n        android:text=\"@string/checkin\"\n        app:layout_anchor=\"@id/appbar\"\n        app:layout_anchorGravity=\"right|end\" /\u003e\n```\n\nYou can treat the view as a\n[Button](http://developer.android.com/reference/android/widget/Button.html).\nProperties in the snippet produce a similar result as in the screen capture.\n\n`@dimen/toolbar_button_padding` (16dp), `@drawable/selector_toolbar_button`\n([see](https://github.com/GautamGupta/toolbar-button/blob/master/toolbarbutton/src/main/res/drawable/selector_toolbar_button.xml),\n[v21](https://github.com/GautamGupta/toolbar-button/blob/master/toolbarbutton/src/main/res/drawable-v21/selector_toolbar_button.xml))\nare supplied by the library.\n\n`@drawable/ic_message_white_18dp` is a [material icon](https://design.google.com/icons/#ic_message).\n\n`?attr/borderlessButtonStyle` and `@style/TextAppearance.AppCompat.Widget.Button.Inverse` come from\nthe design support library.\n\nCredits\n-------\n - [Gordon Evans](https://www.linkedin.com/in/gjrevans) for concept\n - Awesome folks at [Wirkn](http://wirkn.com/) (where the idea originated from), h/t [Joseph Voung](https://www.linkedin.com/in/josephwongcl)\n - [Cheesesquare](https://github.com/chrisbanes/cheesesquare) by Chris Banes for the material design demo app\n\nTroubleshooting\n---------------\n\n**Q. The button hides on scroll. Why is this happening?**\n\nThe default elevation of 6dp is getting overridden, making it compete with the elevation of the\nappbar. Try adding `android:elevation=\"6dp\"` property on the view.\n\n**Q. Does this work for Android versions before 4.0?**\n\nIt can be made to work for previous Android versions as well, using different implementation classes\nlike the Floating Action Button. If you take up the initiative, please submit a PR.\n\nLicense\n-------\n\n```\nCopyright 2016 Gautam Gupta\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgautamgupta%2Ftoolbar-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgautamgupta%2Ftoolbar-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgautamgupta%2Ftoolbar-button/lists"}