안녕하세요 ^^ 회색님

오늘은 View와 surfaceView 에 대해 여쭤볼까 합니다.

surfaceView 에서는

surfaceView  : http://developer.android.com/reference/android/view/SurfaceView.html

The Surface will be created for you while the SurfaceView's window is visible; you should implement surfaceCreated(SurfaceHolder) and surfaceDestroyed(SurfaceHolder) to discover when the Surface is created and destroyed as the window is shown and hidden.

위와 같이 생성과 소멸시 Created와 Destroyed 메소드를 각각 자동 호출(call back)되게 되는걸로 알고 있습니다.

제가 묻고자 하는 바는

view 클래스에서도 위와 같이 생성과 소멸시 자동으로 호출되는 콜백 함수가 있는지 궁금합니다.
아래의 Focus Handing 이 그와 유사한 기능인지. 유사한 기능이라면 안드로이드의 백버튼(첨부파일에 백버튼 그림 추가)을 눌렀을때 Destroyed 가 호출되는 다른 메소드가 있는지 알고 싶습니다.

설명을 또 어렵게 했네요;;

View  :  http://developer.android.com/reference/android/view/View.html

Focus Handling

The framework will handle routine focus movement in response to user input. This includes changing the focus as views are removed or hidden, or as new views become available. Views indicate their willingness to take focus through the isFocusable() method. To change whether a view can take focus, call setFocusable(boolean). When in touch mode (see notes below) views indicate whether they still would like focus via isFocusableInTouchMode() and can change this via setFocusableInTouchMode(boolean).

Focus movement is based on an algorithm which finds the nearest neighbor in a given direction. In rare cases, the default algorithm may not match the intended behavior of the developer. In these situations, you can provide explicit overrides by using these XML attributes in the layout file:

 nextFocusDown
 nextFocusLeft
 nextFocusRight
 nextFocusUp