我正在尝试创建带有自定义 View 的自定义通知。我必须将自定义对象的自定义数组设置到 View 中。但RemoteView
不提供getView
功能。所以我问,如何在没有 RemoveView
的情况下使用自定义 View 创建自定义 Android 通知。或者如何从 RemoteView
获取 View
最佳答案
how to create custom android notification with custom view without RemoveView
抱歉,这是不可能的。
Or how to get View from RemoteView
抱歉,这是不可能的。
您需要弄清楚如何将“自定义对象的自定义数组”转换为可以使用 RemoteViews
或通过其中一种扩展通知样式(例如 InboxStyle
)。
关于java - 创建自定义 Android 通知而不使用 RemoteView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29992413/