Skip to content Skip to sidebar Skip to footer

How To Set My Android Layout In All Devices?

I write an app which only can set in small and medium devices and can't fit in tablet which is not looking good. How can I improve my UI by fitting my app layout in all devices. He

Solution 1:

Put your main.xml layout in following folders in the /res folder of your project.

1) main.xml in layout

2) main.xml in layout-large

3) main.xml in layout-small

4) main.xml in layout-xlarge

Note: only name must be same, but inside content can be different.


Post a Comment for "How To Set My Android Layout In All Devices?"