What are the differences between onCreate() , onCreateView() , and onActivityCreated() in Fragments
and what would they each be used for?
What are the differences between onCreate() , onCreateView() , and onActivityCreated() in Fragments
and what would they each be used for?
The main differences between onCreate()
, onCreateView()
, and onActivityCreated()
in Android Fragments are:
onCreate(Bundle savedInstanceState)
:
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
:
LayoutInflater
[3].onActivityCreated(Bundle savedInstanceState)
:
middle
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào