Android自定义spinner(背景、字体颜色) (2012-07-04 17:04:44)1、准备两张图片,并做好9.png2、在drawable中定义spinner_selector.xml3、style中定义4、调用5、在layout中定义simple_spinner_item.xml6、...
分类:
移动开发 时间:
2014-07-07 10:41:51
阅读次数:
361
题目:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target valu...
分类:
其他好文 时间:
2014-07-06 23:34:53
阅读次数:
273
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:
其他好文 时间:
2014-07-03 22:10:05
阅读次数:
295
NSThread:利用NSThread创建和启用一个线程1.NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];,调用后调用[thread start];2.创建.....
分类:
移动开发 时间:
2014-07-03 19:12:31
阅读次数:
223
基本思路:
方法1.遮罩可直接叠加一层带alpha的纯白、或纯黑View,可直接在ImageView外套一层FrameLayout,其foreground(一般同学可能只知道background,其实framelayout还有foreground)给定一个selector(按下时给0x33000000,即泛黑),到位。
方法2.重写imageView,按下状态改变时invalidate(触发o...
分类:
移动开发 时间:
2014-07-03 18:36:24
阅读次数:
277
Substrings
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You are given a string S which cons...
分类:
其他好文 时间:
2014-07-03 16:52:59
阅读次数:
166
NSThread一.创建和启动线程1.开线程的几种方式1)先创建线程,后启动NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil];[thread start];2)创建...
分类:
移动开发 时间:
2014-07-03 12:58:28
阅读次数:
207
最近在linux上面用mysqldump导出数据,放在windows系统中导入就会出现中文乱码,然后就会导致出现: Unknown MySQL server host和Can't connect to the server的错误。解决mysql导入导出数据乱码问题就是统一导入导出的编码,linux默...
分类:
数据库 时间:
2014-07-02 18:53:23
阅读次数:
225
//单指单击UITapGestureRecognizer *singleFingerOne = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleFingerE...
分类:
其他好文 时间:
2014-07-02 17:44:34
阅读次数:
196
本次任务是要完成嵌入式Linux下对openssl程序的支持。
我的开发环境:ARM9开发板 和 嵌入式Linux操作系统。装有Linux系统(我的是ubuntu9.04)的PC机一台。串口和串口连接线。串口调试软件:minicom。交叉编译工具:arm-unknown-linux-gnu-gcc
下载最新版本的openssl-1.0.0:
http://www.op...
分类:
其他好文 时间:
2014-07-02 16:29:04
阅读次数:
290