Display KSnack bar belwo toolbar
Closed this issue · 4 comments
nelson1995 commented
I've failed to display the snackbar below my toolbar. It instead display's it above the toolbar.
onurkagan commented
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();
onurkagan commented
Sorry this way is wrong. You can not this with KSnack library.
aldefy commented
any alternative ?
onurkagan commented
any alternative ?
You can create a custom view. I can't develop for it, because it's not expected usage.