I have doubt that how we are going to create the different layouts to support all android mobile devices. As we know that we will be creating different layouts (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi..) in res folder. What is my question is eg: I am having two mobiles say moto e(253dpi) and samsung galaxy e7(267dpi) where both are xhpdi. Now I will be creating xhdpi for them. But here the two screen resolutions differs (moto e(540x960) and e7(720x1280) respectively).
Now if I give some hard coded values in xhpdi xml. Whether my layout remains same for both devices? Without any alignment issues?