如何从左侧进行通知或吐司? [英] How can I make a notification or toast entering from left side?

查看:88
本文介绍了如何从左侧进行通知或吐司?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一些应用程序,在事件发生后从左侧进入通知。在回答检查后,Duolingo有一个相同的解决方案。它是浮动的,因为你可以上下移动它也可以包含按钮。

提前感谢您的答案。



我尝试过的事情:



我做了很多研究但没有成功。

I faced some apps with a notification entering from left side after an event. Duolingo has a same solution after an answer check. It is floating because you can move it up and down and can contains buttons as well.
Thanks for answers in advance.

What I have tried:

I did a lot of research without any success.

推荐答案

也许你正在寻找班级 SnackBar



Snackbar - Android开发人员Doku



这是一个androidhive的how-to文章(抱歉交叉发布到另一个站点,但我没有在CP上找到关于snackbar的文章):小贴士示例



有点像Toast。



干杯
Maybe the class SnackBar is what you are looking for?

Snackbar - Android Developer Doku

Here's a how-to article at androidhive (sorry for cross-posting to another site but I didn't find an article about snackbar here at CP): Snackbar Example

Works a bit like Toast.

Cheers


这篇关于如何从左侧进行通知或吐司?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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