• Stars
    star
    1,370
  • Rank 33,148 (Top 0.7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773).

Android AppMsg (Crouton) Library

Implementation of in-layout notifications. Based on Toast notifications and article The making of Prixing #4: in-layout notifications by Cyril Mottier.

Description

Toast is far from being perfect and I am not entirely satisfied with it. Toast can be un-accurate in some cases. Indeed, Toast has one major drawback: it completely breaks contexts. This 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. The 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: Example Image

As you can easily notice, the problem with Toasts is they are persistent. Once a Toast has been fired, it is displayed on top of any screen and remains visible for the duration specified at its creation.

In order to bypass the Toast persistence problem and ensure information is displayed in the correct context, we decided to create a new notification system: Activity-bound notifications. This is what it looks like in the current version of Prixing: Example Image

Crouton overcomes the main issue of having a Toast being shown while the menu is open. It 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.

Copyright (C) by Cyril Mottier

Sample

A sample application is available on Google Play:

Get it on Google Play

Example Image

The source code is available in this repository.

Compatibility

This library is compatible from API 4 (Android 1.6).

Installation

The sample project requires:

Usage

Android AppMsg is presented as an Android library project. You can include this project by referencing it as a library project in Eclipse or ant.

To display the item you need the following code:

  • Show AppMsg:
AppMsg.makeText(/*Activity*/, /*CharSequence*/, /*AppMsg.Style*/).show();

Gradle

Android-AppMsg Library is now pushed to Maven Central as a AAR, so you just need to add the following dependency to your build.gradle.

dependencies {
	implementation 'com.github.johnkil.android-appmsg:appmsg:1.2.0'
}

Example Gradle project using Android-AppMsg:

Contribution

Please fork dev repository and contribute back using pull requests.

Contributors are recommended to follow the Android Code Style Guidelines.

Any 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.

Developed By

License

Copyright 2012 Evgeny Shishkin

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

Android-ProgressFragment

Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial data.
Java
808
star
2

Android-RobotoTextView

Implementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts.
Java
778
star
3

SideNavigation

Implementation of "Side Navigation" or "Fly-in app menu" pattern for Android (based on Google+ app)
Java
318
star
4

Android-Icon-Fonts

Material and Holo iconic fonts.
HTML
222
star
5

Print

A lightweight Android library for use iconic fonts.
Java
205
star
6

Android-CollapsibleSearchMenu

Implementation of the SearchView is compatible with Android below 3.0. This library allows developers to easily integrate search menuItem in an Android application.
Java
118
star
7

SpySMS

Interceptor sms for android
Java
80
star
8

MockGPS

The application to emulate the location
Java
16
star
9

Android-AppMsg-Gradle-Sample

The sample project that uses Android-AppMsg via Gradle.
Shell
12
star
10

RecipeBook

Recipe Book for Android
Java
12
star
11

Android-JSONCompare

Comparison of JSON parsers performance on Android
Java
12
star
12

Metro

Modern subway maps of Moscow and Saint Petersburg.
Java
11
star
13

android-without-fragments

Demo for presentation "Life without Fragments" #MBLTdev16
Kotlin
9
star
14

CookApp

Android application of cooking
Java
8
star
15

Android-ProgressFragment-Gradle-Sample

The sample project that uses Android-ProgressFragment via Gradle.
Java
7
star
16

Steganography

Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message, a form of security through obscurity.
Java
6
star
17

DoubleBackExample

Example: double back to exit
Java
4
star
18

GeocoderExample

Example of a geocoder to Android
Java
3
star
19

johnkil

1
star
20

VK-Music-Downloader

The application to download music from the social network Vkontakte.
1
star