Java Code Examples for de.keyboardsurfer.android.widget.crouton.Crouton#makeText()

The following examples show how to use de.keyboardsurfer.android.widget.crouton.Crouton#makeText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CroutonSampleActivity.java    From android-opensource-library-56 with Apache License 2.0 5 votes vote down vote up
private void doesNotDisapear() {
    final Crouton crouton = Crouton.makeText(this,
            "Hello Crouton!!\nClick here!", ENDLESS);

    crouton.setConfiguration(CONFIGURATION_ENDLESS)
            .setOnClickListener(new OnClickListener() {
                @Override
                public void onClick(View v) {
                    Crouton.hide(crouton);
                }
            }).show();
}
 
Example 2
Source File: Notificator.java    From SmileEssence with MIT License 4 votes vote down vote up
public Crouton makeCrouton() {
    return Crouton.makeText(activity, text, getStyle());
}