Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for loading page element

A page element and element technology, applied in the direction of program control device, program loading/starting, user interface execution, etc., can solve the problems of slow page loading and display speed, reduced GridView performance, time consumption, etc. In addition to the operation of controls, the effect of improving loading speed and loading efficiency, and improving performance

Inactive Publication Date: 2017-04-26
WUHAN DOUYU NETWORK TECH CO LTD
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, whenever a page element leaves the display area, the sub-control corresponding to the page element is removed, and when a new page element needs to be loaded, a new sub-control is created to add the page element, but removing and creating a sub-control The process is very time-consuming, which greatly reduces the performance of the GridView, making the loading and display of the page very slow

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for loading page element
  • Method and device for loading page element
  • Method and device for loading page element

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] See figure 1 The embodiment of the present invention provides a method for loading page elements, and the method specifically includes the following steps:

[0054] Step 101: Obtain the element list currently to be displayed from the element list collection.

[0055] When a user browses an interface through the terminal, the terminal obtains multiple pieces of data corresponding to the interface from the server, and each piece of data obtained is an element list, and the element list contains multiple page elements. Page elements can be buttons or input boxes, etc. The terminal composes the obtained multiple element lists into an element list collection, and stores the element list collection in the memory.

[0056] The terminal needs to load the page elements in the element list into the GridView to display the page elements to the user. A certain number of page elements can be loaded in the GridView each time. When the page elements in the element list need to be displayed...

Embodiment 2

[0121] See Figure 5 An embodiment of the present invention provides a device for loading page elements, and the device is used to execute the method for loading page elements provided in the above embodiment 1, and the device includes:

[0122] The obtaining module 201 is used to obtain the element list currently to be displayed from the element list collection;

[0123] The judging module 202 is configured to judge whether there is a cache control corresponding to the page element in the GridView according to the page elements included in the element list;

[0124] The loading module 203 is configured to load the page element into the cache control when the judgment module 202 judges that there is a cache control corresponding to the page element in the GridView;

[0125] The creation module 204 is used to create a control in the GridView according to the page element when the judgment module 202 judges that there is no cache control corresponding to the page element in the GridView...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for loading a page element. The method comprises the steps of obtaining an element list which needs to be displayed currently from an element list set; judging whether a cached control corresponding to the page element is cached in a GridView or not according to the page element included in the element list; if so, loading the page element to the cached control; and if not, creating a control in the GridView according to the page element and loading the page element to the created control. The control is cached in the GridView, so that the cached control can be reused when the page element is loaded, the operations of creating the control in the GridView and removing the control are reduced, the performance of the GridView is greatly improved and the loading speed and the loading efficiency of the page element are improved.

Description

Technical field [0001] The present invention relates to the field of terminal technology, in particular to a method and device for loading page elements. Background technique [0002] GridView (grid view) is a control, it can be seen as a container for a control, and it can be used to store multiple child controls inside. [0003] Currently, when the terminal loads the page, it obtains page elements from the server, creates child controls corresponding to the page elements in the GridView, and fills the acquired page elements into the created child controls. When the user drags the page to cause the page element to overflow from the GridView, the terminal removes the child control corresponding to the page element from the GridView, so that the page element is not displayed in the display area. [0004] In the prior art, whenever a page element leaves the display area, the child control corresponding to the page element is removed, and when a new page element needs to be loaded, a n...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/445
CPCG06F9/44526G06F9/451
Inventor 张磊
Owner WUHAN DOUYU NETWORK TECH CO LTD