CN101453511B - Method for mobile phone platform UI interface adaptation - Google Patents
Method for mobile phone platform UI interface adaptation Download PDFInfo
- Publication number
- CN101453511B CN101453511B CN2007101790106A CN200710179010A CN101453511B CN 101453511 B CN101453511 B CN 101453511B CN 2007101790106 A CN2007101790106 A CN 2007101790106A CN 200710179010 A CN200710179010 A CN 200710179010A CN 101453511 B CN101453511 B CN 101453511B
- Authority
- CN
- China
- Prior art keywords
- program
- mobile phone
- platform
- interface
- screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a self-adaptive method for an UI interface of a mobile phone platform, which comprises the steps: engineering reference and code sharing to an UI display logic layer code processing flow during the program development first, and then the self-adaption to different mobile phone platforms during the program operation. The method ensures that the interface automatically adapts to a mobile phone screen, can also realize a program that a set of program codes generate two versions (PPC, and Smartphone), and bring convenience to the development of an UI program and the version management.
Description
Technical field
The present invention relates to a kind of method of mobile phone platform UI interface adaptation,
Background technology
Windows Mobile system is divided into two large platform Pocket PC and Smartphone; Wherein Pocket PC supports touch-screen and keyboard, and Smartphone only supports keyboard, and the mobile phone screen resolution of this two large platforms support has 640*480; 320*240; 240*240,176*220 etc. are multiple, and the low screen of resolution is can content displayed less relatively.Some mobile phone can also dynamically change the direction anyhow of screen.Brought very big difficulty so just for UI procedure development and version management.
This method is employed in and handles the Resize incident in each Form derived class, according to the size and the position of all controls among the screen size adjustment Form.Whole procedure is divided into logical process layer and boundary layer.Set up PPC and two engineerings of Smartphone respectively with VS.Net2005, two engineerings are quoted same set of logical process layer identification code, and program that can not be public in the interface program is quoted respectively by two engineerings.Pack with two engineering compiling respectively during the fabrication and installation bag.So both can accomplish the automatic adaptive mobile phone screen in interface, can accomplish to the full extent also that a cover program code generated the program of two versions (PPC, Smartphone).
Adopt the present invention to accomplish the automatic adaptive mobile phone screen in interface, can accomplish to the full extent that also a cover program code generates the program of two versions (PPC, Smartphone).For UI procedure development and version management have brought facility.
Summary of the invention
Main purpose of the present invention is to provide a kind of method of mobile phone platform UI interface adaptation, through in each Form derived class, handling the Resize incident, according to the size and the position of all controls among the screen size adjustment Form.Make the automatic adaptive mobile phone screen in interface
The objective of the invention is to realize like this:
1, a kind of method of mobile phone platform UI interface adaptation is characterized in that: this method comprises following step at least:
Step 1: during program development, for UI display logic layer identification code handling process, engineering is quoted and code sharing;
Step 2: during program running, for the self adaptation of different mobile phones platform;
2, during above-mentioned steps 1 program development, for UI display logic layer identification code handling process, the concrete steps that engineering is quoted with code sharing are:
Step 11: logical layer code sharing;
Step 12: quote the different platform project file, like Pocket PC version engineering, Smart Phone version engineering;
Step 13: compiling different platform working procedure;
3, during above-mentioned steps 2 program running, be for the adaptive concrete steps of different mobile phones platform:
Step 21: the different editions program is installed on mobile phone;
Step 22: during operation, program reference forms derived class, the Resize incident is informed screen resolution information;
Step 23: the operation of boundary layer code, according to different mobile phones platform (like Pocket PC interface or Smart Phone interface) response Resize incident.Dynamically adjust the position and the size of control in the interface according to screen size;
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Referring to Fig. 1, the method for a kind of mobile phone platform UI interface adaptation of the present invention mainly comprises following step:
1, a kind of mobile phone platform UI interface adaptation method, it is characterized in that: this method comprises following step at least:
Step 1: during program development, for UI display logic layer identification code handling process, engineering is quoted and code sharing;
Step 2: during program running, for the self adaptation of different mobile phones platform;
2, during above-mentioned steps 1 program development, for UI display logic layer identification code handling process, the concrete steps that engineering is quoted with code sharing are:
Step 11: logical layer code sharing;
Step 12: quote the different platform project file, like Pocket PC version engineering, Smart Phone version engineering;
Step 13: compiling different platform working procedure;
3, during above-mentioned steps 2 program running, be for the adaptive concrete steps of different mobile phones platform:
Step 21: the different editions program is installed on mobile phone;
Step 22: during operation, program reference forms derived class, the Resize incident is informed screen resolution information;
Step 23: the operation of boundary layer code, according to different mobile phones platform (like Pocket PC interface or Smart Phone interface) response Resize incident.Dynamically adjust the position and the size of control in the interface according to screen size;
Above-mentioned technical scheme can make the automatic adaptive mobile phone screen in interface when implementing, and can accomplish to the full extent that also a cover program code generates the program of two versions (PPC, Smartphone).For UI procedure development and version management have brought facility.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has carried out detailed explanation with reference to the above embodiments to the present invention,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.
Claims (1)
1. mobile phone platform UI interface adaptation method; It is characterized in that: in each Form derived class, handle the Resize incident; According to the size and the position of all controls among the screen size adjustment Form, described method comprises program development and program running two aspects at least, is specially:
When program development, for UI display logic layer identification code handling process, engineering is quoted and code sharing, and concrete steps are:
Step 1: treat program newly developed, the logical layer code sharing;
Step 2: treat program reference different platform project file newly developed, described platform engineering file can be Pocket PC version project file, also can be Smart Phone version project file;
Step 3: compiling different platform working procedure;
When program running, the self-adjusting concrete steps of mobile phone platform UI interface are:
Step 1: the different editions program is installed on mobile phone;
Step 2: during operation, program reference forms derived class, the resolution information of Resize incident notifying program screen;
Step 3: the operation of boundary layer code, according to different mobile phones platform response Resize incident; Dynamically adjust the position and the size of control in the interface, the automatic adaptive mobile phone screen in interface according to screen size.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101790106A CN101453511B (en) | 2007-12-07 | 2007-12-07 | Method for mobile phone platform UI interface adaptation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101790106A CN101453511B (en) | 2007-12-07 | 2007-12-07 | Method for mobile phone platform UI interface adaptation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101453511A CN101453511A (en) | 2009-06-10 |
CN101453511B true CN101453511B (en) | 2012-08-01 |
Family
ID=40735526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101790106A Expired - Fee Related CN101453511B (en) | 2007-12-07 | 2007-12-07 | Method for mobile phone platform UI interface adaptation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101453511B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063307B (en) * | 2011-01-07 | 2015-07-15 | 杭州海康威视数字技术股份有限公司 | Graphical user interface creating method and system of embedded digital video recorder |
CN102779063A (en) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | Method for providing application invocation and server |
CN107526505B (en) * | 2013-12-27 | 2021-07-16 | 联想(北京)有限公司 | Data processing method and electronic equipment |
CN106919375B (en) * | 2015-12-28 | 2020-06-05 | 航天信息股份有限公司 | Screen self-adaption method and system on mobile terminal equipment |
CN107707646A (en) * | 2017-09-27 | 2018-02-16 | 深圳市九洲电器有限公司 | SVN server management methods and system based on set-top box project |
CN109582211B (en) * | 2018-12-25 | 2021-08-03 | 努比亚技术有限公司 | Touch area adaptation method and device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1195244A (en) * | 1997-03-13 | 1998-10-07 | 阿兰·罗斯曼 | Method for displaying cells having a width greater than the display width of a screen |
CN1652621A (en) * | 2004-02-02 | 2005-08-10 | 英华达股份有限公司 | Mobile phone communication device with automatic screen adjustment function and method for automatic screen adjustment |
CN1866244A (en) * | 2006-06-23 | 2006-11-22 | 浙江大学 | Adaptive display method for graphic image in cooperative design in pervasive environment |
-
2007
- 2007-12-07 CN CN2007101790106A patent/CN101453511B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1195244A (en) * | 1997-03-13 | 1998-10-07 | 阿兰·罗斯曼 | Method for displaying cells having a width greater than the display width of a screen |
CN1652621A (en) * | 2004-02-02 | 2005-08-10 | 英华达股份有限公司 | Mobile phone communication device with automatic screen adjustment function and method for automatic screen adjustment |
CN1866244A (en) * | 2006-06-23 | 2006-11-22 | 浙江大学 | Adaptive display method for graphic image in cooperative design in pervasive environment |
Non-Patent Citations (3)
Title |
---|
Jim wilson.Windows Mobile 5.0中为开发人员提供的新功能(11).《http://developer.51cto.com/art/200701/38716_10.htm》.2007, * |
Jim Wilson.Windows Mobile 6 中为开发人员提供的新功能(三).《http://www.mcuol.com/Tech/117/13848.htm》.2007, * |
MS.开发识别屏幕方向的Windows Mobile 应用程序.《http://develop.csai.cn/mobile/NO000007.htm》.2006, * |
Also Published As
Publication number | Publication date |
---|---|
CN101453511A (en) | 2009-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101453511B (en) | Method for mobile phone platform UI interface adaptation | |
EP3200061B1 (en) | Icon management method and apparatus, and terminal | |
CN106970735B (en) | Information processing method and electronic equipment | |
US20130247021A1 (en) | Electronic device, system and method for updating and uninstalling software | |
CN102622210B (en) | Method for displaying help information and device | |
CN103914314B (en) | Method and device for adjusting brightness of display screen | |
CN105138382A (en) | Method and terminal for upgrading Android system | |
US20160210142A1 (en) | Method, apparatus and storage medium for dynamically patching function | |
US20130222299A1 (en) | Method and apparatus for editing content view in a mobile device | |
CN104077017A (en) | Electronic equipment and control method thereof | |
CN102855053B (en) | The method inputted based on the information contrast of mobile terminal and mobile terminal | |
CN101673358A (en) | Method and device for managing authority in workflow component based on authority component | |
CN105575390A (en) | Voice control method and device | |
EP2805233B1 (en) | Installation engine and package format for parallelizable, reliable installations | |
CN106325720B (en) | Information processing method and information processing apparatus | |
CN102331944A (en) | Application adding method based on electronic store | |
CN104503790B (en) | The management method and system of a kind of application version, intelligent terminal | |
CN103324716B (en) | A kind of application database update method based on Android system | |
JP5471883B2 (en) | Information processing apparatus, information processing method, and information processing program | |
CN101674375A (en) | Display method of helping prompt for mobile communication terminal and system thereof | |
CN103135911A (en) | Information processing method and electronic terminal | |
CN105511273A (en) | Client operation management method and client | |
CN111949251A (en) | Method for realizing software development and operation across platforms | |
CN103631480A (en) | View object control method and electronic equipment | |
CN104050058A (en) | Method and system for restoring data and related devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120801 Termination date: 20131207 |