最新国产精品视频免费看_99热这里只有精品在线_无码精品人妻一区_欧美精品丝袜久久久中文字幕

How to do front-end adaptation for iPhoneX

With the launch of iPhoneX, how to adapt iPhoneX is a problem that every front-end developer must consider. When the iPhoneX was first launched, Infocode Lan Chang’s H5 development team happened to be working on an H5 project for a cosmetics brand , I also spent some time staying up all night groping for adaptation issues.

the

Resolution comparison

First of all, let’s take a look at the comparison between iPhone X and other iPhones, so that we can design better. Let’s look at the screen density. iPhone 6/7/8 does not have logical resolution, but Plus models and iPhone X have logical resolution. . Please pay attention!

iPhoneX adaptation
iPhoneX adaptation

Model actual size comparison

Don’t look at the iPhone X’s 5.8-inch screen, but the real feel is much smaller than the Plus, and only slightly larger than the iPhone 7. People who hate large screens like static electricity have no problem using the iPhone X , Mom no longer has to worry about hitting her face with a slap while looking at her phone on the bed!

iPhoneX adaptation
iPhoneX adaptation

iPhoneX adaptation

Design differences due to resolution

Although it seems to us that the iPhone X has only grown a lot, don’t underestimate the 145pt that has grown out. In fact, the difference is still very big. The physical resolution of the iPhone X is 1125X2436, so what is the double image? 375-812pt, then it seems that the width of the screen has not changed, so the designers are relieved. The cost and difficulty of adaptation have been greatly reduced.

Image title

But don’t worry, we haven’t calculated the density yet. Density is a big indicator that determines the difficulty of mobile phone adaptation. Do you remember the formula for density calculation? Yes, it is the following, PPI (Pixels Per Inch), which is the horizontal square +Square vertically and then open the root sign.

Image title

We see that the screen density of the iPhone X is higher than that of the Plus at logical resolutions, 444 and 401 respectively, but the actual density of the iPhone X is smaller than that of the Plus, 458 and 489 respectively. At this time, according to the screen density, we can know that they are all @3x, that is, the three times the picture. Therefore, in the transition from plus to iPhone X, most of the adaptation cost will be handed over to engineers.

Image title

What the designer should do – pay attention to the safe area

If the safe area on both sides of the screen is something that any mobile phone needs to pay attention to (that is, leave appropriate space on the left and right sides to avoid accidental touches and ensure visual effects. The specific amount of space is determined by your design draft. Apple does not How much is not specified).

Image title

Then on the iPhone X, we also need to pay attention to two other important security areas, which are the two pieces of content on the top and bottom of the screen: the upper part is the “notch” area, which can only contain some content such as system status, and the notch area needs to be in the design. reflected in the manuscript. Then the bottom of the screen is the content that many designers will ignore, which is a virtual control bar, which acts as the home button with the magic bar, so we can’t let the content conflict with this bar, so you will find the standard suitable The configured applications leave a lot of space at the bottom of the screen. Next, let’s take a look at the applications that are now claimed to be adapted, which ones are correct, and which ones have problems?

Image title

Obviously, the Taobao on the left is a bit exaggerated, the WeChat in the middle is well adapted, and the one on the far right is, well, not adapted at all.

In addition, we can also learn from this screenshot that there are no bangs in the screenshot.

The size of the safe area?

In the double image design mode, the height of the upper Status bar is 44pt, and the lower control bar, please leave a height of at least 34pt. Note that I am talking about the double image design mode, and the unit is pt instead of pixel. Some students may ask, how to convert to pixels? After all, the iPhone X is a triple image, so multiply by 3 to get the actual pixels.

Image title

Now, most of the adaptation work has been completed. In fact, we only need to make some small changes based on the previous design draft. Isn’t it very simple?

What the designer has to do – modify the size of the full-screen image

Because the iPhone X grows a section, the previous full-screen ratio image will be distorted on the iPhone X, as shown in the figure below, so the development engineer may enlarge the original image to fill the entire screen for adaptation. If it is large, then the effect of the rightmost picture in the first row of the picture below will appear, and the upper and lower white borders are very ugly. In another case, your picture may be squeezed and deformed, which is what the second row of pictures looks like.

Image title

Therefore, designers have to design a set of pictures for the startup interface, splash screen pictures, and some full-screen floating prompt boxes according to the resolution of iPhone X. Well, our workload has increased again.

What Designers Do – Pay Attention to Color Space

