The import android. App. Fragments;
The import android. OS. Bundle;
The import android. Support. The annotation. Nullable;
The import android. View. LayoutInflater;
The import android. View. The view;
The import android. View. ViewGroup;
Public class RegisterFragment2 extends fragments {
@ Nullable
@ Override
Public View onCreateView (LayoutInflater inflater, @ Nullable ViewGroup container, Bundle savedInstanceState) {
The View registerfragment2=inflater. Inflate (R.l ayout. Registerfragment2, null);
Return super. OnCreateView (inflater, container, savedInstanceState);
}
}
CodePudding user response:
Do you want to be in onCreateView return you generate registerfragment2 objectCodePudding user response:
Returns the current layout in returnCodePudding user response:
brother, to see you that place is wrong, click on the buttonCodePudding user response: