下面介绍精灵、动画精灵、按钮精灵、文本的常用使用方法
一、精灵相关
1.添加精灵
//创建精灵
Sprite bar_up = new Sprite(400, 0, RegionRes.getRegion(Res.BAR_UP), getVertexBufferObjectManager());
//将精灵添加至BaseEntityGroup或其子类(如:Scene、L...
分类:
其他好文 时间:
2014-10-22 18:27:15
阅读次数:
175
Mac OS X系统图形表示方法
? = shift
? = control
? = option / alt
Home=fn + ?
End=fn + ?
Page Up=fn + ▲
Page Down=fn + ▼
删除后一个字符(普通键盘的Delete)=fn + delete
截图保存整个屏幕到桌面=shift + command + 3
保存整个屏幕到剪...
分类:
系统相关 时间:
2014-10-22 18:17:27
阅读次数:
345
在布局文件里,假设有3层 , 一层是button, textview等常见组件, 二层是嵌套的RelativeLayout, 三层是LinearLayout, 而一个触摸屏幕的事件无非就是ACTION_DOWN, ACTION_MOVE, ACTION_UP. 而手指从按下到松开离开屏幕, 其实事件分发的传递已经经过了这三层. 这里说下它的处理过程, 也算是巩固记忆了.
首先, dis...
分类:
其他好文 时间:
2014-10-22 18:14:12
阅读次数:
215
Abstract
Theexplosive scale of container CPUs needs highly efficient network virtualization
Challenge
Thenumber of container-based CPUs will be 10-100 multiples up over that ofhype...
分类:
Web程序 时间:
2014-10-22 15:55:13
阅读次数:
280
(1)配置clean up,然后执行source -> clean upwindow -> preferences -> java -> code style -> clean up -> code organize -> formatter -> remove trailing whitespac...
分类:
系统相关 时间:
2014-10-22 14:28:56
阅读次数:
392
Follow up for "Find Minimum in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Suppose a sorted array is rotated at some pivot unkno...
分类:
其他好文 时间:
2014-10-22 12:56:43
阅读次数:
223
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?注意,链表循环并不是尾指针和头指针相同,可能是在中间某一段形成一个环路,所以不能只判...
分类:
其他好文 时间:
2014-10-21 22:56:24
阅读次数:
335
Two Sum
Total Accepted:
37848 Total Submissions:
206006
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return ...
分类:
其他好文 时间:
2014-10-21 21:44:10
阅读次数:
267
题意:
已知两堆牌s1和s2的初始状态,其牌数均为c,依次交替叠放组合成一堆牌s12,再将s12的最底下的c块牌归为s1,最顶的c块牌归为s2,依此循环下去。
现在输入s1和s2的初始状态 以及最终状态s12
问s1 s2经过多少次洗牌之后,最终能达到状态s12,若永远不可能相同,则输出"-1"。直接模拟过程即可。
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5968
Accepted: 2802
Descr...
分类:
其他好文 时间:
2014-10-21 21:38:59
阅读次数:
245
This is a list of the instructions that make up theJava bytecode, an abstract machine language that is ultimately executed by theJava virtual machine....
分类:
编程语言 时间:
2014-10-21 21:24:20
阅读次数:
277