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

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 data The getView method of the adapter obtains a view containing new data and draws it on the screen. For details, please refer to the official Android development document; Whether the source data changes, the view that re-binds the data will be drawn, which will greatly waste performance

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

Embodiment Construction

[0026] Embodiments of the present invention are described below through specific examples, and 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 implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

[0027] It should be noted that the diagrams provided in the following embodiments are only schematically illustrating the basic ideas of the present invention, and only the components related to the present invention are shown in the diagrams rather than the number, shape and shape of the compo...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products