Mobile Screen Fitting

Source: Internet
Author: User
Keywords Zoom different fit mobile screen height

As the phone screen continues to increase, but also encountered some user phone screen or 240*320 this screen size, of course, also exists in some irregular http://www.aliyun.com/zixun/aggregation/10134.html " > Screen resolution heart inch size. For many UI, different phone screens often draw multiple sets of graphs to ensure that the handset client matches on different screens. For the mobile phone client in the implementation of the different screen planning, and to develop a specific control to calculate the location of the fill area algorithm, this is the earlier for different mobile phone screen matching to make an interface adaptation algorithm.

First identify a few mobile screen areas (first from 240*320 and 320*240):
1. Filling area
CONTAINER: In this standard, the interface is controlled by the concept of the padding area, the entire page is composed of different sizes of fill areas, and different padding areas have different scaling rules when adapting to the screen.
2, screen
Screen: The root padding area, which is the size of the visible area at each resolution, is equal to the resolution of a particular phone. As in N73, the screen parameter is 240*320.

3, the benchmark screen
For both horizontal and vertical screens, there are two different sets of datum screens, a vertical datum screen 240*320 and a horizontal datum screen 320*240, which can be toggled between the two datum screens.

Vertical 240*320 Appropriate screen scaling:
The screen scaling of the vertical screen is based on the 240*320 size and can be scaled to the size of the 480*640 screen. Meet the needs of iphone and Android users.

Font scaling for vertical screens: in the process of adapting a control to a different screen, a control often needs to scale according to the size of the font.

Principles to follow--the principle of the tail
In the normal interface of the process, from the first tail, the middle of the principle, that is, the header to determine the height, and then determine the height of the footer, and then according to the screen height and the height of the end of the content filled area, to complete the adjustment of the entire interface layout. Control width is based on the proportional scaling principle.

(Common Interface)
(Android, iphone touchscreen type)
(Nokia, Kjava and other keyboard types)

Scaling principle:

Interface in the adaptation of different interfaces, the main use of two different scaling rules, different filling areas according to the need to use font scaling and scaling.

The entire scaling rule design from the picture in the different screen adaptation mode, we assume that there is a n73 mobile phone, screen resolution for 240*320, in this mobile phone full screen to see a picture of 480*640, the phone just shows up, the results are as follows (red box for the screen visible area):

If we look at a E63 cell phone (resolution 320*240), the effect is (the red box is the viewable area) in different viewing modes:

(Highly adaptive effect)

(Width adaptive effect)

The effect can be seen, with the width of the adaptive effect of scaling, with the upper and lower scroll bar can achieve better results, while ensuring that the picture content can be clearly viewed. Therefore, drawing on the image of the width of adaptive, the interface as a picture to handle, through the different screen resolution width ratio as the adjustment of wallpaper to maintain proportional scaling of the interface.

Start interface:

240*320-320*240:


240*320-Vertical Screen Expansion:


320*240-Horizontal Screen Expansion:


General interface:

240*320-320*240:


240*320-Vertical Screen Expansion:


320*240-Horizontal Screen Expansion:


Sudoku interface, the program will automatically sort the icons, followed by the general interface adaptation principle.

Source: http://www.537520.com/?p=762

Related Article

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.