How to change screen size resolution on Android Lollipop device
If you want to test your app on devices with different screen sizes you could buy a lots of devices or you simple change the resolution of your device. In my case it’s a Nexus 4.
The command for testing on different screen sizes is:
adb shell wm size 576×960
later you want to use
adb shell wm size reset