通过widget定义,我们在widget列表中看到了我们的TestWidget,当我们拖拽widget到主页时,如果在appwidet-provider中定义了android:configure的java类,在widget实例创建后会马上唤起配置activity。这个activity主要完成两个任务:1、配置初始化数据;2、将配置数据适配到widget实例中。
利用preference中存贮...
分类:
移动开发 时间:
2014-10-27 17:39:39
阅读次数:
243
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
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
function wm(){ window.open("打开文件位置/打开文件") .close(); .moveTo(10,0); .resizeBy(10,5);/一依次调整当前窗口的尺寸/ .resizeTo();/移至/ alert("高"+window.screen.avail...
分类:
编程语言 时间:
2014-10-22 20:17:12
阅读次数:
317
诸如智能手机和平板电脑一类的移动设备通常会有一个电容式触摸屏(capacitive touch-sensitive screen),以捕捉用户的手指所做的交互。随着移动网络的发展,其能够支持越来越复杂的应用,web开 发者需要一种方法来处理这些事件。例如,几乎所 有的快节奏游戏都需要玩家一次按下多个...
分类:
移动开发 时间:
2014-10-22 18:03:50
阅读次数:
284
把下面的内容保存成darkslategrey.vim,放入~/.vim/colors目录即可。" Vim color file" Maintainer: jiqing()" Create: 2011-04-11" Last Change: 2011-04-11" cool help screen.....
分类:
系统相关 时间:
2014-10-22 17:32:19
阅读次数:
350