How to create a page that supports the Android N (Nougat) 24 API (Multi Window Design)?

I have some doubts about creating the perfect design that supports the Multi Window function (from API 24). Below you will find some of my doubts.

  • The width and height of the page to Marshmallow (API 23) is a fixed size, from Nougat (API 24) the width and height of the application will be changed based on full-screen mode, split-screen mode and free-form mode. How to handle these kind of questions related to width and height?

  • If in normal mode, for example, 4 large images fill my full width of the device, if we change it to multi-window mode, then the width decreases, then these 4 images will not fit into the user interface. How to deal with such situations?

  • Do we need to take care of the text sizes and other attributes for both normal and multi-line mode? If so, how to do it?
  • Any other thing we should keep in mind when designing a layout that supports API 24?
+5
source share
1 answer

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/ .

0
source

All Articles