Android Wear上的类闲逛列表通知

Android Wear上的类闲逛列表通知,android,android-notifications,wear-os,Android,Android Notifications,Wear Os,Hangout使用特定的通知,在Android Wear上向右滑动时显示消息列表。它在列表视图中显示所有消息 他们是否使用特定的通知样式(如InboxStyle或BigTextStyle)?它可能是一个磨损应用程序吗?(我不这么认为,他们无法通过刷卡访问)他们正在添加通知,允许您为Android Wear设备添加其他内容 链接中的示例代码: // Create builder for the main notification NotificationCompat.Builder notific

Hangout
使用特定的
通知
,在
Android Wear
上向右滑动时显示消息列表。它在
列表视图中显示所有消息

他们是否使用特定的
通知样式
(如
InboxStyle
BigTextStyle
)?它可能是一个
磨损应用程序吗?(我不这么认为,他们无法通过刷卡访问)

他们正在添加通知,允许您为Android Wear设备添加其他内容

链接中的示例代码:

// Create builder for the main notification
NotificationCompat.Builder notificationBuilder =
    new NotificationCompat.Builder(this)
    .setSmallIcon(R.drawable.new_message)
    .setContentTitle("Page 1")
    .setContentText("Short message")
    .setContentIntent(viewPendingIntent);

// Create a big text style for the second page
BigTextStyle secondPageStyle = new NotificationCompat.BigTextStyle();
secondPageStyle.setBigContentTitle("Page 2")
           .bigText("A lot of text...");

// Create second page notification
Notification secondPageNotification =
    new NotificationCompat.Builder(this)
    .setStyle(secondPageStyle)
    .build();

// Add second page with wearable extender and extend the main notification
Notification twoPageNotification =
    new WearableExtender()
            .addPage(secondPageNotification)
            .extend(notificationBuilder)
            .build();

// Issue the notification
notificationManager =
    NotificationManagerCompat.from(this);
notificationManager.notify(notificationId, twoPageNotification);

所以你说他们使用了BigTextStyle,他们在一个字符串中转储整个消息列表,通过html或spans格式化。我需要检查是否有分隔符,但这些可能是用下划线伪造的。对于第二页,是的,只有一个长的BigTextStyle。你知道他们是如何将其滚动到底部的吗?即使有一堆文字在屏幕上page@Leo-你希望@ianhanniballake为你工作,因为它不适合我