Lollipop android锁屏小部件

Lollipop android lock screen widget(Lollipop android锁屏小部件)
本文介绍了Lollipop android锁屏小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

棒棒糖中的锁屏小部件是否有任何更改.虽然官方文件明确显示没有变化,但是 http://www.extremetech.com/computing/192112-android-5-0-lollipop-all-details-and-features-of-googles-sweetest-treat-yet 说锁屏幕小部件不见了.

Are there any changes made to lock screen widgets in lollipop. Though official documents explicitly shows no changes but ,http://www.extremetech.com/computing/192112-android-5-0-lollipop-all-details-and-features-of-googles-sweetest-treat-yet says lock screen widgets are gone.

推荐答案

在 Android 5.0 的任何一个 Android Developer Preview 版本中都不存在锁定屏幕小部件,因此它们实际上已经消失了.但是,WIDGET_CATEGORY_KEYGUARD 尚未被弃用.这是否是一个疏忽是任何人的猜测.到目前为止,Android 5.0 版本中似乎没有任何手势、区域或任何其他内容(例如设置"应用中的任何内容)表明支持锁屏小部件.

Lock screen widgets do not exist in either of the Android Developer Preview builds of Android 5.0 so they are effectively gone. However, WIDGET_CATEGORY_KEYGUARD has not yet been deprecated. Whether this is an oversight or not is anyone's guess. There does not appear to be any gesture, area, or anything else (such as anything in the Settings app) in the Android 5.0 builds so far that would indicate support for lock screen widgets.

似乎锁屏小部件的主要情况建议由通知处理,类似于 音乐控件已更改 - 旧的基于 RemoteControlClient 的控件曾与锁定屏幕小部件占据相同位置,但已完全弃用.

It appears the main case for lock screen widgets is suggested to be handled by notifications, similar to how music controls have changed - the old RemoteControlClient based controls used to take up the same place as lock screen widgets but have been completely deprecated.

这篇关于Lollipop android锁屏小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)