Sni*_*las 74 lifecycle android view representation
我们都知道Android Activity的生命周期和Fragment的生命周期.但是有没有相同的观点?
例如,这可以帮助构建自定义视图或深入了解Android上非常常见且经常隐藏的图形操作.
提前致谢 !
Evg*_*bei 11
在这里,我创建了扩展View的自定义视图.然后在每个方法中写入日志.这里的所谓方法的顺序:
当运行调试
setOverScrollMode
setOverScrollMode
onFinishInflate
setLayoutParams
getLayoutDirection
requestLayout
hasFocus
hasTransientState
getVisibility
getLayoutDirection
getLayoutDirection
canResolveLayoutDirection
getLayoutDirection
canResolveTextDirection
isLayoutDirectionResolved
isLayoutDirectionResolved
getLayoutDirection
getLayoutDirection
isLayoutDirectionResolved
isTextDirectionResolved
isTextAlignmentResolved
getLayoutDirection
jumpDrawablesToCurrentState
jumpDrawablesToCurrentState
jumpDrawablesToCurrentState
jumpDrawablesToCurrentState
jumpDrawablesToCurrentState
jumpDrawablesToCurrentState
getVisibility
onAttachedToWindow
jumpDrawablesToCurrentState
的getBackground
isFocused
被示
onVisibilityAggregated
refreshDrawableState
drawableStateChanged
onCreateDrawableState
isFocused
hasWindowFocus
getVisibility
onMeasure
getSuggestedMinimumWidth
getSuggestedMinimumHeight
getVisibility
getVisibility
onMeasure
getSuggestedMinimumWidth
获取 uggestedMinimumHeight
getVisibility
getVisibility
布局
isOpaque
onSizeChanged
的getBackground
isOpaque
getMatrix
isOpaque
isHardwareAccelerated
GETZ
getElevation
getTranslationZ
onLayout
getVisibility
getAnimation
getLayerType
getLayerType
computeScroll
得出
的onDraw
dispatchDraw
onDrawForeground
hasOverlappingRendering
dispatchWindowFocusChanged
onWindowFocusChanged
refreshDrawableState
drawableStateChanged
onCreateDrawableState
isFocused
hasWindowFocus
使用此视图打开活动:
onScreenStateChanged
getLayoutDirection
getAnimation
getLayerType
getVisibility
getVisibility
getVisibility
layout
getVisibility
dispatchWindowFocusChanged
onWindowFocusChanged
refreshDrawableState
drawableStateChanged
onCreateDrawableState
isFocused
hasWindowFocus
| 归档时间: |
|
| 查看次数: |
25992 次 |
| 最近记录: |