[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4240":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":27,"discoverSource":28},4240,"sweet-alert-dialog","pedant\u002Fsweet-alert-dialog","pedant","SweetAlert for Android, a beautiful and clever alert dialog","http:\u002F\u002Fpedant.github.io",null,"Java",7219,1913,259,145,0,1,2,63.55,false,"master",true,[],"2026-06-12 04:00:21","Sweet Alert Dialog\n===================\nSweetAlert for Android, a beautiful and clever alert dialog\n\n[![Android Arsenal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Arsenal-Sweet%20Alert%20Dialog-brightgreen.svg?style=flat)](https:\u002F\u002Fandroid-arsenal.com\u002Fdetails\u002F1\u002F1065)\n\n[中文版](https:\u002F\u002Fgithub.com\u002Fpedant\u002Fsweet-alert-dialog\u002Fblob\u002Fmaster\u002FREADME.zh.md)\n\nInspired by JavaScript [SweetAlert](http:\u002F\u002Ftristanedwards.me\u002Fsweetalert)\n\n[Demo Download](https:\u002F\u002Fgithub.com\u002Fpedant\u002Fsweet-alert-dialog\u002Freleases\u002Fdownload\u002Fv1.1\u002Fsweet-alert-sample-v1.1.apk)\n\n## ScreenShot\n![image](https:\u002F\u002Fgithub.com\u002Fpedant\u002Fsweet-alert-dialog\u002Fraw\u002Fmaster\u002Fchange_type.gif)\n\n## Setup\nThe simplest way to use SweetAlertDialog is to add the library as aar dependency to your build.\n\n**Maven**\n\n    \u003Cdependency>\n      \u003CgroupId>cn.pedant.sweetalert\u003C\u002FgroupId>\n      \u003CartifactId>library\u003C\u002FartifactId>\n      \u003Cversion>1.3\u003C\u002Fversion>\n      \u003Ctype>aar\u003C\u002Ftype>\n    \u003C\u002Fdependency>\n\n**Gradle**\n\n    repositories {\n        mavenCentral()\n    }\n\n    dependencies {\n        compile 'cn.pedant.sweetalert:library:1.3'\n    }\n\n## Usage\n\nshow material progress\n\n    SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);\n    pDialog.getProgressHelper().setBarColor(Color.parseColor(\"#A5DC86\"));\n    pDialog.setTitleText(\"Loading\");\n    pDialog.setCancelable(false);\n    pDialog.show();\n\n![image](https:\u002F\u002Fgithub.com\u002Fpedant\u002Fsweet-alert-dialog\u002Fraw\u002Fmaster\u002Fplay_progress.gif)\n\nYou can customize progress bar dynamically with materialish-progress methods via **SweetAlertDialog.getProgressHelper()**:\n- resetCount()\n- isSpinning()\n- spin()\n- stopSpinning()\n- getProgress()\n- setProgress(float progress)\n- setInstantProgress(float progress)\n- getCircleRadius()\n- setCircleRadius(int circleRadius)\n- getBarWidth()\n- setBarWidth(int barWidth)\n- getBarColor()\n- setBarColor(int barColor)\n- getRimWidth()\n- setRimWidth(int rimWidth)\n- getRimColor()\n- setRimColor(int rimColor)\n- getSpinSpeed()\n- setSpinSpeed(float spinSpeed)\n\nthanks to the project [materialish-progress](https:\u002F\u002Fgithub.com\u002Fpnikosis\u002Fmaterialish-progress) and [@croccio](https:\u002F\u002Fgithub.com\u002Fcroccio) participation.\n\nmore usages about progress, please see the sample.\n\nA basic message：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .show();\n\nA title with a text under：\n\n    new SweetAlertDialog(this)\n        .setTitleText(\"Here's a message!\")\n        .setContentText(\"It's pretty, isn't it?\")\n        .show();\n\nA error message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.ERROR_TYPE)\n        .setTitleText(\"Oops...\")\n        .setContentText(\"Something went wrong!\")\n        .show();\n\nA warning message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .show();\n\nA success message：\n\n    new SweetAlertDialog(this, SweetAlertDialog.SUCCESS_TYPE)\n        .setTitleText(\"Good job!\")\n        .setContentText(\"You clicked the button!\")\n        .show();\n\nA message with a custom icon：\n\n    new SweetAlertDialog(this, SweetAlertDialog.CUSTOM_IMAGE_TYPE)\n        .setTitleText(\"Sweet!\")\n        .setContentText(\"Here's a custom image.\")\n        .setCustomImage(R.drawable.custom_img)\n        .show();\n\nBind the listener to confirm button：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.dismissWithAnimation();\n            }\n        })\n        .show();\n\nShow the cancel button and bind listener to it：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setCancelText(\"No,cancel plx!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .showCancelButton(true)\n        .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog.cancel();\n            }\n        })\n        .show();\n\n**Change** the dialog style upon confirming：\n\n    new SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)\n        .setTitleText(\"Are you sure?\")\n        .setContentText(\"Won't be able to recover this file!\")\n        .setConfirmText(\"Yes,delete it!\")\n        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {\n            @Override\n            public void onClick(SweetAlertDialog sDialog) {\n                sDialog\n                    .setTitleText(\"Deleted!\")\n                    .setContentText(\"Your imaginary file has been deleted!\")\n                    .setConfirmText(\"OK\")\n                    .setConfirmClickListener(null)\n                    .changeAlertType(SweetAlertDialog.SUCCESS_TYPE);\n            }\n        })\n        .show();\n\n[more android tech shares: pedant.cn](http:\u002F\u002Fwww.pedant.cn)\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2014 Pedant(http:\u002F\u002Fpedant.cn)\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n\n\n","SweetAlert for Android 是一个美观且智能的对话框库，用于提升Android应用中的用户交互体验。它支持多种类型的对话框，包括基本消息、错误提示、警告以及成功信息等，并允许开发者自定义进度条样式和行为，如颜色、宽度及旋转速度等，以满足不同的视觉需求。该库采用Java语言开发，易于集成到现有的Android项目中，无论是通过Maven还是Gradle方式都非常方便。适用于需要增强用户体验、提供更友好反馈机制的各种Android应用程序场景。","2026-06-11 02:59:11","top_language"]