android触碰消息传递机制
用户的每次触碰(onClick,onLongClick,onScroll,etc.)都是由一个ACTION_DOWN+n个ACTION_MOVE+1个ACTION_UP组成的,用户触碰必先有个ACTION_DOWN响应,用户触碰结束必然会有个ACTION_UP。(当然如果在途中被拦截,就可能不会有了!)那么View是如何分发消息和拦截消息呢?
1...
分类:
移动开发 时间:
2014-10-09 16:03:28
阅读次数:
334
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
其他好文 时间:
2014-10-06 22:05:10
阅读次数:
287
Code Path:
https://github.com/bluesilence/Lisp/blob/master/clojure/projects/room-escape/src/room_escape/script.clj
Extract Story to TXT
In order to move the story from .clj into .txt, I lever...
分类:
Web程序 时间:
2014-10-05 17:36:38
阅读次数:
214
题目链接:HDU 2414 Chessboard Dance
题意:给出一张图,>,
强行模拟一遍,注意下面给出的案例。
>t.p.p.p
...a....
........
...bfg.y
...c...
...d....
...e....
........
move 3
turn right
move 3
turn left
move 3
turn left
move 3
#
...
分类:
其他好文 时间:
2014-10-04 11:46:06
阅读次数:
224
这篇文章里要介绍的是非常精彩的 Aztec 钻石模型。我觉得这是一个可以进入 "数学天书" 的问题,它的表述简单而初等,但是却与计数组合学中许多最深刻美妙的问题有着千丝万缕的联系,当然它还有一个令人拍案叫绝的解法。所有这些不能不让我把它写出来和大家分享。那么什么是 Aztec 钻石模型呢?很简单:依...
分类:
其他好文 时间:
2014-10-03 01:52:43
阅读次数:
358
第一题:题目大意:50*50的格子里玩贪吃蛇。给出N步扭头的操作,判断贪吃蛇会在第几步挂掉。(蛇初始向东)解题过程:1.一开始的方法是:为了加快速度,只保存头和尾的坐标,然后保存尾巴的方向,每次move先头运动,然后尾巴按照之前的方向运动直到需要改变方向(继续按之前的方向运动将撞到墙壁或者走到一个m...
分类:
其他好文 时间:
2014-10-02 00:52:12
阅读次数:
388
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-10-01 19:09:51
阅读次数:
144
一、使用ALTERTABLESPACE来移动数据文件移动数据文件在调整表空间大小时有可能会用到,使用的是ALTERTABLESPACE命令。但是要注意的是,在进行此项操作之前,首先应将tablespace设为offline,第二,需要确定目标数据文件是存在的。======查询当前表空间信息=======SQL>select..
分类:
移动开发 时间:
2014-10-01 09:27:04
阅读次数:
376
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and o...
分类:
其他好文 时间:
2014-09-30 18:43:59
阅读次数:
154
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-09-29 22:48:21
阅读次数:
163