728x90 requireContext1 [Context] Fragment 에서 context 와 requireContext context /** * Return the {@link Context} this fragment is currently associated with. * * @see #requireContext() */ @Nullable public Context getContext() { return mHost == null ? null : mHost.getContext(); } requireContext /** * Return the {@link Context} this fragment is currently associated with. * * @throws IllegalStateException if not currently associated with a context. * @see #getContext() .. 2020. 12. 10. 이전 1 다음 728x90