{"id":13604347,"url":"https://github.com/githubwing/ByeBurger","last_synced_at":"2025-04-11T23:32:23.246Z","repository":{"id":96897278,"uuid":"72818836","full_name":"githubwing/ByeBurger","owner":"githubwing","description":"An Android behavior library let your titlebar or bottom navigation hiding on scroll ,极其简便的快速实现滑动隐藏标题栏和导航栏","archived":false,"fork":false,"pushed_at":"2016-11-26T08:10:17.000Z","size":7646,"stargazers_count":1214,"open_issues_count":12,"forks_count":192,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-03T20:11:15.375Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubwing.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}},"created_at":"2016-11-04T06:01:23.000Z","updated_at":"2025-03-21T06:22:13.000Z","dependencies_parsed_at":"2023-05-09T16:00:39.205Z","dependency_job_id":null,"html_url":"https://github.com/githubwing/ByeBurger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubwing%2FByeBurger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubwing%2FByeBurger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubwing%2FByeBurger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubwing%2FByeBurger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubwing","download_url":"https://codeload.github.com/githubwing/ByeBurger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248495204,"owners_count":21113583,"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-01T19:00:43.941Z","updated_at":"2025-04-11T23:32:18.227Z","avatar_url":"https://github.com/githubwing.png","language":"Java","readme":"# ByeBurger\n[![](https://jitpack.io/v/githubwing/ByeBurger.svg)](https://jitpack.io/#githubwing/ByeBurger)\n\n\nBye Burger~  this is a easy way to make  your title or bottom navigation hiding on scroll like this\n\n[Bye, Bye Burger!\nWhat we learned from implementing the new Android Bottom Navigation](https://medium.com/startup-grind/bye-bye-burger-5bd963806015#.qibuxdc1t)\n\n\n# [中文文档](https://github.com/githubwing/ByeBurger/blob/master/README_CN.md)\n\n![image](https://github.com/githubwing/ByeBurgerNavigationView/raw/master/img/title.gif)\n![image](https://github.com/githubwing/ByeBurgerNavigationView/raw/master/img/book.gif)\n![image](https://github.com/githubwing/ByeBurgerNavigationView/raw/master/img/webview.gif)\n\n\n\n\u003e **Hiding on scroll:** We wanted to provide as much content as possible on our user’s screens. Consequently, we decided to make the navigation hide on scroll, thus making more room for the content area. Scrolling up makes the navigation fade back in.\n\n\u003e **Shifting navigation** : The Material Design bottom bar comes with a very slick animation, which is referred to as the Shifting navigation — when navigating between destinations the selected section icon is enlarged, moving the unselected element to the back. Flipping through destinations on the nav bar thus feels a bit like browsing through a carousel. We decided to utilize this effect as it adds a playful note to switching sections, which we hoped would nudge our users into navigating to different areas in the app more often. Further, the animation plays a major part in our next point…\n\n\n# USAGE\n\ncompile the library in your build.gralde\n\n```gradle\n\nallprojects {\n    repositories {\n        jcenter()\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\n\ndependencies {\n   compile 'com.github.githubwing:ByeBurger:1.2.3'\n  compile 'com.android.support:design:25.0.0'\n  }\n```\n\nYou only need to change the root view to CoordinatorLayout,\nAnd add one line code \"app:layout_behavior\" like the bottom\ninto **ANY** view, Then your view hiding on scroll.\nYour titleBar can be Toolbar,LinearLayout and so on. \nYour NavigationView can be BottomNavigationView or TabLayout,\nor **Any** View you put in xml.\n\n```xml\n\u003candroid.support.design.widget.CoordinatorLayout\u003e\n\n  \u003cViewpager /\u003e\n    \u003cToolbar\n  \tapp:layout_behavior=\"@string/bye_burger_title_behavior\"\n  /\u003e\n  \u003cBottomTab \n   android:layout_gravity=\"bottom\"\n   app:layout_behavior=\"@string/bye_burger_bottom_behavior\"\n  /\u003e      \n  \u003cFloatingActionButton\n    app:layout_behavior=\"@string/bye_burger_float_behavior\"\n  /\u003e\n\u003c/android.support.design.widget.CoordinatorLayout\u003e\n\n```\n\nYou can control it by call method show() hide()\n\n```java\n    ByeBurgerBehavior.from(mToolbar).hide()\n\n    ByeBurgerBehavior.from(mFloatButton).show()\n\n```\n\n\n# License\n\n    Copyright 2016 androidwing1992\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","funding_links":[],"categories":["Toolbar","Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubwing%2FByeBurger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubwing%2FByeBurger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubwing%2FByeBurger/lists"}