---
title: "When do I use Frame Layouts (Design Android UI)?"  
description: "When do I use Frame Layouts (Design Android UI)?"  
author: "Amara Halston"  
published: 2018-01-03  
canonical: https://answers.mindstick.com/qa/32426/when-do-i-use-frame-layouts-design-android-ui  
category: "gadgets"  
tags: ["android", "android os"]  
reading_time: 1 minute  

---

# When do I use Frame Layouts (Design Android UI)?

When do I use [Frame](https://www.mindstick.com/articles/749/html-frames) Layouts ([Design](https://yourviews.mindstick.com/view/82176/how-an-icon-design-helps-your-logo-design) [Android](https://yourviews.mindstick.com/view/84568/iphone-vs-android-how-to-choose-the-best-smartphone) UI)?

## Answers

### Answer by Prateek sharma

frame layout is used to block the area on the screen which will display a single child view. it is difficult to organize multiple views in the frame layout because the views may react differently with different screen sizes as the views may overlap. to avoid this overlapping the use of attribute

## android:layout_gravity

will help the developer to organize the views according to his/her needs.

![When do I use Frame Layouts (Design Android UI)?](https://answers.mindstick.com/questionanswer/ef3f819e-721d-41c3-b42a-15e2eef9c876/images/86359d3c-6724-461a-b35c-f88c370430d5.png)\

as frame layout was introduced in the API level 1, it is much outdated and there is much better layout present at the moment which will work much better than frame layout.


---

Original Source: https://answers.mindstick.com/qa/32426/when-do-i-use-frame-layouts-design-android-ui

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
