WO2019228090A1 - Method and apparatus for accelerating application interface loading - Google Patents

Method and apparatus for accelerating application interface loading Download PDF

Info

Publication number
WO2019228090A1
WO2019228090A1 PCT/CN2019/083074 CN2019083074W WO2019228090A1 WO 2019228090 A1 WO2019228090 A1 WO 2019228090A1 CN 2019083074 W CN2019083074 W CN 2019083074W WO 2019228090 A1 WO2019228090 A1 WO 2019228090A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
loaded
screen
application
size
Prior art date
Application number
PCT/CN2019/083074
Other languages
French (fr)
Chinese (zh)
Inventor
刁亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019228090A1 publication Critical patent/WO2019228090A1/en

Links

Images

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/445Program loading or initiating
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Definitions

  • the present disclosure relates to, but is not limited to, the field of terminal technology.
  • each element needs to be filled on the screen according to the element layout structure diagram, and then the actual size of each element (control) on the interface is measured and calculated according to the screen size and screen resolution. And position, when there are many types of elements on the interface and the element structure is complicated, it will take a lot of calculation time, which affects the loading speed of the interface and leads to poor user experience.
  • the embodiments of the present disclosure provide a method and a device for accelerating the loading speed of an application interface.
  • An embodiment of the present disclosure provides a method for accelerating an application interface loading speed, including:
  • the element layout structure map and element fill record corresponding to the application's to-be-loaded interface; wherein the element layout structure map is used to indicate the composition and layout of all elements on the to-be-loaded interface; Describe the size and position of each element on the interface to be loaded after it is filled on the screen;
  • the interface to be loaded is drawn according to the element layout structure diagram and the element filling record.
  • An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
  • An element obtaining module configured to obtain an element layout structure diagram and element filling record corresponding to an interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; the element The filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen;
  • the element drawing module is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record when the element filling record of the interface to be loaded is not empty.
  • An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
  • An embodiment of the present disclosure provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the foregoing method for accelerating an application interface loading speed.
  • a method and a device for accelerating the loading speed of an application interface obtained by the embodiments of the present disclosure, obtain an element layout structure diagram and element filling record corresponding to an application to be loaded interface; To indicate the composition and layout of all elements on the interface to be loaded; the element filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen; When the element filling record is not empty, draw the interface to be loaded according to the element layout structure diagram and the element filling record.
  • the technical solution of the embodiment of the present disclosure can speed up the loading speed of the application interface.
  • FIG. 1 is a flowchart of a method for accelerating an application interface loading speed according to Embodiment 1 of the present disclosure
  • FIG. 2 is a structural diagram of a device for accelerating an application interface loading speed in Embodiment 2 of the present disclosure
  • FIG. 3 is a structural diagram of another apparatus for accelerating an application interface loading speed in Embodiment 2 of the present disclosure
  • Example 4 is a schematic diagram of an application interface in Example 1 of the present disclosure.
  • Example 5 is a flowchart of a method for accelerating an application interface loading speed in Example 1 of the present disclosure
  • 6 (a) to 6 (d) are schematic diagrams of the process of filling the screen with elements in Example 1 of the present disclosure.
  • an embodiment of the present disclosure provides a method for accelerating an application interface loading speed, including:
  • Step S110 Obtain an element layout structure diagram and element filling record corresponding to the interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; Saving the size and position of each element on the interface to be loaded after being filled on the screen;
  • Step S120 when the element filling record of the interface to be loaded is not empty, draw the interface to be loaded according to the element layout structure diagram and the element filling record.
  • an element refers to a control on an interface; the control includes: a simple control or a complex control; wherein the complex control is a combination or nesting of multiple simple controls.
  • simple controls such as picture controls, icon controls, text controls, etc .
  • complex controls such as tab controls, gridview controls, etc .
  • composition of an element refers to the structure of the control; for simple controls, the composition of the element includes the control type and the size of the control; for complex controls, the composition of the element includes: the control type and control size of all child controls, and the combination or Nested information
  • composition of the tab control includes the control type and control size of the two button sub-controls, and the combined information of the two button sub-controls (for example, left and right arrangement);
  • the layout of an element refers to the placement of each control on the screen; the placement is independent of screen size and screen resolution;
  • the size and position of the element after it is filled on the screen is related to the screen size and screen resolution
  • the size of the element after it is filled on the screen includes: the width and height of the control;
  • the position of the element includes coordinate information of multiple anchor points on the element.
  • the coordinate information of the anchor points includes: two-dimensional coordinates (x, y) and control depth information (z).
  • the control depth information is used to represent the control.
  • the anchor points on the element include: the top-left vertex of the element and the bottom-right vertex of the element;
  • the element fill record includes the size and position of the simple controls after they are filled on the screen.
  • the element fill record includes the size and position of each simple control in the complex control after it is filled on the screen, and the size and position of the complex control itself after it is filled on the screen.
  • the element filling record corresponding to the application interface may not be empty; if the application is after the terminal leaves the factory, For a third-party application installed by a user, the element filling record corresponding to the interface of the application is empty.
  • the element filling record corresponding to the application interface may not be empty.
  • the method when the element filling record of the interface to be loaded is empty, the method further includes:
  • an element filling record corresponding to each element on the interface to be loaded; wherein an element filling record corresponding to any one element stores the size and position of the element after being filled on the screen;
  • the drawing the interface to be loaded according to the element layout structure diagram and the element filling record includes:
  • the interface to be loaded of the application includes at least one of the following: a first interface after the application is started, and an interface with a high frequency of application loading.
  • the loading frequency of the application interface may be counted locally on the terminal or directly obtained from the network side, and the network side may perform statistical analysis on big data to determine which interfaces of the application are frequently loaded by the user.
  • the element filling record of one or more interfaces of the application is based on the screen Size and system default screen resolution are pre-generated;
  • an element filling record of an interface of the application is generated during a process in which the terminal loads the interface of the application for the first time.
  • the applications developed by terminal manufacturers are various system applications: setting applications, phone applications, camera applications, etc .; third-party applications such as WeChat, Alipay, etc.
  • the method for accelerating the loading speed of the application interface in this embodiment can directly obtain the size and position of the element on the screen through the element filling record when the application interface is loaded, eliminating the need for measuring and filling the element on the interface each time the application interface is loaded
  • the calculation process speeds up the loading of the interface.
  • an embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
  • the element obtaining module 201 is configured to obtain an element layout structure diagram and an element filling record corresponding to an interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; The element filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen;
  • the element drawing module 202 is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record when the element filling record of the interface to be loaded is not empty.
  • the device further includes an element filling module 203;
  • the element filling module 203 is configured to measure and calculate each element on the element structure distribution map according to the screen size and screen resolution when the element filling record of the interface to be loaded is empty. The size and position of the element; generating an element filling record corresponding to each element on the interface to be loaded; wherein the element filling record corresponding to any one element stores the size and position of the element after being filled on the screen.
  • the element filling record corresponding to the application interface may not be empty; if the application is after the terminal leaves the factory, For a third-party application installed by a user, the element filling record corresponding to the interface of the application is empty.
  • the element filling record corresponding to the application interface may not be empty.
  • the element drawing module 202 is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record in the following manner:
  • the interface to be loaded of the application includes at least one of the following: a first interface after the application is started, and an interface with a high frequency of application loading.
  • the device for accelerating the loading speed of the application interface in this embodiment can directly obtain the size and position of the element on the screen through the element filling record when the application interface loads, eliminating the need for measuring The calculation process speeds up the loading of the interface.
  • An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
  • An embodiment of the present disclosure provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the acceleration of an application interface loading speed described in Embodiment 1 is implemented. Steps of the method.
  • the application interface to be loaded on the terminal is shown in FIG. 4, and the interface includes two controls arranged on top of each other: a tab control and a gridview control.
  • the tab control is formed by two button controls arranged left and right.
  • the gridview control is filled with twelve lower-level combination controls composed of icons and text.
  • a method for accelerating the loading speed of an application interface may include the following steps:
  • Step S10 Obtain an element layout structure diagram and an element filling record corresponding to the interface to be loaded of the application;
  • the element layout structure diagram indicates the composition and layout of all elements on the interface to be loaded; the element filling record stores the size and position of each element on the interface to be loaded after being filled on the screen;
  • the text control is a simple control.
  • Icon controls round icons, pentagon icons, octagon icons
  • button controls are simple controls.
  • the tab control and gridview control are complex controls. Among them, the tab control contains two button controls.
  • the gridview control contains twelve text controls and icon controls.
  • step S20 it is determined whether the element filling record corresponding to the interface to be loaded is empty, if yes, step S30 is performed, otherwise step S50 is performed;
  • Step S30 Measure and calculate the size and position of each element on the element structure distribution map after being filled on the screen according to the screen size and screen resolution;
  • the gridview control is a complex control.
  • the gridview control is filled with twelve lower-level combination controls composed of icons and text.
  • the gridview control can be populated as follows:
  • Step S101 as shown in FIG. 6 (a), acquiring a lowest-level icon control (round icon) and a lowest-level text control;
  • step S102 as shown in FIG. 6 (b), the icon control and the text control are combined in an up-down manner to generate a first-level sub-control
  • step S103 as shown in FIG. 6 (c), twelve first-level sub-controls are arranged and combined in a manner of four rows and three columns to form a gridview control.
  • the tab control is generated similarly to the gridview control, and can include the following steps:
  • Step S201 obtaining two lowest-level button controls
  • Step S202 arrange and combine the two button controls side by side to form a tab control.
  • step S104 as shown in FIG. 6 (d), the tab control and the gridview control are arranged in an up-down manner to generate an interface to be loaded;
  • Step S40 Generate an element filling record for each element on the interface to be loaded, where the element filling record saves the size and position of the element after being filled on the terminal screen;
  • the size and position of the element after it is filled on the screen is related to the screen size and screen resolution.
  • the element fill record includes each simple control in the complex control after it is filled on the screen. Size and position, as well as the size and position of the complex control itself when it fills the screen.
  • the size of the first icon control in the gridview control (the icon control of the first row and the first column in the gridview control) is: 160px wide and 140px high; the position of the first icon control filled on the screen is: upper left corner
  • the size of the first text control in the gridview control (the text control of the first row and the first column in the gridview control) is: 160px wide and 60px high; the position of the first text control filled on the screen is: upper left corner
  • Step S50 draw the interface to be loaded according to the element layout structure diagram and the element filling record
  • the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded; for each element in the element layout structure diagram, query the corresponding element of the element according to the composition of the element Fill the record to obtain the size and position of the element after it is filled on the screen; and draw the interface to be loaded according to the size and position of each element on the interface to be loaded after it is filled on the screen.
  • the structure and layout of each control on the interface are obtained according to the element layout structure diagram, and then the element fill record is directly queried to obtain the size of two button controls, twelve icon controls, and twelve text controls And coordinates to directly draw the interface, eliminating the measurement and calculation process of filling elements on the interface, which can speed up the loading speed of the interface.
  • the size and position of the element on the screen can be directly obtained through the element filling record when the application interface is loaded, eliminating the measurement and calculation process of filling the element on the interface each time the application interface is loaded, which speeds up the loading of the interface speed.

