有任何AppWidgetHost教程吗? [英] Any AppWidgetHost-tutorials out there?

查看:123
本文介绍了有任何AppWidgetHost教程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,它既应具有将小部件放置在主屏幕上,又可以在应用程序本身中显示这些小部件的能力.我认为最好的方法是通过在应用程序部分使用AppWidgetHost.

I'm writing an application that should both have the ability to place widgets on the home screen, and to show these widgets in the application itself. I figure that the best way to do this is through the use of an AppWidgetHost for the application part.

我一直在寻找,但是我找不到任何有关如何编写AppWidgetHosts的好例子.你们有没有做过并且愿意分享?还是您知道我错过的任何教程?

I've been looking around, but I cannot find any good examples on how to write AppWidgetHosts. Have any of you done this, and are willing to share? Or do you know of any tutorials that I've missed?

推荐答案

不完全是教程,但是这里有一个较旧的论坛

Not exactly a tutorial but here is an older forum post.

该代码是 mylock 项目的一部分,如果您挖.

The code is part of the mylock project, which you also might find useful if you dig.

这篇关于有任何AppWidgetHost教程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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