{"id":20930509,"url":"https://github.com/liangjingkanji/statelayout","last_synced_at":"2025-04-04T20:10:37.846Z","repository":{"id":37439738,"uuid":"202925419","full_name":"liangjingkanji/StateLayout","owner":"liangjingkanji","description":"🍘 Android上最强大的缺省页框架","archived":false,"fork":false,"pushed_at":"2023-10-09T02:20:28.000Z","size":1164,"stargazers_count":680,"open_issues_count":4,"forks_count":49,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T19:08:19.122Z","etag":null,"topics":["statelayout","statuslayout"],"latest_commit_sha":null,"homepage":"http://liangjingkanji.github.io/StateLayout/","language":"Kotlin","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/liangjingkanji.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":"2019-08-17T19:50:39.000Z","updated_at":"2025-03-28T02:13:30.000Z","dependencies_parsed_at":"2023-02-09T19:15:58.067Z","dependency_job_id":"dc77e630-b7f4-469f-b63a-c3fceb0c83c5","html_url":"https://github.com/liangjingkanji/StateLayout","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FStateLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FStateLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FStateLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjingkanji%2FStateLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liangjingkanji","download_url":"https://codeload.github.com/liangjingkanji/StateLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"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":["statelayout","statuslayout"],"created_at":"2024-11-18T21:34:38.982Z","updated_at":"2025-04-04T20:10:37.810Z","avatar_url":"https://github.com/liangjingkanji.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## StateLayout\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/WtX3k3C.png\" alt=\"1600\" width=\"30%\"/\u003e\u003c/p\u003e \u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e整个应用的缺省页\u003c/strong\u003e\u003c/p\u003e\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"http://liangjingkanji.github.io/StateLayout/\"\u003e使用文档\u003c/a\u003e\n| \u003ca href=\"https://github.com/liangjingkanji/document/blob/master/visit-pages.md\"\u003e无法访问?\u003c/a\u003e\n| \u003ca href=\"https://github.com/liangjingkanji/StateLayout/releases/latest/download/state-layout-sample.apk\"\u003e下载体验\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://jitpack.io/#liangjingkanji/StateLayout\"\u003e\u003cimg src=\"https://jitpack.io/v/liangjingkanji/StateLayout.svg\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://img.shields.io/badge/language-kotlin-orange.svg\"/\u003e\n\u003cimg src=\"https://img.shields.io/badge/license-Apache-blue\"/\u003e\n\u003ca href=\"https://liangjingkanji.github.io/StateLayout/api/\"\u003e\u003cimg src=\"https://img.shields.io/badge/api-%E5%87%BD%E6%95%B0%E6%96%87%E6%A1%A3-red\"/\u003e\u003c/a\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/liangjingkanji/liangjingkanji/master/img/group.svg\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/YmP9RKB.gif\" alt=\"image-20200802050745439\" width=\"40%\" /\u003e\u003c/p\u003e\n\n\u003cbr\u003e\n\n### 优势\n\n- [x] 高扩展性\n- [x] 使用简单\n- [x] 详细的文档\n- [x] 长期维护\n- [x] 可选网络/列表框架配合实现自动化, 开发过程中基本上无需处理缺省页切换\n\n### 功能\n\n- [x] 全局/局部缺省页\n- [x] 布局或代码声明\n- [x] 快速配置点击重试\n- [x] 监听缺省页回调\n- [x] 自定义动画/布局\n- [x] [骨骼动画](https://liangjingkanji.github.io/StateLayout/skeleton.html)\n- [x] 传递标签\n- [x] 异步线程使用\n- [x] 自定义缺省页切换处理\n- [x] 配合[BRV](https://github.com/liangjingkanji/BRV/)使用自动化显示列表缺省页 (可选)\n- [x] 配合[Net](https://github.com/liangjingkanji/Net/)网络请求自动化显示缺省页 (可选)\n\n\u003cbr\u003e\n\n## 安装\n\n添加远程仓库根据创建项目的 Android Studio 版本有所不同\n\nAndroid Studio Arctic Fox以下创建的项目 在项目根目录的 build.gradle 添加仓库\n\n```groovy\nallprojects {\n    repositories {\n        // ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAndroid Studio Arctic Fox以上创建的项目 在项目根目录的 settings.gradle 添加仓库\n\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        // ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n然后在 module 的 build.gradle 添加依赖框架\n\n```groovy\nimplementation 'com.github.liangjingkanji:StateLayout:1.4.2'\n```\n\n\u003cbr\u003e\n\n## License\n\n```\nCopyright (C) 2018 Drake, Inc.\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\nhttp://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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjingkanji%2Fstatelayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliangjingkanji%2Fstatelayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjingkanji%2Fstatelayout/lists"}