# Fragment

A Fragment's lifecycle is tied to its hosting activity, but has independent methods as well.

Many of these lifecycle methods are similar to the Activity's methods and are intertwined with the Activity's state.

If you'd like more in depth information about the fragment lifceycle, check out Android's documentation: Fragment Lifecycle and Coordinating with the activity.

## onCreateView()

This is where you configure view components.

## onActivityCreated()

After this phase, you have access to the Activity.