The display screen of the iPhone X uses the P3 color space. Compared with the traditional sRGB color space, the colors it displays will be richer and more realistic. Therefore, the old question of designers comes to “Why do I export pictures in Sketch?” The color is different on the phone? The answer is here. However, Jingjing thinks that we have no solution to this problem. After all, the color space follows the display medium. For example, your monitor is one color space, and your mobile phone is another. Therefore, we will ignore this invisible color difference. Alright.

Image title

What the designer has to do – pay attention to the way the video is displayed. Speaking of this, you will definitely complain about the big bangs. After all, it covers part of the video content, but you can also choose to shrink them and display them. It is also a good idea. The bangs are just Do not put anything. The following are Apple’s suggestions, let’s take a look.

Image title

What? What do you think of King Pesticide? Come on! Look at the picture below, it’s actually quite good if it doesn’t match.

Image title

What the designer has to do – change the interaction The change of the interaction is very obvious on the iPhone X, such as sliding up through the bottom control bar to return to the desktop and so on. You can take a look at the video display at the beginning of this article, and static electricity has introduced it in detail. In short, no matter whether you have a new mobile phone or not, you must adapt it as soon as possible. As for black technology such as face recognition, I have experienced static electricity and think it is amazing! The recognition speed is comparable to fingerprint recognition, and even smoother , sweaty hands like static electricity are really a blessing.

Don’t want to read the long article? Just read the summary!

1. Be sure to pay attention to the safe area of ??iPhone X, it is not enough to stretch the design draft directly

2. Pay attention to the adaptation of full-screen pictures and videos

3. You can use 375-812px to design under the double image, which is compatible with iPhone plus, that is to say, the triple image will become the mainstream?

4. The upper status bar area is 44pt high, and the lower control bar area is at least 34pt high (in case of double image)

5. Pay attention to the impact of changes in interaction methods.

Tips for thinking about problems: Please pay attention to the way static electricity analyzes problems. When you encounter a new thing, such as a new mobile phone, you can start with its resolution and size, and then calculate its screen density. In this way, you can immediately know whether some of its design rules are different from the old models. The way of thinking about problems is very important. You should try to analyze from this aspect, such as analyzing static articles, instead of just wanting a final result. Because the process is actually very important, especially for designers.




請輸入姓名或昵稱
如果您有任何疑問、需要更多信息或希望與我們建立合作請留言
=
(0)
Infocode藍(lán)暢Infocode藍(lán)暢
上一篇 2023年8月16日 下午10:36
下一篇 2023年8月17日 上午12:12

相關(guān)文章內(nèi)容推薦

