Liu screen adaptation research program

1. Problem Scenario 

Some models exist hidden screen bangs global function; black bars hidden height Notch height (statusBar) different from the fringe patterns; With weex, causing margin bangs hidden mode set at the same distance statusBar very narrow, the visual effect is poor.

 

 

2. sphere of influence 

There are hidden bangs screen function models; bangs screen models such as millet and system Android9.0 before; (focused research) 
after 9.0 removes hidden bangs screen function


Huawei some models.

 

3. research known 

 1.status Bar and notch are not equal, and the height of the notch is smaller than the status Bar


2. Only millet bangs screen models before 9.0 models have hidden bangs screen function

3.miui10 to get to the notch height


Previous miui10 fringe bangs screen models that get less than the height of the notch;

 

4. Solution

1. status Bar height prevail
on the market most of the applications

  •  When the effect is not hidden from the top slightly hidden away.
  •  No technology risk, the risk-free contents cover

IQIYI

Yes goods primeval

Baidu map


2. Dynamic setting the height of the top
to hide whichever status Bar fringe; when the subject is not hidden in a notch, in both cases the same visual effect

  • Technical risks: before miui10 bangs screen can not get to the notch height;
  • 9.0 rom before domestic solutions adapted to a wide variety of difficult to complete. After 9.0 google unified api but has no hidden reserves 9.0 bangs screen function models

3. Leave the title bar
-ui change, it is not recommended 
Lynx

 

Because of the difficulty of adaptation and feasibility issues, not recommended Option II, the proposed scheme a reference to adaptation.

 

Guess you like

Origin www.cnblogs.com/ivoo/p/11299792.html