---
title: "What is fragment?"  
description: "What is fragment?"  
author: "Kalin"  
published: 2022-04-14  
canonical: https://answers.mindstick.com/qa/96785/what-is-fragment  
category: "troubleshooting"  
tags: ["troubleshooting", "android"]  
reading_time: 1 minute  

---

# What is fragment?

What is [fragment](https://www.mindstick.com/interview/959/what-is-fragment-caching-in-asp-dot-net)?

## Answers

### Answer by Hitesh Vohra

- A **Fragment** is a reusable part of your [**app's**](https://answers.mindstick.com/qa/95279/what-are-the-effective-ways-to-use-the-telegram-app) user interface. A fragment has its own layout and lifetime, as well as the ability to handle its own input events. Fragments cannot exist without the assistance of an activity or another fragment. The view hierarchy of the fragment merges with, or attaches to, the view hierarchy of the host.
- By dividing the UI into separate sections, fragments add modularity and reusability to your activity's UI. Activities are a great area to integrate global components like a navigation drawer throughout your app's user interface. Fragments, on the other hand, are better for defining and managing the UI of a single screen or piece of a screen.

\

## Read More: [What is AAPT?](https://answers.mindstick.com/qa/96784/what-is-aapt)


---

Original Source: https://answers.mindstick.com/qa/96785/what-is-fragment

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
