- 博客(35)
- 问答 (4)
- 收藏
- 关注
我来说说Android touch 系统的设计哲学
环境设备:nexus4 ,系统:Android4.4.2,源代码:Android api 19, debug工具: android studio.目的分析Android的touch传递机制,为实现各种hack效果(比如继承listview,实现下拉刷新效果)和复杂的交互效果提供理论支撑。研究对象activity 、 viewGroup、view的子类。...
2014-06-09 10:39:25 170
翻译:创造性的视觉
译文地址:http://developer.android.com/design/get-started/creative-vision.html如若翻译不周,望各位看官见谅。 android设计所关注的3个首要目标,适用于我们的核心app,以及系统的大部分。当你要设计android app的时,请考虑以下3个目标。1 令人着迷 美丽不仅仅流于外表。android apps 的...
2013-06-18 00:03:33 130
原创 Problem26
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:1/2 = 0.51/3 = 0.(3)1/4 = 0.251/5 = 0.21/6 = 0.1(6)...
2013-02-06 17:08:05 155
MediaRecorder测量音量大小
[code="java"] MediaRecorder mMediaRecorder;int ratio = mMediaRecorder.getMaxAmplitude() / BASE;int db = 0;// 分贝 也可以理解为定义的音量大小if (ratio > 1)db = (int) (20 * Math.log10(ratio));//db就是我们需要取得的音量...
2012-11-30 17:27:54 525
原创 Problem25
[code="java"]package com.yao.Algorithms;import java.math.BigInteger;/** * * @author shuimuqinghua77 @date 2012-4-26下午02:33:04 * */public class Problem25 {public static void main(S...
2012-04-26 16:33:53 104
原创 Problem24
[code="java"]package com.yao.Algorithms;import java.util.ArrayList;import java.util.List;/** * * @author shuimuqinghua77 @date 2012-4-26下午02:01:16 * */public class Problem24 {/**...
2012-04-26 14:12:00 105
原创 Problem23
[code="java"]A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, w...
2012-03-18 13:29:02 125
原创 Problem22
[code="java"]Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the al...
2012-03-17 23:13:09 123
原创 Problem21
[code="java"]Problem 2105 July 2002Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).If d(a) = b and d(b) = a, where a b, then a and b ar...
2012-03-11 20:44:30 91
原创 转:VIM python 自动补全插件:pydiction
[code="python"]这是一个相当不错的 Python 代码自动完成的脚本。可以实现下面python代码的自动补全:简单python关键词补全python 函数补全带括号python 模块补全python 模块内函数,变量补全from module import sub-module 补全pydiction 插件安装pydiction 1.0 之...
2012-01-15 00:37:20 312
原创 转:linux 文件解压命令
[code="java"]tar命令 tar 可以为文件和目录创建档案。利用tar,用户可以为某一特定文件创建档案(备份文件),也可以在档案中改变文件,或者向档案中加入新的文件。tar最初被用来在磁带上创建档案,现在,用户可以在任何设备上创建档案,如软盘。利用tar命令,可以把一大堆的文件和目录全部打包成一个文件,这对于备份文件或将几个文件组合成为一个文件以便于网络传输是非常有用的。Lin...
2012-01-12 22:32:01 139
原创 转:配置python命令tab键自动补全
1.edit and configure pythonstartup file[code="java"]# python startup fileimport sysimport readlineimport rlcompleterimport atexitimport os# tab completionreadline.parse_and_bind('tab...
2012-01-09 11:33:10 162
原创 Problem20
[code="java"]package com.yao.shuimu.euler;import java.util.ArrayList;import java.util.List;/** * Created by IntelliJ IDEA. * User: shuimuqinghua77 * Date: 11-12-15 * Time: 下午1:25 *...
2011-12-15 14:09:38 103
原创 Problem19
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.Calendar;/** * * @author shuimuqinghua77 @date 2011-12-9上午09:58:49 */public class Problem19 { public static void...
2011-12-09 14:07:29 99
原创 Problem18/Problem67
[code="java"]package com.yao.Algorithms;import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.Reader;/** * * @author shuimuqinghua77 @date 2011-...
2011-12-04 20:20:27 115
原创 Problem16
[code="java"]package com.shui.mu.yao.io.algorithm;/** * * @author shuimuqinghua77 @date 2012-12-02 * */public class Problem16 { public static void main(String[] args) throws Exception...
2011-12-02 15:32:23 113
原创 Problem15
[code="java"]package com.yao.Algorithms;import java.util.HashMap;import java.util.Map;/** * * @author shuimuqinghua77 @date 2011-11-29 * */public class Problem15 { private static ...
2011-11-29 23:28:58 98
原创 Problem14
[code="java"]package com.shui.mu.yao.io.algorithm;public class Problem14 { public static void main(String[] args) { long starttime = System.currentTimeMillis(); int start = 640000;/**10:...
2011-11-29 11:37:20 88
原创 Problem13_1
[code="java"]package yao.taobao.jj;public class Problem13 { public static void main(String[] args) { long start = System.currentTimeMillis(); String str = "37107287533902102798797998220837...
2011-11-21 14:07:43 92
原创 Problem13
[code="java"]package com.yao.Algorithms;import java.util.Arrays;public class Problem13 { public static void main(String[] args) { String str = "37107287533902102798797998220837590246510...
2011-11-19 23:51:28 95
原创 jboss启动2个应用
jboss启用2个应用的话。有页面的应用的war包直接放在deploy目录下,另外一个应用(只提供HSF服务的)在jboss-service.xml指定路径。2个应用的关键日志都打印在只提供HSF服务的那个应用指定的目录里面。...
2011-11-09 14:48:00 261
原创 Problem12
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.List;public class Problem12 { public static void main(String[] args) { long start = Syste...
2011-11-07 20:04:02 101
原创 Problem11
[code="java"]package com.yao.Algorithms;import java.util.ArrayList;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-6 * *//** * In the 2020 grid below, four n...
2011-11-06 19:38:19 71
原创 Problem10
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.Arrays;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-3下午07:44:42 ...
2011-11-03 20:14:36 101
原创 Problem9
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.Arrays;/** * * @author shuimuqinghua77 @date 2011-11-3下午03:31:30 *//** * A Pythagorean triplet is a set of three n...
2011-11-03 16:04:37 72
原创 Problem8
[code="java"]package com.shui.mu.yao.io.algorithm;/** *Find the greatest product of five consecutive digits in the 1000-digit number.73167176531330624919225119674426574742355349194934969...
2011-11-03 12:38:38 146
原创 Problem7
[code="java"]package com.shui.mu.yao.io.algorithm;import java.util.ArrayList;import java.util.Arrays;import java.util.List;/** * * @author shuimuqinghua77 @date 2011-11-3上午10:56:33 ...
2011-11-03 11:25:19 123
原创 继续欧拉
[code="java"]package com.yao.app.euler;public class Euler2 { public static void main(String[] args) { int limit = 4000000; int result = 0; int sum = 0; int n = 1; while (result ...
2011-05-02 10:59:39 68
原创 我解决的第一个projecteuler问题
[code="java"]package com.yao.app;public class Euler1 { public static void main(String[] args) { int len = 1000; int[] arr = new int[len]; int sum = 0; for (int i = 0; i < len; i++) {...
2011-05-02 10:23:12 136
原创 python 错误
问题:提示错误:IDLE's subprocess didn't make connection.Either IDLE can;tstart a subprocess or personal firewall software is blockingthe connectionThat usually means that your firewall is blocking ID...
2010-11-19 17:20:09 303
XML和java
求问XML在java web应用里面的解析效率以及运行过程中的效率,我一直觉得XML效率比较低下(个人鄙见),想在java中彻底抛弃XML,希望各位大牛能够解答
2010-11-12 11:23:34 86
原创 Spring动态调用
package com;public interface IComponent {public void business1() ;public void business2() ;public void business3() ;} package com;public class Component implements IComponent...
2010-09-13 10:31:49 107
原创 java
package spring.chapter2.setDemo;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;public class SpringTest {pub...
2010-09-06 15:04:48 113
原创 主类main方法里面可以有不带public的子类 但是不能有接口
//还可以写在main外面 interface product{ public void getName(); } class productA implements product { @Override public void getName() { // TODO Auto-generated method stub Syste...
2010-09-04 10:07:45 231
原创 tomcat
public class ChatServlet extends HttpServlet implements CometProcessor { protected ArrayList<HttpServletResponse> connections = new ArrayList<HttpServletResponse>();...
2010-07-26 22:36:40 71
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人