CN111459581B - Page switching method, device, electronic equipment and computer readable medium - Google Patents

Page switching method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111459581B
CN111459581B CN201910058981.8A CN201910058981A CN111459581B CN 111459581 B CN111459581 B CN 111459581B CN 201910058981 A CN201910058981 A CN 201910058981A CN 111459581 B CN111459581 B CN 111459581B
Authority
CN
China
Prior art keywords
page
switching
current page
current
determining
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
CN201910058981.8A
Other languages
Chinese (zh)
Other versions
CN111459581A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910058981.8A priority Critical patent/CN111459581B/en
Publication of CN111459581A publication Critical patent/CN111459581A/en
Application granted granted Critical
Publication of CN111459581B publication Critical patent/CN111459581B/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
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a page switching method, a page switching device, electronic equipment and a computer readable medium. Wherein the method comprises the following steps: capturing a first page switching event for switching from a current page to a next page, and determining switching process attribute data configured independently for the current page or the next page based on the first page switching event; and controlling the display of the transition process of switching from the current page to the next page based on the switching process attribute data. By the embodiment of the application, the display of the transition process of switching the current page to the next page can be customized.

Description

Page switching method, device, electronic equipment and computer readable medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a page switching method, a page switching device, electronic equipment and a computer readable medium.
Background
With the continuous development of electronic technology, the living standard is continuously improved, and terminal devices such as smart phones, tablet computers and the like are widely applied to daily life of people. Intelligent terminals are more and more intelligent, and for intelligent terminals such as tablet computers, application programs are usually run on an Android operating system.
When a user opens an application program installed in the intelligent terminal, the user can perform left and right sliding operation on a touch screen of the intelligent terminal, so that a displayed application program page is switched. In general, a component carrying a user interface on an Android operating system is an Activity component, but the Activity component is not good in supporting the switching animation, and does not support the effect of playing the switching animation in real time along with the gestures in a page similar to an iOS system. Google provides an animation effect that fragments component (Fragment) implements switching of the current page to the next page in a specific manner, however, this manner can only set the same page switching animation effect for all pages, but cannot set different page switching animation effects for each page.
Disclosure of Invention
The invention aims to provide a page switching method, a device, electronic equipment and a computer readable medium, which are used for solving the problem of how to customize the display of a transition process of switching a current page to a next page in the prior art.
According to a first aspect of embodiments of the present application, a page switching method is provided. The method comprises the following steps: capturing a first page switching event for switching from a current page to a next page, and determining switching process attribute data configured independently for the current page or the next page based on the first page switching event; and controlling the display of the transition process of switching from the current page to the next page based on the switching process attribute data.
According to a second aspect of embodiments of the present application, a page switching apparatus is provided. The device comprises: the first capturing module is used for capturing a first page switching event for switching from a current page to a next page; a first determining module, configured to determine, based on the first page switching event, switching process attribute data configured independently for the current page or the next page; and the control module is used for controlling the presentation of the transition process of switching from the current page to the next page based on the switching process attribute data.
According to a third aspect of embodiments of the present application, there is provided an electronic device, including: one or more processors; a computer readable medium configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the page switching method as described in the first aspect of the embodiments described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a page switching method as described in the first aspect of the above embodiments.
According to the technical scheme provided by the embodiment of the application, the first page switching event for switching from the current page to the next page is captured, the switching process attribute data independently configured for the current page or the next page is determined based on the first page switching event, and then the display of the transition process for switching from the current page to the next page is controlled based on the switching process attribute data.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is a flowchart illustrating a page switching method according to a first embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a page switching method according to a second embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a page switching device in a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a page switching device in a fourth embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application;
fig. 6 is a hardware structure of an electronic device in the sixth embodiment of the present application.
Detailed Description
The present 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 configured to illustrate the related invention, and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring to fig. 1, a step flowchart of a page switching method according to an embodiment of the present application is shown.
Specifically, the page switching method provided in the embodiment includes the following steps:
in step S101, a first page switch event is captured to switch from a current page to a next page.
In this embodiment of the present application, the current page may be understood as a page of an application running on an Android operating system or ios operating system of the terminal device, and the first page switching event includes an operation for a page switching control or a gesture operation for the page. The operation for the page switching control may be understood as a clicking operation, a sliding operation or a dragging operation of the user for the page switching control, and the gesture operation for the page may be understood as a sliding operation of the user on the page. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, when capturing a first page switch event from a current page to a next page, the first page switch event from the current page to the next page is captured through a function or interface in the Viewpager class modified in the Android operating system. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S102, switching process attribute data configured independently for the current page or the next page is determined based on the first page switching event.
In this embodiment of the present application, the switching process attribute data may be understood as data indicating the presentation of a transition process of switching the current page to the next page. The switching process attribute data includes switching animation attribute data, switching music attribute data, switching bell sound attribute data, or the like. In a specific embodiment, the handoff process attribute data is configured independently by the service consumer for each page in the application. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some optional embodiments, when determining the switching process attribute data configured independently for the current page or the next page based on the first page switching event, determining the switching process attribute data configured independently for the current page based on the index data of the current page or determining the switching process attribute data configured independently for the next page based on the index data of the next page under the triggering of the first page switching event. Wherein the index data can be understood as index values of pages. By this, the switching process attribute data configured independently for the page can be easily determined by the index data of the page. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when determining the switching process attribute data configured independently for the current page, based on the index data of the current page, an abstract page class corresponding to the current page is found from a set of abstract page classes corresponding to pages, and based on the abstract page class corresponding to the current page, the switching process attribute data configured independently for the current page is determined. The specific embodiment of the switching process attribute data determined to be configured independently for the next page is similar to the specific embodiment of the switching process attribute data determined to be configured independently for the current page, and will not be described herein. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In step S103, based on the switching process attribute data, the presentation of the transition process of switching from the current page to the next page is controlled.
In the embodiment of the application, when the switching process attribute data is switching animation attribute data, determining a switching animation corresponding to the switching animation attribute data; and controlling the display of the transition process of switching from the current page to the next page based on the switching animation. The switching animation is an animation that the current page is switched to a next page of the current page in a preset mode. The preset mode is that the current page fades out and the next page fades in, or the current page is switched to the next page in a page turning mode. When the switching process attribute data is switching music attribute data, determining switching music corresponding to the switching music attribute data; and controlling the display of the transition process of switching from the current page to the next page based on the switching music, namely playing the switching music while switching the page. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, the method further comprises: capturing a second page switching event that the current page is switched from the foreground to the background; based on the second page switching event, determining state data configured independently for the current page; and determining whether to destroy the current page based on the state data. The status data may be understood as data indicating whether the page is destroyed when the page is switched from the foreground to the background. By this, it can be determined whether to destroy the page or not by the status data of the page independent configuration. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, the second page switch event includes an operation for a page switch control, or a gesture operation for a page. Acquiring switching state data and switching direction data of the current page through a function or an interface in an OnPageChangeListener class in an Android operating system when a second page switching event that the current page is switched from a foreground to a background is captured; and determining a second page switching event that the current page is switched from the foreground to the background based on the switching direction data, the switching state data and the index data of the current page. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when determining the state data configured independently for the current page based on the second page switching event, determining the state data configured independently for the current page based on the index data of the current page under the triggering of the second page switching event. The specific embodiment of the state data determined to be configured independently for the current page is similar to the specific embodiment of the switching process attribute data determined to be configured independently for the current page, and is not described herein. By this, the state data configured independently for the page can be easily determined by the index data of the page. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when determining whether to destroy the current page based on the state data, destroying the current page when determining to destroy the current page based on the state data; when the current page is determined not to be destroyed based on the state data, the current page is reserved to the background so as to be convenient for subsequent reuse. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In some alternative embodiments, the lifecycle of the current page includes at least one of the following phases: a stage of creating the current page, a stage of switching the current page from the background to the foreground, a stage of switching the current page from the foreground to the background, and a stage of destroying the current page. Therefore, the life cycle of the current page comprises few stages, and the maintenance is convenient. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
In a specific example, when the current page is detected to be created, a function module configured correspondingly is called; when the current page is detected to be switched from the background to the foreground, a function module which is correspondingly configured is called; when the current page is detected to be switched from the foreground to the background, a function module which is correspondingly configured is called; and when the current page is detected to be destroyed, calling a function module which is correspondingly configured. The function modules which are configured correspondingly are function modules which are configured independently for the current page by the service user. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
According to the page switching method provided by the embodiment of the application, the first page switching event from the current page to the next page is captured, the switching process attribute data independently configured for the current page or the next page is determined based on the first page switching event, and then the display of the transition process from the current page to the next page is controlled based on the switching process attribute data.
The page switching method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Referring to fig. 2, a step flowchart of a page switching method according to a second embodiment of the present application is shown.
Specifically, the page switching method provided in the embodiment includes the following steps:
in step S201, a first page switch event is captured to switch from a current page to a next page.
Since this step S201 is similar to the step S101 described above, the description thereof will not be repeated here.
In step S202, switching animation attribute data independently configured for the current page or the next page is determined based on the first page switching event.
Since this step S202 is similar to the step S102 described above, the description thereof will not be repeated here.
In step S203, based on the switching animation attribute data, the presentation of a transitional process of switching from the current page to the next page is controlled.
In the embodiment of the application, determining the switching animation corresponding to the switching animation attribute data; and controlling the display of the transition process of switching from the current page to the next page based on the switching animation. The switching animation is an animation that the current page is switched to a next page of the current page in a preset mode. The preset mode is that the current page fades out and the next page fades in, or the current page is switched to the next page in a page turning mode. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
When the page switching method provided by the embodiment is implemented, firstly, a buffer mechanism of a ViewPager class in an Android operating system is copied, the BaseViewPager class is created, each page supports independent switching animation during switching, then a PageContainer container class is defined, the BaseViewPager class is inherited, application program interfaces such as a new page, a closed page, a page switching front stage, a page switching back stage and page return are developed, monitoring of the OnPageChangeListener class is registered, when the page is switched from the front stage to the back stage, whether the page is destroyed or not is determined according to state data of the page, or the page is reserved to the back stage to be convenient for subsequent reuse, finally, the AbstractPage class is packaged, callbacks of different stages of a life cycle of the page are realized, and state values of the current page and switching animation attribute data required during switching can be preset. It will be appreciated that the above description is exemplary only, and that the embodiments of the present application are not limited in any way.
According to the page switching method provided by the embodiment of the application, the first page switching event for switching from the current page to the next page is captured, the switching animation attribute data independently configured for the current page or the next page is determined based on the first page switching event, and then the display of the transition process for switching from the current page to the next page is controlled based on the switching animation attribute data.
The page switching method of the present embodiment may be performed by any suitable device having data processing capabilities, including, but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment devices, advertising devices, personal Digital Assistants (PDAs), tablet computers, notebook computers, palm-top gaming devices, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (e.g., google Glass, oculus lift, hollens, gear VR), and the like.
Referring to fig. 3, a schematic structural diagram of a page switching apparatus in a third embodiment of the present application is shown.
The page switching device of the present embodiment includes: a first capturing module 301, configured to capture a first page switching event from a current page to a next page; a first determining module 302, configured to determine switching process attribute data configured independently for the current page or the next page based on the first page switching event; and the control module 303 is used for controlling the presentation of the transition process of switching from the current page to the next page based on the switching process attribute data.
The page switching device in this embodiment is configured to implement the corresponding page switching method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Referring to fig. 4, a schematic structural diagram of a page switching apparatus in a fourth embodiment of the present application is shown.
The page switching device of the present embodiment includes: a first capturing module 401, configured to capture a first page switching event from a current page to a next page; a first determining module 402, configured to determine switching process attribute data configured independently for the current page or the next page based on the first page switching event; and a control module 403, configured to control presentation of a transition process of switching from the current page to the next page based on the switching process attribute data.
Optionally, the first determining module 402 is specifically configured to: and under the triggering of the first page switching event, determining switching process attribute data independently configured for the current page based on the index data of the current page or determining switching process attribute data independently configured for the next page based on the index data of the next page.
Optionally, the apparatus further comprises: a second capturing module 404, configured to capture a second page switching event that the current page is switched from the foreground to the background; a second determining module 405, configured to determine status data configured independently for the current page based on the second page switch event; a third determining module 406, configured to determine whether to destroy the current page based on the status data.
Optionally, the second determining module 405 is specifically configured to: and under the triggering of the second page switching event, determining the state data configured independently for the current page based on the index data of the current page.
Optionally, the switching process attribute data includes switching animation attribute data.
Optionally, the first page switch event includes an operation for a page switch control, or a gesture operation for a page.
Optionally, the lifecycle of the current page includes at least one of the following phases: a stage of creating the current page, a stage of switching the current page from the background to the foreground, a stage of switching the current page from the foreground to the background, and a stage of destroying the current page.
The page switching device in this embodiment is configured to implement the corresponding page switching method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application; the electronic device may include:
one or more processors 501;
computer readable media 502, which may be configured to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the page switching method as described in the first or second embodiments.
Fig. 6 is a hardware structure of an electronic device in a sixth embodiment of the present application; as shown in fig. 6, the hardware structure of the electronic device may include: a processor 601, a communication interface 602, a computer readable medium 603 and a communication bus 604;
wherein the processor 601, the communication interface 602, and the computer readable medium 603 communicate with each other via a communication bus 604;
alternatively, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module;
wherein the processor 601 may specifically be configured to: capturing a first page switching event for switching from a current page to a next page, and determining switching process attribute data configured independently for the current page or the next page based on the first page switching event; and controlling the display of the transition process of switching from the current page to the next page based on the switching process attribute data.
The processor 601 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), and the like; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The computer readable medium 603 can be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code configured to perform the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU). It should be noted that, the computer readable medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage media element, a magnetic storage media element, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected via any kind of network: including a Local Area Network (LAN) or a Wide Area Network (WAN), to connect to the user's computer, or may be connected to external computers (e.g., by way of the internet using an internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured to implement the specified logical function(s). The specific relationships in the embodiments described above are merely exemplary, and fewer, more, or an adjusted order of execution of the steps may be possible in a specific implementation. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments described in the present application may be implemented by software, or may be implemented by hardware. The described modules may also be provided in a processor, for example, as: a processor includes a first capture module, a first determination module, and a control module. The names of these modules do not constitute a limitation on the module itself in some cases, for example, the first capturing module may also be described as "a module that captures a first page switch event that switches from a current page to a next page".
As another aspect, the present application also provides a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the page switching method as described in the above embodiment one or embodiment two.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: capturing a first page switching event for switching from a current page to a next page, and determining switching process attribute data configured independently for the current page or the next page based on the first page switching event; and controlling the display of the transition process of switching from the current page to the next page based on the switching process attribute data.
The terms "first," "second," "the first," or "the second," as used in various embodiments of the present disclosure, may modify various components without regard to order and/or importance, but these terms do not limit the corresponding components. The above description is only configured for the purpose of distinguishing an element from other elements. For example, the first user device and the second user device represent different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure.
When an element (e.g., a first element) is referred to as being "coupled" (operatively or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the one element is directly connected to the other element or the one element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it will be understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), then no element (e.g., a third element) is interposed therebetween.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (14)

