CN111367518B - Page layout method, page layout device, computing equipment and computer storage medium - Google Patents

Page layout method, page layout device, computing equipment and computer storage medium Download PDF

Info

Publication number
CN111367518B
CN111367518B CN201811599980.6A CN201811599980A CN111367518B CN 111367518 B CN111367518 B CN 111367518B CN 201811599980 A CN201811599980 A CN 201811599980A CN 111367518 B CN111367518 B CN 111367518B
Authority
CN
China
Prior art keywords
page
layout
control
information
layout file
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.)
Active
Application number
CN201811599980.6A
Other languages
Chinese (zh)
Other versions
CN111367518A (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.)
3600 Technology Group Co ltd
Original Assignee
3600 Technology Group 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 3600 Technology Group Co ltd filed Critical 3600 Technology Group Co ltd
Priority to CN201811599980.6A priority Critical patent/CN111367518B/en
Publication of CN111367518A publication Critical patent/CN111367518A/en
Application granted granted Critical
Publication of CN111367518B publication Critical patent/CN111367518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses a page layout method, a page layout device, computing equipment and a computer storage medium, wherein the method comprises the following steps: after the application is started, a page initialization request is acquired for any page; reading a locally stored page layout file to perform layout processing on the page according to the page initialization request; presenting the page after layout processing; after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file. According to the scheme, after the application is started, the updated page layout file is actively downloaded from the server and replaces the locally stored page layout file, so that the starting is used as a trigger event, and dynamic adjustment of the page layout of the application is realized without the need of updating the version of the application as the trigger event, so that the dynamic layout of the page is realized more flexibly.

Description

