Hello, I am a beginner programmer and have encountered one problem. I was looking for an answer on the Internet but I did not find it. Help me please. I need to make it so that at different resolutions of screens, for example, at 480x800 and at 720x1280, a layout file, for example, main.xml, is loaded different. How can this be implemented? Somewhere I heard that you need to create a new directory in the res folder.

1 answer 1

res/layout – по умолчанию res/layout-small res/layout-normal res/layout-large res/layout-xlarge 

You can still like this:

 res/layout-sw200dp res/layout-sw600dp res/layout-sw800dp 
  • Thank you very much. It helped - Volk Sasha
  • sw - smallest width - Deadkenny