ListView quick page loading method in Android system

A paging and fast technology, applied in the direction of program loading/starting, data processing input/output process, instruments, etc., can solve the problems of difficult application maintenance, bad user experience, large storage resources, etc., to save resource consumption, The effect of reducing waiting time and easy expansion

A paging and fast technology, applied in the direction of program loading/starting, data processing input/output process, instruments, etc., can solve the problems of difficult application maintenance, bad user experience, large storage resources, etc., to save resource consumption, The effect of reducing waiting time and easy expansion

CN106874010AActive Publication Date: 2017-06-20SHANDONG UNIV

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • ListView quick page loading method in Android system
  • ListView quick page loading method in Android system
  • ListView quick page loading method in Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0038] A method for fast page loading of ListView in Android system, such as figure 1 shown, including the following steps:

[0039] (1) Initialize the initial state;

[0040] (2) Obtain the parameters required for loading data, which are used to determine the location of the loaded data, and are encapsulated into different independent abstract methods, namely parameter acquisition methods, for different subclasses to implement according to the different paging loading modes;

[0041] When the paging loading mode is loading by fixed paging, the parameter acquisition method is realized by the subclass divideA, and the two parameters to be obtained are set as param1 and param2 respectively, such as figure 2 shown, including the following steps:

[0042] A. In the resource pool provided by the server, label all resources in pages;

[0043] B. When the client makes a request for loading data to the server, it also sends the page number index of the current client content to the ...

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 relates to a ListView quick page loading method in the Android system. The ListView page loading process is split into the three large parts of the achieving of the abstract parent class of the basic general paging logic, the acquisition of the inherited child class of the load parameters for different load modes, and the specific use of the Activity class on the ListView paging load; through this method the paging load of the resources by the ListView is achieved, while the user waiting time is reduced, and resource consumption is saved. In addition, the fast transplant of the ListView page load function is achieved through packaging, when the function is needed to be used in an application, only the instantiation objects and simple operations are needed, multiple repetitions and page logic additions are not needed, the extent of code complexity is simplified, the development speed is increased, and the use of ListView is more clearly, and the ListView is easily extensible, easy to maintain and improves system performance.

Description

technical field [0001] The invention relates to a method for fast page-by-page loading of ListView in an Android system, and belongs to the technical field of ListView list optimization in the Android system. Background technique [0002] In recent years, the Android operating system has continued to develop and evolve, and smart devices equipped with the Android operating system have gradually become an indispensable tool for ordinary people every day. Among the various ways for Android devices to interact with users, displaying information in a list is the most commonly used one. Therefore, ListView has become one of the most flexible and widely used controls in the Android system. Developers can display resources to users through ListView, including displaying text, pictures, data and other types of content. For example, commonly used contact lists, Weibo information, WeChat messages, etc. are all implemented using the ListView control. [0003] Under normal circumstance...

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
20 Jun 2017
Publication
CN106874010A
IPC
G06F9/44; G06F9/445; G06F3/0482
CPC
G06F3/0482; G06F9/44521; G06F9/451
Inventors
张海霞; 坚传辉