Page layout method, page layout device, computing equipment and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page layout method, a device, a computing device, and a computer storage medium.
Background
With the development of mobile terminal technology, a great number of terminal applications of life, entertainment, service and other types are continuously emerging. Meanwhile, the layout of page controls in the existing terminal application is realized through UI codes written on the mobile terminal, namely, the presented control layout is fixed and cannot be changed easily; the background data is then presented in the fixed control layout.
In the prior art, if the control layout in the application page needs to be changed, the UI code needs to be rewritten, then a new version is released, and the user controls the downloading and updating of the new version application to realize the presentation of the new control layout. Obviously, the control layout updating mode in the prior art has the defects of high updating difficulty and long period; meanwhile, the user downloads and updates the new version application, so that the updating mode is extremely passive, and the updating efficiency is influenced.
Disclosure of Invention
The present invention has been made in view of the above problems, and provides a page layout method, apparatus, computing device, and computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a page layout method including:
after the application is started, a page initialization request is acquired for any page;
reading a locally stored page layout file to perform layout processing on the page according to the page initialization request;
presenting the page after layout processing;
after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file.
According to another aspect of the present invention, there is provided a page layout apparatus including:
the acquisition module is suitable for acquiring a page initialization request for any page after the application is started;
the layout module is suitable for reading a locally stored page layout file to perform layout processing on the page according to the page initialization request;
the presentation module is suitable for presenting the page after the layout processing;
and the updating module is suitable for downloading the updated page layout file of any page stored in the server to replace the locally stored page layout file if the page layout file of the page is updated after the application is started.
According to yet another aspect of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the page layout method.
According to still another aspect of the present invention, there is provided a computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the page layout method described above.
According to the page layout method, the page layout device, the computing equipment and the computer storage medium, after the application is started, the updated page layout file is actively downloaded from the server, and the page layout file in the local storage is replaced by the updated page layout file; and after the page initialization request is acquired, carrying out layout processing by using the page layout file in the local storage so as to realize dynamic layout. Therefore, when the layout adjustment requirement exists, the page layout file corresponding to the requirement is only required to be issued to the server, and then the dynamic layout of the page can be completed by utilizing the scheme of the invention, without rewriting the UI code and issuing new version application corresponding to each new requirement, so that the investment and difficulty of the dynamic layout are reduced; after the application is started, the dynamic layout of the page can be completed by utilizing the scheme of the invention, and the new page layout is actively presented to the user without being limited by whether the user downloads the new version application, so that the dynamic layout mode is more active, and the updating efficiency is high.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow diagram of a page layout method according to one embodiment of the invention;
FIG. 2 shows a flow chart of a page layout method according to another embodiment of the invention;
FIG. 3 shows a functional block diagram of a page layout apparatus according to one embodiment of the invention;
FIG. 4 illustrates a schematic diagram of a computing device, according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a flow chart of a page layout method according to one embodiment of the invention. As shown in fig. 1, the method includes:
step S101: after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file.
In the invention, operators can issue the updated page layout file to the server according to the layout requirement, and the updated page layout file is always stored in the server. For example, if the operator sets a new layout for the page of the application for a holiday, the updated page layout file may be issued to the corresponding server of the application, so that the application may timely acquire and use the updated page layout file stored in the server.
And, in the present invention, the timing of performing the layout update detection is triggered by the application start. Specifically, at any time after the application is started, updating detection is performed on the page layout file of any page of the application stored in the server, and the updated page layout file is downloaded from the server according to the detection result so as to replace the page layout file in the local storage of the application.
Step S102: after the application is started, a page initialization request is acquired for any page.
After the application is started, corresponding page initialization requests are generated for page request operations such as application opening, page jumping and the like, and the page needs to be loaded at the moment, including layout and corresponding page content display.
Step S103: and reading the locally stored page layout file to perform layout processing on the page according to the page initialization request.
Wherein the layout process includes a process of drawing the visualization information of the page controls and/or a process of establishing associations between the page controls.
Specifically, according to the relevant identification information in the page initialization request, for example, the page identification information and/or the user identification information, the page layout file corresponding to the relevant identification information is uniqueness from the local storage, and layout processing is performed. And for any page, carrying out layout processing by using the page layout file which is successfully replaced by the updated page layout file in the local storage, so as to realize dynamic layout of the page.
It should be noted here that, after the application is started, the specific execution time of step S101 is not limited, and it may be executed immediately or after a preset time interval after the start; the order of execution of steps S101, S102, and S103 is not limited to the order shown in fig. 1, and alternatively, steps S101 and S102 may be executed simultaneously, or step S101 may be executed after step S102.
Based on the execution time and the execution sequence, further, reading a page layout file of the application page which is currently requested to be initialized from the local storage, and if the page layout file is a replaced file, performing layout processing by using the replaced file to realize dynamic layout; if the page layout file is not replaced successfully, the previous page layout file is utilized to carry out layout, and after the page layout file is replaced successfully, the application page is refreshed, so that dynamic layout can be realized.
Step S104: and presenting the page after the layout processing.
According to the page layout method provided by the embodiment, after the application is started, the updated page layout file is actively downloaded from the server, and the page layout file in the local storage is replaced by the updated page layout file; and after the page initialization request is acquired, carrying out layout processing by using the page layout file in the local storage so as to realize dynamic layout. Therefore, when the layout adjustment requirement exists, the page layout file corresponding to the requirement is only required to be issued to the server, and then the dynamic layout of the page can be completed by utilizing the scheme of the embodiment, and the UI code is not required to be rewritten and the new version application is not required to be issued corresponding to each new requirement, so that the investment and difficulty of the dynamic layout are reduced; after the application is started, the dynamic layout of the page can be completed by using the scheme of the embodiment, and the new page layout is actively presented to the user without receiving the limit of whether the user downloads the new version application, so that the dynamic layout mode is more active, and the updating efficiency is high.
Fig. 2 shows a flow chart of a page layout method according to another embodiment of the invention. In this embodiment, the step of reading the locally stored page layout file to layout the page is performed before the step of downloading the updated page layout file of the page from the server to replace the locally stored page layout file. As shown in fig. 2, the method includes:
step S201: after the application is started, a page initialization request is acquired for any page.
This embodiment is mainly directed to a page that needs to be presented immediately after the application is started, such as an application main page, and at this time, even if the updated page layout file is downloaded from the server immediately after the application is started, it is highly likely that the action of reading the page layout file into the server occurs before the action of replacing the page layout file in the local storage with the updated page layout file.
Specifically, after the application is started, corresponding page initialization requests are generated for page request operations such as application opening and page jumping, and the current page initialization request is acquired so as to determine a page to be presented currently according to the page initialization request.
Step S202: and reading the locally stored page layout file to perform layout processing on the page according to the page initialization request.
The page layout file contains layout information of at least one of the following page controls: control position information, control size information, control style information, control content information, control constraint condition information and control response information. The control constraint condition information refers to layout constraint conditions of child controls compared with parent controls inherited by the child controls; and the control response information comprises information reflecting the page change after response, and taking a button control as an example, the control response information can be the effect of triggering a button, and the information of jumping a link or jumping a page after triggering the button.
The page control comprises any control needing to be laid out through the page layout file. In one particular embodiment of the invention, the page controls include text controls, button controls, picture controls, and/or UITableView. Correspondingly, for a text control, the corresponding layout information includes coordinates, size, text content, text font, font size, font color, text format (e.g., whether to wrap a line) of the text control relative to the page, and constraint information of the text control and its child controls. For the button control, the corresponding layout information comprises button patterns, button characters, button background colors, clicking effects, and the like, and the information of opening a link or jumping to another page is specific after clicking. For the picture control, the corresponding layout information comprises information such as picture display patterns, whether the picture display patterns are cut, whether color values are corrected, whether the picture display patterns are transparent and the like. And for other controls such as UITableView, the corresponding layout information also includes row, data Model type, cell type.
Specifically, according to the page identification information contained in the page initialization request, a corresponding page layout file is read from the local storage, and then layout processing of the corresponding page is performed through the following procedures: analyzing layout information of the page controls aiming at any page control, and determining layout parameters of the page controls; the specific analysis order is not limited to a plurality of page controls in a page. Drawing a page control according to layout parameters of the page control, for example, drawing a circle o at a position a according to the layout parameters, and drawing the circle o at the position a according to a preset circle drawing rule; judging whether the page control has a control of the next level according to the layout parameters of the page control; the control content information of the layout parameters of the page control displays information of sub-controls (namely, next-level controls) of the page control, including the number of the sub-controls and/or layout information of the sub-controls. When judging that the currently drawn page control has the next-level control, drawing the next-level control according to the layout parameters of the next-level control; and if the currently drawn page control does not have the next-level control, selecting one page control from the plurality of page controls of the page again, drawing the page control according to the process until the plurality of page controls are completely drawn, and ending the layout processing process.
In addition, in some optional embodiments of the present invention, functions of a page constructor are integrated in a currently started application, and data between each page in the currently started application is completely decoupled, any individual page can be acquired through the constructor, so as to implement the part of the page, in these optional embodiments, by specifying constructor type information of a page which needs to be laid currently in a page layout file, when a page initialization request is acquired, reading the locally stored page layout file, and starting the page constructor according to the controller type information, so that the page constructor creates a page controller of the page according to the controller type information, namely, builds a large frame structure of the page; then, layout processing is performed on the basis of the page constructor. In these alternative embodiments, the function of the page constructor integrated in the application can facilitate the construction of the page controller of any page to be presented, and the page constructor is utilized to construct the page controller before the layout processing, so that the large frame structure of the page can be simply and rapidly obtained, thereby being beneficial to improving the efficiency of page presentation.
Step S203: and presenting the page after the layout processing.
Step S204: after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file.
After the application is started, whether the page layout file of any page stored in the server is updated or not is detected, and specifically, the page layout file can be compared, or the detection can be carried out according to the timestamp information of the page layout file in the server.
Step S205: and sending a page layout file update notice to the page, and reading the updated page layout file stored locally to perform re-layout processing on the page according to the page layout file update notice.
After replacing the page layout file in the local storage, sending a page layout file update notice to the page so as to enable the page to be subjected to re-layout processing according to the page update notice, and further obtaining the page adapting to new layout requirements. The specific process of the re-layout process may refer to the layout process in step S202, which is not described herein. And, it is also possible to construct the page controller of the page by using the constructor first through the constructor type information carried in the updated page layout file, and then to perform the re-layout processing according to the updated page layout file on the basis.
Step S206: refreshing and presenting the page subjected to the re-layout processing.
According to the scheme, the server issues the updated layout file to realize dynamic layout, and operations such as page structure change, page layout, control attribute and the like can be performed under the condition that the mobile terminal does not adjust any codes. Moreover, the scheme of the embodiment can be widely applied to any application requiring flexible dynamic layout, and a typical application scene is as follows: the method is applied to information popularization and application, can be diversified in presentation style of popularization information, is not limited to the information in the Banner form all the time, the information in the front panel form all the time is the information in the front panel form all the time, the information in the full screen form all the time is the information in the full screen form all the time, and random presentation can be carried out according to adjustment of operators.
According to the page layout method provided by the embodiment, for some pages needing to be presented immediately after the application is started, such as an application main page, when the page needs to be initialized, a page layout file in a local storage is not replaced, and at the moment, the page layout file in the local storage is firstly utilized for initial layout and presentation; then, when the page layout file in the local storage is successfully replaced, a page layout file update notification is sent to the page, and then the page is subjected to a re-layout process according to the page layout file update notification. Therefore, after the application is started, the page layout file in the local storage is utilized to carry out layout so as to ensure the timely presentation of the page, and the use of a user is not influenced, aiming at the page to be presented when the page layout file in the local storage is not updated in time; and after the page layout file in the local storage is updated, refreshing and presenting are timely carried out, so that the refreshed page is adapted to new layout requirements, and the purpose of dynamic layout is further achieved.
Although the embodiment of fig. 2 only illustrates the case where the step of laying out the page is performed before the step of replacing the locally stored page layout file, in other embodiments of the present invention, for some pages that need to be presented only after the application is started, such as sub-pages under the main page, the step of replacing the locally stored page layout file may occur before the step of performing the layout processing on the page, and accordingly, after the page initialization request is acquired, the updated page layout file in the local storage may be used to perform the layout processing, and further, the dynamic layout of the page may be completed through one layout processing, so that the processed page meets the new layout requirement. To facilitate comparison of the two cases, a specific example is described below: assuming that application a comprises 3 pages, according to normal rendering logic, master page 1 is rendered before sub-page 2 and sub-page 3, and master page 1 is the first page to be rendered after launching the application. After the application is started, initializing the page according to the locally existing page layout file, and simultaneously carrying out dialogue with the server to acquire whether page updating exists or not, wherein in the process, the main page 1 completes the layout by utilizing the locally existing page layout file, and the sub page 2 and the sub page 3 do not have the initialization requirement yet, and the layout is not completed. After that, when it is detected that the page layout of all 3 pages is updated, the updated page layout file is downloaded and replaced with the locally existing page layout file, and an update notification is sent to the 3 pages. After the 3 pages receive the notification, the main page 1 is rearranged by using the page layout file replaced in the local storage, and the rearranged main page 1 is consistent with the updated page layout; and when the sub page 2 or the sub page 3 has the initialization requirement, the sub page 2 or the sub page 3 presented after the layout processing can be consistent with the new page layout by directly reading the page layout file in the local storage to perform the layout.
FIG. 3 illustrates a functional block diagram of a page layout apparatus according to one embodiment of the invention. As shown in fig. 3, the apparatus includes:
the acquiring module 301 is adapted to acquire a page initialization request for any page after the application is started;
the layout module 302 is adapted to read a locally stored page layout file according to the page initialization request to perform layout processing on the page;
a rendering module 303 adapted to render the layout-processed page;
the updating module 304 is adapted to, after the application is started, if the page layout file of any page stored in the server is updated, download the updated page layout file of the page from the server to replace the locally stored page layout file.
In an alternative embodiment, the apparatus further comprises: a re-layout module 305 adapted to:
sending a page layout file update notification to the page;
reading the updated page layout file stored locally according to the page layout file update notice to carry out re-layout processing on the page;
refreshing and presenting the page subjected to the re-layout processing.
In an alternative embodiment, the page layout file contains layout information of at least one of the following page controls:
control position information, control size information, control style information, control content information, control constraint condition information and control response information.
In an alternative embodiment, the layout module 302 is further adapted to:
analyzing layout information of page controls aiming at any page control, and determining layout parameters of the page controls;
drawing the page control according to the layout parameters of the page control;
judging whether the page control has a control of the next level according to the layout parameters of the page control; if yes, drawing the next-level control according to layout parameters of the next-level control.
In an alternative embodiment, the page layout file contains controller type information;
the apparatus further comprises: a creation module 306 adapted to: and starting a page constructor according to the controller type information so that the page constructor can create a page controller of the page according to the controller type information.
In an alternative embodiment, the page controls include text controls, button controls, picture controls, and/or UITableView.
Embodiments of the present application provide a non-volatile computer storage medium storing at least one executable instruction that may perform the page layout method of any of the method embodiments described above.
FIG. 4 illustrates a schematic diagram of a computing device, according to an embodiment of the invention, the particular embodiment of the invention not being limited to a particular implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein:
processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
Processor 402 is configured to execute program 410, and may specifically perform relevant steps in the page layout method embodiments described above.
In particular, program 410 may include program code including computer-operating instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically operable to cause processor 402 to:
after the application is started, a page initialization request is acquired for any page;
reading a locally stored page layout file to perform layout processing on the page according to the page initialization request;
presenting the page after layout processing;
after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file.
In an alternative embodiment, if the step of reading the locally stored page layout file to layout the page is performed before the step of downloading the updated page layout file of the page from the server to replace the locally stored page layout file, the program 410 may be further configured to cause the processor 402 to:
sending a page layout file update notification to the page;
reading the updated page layout file stored locally according to the page layout file update notice to carry out re-layout processing on the page;
refreshing and presenting the page subjected to the re-layout processing.
In an alternative embodiment, the page layout file contains layout information of at least one of the following page controls:
control position information, control size information, control style information, control content information, control constraint condition information and control response information.
In an alternative embodiment, program 410 may be further operable to cause processor 402 to perform the following operations, in particular: analyzing layout information of page controls aiming at any page control, and determining layout parameters of the page controls;
drawing the page control according to the layout parameters of the page control;
judging whether the page control has a control of the next level according to the layout parameters of the page control; if yes, drawing the next-level control according to layout parameters of the next-level control.
In an alternative embodiment, the page layout file contains controller type information;
program 410 may be further operable to cause processor 402 to perform, among other things: and starting a page constructor according to the controller type information so that the page constructor can create a page controller of the page according to the controller type information.
In an alternative embodiment, the page controls include text controls, button controls, picture controls, and/or UITableView.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a page layout device according to an embodiment of the invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.

