CN110096322A - The method and device of adaptive terminal screen, storage medium, electronic device - Google Patents

The method and device of adaptive terminal screen, storage medium, electronic device Download PDF

Info

Publication number
CN110096322A
CN110096322A CN201910229425.2A CN201910229425A CN110096322A CN 110096322 A CN110096322 A CN 110096322A CN 201910229425 A CN201910229425 A CN 201910229425A CN 110096322 A CN110096322 A CN 110096322A
Authority
CN
China
Prior art keywords
screen
file
software
displaying terminal
layout information
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
CN201910229425.2A
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 Chen Sen Century Polytron Technologies Inc
Original Assignee
Beijing Chen Sen Century 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 Beijing Chen Sen Century Polytron Technologies Inc filed Critical Beijing Chen Sen Century Polytron Technologies Inc
Priority to CN201910229425.2A priority Critical patent/CN110096322A/en
Publication of CN110096322A publication Critical patent/CN110096322A/en
Pending legal-status Critical Current

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)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and devices of adaptive terminal screen, storage medium, electronic device, wherein this method comprises: obtaining the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal;The specified homepage file of the target software is selected from the preset configuration file of the target software according to the page layout information, wherein the preset configuration file is provided with multiple and page layout information matches homepage files;The software page corresponding with the specified homepage file is shown on the screen of the displaying terminal.Through the invention, it solves the technical issues of the relevant technologies software cannot be adapted to multiple terminal screens, improves the development efficiency and fitting percentage of software application.

Description

