How to make android studio app responsive for all different screens?

Viewed 14

I tried to adjust my app for all android phone screen sizes.

for this I used:

layout-sw300dp
layout-sw330dp
layout-sw480dp
layout-sw600dp
layout-sw720dp

I have now adapted my app to these screen sizes. however, I have a problem with this. This is only the width of the screen and not the height.

So now if I adjust the screen to sw330dp. Now when I access the app on my Samsung s6 (360x640 dp) the app looks fine. However, when I access the app on my Nexus 4 (384x640), the layout doesn't fit the screen. I think this happens because both phones access the layout-sw330dp, but both phones have different screen heights so it is not tuned to fit both screens

How is it possible to make the app fit perfectly on all screens so that the layout looks good and appropriate on all screens?

0 Answers
Related