Claims (12)

1. A page layout method, comprising:
after the application is started, a page initialization request is acquired for any page;
according to the page initialization request, reading a locally stored page layout file to perform layout processing on a page, wherein the page layout file contains layout information of at least one page space, and the layout processing on the page further comprises analyzing the layout information of the page control for any page control, and determining layout parameters of the page control; drawing the page control according to the layout parameters of the page control; judging whether the page control has a control of the next level according to the layout parameters of the page control; if yes, drawing a next-level control according to layout parameters of the next-level control;
presenting the page after layout processing;
after the application is started, if the page layout file of any page stored in the server is updated, the updated page layout file of the page is downloaded from the server to replace the locally stored page layout file.
2. The method of claim 1, wherein if the step of reading the locally stored page layout file to layout a page is performed before the step of downloading the updated page layout file of the page from the server to replace the locally stored page layout file, the method further comprises, after the step of downloading the updated page layout file of the page from the server to replace the locally stored page layout file:
sending a page layout file update notification to the page;
reading the updated page layout file stored locally according to the page layout file update notice to carry out re-layout processing on the page;
refreshing and presenting the page subjected to the re-layout processing.
3. The method of claim 1 or 2, wherein the page layout file contains layout information for at least one of the following page controls:
control position information, control size information, control style information, control content information, control constraint condition information and control response information.
4. The method of claim 1, wherein the page layout file includes controller type information;
before the layout processing is performed on the page, the method further includes:
and starting a page constructor according to the controller type information so that the page constructor can create a page controller of the page according to the controller type information.
5. The method of claim 3, wherein the page controls comprise text controls, button controls, picture controls, and/or UITableView.
6. A page layout apparatus, comprising:
the acquisition module is suitable for acquiring a page initialization request for any page after the application is started;
the layout module is suitable for reading a locally stored page layout file to carry out layout processing on pages according to the page initialization request, the page layout file comprises layout information of at least one page space, and the layout module is further suitable for: the layout processing of the page further comprises analyzing layout information of the page control for any page control, and determining layout parameters of the page control; drawing the page control according to the layout parameters of the page control; judging whether the page control has a control of the next level according to the layout parameters of the page control; if yes, drawing a next-level control according to layout parameters of the next-level control;
the presentation module is suitable for presenting the page after the layout processing;
and the updating module is suitable for downloading the updated page layout file of any page stored in the server to replace the locally stored page layout file if the page layout file of the page is updated after the application is started.
7. The apparatus of claim 6, wherein the apparatus further comprises: a re-layout module adapted to:
sending a page layout file update notification to the page;
reading the updated page layout file stored locally according to the page layout file update notice to carry out re-layout processing on the page;
refreshing and presenting the page subjected to the re-layout processing.
8. The apparatus of claim 6 or 7, wherein the page layout file contains layout information for at least one of the following page controls:
control position information, control size information, control style information, control content information, control constraint condition information and control response information.
9. The apparatus of claim 6, wherein the page layout file includes controller type information;
the apparatus further comprises: a creation module adapted to: and starting a page constructor according to the controller type information so that the page constructor can create a page controller of the page according to the controller type information.
10. The apparatus of claim 8, wherein the page controls comprise text controls, button controls, picture controls, and/or UITableView.
11. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the page layout method according to any one of claims 1 to 5.
12. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the page layout method of any one of claims 1-5.
CN201811599980.6A 2018-12-26 2018-12-26 Page layout method, page layout device, computing equipment and computer storage medium Active CN111367518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811599980.6A CN111367518B (en) 2018-12-26 2018-12-26 Page layout method, page layout device, computing equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811599980.6A CN111367518B (en) 2018-12-26 2018-12-26 Page layout method, page layout device, computing equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111367518A CN111367518A (en) 2020-07-03
CN111367518B true CN111367518B (en) 2024-04-05

