CN109032749A - A kind of adaptive terminal device resolution method and device - Google Patents

A kind of adaptive terminal device resolution method and device Download PDF

Info

Publication number
CN109032749A
CN109032749A CN201810936778.1A CN201810936778A CN109032749A CN 109032749 A CN109032749 A CN 109032749A CN 201810936778 A CN201810936778 A CN 201810936778A CN 109032749 A CN109032749 A CN 109032749A
Authority
CN
China
Prior art keywords
grid
resolution
terminal device
module
software module
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.)
Granted
Application number
CN201810936778.1A
Other languages
Chinese (zh)
Other versions
CN109032749B (en
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.)
Chengdu Tide Polytron Technologies Inc
Original Assignee
Chengdu Tide Polytron Technologies Inc
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 Chengdu Tide Polytron Technologies Inc filed Critical Chengdu Tide Polytron Technologies Inc
Priority to CN201810936778.1A priority Critical patent/CN109032749B/en
Publication of CN109032749A publication Critical patent/CN109032749A/en
Application granted granted Critical
Publication of CN109032749B publication Critical patent/CN109032749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a kind of method and devices of adaptive terminal device resolution, carry out grid division to current optimum resolution according to the typesetting of software, and the specification of its corresponding software module is formulated according to the grid size of division;Grid division is carried out respectively to maximum resolution and minimum resolution according to all specifications of the software module of formulation;All integer grids between maximum grid and minimum grid are subjected to optimal typesetting, and typesetting, the specification of software module and upper left position coordinate are stored into configuration file;The grid size of computing terminal equipment current resolution;According to the width of the automatic software for calculation module of current grid size, the upper left position of height and software module, to complete the adaptation to terminal device resolution ratio.User in the case where too small resolution device that the invention solves the problems, such as that conventional adaptation method occurs can not obtain effective information, and the user experience is improved.

Description

A kind of adaptive terminal device resolution method and device
Technical field
The invention belongs to technical field of voice recognition more particularly to a kind of methods and dress of adaptive terminal device resolution It sets.
Background technique
As the frequent updating of terminal device is regenerated, the resolution ratio of terminal device is also more and more diversified.In order to guarantee to be The normal display of system needs the resolution ratio for terminal device to be developed in development and application.Current adaptive terminal equipment Resolution method is mainly carried out etc. than contracting using carrying out the practical wide height of calculating elements after wide high normalization to terminal device resolution ratio Display is put, to be precisely adapted to the terminal device of different resolution, but this method will display under small resolution ratio terminal device Element compression, not can guarantee the validity of content, and the pixel that may result in font size is less than the size that can be read;And have Font size can be limited in 12px or more to guarantee that user reads, when needing to zoom to text using conventional method by browser When below the pixel, font size can be locked in 12px by browser, it is impossible to the design one when guaranteeing interface and originally developing Cause, have text exceed, layout distortion the problems such as appearance.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of adaptive terminal device resolution method and dresses It sets, solves that traditional adaptation method is adapted to actual effect that all terminal devices are shown and experience is poor, directly use The mode of scaling cause user can not good reading content the problem of, can make through the invention software systems perfection adaptation eventually End equipment resolution ratio ensure that content validity, friendly seen in user.
For achieving the above object, the present invention provides technical solution it is as follows:
On the one hand, this application provides a kind of methods of adaptive terminal device resolution, this method comprises:
Grid division is carried out to current optimum resolution according to the typesetting of software;
The specification of its corresponding software module is formulated according to the grid size of division, the specification includes that software module is wide Specification and high specification;
The maximum resolution and minimum resolution for setting existing terminal device, according to all specifications of the software module of formulation Grid division is carried out respectively to maximum resolution and minimum resolution;
All integer grids between maximum grid and minimum grid are subjected to optimal typesetting;
Typesetting, the specification of software module and software module position coordinates are stored into configuration file;
The grid size of computing terminal equipment current resolution;
According to the grid size of terminal device current resolution, automatically selects and show pattern, and software for calculation mould accordingly The location information of block completes the adaptation to terminal device resolution ratio.
The beneficial effects of the present invention are: invention software module uses the form of plurality of specifications, lead in adaptive terminal The control to grid is crossed, software module can calculate size and position automatically and carry out typesetting, currently divide by computing terminal equipment The grid of resolution, software module can choose optimal specification, and the location information of software for calculation module, complete to all terminals The adaptation of device resolution.Because the specification of software module is built according to the optimal form that shows of present terminal device resolution , so ensure that content validity, friendly seen in user.In guarantee user valid data can be seen by terminal device In the case where, the optimization for having carried out resolution adaptation to all terminal devices, having showed form solves the appearance of conventional adaptation method The problem of user can not obtain effective information in the case where too small resolution ratio terminal device, the user experience is improved.
On the other hand, this application provides a kind of device of adaptive terminal device resolution, which includes:
First grid division module, for carrying out grid division to current optimum resolution according to the typesetting of software;
Specification institution module formulates the specification of its corresponding software module, the rule for the grid size according to division Lattice include the wide specification of software module and high specification;
Second grid division module, for setting the maximum resolution and minimum resolution of existing terminal device, and according to All specifications of the software module of formulation carry out grid division to maximum resolution and minimum resolution respectively;
Type-setting module, for all integer grids between maximum grid and minimum grid to be carried out optimal row Version;
Storage configuration module, for the specification of typesetting, software module and the storage of software module position coordinates is literary at configuration Part;
Computing module, the grid size for computing terminal equipment current resolution;
Adaptation module automatically selects for the grid size according to terminal device current resolution and shows pattern accordingly, And the location information of software for calculation module, complete the adaptation to terminal device resolution ratio.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is software module typesetting schematic diagram of the invention;
Fig. 3 is the division of terminal device resolution grids and software module specification schematic diagram of the invention;
Fig. 4 is grid design schematic diagram of the invention;
Fig. 5 is that terminal device resolution grids of the invention divide boundary value setting schematic diagram;
Fig. 6 is of the invention for different grid design schematic layout patterns;
Fig. 7 is software module specifications design schematic diagram of the invention;
Fig. 8 is the device of the invention structure chart.
Specific embodiment
A specific embodiment of the invention is described with reference to the accompanying drawing, preferably so as to those skilled in the art Understand the present invention.Requiring particular attention is that in the following description, when known function and the detailed description of design perhaps When can desalinate main contents of the invention, these descriptions will be ignored herein.
Embodiment 1
As shown in Figure 1, a kind of method of adaptive terminal device resolution, this method comprises:
Grid division is carried out to current optimum resolution according to the typesetting of software, and specification is carried out to software for composing module Definition;
For example, common resolution ratio includes but is not limited to following: 4096*2160,1920*1080,1600*900,1366* 768,1280*720,800*600,375*667, it is assumed that initially application is designed according to the resolution ratio of 1920*1080, then just Grid division is carried out to 1920*1080, and formulates the specification of the software for composing module of design, mode is as follows:
Assuming that using initial software module typesetting, as shown in Fig. 2, according to typesetting pattern reasonability, by terminal device into Row grid division is 4 × 4, and gives software module formulation corresponding specification, as shown in Figure 3.
It can also be according to the different division grids voluntarily for showing typesetting or demand, as shown in Figure 4.
In the present embodiment, using terminal device resolution ratio, grid is set as 8 × 8 for 1920 × 1080.
According to the higher terminal device of occupation rate of market, setting terminal equipment maximum resolution and minimum resolution, according to All specifications of the software module of formulation, are set separately grid to maximum resolution and minimum resolution, to calculate current end Grid division of the end equipment in the case where setting up rule;For example, define matched highest resolution be 4096 × 2160 when, grid division It is 16 × 16, when lowest resolution is 375 × 667, grid division is 1 × 2, as shown in Figure 5.
As shown in fig. 6, integer grid all in the section of maximum grid and minimum grid is subjected to optimal typesetting, and And typesetting, the specification of software module and upper left position coordinate are stored into configuration file
According to the specification of software module in each grid layout, form most preferably is showed to software module progress and is built, Guarantee validity, the friendly of content seen in user, as shown in Figure 7.
The grid size of computing terminal equipment current resolution, formula are as follows:
Wherein, Row indicates grid line, and Col indicates grid column;Rmax indicates that the maximum number of lines of setting grid, Rmin indicate Set the minimum line number of grid;Cmax indicates the maximum number of column of setting grid;The minimum columns of Cmin fixed grid lattice;PWmax is indicated The pixel of the maximum terminal device of the resolution ratio being adapted to is wide, and PWmin indicates the be adapted to the smallest terminal device of resolution ratio Pixel is wide;PHmax indicates that the pixel of the be adapted to maximum terminal device of resolution ratio is high, and PHmin indicates be adapted to resolution ratio The pixel of the smallest terminal device is high;PW indicates that present terminal device pixel is wide, and PH indicates that present terminal device pixel is high;For Round up operator.
According to the grid size of terminal device current resolution, automatically selects and show pattern accordingly, complete paired terminal is set The adaptation of back-up resolution, specifically includes:
According to the width and height of current grid size and the dimension software for calculation module of software module, formula is such as Under:
W=Pw/Col*Sw
H=Ph/Row*Sh
Wherein, W indicates that software module width, H indicate software module height;Pw indicates that present terminal device pixel is wide, Ph Indicate that present terminal device pixel is high;Row indicates grid line, and Col indicates grid column;Sw indicates the wide specification of software module, Sh Indicate the high specification of software module.
According to the upper left position of current grid size and software module position coordinates software for calculation module, formula is as follows:
Left=Pw/Col*X
Top=Ph/Row*Y
Wherein, Left indicates left margin of the software module apart from terminal device, and Top indicates software module apart from terminal device Top margin;Pw indicates that present terminal device pixel is wide, and Ph indicates that present terminal device pixel is high;Row indicates grid line, Col Indicate grid column;X indicates that the x coordinate of software module location information, Y indicate the y-coordinate of software module location information.
To sum up, the specification of software module of the invention is built according to the optimal form that shows of present terminal device resolution, So ensure that content validity, friendly seen in user.In guarantee user valid data can be seen by terminal device In the case of, the optimization for having carried out resolution adaptation to all terminal devices, having showed form solves the appearance of conventional adaptation method The problem of user can not obtain effective information in the case where too small resolution ratio terminal device, the user experience is improved.
Based on the same inventive concept, this application provides the corresponding device of embodiment 1, detailed in Example 2.
Embodiment 2
As shown in figure 8, a kind of device of adaptive terminal device resolution, the device include:
First grid division module, for carrying out grid division to current optimum resolution according to the typesetting of software;
Specification institution module formulates the specification of its corresponding software module, the rule for the grid size according to division Lattice include the wide specification of software module and high specification;
Second grid division module, for setting the maximum resolution and minimum resolution of existing terminal device, and according to All specifications of the software module of formulation carry out grid division to maximum resolution and minimum resolution respectively;
Type-setting module, for all integer grids between maximum grid and minimum grid to be carried out optimal row Version;
Storage configuration module, for the specification of typesetting, software module and the storage of software module position coordinates is literary at configuration Part;
Computing module, the grid size for computing terminal equipment current resolution;
Adaptation module automatically selects for the grid size according to terminal device current resolution and shows pattern accordingly, And the location information of software for calculation module, complete the adaptation to terminal device resolution ratio.
The adaptation module includes:
Second computing module, for the width according to current grid size and the corresponding specification software for calculation module of software module Degree and height;
Third computing module, for the upper left according to current grid size and software module position coordinates software for calculation module Angle Position, i.e. left margin and top margin.
Since the device that the present embodiment is introduced is to implement a kind of adaptive terminal device resolution in the embodiment of the present application 1 Device used by method, so based on method described in the embodiment of the present application 1, those skilled in the art can be much of that The specific embodiment and its various change form of the device of the present embodiment are solved, so how to realize this for the device herein Method in application embodiment is no longer discussed in detail.As long as those skilled in the art implement the method in the embodiment of the present application Used equipment belongs to the range to be protected of the application.
Although the illustrative specific embodiment of the present invention is described above, in order to the technology of the art Personnel understand the present invention, it should be apparent that the present invention is not limited to the range of specific embodiment, to the common skill of the art For art personnel, if various change the attached claims limit and determine the spirit and scope of the present invention in, these Variation is it will be apparent that all utilize the innovation and creation of present inventive concept in the column of protection.

