一、新建项目 二、下载Picasso的jar包:http://square.github.io/picasso/ 将jar包导入工程 三、注册清单中配置权限 <uses-permission android:name="android.permission.INTERNET" /> <uses-pe ...
分类:
其他好文 时间:
2017-02-10 12:54:54
阅读次数:
542
Buffalo Bill wishes to cross a 1000x1000 square field. A number of snakes are on the field at various positions, and each snake can strike a particula ...
分类:
其他好文 时间:
2017-02-07 15:14:28
阅读次数:
180
procedure TForm1.Button1Click(Sender: TObject); var lb : TLogBrush; begin lb.lbStyle := BS_SOLID; lb.lbColor := RGB(255, 0, 0); lb.lbHatch := 0; Form1... ...
分类:
其他好文 时间:
2017-02-07 15:03:04
阅读次数:
182
Retrofit是Square公司开发的一款针对Android网络请求的一个当前很流行的网络请求库。 http://square.github.io/retrofit/ https://github.com/square/retrofit 使用需引入: Retrofit包含了多种网络请求方式,可根据 ...
分类:
移动开发 时间:
2017-02-05 18:08:13
阅读次数:
322
实现的业务逻辑是这样的:通过http请求,返回一个json格式的数据,然后将json数据转化为java对象返回给调用方。Http采用OkHttp库,json转化采用jackson库。一.简介1)okhttpclientOkHttpClient官网: http://square.github.io/o ...
分类:
编程语言 时间:
2017-02-05 13:03:25
阅读次数:
744
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3, You should return the followi ...
分类:
其他好文 时间:
2017-02-04 10:43:28
阅读次数:
158
Problem DescriptionYou may not know this but it's a fact that Xinghai Square is Asia's largest city square. It is located in Dalian and, of course, a ...
分类:
其他好文 时间:
2017-02-03 20:48:18
阅读次数:
274
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following ma ...
分类:
其他好文 时间:
2017-02-03 10:50:18
阅读次数:
149
Area Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 19642 Accepted: 5376 Description You are going to compute the area of a special kind o ...
分类:
其他好文 时间:
2017-01-28 12:58:29
阅读次数:
229
Implement int sqrt(int x). Compute and return the square root of x. 小小的一道题竟然做了半天。。。= = 乘法啊加法啊reverse这些一定要考虑到越界的问题。 另外可以使用start + 1 < end的条件,这个时候一般跳出循环 ...
分类:
其他好文 时间:
2017-01-27 07:20:37
阅读次数:
150