Family

ID=71208150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811599980.6A Active CN111367518B (en) 2018-12-26 2018-12-26 Page layout method, page layout device, computing equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111367518B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487324A (en) * 2020-10-28 2021-03-12 贝壳技术有限公司 Page generation method and device, electronic medium and storage medium
CN112527351A (en) * 2020-12-07 2021-03-19 深圳创维-Rgb电子有限公司 Method, system, equipment and storage medium for remotely updating terminal application interface layout
CN114327656A (en) * 2021-12-27 2022-04-12 杭州圆规网络科技有限公司 Method and device for dynamically laying out application program interface, storage medium and electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981820A (en) * 2011-09-29 2013-03-20 微软公司 Automatic lifecycle management for pages on a mobile application
WO2015200544A1 (en) * 2014-06-24 2015-12-30 Keepsayk LLC Cloud system and method with mobile supercloud computing, data link redirection and layout editing
CN105573773A (en) * 2014-10-17 2016-05-11 Tcl集团股份有限公司 User interface laying method, apparatus and system
CN106502699A (en) * 2016-11-03 2017-03-15 腾讯科技(深圳)有限公司 A kind of five application page processing method, apparatus and system
CN106775637A (en) * 2016-11-18 2017-05-31 腾讯音乐娱乐(深圳)有限公司 The page display method and device of a kind of application program
CA2951145A1 (en) * 2015-12-28 2017-06-28 Beijing China-Power Information Technology Co., Ltd. Page constructor and page constructing method
CN107608674A (en) * 2017-09-22 2018-01-19 深圳市创维软件有限公司 One kind applies skin change method, device, computer and storage medium
CN108279903A (en) * 2018-02-24 2018-07-13 北京车和家信息技术有限公司 The method and device of page presentation
CN108304205A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108399072A (en) * 2017-02-06 2018-08-14 腾讯科技(深圳)有限公司 Five application page update method and device
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981820A (en) * 2011-09-29 2013-03-20 微软公司 Automatic lifecycle management for pages on a mobile application
WO2015200544A1 (en) * 2014-06-24 2015-12-30 Keepsayk LLC Cloud system and method with mobile supercloud computing, data link redirection and layout editing
CN105573773A (en) * 2014-10-17 2016-05-11 Tcl集团股份有限公司 User interface laying method, apparatus and system
CA2951145A1 (en) * 2015-12-28 2017-06-28 Beijing China-Power Information Technology Co., Ltd. Page constructor and page constructing method
CN106502699A (en) * 2016-11-03 2017-03-15 腾讯科技(深圳)有限公司 A kind of five application page processing method, apparatus and system
CN106775637A (en) * 2016-11-18 2017-05-31 腾讯音乐娱乐(深圳)有限公司 The page display method and device of a kind of application program
CN108399072A (en) * 2017-02-06 2018-08-14 腾讯科技(深圳)有限公司 Five application page update method and device
CN107608674A (en) * 2017-09-22 2018-01-19 深圳市创维软件有限公司 One kind applies skin change method, device, computer and storage medium
CN108304205A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium
CN108279903A (en) * 2018-02-24 2018-07-13 北京车和家信息技术有限公司 The method and device of page presentation
CN108829485A (en) * 2018-06-25 2018-11-16 腾讯科技(深圳)有限公司 Update method, device, storage medium and the computer equipment of application interface layout