Abstract

Disclosed are a method and apparatus for accelerating application interface loading. The method for accelerating application interface loading comprises: acquiring an element layout structure diagram and an element filling record corresponding to an interface to be loaded of an application, wherein the element layout structure diagram is used to indicate the constitution and layout of all elements on the interface to be loaded, and the element filling record is used to store the size and position of each element on the interface to be loaded after the element is filled into a screen; and when the element filling record of the interface to be loaded is non-empty, drawing the interface to be loaded according to the element layout structure diagram and the element filling record.

Description

一种加快应用界面加载速度的方法及装置Method and device for accelerating application interface loading speed
相关申请的交叉引用Cross-reference to related applications
本公开基于申请号为201810542323.1、申请日为2018年05月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This disclosure is based on a Chinese patent application with an application number of 201810542323.1 and an application date of May 30, 2018, and claims the priority of the Chinese patent application. The entire contents of the Chinese patent application are incorporated herein by reference.
技术领域Technical field
本公开涉及但不限于终端技术领域。The present disclosure relates to, but is not limited to, the field of terminal technology.
背景技术Background technique
安卓系统在应用冷启动过程中加载应用界面时,需要根据元素布局结构图将每一个元素填充到屏幕上,然后根据屏幕尺寸和屏幕分辨率测量并计算界面上每一个元素(控件)的实际大小和位置,当界面上元素种类较多、元素结构复杂时会耗费大量的计算时间,影响了界面的加载速度,导致用户体验变差。When the Android system loads the application interface during the application cold start process, each element needs to be filled on the screen according to the element layout structure diagram, and then the actual size of each element (control) on the interface is measured and calculated according to the screen size and screen resolution. And position, when there are many types of elements on the interface and the element structure is complicated, it will take a lot of calculation time, which affects the loading speed of the interface and leads to poor user experience.
发明内容Summary of the invention
本公开实施例提供一种加快应用界面加载速度的方法及装置。The embodiments of the present disclosure provide a method and a device for accelerating the loading speed of an application interface.
本公开实施例提供一种加快应用界面加载速度的方法,包括:An embodiment of the present disclosure provides a method for accelerating an application interface loading speed, including:
获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;Obtain the element layout structure map and element fill record corresponding to the application's to-be-loaded interface; wherein the element layout structure map is used to indicate the composition and layout of all elements on the to-be-loaded interface; Describe the size and position of each element on the interface to be loaded after it is filled on the screen;
在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。When the element filling record of the interface to be loaded is not empty, the interface to be loaded is drawn according to the element layout structure diagram and the element filling record.
本公开实施例提供一种加快应用界面加载速度的装置,包括:An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
元素获取模块,配置为获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;An element obtaining module configured to obtain an element layout structure diagram and element filling record corresponding to an interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; the element The filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen;
元素绘制模块,配置为在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。The element drawing module is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record when the element filling record of the interface to be loaded is not empty.
本公开实施例提供一种加快应用界面加载速度的装置,包括:An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述加快应用界面加载速度的方法的步骤。A memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, implements the steps of the foregoing method for accelerating an application interface loading speed.
本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述加快应用界面加载速度的方法的步骤。An embodiment of the present disclosure provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the foregoing method for accelerating an application interface loading speed.
与相关技术相比,本公开实施例提供的一种加快应用界面加载速度的方法及装置,获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。本公开实施例的技术方案能够加快应用界面的加载速度。Compared with the related art, a method and a device for accelerating the loading speed of an application interface provided by the embodiments of the present disclosure, obtain an element layout structure diagram and element filling record corresponding to an application to be loaded interface; To indicate the composition and layout of all elements on the interface to be loaded; the element filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen; When the element filling record is not empty, draw the interface to be loaded according to the element layout structure diagram and the element filling record. The technical solution of the embodiment of the present disclosure can speed up the loading speed of the application interface.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本公开实施例1的一种加快应用界面加载速度的方法流程图;1 is a flowchart of a method for accelerating an application interface loading speed according to Embodiment 1 of the present disclosure;
图2为本公开实施例2中一种加快应用界面加载速度的装置结构图;2 is a structural diagram of a device for accelerating an application interface loading speed in Embodiment 2 of the present disclosure;
图3为本公开实施例2中另一种加快应用界面加载速度的装置结构图;3 is a structural diagram of another apparatus for accelerating an application interface loading speed in Embodiment 2 of the present disclosure;
图4为本公开示例1中一种应用界面的示意图;4 is a schematic diagram of an application interface in Example 1 of the present disclosure;
图5为本公开示例1的加快应用界面加载速度的方法流程图;5 is a flowchart of a method for accelerating an application interface loading speed in Example 1 of the present disclosure;
图6(a)~图6(d)为本公开示例1中元素填充屏幕的过程示意图。6 (a) to 6 (d) are schematic diagrams of the process of filling the screen with elements in Example 1 of the present disclosure.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚明白,下文中将结合附图对本公开的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。To make the objectives, technical solutions, and advantages of the present disclosure more clear, the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other.
实施例1Example 1
如图1所示,本公开实施例提供了一种加快应用界面加载速度的方法,包括:As shown in FIG. 1, an embodiment of the present disclosure provides a method for accelerating an application interface loading speed, including:
步骤S110,获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;Step S110: Obtain an element layout structure diagram and element filling record corresponding to the interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; Saving the size and position of each element on the interface to be loaded after being filled on the screen;
步骤S120,在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。Step S120: when the element filling record of the interface to be loaded is not empty, draw the interface to be loaded according to the element layout structure diagram and the element filling record.
本实施例中,元素是指界面上的控件;所述控件包括:简单控件或复杂控件;其中,复杂控件是由多个简单控件组合或嵌套而成的。In this embodiment, an element refers to a control on an interface; the control includes: a simple control or a complex control; wherein the complex control is a combination or nesting of multiple simple controls.
其中,简单控件比如:图片控件、图标控件、文本控件等;复杂控件比如tab控件、gridview控件等;Among them, simple controls such as picture controls, icon controls, text controls, etc .; complex controls such as tab controls, gridview controls, etc .;
元素的构成是指控件的结构;对于简单控件,元素的构成包括控件类型和控件尺寸;对于复杂控件,元素的构成包括:所有子控件的控件类型和控件尺寸,以及子控件之间的组合或嵌套信息;The composition of an element refers to the structure of the control; for simple controls, the composition of the element includes the control type and the size of the control; for complex controls, the composition of the element includes: the control type and control size of all child controls, and the combination or Nested information
比如,tab控件的构成包括两个button子控件的控件类型和控件尺寸,以及两个button子控件的组合信息(比如,左右排列);For example, the composition of the tab control includes the control type and control size of the two button sub-controls, and the combined information of the two button sub-controls (for example, left and right arrangement);
元素的布局是指各个控件在屏幕上的摆放位置;所述摆放位置与屏幕尺寸和屏幕分辨率无关;The layout of an element refers to the placement of each control on the screen; the placement is independent of screen size and screen resolution;
元素在填充到屏幕上后的尺寸和位置与屏幕尺寸和屏幕分辨率有关;The size and position of the element after it is filled on the screen is related to the screen size and screen resolution;
其中,元素在填充到屏幕上后的尺寸包括:控件的宽和高;Among them, the size of the element after it is filled on the screen includes: the width and height of the control;
其中,元素的位置包括元素上多个定位点的坐标信息;其中,定位点的坐标信息包括:二维坐标(x,y)和控件深度信息(z);其中,控件深度信息用于表示控件所在的图层信息;The position of the element includes coordinate information of multiple anchor points on the element. Among them, the coordinate information of the anchor points includes: two-dimensional coordinates (x, y) and control depth information (z). Among them, the control depth information is used to represent the control. Layer information
比如,对于矩形控件,所述元素上的定位点包括:元素的左上角顶点和元素的右下角顶点;For example, for a rectangular control, the anchor points on the element include: the top-left vertex of the element and the bottom-right vertex of the element;
对于简单控件,元素填充记录中包括所述简单控件在填充到屏幕上后的尺寸和位置。对于复杂控件,元素填充记录中包括复杂控件中的每一个简单控件在填充到屏幕上后的尺寸和位置,以及复杂控件本身填充到屏幕上后的尺寸和位置。For simple controls, the element fill record includes the size and position of the simple controls after they are filled on the screen. For complex controls, the element fill record includes the size and position of each simple control in the complex control after it is filled on the screen, and the size and position of the complex control itself after it is filled on the screen.
其中,当所述应用界面首次加载时,如果所述应用是终端出厂前已经预置在终端中的应用,则所述应用界面对应的元素填充记录可能非空;如果所述应用是终端出厂后用户安装的第三方应用,则所述应用的界面对应的元素填充记录为空。Wherein, when the application interface is first loaded, if the application is an application that has been preset in the terminal before the terminal leaves the factory, the element filling record corresponding to the application interface may not be empty; if the application is after the terminal leaves the factory, For a third-party application installed by a user, the element filling record corresponding to the interface of the application is empty.
其中,当所述应用界面至少加载过一次时,所述应用界面对应的元素填充记录可能非空。Wherein, when the application interface is loaded at least once, the element filling record corresponding to the application interface may not be empty.
在一些实施方式中,在所述待加载界面的元素填充记录为空时,所述方法还包括:In some embodiments, when the element filling record of the interface to be loaded is empty, the method further includes:
根据屏幕尺寸和屏幕分辨率测量并计算所述元素结构分布图上每一个元素在填充到所述屏幕上后的尺寸和位置;Measure and calculate the size and position of each element on the element structure distribution map after being filled on the screen according to the screen size and screen resolution;
生成所述待加载界面上每一个元素对应的元素填充记录;其中,任意一个元素对应的元素填充记录保存所述元素在填充到屏幕上后的尺寸和位置;Generating an element filling record corresponding to each element on the interface to be loaded; wherein an element filling record corresponding to any one element stores the size and position of the element after being filled on the screen;
根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。And drawing the interface to be loaded according to the element layout structure diagram and the element filling record.
在一些实施方式中,所述根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面,包括:In some embodiments, the drawing the interface to be loaded according to the element layout structure diagram and the element filling record includes:
查询所述待加载界面的元素布局结构图获得所述待加载界面上每一个 元素的构成;Querying the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded;
对所述元素布局结构图中的每一个元素,根据所述元素的构成查询所述元素对应的元素填充记录,获得所述元素在填充到屏幕上后的尺寸和位置;For each element in the element layout chart, query the element fill record corresponding to the element according to the composition of the element to obtain the size and position of the element after being filled on the screen;
根据所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置绘制所述待加载界面。Drawing the interface to be loaded according to the size and position of each element on the interface to be loaded after being filled on the screen.
在一些实施方式中,所述应用的待加载界面包括以下至少一种:所述应用启动后的第一个界面,所述应用加载频率高的界面。In some embodiments, the interface to be loaded of the application includes at least one of the following: a first interface after the application is started, and an interface with a high frequency of application loading.
其中,应用界面的加载频率可以在终端本地进行统计,或者从网络侧直接获取,所述网络侧可以通过大数据进行统计分析确定该应用的哪些界面是经常被用户加载的。The loading frequency of the application interface may be counted locally on the terminal or directly obtained from the network side, and the network side may perform statistical analysis on big data to determine which interfaces of the application are frequently loaded by the user.
在一些实施方式中,当所述应用是所述终端的厂商开发的应用并在所述终端出厂前预先安装在所述终端中时,所述应用的一个或多个界面的元素填充记录根据屏幕尺寸和系统默认的屏幕分辨率预先生成;In some embodiments, when the application is an application developed by a manufacturer of the terminal and pre-installed in the terminal before the terminal leaves the factory, the element filling record of one or more interfaces of the application is based on the screen Size and system default screen resolution are pre-generated;
在一些实施方式中,当所述应用是第三方应用时,所述应用的界面的元素填充记录在所述终端首次加载所述应用的界面的过程中生成。In some implementations, when the application is a third-party application, an element filling record of an interface of the application is generated during a process in which the terminal loads the interface of the application for the first time.
其中,终端的厂商开发的应用比如各种系统应用:设置应用、电话应用、相机应用等;第三方应用比如:微信、支付宝等。Among them, the applications developed by terminal manufacturers are various system applications: setting applications, phone applications, camera applications, etc .; third-party applications such as WeChat, Alipay, etc.
本实施例的加快应用界面加载速度的方法,在应用界面加载时通过元素填充记录能够直接获得元素在屏幕上的尺寸和位置,省去每次加载应用界面时将元素填充到界面上的测量和计算过程,加快了界面的加载速度。The method for accelerating the loading speed of the application interface in this embodiment can directly obtain the size and position of the element on the screen through the element filling record when the application interface is loaded, eliminating the need for measuring and filling the element on the interface each time the application interface is loaded The calculation process speeds up the loading of the interface.
实施例2Example 2
如图2所示,本公开实施例提供了一种加快应用界面加载速度的装置,包括:As shown in FIG. 2, an embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
元素获取模块201,配置为获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面 上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;The element obtaining module 201 is configured to obtain an element layout structure diagram and an element filling record corresponding to an interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; The element filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen;
元素绘制模块202,配置为在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。The element drawing module 202 is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record when the element filling record of the interface to be loaded is not empty.
在一些实施方式中,如图3所示,所述装置还包括元素填充模块203;In some implementations, as shown in FIG. 3, the device further includes an element filling module 203;
所述元素填充模块203,配置为在所述待加载界面的元素填充记录为空时,根据屏幕尺寸和屏幕分辨率测量并计算所述元素结构分布图上每一个元素在填充到所述屏幕上后的尺寸和位置;生成所述待加载界面上每一个元素对应的元素填充记录;其中,任意一个元素对应的元素填充记录保存所述元素在填充到屏幕上后的尺寸和位置。The element filling module 203 is configured to measure and calculate each element on the element structure distribution map according to the screen size and screen resolution when the element filling record of the interface to be loaded is empty. The size and position of the element; generating an element filling record corresponding to each element on the interface to be loaded; wherein the element filling record corresponding to any one element stores the size and position of the element after being filled on the screen.
其中,当所述应用界面首次加载时,如果所述应用是终端出厂前已经预置在终端中的应用,则所述应用界面对应的元素填充记录可能非空;如果所述应用是终端出厂后用户安装的第三方应用,则所述应用的界面对应的元素填充记录为空。Wherein, when the application interface is first loaded, if the application is an application that has been preset in the terminal before the terminal leaves the factory, the element filling record corresponding to the application interface may not be empty; if the application is after the terminal leaves the factory, For a third-party application installed by a user, the element filling record corresponding to the interface of the application is empty.
其中,当所述应用界面至少加载过一次时,所述应用界面对应的元素填充记录可能非空。Wherein, when the application interface is loaded at least once, the element filling record corresponding to the application interface may not be empty.
在一些实施方式中,元素绘制模块202,配置为采用以下方式根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面:In some embodiments, the element drawing module 202 is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record in the following manner:
查询所述待加载界面的元素布局结构图获得所述待加载界面上每一个元素的构成;Querying the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded;
对所述元素布局结构图中的每一个元素,根据所述元素的构成查询所述元素对应的元素填充记录,获得所述元素在填充到屏幕上后的尺寸和位置;For each element in the element layout chart, query the element fill record corresponding to the element according to the composition of the element to obtain the size and position of the element after being filled on the screen;
根据所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置绘制所述待加载界面。Drawing the interface to be loaded according to the size and position of each element on the interface to be loaded after being filled on the screen.
在一些实施方式中,所述应用的待加载界面包括以下至少一种:所述应用启动后的第一个界面,所述应用加载频率高的界面。In some embodiments, the interface to be loaded of the application includes at least one of the following: a first interface after the application is started, and an interface with a high frequency of application loading.
本实施例的加快应用界面加载速度的装置,在应用界面加载时通过元 素填充记录能够直接获得元素在屏幕上的尺寸和位置,省去每次加载应用界面时将元素填充到界面上的测量和计算过程,加快了界面的加载速度。The device for accelerating the loading speed of the application interface in this embodiment can directly obtain the size and position of the element on the screen through the element filling record when the application interface loads, eliminating the need for measuring The calculation process speeds up the loading of the interface.
实施例3Example 3
本公开实施例提供了一种加快应用界面加载速度的装置,包括:An embodiment of the present disclosure provides a device for accelerating an application interface loading speed, including:
存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述实施例1中所述的加快应用界面加载速度的方法的步骤。A memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the program for accelerating the loading speed of the application interface described in Embodiment 1 is implemented Method steps.
实施例4Example 4
本公开实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述实施例1中所述的加快应用界面加载速度的方法的步骤。An embodiment of the present disclosure provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the acceleration of an application interface loading speed described in Embodiment 1 is implemented. Steps of the method.
下面通过一些示例进一步说明本申请的加快应用界面加载速度的方法。The method for accelerating the loading speed of the application interface according to the present application is further illustrated by some examples below.
示例1Example 1
终端待加载的应用界面如附图4所示,所述界面包括上下排列的两个控件:tab控件和gridview控件。其中,tab控件由两个button控件左右排列而成。gridview控件内部填充了十二个由图标和文本(text)构成的级别更低的组合控件。The application interface to be loaded on the terminal is shown in FIG. 4, and the interface includes two controls arranged on top of each other: a tab control and a gridview control. Among them, the tab control is formed by two button controls arranged left and right. The gridview control is filled with twelve lower-level combination controls composed of icons and text.
如图5所示,一种加快应用界面加载速度的方法可以包括以下步骤:As shown in FIG. 5, a method for accelerating the loading speed of an application interface may include the following steps:
步骤S10,获取应用的待加载界面对应的元素布局结构图和元素填充记录;Step S10: Obtain an element layout structure diagram and an element filling record corresponding to the interface to be loaded of the application;
其中,所述元素布局结构图指示所述待加载界面上所有元素的构成和布局;所述元素填充记录中保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;The element layout structure diagram indicates the composition and layout of all elements on the interface to be loaded; the element filling record stores the size and position of each element on the interface to be loaded after being filled on the screen;
如图4所示,text控件是简单控件。图标控件(圆形图标、五边形图标、八边形图标)是简单控件,button控件是简单控件。tab控件和gridview控件是复杂控件。其中,tab控件包含两个button控件。gridview控件包含十二个文本控件和图标控件。As shown in Figure 4, the text control is a simple control. Icon controls (round icons, pentagon icons, octagon icons) are simple controls, and button controls are simple controls. The tab control and gridview control are complex controls. Among them, the tab control contains two button controls. The gridview control contains twelve text controls and icon controls.
步骤S20,判断所述待加载界面对应的元素填充记录是否为空,是则执行步骤S30,否则执行步骤S50;In step S20, it is determined whether the element filling record corresponding to the interface to be loaded is empty, if yes, step S30 is performed, otherwise step S50 is performed;
步骤S30,根据屏幕尺寸和屏幕分辨率测量并计算所述元素结构分布图上每一个元素在填充到屏幕上后的尺寸和位置;Step S30: Measure and calculate the size and position of each element on the element structure distribution map after being filled on the screen according to the screen size and screen resolution;
其中,gridview控件是一个复杂控件,gridview控件内部填充了十二个由图标和文字构成的级别更低的组合控件。gridview控件可以按照下述步骤去填充:Among them, the gridview control is a complex control. The gridview control is filled with twelve lower-level combination controls composed of icons and text. The gridview control can be populated as follows:
步骤S101,如图6(a)所示,获取一个最低级别的图标控件(圆形图标)和一个最低级别的文本控件;Step S101, as shown in FIG. 6 (a), acquiring a lowest-level icon control (round icon) and a lowest-level text control;
步骤S102,如图6(b)所示,将图标控件和文本控件按照上下方式进行组合,生成第一级子控件;In step S102, as shown in FIG. 6 (b), the icon control and the text control are combined in an up-down manner to generate a first-level sub-control;
步骤S103,如图6(c)所示,将十二个第一级子控件按照四行三列的方式排列组合,形成gridview控件。In step S103, as shown in FIG. 6 (c), twelve first-level sub-controls are arranged and combined in a manner of four rows and three columns to form a gridview control.
另外,tab控件的生成方式与gridview控件类似,可以包括以下步骤:In addition, the tab control is generated similarly to the gridview control, and can include the following steps:
步骤S201,获取两个最低级别的button控件;Step S201, obtaining two lowest-level button controls;
步骤S202,将两个button控件按照左右并列的方式排列组合,形成tab控件。Step S202: arrange and combine the two button controls side by side to form a tab control.
在填充完gridview控件和tab控件后,还包括以下步骤:After filling the gridview control and tab control, the following steps are also included:
步骤S104,如图6(d)所示,将tab控件和gridview控件按照上下方式进行排列,生成待加载界面;In step S104, as shown in FIG. 6 (d), the tab control and the gridview control are arranged in an up-down manner to generate an interface to be loaded;
步骤S40,生成所述待加载界面上每一个元素的元素填充记录,所述元素填充记录保存所述元素在填充到终端屏幕上后的尺寸和位置;Step S40: Generate an element filling record for each element on the interface to be loaded, where the element filling record saves the size and position of the element after being filled on the terminal screen;
其中,元素在填充到屏幕上后的尺寸和位置与屏幕尺寸和屏幕分辨率有关;对于复杂控件tab控件和gridview控件,元素填充记录中包括复杂控 件中的每一个简单控件在填充到屏幕上后的尺寸和位置,以及复杂控件本身填充到屏幕上后的尺寸和位置。Among them, the size and position of the element after it is filled on the screen is related to the screen size and screen resolution. For the complex control tab control and gridview control, the element fill record includes each simple control in the complex control after it is filled on the screen. Size and position, as well as the size and position of the complex control itself when it fills the screen.
比如,tab控件填充到屏幕上的尺寸是:宽480px,高100px;其中,px代表像素(pixel);tab控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(0,0),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(480,100),控件深度值为z=0; For example, the size of the tab control filled on the screen is: 480px wide and 100px high; where px represents a pixel (pixel); the position of the tab control filled on the screen is: the coordinate information of the top left corner vertex is: two-dimensional coordinates (x 0 , y 0 ) = (0,0), the control depth value is z = 0; the coordinate information of the bottom right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (480,100), and the control depth value is z = 0;
tab控件内的第一button控件(左面的button控件)填充到屏幕上的尺寸是:宽240px,高100px;第一button控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(0,0),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(240,100),控件深度值为z=0; The size of the first button control (the left button control) in the tab control to be filled on the screen is: 240px wide and 100px in height; the position of the first button control to be filled on the screen is: the coordinate information of the top left corner vertex is: two-dimensional Coordinates (x 0 , y 0 ) = (0, 0), control depth value z = 0; coordinate information of the bottom right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (240, 100 ), control depth value is z = 0;
tab控件内的第二button控件(右面的button控件)填充到屏幕上的尺寸是:宽240px,高100px;第二button控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(240,0),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(480,100),控件深度值为z=0; The size of the second button control (the right button control) in the tab control is filled on the screen: 240px wide and 100px in height; the position of the second button control filled on the screen is: the coordinate information of the top left corner vertex: two-dimensional Coordinates (x 0 , y 0 ) = (240,0), control depth value z = 0; the coordinate information of the lower right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (480,100), control depth value is z = 0;
gridview控件填充到屏幕上的尺寸是:宽480px,高800px;gridview控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(0,100),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(480,900),控件深度值为z=0; The size of the gridview control filled on the screen is: 480px wide and 800px high; the position of the gridview control filled on the screen is: the coordinate information of the top left vertex is: two-dimensional coordinates (x 0 , y 0 ) = (0,100), the control The depth value is z = 0; the coordinate information of the lower right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (480,900), and the control depth value is z = 0;
gridview控件内的第一图标控件(gridview控件内第一行第一列的图标控件)填充到屏幕上的尺寸是:宽160px,高140px;第一图标控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(0,100),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(160,240),控件深度值为z=0; The size of the first icon control in the gridview control (the icon control of the first row and the first column in the gridview control) is: 160px wide and 140px high; the position of the first icon control filled on the screen is: upper left corner The vertex coordinate information is: two-dimensional coordinates (x 0 , y 0 ) = (0,100), the control depth value z = 0; the coordinate information of the lower right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (160,240) , The control depth value is z = 0;
gridview控件内的第一文本控件(gridview控件内第一行第一列的文本控件)填充到屏幕上的尺寸是:宽160px,高60px;第一文本控件填充到屏幕上的位置是:左上角顶点的坐标信息是:二维坐标(x 0,y 0)=(0,240),控件深度值z=0;右下角顶点的坐标信息是:二维坐标(x 1,y 1)=(160,300),控件深度值为z=0; The size of the first text control in the gridview control (the text control of the first row and the first column in the gridview control) is: 160px wide and 60px high; the position of the first text control filled on the screen is: upper left corner The vertex coordinate information is: two-dimensional coordinates (x 0 , y 0 ) = (0,240), the control depth value z = 0; the coordinate information of the lower right corner vertex is: two-dimensional coordinates (x 1 , y 1 ) = (160,300) , The control depth value is z = 0;
其中,控件深度值z=0表示最上面的第一图层。如果控件之间具有嵌 套关系,则位于第一图层之下的第二图层的控件的深度值z=1,位于第二图层之下的第三图层的控件的深度值z=2,以此类推。Among them, the control depth value z = 0 represents the top first layer. If the controls have a nested relationship, the depth value of the control of the second layer below the first layer is z = 1, and the depth value of the control of the third layer below the second layer is z = 2, and so on.
步骤S50,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面;Step S50: draw the interface to be loaded according to the element layout structure diagram and the element filling record;
查询所述待加载界面的元素布局结构图获得所述待加载界面上每一个元素的构成;对所述元素布局结构图中的每一个元素,根据所述元素的构成查询所述元素对应的元素填充记录,获得所述元素在填充到屏幕上后的尺寸和位置;根据所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置绘制所述待加载界面。Query the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded; for each element in the element layout structure diagram, query the corresponding element of the element according to the composition of the element Fill the record to obtain the size and position of the element after it is filled on the screen; and draw the interface to be loaded according to the size and position of each element on the interface to be loaded after it is filled on the screen.
比如,绘制图4的界面时,根据元素布局结构图获知界面上的各个控件的结构和布局,然后直接查询元素填充记录获得两个button控件,十二个图标控件、十二个文本控件的尺寸和坐标,直接绘制出界面,省去了将元素填充到界面上的测量和计算过程,能够加速界面的加载速度。For example, when drawing the interface of FIG. 4, the structure and layout of each control on the interface are obtained according to the element layout structure diagram, and then the element fill record is directly queried to obtain the size of two button controls, twelve icon controls, and twelve text controls And coordinates to directly draw the interface, eliminating the measurement and calculation process of filling elements on the interface, which can speed up the loading speed of the interface.
本示例中,在应用界面加载时通过元素填充记录能够直接获得元素在屏幕上的尺寸和位置,省去每次加载应用界面时将元素填充到界面上的测量和计算过程,加快了界面的加载速度。In this example, the size and position of the element on the screen can be directly obtained through the element filling record when the application interface is loaded, eliminating the measurement and calculation process of filling the element on the interface each time the application interface is loaded, which speeds up the loading of the interface speed.
需要说明的是,本公开还可有其他多种实施例,在不背离本公开精神及其实质的情况下,熟悉本领域的技术人员可根据本公开作出各种相应的改变和变形,但这些相应的改变和变形都应属于本公开所附的权利要求的保护范围。It should be noted that the present disclosure may have other various embodiments. Without departing from the spirit and essence of the present disclosure, those skilled in the art may make various corresponding changes and modifications according to the present disclosure, but these Corresponding changes and modifications should fall within the protection scope of the claims attached to this disclosure.

