I am new to android and want to know that in which lifecycle method it would be best to load views in fragment like
editText_full_name = (EditText) getActivity().findViewById(R.id.editText_full_name);
I am thinking of onResume()
but something tells me its not appropriate. Nonetheless I want to know about the best practice of doing so.
Also I am using an interface as a communication callback from fragment to activity.
EDIT: Also i wanna know when to attach listeners, like onClickListeners to button in fragment lifecycle.