{"id":16619558,"url":"https://github.com/yanzhenjie/loading","last_synced_at":"2025-10-29T21:30:48.478Z","repository":{"id":57729869,"uuid":"91634594","full_name":"yanzhenjie/Loading","owner":"yanzhenjie","description":"LoadingView and LoadingDialog.","archived":false,"fork":false,"pushed_at":"2017-06-21T03:09:22.000Z","size":402,"stargazers_count":17,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-02T04:51:12.759Z","etag":null,"topics":["loading","loadingdialog"],"latest_commit_sha":null,"homepage":"https://github.com/yanzhenjie/Loading","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/yanzhenjie.png","metadata":{"files":{"readme":"README-CN.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":"2017-05-18T01:15:02.000Z","updated_at":"2024-07-18T02:21:24.000Z","dependencies_parsed_at":"2022-09-26T22:00:34.574Z","dependency_job_id":null,"html_url":"https://github.com/yanzhenjie/Loading","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzhenjie%2FLoading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzhenjie%2FLoading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzhenjie%2FLoading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzhenjie%2FLoading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanzhenjie","download_url":"https://codeload.github.com/yanzhenjie/Loading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238892428,"owners_count":19548185,"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":["loading","loadingdialog"],"created_at":"2024-10-12T02:42:16.056Z","updated_at":"2025-10-29T21:30:47.949Z","avatar_url":"https://github.com/yanzhenjie.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loading\n\n一个MD风格的LoadingView，它来自项目[LoadingDrawable](https://github.com/dinuscxj/LoadingDrawable)，因为我的开源项目需要用到Loading，所以我把它扣出来了，只是为了我的其它开源项目方便使用，推荐使用原作者的[LoadingDrawable](https://github.com/dinuscxj/LoadingDrawable)。\n\n[English Document](./README.md)  \n\n----\n\n# 截图\n\u003cimage src=\"./image/1.gif\" width=\"170px\"/\u003e\n\n# 依赖\n* Gradle\n```groovy\ncompile 'com.yanzhenjie:loading:1.0.2'\n```\n\n* Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.yanzhenjie\u003c/groupId\u003e\n  \u003cartifactId\u003eloading\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.2\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n# 使用说明\n\n**XML或者Java中**：  \n```xml\n\u003ccom.yanzhenjie.loading.LoadingView\n    android:id=\"@+id/loading_view\"\n    android:layout_width=\"150dp\"\n    android:layout_height=\"150dp\" /\u003e\n\n// 或者Java：\nLoadingView loadView = new LoadingView(context);\n```\n\n默认是一个白色的圆，你也可以改变颜色：    \n```java\nLoadingView loadView;\nloadView.setCircleColors(color1, color2, color3);\n```\n\n**使用默认的Dialog**：  \n```java\nDialog mWaitDialog = new LoadingDialog(context);\nmWaitDialog.setMessage(R.string.loading_wait);\n// mWaitDialog.setMessage(\"请求稍等\");\nmWaitDialog.setCircleColors(color1, color2, color3);\nmWaitDialog.show();\n```\n\n# 感谢以下项目及作者\n[LoadingDrawable](https://github.com/dinuscxj/LoadingDrawable)\n\n# License\n```text\nCopyright © Yan Zhenjie\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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanzhenjie%2Floading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanzhenjie%2Floading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanzhenjie%2Floading/lists"}