小吃店从顶部。这可能吗? [英] SnackBar from top. Is this possible?

查看:180
本文介绍了小吃店从顶部。这可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提供,而不是常规的行为,显示小吃店从底部的小吃店从上面的动画, 。这是很容易破解的?

I wanted to provide the SnackBar animation from top, instead of the regular behavior that displays the SnackBar from bottom. Is this easily hackable?

推荐答案

没有是不可能的。该文件指出,

No it is not possible. The documentation states that

它们显示在屏幕上移动的一个简短的消息,   左下方的大型设备。小吃店出现上述所有其他   在屏幕上的元素,只有一个可以一次被显示。

They show a brief message at the bottom of the screen on mobile and lower left on larger devices. Snackbars appear above all other elements on screen and only one can be displayed at a time.

您可以使用第三方库,如 Crouton 例如

You could use a third part library, like Crouton for instance

这篇关于小吃店从顶部。这可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