Snackbar coming below the software buttons in Marshmallow -


my snackbar coming below software buttons in marshmallow:

screenshot

i have tried changing view, not helping.

usually snackbar requires coordinaterlayout or window decor's content considered parent layout snackbar. previously, not getting parent layout directly considered windowmanager layout parent layout. using coordinaterlayout parent layout it, solved problem.

the sample code coordinaterlayout follows:

<android.support.design.widget.coordinatorlayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:nimbuzz="http://schemas.android.com/apk/res-auto"     android:layout_height="match_parent"     android:layout_width="match_parent"> </android.support.design.widget.coordinatorlayout> 

Comments