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

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

Info

Publication number
CN114840284A
CN114840284A CN202111682110.7A CN202111682110A CN114840284A CN 114840284 A CN114840284 A CN 114840284A CN 202111682110 A CN202111682110 A CN 202111682110A CN 114840284 A CN114840284 A CN 114840284A
Authority
CN
China
Prior art keywords
data
display
class
commonlistview
displaying
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.)
Granted
Application number
CN202111682110.7A
Other languages
Chinese (zh)
Other versions
CN114840284B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The application provides a method for realizing large-scale data continuous display for an android system, which comprises the following steps: a) creating a container class CommonListView on an android system on which the touch device operates, and monitoring scrolling of the set container class CommonListView; b) when monitoring that the container type CommonListView is scrolled to the top or the bottom, triggering an internal process to asynchronously load data to be browsed; c) and after the loading is completed, informing a container class CommonListView for displaying data and an adapter class CommonAdap for displaying a view to update the data and the interface displayed by the touch device. The method is improved in a gradual loading mode, and related data is swapped in and out from the memory according to browsing conditions by combining with practical application scenes, so that the purpose of displaying large-scale (infinite) data on a small memory is achieved.

Description

Method for realizing large-scale data continuous display for android system
Technical Field
The application relates to the field of android systems, in particular to a method for realizing large-scale data continuous display for an android system.
Background
Displaying a large amount of data on a small memory is a common problem, and for the conventional mouse operation mode, a common mode is to display the data by paging. The page display in the mouse operation mode cannot meet the user habit for the interaction of the modern touch equipment. For the most adopted mode of gradually loading subsequent data on the touch device, the data is loaded until the user loads the data, the required memory of the user is more and more, and finally all the memory is exhausted.
Disclosure of Invention
In view of the above technical problems in the prior art, the inventor proposes a method for implementing continuous display of large-scale data for an android system.
According to an aspect of the present invention, a method for implementing large-scale data continuous display for an android system is provided, including the following steps:
a) creating a container class CommonListView on an android system on which the touch device operates, and monitoring scrolling of the set container class CommonListView;
b) when monitoring that the container type CommonListView is scrolled to the top or the bottom, triggering an internal process to asynchronously load data to be browsed;
c) and after the loading is completed, informing a container class CommonListView for displaying data and an adapter class CommonAdap for displaying a view to update the data and the interface displayed by the touch device.
The method is improved in a gradual loading mode, and related data is swapped in and out from the memory according to browsing conditions by combining with practical application scenes, so that the purpose of displaying large-scale (infinite) data on a small memory is achieved.
In a preferred embodiment, the method further comprises the step of instantiating the adapter class commonodepaper.
In a preferred embodiment, said step a) is monitoring the change of the scroll status of said container commonlistiew by onScrollStateChanged in class OnScrollListener for monitoring.
In a preferred embodiment, the method further comprises the step of instantiating a commonlinkedlst class for saving data and a larelinked list subclass inherited to the commonlinkedlst class for enabling switching and loading of data.
In a preferred embodiment, in said step b), when the scrolling to the top is detected, an instruction of loading data to be displayed backwards in the subclass LargeLinkedList is triggered; and when detecting that the scroll is to the bottom, triggering an instruction of loading the data to be displayed forward in the subclass larelinkedlst.
In a preferred embodiment, the method further includes including an instruction to set a maximum single load space in the subclass largelinkedlst to achieve a minimum footprint for the memory.
In a preferred embodiment, the method further includes creating a plurality of display sub-controls and a corresponding plurality of display data units simultaneously, where the plurality of display sub-controls occupy 3 times of the space of the display interface of the touch device; and in the event that the touch device switches from displaying a first 1/3 portion of the plurality of display subspaces to displaying a second 1/3 portion of the plurality of display subspaces during interface scrolling, asynchronously loading display data of a subsequent 1/3 portion to be displayed in the triggered loading to replace data of a display data unit corresponding to the first 1/3 portion.
In another aspect, the invention proposes a computer-readable storage medium in which a program is stored which, when being executed by a processor, carries out the method as described above.
The method provided by the invention can realize the technical effect of displaying infinite data by using a small memory on the touch equipment, solves the problem of data display on the small memory equipment, reduces the equipment cost and can generate good economic effect. With the development of society, more and more embedded devices and mobile devices are provided, global devices are increased at a speed of hundred million, each device can save cost of some memories, and finally the generated economic benefit is considerable.
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. Other embodiments and many of the intended advantages of 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 an 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 diagram of the common adapter.
FIG. 4 is a diagram illustrating a functional implementation of a CommolInkedList < E > class.
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 present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a schematic flowchart 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 on which the touch device operates, and monitoring scrolling of the set container class CommonListView;
b) when monitoring that the container type CommonListView is scrolled to the top or the bottom, triggering an internal process to asynchronously load data to be browsed;
c) and after the loading is completed, informing a container class CommonListView for displaying data and an adapter class CommonAdap for displaying a view to update the data and the interface displayed by the touch device.
In a preferred embodiment, said step a) is monitoring the change of the scroll status of said container class commonlistiew by onScrollStateChanged in class OnScrollListener for monitoring.
The inventors have found that the scrolling of CommonListView can be monitored by the OnScrollListener, where:
(1) the sequence number of the first displayed item, the number of the displayed items and the total number of the items can be obtained through onScrollListener in the OnScrollListener.
(2) The change of the rolling state can be monitored through onScrollStateChanged in the OnScrollListener, and the rolling state can be known to be the topmost or the bottommost by acquiring the state in the onScrollListener, so that the loading and the swapping out of the data signals are triggered in the two states.
In a preferred embodiment, the method further comprises the step of instantiating a commonlinkedlst class for saving data and a larelinked list subclass inherited to the commonlinkedlst class for enabling switching and loading of data.
In a preferred embodiment, in said step b), when the scrolling to the top is detected, an instruction of loading data to be displayed backwards in the subclass LargeLinkedList is triggered; and when detecting that the scroll is to the bottom, triggering an instruction of loading the data to be displayed forward in the subclass larelinkedlst.
Fig. 2 shows a schematic diagram of an implementation method according to a specific embodiment of the present invention. As shown in FIG. 2, a CommonListView class is first created and then a CommonAdap class and a LargeLinkedList subclass are instantiated. And monitoring sliding of the CommonListView class to detect whether the rolling window is at the top or the bottom. Triggering a LoadData (BACKWARD _ LOAD, mVisibleitemCount) method in the LargeLinkedList to LOAD data when the top is detected; when the bottom is detected, a loadData (FORWARD-LOAD, mVisibleitemCount) method in the LargeLinkedList is triggered to LOAD data. When data is loaded, an internal LoadDataThread thread is triggered to asynchronously record the data. After the loading is complete, the classes CommonAdap and CommonListView are notified to update the displayed data and interfaces.
The CommonAdap subclass implementing BaseAdap is used to cooperate with the ListView display view. The specific implementation is shown in fig. 3.
The subclass LargeLinkedList is mainly used for storing data and implementing operations such as data addition, deletion, and acquisition, and the specific implementation thereof is shown in fig. 4.
The subclass larelinkedlst for implementing switching and loading of data inherits to the class commonlinkedlst, and its specific implementation is shown in fig. 5.
In a preferred embodiment, the method further includes including an instruction to set a maximum single load space in the subclass largelinkedlst to achieve a minimum footprint for the memory.
In a preferred embodiment, the method further includes creating a plurality of display sub-controls and a corresponding plurality of display data units simultaneously, where the plurality of display sub-controls occupy 3 times of the space of the display interface of the touch device; and in the event that the touch device switches from displaying a first 1/3 portion of the plurality of display subspaces to displaying a second 1/3 portion of the plurality of display subspaces during interface scrolling, asynchronously loading display data of a subsequent 1/3 portion to be displayed in the triggered loading to replace data of a display data unit corresponding to the first 1/3 portion. It is worth noting that this is one of the important points of the present application.
The inventor believes that to display a large amount of data requires, first, enough interface controls to display the data and, second, enough memory to store the data. However, those skilled in the art know that relatively large data, regardless of how large the memory is, is never sufficient. Based on these problems, the inventor carefully analyzes its application scenario and finds that it does not need to display these data at the same time, so that the display sub-controls can be multiplexed by adopting a time-to-space technique. 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 their switching smoother. When the first display, we create 60 display units and preload 60 unit sub-items (i.e., data storage units) from the storage medium, when 1-20 units out of the 60 display units are displayed, no operation is required since both data and display units are already present. When the display area is changed to 2/3 of 60 display units, i.e. the display area is changed to 30-40 display units, we have 20 display units and corresponding data storage units. However, in order to make the view switching more gradual, we need to load the following data and abandon the data of the aforementioned 1-20 units, and at the same time, make the dynamic transfer of the former 20 display areas to the following data for displaying. Therefore, the data to be displayed and the display unit are prepared, when the display reaches the next display period, all the data are prepared, and the data are simply displayed, so that the aim of displaying the large data in the small memory is fulfilled through the repeated actions.
The method provided by the invention can realize the technical effect of displaying infinite data by using a small memory on the touch equipment, solves the problem of data display on the small memory equipment, reduces the equipment cost and can generate good economic effect. With the development of society, more and more embedded devices and mobile devices are provided, global devices are increased at a speed of hundred million, each device can save cost of some memories, and finally the generated economic benefit is considerable.
While the present invention has been described with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present application shall be 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 (8)