1. A method for switching pages, the method comprising:
capturing a first page switching event for switching from a current page to a next page, and determining switching process attribute data configured independently for the current page or the next page based on the first page switching event;
controlling the presentation of a transition process of switching from the current page to the next page based on the switching process attribute data; and, the method further comprises:
capturing a second page switching event that the current page is switched from the foreground to the background; based on the second page switching event, determining state data configured independently for the current page; determining whether to destroy the current page based on the state data; the state data is data for indicating whether the page is destroyed when the page is switched from the foreground to the background;
the capturing a second page switch event that the current page is switched from the foreground to the background includes: and determining a second page switching event that the current page is switched from the foreground to the background based on the switching direction data, the switching state data and the index data of the current page.
2. The method of claim 1, wherein the determining, based on the first page switch event, switch process attribute data configured independently for the current page or the next page comprises:
and under the triggering of the first page switching event, determining switching process attribute data independently configured for the current page based on the index data of the current page or determining switching process attribute data independently configured for the next page based on the index data of the next page.
3. The method of claim 1, wherein the determining status data configured independently for the current page based on the second page switch event comprises:
and under the triggering of the second page switching event, determining the state data configured independently for the current page based on the index data of the current page.
4. A method according to any of claims 1-3, wherein the switching process attribute data comprises switching animation attribute data.
5. A method according to any of claims 1-3, wherein the first page switch event comprises an operation for a page switch control, or a gesture operation for a page.
6. A method according to any of claims 1-3, characterized in that the lifecycle of the current page comprises at least one of the following phases:
a stage of creating the current page, a stage of switching the current page from the background to the foreground, a stage of switching the current page from the foreground to the background, and a stage of destroying the current page.
7. A page switching apparatus, the apparatus comprising:
the first capturing module is used for capturing a first page switching event for switching from a current page to a next page;
a first determining module, configured to determine, based on the first page switching event, switching process attribute data configured independently for the current page or the next page;
the control module is used for controlling the display of the transition process of switching from the current page to the next page based on the switching process attribute data; and, the apparatus further comprises:
the second capturing module is used for capturing a second page switching event that the current page is switched from the foreground to the background; the second determining module is used for determining state data configured independently for the current page based on the second page switching event; the third determining module is used for determining whether to destroy the current page or not based on the state data; the state data is data for indicating whether the page is destroyed when the page is switched from the foreground to the background;
the second capture module is further configured to: and determining a second page switching event that the current page is switched from the foreground to the background based on the switching direction data, the switching state data and the index data of the current page.
8. The apparatus of claim 7, wherein the first determining module is specifically configured to:
and under the triggering of the first page switching event, determining switching process attribute data independently configured for the current page based on the index data of the current page or determining switching process attribute data independently configured for the next page based on the index data of the next page.
9. The apparatus of claim 7, wherein the second determining module is specifically configured to:
and under the triggering of the second page switching event, determining the state data configured independently for the current page based on the index data of the current page.
10. The apparatus according to any of claims 7-9, wherein the switching process attribute data comprises switching animation attribute data.
11. The apparatus of any of claims 7-9, wherein the first page switch event comprises an operation for a page switch control or a gesture operation for a page.
12. The apparatus according to any of claims 7-9, wherein the lifecycle of the current page comprises at least one of the following phases:
a stage of creating the current page, a stage of switching the current page from the background to the foreground, a stage of switching the current page from the foreground to the background, and a stage of destroying the current page.
13. An electronic device, comprising:
one or more processors;
a computer readable medium configured to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the page switching method of any of claims 1-6.
14. A computer readable medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the page switching method as claimed in any one of claims 1-6.
CN201910058981.8A 2019-01-22 2019-01-22 Page switching method, device, electronic equipment and computer readable medium Active CN111459581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910058981.8A CN111459581B (en) 2019-01-22 2019-01-22 Page switching method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910058981.8A CN111459581B (en) 2019-01-22 2019-01-22 Page switching method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN111459581A CN111459581A (en) 2020-07-28
CN111459581B true CN111459581B (en) 2024-04-16

