android - 为什么最新的 android Nougat 中的应用程序快捷方式最多为 4?

标签 android android-7.1-nougat app-shortcut android-appshortcut

有人提到应用程序快捷方式总共有 5 个。但在我的模拟器上,它们最多为 4 个。我尝试了静态和动态快捷方式。这是一个已知错误吗?

最佳答案

该框架将应用程序快捷方式的数量限制为五个。但是,呈现这些快捷方式的应用可以为所欲为,包括仅显示这些应用快捷方式的一个子集。

Google 在 the "Best Practices" section 中对此进行了暗示:

Although the API currently supports a combination of up to five static shortcuts and dynamic shortcuts for your app at any given time, it's recommended that you publish only four distinct shortcuts at any time to improve the shortcuts' visual appearance in the launcher.

我对此的解释是“Pixel Launcher 只显示四个”。其他主屏幕或其他应用程序快捷方式客户端可以显示一个、两个、三个、四个或五个您的应用程序快捷方式。

关于android - 为什么最新的 android Nougat 中的应用程序快捷方式最多为 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40720717/

相关文章:

android - 如何在Android中更改开关的文本颜色

java - 替换属性文件上的所有反斜杠

java - 如何在 JNI 中将 char* 转换为 jcharArray

android - 找不到 Android 7.1.1 (Nougat) API 25 ARM 系统镜像

java - 动画按钮背景以反射(reflect)剩余时间?

android - 如何关闭新的 Android 7.1 应用程序快捷方式

android - 获取应用程序提供的AppShortcuts

android.database.sqlite.SQLiteException : no such table: TableName

android - 谷歌广告 ID 在 Nougat 上返回 Null

android - 从 Android 7.1 应用程序快捷方式启动 fragment (而不是 Activity )