摘要: 1、有效的处理较大的位图 图像有各种不同的形状和大小。在许多情况下,它们往往比一个典型应用程序的用户界面(UI)所需要的资源更大。 读取一个位图的尺寸和类型: 为了从多种资源来创建一个位图,BitmapFactory类提供了几个解码的方法(decodeByteArray(),decodeFile() 阅读全文
posted @ 2015-08-26 17:06 ChHM 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 调用系统相机拍照: private Button btnDyxj; private ImageView img1; private File tempFile; btnDyxj = (Button) findViewById(R.id.btnXj); img1 = (ImageView) findV 阅读全文
posted @ 2015-08-26 14:15 ChHM 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 1、Animations介绍 Android提供了几种动画类型:View Animation、Drawable Animation、Property Animation(属性动画)。ViewAnimation分别是Tween动画和Frame动画。Tween通过场景里的对象不断的进行图片的变换,比如平 阅读全文
posted @ 2015-08-26 10:53 ChHM 阅读(273) 评论(0) 推荐(0) 编辑