Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

List view drawing method and device, terminal and storage medium

A list view and view technology, applied in the field of data processing, can solve problems such as limited scenarios, crashes, and changes in the number of array elements, and achieve the effect of stabilizing local operations and reducing the probability of crashes

Inactive Publication Date: 2019-05-10
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are mainly the following ways to operate the list view: 1) The page pulls down to refresh the component, clears all list data, and reuses the new data array returned by the server, but this method needs to refresh the entire list data and only at the head of the list Refresh, and the scene is limited, only limited to entering the list page for the first time and pulling down to refresh the update list
2) Pull and refresh the component on the page, and add a new array behind the original array. For example, the original list view displays ABC. After loading more data DEF, the list data displays ABCDEF, but this method also needs to refresh the entire list The data is only appended at the end of the list, and the scene is also limited, limited to viewing more data
However, the disadvantages of this method are as follows: the number of array elements will change, and it is easy to cause a crash when drawing the list view (because when drawing the list view, the list view page will look up the array data according to the serial number subscript, and then draw to the component corresponding to the serial number Go up; if the elements of the array change during drawing, it is easy to cause errors in data and components, or the array overflows, for example, to draw the sixth component, but there are only 5 arrays, so it overflows, and the overflow will crash); Because the array elements have changed, the entire list view also needs to be refreshed, even if only one data is added to it

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
  • List view drawing method and device, terminal and storage medium
  • List view drawing method and device, terminal and storage medium
  • List view drawing method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a flow chart of the method for drawing a list view in Embodiment 1 of the present invention. This embodiment is applicable to the case of implementing list operations. The method can be executed by a device for drawing a list view, and the device can be implemented by means of software and / or hardware , the device can be configured in a terminal. This embodiment does not limit the specific type of the terminal. For example, the terminal can be a mobile phone, a computer, a tablet computer, or a smart wearable device. Such as figure 1 As shown, the method may specifically include:

[0030] S110. Generate a list view drawing request.

[0031] Wherein, the list view drawing request is used to instruct the application program in the terminal to draw the corresponding list view, and the specific request form can be set according to actual requirements. Exemplarily, when the machine is disconnected from the network and the application program is restarted, i...

Embodiment 2

[0044] image 3 It is a flow chart of the list view drawing method in Embodiment 2 of the present invention. On the basis of the foregoing embodiments, this embodiment further specifically describes the foregoing method for drawing a list view. The method may specifically include:

[0045] S210. Generate a list view drawing request.

[0046] S220. Obtain an initial list item group according to the list view drawing request. The initial list item group includes at least one list item, each list item includes data to be displayed or empty data, and adjacent list items of the list item where the data to be displayed is located include empty data.

[0047] S230. Draw an initial list view corresponding to the initial list item group, and empty data in the initial list item group is invisible in the initial list view.

[0048] S240. Obtain a list view insertion request.

[0049] Wherein, the list view insertion request is used to instruct the application program in the terminal ...

Embodiment 3

[0059] Figure 5 It is a flow chart of the list view drawing method in the third embodiment of the present invention. On the basis of the foregoing embodiments, this embodiment further specifically describes the foregoing method for drawing a list view. The method may specifically include:

[0060] S310. Generate a list view drawing request.

[0061] S320. Obtain an initial list item group according to the list view drawing request. The initial list item group includes at least one list item, each list item includes data to be displayed or empty data, and adjacent list items of the list item where the data to be displayed is located include empty data.

[0062] S330. Draw an initial list view corresponding to the initial list item group, and empty data in the initial list item group is invisible in the initial list view.

[0063] S340. Obtain a list view deletion request.

[0064] Wherein, the list view deletion request is used to instruct the application program in the te...

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 embodiment of the invention discloses a list view drawing method and device, a terminal and a storage medium. The method comprises the steps that generating a list view drawing request; obtainingan initial list item group according to the list view drawing request, the initial list item group comprising at least one list item, each list item comprising to-be-displayed data or null data, and an adjacent list item of the list item where the to-be-displayed data is located comprising null data; and drawing an initial list view corresponding to the initial list item group, wherein the empty data in the initial list item group is invisible in the initial list view. According to the embodiment of the invention, the empty data is set at the adjacent list item of the list item where the to-be-displayed data is located; therefore, the number of the list items in the list view and the structure of the list items cannot be changed when the list view is operated subsequently, the probabilityof collapse of the list view is reduced, and local operation of the list view can be achieved on the basis of guaranteeing the stability of the list view.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular to a method, device, terminal and storage medium for drawing a list view. Background technique [0002] The list view is the most common view on a smart terminal, especially on a mobile phone or a tablet computer. The data and style of the list view are often not fixed, and componentization is to make different styles into components. Different data corresponds to different components. Through the data array sent by the server, the smart terminal can be displayed as a list of corresponding components, so as to realize flexible arrangement and combination display. [0003] At present, there are mainly the following ways to operate the list view: 1) The page pulls down to refresh the component, clears all list data, and reuses the new data array returned by the server, but this method needs to refresh the entire list data and only at the head of ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/451G06F3/0482
Inventor 刘孟吕庆春彭飞
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products