Prevent Snackbar from closing on Android

Snackbar is now part of the new Android Support Design library. you can use LENGTH_INDEFINITE as duration if you want to show it indefinitely. . You should drop the third party library you are using for it

Old answer

final SnackBar tmp = new SnackBar(ActSplash.this,
      "Do you want change color of this button to red?",
       new View.OnClickListener() {
          public void onClick(View v) {
              ButtonFlat btn = (ButtonFlat) findViewById(;