Подтвердить что ты не робот

Есть ли графическое представление жизненного цикла Android views (диаграмма состояния)?

Мы все знаем о Android жизненном цикле активности и жизненный цикл фрагментов. Но есть ли что-то эквивалентное для представлений?

Это может помочь, например, создать пользовательские представления или дать подробный обзор очень распространенной и часто скрытой графической операции на Android.

Спасибо заранее!

4b9b3361

Ответ 1

Это не официальный документ, но этот недавно появился в Google+. В комментариях также есть хорошее обсуждение с некоторым подробным объяснением.

Ответ 2

Здесь я создал собственное представление, которое расширяет представление. Затем записываются журналы в каждом методе. Здесь порядок названных методов:
При выполнении отладки
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
isShown
onVisibilityAggregated
refreshDrawableState
drawableStateChanged
onCreateDrawableState
IsFocused
hasWindowFocus
getVisibility
onMeasure
getSuggestedMinimumWidth
getSuggestedMinimumHeight
getVisibility
getVisibility
onMeasure
getSuggestedMinimumWidth
getSuggestedMinimumHeight
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
макет
getVisibility
dispatchWindowFocusChanged
onWindowFocusChanged
refreshDrawableState
drawableStateChanged
onCreateDrawableState
IsFocused
hasWindowFocus