如何控制SmartLocks蓝色横幅? [英] How do I control the SmartLocks blue banner?

查看:86
本文介绍了如何控制SmartLocks蓝色横幅?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户启动应用程序时,我可以检索以前存储的凭据。发生这种情况时,将显示蓝色的SmartLock标语。在我使用的应用程序上,它覆盖了FAB,直到蓝色横幅消失后它才可用。有没有办法控制横幅显示的时间长度?此外,是否有一种方法可以让FAB像显示小吃店一样向上移动?

When the user starts the app, I'm able to retrieve a previously stored credential. When this happens, the blue SmartLock banner shows up. On the app I work on, this is covering a FAB making it unusable until the blue banner goes away. Is there a way to control the length of time the banner is shown? Additionally, is there a way to let the FAB move up like it would with a snackbar showing?

最后,如果用户在横幅显示时退出应用程序,将会继续显示在手机主屏幕上,从而禁止使用底部的应用程序栏。有办法防止这种情况吗?

Lastly, if the user exits the app as the banner is showing, it will continue to show on the phone home screen, blocking any use of the bottom app bar. Is there a way to prevent this?

推荐答案

自动登录标语由Play服务显示并绘制在应用程序上。目的是通知用户已保存的凭据已被检索,并避免应用程序无意间不在不适当的时间或地点显示或显示通知。

The auto sign-in banner is shown by Play Services and drawn over the app. The intent is to notify the user that their saved credentials have been retrieved and avoid app inadvertently not displaying or displaying the notification at an incongruous time or place.

现在,在那里没有太大的灵活性,横幅将不会出现在应用程序视图层次结构中,并且可能会覆盖其他元素(例如浮动操作按钮)几秒钟。实际上,我们并没有发现这是个大问题……许多应用程序已将自动登录置于开始状态,并且会在启动屏幕上显示,并且每个设备安装仅显示一次,因为大多数应用程序不需要

Right now, there is not much flexibility about it, the banner won't be in the app view hierarchy and might cover other elements, such as floating action buttons, for a few seconds. In practice, we haven't found this to be much of an issue ... many apps have put the auto sign-in at start and it shows over a splash screen and only once per device install since most apps don't need to sign users out.

但是相当担心的是,如果登录后可能会频繁检索凭据,或者用户可能会立即交互或切换应用程序。请对所有反馈/请求发表评论,例如出现问题的场景,或者关于其他UX或实现的建议,我们将看看是否可以容纳它们。

But fair concerns that if credentials might be retrieved frequently or user may interact or switch apps immediately after signing in. Do comment with any feedback/requests, examples of problematic scenarios, or suggestions of alternative UX or implementation we'll see if we can accommodate them.

这篇关于如何控制SmartLocks蓝色横幅?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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