{"id":13989540,"url":"https://github.com/tuesda/SubmitDemo","last_synced_at":"2025-07-22T11:30:41.423Z","repository":{"id":34908267,"uuid":"38950654","full_name":"tuesda/SubmitDemo","owner":"tuesda","description":"comtomize view submit button which you use for submit operation or download operation and so on.","archived":false,"fork":false,"pushed_at":"2015-07-16T17:03:24.000Z","size":7644,"stargazers_count":128,"open_issues_count":1,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-29T08:39:15.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuesda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-12T05:05:28.000Z","updated_at":"2023-08-02T05:59:05.000Z","dependencies_parsed_at":"2022-09-01T00:51:57.235Z","dependency_job_id":null,"html_url":"https://github.com/tuesda/SubmitDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuesda/SubmitDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuesda%2FSubmitDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuesda%2FSubmitDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuesda%2FSubmitDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuesda%2FSubmitDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuesda","download_url":"https://codeload.github.com/tuesda/SubmitDemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuesda%2FSubmitDemo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483449,"owners_count":23936344,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T13:01:43.991Z","updated_at":"2025-07-22T11:30:40.425Z","avatar_url":"https://github.com/tuesda.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"This is library project with a custom view that implements concept of Submit Button (\u003chttps://dribbble.com/shots/1426764-Submit-Button?list=likes\u0026offset=3\u003e) made by Colin Garven.  \n\n###Demo###\n\n![](gifs/submitview.gif)\n\n###Usage###\n\n``` xml\n \u003ccom.tuesda.submit.SubmitView\n        android:layout_centerInParent=\"true\"\n        android:id=\"@+id/submit\"\n        android:layout_width=\"200dp\"\n        android:layout_height=\"200dp\" /\u003e\n```\n\n``` xml\nmSubmit.setOnProgressStart(new SubmitView.OnProgressStart() {\n            @Override\n            public void progressStart() {\n                // do something when progress start\n            }\n        });\n        \n        mSubmit.setOnProgressDone(new SubmitView.OnProgressDone() {\n            @Override\n            public void progressDone() {\n                // do something when progress is done\n            }\n        });\n```\n\n###public interface###\n\n| 函数名 |  作用|\n|:------|:-----|\n|`setBackColor(int color)`| 设置图标背景色，默认是绿色(0xff00cd97)，上图Demo设置为蓝色(0xff0097cd)|\n|`setText(String str)`|设置按钮名字，默认是`Submit`|\n|`reset()`|将按钮重置到初始状态|\n|`setProgress(float progress)`|设置正在执行工作的执行进程|\n|`isProgressDone()`| 正在执行工作是否完成|\n|`setOnProgressStart(OnProgressStart listener)`|设置progress开始回调|\n|`setOnProgressDone(OnProgressDone listener)` | 设置progress完成回调|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuesda%2FSubmitDemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuesda%2FSubmitDemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuesda%2FSubmitDemo/lists"}