Assuming that you only have the activity_main in your layout folder, what you have to do is:
Position yourself in this folder (layout) press the right mouse button and then go to New - > Layout resource file (and you click there)
I'll list the steps better.
1) When the window opens: New Resource File, where it says: File name: there you write activity_main, the same name of your file that you have already created by default in your app. p>
2) without closing the window where you have written in the File name: activity_main
see below: Available qualifiers: (in that box select the option "Size", it has a cross arrow from corner to corner)
3) Once you have chosen that option, between the two boxes you have arrows similar to these: > > (these arrows are used to add the different size options to your new activity_main) Press those arrows and you will see that it shows you on the right the screen options.
4) Once the arrows have been touched > > You will see that on your right you have in the Screen size area: the options, Small, Normal, Large, X-Large.
- For each option you have to create an activity_main file, I mean: You can not add Small and Normal in the same file. You have to create 4 activity_main to be able to visualize your app in the different types of screen.
I hope it was helpful, greetings.