Slide 37
Slide 37 text
Fragment
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val contextThemeWrapper =
ContextThemeWrapper(activity, R.style.AppTheme)
val localInflater =
inflater.cloneInContext(contextThemeWrapper)
val view = localInflater.inflate(
R.layout.fragment_main, container, false
)
return view.rootView
}