onurkagan/KSnack

Display KSnack bar belwo toolbar

Closed this issue · 4 comments

I've failed to display the snackbar below my toolbar. It instead display's it above the toolbar.

it is normal case. ksnack should always be top on the layout. default z value is 999. if you want to show a view in above of ksnack, you need to make the z value of the view greater than 999. after this process, you should refresh the view. otherwise there is no change in layout.

ViewCompat.setTranslationZ(toolbar, 1000);
toolbar.requestLayout();

Sorry this way is wrong. You can not this with KSnack library.

any alternative ?

any alternative ?

You can create a custom view. I can't develop for it, because it's not expected usage.