{"id":19378456,"url":"https://github.com/liuguangqiang/cookiebar","last_synced_at":"2025-04-04T09:09:52.229Z","repository":{"id":57726238,"uuid":"83801927","full_name":"liuguangqiang/CookieBar","owner":"liuguangqiang","description":"CookieBar is a lightweight library for showing a brief message at the top or bottom of the screen.","archived":false,"fork":false,"pushed_at":"2020-04-08T03:02:56.000Z","size":426,"stargazers_count":506,"open_issues_count":6,"forks_count":54,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-28T08:09:44.098Z","etag":null,"topics":["android","animation","cookie","snackbar","toast","ui"],"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/liuguangqiang.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}},"created_at":"2017-03-03T13:39:51.000Z","updated_at":"2025-03-07T05:36:01.000Z","dependencies_parsed_at":"2022-09-17T14:31:38.317Z","dependency_job_id":null,"html_url":"https://github.com/liuguangqiang/CookieBar","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/liuguangqiang%2FCookieBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuguangqiang%2FCookieBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuguangqiang%2FCookieBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liuguangqiang%2FCookieBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liuguangqiang","download_url":"https://codeload.github.com/liuguangqiang/CookieBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149505,"owners_count":20891954,"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":["android","animation","cookie","snackbar","toast","ui"],"created_at":"2024-11-10T09:05:54.338Z","updated_at":"2025-04-04T09:09:52.211Z","avatar_url":"https://github.com/liuguangqiang.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cookie [![Build Status](https://travis-ci.org/liuguangqiang/SwipeBack.png?branch=master)](https://travis-ci.org/liuguangqiang/CookieBar)\n==============================================\nCookieBar is a lightweight library for showing a brief message at the top or bottom of the screen.\n\n## Screenshot\n\u003cimg src=\"arts/default.gif\" width=\"30%\"\u003e \u003cimg src=\"arts/custom.gif\" width=\"30%\"\u003e\n\n## Usage\n### Gradle\n\n```\ndependencies {\n   \timplementation 'com.liuguangqiang.cookie:CookieBar:1.0.1'\n}\n```\n\n### Maven\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.liuguangqiang.cookie\u003c/groupId\u003e\n  \u003cartifactId\u003eCookieBar\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## A simple CookieBar.\n```\n new CookieBar.Builder(MainActivity.this)\n                        .setTitle(\"TITLE\")\n                        .setMessage(\"MESSAGE\")\n                        .show();\n```\n\n## A CookieBar with a icon and a action button.\n```\n new CookieBar.Builder(MainActivity.this)\n                        .setTitle(\"TITLE\")\n                        .setIcon(R.mipmap.ic_launcher)\n                        .setMessage(\"MESSAGE\")\n                        .setAction(\"ACTION\", new OnActionClickListener() {\n                            @Override\n                            public void onClick() {\n                            }\n                        })\n                        .show();\n```\n\n## You can change the default style by set the Theme's attributes.\n\n```\n\u003cstyle name=\"AppTheme\" parent=\"Theme.AppCompat.Light.DarkActionBar\"\u003e\n   \u003citem name=\"cookieTitleColor\"\u003e@color/default_title_color\u003c/item\u003e\n   \u003citem name=\"cookieMessageColor\"\u003e@color/default_message_color\u003c/item\u003e\n   \u003citem name=\"cookieActionColor\"\u003e@color/default_action_color\u003c/item\u003e\n   \u003citem name=\"cookieBackgroundColor\"\u003e@color/default_bg_color\u003c/item\u003e\n\u003c/style\u003e\n```\n\n## Or dynamically change the style with a cookie builder.\n * layoutGravity\n * backgroundColor\n * titleColor\n * messageColor\n * actionColor\n * duration\n\n## New Features\n#### 1.0.0\n * The action button could be replaced by a icon.\n\n## License\n\n    Copyright 2017 Eric Liu\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%2Fliuguangqiang%2Fcookiebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliuguangqiang%2Fcookiebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliuguangqiang%2Fcookiebar/lists"}