The method and device of adaptive terminal screen, storage medium, electronic device
Technical field
The present invention relates to computer fields, are situated between in particular to a kind of method and device of adaptive terminal screen, storage Matter, electronic device.
Background technique
In the related technology, the software being mounted in mobile phone or other terminals, could when the software page fully takes up screen Good usage experience is brought to user, when the software page is greater than screen frame, the part interface of software can stash, and When the software page is less than screen frame, and the hardware of screen is wasted, it is unreasonable.
In the scheme of the relevant technologies, since terminal machine in the market is made a lot of variety, there are the laterally longitudinal screen of screen, various resolutions Rate emerges one after another, and in order to be adapted to the terminal of different screen, the software of the same function needs the terminal for different screens to open It sends out software a, to realize the adaptation of software interface and screen hardware, such as needs for plate (laterally screen) and mobile phone (longitudinal screen) Multiple APP, inefficiency are developed, and is adapted to complexity, organic type needs to write a large amount of code in order to be adapted to.In the relevant technologies Another scheme in, the benchmark page an of software can be provided, then according to the reality of screen on the basis of the benchmark page Size is scaled to be adapted to screen, but will affect the display effect of the page in this way.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
Summary of the invention
The embodiment of the invention provides a kind of method and devices of adaptive terminal screen, storage medium, electronic device.
According to one embodiment of present invention, a kind of method of adaptive terminal screen is provided, comprising: obtain displaying terminal Page layout information, wherein target software is mounted on the displaying terminal;According to the page layout information from the mesh Mark the specified homepage file that the target software is selected in the preset configuration file of software, wherein the preset configuration file is set It is equipped with multiple and page layout information matches homepage files;It is shown and the specified homepage on the screen of the displaying terminal The corresponding software page of file.
Optionally, software page bread corresponding with the specified homepage file is shown on the screen of the displaying terminal It includes: loading the specified homepage file in the network view WebView component of the target software;Use the WebView Component renders the specified homepage file on the screen of the displaying terminal, and shows the corresponding software page.
Optionally, the target is selected from the preset configuration file of the target software according to the page layout information The specified homepage file of software includes: the parsing page layout information, obtains the screen identification of the displaying terminal;According to pre- If mapping table is searched and the matched specified head of the screen identification in the assets file of the installation kit of the target software Page file.
Optionally, the mesh is being selected from the preset configuration file of the target software according to the page layout information Before the specified homepage file for marking software, the method also includes: more set homepage files are created using Web tool, wherein every set Homepage file corresponds to a page layout information;More set homepage files are packed into the configuration file of the target software.
Optionally, creating more set homepage files using Web tool includes: using Web tool using hypertext markup language The website homepage file index.html of the more set hypertext formats of HTML creation.
Optionally, the page layout information for obtaining displaying terminal includes at least one of: obtaining the displaying terminal Screen resolution;Obtain the screen size of the displaying terminal;Obtain the screen type of the displaying terminal, wherein the screen Curtain-like type includes: lateral screen, Zong Xiangping.
Optionally, before the page layout information for obtaining displaying terminal, the method also includes: in the displaying terminal On detect the open command of the target software.
Optionally, shown on the screen of the displaying terminal software page corresponding with the specified homepage file it Afterwards, the method also includes: receive be directed to the target software control instruction;By software on the screen of the displaying terminal Page switching is the control page corresponding with the control instruction.
According to another embodiment of the invention, a kind of device of adaptive terminal screen is provided, comprising: module is obtained, For obtaining the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal;Selecting module is used In the specified head for selecting the target software from the preset configuration file of the target software according to the page layout information Page file, wherein the preset configuration file is provided with multiple and page layout information matches homepage files;Display module, For showing the software page corresponding with the specified homepage file on the screen of the displaying terminal.
Optionally, the display module includes: loading unit, for the network view WebView in the target software The specified homepage file is loaded in component;Rendering unit, for using the WebView component in the screen of the displaying terminal The specified homepage file is rendered on curtain, and shows the corresponding software page.
Optionally, the selecting module includes: resolution unit, for parsing the page layout information, obtains the exhibition Show the screen identification of terminal;Searching unit, for literary in the assets of the installation kit of the target software according to default mapping table It is searched and the matched specified homepage file of the screen identification in part folder.
Optionally, described device further include: creation module is used in the selecting module according to the page layout information Before the specified homepage file for selecting the target software in the preset configuration file of the target software, Web tool is used Creation covers homepage file, wherein the corresponding page layout information of every set homepage file;Packetization module, being used for will be described more Set homepage file is packed into the configuration file of the target software.
Optionally, the creation module includes: creation subelement, for using hypertext markup language using Web tool The website homepage file index.html of the more set hypertext formats of HTML creation.
Optionally, the acquisition module includes at least one of: first acquisition unit, for obtaining the displaying terminal Screen resolution;Second acquisition unit, for obtaining the screen size of the displaying terminal;Third acquiring unit, for obtaining Take the screen type of the displaying terminal, wherein the screen type includes: lateral screen, Zong Xiangping.
Optionally, described device further include: detection module, for obtaining the page cloth of displaying terminal in the acquisition module Before office's information, the open command of the target software is detected on the displaying terminal.
Optionally, described device further include: receiving module, for the display module the displaying terminal screen After the upper displaying software page corresponding with the specified homepage file, the control instruction for the target software is received;It cuts Block is changed the mold, for the software page to be switched to control page corresponding with the control instruction on the screen of the displaying terminal Face.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, the page layout information of displaying terminal is obtained, then according to page layout information from the target The specified homepage file of selection target software in the preset configuration file of software finally shows and refers on the screen of displaying terminal Determine the corresponding software page of homepage file, solves the technical issues of the relevant technologies software cannot be adapted to multiple terminal screens, mention The high development efficiency and fitting percentage of software application.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of mobile terminal structure block diagram of adaptive terminal screen of the embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of adaptive terminal screen according to an embodiment of the present invention;
Fig. 3 is applicating flow chart of the embodiment of the present invention in Android platform;
Fig. 4 is a kind of structural block diagram of the device of adaptive terminal screen according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can mobile terminal, terminal, server or It is executed in similar arithmetic unit.For running on mobile terminals, Fig. 1 is a kind of adaptive terminal screen of the embodiment of the present invention The mobile terminal structure block diagram of curtain.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1) (processor 102 can include but is not limited to the processing dress of Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Set) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission for communication function Equipment 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, It does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or Less component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of method of one of bright embodiment adaptive terminal screen, processor 102 are stored in by operation Computer program in reservoir 104 realizes above-mentioned method thereby executing various function application and data processing.Storage Device 104 may include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, Flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processing The remotely located memory of device 102, these remote memories can pass through network connection to mobile terminal 10.The reality of above-mentioned network Example includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
A kind of method of adaptive terminal screen is provided in the present embodiment, and Fig. 2 is one kind according to an embodiment of the present invention The method flow diagram of adaptive terminal screen, as shown in Fig. 2, the process includes the following steps:
Step S202 obtains the page layout information of displaying terminal, wherein target software is mounted on displaying terminal;
In the screen message that the page layout information of the present embodiment is displaying terminal, including its screen size, screen layout, At least one resolution ratio etc. influences the parameter of page presentation and layout that target software carries out on displaying terminal;
Step S204, according to page layout information from the preset configuration file of the target software selection target software Specified homepage file, wherein preset configuration file is provided with multiple and page layout information matches homepage files;
The preset configuration file of the present embodiment is the file that target software is generated in displaying terminal installation, preset configuration text Part includes multiple homepage files, such as the First page file with 1024 × 540 resolution match, with 2048 × 1080 resolution ratio Matched second homepage file is front-end configuration with the third homepage file of 2048 × 1024 resolution match etc.;The pre- establishing It sets file while being provided with a set of backstage relevant to software function code, which can be from different homepage file knots It closes and uses, apply on the displaying terminal of different screen;
Step S206 shows the software page corresponding with specified homepage file on the screen of displaying terminal.
Through the above steps, the page layout information of displaying terminal is obtained, then according to page layout information from the mesh Mark software preset configuration file in selection target software specified homepage file, finally on the screen of displaying terminal show with The specified corresponding software page of homepage file, solves the technical issues of the relevant technologies software cannot be adapted to multiple terminal screens, Improve the development efficiency and fitting percentage of software application.
The page layout information of the present embodiment includes resolution ratio, and screen size, screen type etc. is corresponding, obtains and shows The page layout information of terminal includes at least one of: obtaining the screen resolution of displaying terminal;Obtain the screen of displaying terminal Curtain size;Obtain the screen type of displaying terminal, wherein screen type includes: lateral screen, and Zong Xiangping, laterally screen is applied in hand On machine, longitudinal screen is applied on plate.The lateral screen and longitudinal screen of the present embodiment are an opposite probability, such as in normal condition Under, user hand shake hands machine when, mobile phone screen be one laterally screen, and user overturn mobile phone when, then mobile phone screen is one at this time A longitudinal direction screen, under normal circumstances, a software are only provided with laterally screen display pattern or longitudinal screen display representation model (e.g., wechat Can be shown displayed across, when overturning mobile phone, the wechat page can't synchronize overturning), and mobile phone is in laterally screen display pattern or longitudinal direction When screen display representation model, the display resolution of screen can also change, and such as laterally screen display pattern is 960*540, then longitudinal screen display Model is then 540*960, and the scheme of the present embodiment further includes according to the display pattern of displaying terminal come in the screen of displaying terminal The upper software page for showing target software, comprising: the placement status of displaying terminal is determined by the built-in gyroscope of displaying terminal, When placement status is laterally disposed first state, selection target software exists from the preset configuration file of the target software The specified homepage file of first state, when placement status is the second placed longitudinally state, from the default of the target software Selection target software finally shows and refers on the screen of displaying terminal in the specified homepage file of the second state in configuration file Determine the corresponding software page of homepage file.
In an embodiment of the present embodiment, shown on the screen of displaying terminal corresponding with specified homepage file Software page face includes:
S11 loads specified homepage file in the network view WebView component of target software;
In the present embodiment, WebView component is one of Android system for showing the component of webpage, WebView It can make webpage embedded in target software, directly can also mutually be called with js.Webview includes: SetWebChromeClient and setWebClient, wherein setWebClient: for handling parsing, rendering webpage etc. is clear Look at the function of device;SetWebChromeClient: for assist WebView processing Javascript dialog box, website icon, Website title, load progress etc.;
S12 is rendered specified homepage file on the screen of displaying terminal using WebView component, and shown corresponding soft The part page.
Optionally, according to the finger of page layout information selection target software from the preset configuration file of the target software Determining homepage file includes: parsing page layout information, obtains the screen identification of displaying terminal;It is soft in target according to default mapping table It is searched and the matched specified homepage file of screen identification in the assets file of the installation kit of part.
In one example, page layout information is the resolution information of displaying terminal, resolution ratio 540*960, it is known that The screen identification of the screen is QHD screen, wherein the present embodiment screen partition of the level mode general using industry, screen identification Including QVGA 240*320, HVGA 320*480, WVGA 480*800, FWVGA 480*854, QHD 540*960, HD 720* 1280 etc..
In an embodiment of the present embodiment, in the preset configuration according to page layout information from the target software In file before the specified homepage file of selection target software, further includes:
S21 creates more set homepage files using Web tool, wherein the corresponding page layout letter of every set homepage file Breath;Specifically, creating more set homepage files using Web tool includes: using Web tool using hypertext markup language (Hyper Text Markup Language, HTML) the creation website homepage file index.html for covering hypertext formats more;Wherein, Index is the meaning of website (software) homepage, and HTML is an application under standard generalized markup language." hypertext " just refers to It may include picture, link or even the non-legible element such as music, program in the page.Bottom code relevant to software function is adopted With Android or the developing instrument of IOS, since Web tool is high-efficient when developing the UI page, by its opening with bottom code Hair tool is used in combination, and improves the development efficiency of software;
More set homepage files are packed into the configuration file of target software by S22.
Optionally, before the page layout information for obtaining displaying terminal, further includes: detect target on displaying terminal The open command of software.For user when starting target software on displaying terminal, target software can enter spread its tail interface or head first The scheme in page boundary face, the present embodiment is triggered by the open command of target software.
In an embodiment of the present embodiment, shown on the screen of displaying terminal corresponding with specified homepage file After the software page, further includes: receive the control instruction for being directed to target software;The software page is cut on the screen of displaying terminal It is changed to the control page corresponding with control instruction.The control instruction is that some function button of the target software is called to generate, When the screen of displaying terminal is touch screen, which is touch command, as clicked some function mould in current interface Block or some link, then current interface of the target software on displaying terminal screen is switched to and the functional module or links pair The control page answered.
In an example of the present embodiment, displaying terminal is android terminal, by using the primary code of Web and Android Combination, give the simpler Web of interface operation to go to create the page.Two sets of pages are created with Web, it is a set of (lateral to plate Screen) it is another set of give mobile phone (longitudinal screen), android terminal judges terminal type by judging screen resolution, shows which set page Face.Web file is packaged the assets file (a kind of configuration file) that is put into Android code after the completion of exploitation, and Android only need to be According to resolution ratio when opening APP, it is shown from assets file by different index.html merging WebView. When developing Android primary code, the developing instrument of Android includes AndroidStudio, Eclipse, in exploitation Web code When, it is developed using WebStorm developing instrument using H5 and js.Fig. 3 is application flow of the embodiment of the present invention in Android platform Figure, process are as follows:
One, the page all meets at Web page exploitation, creates two sets of pages with Web, a set of another set of to plate (laterally screen) Give mobile phone (longitudinal screen);
Two, Web is packaged, and two sets of files are put into Android assets file;
Three, different index.html merging WebView is shown when opening APP according to resolution ratio by Android.
Software is realized in plate using two sets of codes of Web by using the combination of Web and the primary code of Android The screen adaptation at (laterally screen) and mobile phone (longitudinal screen) end.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of device of adaptive terminal screen in the present embodiment, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 4 is a kind of structural block diagram of the device of adaptive terminal screen according to an embodiment of the present invention, can be applied in band Have in the terminal of display screen, as shown in figure 4, the device includes: to obtain module 40, selecting module 42, display module 44, wherein
Module 40 is obtained, for obtaining the page layout information of displaying terminal, wherein target software is mounted on the displaying In terminal;
Selecting module 42, for being selected from the preset configuration file of the target software according to the page layout information The specified homepage file of the target software, wherein the preset configuration file is provided with multiple and page layout information matches Homepage file;
Display module 44, for showing software corresponding with the specified homepage file on the screen of the displaying terminal The page.
Optionally, the display module includes: loading unit, for the network view WebView in the target software The specified homepage file is loaded in component;Rendering unit, for using the WebView component in the screen of the displaying terminal The specified homepage file is rendered on curtain, and shows the corresponding software page.
Optionally, the selecting module includes: resolution unit, for parsing the page layout information, obtains the exhibition Show the screen identification of terminal;Searching unit, for literary in the assets of the installation kit of the target software according to default mapping table It is searched and the matched specified homepage file of the screen identification in part folder.
Optionally, described device further include: creation module is used in the selecting module according to the page layout information Before the specified homepage file for selecting the target software in the preset configuration file of the target software, Web tool is used Creation covers homepage file, wherein the corresponding page layout information of every set homepage file;Packetization module, being used for will be described more Set homepage file is packed into the configuration file of the target software.
Optionally, the creation module includes: creation subelement, for using hypertext markup language using Web tool The website homepage file index.html of the more set hypertext formats of HTML creation.
Optionally, the acquisition module includes at least one of: first acquisition unit, for obtaining the displaying terminal Screen resolution;Second acquisition unit, for obtaining the screen size of the displaying terminal;Third acquiring unit, for obtaining Take the screen type of the displaying terminal, wherein the screen type includes: lateral screen, Zong Xiangping.
Optionally, described device further include: detection module, for obtaining the page cloth of displaying terminal in the acquisition module Before office's information, the open command of the target software is detected on the displaying terminal.
Optionally, described device further include: receiving module, for the display module the displaying terminal screen After the upper displaying software page corresponding with the specified homepage file, the control instruction for the target software is received;It cuts Block is changed the mold, for the software page to be switched to control page corresponding with the control instruction on the screen of the displaying terminal Face.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the one aspect of the present embodiment, above-mentioned storage medium can be set to storage for execute with The computer program of lower step:
S1 obtains the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal;
S2 selects the target software from the preset configuration file of the target software according to the page layout information Specified homepage file, wherein the preset configuration file is provided with multiple with page layout information matches homepage files;
S3 shows the software page corresponding with the specified homepage file on the screen of the displaying terminal.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the one aspect of the present embodiment, above-mentioned processor can be set to hold by computer program Row following steps:
S1 obtains the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal;
S2 selects the target software from the preset configuration file of the target software according to the page layout information Specified homepage file, wherein the preset configuration file is provided with multiple with page layout information matches homepage files;
S3 shows the software page corresponding with the specified homepage file on the screen of the displaying terminal.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of adaptive terminal screen characterized by comprising
Obtain the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal;
The specified of the target software is selected from the preset configuration file of the target software according to the page layout information Homepage file, wherein the preset configuration file is provided with multiple and page layout information matches homepage files;
The software page corresponding with the specified homepage file is shown on the screen of the displaying terminal.
2. being specified the method according to claim 1, wherein being shown on the screen of the displaying terminal with described The corresponding software page face of homepage file includes:
The specified homepage file is loaded in the network view WebView component of the target software;
The specified homepage file is rendered on the screen of the displaying terminal using the WebView component, and shows correspondence The software page.
3. the method according to claim 1, wherein according to the page layout information from the target software The specified homepage file for selecting the target software in preset configuration file includes:
The page layout information is parsed, the screen identification of the displaying terminal is obtained;
It is searched in the assets file of the installation kit of the target software according to default mapping table and the screen identification The specified homepage file matched.
4. the method according to claim 1, wherein according to the page layout information from the target software Preset configuration file in select the target software specified homepage file before, the method also includes:
More set homepage files are created using Web tool, wherein the corresponding page layout information of every set homepage file;
More set homepage files are packed into the configuration file of the target software.
5. according to the method described in claim 4, it is characterized in that, including: using the more set homepage files of Web tool creation
The website homepage file of more set hypertext formats is created using hypertext markup language HTML using Web tool index.html。
6. the method according to claim 1, wherein the page layout information for obtaining displaying terminal includes below extremely It is one of few:
Obtain the screen resolution of the displaying terminal;
Obtain the screen size of the displaying terminal;
Obtain the screen type of the displaying terminal, wherein the screen type includes: lateral screen, Zong Xiangping.
7. the method according to claim 1, wherein obtain displaying terminal page layout information before, institute State method further include:
The open command of the target software is detected on the displaying terminal.
8. a kind of device of adaptive terminal screen characterized by comprising
Module is obtained, for obtaining the page layout information of displaying terminal, wherein target software is mounted on the displaying terminal On;
Selecting module, for selecting the mesh from the preset configuration file of the target software according to the page layout information Mark the specified homepage file of software, wherein the preset configuration file is provided with multiple and page layout information matches homepages File;
Display module, for showing the software page corresponding with the specified homepage file on the screen of the displaying terminal.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to perform claim when operation and requires method described in 1 to 7 any one.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program in method described in perform claim 1 to 7 any one of requirement.
CN201910229425.2A 2019-03-25 2019-03-25 The method and device of adaptive terminal screen, storage medium, electronic device Pending CN110096322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910229425.2A CN110096322A (en) 2019-03-25 2019-03-25 The method and device of adaptive terminal screen, storage medium, electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910229425.2A CN110096322A (en) 2019-03-25 2019-03-25 The method and device of adaptive terminal screen, storage medium, electronic device

Publications (1)

Publication Number Publication Date
CN110096322A true CN110096322A (en) 2019-08-06

Family

ID=67444001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910229425.2A Pending CN110096322A (en) 2019-03-25 2019-03-25 The method and device of adaptive terminal screen, storage medium, electronic device

Country Status (1)

Country Link
CN (1) CN110096322A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324326A (en) * 2020-02-20 2020-06-23 深圳震有科技股份有限公司 Processing method and device for displaying software to one machine with multiple screens
CN112732262A (en) * 2021-01-22 2021-04-30 湖南金鹰卡通传媒有限公司 Method and system for dynamically configuring mobile terminal block and storage medium
CN113032058A (en) * 2019-12-24 2021-06-25 北京车和家信息技术有限公司 Page processing method, device and system
CN113127125A (en) * 2021-04-22 2021-07-16 康键信息技术(深圳)有限公司 Page automatic adaptation method, device, equipment and storage medium
CN113434143A (en) * 2021-07-09 2021-09-24 中国银行股份有限公司 iOS application interface layout device and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345388A (en) * 2013-06-05 2013-10-09 中国电子科技集团公司第十五研究所 Android-operating-system-based system and device for adapting software to mobile terminal
CN106406839A (en) * 2015-07-31 2017-02-15 华为软件技术有限公司 Processing method and device of screen adaption file
CN106506650A (en) * 2016-11-14 2017-03-15 用友网络科技股份有限公司 Interface adaptation method, interface adaptive device and server
CN107797801A (en) * 2017-10-20 2018-03-13 江苏电力信息技术有限公司 A kind of adaptation method based on a variety of interface of mobile terminal
CN109375967A (en) * 2018-08-27 2019-02-22 北京达佳互联信息技术有限公司 Application Program Interface display methods and device, mobile terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345388A (en) * 2013-06-05 2013-10-09 中国电子科技集团公司第十五研究所 Android-operating-system-based system and device for adapting software to mobile terminal
CN106406839A (en) * 2015-07-31 2017-02-15 华为软件技术有限公司 Processing method and device of screen adaption file
CN106506650A (en) * 2016-11-14 2017-03-15 用友网络科技股份有限公司 Interface adaptation method, interface adaptive device and server
CN107797801A (en) * 2017-10-20 2018-03-13 江苏电力信息技术有限公司 A kind of adaptation method based on a variety of interface of mobile terminal
CN109375967A (en) * 2018-08-27 2019-02-22 北京达佳互联信息技术有限公司 Application Program Interface display methods and device, mobile terminal and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032058A (en) * 2019-12-24 2021-06-25 北京车和家信息技术有限公司 Page processing method, device and system
CN111324326A (en) * 2020-02-20 2020-06-23 深圳震有科技股份有限公司 Processing method and device for displaying software to one machine with multiple screens
CN111324326B (en) * 2020-02-20 2023-12-05 深圳震有科技股份有限公司 Processing method and device for displaying software to one machine with multiple screens
CN112732262A (en) * 2021-01-22 2021-04-30 湖南金鹰卡通传媒有限公司 Method and system for dynamically configuring mobile terminal block and storage medium
CN113127125A (en) * 2021-04-22 2021-07-16 康键信息技术(深圳)有限公司 Page automatic adaptation method, device, equipment and storage medium
CN113127125B (en) * 2021-04-22 2024-02-09 康键信息技术(深圳)有限公司 Page automatic adaptation method, device, equipment and storage medium
CN113434143A (en) * 2021-07-09 2021-09-24 中国银行股份有限公司 iOS application interface layout device and method

Similar Documents

Publication Publication Date Title
CN110096322A (en) The method and device of adaptive terminal screen, storage medium, electronic device
CN104699602B (en) Method and computer for detecting influence
CN107077274B (en) Method and apparatus for moving context tags in a strip
CN108664296A (en) A kind of page rendering method and apparatus, a kind of page processing method and device
CN111104635B (en) Method and device for generating form webpage
CN107943825A (en) Data processing method, device and the electronic equipment of page access
CN107391626B (en) Land the creation method and device of page
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
CN109710348A (en) The method and device of page jump, computer equipment, storage medium
CN104021016B (en) Method and browser for loading browser plug-in icons
CN105630524B (en) Web page text analytic method, device and mobile terminal
CN109725965A (en) Cascading style listing maintenance, device, computer equipment and storage medium
CN103942231B (en) A kind of display methods and electronic equipment of webpage
CN107370804A (en) Software application treating method and apparatus
CN105335419B (en) Web page picture loading method and device
CN105549936A (en) Data table display method and apparatus
CN110506267A (en) The rendering of digital assembly background
CN108369514A (en) The system and method created for executable content and executable content stream
CN106681616A (en) Browser function bar display method, browser function bar display device and processing equipment
CN106548504B (en) Webpage animation generation method and device
CN106991110B (en) Webpage switching method and device
CN109375975A (en) Mode frame construction method, apparatus, electronic equipment, computer readable storage medium
CN109240756A (en) A kind of method and device of dynamically load JavaScript module
CN111680246A (en) Grouped title top setting method, device and equipment based on recycleview left-right linkage control
CN104050218A (en) Method and system for providing information to be displayed in user interface

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190806

RJ01 Rejection of invention patent application after publication