Claims (10)

  1. 一种加快应用界面加载速度的方法,包括:A method for accelerating the loading speed of an application interface includes:
    获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;Obtain the element layout structure map and element fill record corresponding to the application's to-be-loaded interface; wherein the element layout structure map is used to indicate the composition and layout of all elements on the to-be-loaded interface; the element fill record is used to save Describe the size and position of each element on the interface to be loaded after it is filled on the screen;
    在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。When the element filling record of the interface to be loaded is not empty, the interface to be loaded is drawn according to the element layout structure diagram and the element filling record.
  2. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    在所述待加载界面的元素填充记录为空时,根据屏幕尺寸和屏幕分辨率测量并计算所述元素结构分布图上每一个元素在填充到所述屏幕上后的尺寸和位置;When the element filling record of the interface to be loaded is empty, measure and calculate the size and position of each element on the element structure distribution map after being filled on the screen according to the screen size and screen resolution;
    生成所述待加载界面上每一个元素对应的元素填充记录;其中,任意一个元素对应的元素填充记录保存所述元素在填充到屏幕上后的尺寸和位置;Generating an element filling record corresponding to each element on the interface to be loaded; wherein an element filling record corresponding to any one element stores the size and position of the element after being filled on the screen;
    根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。And drawing the interface to be loaded according to the element layout structure diagram and the element filling record.
  3. 如权利要求1或2所述的方法,其中,The method according to claim 1 or 2, wherein:
    所述根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面,包括:The drawing the interface to be loaded according to the element layout structure diagram and the element filling record includes:
    查询所述待加载界面的元素布局结构图获得所述待加载界面上每一个元素的构成;Querying the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded;
    对所述元素布局结构图中的每一个元素,根据所述元素的构成查询所述元素对应的元素填充记录,获得所述元素在填充到屏幕上后的尺寸和位置;For each element in the element layout chart, query the element fill record corresponding to the element according to the composition of the element to obtain the size and position of the element after being filled on the screen;
    根据所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置绘制所述待加载界面。Drawing the interface to be loaded according to the size and position of each element on the interface to be loaded after being filled on the screen.
  4. 如权利要求1所述的方法,其中,The method of claim 1, wherein:
    所述应用的待加载界面包括以下至少一种:所述应用启动后的第一个界面,或所述应用加载频率高的界面。The interface to be loaded of the application includes at least one of the following: a first interface after the application is started, or an interface with a high frequency of application loading.
  5. 一种加快应用界面加载速度的装置,包括:A device for accelerating the loading speed of an application interface includes:
    元素获取模块,配置为获取应用的待加载界面对应的元素布局结构图和元素填充记录;其中,所述元素布局结构图用于指示所述待加载界面上所有元素的构成和布局;所述元素填充记录用于保存所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置;An element obtaining module configured to obtain an element layout structure diagram and element filling record corresponding to an interface to be loaded of the application; wherein the element layout structure diagram is used to indicate the composition and layout of all elements on the interface to be loaded; the element The filling record is used to save the size and position of each element on the interface to be loaded after being filled on the screen;
    元素绘制模块,配置为在所述待加载界面的元素填充记录非空时,根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面。The element drawing module is configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record when the element filling record of the interface to be loaded is not empty.
  6. 如权利要求5所述的装置,其中,所述装置还包括元素填充模块;The apparatus of claim 5, wherein the apparatus further comprises an element filling module;
    所述元素填充模块,配置为在所述待加载界面的元素填充记录为空时,根据屏幕尺寸和屏幕分辨率测量并计算所述元素结构分布图上每一个元素在填充到所述屏幕上后的尺寸和位置;生成所述待加载界面上每一个元素对应的元素填充记录;其中,任意一个元素对应的元素填充记录保存所述元素在填充到屏幕上后的尺寸和位置。The element filling module is configured to measure and calculate each element on the element structure distribution map after filling in the screen when the element filling record of the interface to be loaded is empty. Generating the element filling record corresponding to each element on the interface to be loaded; wherein the element filling record corresponding to any one element stores the size and position of the element after being filled on the screen.
  7. 如权利要求5所述的装置,其中,The apparatus according to claim 5, wherein:
    元素绘制模块,配置为采用以下方式根据所述元素布局结构图和所述元素填充记录绘制所述待加载界面:An element drawing module configured to draw the interface to be loaded according to the element layout structure diagram and the element filling record in the following manner:
    查询所述待加载界面的元素布局结构图获得所述待加载界面上每一个元素的构成;Querying the element layout structure diagram of the interface to be loaded to obtain the composition of each element on the interface to be loaded;
    对所述元素布局结构图中的每一个元素,根据所述元素的构成查询所述元素对应的元素填充记录,获得所述元素在填充到屏幕上后的尺寸和位置;For each element in the element layout chart, query the element fill record corresponding to the element according to the composition of the element to obtain the size and position of the element after being filled on the screen;
    根据所述待加载界面上每一个元素在填充到屏幕上后的尺寸和位置绘制所述待加载界面。Drawing the interface to be loaded according to the size and position of each element on the interface to be loaded after being filled on the screen.
  8. 如权利要求5所述的装置,其中,The apparatus according to claim 5, wherein:
    所述应用的待加载界面包括以下至少一种:所述应用启动后的第一个 界面,或所述应用加载频率高的界面。The interface to be loaded of the application includes at least one of the following: the first interface after the application is started, or an interface with a high frequency of application loading.
  9. 一种加快应用界面加载速度的装置,包括:A device for accelerating the loading speed of an application interface includes:
    存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述权利要求1至4中任一项所述的加快应用界面加载速度的方法的步骤。A memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program realizing the acceleration of any one of claims 1 to 4 when executed by the processor Steps to the method of applying interface loading speed.
  10. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述权利要求1至4中任一项所述的加快应用界面加载速度的方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method for speeding up an application interface loading speed according to any one of claims 1 to 4 is implemented Method steps.
