Home > Mobile >  Fragments of the jump button on the page
Fragments of the jump button on the page

Time:10-11

Package com. Example. Currpot. Myapplication;


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 object

CodePudding user response:

Returns the current layout in return

CodePudding user response:

brother, to see you that place is wrong, click on the button

CodePudding user response:

reference m - 1/f, oj response:
do you want to be in onCreateView return you generate registerfragment2 object
yes, click on the button you see where is wrong, no reaction

CodePudding user response:

reference man (+ +), 4/f ~ crazy dizzy response:
Quote: reference m - 1/f, oj response:

You want to be in onCreateView return you generate registerfragment2 object
yes, you look at that place is wrong, click on the button no response

Click events should be set in the onViewCreated method
  • Related