1. A method for realizing large-scale data continuous display for an android system,
the method comprises the following steps:
a) creating a container class CommonListView on an android system on which the touch device is operated, and monitoring a scroll of the set container class CommonListView;
b) when monitoring that the container type CommonListView is scrolled to the top or the bottom, triggering an internal process to asynchronously load data to be browsed;
c) and after the loading is completed, informing a container class CommonListView for displaying data and an adapter class CommonAdap for displaying a view to update the data and the interface displayed by the touch device.
2. The method according to claim 1, characterized in that it further comprises the step of instantiating an adapter class commonodepaper.
3. The method according to claim 1, wherein said step a) is monitoring the change of the rolling status of the container commonlistiew by onScrollStateChanged in class OnScrollListener for monitoring.
4. The method according to claim 1, characterized in that it further comprises the step of instantiating a commonlinkedlst class for saving data and a larelinnkedlst subclass inherited from said commonlinkedlst class for enabling switching and loading of data.
5. Method according to claim 4, characterized in that in said step b), upon detection of a scroll to the top, an instruction is triggered to load the data to be displayed backwards in the subclass LargeLinkedList; and when detecting that the scroll is to the bottom, triggering an instruction of loading the data to be displayed forward in the subclass larelinkedlst.
6. The method of claim 5, further comprising including an instruction in subclass largelinkedlst that sets a maximum single load space to achieve a minimum footprint for memory.
7. The method of claim 6, further comprising creating a plurality of display sub-controls and a corresponding plurality of display data units simultaneously, the plurality of display sub-controls occupying 3 times the space of a display interface of the touch device; and in the event that the touch device switches from displaying a first 1/3 portion of the plurality of display subspaces to displaying a second 1/3 portion of the plurality of display subspaces during interface scrolling, asynchronously loading display data of a subsequent 1/3 portion to be displayed in the triggered loading to replace data of a display data unit corresponding to the first 1/3 portion.
8. A computer-readable storage medium, in which a program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
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 true CN114840284A (en) 2022-08-02
CN114840284B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159393A1 (en) * 2010-12-20 2012-06-21 Sybase, Inc. Efficiently Handling Large Data Sets on Mobile Devices
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159393A1 (en) * 2010-12-20 2012-06-21 Sybase, Inc. Efficiently Handling Large Data Sets on Mobile Devices
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
CN114840284B (en) 2024-04-23

