{"id":13604091,"url":"https://github.com/GrenderG/Toasty","last_synced_at":"2025-04-11T22:32:28.619Z","repository":{"id":37733199,"uuid":"79372587","full_name":"GrenderG/Toasty","owner":"GrenderG","description":"The usual Toast, but with steroids 💪","archived":false,"fork":false,"pushed_at":"2022-09-28T23:46:04.000Z","size":977,"stargazers_count":6590,"open_issues_count":52,"forks_count":810,"subscribers_count":135,"default_branch":"master","last_synced_at":"2025-04-11T20:58:56.632Z","etag":null,"topics":["android","toast","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":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrenderG.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-01-18T18:52:41.000Z","updated_at":"2025-04-10T04:59:06.000Z","dependencies_parsed_at":"2023-01-17T17:00:48.556Z","dependency_job_id":null,"html_url":"https://github.com/GrenderG/Toasty","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrenderG%2FToasty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrenderG%2FToasty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrenderG%2FToasty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrenderG%2FToasty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrenderG","download_url":"https://codeload.github.com/GrenderG/Toasty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489869,"owners_count":21112652,"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","toast","ui-widget"],"created_at":"2024-08-01T19:00:39.758Z","updated_at":"2025-04-11T22:32:28.592Z","avatar_url":"https://github.com/GrenderG.png","language":"Java","readme":"[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R21LO82)\n\n# Toasty\n[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14) [![](https://jitpack.io/v/GrenderG/Toasty.svg)](https://jitpack.io/#GrenderG/Toasty) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Toasty-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5102)\n\n\u003cdiv align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/GrenderG/Toasty/master/art/web_hi_res_512.png\" width=\"128\"\u003e\n\u003c/div\u003e\n\nThe usual Toast, but with steroids.\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.GrenderG:Toasty:1.5.2'\n}\n```\n\n## Configuration\n\nThis step is optional, but if you want you can configure some Toasty parameters. Place this anywhere in your app:\n\n```java\nToasty.Config.getInstance()\n    .tintIcon(boolean tintIcon) // optional (apply textColor also to the icon)\n    .setToastTypeface(@NonNull Typeface typeface) // optional\n    .setTextSize(int sizeInSp) // optional\n    .allowQueue(boolean allowQueue) // optional (prevents several Toastys from queuing)\n    .setGravity(int gravity, int xOffset, int yOffset) // optional (set toast gravity, offsets are optional)\n    .supportDarkTheme(boolean supportDarkTheme) // optional (whether to support dark theme or not)\n    .setRTL(boolean isRTL) // optional (icon is on the right)\n    .apply(); // required\n```\n\nYou can reset the configuration by using `reset()` method:\n\n```java\nToasty.Config.reset();\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 error Toast:\n\n``` java\nToasty.error(yourContext, \"This is an error toast.\", Toast.LENGTH_SHORT, true).show();\n```\nTo display a success Toast:\n\n``` java\nToasty.success(yourContext, \"Success!\", Toast.LENGTH_SHORT, true).show();\n```\nTo display an info Toast:\n\n``` java\nToasty.info(yourContext, \"Here is some info for you.\", Toast.LENGTH_SHORT, true).show();\n```\nTo display a warning Toast:\n\n``` java\nToasty.warning(yourContext, \"Beware of the dog.\", Toast.LENGTH_SHORT, true).show();\n```\nTo display the usual Toast:\n\n``` java\nToasty.normal(yourContext, \"Normal toast w/o icon\").show();\n```\nTo display the usual Toast with icon:\n\n``` java\nToasty.normal(yourContext, \"Normal toast w/ icon\", yourIconDrawable).show();\n```\n\nYou can also create your custom Toasts with the `custom()` method:\n``` java\nToasty.custom(yourContext, \"I'm a custom Toast\", yourIconDrawable, tintColor, duration, withIcon, \nshouldTint).show();\n```\n### Extra\n[You can pass formatted text to Toasty!](https://github.com/GrenderG/Toasty/blob/master/app/src/main/java/es/dmoral/toastysample/MainActivity.java#L98-L107)\n\n**There are variants of each method, feel free to explore this library.**\n\n## Screenshots\n\n**Please click the image below to enlarge.**\n\n\u003cimg src=\"https://raw.githubusercontent.com/GrenderG/Toasty/master/art/collage.png\"\u003e\n\n## Third Party Bindings\n\n### React Native\nYou may now use this library with [React Native](https://github.com/facebook/react-native) via this [module](https://github.com/prscX/react-native-toasty).\n\nApps using Toasty\n--\n\nWant to be here? Open an `issue` or make a `pull request`.\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=cheetatech.com.colorhub\"\u003e\u003cimg src=\"https://archive.org/download/ic_launcher_colorhub/ic_launcher_colorhub.png\" width=\"64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=cheetatech.com.colorhub\"\u003eColorHub - Color Palette\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.fa.daily.free\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/rXB22UBHujsK2uYpN-kAkVFBjTcnAp6ltSZYf9-LdYvRkM-kF-xtwPwR8kEInhludA=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.fa.daily.free\"\u003eDaily – News flipped around\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=es.jmoral.ozreader\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/ISQPSPA__uWU4Csw4N0quI0IPi_WcWN0pY4PK86yljf39vaCObvohT9ak2ubQ7iLDQ=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=es.jmoral.ozreader\"\u003eOz! Comic Reader\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.andreacioccarelli.impactor\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/KxzCiu-csleONAW9kfAYBCaCe4iAnhyO1ziuKjKK_yEDE0xPQMfy_-sYVYkj4RBE-Srt=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.andreacioccarelli.impactor\"\u003eImpactor Unroot\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.andreacioccarelli.fusemounter\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/7e0iTo60TJXz6U-zQl6pXcfgRCLifQaTp_DczwNA5ZSnrEssBwH6K0MU88gC9BzQlMY=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.andreacioccarelli.fusemounter\"\u003eFusemounter\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.thesrb.bluewords\u0026referrer=utm_source%3Dgithub%26utm_medium%3Dtoasty%26utm_content%3Dlogo%26utm_campaign%3Dreadme\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/gdGrQHkHsfRAY9ivf8wt9vgaX9KPxpFHdFq5AXY_zw2P8Wat3KNstvf-BkNaKrNX8Qg=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.thesrb.bluewords\u0026referrer=utm_source%3Dgithub%26utm_medium%3Dtoasty%26utm_content%3Dname%26utm_campaign%3Dreadme\"\u003eBlueWords\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.levionsoftware.instagram_map\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/QL0QDLXBm9j2Y2An4MOZtlbI02yx_zuI7I3vMBM_mBO_BbimNKjBQeldQBBKo0P60Og=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.levionsoftware.instagram_map\"\u003ePhoto Map - Photo and Video Gallery\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.sunshine.makilite\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/RL082J8D9AyVJdyoT8sN8Mb47LUJEn3ssvp8jgrke_K_sWAXgEl9F8tjudqDoL7y5A0=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.sunshine.makilite\"\u003eMaki for Facebook \u0026 Twitter\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.KillerBLS.modpeide\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/nyB12hF6cPHBrm532qQQslvj-X-klmPlKuQ4Z0MYKDpt4sPVZmWYRZ_SShEfVcTmhg=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.KillerBLS.modpeide\"\u003eModPE IDE\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=stream.rocketnotes\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/tYGJBG8mc7lwC0ZxQUxif2FVMFI8L8xRkPON0ytkWVPTI67ggkrgDl3JpRu9jW0W3sLJ=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=stream.rocketnotes\"\u003eRocket Notes\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.thirtydegreesray.openhub\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/XP-tvaGf-as9XMQ3kcUjohSZlSD7uyf_AcHsjq6jTI0chXWK1yQrnJJs2Y_Pvbe1FRQ=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.thirtydegreesray.openhub\"\u003eOpenHub for GitHub\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=org.openhab.habdroid\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/RhinsfPN8qFHQDyPKssmiPl4P_-JJpw7GaQO4K7TVixMjrkZsPh0NPXlL2nJRrR4PAbw=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=org.openhab.habdroid\"\u003eopenHAB\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n                \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=org.saarang.app\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/m683OsEgBAU15kdHOSsl-lckDPEa0bdsK2xvhq3Qs4vww-ueJnW8xY0xXfwfMV6dOyE=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n    \t\t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=org.saarang.app\"\u003eSaarang\u003c/a\u003e\u003c/td\u003e\n    \t\u003c/tr\u003e\n    \u003ctr\u003e\n                \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.dizdarevic.kadcemibus\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/LFUKgzu8S1V8TSLg3aiFoA7dkfUYmQg6s8lVUSPJYEkv6564UKjaUKhYcqvFMyDbSas=w64\"/\u003e\u003c/a\u003e\u003c/td\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.dizdarevic.kadcemibus\"\u003eKad ce mi bus - red voznje\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.katyayini.hidefiles\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/hq2dLHXjKoTonzE45uJKzkGfCUSSh0_IJZBnuRIyb8G_EbcpYT5_gPv942yrIKlyo12r=s64-rw\"/\u003e\u003c/a\u003e\u003c/td\u003e\n        \t\u003ctd\u003e\u003ca href=\"https://play.google.com/store/apps/details?id=com.katyayini.hidefiles\"\u003eHide Files\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n    \t\u003ctr\u003e\n            \u003ctd\u003e\u003ca href=\"https://github.com/nikothegreek/logviewer-for-openhab-app\"\u003e\u003cimg src=\"https://i.imgur.com/a6RbPkJ.png\"/\u003e\u003c/a\u003e\u003c/td\u003e\n        \t\u003ctd\u003e\u003ca href=\"https://github.com/nikothegreek/logviewer-for-openhab-app\"\u003eLogViewer for openHAB\u003c/a\u003e\u003c/td\u003e\n        \u003c/tr\u003e\n\u003c/table\u003e\n","funding_links":["https://ko-fi.com/R6R21LO82"],"categories":[":shamrock:  **Categories**","Toast","Library","2. View Library","Java"],"sub_categories":[":books: Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGrenderG%2FToasty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGrenderG%2FToasty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGrenderG%2FToasty/lists"}