使用ImageView时经常会用到scaleType属性,如: scaleType属性的各个值总是记不住之间的区别。今天找点时间总结了一下:scaleType的属性值有:matrix fitXY fitStart fitCenter fitEnd center centerCrop centerI....
分类:
移动开发 时间:
2014-07-16 22:58:00
阅读次数:
248
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
#import "ViewController.h"@interface ViewController () @property (weak, nonatomic) IBOutlet UIImageView *imageView;@end/**// 下载进度跟进- (void)URLSession:...
分类:
其他好文 时间:
2014-07-14 14:53:15
阅读次数:
271
在我们的项目中,经常会碰到图片与文字混排的问题。解决这类问题的方法有很多,本文给出的方法不是唯一的,只有根据实际场景才能找到更适合的方法。
本文主要通过xml布局来实现图片与文字的混排(水平排列)。...
分类:
移动开发 时间:
2014-07-12 16:42:56
阅读次数:
215
iOS开发项目篇—14点击标题按钮弹出菜单一、简单说明(1)简单实现点击标题按钮弹框,在箭头向上的时候,显示标题菜单把ImageView添加到谁的身上?三角形的箭头在导航栏上,因此不能添加到tableview上。分析图示:有两个两种方法可以考虑:(1)添加到导航控制器上,因为导航栏是在导航控制器上的...
分类:
移动开发 时间:
2014-07-11 19:38:52
阅读次数:
457
这篇记录了两个控件的使用流程:ImageView 和 Slide。...
分类:
其他好文 时间:
2014-07-10 20:03:22
阅读次数:
243
ListView是一种可以显示一系列项目并能进行滚动显示的View。在每行里,既可以是简单的文本,也可以是复杂的结构。一般情况下,你都需要保证ListView运行得很好(即:渲染更快,滚动流畅)。在接下来的内容里,我将就ListView的使用,向大家提供几种解决不同性能问题的解决方案。
如果你想使用ListView,你就不得不使用ListAdapter来显示内容。SDK中,已经有了几种简单实...
分类:
移动开发 时间:
2014-07-09 10:34:02
阅读次数:
320