Creating custom android notification without RemoteView

我怕爱的太早我们不能终老 提交于 2019-12-12 05:39:41

问题


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


回答1:


how to create custom android notification with custom view without RemoveView

That is not possible, sorry.

Or how to get View from RemoteView

That is not possible, sorry.

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).



来源:https://stackoverflow.com/questions/29992413/creating-custom-android-notification-without-remoteview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!