Your screens should now be adapted for different screen sizes. You can handle this by getting the width and height of the screen at runtime and dynamically fitting your design. This is a long way to go, but if you want the perfect design, I think this is the most suitable approach.
If you do not need such a flexible screen, you can install android: minimalHeight and / or android: minimumWidth and be sure that all the basic elements of the user interface are always visible.
If you do not want to be so strict, you can use ScrollView so that it does not depend on the height of the screen, and android: layout_width = "match_parent" does not depend on the width of the screen. In fact, in this case you have to test your application on different devices to make sure that all sections of the applications are displayed correctly.
A few other things you need to take care of you can be found at http://blog.azoft.com/android-7-0-nougat-features-for-business-apps/ .
source share