{"id":13848523,"url":"https://github.com/MrEngineer13/SnackBar","last_synced_at":"2025-07-12T13:31:19.445Z","repository":{"id":19905034,"uuid":"23170371","full_name":"MrEngineer13/SnackBar","owner":"MrEngineer13","description":"toast-like alert pattern for Android inspired by the Google Material Design Spec","archived":false,"fork":false,"pushed_at":"2020-10-15T04:40:58.000Z","size":478,"stargazers_count":1222,"open_issues_count":13,"forks_count":174,"subscribers_count":59,"default_branch":"master","last_synced_at":"2024-08-05T19:35:40.954Z","etag":null,"topics":["hacktoberfest","hacktoberfest2020"],"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/MrEngineer13.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":"2014-08-21T01:46:44.000Z","updated_at":"2024-08-02T07:40:24.000Z","dependencies_parsed_at":"2022-08-21T15:40:57.035Z","dependency_job_id":null,"html_url":"https://github.com/MrEngineer13/SnackBar","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/MrEngineer13%2FSnackBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrEngineer13%2FSnackBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrEngineer13%2FSnackBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrEngineer13%2FSnackBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrEngineer13","download_url":"https://codeload.github.com/MrEngineer13/SnackBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225825266,"owners_count":17529905,"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":["hacktoberfest","hacktoberfest2020"],"created_at":"2024-08-04T19:00:51.301Z","updated_at":"2024-11-22T00:30:34.263Z","avatar_url":"https://github.com/MrEngineer13.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# SnackBar; toast-like alert pattern for Android inspired by the [Google Material Design Spec](http://www.google.com/design/spec/components/snackbars-and-toasts.html)\n\n[![SnackBar on Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SnackBar-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/869)\n\n![Mr.Waffle](https://cloud.githubusercontent.com/assets/1573624/4054112/5f907220-2d88-11e4-9624-dd08fa49ac78.png)\n\n# Deprecated\n\nThis library is deprecated in favor of the new [Design Support Library](http://developer.android.com/tools/support-library/features.html#design) which includes a [Snackbar](http://developer.android.com/reference/android/support/design/widget/Snackbar.html). It is due to this development that this library is no longer activly being developed.\n\n# Features\n\n* Set message text and optionally duration\n* Shows only one message at a time\n* Can have action item (e.g. undo, refresh, etc.)\n* Set text color of action items\n* Swipe down to dismiss all notifications as per documentation\n* Backwards compatible to 2.3.x\n\n#### New Features since 1.0.0\n* Set custom background color\n* Set custom height\n* Set custom typeface\n\n![SnackBar Screenshot via Google](http://material-design.storage.googleapis.com/images/components-toasts-specs-spec_toast_03_1_large_mdpi.png)\n\n\n[![SnackBar on Google Play](http://developer.android.com/images/brand/en_generic_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=com.mrengineer13.snackbar.sample)\n\n# Usage\n1. Add SnackBar to your project\n###Maven\nJust add the following to your `build.gradle`.\n\n    dependencies {\n        compile 'com.github.mrengineer13:snackbar:1.2.0'\n    }\n\n2. Show a message\n\n#### Build SnackBar in Activity\n    new SnackBar.Builder(this)\n        .withOnClickListener(this)\n        .withMessage(\"This library is awesome!\") // OR\n        .withMessageId(messageId)\n        .withTypeFace(myAwesomeTypeFace)\n\n        .withActionMessage(\"Action\") // OR\n        .withActionMessageId(actionMsgId)\n\n        .withTextColorId(textColorId)\n        .withBackGroundColorId(bgColorId)\n        .withVisibilityChangeListener(this)\n        .withStyle(style)\n        .withDuration(duration)\n        .show();\n\n#### Build SnackBar in Fragment\n    new SnackBar.Builder(getActivity().getApplicationContext(), root)\n        .withOnClickListener(this)\n        .withMessage(\"This library is awesome!\") // OR\n        .withMessageId(messageId)\n        .withTypeFace(myAwesomeTypeFace)\n\n        .withActionMessage(\"Action\") // OR\n        .withActionMessageId(actionMsgId)\n\n        .withTextColorId(textColorId)\n        .withBackGroundColorId(bgColorId)\n        .withVisibilityChangeListener(this)\n        .withStyle(style)\n        .withDuration(duration)\n        .show();\n\n## Using this library?\n\nIf you're using this library in one of your projects just [send me a tweet](https://twitter.com/MrEngineer13) and I'll add your project to the list.\n\nIcon | Application\n------------ | -------------\n\u003cimg src=\"https://lh4.ggpht.com/uADrrF0FMReNrt7ap_cI-057Zmsl6awZWhpjA0Eupe-HGou1-FFb1ECeta3ED4N1Mos=w300-rw\" width=\"48\" height=\"48\" /\u003e | [Plume]\n\u003cimg src=\"https://lh6.ggpht.com/pTT1RebLeNJMH7pm9XgQtDWpm0azxOJ7dFYkZqAMT-QE1oi2OGor3qI1ZgiJze4uYvo=w300-rw\" width=\"48\" height=\"48\" /\u003e | [Score It]\n\u003cimg src=\"https://lh5.ggpht.com/_r-p6eZOnWIPpu5B-jNHWeHBhT-2UC_OZxRFE-BapvdJLIBA2qrrSrOLm15SZsAC1X0=w300-rw\" width=\"48\" height=\"48\" /\u003e | [Lotería Navidad 2014]\n\u003cimg src=\"https://lh3.ggpht.com/Mz6YqxKsLfVbjYVHj_3nfUxLe5Yvl9W4KO2sKnwud6hZl5mnGitm55PnILT2jx4Hafv6=w300-rw\" width=\"48\" height=\"48\" /\u003e | [Journal]\n\u003cimg src=\"https://lh4.ggpht.com/DvzthG-_lJsR7Ny8in8KPtEuNAgzzJSdlvUg2EG8qvXH0Oq5YJFQffWjFNKblx2GVAA=w300\" width=\"48\" height=\"48\" /\u003e | [My Garage]\n\u003cimg src=\"https://lh6.ggpht.com/hdfIOAe9xYS3NzgTx1_3IfVwCP8UCyxDpXHxbviVMPg3iCEkrZudFZ4iuYQNvOp-aKI=w300\" width=\"48\" height=\"48\" /\u003e | [QuoteMe]\n\n# Contribution\n## Pull requests are welcome!\n\nFeel free to contribute to SnackBar.\n\nJust create your branch then submit pull request on the dev branch.\n\nIf you have a bug to report a feature to request or have other questions, [file an issue](https://github.com/MrEngineer13/SnackBar/issues/new). I'll try to answer as soon as I can.\n\n[Plume]:https://play.google.com/store/apps/details?id=com.levelup.touiteur\n[Score It]:https://play.google.com/store/apps/details?id=com.sbgapps.scoreit\n[Lotería Navidad 2014]:https://play.google.com/store/apps/details?id=com.moya.garcia.loterianavidad\u0026hl=es\n[Journal]:https://play.google.com/store/apps/details?id=com.journey.app\n[My Garage]:https://play.google.com/store/apps/details?id=com.moremu.mygarage\n[QuoteMe]:https://play.google.com/store/apps/details?id=com.wching.quoteme\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrEngineer13%2FSnackBar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMrEngineer13%2FSnackBar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrEngineer13%2FSnackBar/lists"}