CN105187634A - Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen - Google Patents

Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen Download PDF

Info

Publication number
CN105187634A
CN105187634A CN201510484035.1A CN201510484035A CN105187634A CN 105187634 A CN105187634 A CN 105187634A CN 201510484035 A CN201510484035 A CN 201510484035A CN 105187634 A CN105187634 A CN 105187634A
Authority
CN
China
Prior art keywords
control
terminal applies
terminal
intelligent terminal
father
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.)
Pending
Application number
CN201510484035.1A
Other languages
Chinese (zh)
Inventor
蒋鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201510484035.1A priority Critical patent/CN105187634A/en
Publication of CN105187634A publication Critical patent/CN105187634A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and a system for enabling a terminal application to dynamically adapt to an intelligent terminal screen. The method comprises the following steps: acquiring screen parameters and a terminal application parameter of a current intelligent terminal; reading a display interface basic value of a corresponding terminal application according to the terminal application parameter; determining a positional relationship of the terminal application in the intelligent terminal by using a positional relationship algorithm according to the screen parameters and the display interface basic value of the terminal application; and displaying the terminal application in the intelligent terminal according to the determined positional relationship. Through adoption of the method and the system, the consistency in the display effect of the terminal application in different intelligent terminals can be kept effectively; the difference among display effects in different intelligent terminals is avoided; and bad experience effects brought to a user by the terminal application are effectively avoided. Thus, the adaptability of a terminal application platform is enhanced, and a set of complete screen adaption resolution algorithm is provided for a large number of intelligent terminal developers.

Description

