How to plan layout let component size to match any device size

Hi,Everyone.
The position adjustment of the component has been bothering me.
I adjusted the best display effect in the test device.
But when i use other devices of different sizes, display effect is bad.
please tell me how to solve this problem.