Android DialogFragment onViewCreated not call
Korzystam z biblioteki kompatybilności z Androidem (wersja 4, wersja 4). W niestandardowym oknie dialogowym Metoda przesłonięta onViewCreated nie jest wywoływana.Na przykład.
public class MyDialogFragment extends DialogFragment{
private String mMessage;
public MyDialogFragment(String message) {
mMessage = message;
}
@Override
public Dialog onCreateDialog( Bundle savedInstanceState){
super.onCreateDialog(savedInstanceState);
Log.d("TAG", "onCreateDialog");
setRetainInstance(true);
//....do something
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
Log.d("TAG", "onViewCreated");
//...do something
}
}
onViewCreated nie jest rejestrowany.