CN114840284B - Method for realizing continuous display of large-scale data for android system - Google Patents

Method for realizing continuous display of large-scale data for android system Download PDF

Info

Publication number
CN114840284B
CN114840284B CN202111682110.7A CN202111682110A CN114840284B CN 114840284 B CN114840284 B CN 114840284B CN 202111682110 A CN202111682110 A CN 202111682110A CN 114840284 B CN114840284 B CN 114840284B
Authority
CN
China
Prior art keywords
data
class
display
commonlistview
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111682110.7A
Other languages
Chinese (zh)
Other versions
CN114840284A (en
Inventor
刘庆灶
张光斌
高志鹏
赵建强
杜新胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN202111682110.7A priority Critical patent/CN114840284B/en
Publication of CN114840284A publication Critical patent/CN114840284A/en
Application granted granted Critical
Publication of CN114840284B publication Critical patent/CN114840284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The application provides a method for realizing continuous display of large-scale data of an android system, which comprises the following steps: a) Creating a container class CommonListView on an android system running on the touch device, and monitoring scrolling of the set container class CommonListView; b) Triggering an internal process to asynchronously load data to be browsed when the container CommonListView is monitored to scroll to the top or the bottom; c) After loading is complete, the container class CommonListView for exposing data and the adapter class CommonAdapter for displaying views are notified to update the data and interfaces displayed by the touch device. The method is improved in a step-by-step loading mode, and related data are input and output from the memory according to browsing conditions in combination with actual application scenes, so that the aim of displaying large-scale (infinite) data on a small memory is fulfilled.

Description

