{"id":27707631,"url":"https://github.com/d-max/spots-dialog","last_synced_at":"2025-04-26T07:03:33.738Z","repository":{"id":25752194,"uuid":"29190155","full_name":"dybarsky/spots-dialog","owner":"dybarsky","description":"Android AlertDialog with moving dots progress indicator","archived":false,"fork":false,"pushed_at":"2021-06-11T23:13:15.000Z","size":171,"stargazers_count":1081,"open_issues_count":9,"forks_count":242,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-19T14:47:24.204Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dybarsky.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-01-13T13:03:42.000Z","updated_at":"2025-04-16T23:19:25.000Z","dependencies_parsed_at":"2022-08-23T11:00:16.559Z","dependency_job_id":null,"html_url":"https://github.com/dybarsky/spots-dialog","commit_stats":null,"previous_names":["d-max/spots-dialog"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dybarsky%2Fspots-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dybarsky%2Fspots-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dybarsky%2Fspots-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dybarsky%2Fspots-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dybarsky","download_url":"https://codeload.github.com/dybarsky/spots-dialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250948635,"owners_count":21512346,"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":"2025-04-26T07:01:38.840Z","updated_at":"2025-04-26T07:03:33.724Z","avatar_url":"https://github.com/dybarsky.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index","进度条","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# Spots  progress dialog\n\n[![Maven](https://img.shields.io/badge/bintray-1.1-brightgreen.svg)](https://bintray.com/d-max/spots-dialog/d-max.spots-dialog/1.1)\n\u0026nbsp;\u0026nbsp;\n[![Blog Post](https://img.shields.io/badge/medium-post-yellow.svg)](https://medium.com/@dybarsky/spots-progress-dialog-490bd2c737b1)\n\u0026nbsp;\u0026nbsp;\n[![PlayStore](https://img.shields.io/badge/Play%20Store-demo-blue.svg)](https://play.google.com/store/apps/details?id=dmax.dialog.sample)\n\u0026nbsp;\u0026nbsp;\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Spots%20progress%20dialog-lightgrey.svg?style=flat)](http://android-arsenal.com/details/1/1743)\n\nAndroid AlertDialog with moving spots progress indicator packed as android library.\n\n![Example Image1][1]\n\n===========\n\n### Usage\n\nThe library available in maven jcenter repository. You can get it using:\n```groovy\nrepositories {\n    jcenter()\n}\ndependencies {\n    implementation 'com.github.d-max:spots-dialog:1.1@aar'\n}\n```\nJavadoc and sources package [classifiers][3] available too.\n\n**Note:** The library requires minimum API level 15.\n\n[SpotsDialog][4] class is an inheritor of a AlertDialog class. You can use it just like simple [AlertDialog][5]. For example:\n```kotlin\nval dialog: AlertDialog = SpotsDialog.Builder().setContext(context).build()\n...\ndialog.show()\n...\ndialog.dismiss()\n```\n\n### Customization\n\nFor dialog customization of dialog, like message and cancel listener, use `SpotsDialog.Builder` methods.\n\n```kotlin\nval dialog: AlertDialog = SpotsDialog.Builder()\n    .setContext(this)\n    .setMessage(R.string.custom_title)\n    .setCancelable(false)\n    ...\n    .build()\n    .apply { \n        show() \n    }\n...\ndialog.dismiss()\n```\n\nFor changing dialogs look and feel, create style and pass it ot dialog builder:\n```kotlin\nval dialog: AlertDialog = SpotsDialog.Builder()\n    .Builder()\n    .setContext(context)\n    .setTheme(R.style.Cusom)\n    .build()\n    .apply {\n        show()\n    }\n```\n\nFor styling the next custom attributes provided:\n* DialogTitleAppearance : style reference\n* DialogTitleText : string\n* DialogSpotColor : color\n* DialogSpotCount : integer\n\n**For example:**\n\nProvide you own style resource:\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003cstyle name=\"Custom\" parent=\"android:Theme.DeviceDefault.Dialog\"\u003e\n        \u003citem name=\"DialogTitleAppearance\"\u003e@android:style/TextAppearance.Medium\u003c/item\u003e\n        \u003citem name=\"DialogTitleText\"\u003eUpdating…\u003c/item\u003e\n        \u003citem name=\"DialogSpotColor\"\u003e@android:color/holo_orange_dark\u003c/item\u003e\n        \u003citem name=\"DialogSpotCount\"\u003e4\u003c/item\u003e\n    \u003c/style\u003e\n\u003c/resources\u003e\n```\n\nResult:\n\n![Example Image1][2]\n\n\n**Note:**\nOn the pre-lollipop devices _DialogSpotColor_ item won't work. As workaround just override color in your resources.\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003ccolor name=\"spots_dialog_color\"\u003e@color/your_color_value\u003c/color\u003e\n\u003c/resources\u003e\n```\n\n### Proguard\n\nIf you're using proguard, add this code to your rules file:\n\n```\n-keep class dmax.dialog.** {\n    *;\n}\n```\n\n===========\n\n\n### Release notes\n\n**[v1.1, June 5th 2018][11]**\n* Builder provided\n* Small fixes\n\n**[v0.7, November 23th 2015][10]**\n* Override message setter\n\n**[v0.4, July 23th 2015][9]**\n* Add custom message constructor\n\n**[v0.3, May 5th 2015][8]**\n* Stop animation when dismiss dialog\n\n**[v0.2, Feb 10th 2015][7]**\n* Fix issue on pre-lollipop\n\n**[v0.1, Jan 15th 2015][6]**\n* Style customization\n\n===========\n\n### Developed By\n\nMaksym Dybarskyi - http://d-max.info\n\n===========\n\n### License\n\n\tThe MIT License (MIT)\n\tCopyright © 2015 Maxim Dybarsky\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the “Software”), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n\n\n[1]: http://3.bp.blogspot.com/-l1UvVWiMSAg/VLa5ZfW4dDI/AAAAAAAANTc/rsWou_qb0Bc/s320/Y6HaTSw.gif\n[2]: http://1.bp.blogspot.com/-GVktyphQy4U/VLa5jqIF2MI/AAAAAAAANTk/SCtC58KAYHI/s320/plYat1p.gif\n[3]: http://www.gradle.org/docs/current/userguide/dependency_management.html#sub:classifiers\n[4]: library/src/main/java/dmax/dialog/SpotsDialog.java\n[5]: http://developer.android.com/reference/android/app/AlertDialog.html\n[6]: https://github.com/d-max/spots-dialog/releases/tag/v0.1\n[7]: https://github.com/d-max/spots-dialog/releases/tag/v0.2\n[8]: https://github.com/d-max/spots-dialog/releases/tag/v0.3\n[9]: https://github.com/d-max/spots-dialog/releases/tag/v0.4\n[10]: https://github.com/d-max/spots-dialog/releases/tag/v0.7\n[11]: https://github.com/d-max/spots-dialog/releases/tag/v1.1\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-max%2Fspots-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-max%2Fspots-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-max%2Fspots-dialog/lists"}