Family

ID=71683068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910058981.8A Active CN111459581B (en) 2019-01-22 2019-01-22 Page switching method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111459581B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822553B (en) * 2020-12-30 2022-07-05 四川长虹网络科技有限责任公司 Method for dynamically controlling page switching transition effect of IPTV
CN113791944A (en) * 2021-01-18 2021-12-14 北京京东拓先科技有限公司 Monitoring method and device of page timer, medium and electronic equipment
CN114090145B (en) * 2021-10-26 2024-03-22 青岛海尔科技有限公司 Page jump determining method and device, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014075553A1 (en) * 2012-11-13 2014-05-22 Tencent Technology (Shenzhen) Company Limited Page switching method and apparatus
GB201407274D0 (en) * 2013-04-26 2014-06-11 Inodyn Newmedia Gmbh Method for gesture control
CN105022955A (en) * 2014-04-22 2015-11-04 腾讯科技(深圳)有限公司 Locking method and mobile terminal of application program
CN105100003A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 Method and device for preloading webpage game at client
CN105630478A (en) * 2014-12-01 2016-06-01 阿里巴巴集团控股有限公司 Method and device for realizing page switching
CN106156344A (en) * 2016-07-19 2016-11-23 杭州迪普科技有限公司 Page configuration method and device
WO2017020719A1 (en) * 2015-08-03 2017-02-09 阿里巴巴集团控股有限公司 Method and device for classifying object information in page
CN106648602A (en) * 2016-10-18 2017-05-10 江西博瑞彤芸科技有限公司 Page loading method
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150121257A1 (en) * 2013-10-31 2015-04-30 Samsung Electronics Co., Ltd. Method and apparatus for triggering url load request from a browser

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014075553A1 (en) * 2012-11-13 2014-05-22 Tencent Technology (Shenzhen) Company Limited Page switching method and apparatus
GB201407274D0 (en) * 2013-04-26 2014-06-11 Inodyn Newmedia Gmbh Method for gesture control
CN105022955A (en) * 2014-04-22 2015-11-04 腾讯科技(深圳)有限公司 Locking method and mobile terminal of application program
CN105100003A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 Method and device for preloading webpage game at client
CN105630478A (en) * 2014-12-01 2016-06-01 阿里巴巴集团控股有限公司 Method and device for realizing page switching
WO2017020719A1 (en) * 2015-08-03 2017-02-09 阿里巴巴集团控股有限公司 Method and device for classifying object information in page
CN106156344A (en) * 2016-07-19 2016-11-23 杭州迪普科技有限公司 Page configuration method and device
CN106648602A (en) * 2016-10-18 2017-05-10 江西博瑞彤芸科技有限公司 Page loading method
CN107463367A (en) * 2017-06-22 2017-12-12 北京小度信息科技有限公司 Transition cartoon implementing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种针对复杂交互界面应用的Web开发框架;缪亚波, 赵轶群;计算机应用(第02期);全文 *
针对复杂交互界面应用的Web开发框架;缪亚波, 赵轶群;计算机工程(第20期);全文 *

