public void getPixels(int[] pixels, int offset, int stride,int x, int y, int width, int height)获取原Bitmap的像素值存储到pixels数组中。参数:pixels 接收位图颜色值的数组offset 写入...
分类:
其他好文 时间:
2015-06-28 17:08:04
阅读次数:
135
@dimen/activity_vertical_margin 是什么意思?@dimen/activity_vertical_margin这个的意思就是在你的values文件夹下面的dimens文件里面有一个name叫做activity_vertical_margin的项,这个项里面值就是你and....
分类:
移动开发 时间:
2015-06-23 21:27:26
阅读次数:
400
一:供layout使用的全局变量 注意,这里也可以作为多语言版本的方案。在values目录下创建文件,如: 相应的,比如Dimens, 比如,strings, 然后,使用的地方有:
分类:
移动开发 时间:
2015-06-16 18:21:58
阅读次数:
131
提交app的时候总是报出icon的错误iPad:Icon.png: icon dimensions (0 x 0) don’t meet the size requirements. The icon file must be 72×72 pixels起初以为图片坏了, 后来才发现好像是 10.7....
分类:
移动开发 时间:
2015-06-12 11:35:18
阅读次数:
161
让应用自动适配多个分辨率的屏幕,是每个android程序员的基本功,就好像前端工程师熟练编写CSS Hack一样。适配工作中一个重要的工作就是对页面的调整。 对于页面的适配,有很多的方法和技巧。比如布局中尽量使用wrapcontent ,fillparent,尽量避免具体的数字,由系统来计算合适的....
分类:
其他好文 时间:
2015-06-12 11:19:01
阅读次数:
115
Here are some definitions: A Surface is an object holding pixels that are being composited to the screen. Every window you see on the screen (a dialog, your full-screen activity, the status bar) ha...
分类:
其他好文 时间:
2015-06-09 20:15:33
阅读次数:
110
1. dip: device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和QVGA 推荐使用这 这个,不依赖像素。 这里要特别注意dip与屏幕密度有关,而屏幕密度又与具体的硬件有关,硬件设置不正确,有可能导...
分类:
移动开发 时间:
2015-06-09 11:45:26
阅读次数:
172
framespacing="0" 表示框架与框架间保留的空白的距离 frameborder -- 设定框架的边框,取值为(1|0),缺省值为1 1 -- 在每个页面之间都显示边框 0 -- 不显示边框 border="0" 设定框架的边框厚度,以 pixels 为单位。borde...
分类:
其他好文 时间:
2015-06-08 09:33:44
阅读次数:
156
Android中的单位:
1,px 像素(pixels)
2,dp或dip 设备独立像素(device independent pixels)
说明:dp和像素的密度比值有关:dp * 密度比值 = px ,故具有自动适应屏幕的效果
3,sp 比例像素(scaled pixels — best for text size)
说明:用于处理字体的大小,可以根据用户系统的字体自动适应...
分类:
移动开发 时间:
2015-06-07 12:35:13
阅读次数:
175
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 format'。
在plist文件中 icon files添加
解决方案 :
...
分类:
移动开发 时间:
2015-06-02 17:48:52
阅读次数:
144