Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户在 Android Wear 中滑动到通知的下一页时,我需要实现一个活动来显示一些项目列表。这怎么可能?
现在我们可以在添加的通知页面上添加按钮。请帮助我。
您需要调用setDisplayIntent,提供PendingIntent您要启动的 Activity 到WearableExtender. 例如
setDisplayIntent
PendingIntent
WearableExtender
wearableExtender.setDisplayIntent(activityPendingIntent); wearableExtender.setCustomSizePreset(Notification.WearableExtender.SIZE_FULL_SCREEN);
需要第二行来全屏显示 Activity