One thing that you can do is create different folders for each type of screen size / resolution such as
values-
- ldpi
- mdpi
- hdpi
- xhdpi
- nodpi
- tvdpi
And them inside values you can have folders such as dimens, integers, booleans, etc..
Them inside your XML layouts you use something such as android:width="@integer/size_for_this"
Android will know which folder to reference based on the device DPI. You can also specify other type of folders such as by Width, height, etc...
More info in the Official documentation Providing Resources