The Android Wear UI patterns show the ability to make this notification on Android Wear, however I am not able to find how this is accomplished. I assumed just having one pending intent action.
I.E.: .extend(new NotificationCompat.WearableExtender().addAction(action));
Would achieve this, however I am not able to get this view. Any one know if there is a special flag I need to set for this? Thanks!
WearableExtender.setContentAction states:
Set an action from this notification's actions to be clickable with the content of this notification. This action will no longer display separately from the notification's content.
Use that alongside WearableExtender.setContentIcon to add the action directly to the first page of the notification.
Note: you'll still need to add the action as your code stated, then use the index of that action as the input to setContentAction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With