title: How to prevent Snackbar from closing?
body: <p>I'm using a control, called Snackbar, from a 3rd party library - github.com/navasmdc/MaterialDesignLibrary.</p>
  
  <p>The problem is that <strong>it is closing automatically</strong>, like a Toast.</p>
  
  <p><strong>What i am trying to do:</strong> It should stay until i click <code>btn</code></p>
  
  <h2>Code snippet i am using</h2>
  
  <pre><code>new SnackBar(ActSplash.this,
        "Do you want change color of this button to red?",
        "yes", 
         new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ButtonFlat btn = (ButtonFlat) findViewById(R.id.buttonSnackBar);
               //btn.setTextColor(Color.RED);
          }
  }).show();
  </code></pre>
  
  <h2>EDIT:</h2>
  
  <pre><code>new SnackBar(ActSplash.this,
                                  "Do you want change color of this button to red?",
                                  "yes", new View.OnClickListener() {
  
                              @Override
                              public void onClick(View v) {
                                  ButtonFlat btn = (ButtonFlat) findViewById(R.id.buttonSnackBar);
                                  //btn.setTextColor(Color.RED);
                              }
                          }).setIndeterminate(true)
                                  .show();
  </code></pre>
  
  <p><strong><em>This shows a error cannot resolve show()</em></strong></p>
  
  <hr>
  
  <h2>EDIT- FROM - NEW ANDROID DOCS</h2>
  
  <p><strong><em>How to prevent android snackbar from closing</em></strong></p>
  
  <pre><code>Snackbar
                   .make(((ActMedicalRecordDetailNew)getActivity()).getMainContent(), R.string.snackBarNoNetConnectivity, Snackbar.LENGTH_LONG)
                      .setAction(R.string.snackBarTryAgain, new View.OnClickListener() {
                          @Override
                          public void onClick(View view) {
                              Intent intent = getActivity().getIntent();
                              getActivity().finish();
                              startActivity(intent);
                          }
                      })
                      .show();
  </code></pre>