为了弄清楚onSaveInstanceState()方法和onRestoreInstanceState()方法,我翻译一下谷歌的API,翻译如下: There are a few scenarios in which your activity is destroyed due to normal ...
众所周知,在Android开发里,为了优化在各种分辨率设备上的显示效果,同一份图片素材往往要提供mdpi、hdpi、xhdpi三种(以前还有ldpi), 尤其是按钮类的素材,考虑到normal、pressed、focused更是需要至少3×3=9张图片。NinePatch技术虽然可以解决一部分尺寸灵 ...
分类:
移动开发 时间:
2016-05-11 11:08:33
阅读次数:
264
字体属性:(font) 大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD 样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常) 行高 {line-heigh ...
分类:
Web程序 时间:
2016-05-10 02:16:04
阅读次数:
183
w11d1 It's normal for us to consider things happened around us as a unbelieveble, must-be-kidding thing. For example, we could believe our classmates ...
分类:
其他好文 时间:
2016-05-09 14:22:35
阅读次数:
129
字体属性:(font) 大小 {font-size: x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD 样式 {font-style: oblique;}(偏斜体) italic;(斜体) normal;(正常) 行高 {line-heigh ...
分类:
Web程序 时间:
2016-05-08 11:51:21
阅读次数:
199
概述 对于块级元素,CSS属性line-height指定了元素内部line-boxes的最小高度。 对于非替代行内元素,line-height用于计算line box的高度。 对于替代行内元素,如button 或其他input元素,line-height没有影响 取值 normal 取决于用户代理。 ...
分类:
其他好文 时间:
2016-05-07 23:53:09
阅读次数:
494
PictureBoxSizeMode.Normal: 默认情况下,在 Normal 模式中,Image 置于 PictureBox 的左上角,凡是因过大而不适合 PictureBox 的任何图像部分都将被剪裁掉。 PictureBoxSizeMode.StretchImage: 使用 Stretch ...
本文主要讨论将线扩展成2d线面的算法
将p0p1这条直线 扩展成面 很简单
Vec2f line = p1 - p0
Vec2f normal = Vec2f( -line.y, line.x).normalized().
Vec2f a = p0 - thickness * normal;
Vec2f b = p0 + thickness * norm...
分类:
其他好文 时间:
2016-05-07 11:19:24
阅读次数:
257
ajax请求(asynchronized)与普通请求(synchronized)的报文头(Header)不同:StringreqType=request.getHeader("X-Requested-With");
if(null==reqType){//normalrequest}
elseif(reqType.equals("XMLHttpRequest")){//ajaxrequest}1、requestheadersAccept:text/html,application/..
分类:
Web程序 时间:
2016-05-06 19:54:50
阅读次数:
296
STATISTICS DISTRIBUTION OF NORMAL POPULATION
Ethan
IN LOVING MEMORY OF MAMBA DAY 4.13, 2016
In probability and statistics, a statistic is a function of samples. Theoretically, it is also a random v...
分类:
其他好文 时间:
2016-05-06 15:21:37
阅读次数:
208