SuperToasts

Android library for SuperToasts.

License

License

GroupId

GroupId

com.github.johnpersano
ArtifactId

ArtifactId

parent
Last Version

Last Version

1.3.2
Release Date

Release Date

Type

Type

pom
Description

Description

SuperToasts
Android library for SuperToasts.
Project URL

Project URL

https://github.com/JohnPersano/Supertoasts
Project Organization

Project Organization

John Persano
Source Code Management

Source Code Management

https://github.com/JohnPersano/SuperToasts

Download parent

Filename Size
parent-1.3.2.pom 5 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.johnpersano/parent/ -->
<dependency>
    <groupId>com.github.johnpersano</groupId>
    <artifactId>parent</artifactId>
    <version>1.3.2</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.johnpersano/parent/
implementation 'com.github.johnpersano:parent:1.3.2'
// https://jarcasting.com/artifacts/com.github.johnpersano/parent/
implementation ("com.github.johnpersano:parent:1.3.2")
'com.github.johnpersano:parent:pom:1.3.2'
<dependency org="com.github.johnpersano" name="parent" rev="1.3.2">
  <artifact name="parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.johnpersano', module='parent', version='1.3.2')
)
libraryDependencies += "com.github.johnpersano" % "parent" % "1.3.2"
[com.github.johnpersano/parent "1.3.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • supertoasts
  • demo

SuperToasts Library

Download

The SuperToasts library enhances and builds upon the Android Toast class. This library includes support for context sensitive SuperActivityToasts that can show progress and handle button clicks as well as non-context sensitive SuperToasts which offer many customization options over the standard Android Toast class.

Screenshot

Adding SuperToasts to your project

SuperToasts are now available on Jcenter. Add the following to your module's build.gradle file:

dependencies {
    compile 'com.github.johnpersano:supertoasts:2.0'
}

Using the library

Simple sample:

SuperActivityToast.create(getActivity(), new Style(), Style.TYPE_BUTTON)
    .setButtonText("UNDO")
    .setButtonIconResource(R.drawable.ic_undo)
    .setOnButtonClickListener("good_tag_name", null, onButtonClickListener)
    .setProgressBarColor(Color.WHITE)
    .setText("Email deleted")
    .setDuration(Style.DURATION_LONG)
    .setFrame(Style.FRAME_LOLLIPOP)
    .setColor(PaletteUtils.getSolidColor(PaletteUtils.MATERIAL_PURPLE))
    .setAnimations(Style.ANIMATIONS_POP).show();

Check out the Wiki pages* for more detailed samples.
*Please note that the Wiki pages are still being updated and may not reflect the most recent changes in version 2.0.

Demo Application

A simple demo application is available on Google Play. This demo application does not showcase all of the libraries functions rather it is a short demonstration of major features of the library.

Android app on Google Play

Considerations

Some of the ideas for this library came from the UndoBar Library and the Crouton Library.

Developer

John Persano

License

Copyright 2013-2016 John Persano

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.

Versions

Version
1.3.2
1.2