{"id":17125976,"url":"https://github.com/jjhesk/hkm-progress-button","last_synced_at":"2025-04-13T05:34:53.007Z","repository":{"id":28740379,"uuid":"32261844","full_name":"jjhesk/hkm-progress-button","owner":"jjhesk","description":"Base on android-process-button this is the advanced version of the android-process-button.","archived":false,"fork":false,"pushed_at":"2016-08-20T01:07:40.000Z","size":1443,"stargazers_count":118,"open_issues_count":6,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-31T18:24:34.571Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjhesk.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-03-15T13:27:36.000Z","updated_at":"2023-05-11T08:01:13.000Z","dependencies_parsed_at":"2022-08-03T01:00:12.857Z","dependency_job_id":null,"html_url":"https://github.com/jjhesk/hkm-progress-button","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjhesk%2Fhkm-progress-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjhesk%2Fhkm-progress-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjhesk%2Fhkm-progress-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjhesk%2Fhkm-progress-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjhesk","download_url":"https://codeload.github.com/jjhesk/hkm-progress-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223100261,"owners_count":17087388,"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-10-14T18:46:23.072Z","updated_at":"2024-11-07T19:02:29.856Z","avatar_url":"https://github.com/jjhesk.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# Rock Button\n[ ![Download](https://api.bintray.com/packages/jjhesk/maven/hkmprocessbuttons/images/download.svg) ](https://bintray.com/jjhesk/maven/hkmprocessbuttons/_latestVersion)[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-hkm--progress--button-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1691)[![gitpay](http://fc07.deviantart.net/fs70/f/2012/336/f/9/little_pixel_heart_by_tiny_bear-d5mtwiu.gif)](https://gratipay.com/jjhesk/) [release log](https://github.com/jjhesk/hkm-progress-button/releases)[![Stories in Ready](https://badge.waffle.io/jjhesk/hkm-progress-button.png?label=ready\u0026title=Ready)](https://waffle.io/jjhesk/hkm-progress-button)\n\nBase on android-process-button this is the advanced version of the android-process-button\n[![Circle CI](https://circleci.com/gh/jjhesk/hkm-progress-button/tree/master.svg?style=svg)](https://circleci.com/gh/jjhesk/hkm-progress-button/tree/master)\n\n##Main Features\n- [x] ActionProcessButton\n- [x] ArrowButton\n- [x] GenerateProcessButton\n- [x] SubmitProcessButton\n- [x] AnimationProcessButton\n\nAndroid Buttons With Built-in Progress Meters.\n![](screenshots/sample1_small1.gif)\n![](screenshots/sample1_small2.gif)\n![](screenshots/new_sample.png)\n![](screenshots/diagram-v-0-0-2.png)\n\n### Read more with the development guide in Wiki\n- [Home](https://github.com/jjhesk/hkm-progress-button/wiki)\n- [Support XML attributes](https://github.com/jjhesk/hkm-progress-button/blob/master/library/src/main/res/values/styles.xml)\n\n### Attributes\n\nThere are several attributes you can set:\n\n| attr | description| button module base |\n| :---- | :---- | :---- |\n| pb_textProgress| the text content when the process is proceeding | ProcessButton |\n| pb_textComplete| the complete text |ProcessButton |\n| pb_textError| error message on the button | ProcessButton |\n| pb_colorProgress| the color resource reference on process |ProcessButton|\n| pb_colorComplete| the color resource reference on process completed|ProcessButton |\n| pb_colorError| the color resource reference when its error |ProcessButton |\n| pb_colorPressed| as read | FlatButton |\n| pb_colorNormal|  as read | FlatButton |\n| pb_colorDisabled|  as read | FlatButton |\n| pb_colorBorder| as read | FlatButton |\n| pb_borderWidth| as read | FlatButton |\n| pb_cornerRadius| as read | FlatButton |\n| pb_presentation| as read there are two options: pad_button, flat_button | FlatButton |\n| pb_colorArrow| color reference to tint the arrow | ArrowButton |\n| pb_arrowRes| the drawable reference for the button | ArrowButton |\n| pb_verticalPadding|dimension reference padding between top and bottom on the icon on right side | ArrowButton |\n| pb_topLineThickness| dimension reference for the line thickness on the top | ArrowButton |\n| pb_bottomLineThickness| dimension reference for the line thickness on the bottom | ArrowButton |\n\n## Code Sample\n```java\n\n        add_bag = (ActionProcessButton) findViewById(R.id.add_to_bag);\n        add_bag.setCompleteText(act.getResources().getString(R.string.button_3));\n        add_bag.setText(act.getResources().getString(R.string.button_1));\n        // set the progress mode on endless\n        add_bag.setMode(ActionProcessButton.Mode.ENDLESS);\n        // add success state color scheme as a button and not a sign\n        add_bag.setOnCompleteColorButton(R.color.green_800, R.color.green_900);\n        // add listener for click on the button for success state\n        add_bag.setOnClickCompleteState(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                Intent h = new Intent(context, CartWebViewStyleTopBar.class);\n                context.startActivity(h);\n            }\n        }).build();\n        \n```\n### Integration\n\nThe lib is available on maven jitpack, so you will need to add a class path for custom repos\n\n```gradle\n\nrepositories {maven { url \"http://dl.bintray.com/jjhesk/maven\" }}\ndependencies {compile 'com.hkm:hkmprocessbuttons:1.2.4'}\n```\n\n### Sample\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.dd.sample.processbutton\"\u003e\n  \u003cimg alt=\"Android app on Google Play\"\n       src=\"https://developer.android.com/images/brand/en_app_rgb_wo_45.png\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.inappsquared.devappsdirect\"\u003e\n  \u003cimg alt=\"DevAppsDirect\"\n       src=\"http://www.inappsquared.com/img/icons/devappsdirect_icon.png\" width=\"48\" height=\"48\" /\u003e\n\u003c/a\u003e\n\n### Status\n\n[![Throughput Graph](https://graphs.waffle.io/jjhesk/hkm-progress-button/throughput.svg)](https://waffle.io/jjhesk/hkm-progress-button/metrics)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjhesk%2Fhkm-progress-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjhesk%2Fhkm-progress-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjhesk%2Fhkm-progress-button/lists"}