http://www.myexception.cn/image/726203.html图片说明Andorid中ImageView的不同属性ScaleType的区别ImageView是Android中的基础图片显示控件,该控件有个重要的属性是ScaleType,该属性用以表示显示图片的方式,共有8种取...
分类:
其他好文 时间:
2014-07-18 14:35:54
阅读次数:
217
1. 放大缩小float value = 2.0;self.imageView.transform = CGAffineTransformMakeScale(value, value);2. 移动// 重新赋值按钮的中点orangeBtn.center = center;3. 旋转// 左旋转...
分类:
其他好文 时间:
2014-07-18 08:20:30
阅读次数:
135
压缩原因:1.imageview大小如果是200*300那么加载个2000*3000的图片到内存中显然是浪费可耻滴行为;2.最重要的是图片过大时直接加载原图会造成OOM异常(out of memory内存溢出)所以一般对于大图我们需要进行下压缩处理权威处理方法参考安卓开发者中心的大图片处理教程htt...
分类:
移动开发 时间:
2014-07-17 23:30:48
阅读次数:
355
/*** 直接下载图片并加载至控件(非异步加载)** @param activity* @param urlpath* 图片下载路径* @param imageView* 目标控件* @param isStretch* 是否拉伸图片* @param screenWidt...
分类:
移动开发 时间:
2014-07-17 23:16:28
阅读次数:
474
今天使用了下ADT 16.0 在定义一个ImageVIew的时候 总是提示这个[Accessibility] Missing contentDescription attribute on image警告,虽说可以不理 但总是感觉怪怪的,在网上一搜 发现原来这是ADT 16.0的新特性,在一些没有文...
分类:
数据库 时间:
2014-07-17 21:38:55
阅读次数:
295
做一个游戏图片列表,想着增加设置壁纸功能,就差了一些资料。
1 别忘记在ApplicationManifest.xml 中加上权限的设置。
2、设置壁纸的方法总结。
壁纸设置方法有三种
第一 通过WallpaperManager方法中的 setBitmap()
第二 通过WallpaperManager方法中的 setReso...
分类:
移动开发 时间:
2014-07-16 09:20:36
阅读次数:
208
UIImageView自带//圆角设置imageView.layer.cornerRadius = 8;(值越大,角就越圆)imageView.layer.masksToBounds = YES;//边框宽度及颜色设置[imageView.layer setBorderWidth:2];[image...
分类:
移动开发 时间:
2014-07-16 00:39:18
阅读次数:
318
首先,我们编写一个MyImageButton类,继承自LinearLayoutpublic class MyPhoneImageButton:LinearLayout { private ImageView mButtonImage = null; private...
分类:
其他好文 时间:
2014-07-15 09:49:32
阅读次数:
245
private class SimpleView extends ImageView{ int point_x; int point_y; int radius = 0; public SimpleView(Context c...
分类:
移动开发 时间:
2014-07-15 00:28:07
阅读次数:
457
导入库头文件(重点)#import //圆角设置imageView.layer.cornerRadius = 6;imageView.layer.masksToBounds = YES;//边框宽度及颜色设置[imageView.layer setBorderWidth:2];[imageView....
分类:
移动开发 时间:
2014-07-14 22:13:29
阅读次数:
262