Method for realizing continuous display of large-scale data for android system
Technical Field
The application relates to the field of android systems, in particular to a method for realizing continuous display of large-scale data of an android system.
Background
Displaying large amounts of data on small memories is a common problem, and for traditional mouse modes of operation, a more common way is through pagination. Paging displays in mouse operation mode, for modern touch devices, are not interactive to conform to user habits. For most of the modes of gradually loading the subsequent data adopted on the touch device, the data is loaded all the time by the user, more and more memory is needed, and all the memory is finally exhausted.
Disclosure of Invention
Aiming at the technical problems in the prior art, the inventor provides a method for realizing continuous display of large-scale data for an android system.
According to one aspect of the invention, a method for realizing continuous display of large-scale data in an android system is provided, which comprises the following steps:
a) Creating a container class CommonListView on an android system running on the touch device, and monitoring scrolling of the set container class CommonListView;
b) Triggering an internal process to asynchronously load data to be browsed when the container CommonListView is monitored to scroll to the top or the bottom;
c) After loading is complete, the container class CommonListView for exposing data and the adapter class CommonAdapter for displaying views are notified to update the data and interfaces displayed by the touch device.
The method is improved in a step-by-step loading mode, and related data are input and output from the memory according to browsing conditions in combination with actual application scenes, so that the aim of displaying large-scale (infinite) data on a small memory is fulfilled.
In a preferred embodiment, the method further includes the step of instantiating the adapter class CommonAdapter.
In a preferred embodiment, step a) is to monitor the rolling state change of the container CommonListView by OnScrollStateChanged in the class OnScrollListener for monitoring.
In a preferred embodiment, the method further includes the step of instantiating a class CommonLinkedList for saving data and instantiating a subclass LARGELINKEDLIST inherited to the class CommonLinkedList for implementing the switching and loading of data.
In a preferred embodiment, in said step b), upon detecting scrolling to the top, an instruction in the trigger sub-class LARGELINKEDLIST to load the data to be displayed backwards; and upon detecting scrolling to the bottom, an instruction in the trigger sub-class LARGELINKEDLIST to load forward the data to be displayed.
In a preferred embodiment, the method further includes including instructions in subclass LARGELINKEDLIST to set the maximum single load space to achieve minimum occupation of memory.
In a preferred embodiment, the method further includes simultaneously creating a plurality of display sub-controls and a corresponding plurality of display data units, the plurality of display sub-controls occupying 3 times the space of the display interface of the touch device; and under the condition that the touch control device is switched from displaying the first 1/3 part in the display subspaces to displaying the second 1/3 part in the display subspaces in the interface scrolling process, asynchronously loading the display data of the later 1/3 part to be displayed in the triggered loading to replace the data of the display data unit corresponding to the first 1/3 part.
In another aspect, the invention proposes a computer readable storage medium in which a program is stored, which when executed by a processor implements a method as described above.
The method provided by the invention can realize the technical effect of displaying infinite data by using the small memory on the touch equipment, solves the problem of displaying data on the small memory equipment, reduces the equipment cost and can generate good economic effect. With the development of society, embedded devices and mobile devices are increasing, global devices are increasing at a speed of billions, each device can save cost of some memories, and finally, the economic benefit is quite remarkable.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments and together with the description serve to explain the principles of the invention. Many of the intended advantages of other embodiments and embodiments will be readily appreciated as they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale relative to each other. Like reference numerals designate corresponding similar parts.
FIG. 1 shows a flow diagram of a method according to one embodiment of the invention;
fig. 2 shows a schematic diagram of an implementation method according to a specific embodiment of the present invention.
FIG. 3 shows a functional implementation schematic of class CommonAdapter.
FIG. 4 shows a functional implementation diagram of class CommoLinkedList < E >.
FIG. 5 shows a functional implementation diagram of class LARGELINKEDLIST < E >.
Fig. 6 shows a schematic diagram of a display device and a storage medium data exchange according to an embodiment of the invention.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a flow chart of a method for implementing continuous display of large-scale data for an android system according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
a) Creating a container class CommonListView on an android system running on the touch device, and monitoring scrolling of the set container class CommonListView;
b) Triggering an internal process to asynchronously load data to be browsed when the container CommonListView is monitored to scroll to the top or the bottom;
c) After loading is complete, the container class CommonListView for exposing data and the adapter class CommonAdapter for displaying views are notified to update the data and interfaces displayed by the touch device.
In a preferred embodiment, step a) is to monitor the rolling state change of the container class CommonListView by OnScrollStateChanged in the class OnScrollListener for monitoring.
The inventors have found that scrolling of CommonListView can be monitored by OnScrollListener, wherein:
(1) The number of the first displayed item, the number of displayed items, and the total number of items can be obtained through onScroll in OnScrollListener.
(2) By means of onScrollStateChanged in OnScrollListener it is possible to monitor the scroll state change and by retrieving the state therein we know whether it has scrolled to the top or bottom most, thus triggering the loading and swapping out of data signals in both states.
In a preferred embodiment, the method further includes the step of instantiating a class CommonLinkedList for saving data and instantiating a subclass LARGELINKEDLIST inherited to the class CommonLinkedList for implementing the switching and loading of data.
In a preferred embodiment, in said step b), upon detecting scrolling to the top, an instruction in the trigger sub-class LARGELINKEDLIST to load the data to be displayed backwards; and upon detecting scrolling to the bottom, an instruction in the trigger sub-class LARGELINKEDLIST to load forward the data to be displayed.
Fig. 2 shows a schematic diagram of an implementation method according to a specific embodiment of the present invention. As shown in FIG. 2, class CommonListView is first created, and then class CommonAdapter and subclass LARGELINKEDLIST are instantiated. By monitoring the sliding of class CommonListView, it is detected whether the rolling window is to the top or bottom. Triggering LoadData (back_ LOAD, mVisibleitemCount) method in LARGELINKEDLIST to load data when the top is detected; upon detection of the bottom, the loadData (FORWARD-LOAD, mVisibleitemCount) method in LARGELINKEDLIST is triggered to load data. When loading data, the internal LoadDataThread thread is triggered to asynchronously record the data. After loading is complete, notification classes CommonAdapter and CommonListView update the displayed data and interfaces.
Wherein, the sub-class CommonAdapter of BaseAdapter is implemented to cooperate with the ListView to display the view. The specific implementation of which is shown in fig. 3.
The subclass LARGELINKEDLIST is mainly used for storing data, and implementing operations of adding, deleting, obtaining data, etc., and its specific implementation is shown in fig. 4.
The subclass LARGELINKEDLIST inherited from the class CommonLinkedList for implementing switching and loading of data is specifically implemented as shown in fig. 5.
In a preferred embodiment, the method further includes including instructions in subclass LARGELINKEDLIST to set the maximum single load space to achieve minimum occupation of memory.
In a preferred embodiment, the method further includes simultaneously creating a plurality of display sub-controls and a corresponding plurality of display data units, the plurality of display sub-controls occupying 3 times the space of the display interface of the touch device; and under the condition that the touch control device is switched from displaying the first 1/3 part in the display subspaces to displaying the second 1/3 part in the display subspaces in the interface scrolling process, asynchronously loading the display data of the later 1/3 part to be displayed in the triggered loading to replace the data of the display data unit corresponding to the first 1/3 part. It is noted that this is one of the important applications of the present application.
The inventors believe that to display a large amount of data, enough interface controls are needed first to display the data and enough memory is needed second to place the data. Those skilled in the art will recognize that the memory is relatively large, and that it is always inadequate, no matter how large it is. Based on these problems, the inventors have carefully analyzed their application scenarios and found that they do not need to display these data simultaneously, so that a technique of changing space with time can be employed to multiplex these display sub-controls. Assuming that we want the display area to display only 20 cell sub-items, we can prepare 60 display cells and 60 data storage cells in order to make it smoother when switching. When first displaying we create 60 display units and preload 60 unit sub-items (i.e. data storage units) from the storage medium, no operation is required when displaying 1-20 units out of the 60 display units, since both data and display units are already present. With the user's operation, the display area goes to 2/3 of 60 display units, i.e. the display area goes to 30-40 display units, although we have 20 units of display units and corresponding data storage units. However, in order to make the view switch more gradual, we need to load the subsequent data and discard the data of 1-20 units, and make a dynamic transfer of the previous 20 display areas to the subsequent data for display. Thus, when the data to be displayed and the display unit are ready and the display reaches the next display period, the data are displayed simply, and the purpose of displaying large data in a small memory is achieved through the repeated actions.
The method provided by the invention can realize the technical effect of displaying infinite data by using the small memory on the touch equipment, solves the problem of displaying data on the small memory equipment, reduces the equipment cost and can generate good economic effect. With the development of society, embedded devices and mobile devices are increasing, global devices are increasing at a speed of billions, each device can save cost of some memories, and finally, the economic benefit is quite remarkable.
While the application has been described with reference to specific embodiments, the scope of the application is not limited thereto, and any changes or substitutions can be easily made by those skilled in the art within the scope of the application disclosed herein, and are intended to be covered by the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
In the description of the present application, it is to be understood that the word 'comprising' does not exclude the presence of elements or steps not listed in a claim. The word 'a' or 'an' preceding an element does not exclude the presence of a plurality of such elements. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. Any reference signs in the claims shall not be construed as limiting the scope.

