show Alert Short via Snackbar - Android User Interface

Android examples for User Interface:Alert Dialog

Description

show Alert Short via Snackbar

Demo Code


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

public class Main{
    public static void showAlertShort(View view, String message) {
        Snackbar.make(view, message, Snackbar.LENGTH_SHORT).show();
    }//from  w ww.  ja v a  2s  . co m
}

Related Tutorials