Last active
December 18, 2017 03:25
-
-
Save raymondctc/823fad261dde52c5bb025cebf8f2c4ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
| View view = inflater.inflate(R.layout.fragment_viewstub, container, false); | |
| mViewStub = (ViewStub) view.findViewById(R.id.fragmentViewStub); | |
| mViewStub.setLayoutResource(getViewStubLayoutResource()); | |
| mSavedInstanceState = savedInstanceState; | |
| if (getUserVisibleHint() && !mHasInflated) { | |
| View inflatedView = mViewStub.inflate(); | |
| onCreateViewAfterViewStubInflated(inflatedView, mSavedInstanceState); | |
| afterViewStubInflated(view); | |
| } | |
| return view; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment