作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
所以我设置了一个 2 页的 Android 磨损通知(从设备发送):
final NotificationCompat.Builder mainNotificationBuilder = new NotificationCompat.Builder(this)
.setDefaults(android.app.Notification.DEFAULT_ALL)
.setSmallIcon(R.drawable.icon)
.setStyle(bigStyle)
.setContentIntent(contentIntent);
android.app.Notification secondNotification = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.icon)
.setLargeIcon(balanceBackgroundImage)
.setStyle(bigStyle2)
.build();
android.app.Notification twoPageNotif = mainNotificationBuilder
.extend(new NotificationCompat.WearableExtender()
.setContentIcon(R.drawable.icon)
.setBackground(backgroundImage)
.addPage(secondNotification)
)
.setSmallIcon(R.drawable.icon)
.build();
但是,小图标只出现在第一页上,但我希望它出现在两个页面上!
这可能吗?我感觉不是,而且图标只能出现在多页 watch 通知的第一页,但我想得到大家的确认。
提前致谢:\
最佳答案
您的想法是正确的:小图标只出现在通知的首页。
关于具有多个页面的 Android Wear Smartwatch 通知 - 小图标仅显示在第一页上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27049147/
我在 StackOverflow 和其他地方看到了很多与此类似的问题,但没有一个直接解决我的问题。我正在 THREE.js 中使用凸包生成器生成 n 边多面体。我想将方形纹理映射到每个多面体的每个面上
我是一名优秀的程序员,十分优秀!