{"id":19979080,"url":"https://github.com/enginebai/swagpoints","last_synced_at":"2025-04-10T01:09:27.579Z","repository":{"id":46922033,"uuid":"65109501","full_name":"enginebai/SwagPoints","owner":"enginebai","description":"An Android custom circular SeekBar that supports max/min range and step settings.","archived":false,"fork":false,"pushed_at":"2017-04-28T09:05:31.000Z","size":1292,"stargazers_count":312,"open_issues_count":7,"forks_count":48,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-10T01:09:23.289Z","etag":null,"topics":["android","circular-progress-bar","custom-view","java","seekbar"],"latest_commit_sha":null,"homepage":"https://enginebai.com/2018/05/07/android-custom-view/","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/enginebai.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":"2016-08-07T01:18:18.000Z","updated_at":"2025-02-21T15:48:37.000Z","dependencies_parsed_at":"2022-09-24T18:22:28.786Z","dependency_job_id":null,"html_url":"https://github.com/enginebai/SwagPoints","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/enginebai%2FSwagPoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FSwagPoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FSwagPoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enginebai%2FSwagPoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enginebai","download_url":"https://codeload.github.com/enginebai/SwagPoints/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137886,"owners_count":21053775,"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","circular-progress-bar","custom-view","java","seekbar"],"created_at":"2024-11-13T03:36:25.846Z","updated_at":"2025-04-10T01:09:27.561Z","avatar_url":"https://github.com/enginebai.png","language":"Java","readme":"# SwagPoints\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n [ ![Download](https://api.bintray.com/packages/enginebai/DualCores/SwagPoints/images/download.svg) ](https://bintray.com/enginebai/DualCores/SwagPoints/_latestVersion)\n\n**SwagPoints** - An Android custom circular SeekBar that supports max/min range and step settings.\n\n![SwagPoints](https://raw.githubusercontent.com/enginebai/SwagPoints/master/art/graphic.png)\n\n## Gradle\n\n```java\ndependencies {\n\t...\n\tcompile 'com.dualcores.swagpoints:swagpoints:1.0.2'\n}\n```\n\n## Usage\n\n* In XML layout: \n\n```xml\n\u003ccom.dualcores.swagpoints.SwagPoints\n    xmlns:swagpoints=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/seekbar_point\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"340dp\"\n    android:layout_gravity=\"center\"\n    android:padding=\"64dp\"\n    swagpoints:min=\"100\"\n    swagpoints:max=\"1000\"\n    swagpoints:step=\"100\"\n    swagpoints:progressColor=\"@color/color_progress\"\n    swagpoints:progressWidth=\"12dp\"\n    swagpoints:arcColor=\"@color/color_arc\"\n    swagpoints:arcWidth=\"8dp\"\n    swagpoints:textSize=\"72sp\"\n    swagpoints:textColor=\"@color/colorText\"\n    swagpoints:indicatorIcon=\"@drawable/indicator\"\n    /\u003e\n```\n**Remember** to add `layout_padding` to make sure that there is enough space to display the whole widget and indicator drawable.\n\n![](https://raw.githubusercontent.com/enginebai/SwagPoints/master/art/padding1.png)\n\nIf you don't add any `layout_padding`, the arc will extend the whole width/height, and the indicator drawable will be truncated (as below diagram).\n![](https://raw.githubusercontent.com/enginebai/SwagPoints/master/art/padding2.png)\n\n* All customizable attributes:\n\n```xml\n\u003cdeclare-styleable name=\"SwagPoints\"\u003e\n    \u003cattr name=\"points\" format=\"integer\" /\u003e\n    \u003cattr name=\"max\" format=\"integer\" /\u003e\n    \u003cattr name=\"min\" format=\"integer\"/\u003e\n    \u003cattr name=\"step\" format=\"integer\"/\u003e\n    \u003cattr name=\"indicatorIcon\" format=\"reference\" /\u003e\n    \u003cattr name=\"progressWidth\" format=\"dimension\" /\u003e\n    \u003cattr name=\"progressColor\" format=\"color\" /\u003e\n    \u003cattr name=\"arcWidth\" format=\"dimension\" /\u003e\n    \u003cattr name=\"arcColor\" format=\"color\" /\u003e\n    \u003cattr name=\"textSize\" format=\"dimension\"/\u003e\n    \u003cattr name=\"textColor\" format=\"color\"/\u003e\n    \u003cattr name=\"clockwise\" format=\"boolean\" /\u003e\n    \u003cattr name=\"enabled\" format=\"boolean\" /\u003e\n\u003c/declare-styleable\u003e\n```\n\n## Sample\n* Clone the repository and check out the `app` module.\n* Download the app [Swag – Exchange Personal Snaps](https://play.google.com/store/apps/details?id=com.machipopo.swag) on Google Play. This widget is used in the send point dialog.\n\n## Licence\nCopyright 2016 Engine Bai\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenginebai%2Fswagpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenginebai%2Fswagpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenginebai%2Fswagpoints/lists"}