super代表的是父类、超类,用在继承中的子类中;this代表对象本身,用在本类中。super访问的是被子类隐藏的父类的属性或被覆盖的方法,而this访问的是同一类中的成员。super调用的是父类中的某一个构造函数,而this调用的是本类中其他的构造函数。super和this都需要位于构造器..
分类:
编程语言 时间:
2015-03-19 06:37:08
阅读次数:
141
1、先看一个现象 public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat....
1 public class LoginActivity extends Activity { 2 3 @Override 4 public void onCreate(Bundle savedInstanceState) { 5 super.on...
分类:
移动开发 时间:
2015-03-18 21:45:28
阅读次数:
196
- (id)initWithFrame:(CGRect)frame delegate:(id)delegate focusImageItems:(SGFocusImageItem *)firstItem, ...
{
self = [super initWithFrame:frame];
if (self) {
NSMutableArray *imageItems...
分类:
其他好文 时间:
2015-03-18 20:36:24
阅读次数:
186
publicclassTitleViewextendsFrameLayout{
privateButtonleftButton;
privateTextViewtitleText;
publicTitleView(Contextcontext,AttributeSetattrs){
super(context,attrs);
LayoutInflater.from(context).inflate(R.layout.title,this);
titleText=(TextView)findViewByI..
分类:
移动开发 时间:
2015-03-18 18:19:54
阅读次数:
151
一、创建线程的第一种方式:继承Thread类class Demo extends Thread{ @Override public void run() { super.run(); for(int i=0;i<20;i++) Syste...
分类:
编程语言 时间:
2015-03-18 15:37:39
阅读次数:
195
首先上代码:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIButton *button = [UIButton buttonWithType:UIButtonTyp...
分类:
编程语言 时间:
2015-03-18 12:23:29
阅读次数:
241
压缩图像超分辨率重建算法学习
超分辨率重建是由一幅或多幅的低分辨率图像重构高分辨率图像,如由4幅1m分辨率的遥感图像重构分辨率0.25m分辨率图像,在军用/民用上都有很大应用。目前的超分辨率重建方法主要分为3类:基于插值、基于学习、基于重建的方法,如今已经研究得比较多。但是大多数算法都是对普通图像进行研究,针对压缩图像/视频超分辨率重建的研究比较少。最近查阅部分文献,进行了学习,在...
分类:
编程语言 时间:
2015-03-18 10:42:36
阅读次数:
118
直接上代码
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake...
分类:
移动开发 时间:
2015-03-18 10:34:45
阅读次数:
161
先来看下代码
一、查看夏目
1. 自定义控件
public class CustomViewGroup extends ViewGroup {
......
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.on...
分类:
移动开发 时间:
2015-03-17 21:53:37
阅读次数:
252