A kind of method and system of terminal applies dynamic adaptation intelligent terminal screen
Technical field
The present invention relates to terminal applies display technique field, particularly relate to a kind of method and system of terminal applies dynamic adaptation intelligent terminal screen.
Background technology
Popularizing along with smart mobile phone, is flooded with various screen size, density, resolution intelligent terminal on the market.And there is no relevant industries code requirement.Intelligent terminal application developer, when developing intellectual resource terminal applies, cannot ensure that its Application and Development can all intelligent terminals in adaptive market.Often occur being applied in different intelligent display effect of terminal inconsistent.
Summary of the invention
Technical problem to be solved by this invention is for the deficiencies in the prior art, provides a kind of method and system of terminal applies dynamic adaptation intelligent terminal screen.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of method of terminal applies dynamic adaptation intelligent terminal screen, comprises the steps:
Step 1, obtains screen parameter and the terminal applies parameter of current intelligent terminal;
Step 2, reads the displaying interface basis value of corresponding terminal applies according to terminal applies parameter;
Step 3, the displaying interface basis value according to screen parameter and terminal applies utilizes position relationship algorithm, determines the position relationship of terminal applies in intelligent terminal;
Step 4, shows described terminal applies according to the position relationship determined in intelligent terminal.
The invention has the beneficial effects as follows: the present invention is when program initialization, obtain the parameters such as current intelligent terminal screen resolution, by position relationship algorithm, calculate the position of UI control in current intelligent terminal of terminal applies, by arranging the position relationship determination control of UI control in the position of screen.The present invention can effectively keep terminal applies at different intelligent terminal display same effect, avoid the generation in different intelligent display effect of terminal otherness, effectively stop terminal applies and bring bad experience effect to user, thus strengthen terminal application platform suitability, separate annual reporting law for vast intelligent terminal developer provides a set of perfect screen adaptation.
A system for terminal applies dynamic adaptation intelligent terminal screen, comprises parameter acquisition module, basic value read module, position determination module and showing interface module;
Described parameter acquisition module, it is for obtaining screen parameter and the terminal applies parameter of current intelligent terminal;
Described basic value read module, it is for reading the displaying interface basis value of corresponding terminal applies according to terminal applies parameter;
Described position determination module, it, for utilizing position relationship algorithm according to the displaying interface basis value of screen parameter and terminal applies, determines the position relationship of terminal applies in intelligent terminal;
Described showing interface module, it for showing described terminal applies according to the position relationship determined in intelligent terminal.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of terminal applies dynamic adaptation intelligent terminal screen of the present invention;
Fig. 2 is the system block diagram of a kind of terminal applies dynamic adaptation intelligent terminal screen of the present invention.
In accompanying drawing, the list of parts representated by each label is as follows:
1, parameter acquisition module, 2, basic value read module, 3, position determination module, 4, showing interface module.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of method of terminal applies dynamic adaptation intelligent terminal screen, comprises the steps:
Step 1, obtains screen parameter and the terminal applies parameter of current intelligent terminal;
Step 2, reads the displaying interface basis value of corresponding terminal applies according to terminal applies parameter;
Step 3, the displaying interface basis value according to screen parameter and terminal applies utilizes position relationship algorithm, determines the position relationship of terminal applies in intelligent terminal;
Step 4, shows described terminal applies according to the position relationship determined in intelligent terminal.
Wherein, described screen parameter comprises resolution, and described terminal applies parameter is control ID.
Being implemented as of step 2: the showing interface basic value reading this pre-configured control according to the control ID of terminal applies from database.
Described showing interface basic value comprise wide, high, top margin, bottom margin, the left side apart from, the right according to, occupy left, occupy on right, residences, under residence, width self adaptation, height adaptive, horizontal center and vertical center.
The UI control of terminal applies to be presented is designated as current control, the control of carrying current control is designated as father's control, as the control without carrying, the screen of intelligent terminal is designated as father's control, being implemented as of step 3:
Step 3.1, judges that current control is the need of top set, if need to perform step 3.2, otherwise performs step 3.3;
Step 3.2, is set to the width of current control with father's control with wide;
Step 3.3, judges that current control is the need of bottom set, if need to perform step 3.4, otherwise calls to be horizontally disposed with and arranges with vertical, execution step 3.5;
Step 3.4, be set to by the width of current control with father's control with wide, the height-current control of top margin=father's control is high;
Step 3.5, if width self adaptation, is set to current control width with father's control with wide; If horizontal center, then left side distance=father's control width-distance-the right, left side certificate of current control is set; If occupy right, then arrange left side distance=father's control of current control wide-local width.
Wherein key code is as follows:
As shown in Figure 2, a kind of system of terminal applies dynamic adaptation intelligent terminal screen, comprises parameter acquisition module 1, basic value read module 2, position determination module 3 and showing interface module 4; Described parameter acquisition module 1, it is for obtaining screen parameter and the terminal applies parameter of current intelligent terminal; Described basic value read module 2, it is for reading the displaying interface basis value of corresponding terminal applies according to terminal applies parameter; Described position determination module 3, it, for utilizing position relationship algorithm according to the displaying interface basis value of screen parameter and terminal applies, determines the position relationship of terminal applies in intelligent terminal; Described showing interface module 4, it for showing described terminal applies according to the position relationship determined in intelligent terminal.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for terminal applies dynamic adaptation intelligent terminal screen, is characterized in that, comprise the steps:
Step 1, obtains screen parameter and the terminal applies parameter of current intelligent terminal;
Step 2, reads the displaying interface basis value of corresponding terminal applies according to terminal applies parameter;
Step 3, the displaying interface basis value according to screen parameter and terminal applies utilizes position relationship algorithm, determines the position relationship of terminal applies in intelligent terminal;
Step 4, shows described terminal applies according to the position relationship determined in intelligent terminal.
2. the method for a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 1, it is characterized in that, described screen parameter comprises resolution, and described terminal applies parameter is control ID.
3. the method for a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 2, is characterized in that, being implemented as of step 2: the showing interface basic value reading this pre-configured control according to the control ID of terminal applies from database.
4. the method for a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 3, it is characterized in that, described showing interface basic value comprise wide, high, top margin, bottom margin, the left side apart from, the right according to, occupy left, occupy on right, residences, under residence, width self adaptation, height adaptive, horizontal center and vertical center.
5. the method for a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 3, it is characterized in that, the UI control of terminal applies to be presented is designated as current control, the control of carrying current control is designated as father's control, as the control without carrying, the screen of intelligent terminal is designated as father's control, being implemented as of step 3:
Step 3.1, judges that current control is the need of top set, if need to perform step 3.2, otherwise performs step 3.3;
Step 3.2, is set to the width of current control with father's control with wide;
Step 3.3, judges that current control is the need of bottom set, if need to perform step 3.4, otherwise calls to be horizontally disposed with and arranges with vertical, execution step 3.5;
Step 3.4, be set to by the width of current control with father's control with wide, the height-current control of top margin=father's control is high;
Step 3.5, if width self adaptation, is set to current control width with father's control with wide; If horizontal center, then left side distance=father's control width-distance-the right, left side certificate of current control is set; If occupy right, then arrange left side distance=father's control of current control wide-local width.
6. a system for terminal applies dynamic adaptation intelligent terminal screen, is characterized in that, comprises parameter acquisition module, basic value read module, position determination module and showing interface module;
Described parameter acquisition module, it is for obtaining screen parameter and the terminal applies parameter of current intelligent terminal;
Described basic value read module, it is for reading the displaying interface basis value of corresponding terminal applies according to terminal applies parameter;
Described position determination module, it, for utilizing position relationship algorithm according to the displaying interface basis value of screen parameter and terminal applies, determines the position relationship of terminal applies in intelligent terminal;
Described showing interface module, it for showing described terminal applies according to the position relationship determined in intelligent terminal.
7. the system of a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 6, it is characterized in that, described screen parameter comprises resolution, and described terminal applies parameter is control ID.
8. the system of a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 7, is characterized in that, being implemented as of step 2: the showing interface basic value reading this pre-configured control according to the control ID of terminal applies from database.
9. the system of a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 8, it is characterized in that, described showing interface basic value comprise wide, high, top margin, bottom margin, the left side apart from, the right according to, occupy left, occupy on right, residences, under residence, width self adaptation, height adaptive, horizontal center and vertical center.
10. the system of a kind of terminal applies dynamic adaptation intelligent terminal screen according to claim 8, it is characterized in that, described position determination module, first judges that current control is the need of top set, if need the width of current control to be set to father's control with wide; Otherwise judge that current control is the need of bottom set, if need to be set to by the width of current control with father's control with wide, the height-current control of top margin=father's control is high; Otherwise call to be horizontally disposed with and arrange with vertical, if width self adaptation, current control width is set to father's control with wide; If horizontal center, then left side distance=father's control width-distance-the right, left side certificate of current control is set; If occupy right, then arrange left side distance=father's control of current control wide-local width.
CN201510484035.1A 2015-08-07 2015-08-07 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen Pending CN105187634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510484035.1A CN105187634A (en) 2015-08-07 2015-08-07 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510484035.1A CN105187634A (en) 2015-08-07 2015-08-07 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen

