{"id":13639557,"url":"https://github.com/cctanfujun/ProgressRoundButton","last_synced_at":"2025-04-19T22:33:04.351Z","repository":{"id":46066369,"uuid":"43992689","full_name":"cctanfujun/ProgressRoundButton","owner":"cctanfujun","description":"A DownloadProgressButton with Animation for Android","archived":false,"fork":false,"pushed_at":"2019-02-13T13:29:49.000Z","size":13819,"stargazers_count":884,"open_issues_count":5,"forks_count":173,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-08-03T01:15:03.022Z","etag":null,"topics":["android","gradient"],"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/cctanfujun.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-10-10T03:42:08.000Z","updated_at":"2024-06-07T08:26:45.000Z","dependencies_parsed_at":"2022-09-04T17:22:42.045Z","dependency_job_id":null,"html_url":"https://github.com/cctanfujun/ProgressRoundButton","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/cctanfujun%2FProgressRoundButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cctanfujun%2FProgressRoundButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cctanfujun%2FProgressRoundButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cctanfujun%2FProgressRoundButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cctanfujun","download_url":"https://codeload.github.com/cctanfujun/ProgressRoundButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223810524,"owners_count":17206783,"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","gradient"],"created_at":"2024-08-02T01:01:02.059Z","updated_at":"2024-11-09T09:31:11.786Z","avatar_url":"https://github.com/cctanfujun.png","language":"Java","readme":"# ProgressRoundButton   [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ProgressRoundButton-green.svg?style=flat)](https://android-arsenal.com/details/1/2660)\n\nA Smooth Download Button with Progress.\n\n## Demo\n\n![demo](./img/Oct-27-2016 10-39-17.gif)\n\n## Usage\n\n### step1\n\n#### gradle\n\n```groovy\n dependencies {\n     compile fileTree(dir: 'libs', include: ['*.jar'])\n     compile 'com.android.support:appcompat-v7:23.0.1'\n     compile 'com.xiaochendev.progressroundbtn:library:2.0.0'\n }\n ```\n### step2 \n\nyou can define the button in xml like this:\n\n```xml\n\u003ccom.xiaochen.progressroundbutton.AnimDownloadProgressButton\n        android:id=\"@+id/anim_btn\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"40dp\"\n        app:progressbtn_background_color=\"@android:color/holo_orange_light\"\n        app:progressbtn_background_second_color=\"@android:color/holo_green_light\"/\u003e\n```\n### advanced\n* If you want shadow and press effect，please use `AnimButtonLayout` instead of `AnimDownloadProgressButton` :\n\n```xml\n\u003ccom.xiaochen.progressroundbutton.AnimButtonLayout\n            android:id=\"@+id/anim_btn3\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"40dp\"\n            android:layout_marginTop=\"40dp\"\n            app:progressbtn_background_color=\"@android:color/holo_blue_dark\"\n            app:progressbtn_background_second_color=\"@android:color/darker_gray\"\n            app:progressbtn_enable_gradient=\"true\"\n            app:progressbtn_enable_press=\"true\"/\u003e\n```\n\n* You can also implement your own `ButtonController`,so that you can controll gradient effect;\n\n\n\nThe Customized properties are in the follow table:\ngit \n\n| Property        | Format           | Default  |  \n| ------------- |:-------------:| :-----:|  \n|progressbtn_radius  |float  |half of the button height  |  \n|progressbtn_background_color|color | #6699ff |\n|progressbtn_background_second_color|color|Color.LTGRAY|\n|progressbtn_text_color|color|progressbtn_background_color|\n|progressbtn_text_covercolor|color|Color.WHITE|  \n|progressbtn_enable_press|boolean|false|  \n|progressbtn_enable_gradient|boolean|false|  \n\n  \n The follow picture make a clear explanation:\n \n ![show](http://ww4.sinaimg.cn/large/0060lm7Tgw1ex1yr2b9xjj30eg0go75n.jpg)\n \n open gradient\n \n ![gradient](http://ww4.sinaimg.cn/mw690/6ccf7929gw1f96m1ejk01j208m01mjra.jpg)\n \n use `AnimButtonLayout`\n \n ![shadow](http://ww2.sinaimg.cn/mw690/6ccf7929gw1f96m1f759gj208h01taa0.jpg)\n \n## Version\n\n* 2.0.0 \n\tNow you can use press effect;\n\tNow you can use gradient effect;\n\tAdd AnimButtomLayout with shadow ，when you press the button will be small;\n\n* 1.1.0\n  Fix the bug when setProgressText(\"something\",100),first tiem getProgress() return 0;\n\n* 1.0.0   \n  Now you can set text size;  \n  Add Method removeAllAnim() to avoid memory leak;\n\n* 0.9.1\n\n## About me \n\nI am a developer in China，If you have any idea about this project，please [contact me](mailto:cctanfujun@163.com)\n,Thank you!\n\n## 晓晨Android组\n这个是我的公众号，如果你有 Android 开发方面问题可以和我一起讨论，我每周或者每两周会发一两篇原创的Android文章，谢谢支持！\n\n![xiaochen588189](./img/wechat.jpg)\n\n\n\n## License\n\n    Copyright 2015 cctanfujun\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","funding_links":[],"categories":["按钮","Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcctanfujun%2FProgressRoundButton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcctanfujun%2FProgressRoundButton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcctanfujun%2FProgressRoundButton/lists"}