日韩视频一区二区三区在线播放| 欧美在线观看天堂一区二区三区 | 牛牛影视久久网| 欧美日韩亚洲一区三区| 国精产品99永久一区一区| 日韩午夜在线| 久久综合免费视频影院| 国产精品亚洲成人| 亚洲美女尤物影院| 久久亚洲国产成人| 国产精品黄色| 亚洲精品视频在线看| 久久久精品五月天| 国产精品视频一区二区三区| 亚洲国产精品成人一区二区| 欧美在线亚洲一区| 国产精品福利影院| 亚洲精品日韩综合观看成人91| 久久精品国产亚洲一区二区三区| 国产精品超碰97尤物18| 亚洲精品国偷自产在线99热| 久久久欧美精品sm网站| 国产精品视频yy9099| 一区二区三区免费网站| 欧美高清在线播放| 影音先锋一区| 久久国产黑丝| 国产欧美日韩亚洲精品| 亚洲一级二级| 欧美日韩在线不卡一区| 亚洲精品综合| 欧美/亚洲一区| 尤物99国产成人精品视频| 久久不射中文字幕| 国产精品夜夜夜| 亚洲自拍偷拍一区| 欧美日韩在线第一页| 亚洲精品视频在线观看免费| 欧美+亚洲+精品+三区| 尤妮丝一区二区裸体视频| 久久久国产成人精品| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美一区1区三区3区公司| 欧美午夜视频网站| 夜夜爽www精品| 欧美另类高清视频在线| 亚洲乱码国产乱码精品精 | 亚洲精品亚洲人成人网| 免费欧美视频| 亚洲高清不卡av| 美女在线一区二区| 亚洲国产天堂网精品网站| 免费观看成人| 亚洲激情第一页| 欧美电影免费观看| 亚洲精品资源| 欧美日韩另类丝袜其他| 在线亚洲免费| 国产精品久久久久999| 国内综合精品午夜久久资源| 久久大逼视频| 激情欧美一区二区| 久久婷婷蜜乳一本欲蜜臀| 一区二区成人精品| 亚洲午夜成aⅴ人片| 欧美午夜久久| 亚洲欧美电影院| 国产精品综合久久久| 欧美夜福利tv在线| 国语自产精品视频在线看8查询8 | 国产视频不卡| 久久亚洲一区二区三区四区| 在线欧美亚洲| 欧美久久影院| 亚洲尤物精选| 国精品一区二区| 免费在线观看一区二区| 亚洲免费在线视频| 亚洲午夜视频| 国产欧美日韩精品a在线观看| 一区二区三区视频在线播放| 国产精品a久久久久| 欧美一区二区三区成人| 精品成人一区二区三区四区| 欧美精品一区二区在线观看| 亚洲综合精品| 在线一区亚洲| 一区二区欧美日韩| 国产欧美日韩免费| 另类天堂av| 99热在这里有精品免费| 国产精品亚发布| 久久婷婷久久一区二区三区| 亚洲精品一区二区三区婷婷月 | 国产欧美日本在线| 亚洲无限乱码一二三四麻| 国产精品青草久久久久福利99| 久久激情综合网| 亚洲人成人99网站| 国产精品免费看| 久久影音先锋| 一个色综合导航| 国产在线精品一区二区夜色| 国产婷婷97碰碰久久人人蜜臀| 一区二区日本视频| 国产亚洲欧美一区| 欧美激情视频一区二区三区免费 | 国产精品一二| 免费在线欧美黄色| 亚洲伊人久久综合| 亚洲二区免费| 国产精品夜夜嗨| 国产精品一区二区久久久久| 欧美日本一区二区高清播放视频| 亚洲美女啪啪| 国产日韩在线看| 欧美精品一二三| 久久精品日产第一区二区| 9国产精品视频| 激情婷婷久久| 国产精品日韩久久久| 欧美1区视频| 亚洲在线1234| 欧美人成在线视频| 久久久亚洲人| 午夜国产不卡在线观看视频| 亚洲区国产区| 狠狠爱综合网| 国产精品色网| 欧美激情综合在线| 久久精品一区二区三区不卡| 一区二区日韩免费看| 欧美一区二区三区免费视频| 欧美一区在线直播| 久久精品国产69国产精品亚洲| 最近中文字幕日韩精品| 国产日韩一区二区| 欧美日韩精品不卡| 久久天堂精品| 欧美一区网站| 亚洲午夜一二三区视频| 亚洲国产精品传媒在线观看| 国产一区二区三区久久| 欧美婷婷久久| 欧美国产日韩视频| 久久久亚洲午夜电影| 欧美在线播放| 亚洲免费小视频| 一区二区精品国产| 亚洲精品国产拍免费91在线| 一区二区三区在线高清| 国产日韩欧美高清| 国产精品久久99| 欧美日韩另类一区| 欧美精品一区二区三区蜜桃| 免费日韩视频| 美女网站久久| 久热精品视频在线免费观看| 欧美综合国产| 欧美一区视频| 欧美一区二区精美| 午夜精品99久久免费| 亚洲一区观看| 亚洲视频一区| 正在播放欧美一区| 在线亚洲高清视频| 日韩一区二区精品葵司在线| 亚洲精品免费在线| 亚洲另类春色国产| 亚洲精品免费一区二区三区| 亚洲国产mv| 亚洲国产精品123| 亚洲国产欧美一区二区三区久久| 亚洲成人在线网| 亚洲成在线观看| 在线色欧美三级视频| 永久域名在线精品| 在线观看一区视频| 亚洲第一偷拍| 亚洲激情视频| 亚洲精品乱码久久久久久黑人| 亚洲经典在线| 在线观看91精品国产麻豆| 亚洲性夜色噜噜噜7777| aa级大片欧美| 亚洲午夜精品一区二区| 这里是久久伊人| 亚洲视频在线观看| 久久亚洲精品欧美| 国模叶桐国产精品一区| 国产一区二区三区av电影 | 国外成人在线视频网站| 狠狠久久婷婷| 亚洲第一精品影视| 最新国产成人在线观看| 一区二区三区不卡视频在线观看| 亚洲视频一区| 欧美一区二区三区免费视| 久久久久久9999| 久久久噜噜噜久久久|