Android主屏幕小部件文档 [英] Android home screen widget documentation

查看:124
本文介绍了Android主屏幕小部件文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道任何书籍,文章,例子,截屏该文件如何开发在Android的主屏幕小工具?

Do you know any books, articles, examples, screencasts that document how to develop an home screen widget on Android?

我发现这些链接:

我想开发一个很小的主屏幕字幕和我在寻找正确的方法code吧。

I would like to develop a tiny home screen ticker and I'm searching for the proper way to code it.

推荐答案

有很多的例子,如果你谷歌Android的Widget教程。二,我发现有用的是:

There are plenty of examples if you google for "android widget tutorial". Two I found useful were:

  1. HelloWidget的从TheSmilingBlog。基本教程,有两个按钮显示一个空框。
  2. <一个href="http://www.developer.com/ws/article.php/3833306/Creating-a-Home-Screen-App-Widget-on-Android.htm">Creating主屏幕小部件从developer.com。一个更复杂的例子,它显示其集合随机选择的一个形象,如何配置刷新时间以及在部件的按钮的说明。 编辑:原来对插件的按钮其实是在续集该教程,可以找到<一href="http://www.developer.com/ws/article.php/3837531/Handling-User-Interaction-with-Android-App-Widgets.htm">here.
  3. (我假定你也读过关于 Android开发者网站正式教程)
  1. HelloWidget from the TheSmilingBlog. Basic tutorial to display an empty box with two buttons.
  2. Creating a Home Screen Widget from developer.com. A more complicated example where it displays an image selected randomly from its collection, with instructions on how to configure the refresh-time as well as buttons on the widget. Turns out the buttons on the widget are actually in the sequel to that tutorial, and can be found here.
  3. (I assume you've also read the official tutorial on the Android Developer website)

这篇关于Android主屏幕小部件文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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