sp: 一般用来设置字体的大小。设置sp时,如果设置系统的字体为大、小等,应用程序的字体也会跟随系统变化。px: 是绝对像素点。设置大小时5px就是五个像素点的长度。dp: device independent pixels(设备独立像素),一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个...
分类:
移动开发 时间:
2015-09-09 17:10:34
阅读次数:
137
ppi: 像素密度,pixels per inch(1inch=2.54cm),即每英寸屏幕所拥有的像素数。像素密度=√{(长度像素数^2+宽度像素数^2)}/ 屏幕尺寸。 dpi: dots per inch,每英寸点数,指印刷业中的打印精度。在Android官方开发指南中,与ppi含义相同,也表...
分类:
移动开发 时间:
2015-08-26 17:23:11
阅读次数:
253
xcode 6.3 载发生时的应用'Missing recommended icon file - The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png...
分类:
移动开发 时间:
2015-08-18 16:04:30
阅读次数:
140
当我们每天面对缤纷的互联网世界的时候,文字不仅仅传递给我们众多的信息资讯,而且在设计师的手里,文字在网页中的排版承载着一种艺术的直觉。网页中常用的文字大小单位是 px(Pixels),em,现在《CSS Values and Units Module Level 3》中新增了 rem 这个单位。一、...
分类:
其他好文 时间:
2015-08-13 22:04:44
阅读次数:
205
1.单位dp、dip、sp、pt、px、in、mm这里引用StackOverFlow上的一个解答:pxis one pixel.spis scale-independent pixels.dipis Density-independent pixels.(dip == dp is ture)Here...
分类:
移动开发 时间:
2015-08-11 20:53:50
阅读次数:
275
题意:总水量一定,有n个男孩,n个女孩,男孩的水是一样的,女孩的也是一样的,但是男孩的是女孩的两倍,有2*n个杯子,求最多能分给他们的总水量
分析:贪心法。不说了,就是cinTLE了。
代码:
#include
#include
#include
using namespace std;
int n;
double a[200010];
double m;
double ans;
doubl...
分类:
其他好文 时间:
2015-07-27 00:20:31
阅读次数:
157
显示单位px和dip以及sp的区别dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。px: pixels(像素). 不同设备显示效果相同,一般我们HVG...
分类:
移动开发 时间:
2015-07-22 01:31:05
阅读次数:
131
Android中的显示单位px (pixels)像素一般HVGA代表320x480像素,这个用的比较多。 dip或dp (device independent pixels)设备独立像素这个和设备硬件有关,一般为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。sp (scaled pi...
分类:
移动开发 时间:
2015-07-13 20:06:35
阅读次数:
142
DescriptionPasha decided to invite his friends to a tea party. For that occasion, he has a large teapot with the capacity of w milliliters and 2n tea ...
分类:
其他好文 时间:
2015-07-13 15:55:43
阅读次数:
94
转: http://www.cnblogs.com/leehyuan/p/3389527.html 像素单位的变化:是用dip,而不是px,主要用于宽高的设置 在Android中支持的描述大小区域的类型有以下几种。 px(pixels)——像素:不同的设备显示效果相同,一般我们HVGA代表320x4...
分类:
其他好文 时间:
2015-07-11 16:28:45
阅读次数:
124