Skip to content
keyboardsurfer edited this page Apr 28, 2013 · 5 revisions

The API is kept as simple as the Toast API:

Create a Crouton for any CharSequence:

Crouton.makeText(Activity, CharSequence, [Style]).show();

Create a Crouton with a String from your application's resources:

Crouton.makeText(Activity, int, Style).show();

Further you can attach a Crouton to any view like this:

Crouton.makeText(Activity, int, Style, int).show();

If you would like a more graphical introduction to Crouton check out this presentation.

Clone this wiki locally