{"id":21292828,"url":"https://github.com/shashank02051997/fancyalertdialog-android","last_synced_at":"2025-04-04T10:05:05.928Z","repository":{"id":49012108,"uuid":"116107995","full_name":"Shashank02051997/FancyAlertDialog-Android","owner":"Shashank02051997","description":"Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code.","archived":false,"fork":false,"pushed_at":"2022-07-28T16:02:14.000Z","size":500,"stargazers_count":376,"open_issues_count":5,"forks_count":80,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-28T09:04:05.182Z","etag":null,"topics":["android","android-lib","android-library","dialog","java","material-design","ui","ui-widget"],"latest_commit_sha":null,"homepage":null,"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/Shashank02051997.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":"2018-01-03T07:46:59.000Z","updated_at":"2025-02-10T10:24:36.000Z","dependencies_parsed_at":"2022-08-12T19:51:27.456Z","dependency_job_id":null,"html_url":"https://github.com/Shashank02051997/FancyAlertDialog-Android","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyAlertDialog-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyAlertDialog-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyAlertDialog-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyAlertDialog-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shashank02051997","download_url":"https://codeload.github.com/Shashank02051997/FancyAlertDialog-Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247155615,"owners_count":20893072,"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","android-lib","android-library","dialog","java","material-design","ui","ui-widget"],"created_at":"2024-11-21T13:52:18.471Z","updated_at":"2025-04-04T10:05:05.903Z","avatar_url":"https://github.com/Shashank02051997.png","language":"Java","funding_links":["https://www.buymeacoffee.com/mXUuDW7"],"categories":[],"sub_categories":[],"readme":"# FancyAlertDialog-Android\n[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)\n[![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=plastic)](https://android-arsenal.com/api?level=15)\n[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![](https://jitpack.io/v/Shashank02051997/FancyAlertDialog-Android.svg)](https://jitpack.io/#Shashank02051997/FancyAlertDialog-Android)\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-FancyAlertDialog-green.svg?style=flat )]( https://android-arsenal.com/details/1/6626 ) [![Javadoc](https://img.shields.io/badge/javadoc-SNAPSHOT-green.svg)](https://jitpack.io/com/github/Shashank02051997/FancyAlertDialog-Android/master-SNAPSHOT/javadoc/index.html)\n\n\u003ca href=\"https://play.google.com/store/apps/details?id=com.shashank.sony.fancylibrarybyshashank\"\u003e\n    \u003cimg alt=\"Get it on Google Play\"\n        height=\"80\"\n        src=\"https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png\" /\u003e\n\u003c/a\u003e\n\n## Prerequisites\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n## Dependency\n\nAdd this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):\n\n```gradle\ndependencies {\n\t...\n\timplementation 'com.github.Shashank02051997:FancyAlertDialog-Android:0.3'\n}\n```\n\u003ch2\u003e Fancy Alert Dialog\u003c/h2\u003e\n\n```diff\n FancyAlertDialog.Builder\n                .with(this)\n                .setTitle(\"Rate us if you like the app\")\n                .setBackgroundColor(Color.parseColor(\"#303F9F\"))  // for @ColorRes use setBackgroundColorRes(R.color.colorvalue)\n                .setMessage(\"Do you really want to Exit ?\")\n                .setNegativeBtnText(\"Cancel\")\n                .setPositiveBtnBackground(Color.parseColor(\"#FF4081\"))  // for @ColorRes use setPositiveBtnBackgroundRes(R.color.colorvalue)\n                .setPositiveBtnText(\"Rate\")\n                .setNegativeBtnBackground(Color.parseColor(\"#FFA9A7A8\"))  // for @ColorRes use setNegativeBtnBackgroundRes(R.color.colorvalue)\n                .setAnimation(Animation.POP)\n                .isCancellable(true)\n                .setIcon(R.drawable.ic_star_border_black_24dp, View.VISIBLE)\n                .onPositiveClicked(dialog -\u003e Toast.makeText(MainActivity.this, \"Rate\", Toast.LENGTH_SHORT).show())\n                .onNegativeClicked(dialog -\u003e Toast.makeText(MainActivity.this, \"Cancel\", Toast.LENGTH_SHORT).show())\n                .build()\n                .show();\n```\n#### Animation\n\nThere are 3 type of pre-defined animation you can use : `POP`, `SLIDE` and `SIDE`\n\n##### Pop Animation\n\nYou can add this animation to your dialog by using `.setAnimation(Animation.POP)`\n\n##### Side Animation\n\nThis animation let dialog enter screen from left and exit from right. You can add this animation to your dialog by using `.setAnimation(Animation.SIDE)`\n\n##### Slide Animation\n\nThis animation let dialog enter screen from bottom and exit from bottom. You can add this animation to your dialog by using `.setAnimation(Animation.SLIDE)`\n\n## Screenshots\n\n**Please click the image below to enlarge.**\n\n\n\u003cimg src=\"https://github.com/Shashank02051997/FancyAlertDialog-Android/blob/master/fancydialogimg.png\"\u003e\n\n\n## Contributing\n\nPlease fork this repository and contribute back using\n[pull requests](https://github.com/Shashank02051997/FancyAlertDialog-Android/pulls).\n\nAny contributions, large or small, major features, bug fixes, are welcomed and appreciated\nbut will be thoroughly reviewed .\n\n### Contact - Let's become friends\n- [Twitter](https://twitter.com/shashank020597)\n- [Github](https://github.com/Shashank02051997)\n- [Linkedin](https://www.linkedin.com/in/shashank-singhal-a87729b5/)\n- [Facebook](https://www.facebook.com/shashanksinghal02)\n\n## Donation\nIf this project help you reduce time to develop, you can give me a cup of coffee :)\n\n\u003ca href=\"https://www.buymeacoffee.com/mXUuDW7\" target=\"_blank\"\u003e\u003cimg src=\"https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n## License\n\n* [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n```\nCopyright 2018 Shashank Singhal\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\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashank02051997%2Ffancyalertdialog-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshashank02051997%2Ffancyalertdialog-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashank02051997%2Ffancyalertdialog-android/lists"}