通过widget定义,我们在widget列表中看到了我们的TestWidget,当我们拖拽widget到主页时,如果在appwidet-provider中定义了android:configure的java类,在widget实例创建后会马上唤起配置activity。这个activity主要完成两个任务:1、配置初始化数据;2、将配置数据适配到widget实例中。
利用preference中存贮...
分类:
移动开发 时间:
2014-10-27 17:39:39
阅读次数:
243
何为Home Screen Widgets
Home screen Widget即称为小工具或者中文小工具,是显示在主页上的views,通过后台进程更新view的数据。
Android由AppWidgetManager来管理系统的widgets。安装apk后,会根据widget定义在widget列表中显示该Widget的名称、图标以及所占空间,在Android4.0中,以网格方式来显示...
分类:
移动开发 时间:
2014-10-27 17:38:00
阅读次数:
267
window,navigator,screen,history,location;弹出框:仅弹出:alert('string');返回布尔值:confirm('string');返回输入值:prompt('string','default')离开页面:window.onnuload;window.o...
分类:
Web程序 时间:
2014-10-27 09:15:54
阅读次数:
201
// Example 1// Move from center of the screen by [150, 0], and then scale by 2 when moving is done // The difference between MoveTo & MoveBy is the ab...
分类:
其他好文 时间:
2014-10-26 19:43:14
阅读次数:
344
什么是Activity 关键字:应用组件、四大组件、用户界面,交互。An Activity is an application component that provides a screen with which users can interact in order to do somethin...
分类:
移动开发 时间:
2014-10-26 18:16:39
阅读次数:
346
Implementing Navigation with UINavigationControllerProblemYou would like to allow your users to move from one view controller to the other with a smoo...
分类:
其他好文 时间:
2014-10-26 11:29:13
阅读次数:
203
上午的时候在刷Google+,看到了Abraham Williams转发了一篇强文,是Android Developers网站新发的一篇博客—Implementing Material Design in your Android App。觉得很前卫,对于新发布的Android版本号Android ...
分类:
移动开发 时间:
2014-10-25 22:50:11
阅读次数:
344
1. Activities An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the....
分类:
移动开发 时间:
2014-10-23 20:29:38
阅读次数:
316
Osu!
Problem Description
Osu! is a very popular music game. Basically, it is a game about clicking. Some points will appear on the screen at some time, and you have to click them at a correct ...
分类:
其他好文 时间:
2014-10-23 12:38:05
阅读次数:
234
测试android屏幕方向的小Demo1、首先我们在values下面新建文件arrays.xml(用来在下拉列表中显示) UNSPECIFIED LANDSCAPE PORTRAIT USER BEHIND SEN...
分类:
移动开发 时间:
2014-10-22 21:49:55
阅读次数:
254