在没有RemoteView的情况下创建自定义android通知 [英] Creating custom android notification without RemoteView

查看:217
本文介绍了在没有RemoteView的情况下创建自定义android通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用内部的自定义视图创建自定义通知.我必须将自定义对象的自定义数组设置为视图.但是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