学习listView的时候,按照例子设定item的布局为系统提供的simple_list_item_single_choice.xml@frameworks/base/core/res/res/layout/ 加上SimpleAdapter,感觉很爽,什么都不用写直接就用了,然后我就自己定义了一个布...
分类:
其他好文 时间:
2015-01-18 22:30:34
阅读次数:
534
近日须要不同的编码,关于上述编码,一直迷迷糊糊,查了些资料,总算大致了解了,以下全是从网上搜来的:1.ASCII和Ansi编码 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte charact...
分类:
其他好文 时间:
2015-01-18 19:39:28
阅读次数:
250
题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
编程语言 时间:
2015-01-18 18:38:24
阅读次数:
275
题目:
Given an array of integers, every element appears three times
except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it with...
分类:
其他好文 时间:
2015-01-18 13:14:19
阅读次数:
196
Spreadsheet Tracking
Data in spreadsheets are stored in cells, which are organized in rows (r) and columns (c). Some operations on spreadsheets can be applied to single cells (r,c), wh...
分类:
其他好文 时间:
2015-01-18 10:35:19
阅读次数:
186
ondition可以实现多路Condition,notify只能通知随机的一个
如:ABC三个线程分别去处理一件事物,规则是A处理完通知B ,B处理完通知C,C通知A;如果使用notrfy无法做法这一点,所以我们可以使用Condition来new出来ABC三个Condition对象,来特定指明哪个对象await哪个对象single;
如:先放鸡蛋、拿鸡蛋、吃鸡蛋
public class...
分类:
其他好文 时间:
2015-01-18 07:07:43
阅读次数:
275
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-01-17 22:12:46
阅读次数:
168
FootballTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 3285Accepted: 1680DescriptionConsider a single-elimination football tournament involv...
分类:
其他好文 时间:
2015-01-17 20:46:43
阅读次数:
225
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2015-01-17 17:43:10
阅读次数:
110
The question:Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a...
分类:
其他好文 时间:
2015-01-17 06:21:17
阅读次数:
125