使用ImageView时经常会用到scaleType属性,如: scaleType属性的各个值总是记不住之间的区别。今天找点时间总结了一下:scaleType的属性值有:matrix fitXY fitStart fitCenter fitEnd center centerCrop centerI....
分类:
移动开发 时间:
2014-07-16 22:58:00
阅读次数:
248
Hat's TeaTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1139Accepted Submission(s): 238Problem De...
分类:
其他好文 时间:
2014-07-16 20:59:28
阅读次数:
199
利用C语言来解决类似迷宫的问题,下面例子分别用两种方法来解决![Problem]There is a maze as shown in the diagram below. In the maze in the form of a 100*100 matrix, the white backgrou...
分类:
编程语言 时间:
2014-07-13 10:07:16
阅读次数:
285
Sum
Time Limit: 2000/1000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others)
SubmitStatisticNext
Problem
Problem Description
You are given an N*N digit matrix and you can get seve...
分类:
其他好文 时间:
2014-07-12 22:17:10
阅读次数:
236
Sum
Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others)
SubmitStatus
Problem Description
You are given an N*N digit matrix and you can get several horizontal o...
分类:
其他好文 时间:
2014-07-12 21:17:15
阅读次数:
182
J - Sum
Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others)
SubmitStatus
Problem Description
You are given an N*N digit matrix and you can get several horizont...
分类:
其他好文 时间:
2014-07-12 20:26:54
阅读次数:
269
http://poj.org/problem?id=2155MatrixTime Limit:3000MSMemory Limit:65536KTotal Submissions:17721Accepted:6653DescriptionGiven an N*N matrix A, whose el...
分类:
其他好文 时间:
2014-07-12 15:09:54
阅读次数:
201
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1053讲解: 题意:给定一个字符串,根据哈夫曼编码求出最短长度,并求出比值。 思路:就是哈夫曼编码。把单个字符出现次数作为权值。AC代码: 1 #include 2 #include 3 #inc...
分类:
其他好文 时间:
2014-07-11 21:19:50
阅读次数:
277
图片放大的思路: 第一、可以通过Matrix对象来变换图像,在选择的时候放大,在失去焦点的时候,缩小到原来的大小。double scale = 1.2;int width = bm.getWidth();int height = bm.getHeight();Log.i("size:", wi...
分类:
移动开发 时间:
2014-07-09 16:35:13
阅读次数:
234
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th...
分类:
其他好文 时间:
2014-07-08 22:06:25
阅读次数:
222