Android Full screen adaptation

Source: Internet
Author: User

What is a full screen concept

Many people may confuse a full screen with a curved screen, which is actually two different concepts.

The average mobile phone screen aspect ratio is 16:9, such as 1080x1920, 1440x2560, etc., the ratio of 1.777777 ..., before the full screen phone appears, Android in the default maximum screen aspect ratio (maximum aspect Ratio) is 1.86, which is capable of 16:9 screen compatibility.

Some handset manufacturers in order to pursue larger screen space and more extreme user experience, so improve the screen aspect ratio, 17:9, 19:10, 18:9, 18.5:9 of mobile phones began to enter the market, these phones are called full screen mobile phone.

Currently on the market a full screen model
Model screen aspect ratio Time to Market
Millet Mix 17:9 October 2016
LG G6 18:9 February 2017
Samsung Galaxy S8 18.5:9 May 2017
Essential Phone 19:10 August 2017

There is also a definite message that Huawei will release a full screen mobile phone in the second half of the year, and the legendary IPhone8 will adopt a full screen design.

How to fit a full screen

Although the current market full screen mobile phone is not many, but with the addition of Xiaomi, Huawei, Samsung, Apple, will inevitably cause a full-screen mobile phone outbreak, so it is necessary to fit a full-screen mobile phone.

Due to the full screen phone in the aspect of the large, if not appropriate, Android default is 1.86, less than the full screen phone aspect ratio, the full screen phone to open the app, up and down will leave space, shown as black bar. Without compromising functionality, the visual experience is greatly affected, and the additional space provided by the full screen is not being exploited.

Sample diagram before and after adaptation (from Android's official blog):

Official Adaptation Program

After the Galaxy S8 was released, Android officially provided an adaptation scheme that increased the maximum screen aspect ratio supported by the app, making it simple to configure in Androidmanifest.xml:

<meta-data android:name="android.max_aspect"    android:value="ratio_float"/>

Where Ratio_float is a floating-point number, the official recommendation is 2.1 or greater, because 18.5:9=2.055555555 ..., this value will be greater if you later appear with a larger-than-vertical phone.

In addition, if you do not have the above setting and android:resizeableActivity false, the maximum aspect ratio supported by the app is the default value of 1.86, which means that a full screen is not supported by default.

Official guidance Document for Update your app to take advantage of the larger aspect ratio on new Android flagship devices.

Small Mi King with suggestions

As the earliest manufacturer of mobile phone in China, Xiaomi also made some suggestions for developers. In addition to adapting the screen as described above, it is recommended that the virtual navigation bar be adapted, mainly for the consistency of the interface tone experience. For more information, refer to full screen and virtual key adaptation instructions.

Android Full screen adaptation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.