微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

小部件显示图标

如何解决小部件显示图标

从android文档中,在小部件上,我可以使用以下信息获取信息图标:

appwidgetproviderInfo.icon

在文档中写为:

/**
     * The icon to display for this AppWidget in the AppWidget picker. If not supplied in the
     * xml,the application icon will be used.
     *
     * <p>This field corresponds to the <code>android:icon</code> attribute in
     * the <code>&lt;receiver&gt;</code> element in the AndroidManifest.xml file.
     */

但实际上,如何在我的应用程序中显示它(它是另一个应用程序中的小部件图标)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。