Created
June 23, 2020 14:27
-
-
Save am5a03/e9cb7d804e791bc13e6eef4922b90348 to your computer and use it in GitHub Desktop.
This file contains 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 fun onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, | |
savedInstanceState: Bundle? | |
): View? { | |
val view = inflater.inflate(R.layout.fragment_viewstub, container, false) | |
mViewStub = view.findViewById(R.id.fragmentViewStub) as ViewStub | |
mViewStub!!.layoutResource = getViewStubLayoutResource() | |
mSavedInstanceState = savedInstanceState | |
if (visible && !hasInflated) { | |
val 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