SnakBarHelper
public class SnakBar {
public static void showsnackbar(Context c,String message, int ID){
try {
Snackbar snackbar = Snackbar
.make(((Activity) c).findViewById(ID), message, Snackbar.LENGTH_SHORT);
View sbView = snackbar.getView();
sbView.setBackgroundColor(c.getResources().getColor(R.color.snakbar));
TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);
textView.setTextColor(Color.WHITE);
snackbar.show();
}catch (NullPointerException e){e.printStackTrace();}
}
}