带有默认小部件的定制 Android 主屏幕
我已经自定义了 Android SDK 示例中的主屏幕示例应用程序,现在尝试在其中添加时钟小部件。此主屏幕示例在菜单中没有任何选项来添加小部件。 我的目标只是一个数字时钟,并且是否在主屏幕上。 那么您能建议我如何进行吗?
I have customised the home screen sample application which was there in Android SDK samples, and now trying to add a clock widget there.This home screen sample doesn't have any option in the menus to add widgets.
And my objective is to just a Digital Clock and Whether in the Home screen.
So can you pls suggest me about how to proceed ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用不同的主屏幕作为研究的基础。 Launcher2 主屏幕位于Android 开源项目,并且可能还有开源的第三方主屏幕实现。您将寻找诸如
AppWidgetHost
和AppWidgetHostView
之类的类。Use a different home screen as the basis for your research. The Launcher2 home screen is in the Android open source project, and there may be third-party home screen implementations that are open source as well. You will be looking for classes like
AppWidgetHost
andAppWidgetHostView
.