在Android中,用string-array是一种简单的提取XML资源文件数据的方法。例子如下:把相应的数据放到values文件夹的arrays.xml文件里厦门市福州市泉州市漳州市龙岩市 然后在Activity里,直接使用Resources res =getResources();String... Read More
posted @ 2014-10-14 14:10
kobe8
Views(427)
Comments(0)
Diggs(0)
Bitmap convert(Bitmap a, int width, int height){int w = a.getWidth();int h = a.getHeight();Bitmap newb = Bitmap.createBitmap(ww, wh, Config.ARGB_8888)... Read More
posted @ 2014-10-14 14:09
kobe8
Views(2116)
Comments(0)
Diggs(0)
转至 (http://blog.csdn.net/yanzi1225627/article/details/17652643)经常听人问Camera开发中,各种变形问题,今天有空就在此梳理总结下。三个尺寸:1、Surfaceview的尺寸Surfaceview是用来预览Camera的,当它全屏时就是... Read More
posted @ 2014-10-14 14:05
kobe8
Views(6287)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号