问题描述
材料设计网站提到一个新的面包般的元素称为小吃吧:http://www.google.com/design/spec/components/snackbars-and-toasts.html
The Material design website mentions a new Toast-like element called a Snackbar: http://www.google.com/design/spec/components/snackbars-and-toasts.html
Android的大号preVIEW SDK文档(抱歉不能链接,因为它是唯一可下载)并没有在班级列表或在面包类文档的修饰任何提及小吃吧的。我失去了一些东西很明显,或者我应该建立自己的Snackbar.java?
The Android L preview SDK documentation (sorry can't link since it's only downloadable) doesn't have any mention of Snackbar in the classes list or as a modifier in the Toast class documentation. Am I missing something obvious or should I build my own Snackbar.java?
推荐答案
更新2015年5月29日:
谷歌发布了设计支持库其中包括一个Snackbar和其他材料设计的部件。
Google released a Design Support Library which includes a Snackbar and other Material Design widgets.
在原来的答复中提到的小吃吧lib应该是去precated。
The Snackbar lib mentioned in the original answer is now deprecated.
原来的答复
我敢肯定,谷歌最终将包括它在未来的SDK,以及一个浮动操作按钮时也是在preVIEW SDK缺少的。
I'm sure Google will eventually include it in a future SDK, along with a Floating Action Button that is also missing in the preview SDK.
由于@friedrich尼采指出,我实现了一个库,包括小吃吧
在你的项目。
As @friedrich nietzche pointed out, I implemented a library to include a Snackbar
in your project.
https://github.com/nispok/snackbar
希望它能帮助!
这篇关于有$ C $下小吃店在Android的L或在我们的预期来实现他们自己呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!