code

Android 뷰 수명주기 (상태 다이어그램)를 그래픽으로 표현한 것이 있습니까?

codestyles 2020. 10. 22. 08:03
반응형

Android 뷰 수명주기 (상태 다이어그램)를 그래픽으로 표현한 것이 있습니까?


우리 모두는 Android Activity의 수명주기Fragment의 수명주기 에 대해 알고 있습니다. 그러나 뷰와 동등한 것이 있습니까?

예를 들어 이는 사용자 지정 뷰를 구축하는 데 도움이되거나 Android에서 매우 일반적이고 종종 숨겨진 그래픽 작업을 심층적으로 살펴볼 수 있습니다.

미리 감사드립니다!


그것은 공식 문서가 아니라 최근 Google+를 내놓았다. 의견은 또한 몇 가지 자세한 설명과 함께 좋은 토론을합니다.


여기에서보기를 확장하는 사용자 지정보기를 만들었습니다. 그런 다음 각 방법에 로그를 작성했습니다. 라는 방법을 다음 순서 :
디버깅을 실행하면
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
겟츠
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

참고 URL : https://stackoverflow.com/questions/13146765/is-there-any-graphical-representation-of-android-views-lifecycle-a-state-diagra

반응형