gpt4 book ai didi

用于扩展通知的 Android Remoteviews

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:21:19 25 4
gpt4 key购买 nike

Jelly Bean 中引入的扩展通知允许添加操作。这些操作显示为一行中的按钮。如果我想用我自己的自定义 View 修改它,我会考虑远程 View 。

扩展通知是否允许远程查看?在扩展通知存在之前,我只能找到在简单通知中使用远程 View 的示例。

最佳答案

看起来 http://codeversed.com/expandable-notifications-android/答案在最后的自定义 View 中。

So what if the rich notification styles don’t provide you with the layout you need? Easy, just create your own layout and pass it to the builder. One little fact to retain is that notifications use remote views, which means you need to create a layout using a RemoteView. Below is exactly how you would need to create this custom RemoteView.

notification.bigContentView = expandedView;

关于用于扩展通知的 Android Remoteviews,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21172118/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com