Search code examples
androidandroid-layouttablet

Will layout folders fix the tablet compatibility?


I read a few things about how to make your app compatible with tablets. Some say about using your code and some say about the layout folders or some about the sw600dp and sw720dp folders. I am really confused and am not 100% sure which is the most simplest way to just make it play on a tablet.

What i did is i made 3 more layout folders (large, xlarge and small, I already had the drawable classes in all sizes but i didnt change the size of the images, its in all drawables the same size) and in these 3 extra folders i copied the same files i had in the plain layout folder. So i have 4 layouts with all the xmls the same.

Will this make it compatible with tablet and fix my issue?


Solution

  • for Xlarge use this folder drawable-xlarge-hdpi

    for large use this folder drawable-large-xhdpi

    layout-large (7 inch)

    layout-xlarge(10 inch) folder are used for layouts