Fragments

Last updated

What is Fragments?

A Fragment represents a reusable portion of your app's UI. A fragment defines and manages its own layout, has its own lifecycle, and can handle its own input events. Fragments can't live on their own. They must be hosted by an activity or another fragment. The fragment’s view hierarchy becomes part of, or attaches to, the host’s view hierarchy.

Free resources to learn Fragments

More in stage 6: Design & Architecture

Fragments: common questions

Can I learn Fragments in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Fragments in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Fragments tutorial for beginners?

It is lesson 55 of 113 in the free Android roadmap, in stage 6, Design & Architecture. If you are new to Android, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me