Claims (5)

1. a kind of method of adaptive terminal device resolution, which is characterized in that this method comprises:
Grid division is carried out to current optimum resolution according to the typesetting of software;
The specification of its corresponding software module is formulated according to the grid size of division, the specification includes the wide specification of software module With high specification;
The maximum resolution and minimum resolution for setting existing terminal device, according to all specifications of the software module of formulation to most Big resolution ratio and minimum resolution carry out grid division respectively;
All integer grids between maximum grid and minimum grid are subjected to optimal typesetting;
Typesetting, the specification of software module and software module position coordinates are stored into configuration file;
The grid size of computing terminal equipment current resolution;
According to the grid size of terminal device current resolution, automatically selects and show pattern accordingly, and software for calculation module Location information completes the adaptation to terminal device resolution ratio.
2. the method for adaptive terminal device resolution according to claim 1, which is characterized in that the calculating present terminal The grid size of equipment, calculation formula are as follows:
Wherein, Row indicates grid line, and Col indicates grid column;Rmax indicates that the maximum number of lines of setting grid, Rmin indicate setting The minimum line number of grid;Cmax indicates the maximum number of column of setting grid;The minimum columns of Cmin fixed grid lattice;PWmax expression is fitted The pixel of the maximum terminal device of the resolution ratio matched is wide, and PWmin indicates the pixel of the be adapted to the smallest terminal device of resolution ratio It is wide;PHmax indicates that the pixel of the be adapted to maximum terminal device of resolution ratio is high, and PHmin indicates that be adapted to resolution ratio is minimum Terminal device pixel it is high;PW indicates that present terminal device pixel is wide, and PH indicates that present terminal device pixel is high;For to Upper rounding operation symbol.
3. the method for adaptive terminal device resolution according to claim 1, which is characterized in that described according to terminal device The grid size of current resolution automatically selects and shows pattern, and the location information of software for calculation module accordingly, specific to wrap It includes:
According to the width and height of current grid size and the corresponding specification software for calculation module of software module, formula is as follows:
W=Pw/Col*Sw
H=Ph/Row*Sh
Wherein, W indicates that software module width, H indicate software module height;Pw indicates that present terminal device pixel is wide, and Ph is indicated Present terminal device pixel is high;Row indicates grid line, and Col indicates grid column;Sw indicates the wide specification of software module, and Sh is indicated The high specification of software module;
According to the upper left position of current grid size and software module position coordinates software for calculation module, i.e. left margin and top Away from formula is as follows:
Left=Pw/Col*X
Top=Ph/Row*Y
Wherein, Left indicates left margin of the software module apart from terminal device, and Top indicates software module apart from the upper of terminal device Back gauge;Pw indicates that present terminal device pixel is wide, and Ph indicates that present terminal device pixel is high;Row indicates grid line, and Col is indicated Grid column;X indicates that the x coordinate of software module location information, Y indicate the y-coordinate of software module location information.
4. a kind of device of adaptive terminal device resolution, which is characterized in that the device includes:
First grid division module, for carrying out grid division to current optimum resolution according to the typesetting of software;
Specification institution module formulates the specification of its corresponding software module, the specification packet for the grid size according to division Include the wide specification of software module and high specification;
Second grid division module, for setting the maximum resolution and minimum resolution of existing terminal device, and according to formulation All specifications of software module grid division is carried out respectively to maximum resolution and minimum resolution;
Type-setting module, for all integer grids between maximum grid and minimum grid to be carried out optimal typesetting;
Storage configuration module, for storing the specification of typesetting, software module and software module position coordinates at configuration file;
Computing module, the grid size for computing terminal equipment current resolution;
Adaptation module automatically selects for the grid size according to terminal device current resolution and shows pattern accordingly, and count The location information of software module is calculated, the adaptation to terminal device resolution ratio is completed.
5. the device of adaptive terminal device resolution according to claim 4, which is characterized in that the adaptation module packet It includes:
Second computing module, for according to the width of current grid size and the corresponding specification software for calculation module of software module and Highly;
Third computing module, for according to the upper left corner of current grid size and software module position coordinates software for calculation module position It sets, i.e. left margin and top margin.
CN201810936778.1A 2018-08-16 2018-08-16 Method and device for adapting resolution of terminal equipment Active CN109032749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810936778.1A CN109032749B (en) 2018-08-16 2018-08-16 Method and device for adapting resolution of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810936778.1A CN109032749B (en) 2018-08-16 2018-08-16 Method and device for adapting resolution of terminal equipment

