sreelallalu
3/8/2017 - 4:35 AM

SnackBar method

 public void showsnackbar(String message){

    Snackbar snackbar = Snackbar
      .make(findViewById(R.id.update_relative(parentlayout id)), message, Snackbar.LENGTH_SHORT);

    View sbView = snackbar.getView();
    sbView.setBackgroundColor(Color.parseColor("#A981CA"));
    TextView textView = (TextView) sbView.findViewById(android.support.design.R.id.snackbar_text);
    textView.setTextColor(Color.BLACK);
    snackbar.show();


  }