{"id":15037773,"url":"https://github.com/muddz/styleabletoast","last_synced_at":"2025-05-14T17:05:18.379Z","repository":{"id":57734249,"uuid":"80126792","full_name":"Muddz/StyleableToast","owner":"Muddz","description":"[Moved to MavenCentral] An Android library that takes the standard toast to the next level with many styling options. Works on all Android versions.","archived":false,"fork":false,"pushed_at":"2024-04-03T14:11:33.000Z","size":13068,"stargazers_count":2078,"open_issues_count":3,"forks_count":271,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-05-14T17:04:22.917Z","etag":null,"topics":["android","android-library","java","styleabletoast","toast"],"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/Muddz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-26T15:28:29.000Z","updated_at":"2025-05-09T16:27:53.000Z","dependencies_parsed_at":"2024-08-02T01:19:34.340Z","dependency_job_id":"4dca38cd-b1ca-4fa8-bfe3-040dc164ae7f","html_url":"https://github.com/Muddz/StyleableToast","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muddz%2FStyleableToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muddz%2FStyleableToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muddz%2FStyleableToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muddz%2FStyleableToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muddz","download_url":"https://codeload.github.com/Muddz/StyleableToast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"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-library","java","styleabletoast","toast"],"created_at":"2024-09-24T20:35:38.912Z","updated_at":"2025-05-14T17:05:18.243Z","avatar_url":"https://github.com/Muddz.png","language":"Java","readme":"# StyleableToast\n[![](https://img.shields.io/badge/API-16%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16#l16)\n[![APK](https://img.shields.io/badge/Download-Demo-brightgreen.svg)](https://github.com/Muddz/StyleableToast/raw/master/StyleableToastDemo.apk)\n\nAn Android library that takes the standard toast to the next level with many styling options. Style your toasts either by code or with a style in `styles.xml`.\n## Cases\n\n\u003cimg src=\"https://github.com/Muddz/StyleableToast/blob/master/cases.png\" width=\"75%\"\u003e\n\n\n## Example with a style\n\n1) Define a style in `styles.xml`. All available attributes:\n```xml\n    \u003cstyle name=\"mytoast\"\u003e\n        \u003citem name=\"stTextBold\"\u003etrue\u003c/item\u003e\n        \u003citem name=\"stTextColor\"\u003e#fff\u003c/item\u003e\n        \u003citem name=\"stFont\"\u003e@font/retrofont\u003c/item\u003e\n        \u003citem name=\"stTextSize\"\u003e14sp\u003c/item\u003e\n        \u003citem name=\"stColorBackground\"\u003e#fff\u003c/item\u003e\n        \u003citem name=\"stSolidBackground\"\u003etrue\u003c/item\u003e\n        \u003citem name=\"stStrokeWidth\"\u003e3dp\u003c/item\u003e\n        \u003citem name=\"stStrokeColor\"\u003e#fff\u003c/item\u003e\n        \u003citem name=\"stIconStart\"\u003e@drawable/ic\u003c/item\u003e\n        \u003citem name=\"stIconEnd\"\u003e@drawable/ic\u003c/item\u003e\n        \u003citem name=\"stLength\"\u003eLONG\u003c/item\u003e LONG or SHORT\n        \u003citem name=\"stGravity\"\u003etop\u003c/item\u003e top or center\n        \u003citem name=\"stRadius\"\u003e5dp\u003c/item\u003e\n    \u003c/style\u003e\n\n```\n\n2) Pass your style in the static constructor and call `show();`\n\n```java\n    StyleableToast.makeText(context, \"Hello World!\", Toast.LENGTH_LONG, R.style.mytoast).show();\n```\n\n## Example with builder pattern\n```java\n        new StyleableToast\n                .Builder(context)\n                .text(\"Hello world!\")\n                .textColor(Color.WHITE)\n                .backgroundColor(Color.BLUE)\n                .show();\n```\n\n    \n## Installation\n\nAdd the dependency in your `build.gradle`\n```groovy\ndependencies {\n    implementation 'io.github.muddz:styleabletoast:2.4.0'   \n}\n```\n\n## License\n\n    Copyright 2016 Muddi Walid\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuddz%2Fstyleabletoast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuddz%2Fstyleabletoast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuddz%2Fstyleabletoast/lists"}