{"id":20009231,"url":"https://github.com/samlss/cubeloadingview","last_synced_at":"2025-10-26T19:32:16.663Z","repository":{"id":201738126,"uuid":"145393858","full_name":"samlss/CubeLoadingView","owner":"samlss","description":"📦A cube 3D rotation loading view.","archived":false,"fork":false,"pushed_at":"2018-08-23T07:05:10.000Z","size":357,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T11:38:00.390Z","etag":null,"topics":["android","loadingview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samlss.png","metadata":{"files":{"readme":"README-ZH.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-08-20T09:09:49.000Z","updated_at":"2024-03-21T02:51:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"db332bca-f436-4612-bb8f-8b19e59d1541","html_url":"https://github.com/samlss/CubeLoadingView","commit_stats":null,"previous_names":["samlss/cubeloadingview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCubeLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCubeLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCubeLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCubeLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/CubeLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390658,"owners_count":21740360,"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","loadingview"],"created_at":"2024-11-13T07:14:44.099Z","updated_at":"2025-10-26T19:32:16.551Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# CubeLoadingView\n一个立体3d旋转的loading view\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/CubeLoadingView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/CubeLoadingView/blob/master/LICENSE) [![Blog](https://img.shields.io/badge/samlss-blog-orange.svg)](https://blog.csdn.net/Samlss)\n\n![gif](https://github.com/samlss/CubeLoadingView/blob/master/screenshots/screenshot1.gif)\n\n\n### 使用\u003cbr\u003e\n在根目录的build.gradle添加这一句代码：\n```\nallprojects {\n    repositories {\n        //...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n在app目录下的build.gradle添加依赖使用：\n```\ndependencies {\n    implementation 'com.github.samlss:CubeLoadingView:1.0'\n}\n```\n\n布局中使用：\n```\n \u003ccom.iigo.library.CubeLoadingView\n        app:firstSideColor=\"@android:color/holo_red_light\"\n        app:secondSideColor=\"@android:color/holo_blue_light\"\n        app:thirdSideColor=\"@android:color/holo_orange_light\"\n        app:fourthSideColor=\"@android:color/holo_green_light\"\n        android:layout_centerInParent=\"true\"\n        android:layout_width=\"50dp\"\n        android:layout_height=\"50dp\"/\u003e\n\n```\n\n\u003cbr\u003e\n\n代码中使用：\n```\n  cubeLoadingView.setFirstSideColor(Color.RED); //设置第一面的颜色 \n  cubeLoadingView.setSecondSideColor(Color.RED); //设置第二面的颜色\n  cubeLoadingView.setThirdSideColor(Color.RED); //设置第三面的颜色\n  cubeLoadingView.setFourthSideColor(Color.RED); //设置第四面的颜色\n\n  cubeLoadingView.pause(); //暂停动画\n  cubeLoadingView.resume(); //恢复动画\n   \n  cubeLoadingView.start(); //开始动画\n  cubeLoadingView.stop(); //停止动画\n  cubeLoadingView.release(); //不需要使用该loading view的时候可手动释放，例如在activity的ondestroy()中\n```\n\n\u003cbr\u003e\n\n\n属性说明：\n\n开始属性说明之前，先看一张图\n\n\n| 属性        | 说明           |\n| ------------- |:-------------:|\n| firstSideColor      | 第一面颜色 |\n| secondSideColor      | 第二面颜色 |\n| thirdSideColor | 第三面颜色 |\n| fourthSideColor | 第四面颜色 |\n\n\n\u003cbr\u003e\n\n## [LICENSE](https://github.com/samlss/CubeLoadingView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fcubeloadingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fcubeloadingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fcubeloadingview/lists"}