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

Page display method and device, storage medium and equipment

A page display and page technology, applied in the computer field, can solve problems such as poor user experience, loss of UI state, resource re-registration, etc.

Pending Publication Date: 2021-07-06
GUANGZHOU HUYA TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In related technologies, when a Fragment needs to be moved, the Fragment will be destroyed and rebuilt, which will cause the resources that depend on the life cycle of the Fragment to be re-registered during the switch. If the state is not restored at this time, it will easily lead to UI state loss. Poor experience for users

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
  • Page display method and device, storage medium and equipment
  • Page display method and device, storage medium and equipment
  • Page display method and device, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0054] Such as figure 2 as shown, figure 2 is a schematic diagram of a current page switching display target page shown in this specification according to an exemplary embodiment, the current page ( figure 2 The page shown in the middle left picture) is a page of the Android application, which is a page built based on Fragment. Fragment manages two specified Views, namely View1 (labeled 21 in the figure) and View2 (labeled 22 in the figure) , where the content displayed by View1 is a video player, and the content displayed by View2 is an input box for users to input "bullet chat" comments.

[0055] In related technologies, when View1 and View2 are moved from one parent container to another, for example, when switching between horizontal and vertical screens, the destruction and reconstruction of the Fragment will be triggered, which will cause resources such as related objects that depend on the life cycle of the Fragment to be re-registered during the switch, thus It is ...

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 page display method and device, a storage medium and equipment, in the method, a first ViewGroup is utilized to accommodate a specified View managed by a Fragment in a current page, the movement operation of the View managed by the Fragment from a second ViewGroup of the current page to a target ViewGroup of a target page is completed through the first ViewGroup, and the process does not trigger the life cycle of the Fragment; moreover, by storing the running state data of the first ViewGroup, a running state of the specified View managed by the Fragment can be quickly recovered for the first ViewGroup by using the stored data when the target page is displayed.

Description

technical field [0001] This specification relates to the field of computer technology, and in particular to a page display method, device, storage medium and computer equipment. Background technique [0002] Fragment is a component in Android, which is used to display interface content, and can accept operations such as user clicks and drags and user operations. In related technologies, when a Fragment needs to be moved, the Fragment will be destroyed and rebuilt, which will cause the resources that depend on the life cycle of the Fragment to be re-registered during the switch. If the state is not restored at this time, it will easily lead to UI state loss. It will cause a very poor experience for users. Contents of the invention [0003] In order to overcome the problems existing in the related technologies, this specification provides a page display method, device, storage medium and equipment. [0004] According to the first aspect of the embodiment of this specificat...

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): G06F9/451
CPCG06F9/451
Inventor 王钰
Owner GUANGZHOU HUYA TECH 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