show Alert Indefinite via Snackbar - Android User Interface

Android examples for User Interface:Alert Dialog

Description

show Alert Indefinite via Snackbar

Demo Code


import android.support.design.widget.Snackbar;
import android.view.View;

public class Main{
    public static void showAlertIndefinite(View view, String message) {
        Snackbar.make(view, message, Snackbar.LENGTH_INDEFINITE).show();
    }// w w  w . j  av  a  2  s.  c o m
}

Related Tutorials