{"id":13645625,"url":"https://github.com/ImKarl/WaitView","last_synced_at":"2025-04-21T14:31:51.904Z","repository":{"id":75792690,"uuid":"90109629","full_name":"imkarl/WaitView","owner":"imkarl","description":"显示等待加载状态的View","archived":false,"fork":false,"pushed_at":"2017-09-03T15:37:06.000Z","size":117,"stargazers_count":473,"open_issues_count":0,"forks_count":56,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-09T18:43:12.415Z","etag":null,"topics":["view","wait"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imkarl.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-03T04:57:23.000Z","updated_at":"2024-08-26T09:10:12.000Z","dependencies_parsed_at":"2023-06-07T18:15:47.415Z","dependency_job_id":null,"html_url":"https://github.com/imkarl/WaitView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FWaitView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FWaitView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FWaitView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imkarl%2FWaitView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imkarl","download_url":"https://codeload.github.com/imkarl/WaitView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070196,"owners_count":21369840,"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":["view","wait"],"created_at":"2024-08-02T01:02:38.630Z","updated_at":"2025-04-21T14:31:51.596Z","avatar_url":"https://github.com/imkarl.png","language":"Java","readme":"# WaitView\n显示等待加载状态的View\n\n[![](https://jitpack.io/v/imkarl/WaitView.svg)](https://jitpack.io/#imkarl/WaitView)\n\n\n# Introduce\n\n- 第二张图为`等待加载的状态`\n\n\u003cimg src=\"https://raw.githubusercontent.com/ImKarl/WaitView/master/captures/layout_default.png\" width=\"225\" height=\"385\" alt=\"默认状态\"/\u003e . \u003cimg src=\"https://raw.githubusercontent.com/ImKarl/WaitView/master/captures/layout_waitview.png\" width=\"225\" height=\"385\" alt=\"等待加载的状态\"/\u003e\n\n\n# Features\n\n- `简单高效` 一行代码搞定所有控件的状态切换、恢复\n- `兼容性强` 支持所有系统控件、自定义控件\n- `可定制性` 自定义渲染规则，按需配置\n\n\n# Usage\n\n**Step 1.** Add the JitPack repository to your build file\n```\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n**Step 2.** Add the dependency\n```\ncompile 'com.github.ImKarl:WaitView:{latestVersion}'\n```\n\n\n# Sample\n\n- 渲染\n\n```\n单个View\nWaitViewController.from(mRootView).render();\n\n所有子View\nWaitViewController.from(mRootView).renderChilds();\n```\n\n\n- 移除\n\n```\n单个View\nWaitViewController.from(mRootView).remove();\n\n所有子View\nWaitViewController.from(mRootView).removeChilds();\n```\n\n\n- 额外的可配置项\n\n```\nWaitViewController controller = WaitViewController.from(mRootView);\n\n颜色：@ColorInt\ncontroller.color(color);\n\n透明度：@IntRange(from=0, to=255)\ncontroller.alpha(alpha);\n\n圆角半径：@Dimension\ncontroller.radius(radius);\n\n绘制区域：如 new Rect(0, 0, view.getWidth(), view.getHeight())\ncontroller.drawRect(rect);\ncontroller.drawRect(width, height);\n\n过滤器：如 new SimpleOnWaitViewFilter()\ncontroller.filter(filter);\n```\n\n\n- 更详细的案例\n\n请查看 [sample](https://github.com/ImKarl/WaitView/blob/master/sample/src/main/java/cn/imkarl/waitview/sample/MainActivity.java)\n","funding_links":[],"categories":["其他"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FImKarl%2FWaitView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FImKarl%2FWaitView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FImKarl%2FWaitView/lists"}