{"id":21331057,"url":"https://github.com/bobomee/colorstatusbar","last_synced_at":"2025-07-29T07:05:23.239Z","repository":{"id":160854596,"uuid":"53252702","full_name":"BoBoMEe/ColorStatusBar","owner":"BoBoMEe","description":"大于4.4版本的变色状态栏，适配DrawerLayout沉浸和非沉浸样式","archived":false,"fork":false,"pushed_at":"2016-06-11T13:10:04.000Z","size":6068,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:46:51.904Z","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/BoBoMEe.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":"2016-03-06T12:02:08.000Z","updated_at":"2017-08-16T07:08:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"3da3f4b2-5f16-4310-9125-406edd46046b","html_url":"https://github.com/BoBoMEe/ColorStatusBar","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/BoBoMEe%2FColorStatusBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoMEe%2FColorStatusBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoMEe%2FColorStatusBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BoBoMEe%2FColorStatusBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BoBoMEe","download_url":"https://codeload.github.com/BoBoMEe/ColorStatusBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809848,"owners_count":20351407,"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-11-21T22:28:47.173Z","updated_at":"2025-03-16T00:41:55.359Z","avatar_url":"https://github.com/BoBoMEe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ColorStatusBar\n\nAndroid 4.4以上实现Material Design风格的状态栏（包括变色状态栏，NavigationView沿伸至状态栏）\n\n## Include\n- `maven`\n\n``` xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.bobomee.android\u003c/groupId\u003e\n  \u003cartifactId\u003ecolorstatus\u003c/artifactId\u003e\n  \u003cversion\u003e1.2\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n- `gradle`\n\n``` java\ncompile 'com.bobomee.android:colorstatus:1.2'\n```\n\n## ScreenShot\n\n![ColorStatusBar](screenshot/gif.gif \"Sample\")\n\n- Immersive\n\n![ColorStatusBar](screenshot/s1.png \"Immersive Mode\")\n\n\n- Un-Immersive \n\n![ColorStatusBar](screenshot/s2.png \"Un-Immersive Mode\")\n\n\n- Translucent \n\n![ColorStatusBar](screenshot/s3.png \"Translucent Mode\")\n\n\n- Full-Screen\n\n![ColorStatusBar](screenshot/s4.png \"Full-Screen Mode\")\n\n\n## Usage\n\n###1. 在布局文件中不要使用任何`android:fitsSystemWindows`属性\n\n###2. 在`Activity`中\n\n``` java\n @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_view_group);\n        StatusBarUtils.instance(this).setColor(color).\n                setStyle(isFill ? StatusBarUtils.TYPE.FILL : StatusBarUtils.TYPE.NOMAL).init();\n    }\n```\n\n###3. 关于样式\n\n- `StatusBarUtils.TYPE.NOMAL(default)` : `StatusBar`覆盖在布局最外层\n- `StatusBarUtils.TYPE.FILL` : `NavigationView` 和 `Content` 沿伸到 `StatusBar` 内部\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobomee%2Fcolorstatusbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobomee%2Fcolorstatusbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobomee%2Fcolorstatusbar/lists"}