Publications (1)

Publication Number Publication Date
CN105187634A true CN105187634A (en) 2015-12-23

Family

ID=54909471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510484035.1A Pending CN105187634A (en) 2015-08-07 2015-08-07 Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen

Country Status (1)

Country Link
CN (1) CN105187634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007919A (en) * 2019-04-08 2019-07-12 深圳市多翼电智科技有限公司 A kind of dynamic density screen adaptation method and system for the automatic airport of unmanned plane
CN113553017A (en) * 2021-07-28 2021-10-26 展讯半导体(南京)有限公司 Terminal screen adapting method, system, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707946A (en) * 2012-04-17 2012-10-03 Tcl集团股份有限公司 Application program interface processing method and device
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103823620A (en) * 2014-03-04 2014-05-28 飞天诚信科技股份有限公司 Screen adaption method and device
CN103885755A (en) * 2012-12-19 2014-06-25 腾讯科技(深圳)有限公司 Method and device for implementing screen matching of owner-draw controls
CN103984477A (en) * 2014-04-01 2014-08-13 深圳市云来网络科技有限公司 Method and device for adapting UI to mobile clients in different screen sizes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707946A (en) * 2012-04-17 2012-10-03 Tcl集团股份有限公司 Application program interface processing method and device
CN102890632A (en) * 2012-09-18 2013-01-23 深圳市融创天下科技股份有限公司 Screen adaptation method, system and terminal device
CN103885755A (en) * 2012-12-19 2014-06-25 腾讯科技(深圳)有限公司 Method and device for implementing screen matching of owner-draw controls
CN103823620A (en) * 2014-03-04 2014-05-28 飞天诚信科技股份有限公司 Screen adaption method and device
CN103984477A (en) * 2014-04-01 2014-08-13 深圳市云来网络科技有限公司 Method and device for adapting UI to mobile clients in different screen sizes

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007919A (en) * 2019-04-08 2019-07-12 深圳市多翼电智科技有限公司 A kind of dynamic density screen adaptation method and system for the automatic airport of unmanned plane
CN113553017A (en) * 2021-07-28 2021-10-26 展讯半导体(南京)有限公司 Terminal screen adapting method, system, equipment and medium

Similar Documents

Publication Publication Date Title
CN102880849B (en) A kind of two-dimensional code identification method, and equipment
CN106095437B (en) The implementation method and device of the user interface layout type of RTL from right to left
CN105955733B (en) A kind of method, apparatus and mobile terminal for modifying icon
CN105046254A (en) Character recognition method and apparatus
CN102880385A (en) Interface display method and interface display device
CN108279963B (en) Single Linux kernel multi-Android system intelligent terminal display virtualization method
CN104571928A (en) Interface display control method and device
CN113689574A (en) Digital twinning processing method, apparatus and machine readable medium
CN105187634A (en) Method and system for enabling terminal application to dynamically adapt to intelligent terminal screen
CN111767002A (en) Page display method, device, equipment and storage medium
CN109324796A (en) Quick interface arrangement method and device
CN106919414B (en) Link request processing method and device
CN111857803A (en) Page updating method, device, server and storage medium
CN105590241B (en) Self-adaptive electronic bill implementation method and system
CN113703330A (en) Method, device and system for cross-platform control equipment and processor
CN109634695B (en) Method and device for automatically adapting horizontal and vertical screens of software on SDK interface
CN112286785B (en) Abnormality detection method and device for user interface
CN102004646A (en) Method, device and multimedia terminal for processing user interface (UI) of on screen display (OSD)
CN103677810A (en) Service mobile application system and application method thereof
CN107507265A (en) Model pinup picture method and device based on three-dimensional rendering two dimension
CN112561793A (en) Planar design space conversion method and system
CN104850297A (en) Display method for control, and electronic equipment
CN104360854A (en) Information processing method and electronic equipment
CN112749229A (en) Data conversion method, device, storage medium and electronic equipment
CN110557726A (en) Information pushing method and related product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication