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

Method and device for realizing active paging, mobile terminal and storage medium

A paging and active technology, applied in the direction of program control device, user interface execution, creation/generation of source code, etc., can solve the problems of low code reuse rate and affect the original logic of the list page code, so as to improve the reuse rate, The effect of reducing code writing

Pending Publication Date: 2020-08-25
SHENZHEN MAPGOO TECH
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And each list page has to repeat similar operations, resulting in a low code reuse rate and affecting the original logic of the list page code

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
  • Method and device for realizing active paging, mobile terminal and storage medium
  • Method and device for realizing active paging, mobile terminal and storage medium
  • Method and device for realizing active paging, mobile terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0016] The present invention provides a method for realizing active paging. The method inherits the list data, page number data, data of each page and whether there is a pull-down refresh instruction etc. acquired in the subclass after the method inherits the BaseRecyclerViewAdapterHelper. BaseRecyclerViewAdapterHelper: An adapter loaded for the list, which is used to fill the corresponding data into a reusable view for displaying the list during sliding.

[0017] Please refer...

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 embodiment of the invention discloses a method and device for realizing active paging, a mobile terminal and a storage medium. The method comprises the following steps: automatically increasing the number of pages to obtain current page data; obtaining the number of list data corresponding to the current page number data; judging whether pull-down refreshing operation exists or not, and if yes, loading and obtaining list data corresponding to the current page number data; otherwise, judging whether the quantity of the list data corresponding to the current page number data is smaller thanthe quantity of the displayable data of one page or not, if so, not loading and displaying more data, and if not, loading and displaying more data. According to the method, complex logic for realizingpaging on the list page is omitted, unnecessary code writing is reduced, and the reuse rate of codes is increased.

Description

technical field [0001] The present invention relates to the field of mobile terminals, in particular to a method and device for realizing active paging, a mobile terminal and a computer-readable storage medium. Background technique [0002] Currently, in mobile apps, list data is a very common form of data representation, which is generally realized by using RecyclerView plus BaseRecyclerViewAdapterHelper, but does not provide paging function. The existing technology generally adopts manual paging, requests the data on the second page and adds it to the BaseRecyclerViewAdapterHelper, and when the page is pulled down to refresh, it is necessary to manually replace the data in the BaseRecyclerViewAdapterHelper with the data on the first page, and it is necessary to manually determine whether the data has been loaded . And each list page has to repeat similar operations, resulting in a low code reuse rate, which affects the original logic of the list page code. Contents of t...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/36G06F9/451
CPCG06F8/36G06F9/451
Inventor 周志文纪向晴黄杰陈俊
Owner SHENZHEN MAPGOO TECH
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