{"id":13640360,"url":"https://github.com/Kaopiz/KProgressHUD","last_synced_at":"2025-04-20T02:33:25.866Z","repository":{"id":55063687,"uuid":"48464062","full_name":"Kaopiz/KProgressHUD","owner":"Kaopiz","description":"An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.","archived":false,"fork":false,"pushed_at":"2020-04-03T03:18:50.000Z","size":3444,"stargazers_count":1650,"open_issues_count":36,"forks_count":382,"subscribers_count":49,"default_branch":"master","last_synced_at":"2024-11-05T18:31:25.374Z","etag":null,"topics":[],"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/Kaopiz.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}},"created_at":"2015-12-23T02:16:15.000Z","updated_at":"2024-11-05T13:17:21.000Z","dependencies_parsed_at":"2022-08-14T10:50:11.199Z","dependency_job_id":null,"html_url":"https://github.com/Kaopiz/KProgressHUD","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaopiz%2FKProgressHUD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaopiz%2FKProgressHUD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaopiz%2FKProgressHUD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kaopiz%2FKProgressHUD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kaopiz","download_url":"https://codeload.github.com/Kaopiz/KProgressHUD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223816547,"owners_count":17207878,"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":[],"created_at":"2024-08-02T01:01:10.404Z","updated_at":"2024-11-09T10:31:08.262Z","avatar_url":"https://github.com/Kaopiz.png","language":"Java","funding_links":[],"categories":["进度条","Java","Libs","Lib Android"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# KProgressHUD\n[![Apache License](https://img.shields.io/badge/license-Apache-blue.svg)](http://opensource.org/licenses/Apache-2.0)\n[ ![Download](https://api.bintray.com/packages/kaopiz/KProgressHUD/KProgressHUD/images/download.svg) ](https://bintray.com/kaopiz/KProgressHUD/KProgressHUD/_latestVersion)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-KProgressHUD-green.svg?style=true)](https://android-arsenal.com/details/1/2975)\n\nA progress HUD implementation for Android.\nInspired by [MBProgressHUD](https://github.com/jdg/MBProgressHUD) for iOS.\n\n![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshots/screencast.gif)\n\n\u003c!---\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb01.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image01.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb02.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image02.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb03.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image03.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb04.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image04.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb05.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image05.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb06.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image06.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb07.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image07.png?raw=true)\n[![](https://raw.githubusercontent.com/Kaopiz/KProgressHUD/master/demo/screenshoots/thumb08.png)](https://github.com/Kaopiz/KProgressHUD/blob/master/demo/screenshoots/image08.png?raw=true)\n--\u003e\n\n## Compatibility\n\nAndroid 2.3 and later\n\n## Adding KProgressHUD to your project\n\n### Gradle\nInclude this in your app `build.gradle`\n\n```\ndependencies {\n    // Other dependencies\n    implementation 'com.kaopiz:kprogresshud:1.2.0'\n}\n```\n\n### Source code\nIf you want more control over the implementation, download and import the `kprogresshud` folder as a module to your project and modify according to your need.\n\n## Usage\n\nThe usage of KProgressHUD is pretty straight forward. \n- Create the HUD, customize its style and show on the UI thread. \n- Fire a background worker to handle long-running tasks. \n- When done, call `dismiss()` to close (or if you use a determinate style, the HUD will automatically dismiss when progress reaches its max).\n\nIndeterminate HUD\n```java\nKProgressHUD.create(MainActivity.this)\n\t.setStyle(KProgressHUD.Style.SPIN_INDETERMINATE)\n\t.setLabel(\"Please wait\")\n\t.setDetailsLabel(\"Downloading data\")\n\t.setCancellable(true)\n\t.setAnimationSpeed(2)\n\t.setDimAmount(0.5f)\n\t.show();\n```\n\nDeterminate HUD\n```java\nKProgressHUD hud = KProgressHUD.create(MainActivity.this)\n\t\t\t\t\t.setStyle(KProgressHUD.Style.ANNULAR_DETERMINATE)\n\t\t\t\t\t.setLabel(\"Please wait\")\n\t\t\t\t\t.setMaxProgress(100)\n\t\t\t\t\t.show();\nhud.setProgress(90);\n```\n\nYou can also create a custom view to be displayed.\n```java\nImageView imageView = new ImageView(this);\nimageView.setBackgroundResource(R.drawable.spin_animation);\nAnimationDrawable drawable = (AnimationDrawable) imageView.getBackground();\ndrawable.start();\nKProgressHUD.create(MainActivity.this)\n   .setCustomView(imageView)\n   .setLabel(\"This is a custom view\")\n   .show();\n```\nOptionally, the custom view can implement `Determinate` or `Indeterminate` interface, which make the HUD treats this view like the default determinate or indeterminate one.\n\nSee [**Javadocs**](http://kaopiz.github.io/KProgressHUD/) or [**sample**](https://github.com/Kaopiz/KProgressHUD/tree/master/demo/src/main) for more information.\n\n## Contributing\n1. Fork it ( https://github.com/Kaopiz/KProgressHUD/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n```\n   Copyright 2015 Kaopiz Software Co., Ltd.\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaopiz%2FKProgressHUD","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaopiz%2FKProgressHUD","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaopiz%2FKProgressHUD/lists"}