Also Published As

Publication number Publication date
CN111459581A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459581B (en) Page switching method, device, electronic equipment and computer readable medium
CN107925749B (en) Method and apparatus for adjusting resolution of electronic device
CN106662969B (en) Method for processing content and electronic device thereof
US20210256077A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
CN114615510B (en) Live broadcast interface display method and equipment
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
CN107608798A (en) A kind of method for processing business and equipment
CN107203425B (en) Switching method and device of light application and electronic device
US20160274777A1 (en) Intelligent taskbar shortcut menu for webpage control
CN110764849A (en) Rendering method and device for user interface, client device and electronic device
TW202030665A (en) Method and apparatus for displaying digital object identifier
CN111782210A (en) Page management method and device, electronic equipment and computer readable medium
KR102140294B1 (en) Advertising method of electronic apparatus and electronic apparatus thereof
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
CN111125480A (en) Background music playing method and equipment, client device and electronic equipment
CN110290058B (en) Method and equipment for presenting session message in application
CN112230944A (en) Application installation method and device, electronic equipment and computer readable medium
CN110147283B (en) Display content switching display method, device, equipment and medium
CN108021317B (en) Method and device for screen editing
US10242315B2 (en) Finite state machine forming
US20220370912A1 (en) Game Development Method And Apparatus, Game Running Method And Apparatus, And Electronic Device
CN108415656B (en) Display control method, device, medium and electronic equipment in virtual scene
US9477448B2 (en) Screen-oriented computing program refactoring
CN107729180B (en) Abnormal information processing method and device, computer device and readable storage medium
CN111190599A (en) Method and device for realizing android self-defined soft keyboard by using Dialog 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