Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Android Lecture 3

.pdf
Скачиваний:
8
Добавлен:
21.02.2016
Размер:
1.7 Mб
Скачать

Initialize the fragment

onAttach()

onCreate()

Fragment sets up & returns its user interface

onAttach()

onCreate()

onCreateView()

Containing activity has completed onCreate() and the fragment has been installed

onAttach()

onCreate()

onCreateView()

onActivityCreated()

Hosting Activity about to become visible

onStart ()

Hosting Activity is

onResume()

about to become

 

visible and ready

 

for user interaction

 

 

 

Hosting Activity is

onPause()

visible, but does not

 

have focus

 

 

 

Hosting Activity is no longer visible

onStop ()

View previously

onDestroyView()

created by

 

onCreateView() has

 

been detached from

 

the Activity

 

Typical Actions

Clean up view resources

Fragment is no longer in use

Typical Actions

Clean up Fragment resources

onDestroyView()

onDestroy()

Fragment no longer attached to its activity

Typical Actions

Null out references to Hosting Activity

onDestroyView()

onDestroy()

onDetach()

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]