Also Published As

Publication number Publication date
CN111367518A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US11868785B2 (en) Application program page processing method and device
CN107920112B (en) Configuration file pushing method supporting gray mode, central server and storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
WO2020131756A1 (en) Method and apparatus for browser application to load first screen of web page
CN107656729B (en) List view updating apparatus, method and computer-readable storage medium
CN109254773A (en) Skeleton page generation method, device, equipment and storage medium
CN104268229B (en) Resource obtaining method and device based on multi-process browser
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN110750664B (en) Picture display method and device
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN112256296A (en) Express delivery service APP updating method, device, equipment and storage medium based on Weex
WO2016070726A1 (en) Method, device, and browser client for loading page label
CN112230923A (en) User interface rendering method, user interface rendering device and server
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN112965690A (en) UI resource dynamic updating method and device, storage medium and electronic equipment
CN112131500A (en) Event response device and method, electronic equipment and storage medium
CN111079048A (en) Page loading method and device
CN109976744B (en) Visual programming method, system and terminal equipment
CN111737614A (en) Page display method and device, electronic equipment and storage medium
CN113703893A (en) Page rendering method, device, terminal and storage medium
CN111383038A (en) Advertisement display method and device of mobile terminal, mobile terminal and storage medium
CN103488508A (en) Browser working method, browser and terminal equipment
CN113760283A (en) Text rendering method and device
CN107092514B (en) Page content display method and device
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system

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
TA01 Transfer of patent application right

Effective date of registration: 20240308

Address after: Room 03, 2nd Floor, Building A, No. 20 Haitai Avenue, Huayuan Industrial Zone (Huanwai), Binhai New Area, Tianjin, 300450

Applicant after: 3600 Technology Group Co.,Ltd.

Country or region after: China

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant