一、基本概念 dip ? ? ? ?: Density?independent pixels ,设备无关像素。 dp ? ? ? ?:就是dip px ? ? ? ?: 像素 dpi?? ? ??:dots per inch , 直接来说就是一英寸多少个像素点。常见取值 ...
分类:
其他好文 时间:
2015-11-06 16:33:20
阅读次数:
336
一、基本概念 dip ? ? ? ?: Density?independent pixels ,设备无关像素。 dp ? ? ? ?:就是dip px ? ? ? ?: 像素 dpi ? ? ? :dots per inch , 直接来说就是一英寸多少个像素点。常见取值 12...
分类:
其他好文 时间:
2015-11-06 13:14:25
阅读次数:
280
As it is shown in the fig, we have a graph G(V, E).1. Inpdependent Set: A set of nodes S\( \subset \)V is independent if no pair of nodes from S is co...
分类:
其他好文 时间:
2015-11-03 12:05:15
阅读次数:
144
android开发中用到的px、dp、sp先介绍一下这几个单位:px: pixels(像素),对应屏幕上的实际像素点。dip:device independent pixels,与密度无关的像素,基于屏幕密度的抽象单位。在每英寸160点的显示器上,1dp = 1px ,即1 :1关系。(dp 就是 ...
分类:
移动开发 时间:
2015-10-27 20:17:55
阅读次数:
256
一 基本概念1. dpi (dots per inch)每英寸多少点;ppi( Pixel per inch),每英寸像素数。针对显示器的设计时,dpi=ppi。2.dip (device independent pixels)设备独立像素,不同设备有不同的显示效果,这个和设备硬件有关,不依赖像素。...
分类:
其他好文 时间:
2015-10-26 22:36:21
阅读次数:
269
题目:Maximal SquareGiven a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.样例For example, given...
分类:
其他好文 时间:
2015-10-25 20:40:51
阅读次数:
255
Check whether a given graph is Bipartite or notABipartite Graphis a graph whose vertices can be divided into two independent sets, U and V such that e...
分类:
其他好文 时间:
2015-10-24 11:24:27
阅读次数:
271
在很多情况下当我们在xml中布局的方式并不能满足我们的要求,而这时我们就需要通过在代码中控制控件的布局根据不同的条件来控制布局。首先来了解一下安卓中的一些单位dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持...
分类:
移动开发 时间:
2015-10-23 20:11:00
阅读次数:
198
-fPIC-fPIC 作用于编译阶段,告诉编译器产生与位置无关代码(Position-Independent Code), 则产生的代码中,没有绝对地址,全部使用相对地址,故而代码可以被加载器加载到内存的任意 位置,都可以正确的执行。这正是共享库所要求的,共享库被加载时,在内存的位置不是固定的。.....
分类:
其他好文 时间:
2015-10-23 11:43:48
阅读次数:
96
链接:https://leetcode.com/problems/maximal-rectangle/【描述】Given a 2D binary matrix filled with '0's and '1's, find the largest rectangle containing all o...
分类:
其他好文 时间:
2015-10-20 12:09:18
阅读次数:
242