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

Screen sliding method using page as unit and having background loading function and cache logic function

A swipe and page technology, applied in the swipe field with background loading and caching logic in page units, can solve the problems of complex judgment logic, inconsistent page elements, and inability to achieve horizontal swipe, and simplify judgment. Logic, the effect of improving loading speed

Active Publication Date: 2014-05-07
FUJIAN STAR NET EVIDEO INFORMATION SYST CO LTD
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For (1), these list controls only support vertically arranged views, and horizontal swiping cannot be achieved; for (2), due to the inconsistency of page elements and the uncertainty of the ScrollView view for the current visible area (ie The user can swipe to any area), which will lead to very complex judgment logic for elements that need to be loaded in the background, and it is difficult to abstract the background loading logic and cache logic into reusable modules; it can be seen that the existing background loading cache logic is not It is not only complicated but also inconvenient for technical developers to develop applications on the swiping screen

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
  • Screen sliding method using page as unit and having background loading function and cache logic function
  • Screen sliding method using page as unit and having background loading function and cache logic function
  • Screen sliding method using page as unit and having background loading function and cache logic function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] see figure 1 As shown, a screen-scraping method with background loading and caching logic in units of pages; includes a device with a screen-scraping view container; the device includes a plurality of screen-scraping view containers with view data display the page;

[0029] The specific steps are as follows:

[0030] Step 10, use ScrollView as the scratch screen view container of the device; obtain the container length and container width of the scratch screen view container; set the page length and page width of the displayed page to be consistent with the container length and container width respectively; The display page is a medium for loading view data. Initially, no view data is loaded on the display page; the screen-swiping view container performs a screen-swiping operation in units of a single display page;

[0031] Step 20, enter the buffer loading process: start the background thread, load the view data of the display page within the buffer loading range in ...

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 screen sliding method using a page as a unit and having a background loading function and a cache logic function. The screen sliding method comprises the steps that 10, a Scroll View is used as a screw sliding view container of a device; the length and the width of displayed pages are respectively set to be identical to the length and the width of the container; 20, a background thread is started, view data of the displayed pages within a cache area loading range are loaded in a cache area; 30, when screen sliding operation occurs to the device, the cache area is synchronously updated; 40, the loading rage of the cache area is detected, view data loading is conducted on the displayed pages in which view data loading has not been completed, and after loading is completed, the background thread is ended. The screen sliding method has the advantages of simplifying cache logic and enabling developers to achieve the functions.

Description

【Technical field】 [0001] The present invention specifically relates to a screen swiping method with page as a unit and with background loading and caching logic. 【Background technique】 [0002] When the view data cannot be fully displayed on the screen, the ScrollView (that is, the screen view) is usually used to move the viewport to display more content. When the content view cannot be fully displayed on the screen, only part of the content view is displayed. , the rest of the current non-visible content can be moved into the visible area by swiping the screen, but when the amount of view data is large, the process of loading data will become very time-consuming. If the loading time needs to be reduced, the program usually needs to implement it by itself Data background loading logic and caching logic. [0003] The commonly used background loading logic and caching logic mainly include: [0004] (1) Use the list controls provided by the system, such as UITableView for iOS...

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): G06F3/0485
Inventor 李中冬陈节省陈国龙余春艳
Owner FUJIAN STAR NET EVIDEO INFORMATION SYST 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