Publications (2)

Publication Number Publication Date
CN109032749A true CN109032749A (en) 2018-12-18
CN109032749B CN109032749B (en) 2021-08-10

Family

ID=64631786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810936778.1A Active CN109032749B (en) 2018-08-16 2018-08-16 Method and device for adapting resolution of terminal equipment

Country Status (1)

Country Link
CN (1) CN109032749B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263281A (en) * 2019-06-17 2019-09-20 北京亚鸿世纪科技发展有限公司 The adaptive device and method of page resolution in a kind of exploitation of data visualization

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140516A (en) * 2007-10-22 2008-03-12 金蝶软件(中国)有限公司 Method and system for dynamic laying-out interface element
CN103412928A (en) * 2013-08-16 2013-11-27 北京乐动卓越科技有限公司 Method and device for realizing browser page intelligent response-type layout on mobile terminal
CN106407261A (en) * 2016-08-24 2017-02-15 上海斐讯数据通信技术有限公司 Method for enabling page to be adaptive to screen and intelligent terminal
CN106775614A (en) * 2016-10-31 2017-05-31 深圳市云刷科技有限公司 Intelligent POS quick interface arrangement methods and system
CN107247543A (en) * 2017-06-16 2017-10-13 山东浪潮通软信息科技有限公司 A kind of control layout method and device
CN107423055A (en) * 2017-06-30 2017-12-01 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140516A (en) * 2007-10-22 2008-03-12 金蝶软件(中国)有限公司 Method and system for dynamic laying-out interface element
CN103412928A (en) * 2013-08-16 2013-11-27 北京乐动卓越科技有限公司 Method and device for realizing browser page intelligent response-type layout on mobile terminal
CN106407261A (en) * 2016-08-24 2017-02-15 上海斐讯数据通信技术有限公司 Method for enabling page to be adaptive to screen and intelligent terminal
CN106775614A (en) * 2016-10-31 2017-05-31 深圳市云刷科技有限公司 Intelligent POS quick interface arrangement methods and system
CN107247543A (en) * 2017-06-16 2017-10-13 山东浪潮通软信息科技有限公司 A kind of control layout method and device
CN107423055A (en) * 2017-06-30 2017-12-01 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and the storage medium of adaptive terminal device resolution

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263281A (en) * 2019-06-17 2019-09-20 北京亚鸿世纪科技发展有限公司 The adaptive device and method of page resolution in a kind of exploitation of data visualization