Similar Documents

Publication Publication Date Title
US20180307600A1 (en) Memory reclaim method and apparatus
CN105988860A (en) Method for executing application program and mobile device
CN110244949B (en) Page information display method and device
CN107678664A (en) A kind of terminal interface switching, the method, apparatus and terminal of gesture processing
CN105868122A (en) Data processing method and device for quick flashing storage equipment
CN106125896A (en) A kind of application program freezing method and mobile terminal
CN103885992A (en) Method and device for controlling page display
CN103399640A (en) Method and device for controlling according to user gesture and client
CN106325663A (en) Mobile terminal and screen capturing method thereof
CN110825277B (en) Control method and device and electronic equipment
CN105988662A (en) Display method and system for multi-application window on mobile terminal
CN103810040A (en) Information processing method and electronic equipment
CN114840284A (en) Method for realizing large-scale data continuous display for android system
CN107317860A (en) Preloading method and device for theme detail page and electronic equipment
CN104035705A (en) Client, method and system for switching view display mode
CN116880746A (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113687942B (en) Detection method and device and electronic equipment
CN108241687B (en) Method and device for processing visual chart information
CN109408169A (en) The message display method and terminal device of the screen locking page
CN105117114B (en) A kind of method and terminal that the page is shown
CN111488087B (en) Control display method, device and system and computer readable storage medium
CN104063404B (en) The method and device of information is shown in wap page
CN114741205B (en) Anonymous page recovery method and electronic device
CN106155451A (en) Information processing method and electronic equipment
CN111580717B (en) Control method and device

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