create Snackbar - Android android.app

Android examples for android.app:Snackbar

Description

create Snackbar

Demo Code

import android.content.Context;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.widget.Toast;

public class Main{

    public static void createSnackbar(View v, String text) {
        Snackbar.make(v, text, Snackbar.LENGTH_LONG).show();
    }/*from  w w w.j av  a 2  s.  c  om*/

}

Related Tutorials