Exam4Training

What method is called during onCreate(Bundle) to supply the preferences for this fragment. And where subclasses are expected to call setPreferenceScreen (PreferenceScreen) either directly or via helper methods such as addPreferencesFromResource (int)?

In a class PreferenceFragmentCompat.

What method is called during onCreate(Bundle) to supply the preferences for this fragment. And where subclasses are expected to call setPreferenceScreen (PreferenceScreen) either directly or via helper methods such as addPreferencesFromResource (int)?
A . onCreateLayoutManager
B . onCreatePreferences
C . onCreateRecyclerView
D . onCreateView

Answer: B

Exit mobile version