开发者

Android home screen widget documentation

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

I just found these links:

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


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

  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. EDIT: 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)


Here is a nice example:

http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/

You can read the excelent Mark Murph's 'The Busy Coder's Guide to Android Development' Book

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