{"id":21292825,"url":"https://github.com/shashank02051997/fancytoast-android","last_synced_at":"2025-04-14T08:56:36.845Z","repository":{"id":45014130,"uuid":"107715901","full_name":"Shashank02051997/FancyToast-Android","owner":"Shashank02051997","description":"Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code.","archived":false,"fork":false,"pushed_at":"2022-10-17T10:15:22.000Z","size":443,"stargazers_count":1302,"open_issues_count":2,"forks_count":190,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-04-07T01:11:18.587Z","etag":null,"topics":["android","android-lib","android-library","java","material-design","toast","ui","ui-widget"],"latest_commit_sha":null,"homepage":"","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":"2017-10-20T19:02:40.000Z","updated_at":"2025-04-05T07:35:05.000Z","dependencies_parsed_at":"2022-09-05T09:50:55.327Z","dependency_job_id":null,"html_url":"https://github.com/Shashank02051997/FancyToast-Android","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyToast-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyToast-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyToast-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shashank02051997%2FFancyToast-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shashank02051997","download_url":"https://codeload.github.com/Shashank02051997/FancyToast-Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248852112,"owners_count":21171839,"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","java","material-design","toast","ui","ui-widget"],"created_at":"2024-11-21T13:52:17.221Z","updated_at":"2025-04-14T08:56:36.818Z","avatar_url":"https://github.com/Shashank02051997.png","language":"Java","funding_links":["https://www.buymeacoffee.com/mXUuDW7"],"categories":[],"sub_categories":[],"readme":"# FancyToast-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![Maven Central](https://img.shields.io/maven-central/v/io.github.shashank02051997/FancyToast)\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-FancyToast-green.svg?style=flat )]( https://android-arsenal.com/details/1/6357 )\n\u003ca href=\"https://www.linkedin.com/in/shashank-singhal-a87729b5/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Support-Recommed%2FEndorse%20me%20on%20Linkedin-yellow?style=for-the-badge\u0026logo=linkedin\" alt=\"Recommend me on LinkedIn\" /\u003e\u003c/a\u003e\n\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\tmavenCentral()\n\t}\n}\n```\n\n## Dependency\n\nThis library is available on [MavenCentreal](https://search.maven.org/artifact/io.github.shashank02051997/FancyToast/)\n\nAdd this to your module's `build.gradle` file (make sure the version matches the Maven-Central badge above):\n\n```gradle\ndependencies {\n\t...\n\timplementation 'io.github.shashank02051997:FancyToast:2.0.2'\n}\n```\n## Usage\n\nEach method always returns a `Toast` object, so you can customize the Toast much more. **DON'T FORGET THE `show()` METHOD!**\n\nTo display an default Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.DEFAULT,true);\n```\nTo display a success Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.SUCCESS,true);\n```\nTo display an info Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.INFO,true);\n```\nTo display a warning Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.WARNING,true);\n```\nTo display the error Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.ERROR,true);\n```\nTo display the confusing Toast:\n\n``` java\nFancyToast.makeText(this,\"Hello World !\",FancyToast.LENGTH_LONG,FancyToast.CONFUSING,true);\n```\nYou can also remove the android icon on top-right corner by passing last parameter false.\n``` java\nFancyToast.makeText(yourContext, \"I'm a Toast\", duration, type, boolean value).show();\n```\n\nYou can also create your custom Toasts with passing your image with or without android icon(top-right corner):\n``` java\nFancyToast.makeText(yourContext, \"I'm a custom Toast\", duration, type, yourimage, boolean value).show();\n```\nTo display the custom Toast with no android icon:\n\n``` java\nFancyToast.makeText(this, \"This is Custom Toast with no android icon\", FancyToast.LENGTH_LONG, FancyToast.CONFUSING, R.drawable.ic_android_black_24dp, false);\n```\n## Screenshots\n\n**Please click the image below to enlarge.**\n\n\n\u003cimg src=\"https://github.com/Shashank02051997/FancyToast-Android/blob/master/fancytoastcollage.png\"\u003e\n\n\n## Contributing\n\nPlease fork this repository and contribute back using\n[pull requests](https://github.com/Shashank02051997/FancyToast-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 friend\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\u003cp\u003e\nDon't forget to star ⭐ the repo it motivates me to share more open source\n\u003c/p\u003e\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 2020 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%2Ffancytoast-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshashank02051997%2Ffancytoast-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashank02051997%2Ffancytoast-android/lists"}