Google gives tips on notch to developers
Google has published an article advising Android developers on the use of the notch and on how to optimize applications so that they are displayed correctly on those smartphones that use it. They claim that there are already 16 devices from 11 manufacturers that use the notch, and that several of them are part of the Android P beta. In other words: the notch has come to stay for a while and manufacturers are betting on it, for what application developers must adapt to this new reality.
From the Great G they assure that these terminals are a great opportunity for an app to look impressive. After all, they are usually devices with more screen and fewer frames, which gives rise to a design in a big way. To do this, they give the following tips for developers:
- Make sure your app is compatible: In general, developers should not touch anything. The height of the notch is that of the status bar and the app adjusts below. Therefore, in portrait mode it appears the same. However, care must be taken with code that sets a new height for the status bar. Also with the use of coordinates to place elements and with full screen interfaces.
- Take advantage of the notch: Extend the interface in landscape mode to take advantage of every last inch of screen.
- Test your app with a notch: Google offers options to test that an app displays well even on notch screens. Developers should take advantage of these tools.
- Special mode: Allow non-optimized apps to be stretched to the notch using a button in the navigation bar.
- Optimize the app for different aspect-ratio: The arrival of notches and frameless mobiles has caused new aspect resolutions to arrive. Thus, 16: 9 have given way to 18: 9 and even 19: 9. Developers must ensure that their application displays well on all screens.
Furthermore, Google has also established standards for manufacturers:
- Manufacturers should ensure that, in portrait mode, the height of the status bar is equal to or greater than the notch.
- In landscape mode or full screen mode, there should be black bars in the notch area. In this way, no content is cut unless requested by the user.
- Each mobile can only have a maximum of two notches. Notches can only be used in the top or bottom frames and only one notch can be used per frame.
Paving the way for the Google Pixel 3 XL
With all this, Google is but preparing the way for the future Google Pixel 3 Xl. While the normal version will have a classic screen, the large device will have a notch on the screen. Since the Big G is going to bet on this design, it needs all manufacturers to go to one and offer adequate support for notch displays.