Claims (4)

1. A method for realizing continuous display of large-scale data in an android system,
The method comprises the following steps:
a) Creating a container class CommonListView on an android system running on the touch device, and monitoring the scrolling of the set container class CommonListView;
b) Instantiating a class CommonLinkedList for saving data and instantiating a subclass LARGELINKEDLIST inherited to the class CommonLinkedList for enabling switching and loading of data, triggering an instruction in the subclass LARGELINKEDLIST to load data to be displayed backwards when scrolling to the top is detected; when the scrolling to the bottom is detected, triggering an instruction of forward loading data to be displayed in the sub-class LARGELINKEDLIST, setting an instruction of a maximum single loading space in the sub-class LARGELINKEDLIST, simultaneously creating a plurality of display sub-controls and a plurality of corresponding display data units, wherein the plurality of display sub-controls occupy 3 times of the space of a display interface of the touch device, triggering an internal process to asynchronously load data to be browsed when the scrolling to the top or the bottom of a container class CommonListView is detected, and asynchronously loading the display data of a later 1/3 part to be displayed in the triggered loading to replace the data of the display data unit corresponding to the first 1/3 part under the condition that the touch device switches from a first 1/3 part to a second 1/3 part in the plurality of display sub-spaces of the display sub-controls in the interface scrolling process;
c) After loading is completed, the container class CommonListView for displaying data and the adapter class CommonAdapter for displaying views are notified to update the data and interfaces displayed by the touch device.
2. The method of claim 1, further comprising the step of instantiating an adapter class CommonAdapter.
3. The method of claim 1, wherein step a) is monitoring the rolling state change of the container CommonListView by means of OnScrollStateChanged in a class OnScrollListener for monitoring.
4. A computer readable storage medium, in which a program is stored which, when executed by a processor, implements the method of any of claims 1-3.
CN202111682110.7A 2021-12-31 2021-12-31 Method for realizing continuous display of large-scale data for android system Active CN114840284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111682110.7A CN114840284B (en) 2021-12-31 2021-12-31 Method for realizing continuous display of large-scale data for android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111682110.7A CN114840284B (en) 2021-12-31 2021-12-31 Method for realizing continuous display of large-scale data for android system

