---
title: "Why we use fragments in Android activity"  
description: "Why we use fragments in Android activity"  
author: "Anonymous User"  
published: 2015-12-29  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22958/why-we-use-fragments-in-android-activity  
category: "android"  
tags: ["android", "android fragment"]  
reading_time: 1 minute  

---

# Why we use fragments in Android activity

Fragment represents a behavior or a portion of user interface in an Activity. And it is a self-contained component with its own UI and lifecycle.

## Answers

### Answer by Anonymous User

Fragment represents a behavior or a portion of user interface in an Activity. And it is a self-contained component with its own UI and lifecycle.


---

Original Source: https://www.mindstick.com/interview/22958/why-we-use-fragments-in-android-activity

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
