CN115454553A - Method and device for realizing application page switching effect and electronic equipment - Google Patents
Method and device for realizing application page switching effect and electronic equipment Download PDFInfo
- Publication number
- CN115454553A CN115454553A CN202211124558.1A CN202211124558A CN115454553A CN 115454553 A CN115454553 A CN 115454553A CN 202211124558 A CN202211124558 A CN 202211124558A CN 115454553 A CN115454553 A CN 115454553A
- Authority
- CN
- China
- Prior art keywords
- page
- switching
- effect
- animation
- root part
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method and a device for realizing an application page switching effect and electronic equipment, which relate to the technical field of Android system UI (user interface) design and comprise the following steps: responding to the switching operation aiming at the first page, and acquiring a root part of a second page; responding to the exit operation aiming at the second page, and acquiring the root part of the first page; the first page and the second page are both application interfaces in an Android system; executing a first switching effect based on root parts of the first page and the second page to realize switching from the first page to the second page; the first switching effect is an animation effect; executing a second switching effect based on the root parts of the first page and the second page to realize switching from the second page back to the first page; the second switching effect comprises an animation effect or a gesture effect, the technical problems of few switching effects and low user participation degree are solved, and the technical effects of enriching the animation effect and increasing interactivity are achieved.
Description
Technical Field
The invention relates to the technical field of UI (user interface) design of an Android system, in particular to a method and a device for realizing an application page switching effect and electronic equipment.
Background
In the Android system, transition is performed by switching between application pages through a scene access animation, and a default method provided by the system is usually used for setting so as to achieve the above page switching effect, while the system generally provides several basic dynamic effect forms, such as: translation, zooming, rotation, transparency change, or some combination thereof, thereby achieving a certain switching effect. With the system-native approach, there are two main disadvantages: firstly, the animation styles are few, only several basic animations can be selected or combined, and higher self-defined animations cannot be achieved; secondly, the user interactivity is insufficient, and the user can only use the switch effect setting directly after the switch effect setting is completed, and can not participate in the definition according to the preference of the user. That is to say, in the existing android system, the implementation method of the switching effect between application pages has the problems of less switching effect and low user participation.
Disclosure of Invention
The invention aims to provide a method and a device for realizing an application page switching effect and electronic equipment, so as to solve the technical problems of low page switching effect and low user participation in the prior art.
In a first aspect, an embodiment of the present invention provides a method for implementing an application page switching effect, where the method includes:
responding to the switching operation aiming at the first page, and acquiring a root part of a second page; the first page and the second page are both application interfaces in an Android system;
responding to the exit operation aiming at the second page, and acquiring the root part of the first page;
executing a first switching effect based on the root part of the first page and the root part of the second page to realize the switching from the first page to the second page; the first switching effect is an animation effect;
executing a second switching effect based on the root part of the first page and the root part of the second page to realize switching from the second page back to the first page; the second switching effect includes an animation effect or a gesture effect.
In some possible embodiments, the animation effect includes a system animation and a custom animation; the system animation is pre-configured in extensible markup language (XML), and comprises the following steps: any one or more of translation, zooming, rotation and transparency change;
the method further comprises the following steps: and building the custom animation by using an animation generator in advance.
In some possible embodiments, performing a first switching effect based on the root part of the first page and the root part of the second page to realize switching from the first page to the second page includes: and executing system animation or custom animation on the root office of the second page to realize the switching from the first page to the second page.
In some possible embodiments, performing a first switching effect based on the root part of the first page and the root part of the second page to realize switching from the first page to the second page further includes: executing system animation or custom animation on the root part of the first page to realize that the first page exits from the current display interface; and executing system animation or custom animation on the root office of the second page to realize the display of the second page on the current display interface.
In some possible embodiments, after obtaining the root part of the first page in response to the exit operation for the second page, the method further includes: acquiring position coordinates of the touch object in contact with the display equipment based on sliding monitoring added in advance in the root part of the second page; if the position coordinate is in the gesture response area on the display device, the exit operation is gesture exit; according to the sliding monitoring, movement information of a touch object when the touch object is in contact with the display equipment is obtained; the movement information comprises displacement and time of a touch object moving on the display equipment; and determining a sliding gesture aiming at the second page based on the movement information.
In some possible embodiments, performing a second switching effect based on the root office of the first page to implement a switch from the second page back to the first page includes: determining the second switching effect according to the sliding gesture; and executing the second switching effect based on the root part of the first page and the root part of the second page to realize the switching from the second page back to the first page.
In some possible embodiments, the method further comprises: if the exit operation is not gesture exit, executing a second switching effect based on the root office of the second page to realize switching from the second page to the first page; the first switching effect is an animation effect.
In a second aspect, an embodiment of the present invention provides an apparatus for implementing an application page switching effect, where the apparatus includes:
the first obtaining module is used for responding to the switching operation aiming at the first page and obtaining the root part of the second page; the first page and the second page are both application interfaces in an Android system;
the second acquisition module is used for responding to the exit operation aiming at the second page and acquiring the root office of the first page;
a first switching module, configured to execute a first switching effect based on a root part of the first page and a root part of a second page, so as to implement switching from the first page to the second page; the first switching effect is an animation effect;
a second switching module, configured to execute a second switching effect based on the root part of the first page and the root part of the second page, so as to implement switching from the second page to the first page; the second switching effect includes an animation effect or a gesture effect.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method according to any one of the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing machine executable instructions that, when invoked and executed by a processor, cause the processor to perform the method of any of the first aspects.
The invention provides a method and a device for realizing an application page switching effect and electronic equipment, wherein the method comprises the following steps: responding to the switching operation aiming at the first page, and acquiring a root part of a second page; responding to the exit operation aiming at the second page, and acquiring the root part of the first page; the first page and the second page are both application interfaces in an Android system; executing a first switching effect based on root parts of the first page and the second page to realize switching from the first page to the second page; the first switching effect is an animation effect; executing a second switching effect based on the root parts of the first page and the second page to realize switching from the second page back to the first page; the second switching effect comprises an animation effect or a gesture effect, the technical problems of few switching effects and low user participation degree are solved, and the technical effects of enriching the animation effect and increasing interactivity are achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a method for implementing an application page switching effect according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another implementation method for switching an application page according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an effect of gesture exit in a method for implementing an application page switching effect according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for implementing an application page switching effect according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
In the Android system, switching between application pages has a transition from a scene to a scene, and the default method provided by the system is usually used for setting so as to realize the page switching effect, while the system generally provides several basic dynamic effect forms, such as: translation, zooming, rotation, transparency change, or some combination thereof, thereby achieving a certain switching effect. With the system-native approach, there are two main disadvantages: firstly, the animation styles are few, only several basic animations can be selected or combined, and higher self-defined animations cannot be achieved; secondly, the user interactivity is not enough, and the user can only use the switch effect directly after the switch effect setting is completed, and can not participate in the definition according to the preference of the user. That is to say, in the existing android system, the implementation method of the switching effect between application pages has the problems of less switching effect and low user participation.
Based on this, in order to improve user experience and realize smooth switching between pages, the invention performs certain extension based on Android system source codes, that is, embodiments of the invention provide a method, an apparatus and an electronic device for realizing an application page switching effect, so as to alleviate technical problems of few page switching effects and low user participation in the prior art.
To facilitate understanding of the present embodiment, first, a detailed description is given to an implementation method of an application page switching effect disclosed in the present embodiment, referring to a flowchart of the implementation method of an application page switching effect shown in fig. 1, where the method may be executed by an electronic device, and mainly includes the following steps S110 to S140:
s110: responding to the switching operation aiming at the first page, and acquiring a root part of a second page; the first page and the second page are both application interfaces in an Android system;
s120: responding to the exit operation aiming at the second page, and acquiring the root part of the first page;
s130: executing a first switching effect based on a root part of the first page and a root part of the second page to realize switching from the first page to the second page; the first switching effect is an animation effect;
in this embodiment, the animation effect includes a system animation; the system animation is pre-configured in extensible markup language XML, and comprises the following steps: any one or combination of translation, scaling, rotation and transparency change. In addition, animation effects may also include custom animations; correspondingly, the method provided by this embodiment may further include: and building the custom animation by using an animation generator in advance. As a specific example, various types of complex or fine-control animation effects can be achieved using a custom analyzer, and an estimator and interpolator required to build the operation.
In this embodiment, the step S120 includes: and executing system animation or custom animation on the root part of the second page to realize the switching from the first page to the second page.
Alternatively, the step S120 may further include: executing system animation or user-defined animation on the root part of the first page to realize that the first page exits from the current display interface; and simultaneously executing system animation or custom animation on the root office of the second page to realize the display of the second page on the current display interface.
As a specific example, the first switching effect is an entry effect, i.e. the current display interface is switched from the first page (a) to the second page (B). In the switching process, the first page A can execute the animation when exiting the current display interface or not; meanwhile, the second page B performs animation when entering the current display interface. That is, the first switching effect may include two cases: (1) an entry animation of only the second page; (2) There is both an exit animation for the first page and an entry animation for the second page.
S140: executing a second switching effect based on the root part of the first page and the root part of the second page to realize switching from the second page back to the first page; the second toggle effect includes an animation effect or a gesture effect.
The embodiment of the application provides a method and a device for realizing an application page switching effect and electronic equipment, and the method comprises the following steps: responding to the switching operation aiming at the first page, and acquiring a root part of a second page; responding to exit operation aiming at the second page, and acquiring a root office of the first page; the first page and the second page are both application interfaces in an Android system; executing a first switching effect based on root parts of the first page and the second page to realize switching from the first page to the second page; the first switching effect is an animation effect; executing a second switching effect based on the root parts of the first page and the second page to realize switching from the second page back to the first page; the second switching effect comprises an animation effect or a gesture effect, the technical problems of few switching effects and low user participation degree are solved, and the technical effects of enriching the animation effect and increasing interactivity are achieved.
Referring to the flowchart of another implementation method for applying the page switching effect shown in fig. 2, in this embodiment, after the step S130, the method may further include: judging whether the exit operation is gesture exit; if so, listening for a gesture swipe to the second page. The method comprises the following specific steps:
step 21: acquiring position coordinates of the touch object in contact with the display equipment based on sliding monitoring added in advance in the root part of the second page;
in this embodiment, the display device may be a touch screen, and the touch object may be a finger of a user or a stylus pen, and is used for inputting a gesture operation on the touch screen device through the touch object.
The sliding listening pre-added to the root layout is generally an executable program for receiving data such as coordinates generated by sliding the touch object on the device. The specific principle is as follows: the system converts the data generated by the screen into recognizable data according to gesture operations such as pointing, pressing and sliding performed by the fingers or the touch pen on the screen. If the sliding monitor is added to the currently operating application interface, the sliding coordinate data generated by the screen is continuously returned to the sliding monitor. Therefore, corresponding business operation can be executed according to the sliding data. The whole sliding monitoring principle is supported by the bottom layer of the system, and each software application can realize the respective gesture sliding effect by adding sliding monitoring.
The specific add codes are demonstrated as follows: decorview. Setontouchlist ((x, y) - > { }); wherein setOnTouchListener () is a method provided by the system for adding sliding monitoring, and x and y are coordinates called back by the system.
Step 22: if the position coordinates are in the gesture response area on the display device, the exit operation is gesture exit;
step 23: according to the sliding monitoring, acquiring the movement information of the touch object when the touch object is in contact with the display equipment; the movement information comprises displacement and time of the touch object moving on the display equipment;
and step 24: based on the movement information, a swipe gesture is determined for the second page.
As a specific example, referring to the schematic diagram of the effect of gesture exit shown in fig. 3, the upper interface B (i.e. the second page) slides up and exits to the lower interface a (i.e. the first page). The monitoring basis of the gesture is to add sliding monitoring (system method support) to the root layout of the upper interface B, and when the touch object slides at the root part, the position coordinate of the current touch object touching the screen can be continuously received. Meanwhile, only when the touch object is pressed down and slides upwards in the gesture response area, the root part of the upper-layer interface B moves upwards along with the touch object, and the lower-layer interface A is slowly displayed. The position and the size of the gesture response area on the display device can be customized, and the response standard is that the position coordinate generated by the sliding of the user falls into the coordinate interval of the gesture response area defined in advance.
Therefore, when the page B is returned to the page A, if a sliding gesture (such as quick sliding operation of a user touch object from the bottom to the top) is adopted, the switching effect execution gesture exits, and if the sliding gesture (such as pressing a return key operation) is not adopted, the switching effect execution gesture exits through the custom animation. The sliding gesture can be unlimited from bottom to top, from left to right and the like, the inertia movement after the touch object is loosened can be set, and the speed can also be set so as to achieve a certain natural transition effect.
Accordingly, in one embodiment, the step S140 includes: determining a second switching effect according to the sliding gesture; and executing a second switching effect based on the root part of the first page and the root part of the second page so as to realize switching from the second page back to the first page.
In one embodiment, the method further comprises: if the quitting operation is not the gesture quitting, executing a second switching effect based on the root part of the second page to realize the switching from the second page to the first page; the first switching effect is an animation effect.
The embodiment of the invention provides a method for realizing the switching effect of an application page, which can utilize the root layout to execute basic animation by acquiring the DecorView at the bottom layer of an interface and can add the user-defined effect, such as: blur, twist, bessel motion, etc. In addition, when the page exits, a matching action can be performed in response to a gesture operation of the user, for example: the page can be slid out along with the touch object by pressing the page from left to right through the touch object, so that the page can be exited. Wherein, the gesture operation of the user can be arbitrary, such as: upward sliding and throwing, free sliding and following, and the like.
That is to say, the implementation method for the application page switching effect provided by the embodiment of the application adds the custom animation form by using the page root layout, and does not adopt the method provided by the system, so that the limitation of the system is broken through, and the animation effect is enriched; the effect is applied to the root layout by matching with the sliding gesture of the user, so that good interactivity can be generated, and the participation and experience of the user are enhanced.
An embodiment of the present invention provides an apparatus for implementing an application page switching effect, and referring to fig. 4, the apparatus includes:
a first obtaining module 310, configured to obtain a root part of a second page in response to a switching operation for a first page; the first page and the second page are both application interfaces in an Android system;
a second obtaining module 320, configured to obtain a root office of the first page in response to a quit operation for the second page;
a first switching module 330, configured to execute a first switching effect based on a root part of the first page and a root part of the second page, so as to implement switching from the first page to the second page; the first switching effect is an animation effect;
the second switching module 340 is configured to execute a second switching effect based on the root part of the first page and the root part of the second page, so as to implement switching from the second page back to the first page; the second toggle effect includes an animation effect or a gesture effect.
The device for implementing the application page switching effect provided by the embodiment of the application may be specific hardware on the device, or software or firmware installed on the device, or the like. The device provided in the embodiment of the present application has the same implementation principle and the same technical effects as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to corresponding contents in the foregoing method embodiments for the absence of any mention in the device embodiment. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. The device for implementing the application page switching effect provided by the embodiment of the application has the same technical characteristics as the method for implementing the application page switching effect provided by the embodiment, so that the same technical problems can be solved, and the same technical effect can be achieved.
The embodiment of the application further provides an electronic device, and specifically, the electronic device comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 400 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The Memory 41 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 40. The Processor 40 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention 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 steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
Corresponding to the method, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores machine executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to execute the steps of the method.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
It should be noted that: like reference numbers and letters indicate like items in the figures, and thus once an item is defined in a figure, it need not be further defined or explained in subsequent figures, and moreover, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for realizing application page switching effect is characterized by comprising the following steps:
responding to the switching operation aiming at the first page, and acquiring a root part of a second page; the first page and the second page are both application interfaces in an Android system;
responding to the exit operation aiming at the second page, and acquiring the root part of the first page;
executing a first switching effect based on the root part of the first page and the root part of the second page to realize the switching from the first page to the second page; the first switching effect is an animation effect;
executing a second switching effect based on the root part of the first page and the root part of the second page to realize switching from the second page back to the first page; the second switching effect includes an animation effect or a gesture effect.
2. The method for implementing the application page switching effect according to claim 1, wherein the animation effect comprises a system animation and a custom animation;
the system animation is pre-configured in extensible markup language XML, and comprises the following steps: any one or combination of translation, zooming, rotation and transparency change;
the method further comprises the following steps: and building the custom animation by using an animation generator in advance.
3. The method for implementing application page switching effect according to claim 2, wherein executing a first switching effect based on the root part of the first page and the root part of the second page to implement switching from the first page to the second page comprises:
and executing system animation or custom animation on the root part of the second page to realize the switching from the first page to the second page.
4. The method for implementing application page switching effect according to claim 2, wherein a first switching effect is executed based on the root part of the first page and the root part of the second page to implement switching from the first page to the second page, further comprising:
executing system animation or user-defined animation on the root part of the first page to realize that the first page exits from the current display interface;
and executing system animation or custom animation on the root office of the second page to realize the display of the second page on the current display interface.
5. The method for implementing application page switching effect according to claim 1, wherein after acquiring the root part of the first page in response to the exit operation for the second page, the method further comprises:
acquiring position coordinates of a touch object in contact with the display equipment based on sliding monitoring added in advance in the root part of the second page;
if the position coordinate is in a gesture response area on the display device, the exit operation is gesture exit;
according to the sliding monitoring, movement information of a touch object when the touch object is in contact with the display equipment is obtained; the movement information comprises displacement and time of movement of a touch object on the display device;
determining a swipe gesture for the second page based on the movement information.
6. The method for implementing application page switching effect according to claim 5, wherein executing a second switching effect based on the root office of the first page to implement switching from the second page back to the first page comprises:
determining the second switching effect according to the sliding gesture;
performing the second switching effect based on the root part of the first page and the root part of the second page to effect a switch from the second page back to the first page.
7. The method for implementing application page switching effect according to claim 5, further comprising: if the exit operation is not a gesture exit, executing a second switching effect based on a root office of the second page to realize switching from the second page back to the first page; the first switching effect is an animation effect.
8. An apparatus for implementing a page switching effect, comprising:
the first obtaining module is used for responding to the switching operation aiming at the first page and obtaining the root part of the second page; the first page and the second page are both application interfaces in an Android system;
the second acquisition module is used for responding to the exit operation aiming at the second page and acquiring the root office of the first page;
a first switching module, configured to execute a first switching effect based on a root part of the first page and a root part of the second page, so as to implement switching from the first page to the second page; the first switching effect is an animation effect;
a second switching module, configured to execute a second switching effect based on the root part of the first page and the root part of the second page, so as to implement switching from the second page back to the first page; the second switching effect includes an animation effect or a gesture effect.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the steps of the method for implementing the application page switching effect according to any one of claims 1 to 7.
10. A computer readable storage medium storing machine executable instructions which, when invoked and executed by a processor, cause the processor to execute a method of implementing an application page switching effect as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211124558.1A CN115454553A (en) | 2022-09-15 | 2022-09-15 | Method and device for realizing application page switching effect and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211124558.1A CN115454553A (en) | 2022-09-15 | 2022-09-15 | Method and device for realizing application page switching effect and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115454553A true CN115454553A (en) | 2022-12-09 |
Family
ID=84304862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211124558.1A Pending CN115454553A (en) | 2022-09-15 | 2022-09-15 | Method and device for realizing application page switching effect and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115454553A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116991528A (en) * | 2023-08-14 | 2023-11-03 | 腾讯科技(深圳)有限公司 | Page switching method and device, storage medium and electronic equipment |
-
2022
- 2022-09-15 CN CN202211124558.1A patent/CN115454553A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116991528A (en) * | 2023-08-14 | 2023-11-03 | 腾讯科技(深圳)有限公司 | Page switching method and device, storage medium and electronic equipment |
CN116991528B (en) * | 2023-08-14 | 2024-03-19 | 腾讯科技(深圳)有限公司 | Page switching method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103809896B (en) | A kind of page switching method and device | |
TWI553541B (en) | Method and computing device for semantic zoom | |
US20140089824A1 (en) | Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions | |
CN106201166A (en) | A kind of multi-screen display method and terminal | |
CN103513878A (en) | Touch input method and device | |
KR20140126327A (en) | Thumbnail-image selection of applications | |
CN106548504B (en) | Webpage animation generation method and device | |
WO2014000543A1 (en) | Method and device for text input and display of intelligent terminal | |
CN110442267B (en) | Touch operation response method and device, mobile terminal and storage medium | |
CN111835623B (en) | Unread message display method and device and electronic equipment | |
CN113835585A (en) | Application interface switching method, device and equipment based on navigation and storage medium | |
CN112114734A (en) | Online document display method and device, terminal and storage medium | |
WO2016066032A1 (en) | Web page reformatting method and apparatus, computing device and non-transitory machine readable storage medium | |
CN115454553A (en) | Method and device for realizing application page switching effect and electronic equipment | |
CN110568990B (en) | Screen splitting method and device, electronic equipment and storage medium | |
CN108491140B (en) | Interactive content display method and device | |
CN111143731B (en) | Display method and device for webpage interface zooming and terminal equipment | |
CN113721819B (en) | Man-machine interaction method and device and electronic equipment | |
CN109002293B (en) | UI element display method and device, electronic equipment and storage medium | |
CN105824694A (en) | Adjustment method and device for resources of applications | |
CN113721820B (en) | Man-machine interaction method and device and electronic equipment | |
CN113134234B (en) | Information display method, device, terminal and storage medium | |
CN111782381A (en) | Task management method and device, mobile terminal and storage medium | |
CN106598381A (en) | Parallax error animation realization method and terminal of realizing parallax error animation | |
CN112764862A (en) | Application program control method and device 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 |