User Interface for Android Wear Notifications

Hii I want to create a user interface for Android Wear Notification, not an AW app. Please suggest if there are any libraries or anything else for this.

+1
source share
1 answer

It is not yet available, most likely, it will be in the future.

EDIT: The future is now. You can do this by passing your own Activity setDisplayIntent() , a sample code:

 public Notification buildNotification(Context context) { Intent displayIntent = new Intent(context, AnimatedNotificationDisplayActivity.class); displayIntent.putExtra(BasicNotificationDisplayActivity.EXTRA_TITLE, context.getString(nameResId)); PendingIntent displayPendingIntent = PendingIntent.getActivity(context, 0, displayIntent, 0); return buildBasicNotification(context) .extend(new Notification.WearableExtender() .setDisplayIntent(displayPendingIntent)) .build(); } 
+2
source

Source: https://habr.com/ru/post/978672/


All Articles