Data updating method and system for view list in list control

A data update and view technology, applied in the direction of program control device, user interface execution, etc., can solve problems such as performance waste, and achieve the effect of program performance improvement

Inactive Publication Date: 2016-05-04
PHICOMM (SHANGHAI) CO LTD
View PDF3 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The current existing technical solution is to call the system provided method notifyDataSetChanged of the associated data adapter when the data in the data source changes, and trigger the interface redrawing operation. At this time, the visible list items on the interface will pass the

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
  • Data updating method and system for view list in list control
  • Data updating method and system for view list in list control
  • Data updating method and system for view list in list control

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0026] The following describes the implementation of the present invention through specific specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and the features in the embodiments can be combined with each other if there is no conflict.

[0027] It should be noted that the illustrations provided in the following embodiments only illustrate the basic idea of ​​the present invention in a schematic manner. The figures only show the components related to the present invention instead of the number, shape, and number of components in actual i...

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 data updating method and system for a view list in a list control. The method comprises an interface initialization stage and an interface updating stage. During the interface initialization stage, the filling of a data source is carried out, namely, a first flag bit is added into a data structure corresponding to each view list item in the data source, and the filled data source is bound with a data adapter; and the list control obtains the data source through the data adapter, the view list of the corresponding list control is filled with the view list items in the data source, and a first view is drawn according to the view list of the list control. During the interface updating stage, when the data structure is changed, the first flag bit of the data structure is changed to a second flag bit, the view list of the list control obtains a data structure containing the second flag bit, and a corresponding view part of the data structure containing the second flag bit in the first view is drawn to obtain a second view. According to the data updating method and system, only the list item view with the changed data is updated, so that the resource waste is avoided and the updating performance is greatly improved.

Description

technical field [0001] The invention relates to an Android operating system, in particular to a system and method for optimizing data update of a view list in an Android list control. Background technique [0002] With the rapid development of modern communication equipment, in Android applications, the frequency of use of list controls is very high, and the operation of updating the list interface is also very frequent when the data changes. The current method used in the existing technology is to call the data in the system The notifyDataSetChanged method of the adapter realizes updating the interface, but when updating the interface, this method will redraw all the list items in the visual interface, even if the bound data of some list items has not changed, it will be redrawn. [0003] The current existing technical solution is to call the system provided method notifyDataSetChanged of the associated data adapter when the data in the data source changes, and trigger the ...

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/44
CPCG06F9/451
Inventor 吴亮
Owner PHICOMM (SHANGHAI) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products