View 生命周期方法
2014-12-09 15:05
162 查看
/**
* This is called when the view is attached to a window. At this point it
* has a Surface and will start drawing. Note that this function is
* guaranteed to be called before {@link #onDraw(android.graphics.Canvas)},
* however it may be called any time before the first onDraw -- including
* before or after {@link #onMeasure(int, int)}.
*
* @see #onDetachedFromWindow()
*/
onAttachedToWindow() //关联到window时调用
/**
* This is called when the view is detached from a window. At this point it
* no longer has a surface for drawing.
*
* @see #onAttachedToWindow()
*/
onDetachedFromWindow() //从window中分离出来时调用,做资源缩放的相关操作
* This is called when the view is attached to a window. At this point it
* has a Surface and will start drawing. Note that this function is
* guaranteed to be called before {@link #onDraw(android.graphics.Canvas)},
* however it may be called any time before the first onDraw -- including
* before or after {@link #onMeasure(int, int)}.
*
* @see #onDetachedFromWindow()
*/
onAttachedToWindow() //关联到window时调用
/**
* This is called when the view is detached from a window. At this point it
* no longer has a surface for drawing.
*
* @see #onAttachedToWindow()
*/
onDetachedFromWindow() //从window中分离出来时调用,做资源缩放的相关操作
相关文章推荐
- UI进阶--控制器View的创建流程以及生命周期方法
- View的生命周期方法和Activity生命周期方法关系
- Activity/ViewGroup/View生命周期方法
- View Controller 生命周期的各个方法的用法
- view生命周期的一个找父类的控件的方法
- 视图控制器生命周期中各个重要的方法(Swift) (Important Methods during the Lifecycle of a View Controller)
- View Controller 生命周期的各个方法的用法
- 控制器以及view的多种创建方式、 控制器的生命周期方法
- 控制器view的生命周期方法
- 控制器view的生命周期方法
- iOS开发中ViewController的生命周期分析和使用方法
- 创建控制器的方法、控制器加载view过程、控制器view的生命周期、多控制器组合
- View生命周期方法
- View Controller 生命周期的各个方法的用法
- Runtime && Method Swizzling 替换ViewC生命周期方法
- ionicView 生命周期事件不调用处理方法 $ ionicView.loaded $ ionicView.enter
- View的生命周期方法和Activity生命周期方法关系
- ViewController 生命周期重要方法
- UIKit框架(12)控制器view的生命周期方法
- View Controller 生命周期的各个方法的用法