CommentsFrag¶
Fields¶
settings¶
-
SharedPreferences
settings
¶ The app’s shared settings that store user info and preferences
Methods¶
onAttach¶
-
public void
onAttach
(Context context)¶ -
Parameters: - context – {@inheritDoc}
onCreate¶
-
public void
onCreate
(Bundle savedInstanceState)¶ Initialize references to
CommentsFrag.queue
andCommentsFrag.settings
.Parameters: - savedInstanceState –
onCreateView¶
-
public View
onCreateView
(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)¶ Populate the activity with UI elements
Parameters: - inflater – Inflates the xml
R.layout.fragment_comments
into the displayed UI - container – TODO: What is this?
- savedInstanceState – Saved state that can be restored. Not used.
Returns: The inflated view produced by
inflater
- inflater – Inflates the xml