Also Published As

Publication number Publication date
CN109032749B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN101876967B (en) Method for generating PDF text paragraphs
CN104067296B (en) The method and apparatus that one-dimensional signal extracts
JPH10289230A (en) Automatic layout of contents in page composition
CN102496168B (en) Complicated river channel gridding method used for simulation of river channel hydrological numerical value
CN110427601B (en) Form processing method and device, intelligent interactive panel and storage medium
CN107256259A (en) Page display method, device, electronic equipment and storage medium
CN107273000A (en) A kind of screen multiresolution adaptation method of smart scope
CN201867789U (en) Self-adaptive graphical user interface building device
US20160012025A1 (en) Web page display method and device
CN107977342B (en) Document comparison method and device
CN109032749A (en) A kind of adaptive terminal device resolution method and device
CN109062885B (en) Method, device and equipment for adjusting layout of text box
CN110443751B (en) Image deformation method, device and equipment based on drawing lines and storage medium
CN110516655B (en) Chinese character image stroke processing method and system
CN103915035B (en) A kind of data transfer device and DTU
CN106998489A (en) A kind of focus is crossed the border searching method and device
CN110825471A (en) Layout method suitable for configuration type form page
CN105094629A (en) Grid-based self-adaptation layout method and system
US20040044964A1 (en) Behavior of anchored frames
CN115390976A (en) Layout method of interface design, display method of interface and related equipment
CN109104627A (en) Focus Background Generation Method, storage medium, equipment and the system of Android TV
CN111709419A (en) Method, system and equipment for positioning banknote serial number and readable storage medium
CN115391700B (en) Waterfall flow layout conversion method and system based on visual dragging and pulling layout
CN107292938B (en) Method and device for generating virtual smooth curve
CN115496050B (en) Method and device for drawing configuration of head-of-table oblique line, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No. 3406, 34 / F, building 2, No. 666, middle section of Tianfu Avenue, high tech Zone, Chengdu, Sichuan 610041

Applicant after: Chengdu Yingchao Technology Co.,Ltd.

Address before: No.12, 33F, building 2, No.88, Jitai fifth road, high tech Zone, Chengdu, Sichuan 610041

Applicant before: CHENGDU YINCHAO TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant