Welcome to the Treehouse Community
Looking to learn something new?
Kunal Patel1,448 Points
Android: Different Layouts for Different Devices
Anyone know of a lesson on how to create layouts for medium phone vs. tablet displays? How to create the layout, folder naming conventions, and how Android resolves this?
I thought one exists, but I cannot seem to find it.
The information provided by Google is invaluable. Tons of information is available.
Definitely read through: http://developer.android.com/guide/topics/resources/providing-resources.html
As a quick little tutorial:
Try putting a completely different .xml layout into
res/layout-sw600dp/ and run your application on different screen sizes.
Also, I recommend watching the Android Developers channel on youtube. This video may also help get the point across: http://www.youtube.com/watch?v=wON8StzwOLk
Also, don't think of it as creating "different layouts for different devices". It should be more of a "different layout for varying dpi and screen size."