在没有RemoteView的情况下创建自定义android通知 [英] Creating custom android notification without RemoteView
问题描述
我正在尝试使用内部的自定义视图创建自定义通知.我必须将自定义对象的自定义数组设置为视图.但是RemoteView
不提供getView
功能.所以我问,如何在不使用RemoveView
的情况下使用自定义视图创建自定义android通知.或者如何从RemoteView
I am trying to create custom notification with custom view inside. I have to set custom array of custom objects into view. But RemoteView
doesn't provide getView
function. So I am asking, how to create custom android notification with custom view without RemoveView
. Or how to get View
from RemoteView
推荐答案
如何在不使用RemoveView的情况下使用自定义视图创建自定义android通知
how to create custom android notification with custom view without RemoveView
这不可能,抱歉.
或者如何从RemoteView获取视图
Or how to get View from RemoteView
这不可能,抱歉.
您将需要弄清楚如何将自定义对象的自定义数组"转换为可以通过RemoteViews
或通过扩展的通知样式之一(例如,InboxStyle
)实现的东西.
You will need to figure out how to get your "custom array of custom objects" into something that you can implement with RemoteViews
or via one of the extended notification styles (e.g., InboxStyle
).
这篇关于在没有RemoteView的情况下创建自定义android通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!