{"id":13848853,"url":"https://github.com/johnkil/Android-AppMsg","last_synced_at":"2025-07-12T13:32:57.863Z","repository":{"id":4193685,"uuid":"5312486","full_name":"johnkil/Android-AppMsg","owner":"johnkil","description":"In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773).","archived":false,"fork":false,"pushed_at":"2020-10-02T13:04:20.000Z","size":705,"stargazers_count":1371,"open_issues_count":15,"forks_count":395,"subscribers_count":90,"default_branch":"master","last_synced_at":"2024-11-05T04:02:29.053Z","etag":null,"topics":["android","crouton","snackbar","toast"],"latest_commit_sha":null,"homepage":"http://johnkil.github.com/Android-AppMsg","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/johnkil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-06T09:51:12.000Z","updated_at":"2024-09-19T12:24:32.000Z","dependencies_parsed_at":"2022-09-26T21:41:00.699Z","dependency_job_id":null,"html_url":"https://github.com/johnkil/Android-AppMsg","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-AppMsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-AppMsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-AppMsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnkil%2FAndroid-AppMsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnkil","download_url":"https://codeload.github.com/johnkil/Android-AppMsg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225685050,"owners_count":17507899,"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","crouton","snackbar","toast"],"created_at":"2024-08-04T19:00:59.544Z","updated_at":"2024-11-22T00:31:27.200Z","avatar_url":"https://github.com/johnkil.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"Android AppMsg (Crouton) Library\n================================\n\nImplementation of in-layout notifications. Based on [Toast](http://developer.android.com/reference/android/widget/Toast.html) notifications and article [The making of Prixing #4: in-layout notifications](http://android.cyrilmottier.com/?p=773) by [Cyril Mottier](http://www.cyrilmottier.com/).\n\n\nDescription\n-----------\n\nToast is far from being perfect and I am not entirely satisfied with it. \nToast can be un-accurate in some cases. Indeed, Toast has one major drawback: it completely breaks contexts. \nThis issue can be reproduced effortless. Let’s say a user is currently in an app firing a Toast and wants to switch to another application using the dedicated “multitask” button. \nThe Toast will remain on screen even if the brought-to-front application has nothing do to with the previously shown app as described on the following figure:\n![Example Image][1]\n\nAs you can easily notice, the problem with Toasts is they are persistent. \nOnce a Toast has been fired, it is displayed on top of any screen and remains visible for the duration specified at its creation.\n\nIn order to bypass the Toast persistence problem and ensure information is displayed in the correct context, we decided to create a new notification system: \nActivity-bound notifications. This is what it looks like in the current version of Prixing:\n![Example Image][2]\n\nCrouton overcomes the main issue of having a Toast being shown while the menu is open. \nIt sticks to the current screen sliding with it and leaving the menu completely free of any information that would have not been related to it.\n\n\u003cb\u003eCopyright (C) by Cyril Mottier\u003c/b\u003e\n\nSample\n------\n\nA sample application is available on Google Play:\n\n\u003ca href=\"http://play.google.com/store/apps/details?id=com.devspark.appmsg.sample\"\u003e\n  \u003cimg alt=\"Get it on Google Play\"\n       src=\"http://www.android.com/images/brand/get_it_on_play_logo_small.png\" /\u003e\n\u003c/a\u003e\n\n![Example Image][3]\n\nThe source code is available in this repository.\n\nCompatibility\n-------------\n\nThis library is compatible from API 4 (Android 1.6).\n\nInstallation\n------------\n\nThe sample project requires:\n\n* The library project\n* [ActionBarSherlock](https://github.com/JakeWharton/ActionBarSherlock)\n\nUsage\n-----\n\nAndroid AppMsg is presented as an [Android library project](http://developer.android.com/guide/developing/projects/projects-eclipse.html).\nYou can include this project by [referencing it as a library project](http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject) in Eclipse or ant.\n\nTo display the item you need the following code:\n\n* Show AppMsg:\n\n``` java\nAppMsg.makeText(/*Activity*/, /*CharSequence*/, /*AppMsg.Style*/).show();\n```\n\nGradle\n------\n\nAndroid-AppMsg Library is now pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.\n\n``` xml\ndependencies {\n\timplementation 'com.github.johnkil.android-appmsg:appmsg:1.2.0'\n}\n```\n\nExample Gradle project using Android-AppMsg:\n\n* [Android-AppMsg-Gradle-Sample](https://github.com/johnkil/Android-AppMsg-Gradle-Sample)\n\n\nContribution\n------------\n\nPlease fork [dev](https://github.com/johnkil/Android-AppMsg/tree/dev) repository and contribute back using [pull requests](https://github.com/johnkil/Android-AppMsg/pulls).\n\nContributors are recommended to follow the Android [Code Style Guidelines](http://source.android.com/source/code-style.html).\n\nAny contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.\n\nDeveloped By\n------------\n* Evgeny Shishkin - \u003cjohnkil78@gmail.com\u003e\n\nLicense\n-------\n\n    Copyright 2012 Evgeny Shishkin\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\n[1]: http://cyrilmottier.com/media/2012/07/the-making-of-prixing-4-activity-tied-notifications/toast_user_flow_fail.png\n[2]: http://cyrilmottier.com/media/2012/07/the-making-of-prixing-4-activity-tied-notifications/in_layout_notification.png\n[3]: http://i46.tinypic.com/21kywit.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkil%2FAndroid-AppMsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnkil%2FAndroid-AppMsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnkil%2FAndroid-AppMsg/lists"}