create Snackbar - Android User Interface

Android examples for User Interface: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();
    }// w  ww . j  a v  a2 s  .c o  m
}

Related Tutorials