How to dismiss Snackbar when user does any action?
<p>I can show snackbar like this.</p>

<pre><code>Snackbar snackbar = Snackbar.make(this.findViewById(android.R.id.content), "snackbar", Snackbar.LENGTH_INDEFINITE)
        .setAction("action", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // ...
            }
        });
snackbar.show();
</code></pre>

<p>My snackbar has indefinite length and I want it. But When user does any action, such as scrolling screen or touching screen/view, I want to dismiss snackbar. I can find some library and codes but they are so complicate. Is there not easy way to dismiss snackbar?</p>