{"id":13604753,"url":"https://github.com/samlss/Broccoli","last_synced_at":"2025-04-12T02:31:28.750Z","repository":{"id":42330304,"uuid":"161803874","full_name":"samlss/Broccoli","owner":"samlss","description":"📟An Android library that shows the placeholder of the view.","archived":false,"fork":false,"pushed_at":"2023-03-22T01:34:10.000Z","size":4647,"stargazers_count":1762,"open_issues_count":4,"forks_count":200,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-08T12:07:27.137Z","etag":null,"topics":["android","placeholder","view"],"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/samlss.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,"governance":null}},"created_at":"2018-12-14T15:28:05.000Z","updated_at":"2025-03-27T16:28:11.000Z","dependencies_parsed_at":"2022-08-12T09:51:32.523Z","dependency_job_id":"f26676ba-1e88-4c42-a175-d56d2a597f4c","html_url":"https://github.com/samlss/Broccoli","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/samlss%2FBroccoli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBroccoli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBroccoli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FBroccoli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/Broccoli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248506901,"owners_count":21115503,"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","placeholder","view"],"created_at":"2024-08-01T19:00:50.913Z","updated_at":"2025-04-12T02:31:28.089Z","avatar_url":"https://github.com/samlss.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/Broccoli.png)\n\n  [![Download](https://api.bintray.com/packages/samlss/maven/broccoli/images/download.svg?version=1.0.0)](https://bintray.com/samlss/maven/broccoli/1.0.0/link) [![Api reqeust](https://img.shields.io/badge/API-11+-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=11#l11)    [![Apache License 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/samlss/Broccoli/blob/master/LICENSE) \n\n [中文](https://github.com/samlss/Broccoli/blob/master/README_CN.md)\n\nShow the placeholder of view when you are loading something...\n\n### Screenshots\n#### The default effect:\n\n![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/screenshot1.gif)\n\n\n#### The advenced effect:\n![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/screenshot2.gif)\n\n#### Use in RecyclerView\n![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/screenshot3.gif)\n\n\n#### DingDing\n![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/screenshot4.png) \n\n![Broccoli](https://github.com/samlss/Broccoli/blob/master/screenshots/screenshot5.png)\n------\n### Dependency\n\n#### Gradle\nAdd it in your module build.gradle at the end of repositories:\n  ```java\n  dependencies {\n      implementation 'me.samlss:broccoli:1.0.0'\n  }\n  ```\n\n#### Maven\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003eme.samlss\u003c/groupId\u003e\n  \u003cartifactId\u003ebroccoli\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Sample Usage\n\n```java\nBroccoli broccoli = new Broccoli();\n\n//add the default style placeholder\nbroccoli.addPlaceholders('activity', 'view_id', 'view_id'); \n\nor \n//add the default style placeholder\nbroccoli.addPlaceholders('view1', 'view2', 'view3'); \n\nor \n\n//add the custom style placeholder\nbroccoli.addPlaceholder(new PlaceholderParameter.Builder()\n                        .setView('view')\n                        .setAnimation('scaleAnimation');\n                        .setDrawable(DrawableUtils.createRectangleDrawable(placeHolderColor, 0))\n                        .build()); \n\nor\n//add the custom style placeholder with gradient animation\nbroccoli.addPlaceholder(new PlaceholderParameter.Builder()\n                        .setView('view')\n                        .setDrawable(new BroccoliGradientDrawable(Color.parseColor(\"#DDDDDD\"),\n                            Color.parseColor(\"#CCCCCC\"), 0, 1000, new LinearInterpolator())\n                        .build()); \nbroccoli.show();\n```\n\n\n\n### License\n\n```\nCopyright 2018 samlss\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://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,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2FBroccoli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2FBroccoli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2FBroccoli/lists"}