Snackbar is not dismissing on swipe : <p>i have a snackbar in my appcompat activity. It has a button OK which dismiss the snackbar.It is working perfact. but i can't dismiss the snackbar on swipe(left to right).</p>

<p>Following is my code for snackbar....</p>

<pre><code>final Snackbar snackbar = Snackbar
                                .make(view, "Error Message", Snackbar.LENGTH_INDEFINITE);

                        snackbar.setAction("OK", new View.OnClickListener() {
                                    @Override
                                    public void onClick(View view) {
                                            snackbar.dismiss();
                                    }
                                });

                        snackbar.show();
</code></pre>

<p><strong>Edit 1</strong></p>

<p>I have Relative layout as parent layout in my activity's XML layout.</p>
