---
title: "How will you design a text view, which works properly for both mobiles and tablets?"  
description: "How will you design a text view, which works properly for both mobiles and tablets?"  
author: "Shreyas singh"  
published: 2018-01-22  
canonical: https://answers.mindstick.com/qa/33371/how-will-you-design-a-text-view-which-works-properly-for-both-mobiles-and-tablets  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# How will you design a text view, which works properly for both mobiles and tablets?

How will you [design](https://www.mindstick.com/articles/126148/the-way-to-merge-psd-style-and-design-in-to-reactive-html) a [text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) [view](https://yourviews.mindstick.com/view/84838/why-do-mexicans-have-a-lower-standard-of-living-in-the-united-states-of-america-2023-view), which works properly for both mobiles and tablets?

## Answers

### Answer by Prateek sharma

to do this you simply need to create the **layout** file which contains the text view in the following **directories** -

res/layout/my_layout.xml // layout for normal screen size ("default")

res/layout-small/my_layout.xml // layout for small screen size

res/layout-large/my_layout.xml // layout for large screen size

res/layout-xlarge/my_layout.xml // layout for extra large screen size

res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

res/drawable-mdpi/my_icon.png // bitmap for medium density

res/drawable-hdpi/my_icon.png // bitmap for high density

res/drawable-xhdpi/my_icon.png // bitmap for extra high density

By doing this android will **automatically** display the correct layout on the basis of selection of screen.


---

Original Source: https://answers.mindstick.com/qa/33371/how-will-you-design-a-text-view-which-works-properly-for-both-mobiles-and-tablets

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
