判断构造器是不是为空,如果是空的才重新创建一个,在生命周期里面,下面这样子写就可以让构造器不重复创建了,也就相当于有了缓存,之前怎么样,之后还是怎么样
if (mGiftAdatper == null) {
mGiftAdatper = new GiftAdatper();
}
判断构造器是不是为空,如果是空的才重新创建一个,在生命周期里面,下面这样子写就可以让构造器不重复创建了,也就相当于有了缓存,之前怎么样,之后还是怎么样
if (mGiftAdatper == null) {
mGiftAdatper = new GiftAdatper();
}