PCT/CN2019/083074 2018-05-30 2019-04-17 Method and apparatus for accelerating application interface loading WO2019228090A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810542323.1A CN110633111B (en) 2018-05-30 2018-05-30 Method and device for accelerating loading speed of application interface
CN201810542323.1 2018-05-30

Publications (1)

Publication Number Publication Date
WO2019228090A1 true WO2019228090A1 (en) 2019-12-05

Family

ID=68698687

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/083074 WO2019228090A1 (en) 2018-05-30 2019-04-17 Method and apparatus for accelerating application interface loading

Country Status (2)

Country Link
CN (1) CN110633111B (en)
WO (1) WO2019228090A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495079A (en) * 2022-09-30 2022-12-20 南京芯传汇电子科技有限公司 Dynamic Qt interface generation method and system based on PSD file format

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411622B (en) * 2021-05-26 2022-03-15 广州方硅信息技术有限公司 Loading method and device of live broadcast interface, client and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467331A (en) * 2010-11-18 2012-05-23 中国移动通信有限公司 Adaptation method, device and system for application software interface on terminal equipment
CN103530160A (en) * 2013-10-21 2014-01-22 迈普通信技术股份有限公司 Page loading method and device
CN105204844A (en) * 2015-08-20 2015-12-30 上海斐讯数据通信技术有限公司 Application interface storage and recovery method and system, and electronic equipment
CN105975324A (en) * 2016-07-15 2016-09-28 爱普(福建)科技有限公司 Method for memorizing human-computer interface operation habits
CN106126287A (en) * 2016-06-20 2016-11-16 珠海市魅族科技有限公司 Application program launching method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916201B (en) * 2010-08-06 2015-05-27 中兴通讯股份有限公司 Android-based mobile terminal cold-boot method and device
CN103440079B (en) * 2013-07-19 2016-08-10 宇龙计算机通信科技(深圳)有限公司 The restoration methods at operation interface and communication terminal
CN104199676A (en) * 2014-02-24 2014-12-10 无锡天脉聚源传媒科技有限公司 Method and device for restoring interface content
US20170235473A1 (en) * 2014-08-11 2017-08-17 Huawei Technologies, Co., Ltd. Method and Apparatus for Loading Application Program View, and Electronic Terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467331A (en) * 2010-11-18 2012-05-23 中国移动通信有限公司 Adaptation method, device and system for application software interface on terminal equipment
CN103530160A (en) * 2013-10-21 2014-01-22 迈普通信技术股份有限公司 Page loading method and device
CN105204844A (en) * 2015-08-20 2015-12-30 上海斐讯数据通信技术有限公司 Application interface storage and recovery method and system, and electronic equipment
CN106126287A (en) * 2016-06-20 2016-11-16 珠海市魅族科技有限公司 Application program launching method and system
CN105975324A (en) * 2016-07-15 2016-09-28 爱普(福建)科技有限公司 Method for memorizing human-computer interface operation habits

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495079A (en) * 2022-09-30 2022-12-20 南京芯传汇电子科技有限公司 Dynamic Qt interface generation method and system based on PSD file format
CN115495079B (en) * 2022-09-30 2024-04-30 南京芯传汇电子科技有限公司 Qt interface dynamic generation method and system based on PSD file format