Publications (2)

Publication Number Publication Date
CN114840284A CN114840284A (en) 2022-08-02
CN114840284B true CN114840284B (en) 2024-04-23

Family

ID=82562863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111682110.7A Active CN114840284B (en) 2021-12-31 2021-12-31 Method for realizing continuous display of large-scale data for android system

Country Status (1)

Country Link
CN (1) CN114840284B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014198110A1 (en) * 2013-06-13 2014-12-18 Tencent Technology (Shenzhen) Company Limited Method and device for displaying a list view through a sliding operation
CN109614194A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 Display methods, device, equipment and the storage medium of list interface
CN109725795A (en) * 2018-12-27 2019-05-07 北京字节跳动网络技术有限公司 A kind of method, apparatus and computer readable medium for Multi-view display
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system
CN111782304A (en) * 2020-07-21 2020-10-16 平安国际智慧城市科技股份有限公司 Logic control method and device for paging loading data, computer equipment and medium
CN113312135A (en) * 2021-07-30 2021-08-27 平安科技(深圳)有限公司 List display method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9529866B2 (en) * 2010-12-20 2016-12-27 Sybase, Inc. Efficiently handling large data sets on mobile devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014198110A1 (en) * 2013-06-13 2014-12-18 Tencent Technology (Shenzhen) Company Limited Method and device for displaying a list view through a sliding operation
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system
CN109614194A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 Display methods, device, equipment and the storage medium of list interface
CN109725795A (en) * 2018-12-27 2019-05-07 北京字节跳动网络技术有限公司 A kind of method, apparatus and computer readable medium for Multi-view display
CN111782304A (en) * 2020-07-21 2020-10-16 平安国际智慧城市科技股份有限公司 Logic control method and device for paging loading data, computer equipment and medium
CN113312135A (en) * 2021-07-30 2021-08-27 平安科技(深圳)有限公司 List display method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114840284A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US20190347107A1 (en) Method for Preloading Application, Storage Medium, and Terminal
CN108595228B (en) Application program prediction model establishing method and device, storage medium and mobile terminal
US10936795B2 (en) Techniques for use of snapshots with browsing transitions
CN107565639B (en) Charging reminding method and mobile terminal
EP2434384A2 (en) Interface for application management in an electronic device
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
CN105988860A (en) Method for executing application program and mobile device
CN102999256A (en) Method and device for arranging display terminal icons
CN110825277B (en) Control method and device and electronic equipment
CN114840284B (en) Method for realizing continuous display of large-scale data for android system
CN107317860A (en) Preloading method and device for theme detail page and electronic equipment
CN103460174A (en) Augmenting user interface elements
CN111638828A (en) Interface display method and device
CN113687942B (en) Detection method and device and electronic equipment
CN111880701A (en) Page switching method and device and electronic equipment
CN113407103B (en) Music playing control method and terminal equipment
CN116627521A (en) Service module preloading method, skipping method, device and storage medium
CN111488087B (en) Control display method, device and system and computer readable storage medium
MXPA06013729A (en) User interface action processing using a freshness status.
CN113360092A (en) Data storage method, data storage device and electronic equipment
CN106155451B (en) Information processing method and electronic equipment
CN112214696B (en) Page display method and related device
CN104063404A (en) Method and device for displaying information on wap (wireless application protocol) page
CN117194828B (en) Table rolling paging method and device in reaction and electronic equipment
CN113691676B (en) Equipment state prompting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant