{"id":24491244,"url":"https://github.com/marcoscgdev/materialtoast","last_synced_at":"2025-04-14T00:20:58.211Z","repository":{"id":55584290,"uuid":"162823541","full_name":"marcoscgdev/MaterialToast","owner":"marcoscgdev","description":"A fully and highly customizable material designed Toast for Android.","archived":false,"fork":false,"pushed_at":"2020-12-20T15:56:59.000Z","size":202,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T01:17:49.277Z","etag":null,"topics":["android","free","library","material","materialtoast","notification","toast"],"latest_commit_sha":null,"homepage":"https://github.com/marcoscgdev/MaterialToast","language":"Kotlin","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/marcoscgdev.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-12-22T15:50:03.000Z","updated_at":"2024-08-27T14:43:42.000Z","dependencies_parsed_at":"2022-08-15T03:40:30.248Z","dependency_job_id":null,"html_url":"https://github.com/marcoscgdev/MaterialToast","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/marcoscgdev%2FMaterialToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FMaterialToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FMaterialToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoscgdev%2FMaterialToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoscgdev","download_url":"https://codeload.github.com/marcoscgdev/MaterialToast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799999,"owners_count":21163404,"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","free","library","material","materialtoast","notification","toast"],"created_at":"2025-01-21T18:17:21.728Z","updated_at":"2025-04-14T00:20:58.167Z","avatar_url":"https://github.com/marcoscgdev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaterialToast\nA fully and highly customizable material designed Toast for Android.\n\n\u003cimg src=\"https://raw.githubusercontent.com/marcoscgdev/MaterialToast/master/device-2018-12-22-164932.png\" width=\"350\"\u003e\n\nYou can download the **sample apk** [here](https://github.com/marcoscgdev/MaterialToast/releases/download/1.0.2/app-debug.apk).\n\n---\n\n## Releases:\n\n#### Current release: 1.0.2.\n\nYou can see all the library releases [here](https://github.com/marcoscgdev/MaterialToast/releases).\n\n---\n\n## Usage:\n\n### Adding the depencency\n\nAdd this to your root *build.gradle* file:\n\n```\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nNow add the dependency to your app build.gradle file:\n\n```\nimplementation 'com.github.marcoscgdev:MaterialToast:1.0.2'\n```\n\n### Creating a Toast\n\n - Native version\n\n```java\nMaterialToast.makeText(activity, \"Hello, I'm a material toast!\", Toast.LENGTH_SHORT).show();\n```\n\nAlso with custom icon\n\n```java\nMaterialToast.makeText(activity, \"Hello, I'm a material toast!\", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).show();\n```\n\nAnd also with custom background color (text will be automatically colored based on background color)\n\n```java\nMaterialToast.makeText(activity, \"Hello, I'm a material toast!\", R.mipmap.ic_launcher, Toast.LENGTH_SHORT).setBackgroundColor(Color.RED).show();\n```\n\n**NEW!** With custom duration (in millis):\n\n```java\nMaterialToast.makeText(activity, \"Hello, I'm a material toast!\", R.mipmap.ic_launcher, 4000).setBackgroundColor(Color.RED).show();\n```\n\n - Complete version\n \n ```java\nnew MaterialToast(activity)\n        .setMessage(\"Hello, I'm a material toast!\")\n        .setIcon(R.mipmap.ic_launcher)\n        .setDuration(Toast.LENGTH_SHORT)\n        .setBackgroundColor(Color.RED)\n        .show();\n```\n\n---\n\u003eSee the *sample project* to clarify any queries you may have.\n\n---\n\n## License\n\n```\nCopyright 2018 Marcos Calvo García\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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoscgdev%2Fmaterialtoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoscgdev%2Fmaterialtoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoscgdev%2Fmaterialtoast/lists"}