Also Published As

Publication number Publication date
CN110633111A (en) 2019-12-31
CN110633111B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
TWI684906B (en) Interface display method, device and electronic equipment
WO2019228090A1 (en) Method and apparatus for accelerating application interface loading
CN105700708B (en) A kind of method of adjustment and terminal of terminal interface
CN103530220A (en) Display method and system and terminal for application program icons
MX2015007256A (en) Method, device, and apparatus for controlling screen rotation.
US20160018909A1 (en) Method and apparatus of controlling a smart device
CN109375972B (en) Method, apparatus, computer device and storage medium for multi-element layout
CN111767002B (en) Page display method, device, equipment and storage medium
CN106909393B (en) Display adjustment method of input method panel and mobile terminal
CN109614194A (en) Display methods, device, equipment and the storage medium of list interface
WO2015180448A1 (en) Method and device for switching playing mode of mobile terminal, storage medium and program
JP5466786B1 (en) Image processing apparatus and image processing program
EP3238019B1 (en) Least disruptive icon displacement
EP4343358A1 (en) Method for determining magnetic resonance gradient correction compensation factor, magnetic resonance gradient correction method, and apparatus
CN109636875B (en) Graph drawing method, device and storage medium
CN116151183A (en) Chip layout three-dimensional modeling method and system, storage medium and electronic equipment
WO2017133142A1 (en) Image generation method, terminal, and graphical user interface
CN107066245A (en) A kind of processing method and processing device of menu list
CN114494527A (en) Test image editing method, editing device and image signal generator
CN113393294A (en) Page display method and device, equipment and storage medium
CN103729844B (en) Motionlessness detecting method and device
CN113867862A (en) List page layout method and computing device
CN112417331A (en) Page routing method and device, electronic equipment and computer-readable storage medium
US20130227497A1 (en) Apparatus and method for generating standby screen
US20170098018A1 (en) Information processing method, information processing apparatus, and non-transitory recording medium storing information processing program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19810654

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 15.04.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19810654

Country of ref document: EP

Kind code of ref document: A1