View switching method and apparatus, and device and storage medium

By using independent animation technology, the problem of limited animation effects during view switching was solved, resulting in more convenient and smoother view switching and improved user experience.

WO2025218756A1PCT designated stage Publication Date: 2025-10-23BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/089649
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-17
Filing Date
2025-04-17
Publication Date
2025-10-23

AI Technical Summary

Technical Problem

Existing technologies have limitations in transition animation effects during view switching, resulting in a poor user experience, especially in views that require real-time redrawing, where smooth switching cannot be achieved.

Method used

View switching is achieved by using independent animations for the two views. By animing the first and second views in the target interface, the second view is presented in a fixed position, and the second view is switched to be fully displayed under preset conditions.

Benefits of technology

It improves the ease of view switching and user interaction experience, avoids the impact of accidental touches on the switching process, and achieves a smoother view switching effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025089649_23102025_PF_FP_ABST
    Figure CN2025089649_23102025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure relate to a view switching method and apparatus, and a device and a storage medium. The method provided herein comprises: presenting a first view in a target interface; in response to the reception of a first operation, presenting in the target interface a first transition animation corresponding to the first operation, wherein the first transition animation comprises a first view animation corresponding to the first view and a second view animation corresponding to a second view, and the second view animation causes the second view to be presented at a fixed position in the target interface; and in response to an end state of the first operation satisfying a preset condition, switching the target interface on the basis of a second transition animation to fully display the second view.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, apparatus and storage medium for view switching

[0001] The present application claims priority to the Chinese patent application No. 202410466076.7, filed on April 17, 2024, entitled “Method, device, apparatus and storage medium for view switching”, the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] Example embodiments of the present disclosure generally relate to the field of computers, and in particular, to a method, device, apparatus and computer readable storage medium for view switching. BACKGROUND

[0003] With the development of computer technology, various smart devices are widely used, and people expect to realize convenient switching of application views through gesture interaction. SUMMARY

[0004] In a first aspect of the present disclosure, a method for view switching is provided. The method comprises: presenting a first view in a target interface; presenting, in response to receiving a first operation, a first transition animation corresponding to the first operation in the target interface, the first transition animation comprising a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and switching, in response to an end state of the first operation satisfying a preset condition, the target interface to completely display the second view based on a second transition animation.

[0005] In a second aspect of the present disclosure, a device for view switching is provided. The device comprises: a view presentation module configured to present a first view in a target interface; an animation presentation module configured to present, in response to receiving a first operation, a first transition animation corresponding to the first operation in the target interface, the first transition animation comprising a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and a view switching module configured to switch, in response to an end state of the first operation satisfying a preset condition, the target interface to completely display the second view based on a second transition animation.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The device comprises at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by the at least one processing unit, cause the device to perform the method of the first aspect.

[0007] In a fourth aspect of the present disclosure, a computer readable storage medium is provided. The computer readable storage medium has stored thereon a computer program, which is executable by a processor to implement the method of the first aspect.

[0008] It should be understood that nothing in the Summary is to be construed as a limitation of the key or important features of the embodiments of the disclosure or as limiting the scope of the disclosure. Other features of the disclosure will be apparent from review of the disclosure, which is discussed in its entirety in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS

[0009] The above and other features, aspects and advantages of embodiments of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings. In the drawings similar elements are denoted by similar reference numerals, in which:

[0010] FIG. 1 shows a schematic diagram of an example environment in which embodiments according to the present disclosure can be implemented;

[0011] FIGS. 2A to 2D show example interfaces according to some embodiments of the present disclosure;

[0012] FIG. 3 shows a flowchart of a process of example view switching according to some embodiments of the present disclosure;

[0013] FIG. 4 shows a schematic structural block diagram of an example view switching apparatus according to some embodiments of the present disclosure; and

[0014] FIG. 5 shows a block diagram of an electronic device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the present disclosure are shown. Like numbers refer to like elements throughout the several views. This disclosure may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and fully convey the scope of the disclosure to those skilled in the art.

[0016] It should be noted that the headings provided herein are not limitations of the various embodiments described in this document. The various embodiments described throughout this document can be included under any heading. Moreover, the embodiments described in any heading can be combined with any other embodiment described in the same heading and / or a different heading in any manner.

[0017] In the description of the embodiments of the present disclosure, the term "comprising" and its conjugations should be understood as open-ended, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "an embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". The following detailed description is further provided for the purpose of explanation and is not intended to limit the disclosure. The term "first", "second", etc. can refer to different or same objects. The following detailed description can further include other explicit and implicit definitions.

[0018] The embodiments of the present disclosure can involve data of users, acquisition and / or use of data, etc. These aspects all comply with the corresponding laws and regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are performed on the premise that the user is aware of and confirms. Accordingly, when implementing the embodiments of the present disclosure, the type of data or information that can be involved, the use range, the use scenario, etc. should be notified to the user and the authorization of the user should be obtained through appropriate means according to the relevant laws and regulations. The specific notification and / or authorization manner can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.

[0019] In the present specification and embodiments, if the scheme involves processing of personal information, it will be processed on the premise of having a legal basis (for example, obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the prescribed or agreed range. The user refuses to process personal information other than the necessary information required for the basic function, which does not affect the user's use of the basic function.

[0020] In some scenarios, a transition generally refers to a process of switching between views, which usually involves switching between two full-screen views (e.g., a starting view and a target view). An interactive transition represents that the user can control the progress of the view appearance animation through the interaction of the finger on the screen. Through the interactive transition, the user can obtain a smooth and responsive use experience.

[0021] In order to simplify the process of transition processing, the starting view and the target view are usually taken as a screenshot as a placeholder view, and then the placeholder view of the screenshot is taken as a whole for geometric transformation (e.g., scaling and rotating) operation. This processing method limits the effect type that the transition animation can achieve, and causes some views that need to be redrawn immediately (e.g., a shooting preview frame) to be replaced by a screenshot placeholder during the transition process, which cannot achieve immediate redrawing and brings poor user experience.

[0022] Embodiments of the present disclosure propose a scheme for view switching. According to the scheme, a first view can be presented in a target interface; in response to receiving a first operation, a first transition animation corresponding to the first operation is presented in the target interface, the first transition animation including a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and in response to an end state of the first operation satisfying a preset condition, the target interface is switched to completely display the second view based on a second transition animation.

[0023] In this way, embodiments of the present disclosure can utilize independent animations for two views to implement switching between views, thereby improving the convenience of view switching.

[0024] Various example implementations of the scheme are described in further detail below in conjunction with the accompanying drawings.

[0025] Example Environment

[0026] FIG. 1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG. 1, the example environment 100 can include an electronic device 110.

[0027] In this example environment 100, the electronic device 110 can run an application 120 that supports interface interaction. The application 120 can be any suitable type of application for interface interaction, examples of which can include, but are not limited to, an image application or other suitable application. A user 140 can interact with the application 120 via the electronic device 110 and / or its attached devices.

[0028] In the environment 100 of FIG. 1, if the application 120 is in an active state, the electronic device 110 can present, through the application 120, an interface 150 for supporting interface interaction.

[0029] In some embodiments, the electronic device 110 communicates with a server 130 to implement the provision of services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media player, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a game device, or any combination thereof, including an accessory or peripheral device or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the user (such as "wearable" circuitry, etc.).

[0030] The server 130 can be a standalone physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and basic cloud computing services such as big data and artificial intelligence platforms. The server 130 may, for example, include a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 can provide background services for the application 120 in the electronic device 110 that supports content presentation.

[0031] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a universal serial bus connection, a wireless fidelity connection, and the like, and embodiments of the present disclosure are not limited in this regard. In embodiments of the present disclosure, the server 130 and the electronic device 110 can achieve signaling interaction through the communication connection therebetween.

[0032] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only, without implying any limitation on the scope of the present disclosure.

[0033] Example interaction

[0034] An example view switching process according to embodiments of the present disclosure will be described below with reference to the accompanying drawings.

[0035] FIGS. 2A to 2D illustrate example interfaces 200A to 200D according to some embodiments of the present disclosure. The interfaces 200A to 200D may, for example, be provided by the electronic device 110 shown in FIG. 1.

[0036] In some embodiments, the electronic device 110 can present an example interface 200A as shown in FIG. 2A. The target interface 200A can be an interactive interface of any application 120, such as a video interface, an image interface, a social application interface, and the like.

[0037] In some embodiments, with reference to FIG. 2A, the electronic device 110 can present a first view 210 in the target interface 200A of FIG. 2A. When the current work presented by the first view 210 is the first work in the information stream, the electronic device 110 can present a first transition animation corresponding to a first gesture operation in the target interface 200A in response to receiving the first operation (which may, for example, include a first gesture operation) in the target interface 200A.

[0038] In some embodiments, the first gesture operation needs to satisfy a preset condition. As an example, such a preset condition can include whether the sliding direction is a preset direction, whether the sliding distance is greater than a threshold, whether the speed is greater than a threshold, whether the acceleration is greater than a threshold, etc.

[0039] In some embodiments, in response to the electronic device 110 presenting the first view in the target interface and receiving a second operation (the second operation can include a second gesture operation, for example), such a second gesture operation does not satisfy the preset condition described above, the current work in the first view is switched to another work. As an example, the sliding direction of the first gesture operation and the second gesture operation is the same, but the sliding distance of the second gesture operation is less than a threshold, then the work is switched based on the first view in the target interface.

[0040] Referring to FIGS. 2B and 2C, the first transition animation mentioned above includes a first view animation corresponding to the first view 210 and a second view animation corresponding to the second view 220.

[0041] In some embodiments, the first view 210 and the second view 220 can be provided by different view components, and the first view and the second view can be in the same view container, and the hierarchy of the first view is kept above the second view.

[0042] In some embodiments, the first view 210 can be a work view for viewing works in an information stream. For example, the first view 210 can display a viewing interface of a group of works in an information stream, and can implement switching between different works in the view based on a preset operation. The second view 220 can be a shooting view for shooting images, for example.

[0043] In some embodiments, the first view 210 and the second view 220 can have independent layout styles. As an example, there is no reuse of any same control or interface element between the first view 210 and the second view 220.

[0044] In other embodiments, the first view 210 and the second view 220 can have partially the same layout style. As an example, the same part of the control or interface element (e.g., chat control and exploration control) can be reused between the first view 210 and the second view 220.

[0045] In some embodiments, with reference to FIGS. 2B and 2C, the electronic device 110 can present a first transition animation corresponding to the first gesture operation (e.g., a gesture swipe-down operation) from interface 200A to interface 200B to interface 200C based on the first gesture operation received in the target interface 200A and before the first gesture operation is ended. As can be seen, the first view display ratio is correspondingly reduced and the transparency is reduced; the second view display ratio is correspondingly increased and is presented in a fixed position and the transparency is increased.

[0046] In some embodiments, the first transition animation can be dynamically changed based on a preset attribute of the first gesture operation. Illustratively, the first transition animation dynamically changes the display ratio of the first view 210 and the second view 220 in the target interface 200A according to the preset attribute of the first gesture operation. In some embodiments, the preset attribute can include the swipe distance of the first gesture operation in the target interface 200A (i.e., on the screen of the electronic device 110). The electronic device 110 can determine the display ratio of the first view 210 and the second view 220 in the target interface according to the swipe distance, and display all or part of the content of the first view 210 and the second view 220 in the target interface in real time based on the display ratio.

[0047] In some embodiments, the electronic device 110 renders the first view 210 and the second view 220 on the screen at the same time based on the same view container, so that the viewfinder frame in the position of the second view 220 can also preview the content of the camera in real time during the first transition animation.

[0048] Further, the electronic device 110 implements a complex first transition animation effect based on the parallel implementation of the plurality of view elements in the first view 210 and the second view 220. Therefore, the electronic device 110 can also present the dynamic change effect of the view elements in the first view 210 and the second view 220. Such dynamic effect of the view elements can be, for example, as shown in FIGS. 2B and 2C, the complex effect of the central card shrinking animation and the gradual disappearance of the top navigation bar and the bottom shutter control. The electronic device 110 designs a separate interactive transition animation effect for each view element of the view, which can be, for example, the transparency change of the control, the transparency change of the view, the displacement and scaling of the stacked card, and the scaling of the shutter control. It can be understood that different view elements can correspond to different animation effect types.

[0049] In this way, the electronic device 110 can present a first transition animation following the first gesture operation to implement the transition switching between different views.

[0050] In some embodiments, in response to the end state of the first gesture operation satisfying a preset condition, the electronic device 110 can switch the target interface to fully display the second view 220 based on a second transition animation. In some embodiments, the end state can indicate the current display proportions of the first view 210 and the second view 220 in the target interface at the end of the first gesture operation.

[0051] Referring to FIG. 2C, at the end of the first gesture operation, the electronic device 110 terminates the first transition animation and determines a target animation state at the termination of the first transition animation. As an example, the display proportion of the second view 220 in the target interface 200C is greater than the display proportion of the first view 210 in the target interface 200C. Accordingly, the second transition animation can include gradually reducing the proportion of the first view 210 in the target interface 200C. Accordingly, as shown in FIG. 2D, after the end of the second transition animation, the electronic device 110 can separately present the second view 220 in the interface 200D.

[0052] In some other embodiments, the electronic device 110 can also respond to a gesture received during the process of the second transition animation. Specifically, in response to receiving a third gesture operation (e.g., a gesture up swipe operation) during the presentation of the second transition animation, the electronic device 110 can present an effect in which the display proportion of the first view 210 gradually increases and the display proportion of the second view 220 gradually decreases in the target interface.

[0053] To prevent the mis-touch situation, the electronic device 110 can determine the motion distance of the first gesture operation, and only present the corresponding first transition animation based on the end state of the first gesture operation when the motion distance is greater than a threshold value. Thus, the embodiments of the present disclosure can avoid the influence of the mis-touch action on the view switching process.

[0054] Specifically, in response to the electronic device 110 receiving a first gesture operation, the end state of the first gesture operation is determined. The electronic device 110 can determine a first display proportion of the first view 210 or a second display proportion of the second view 220 based on the end state. Further, the electronic device 110 can determine the target view to be switched to based on the comparison of the first display proportion or the second display proportion with a threshold value. Further, the electronic device can present a transition animation (e.g., a second transition animation or a third transition animation) corresponding to switching to the target view accordingly.

[0055] As an example, the electronic device 110 can determine the target view as the first view 210 based on that the display ratio of the first view 210 in the target interface at the end of the first gesture operation is greater than a threshold (e.g., the threshold can be 0.5). Accordingly, the electronic device 110 can present a third transition animation for switching completely to the first view 210, which can be that the first view 210 returns to the initial position as shown in FIG. 2A, i.e., the electronic device 110 can separately present the first view 210 in the interface 200A. Conversely, the electronic device 110 continues to present the second transition animation based on the first transition animation being the initial state, and finally presents the interface 200D as shown in FIG. 2D, i.e., separately presents the second view 220.

[0056] Thus, embodiments of the present disclosure can support further gesture interaction in the view switching animation, thereby improving the convenience of view switching and enhancing the user's interaction experience.

[0057] Based on the view switching process described above, embodiments of the present disclosure can implement switching between views using independent animations for the two views, thereby improving the convenience of view switching.

[0058] Example process

[0059] FIG. 3 shows a flowchart of a view switching example process 300 according to some embodiments of the present disclosure. The process 300 can be implemented at the electronic device 110. The process 300 is described below with reference to FIG. 1.

[0060] As shown, at block 310, the electronic device 110 presents a first view in a target interface.

[0061] At block 320, the electronic device 110 presents, in response to receiving a first operation, a first transition animation corresponding to the first operation in the target interface, the first transition animation including a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface.

[0062] At block 330, the electronic device 110 switches, in response to an end state of the first operation satisfying a preset condition, the target interface to completely display the second view based on a second transition animation.

[0063] In some embodiments, the first view includes at least a first element and a second element, and the first view animation includes a first element animation corresponding to the first element and a second element animation corresponding to the second element, the first element animation and the second element animation corresponding to different animation types.

[0064] In some embodiments, the process 300 further includes: presenting, with the second view, dynamic content during the second view animation.

[0065] In some embodiments, the second view is for taking an image, and the dynamic content includes a live image captured by a camera.

[0066] In some embodiments, the second view animation includes a change in transparency associated with the second view.

[0067] In some embodiments, the first view is for viewing a work.

[0068] In some embodiments, presenting, in the target interface, the first transition animation corresponding to the first operation in response to receiving the first operation includes, in response to a current work exhibited by the first view being a first work in an information stream, presenting, in the target interface, the first transition animation corresponding to the first operation based on the received first operation.

[0069] In some embodiments, the process 300 further includes, in response to the target interface presenting the first view, switching the first view to present another work based on the received second operation.

[0070] In some embodiments, the layout style of the first view is independent of a layout style of the second view.

[0071] In some embodiments, presenting, in the target interface, the first transition animation corresponding to the first operation in response to receiving the first operation includes dynamically changing the first transition animation based on a preset attribute of the first operation.

[0072] In some embodiments, dynamically changing the first transition animation includes changing a display ratio of the first view and / or the second view in the target interface.

[0073] In some embodiments, switching the target interface to fully display the second view based on the second transition animation includes, in response to the first operation ending, terminating the first transition animation, determining a target animation state when the first transition animation is terminated, and presenting the second transition animation with the target animation state as an initial state.

[0074] In some embodiments, presenting the second transition animation with the target animation state as the initial state includes presenting the second transition animation with the target animation state as the initial state based on a preset attribute of the first operation.

[0075] In some embodiments, the process 300 further includes, in response to an end state of the first operation not satisfying a preset condition, switching the target interface to fully display the first view based on a third transition animation.

[0076] In some embodiments, the preset condition is associated with at least one attribute of the first operation.

[0077] Example apparatuses and devices

[0078] Embodiments of the present disclosure also provide a corresponding device for implementing the above method or process. FIG. 4 shows a schematic structural block diagram of an example view switching device 400 according to certain embodiments of the present disclosure. The device 400 can be implemented as or included in the electronic device 110. Various modules / components in the device 400 can be implemented by hardware, software, firmware, or any combination thereof.

[0079] As shown in FIG. 4, the device 400 includes a view presentation module 410 configured to present a first view in a target interface; an animation presentation module 420 configured to, in response to receiving a first operation, present a first transition animation corresponding to the first operation in the target interface, the first transition animation including a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and a view switching module 430 configured to, in response to an end state of the first operation satisfying a preset condition, switch the target interface to fully display the second view based on a second transition animation.

[0080] In some embodiments, the first view includes at least a first element and a second element, and the first view animation includes a first element animation corresponding to the first element and a second element animation corresponding to the second element, the first element animation and the second element animation corresponding to different animation types.

[0081] In some embodiments, the device 400 further includes a first presentation module configured to, during a process of the second view animation, present dynamic content with the second view.

[0082] In some embodiments, the second view is for taking an image, and the dynamic content includes a real-time image captured by a camera.

[0083] In some embodiments, the second view animation includes a change in transparency associated with the second view.

[0084] In some embodiments, the first view is for viewing a work.

[0085] In some embodiments, the animation presentation module 420 is specifically configured to, in response to a current work presented by the first view being a first work in an information flow, present the first transition animation corresponding to the first operation in the target interface based on the received first operation.

[0086] In some embodiments, the device 400 further includes a work switching module configured to, in response to the target interface presenting the first view, switch the first view to present another work based on a received second operation.

[0087] In some embodiments, the layout style of the first view is independent of the layout style of the second view.

[0088] In some embodiments, the animation presenting module 420 is specifically configured to dynamically change the first transition animation based on the preset attribute of the first operation.

[0089] In some embodiments, dynamically changing the first transition animation comprises changing a display ratio of the first view and / or the second view in the target interface.

[0090] In some embodiments, the view switching module 430 is specifically configured to, in response to the end of the first operation, terminate the first transition animation; determine a target animation state when the first transition animation is terminated; and present a second transition animation with the target animation state as an initial state.

[0091] In some embodiments, presenting the second transition animation with the target animation state as the initial state comprises presenting the second transition animation with the target animation state as the initial state based on the preset attribute of the first operation.

[0092] In some embodiments, the apparatus 400 further comprises a first switching module configured to, in response to the end state of the first operation not satisfying a preset condition, switch the target interface to fully display the first view based on a third transition animation.

[0093] In some embodiments, the preset condition is associated with at least one attribute of the first operation.

[0094] The modules included in the apparatus 400 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, e.g., machine executable instructions stored on a storage medium. In addition to or alternatively, some or all of the modules in the apparatus 400 can be implemented at least partially by one or more hardware logic components. As an example and not by way of limitation, example types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), complex programmable logic devices (CPLDs), etc.

[0095] FIG. 5 shows a block diagram of an electronic device 500 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 500 illustrated in FIG. 5 is exemplary only and should not be taken as limiting on the functionality and scope of the embodiments described herein. The electronic device 500 illustrated in FIG. 5 can be used to implement the electronic device 110 of FIG. 1.

[0096] As shown in FIG. 5, electronic device 500 is in the form of a general-purpose electronic device. Components of electronic device 500 can include, but are not limited to, one or more processors or processing units 510, memory 520, storage 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit(s) 510 can be actual or virtual processors and capable of executing various processing in accordance with programs stored in memory 520. In a multi-processing system, multiple processing units execute computer-executable instructions in parallel to improve the processing power of electronic device 500.

[0097] Electronic device 500 typically includes a plurality of computer storage media. Such media can be removable and / or non-removable, and can include volatile and / or nonvolatile media. Memory 520 can be volatile (such as, for example, registers, cache, random access memory (RAM)), non-volatile (such as, for example, read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage 530 can be removable or non-removable and can include machine-readable media, such as, for example, flash drives, disks, or any other media capable of storing information and / or data and accessible by electronic device 500.

[0098] Electronic device 500 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5, a disk drive or other computer-readable media drive can be provided for reading from or writing to a removable, non- volatile magnetic disk (e.g., a "hard drive"), and a disk drive or other computer-readable media drive can be provided for reading from or writing to a removable, non-volatile optical disk (such as a CD-ROM or other optical medium). In these instances, each drive can be connected to the bus (not shown) by one or more data media interfaces. Memory 520 can include a computer program product 525 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.

[0099] Communication unit(s) 540 enable communication with other electronic devices via communication media. Additionally, functionality of components of electronic device 500 can be implemented in a single computing cluster or a plurality of computer machines capable of communication through a communication connection. Accordingly, electronic device 500 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes.

[0100] The input device 550 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 560 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 can also communicate with one or more external devices (not shown), such as storage devices, display devices, etc., one or more devices that enable a user to interact with the electronic device 500, or any devices (e.g., a network card, a modem, etc.) that enable the electronic device 500 to communicate with one or more other electronic devices, as desired via the communication unit 540. Such communication can be carried out via an input / output (I / O) interface (not shown).

[0101] According to an example implementation of the present disclosure, a computer readable storage medium is provided having computer executable instructions stored thereon, where the computer executable instructions are executed by a processor to implement the method described above. According to an example implementation of the present disclosure, a computer program product is also provided that is tangibly stored on a non-transitory computer readable medium and includes computer executable instructions, where the computer executable instructions are executed by a processor to implement the method described above.

[0102] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0103] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0104] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0105] The computer program product of the present disclosure can be a computer program product, which is a machine-readable medium (media) having instances of the software embodied thereon, such as computer software, firmware, wireless application protocol (WAP), middleware or microcode. For example, a computer program product can be a floppy disk, a CD-ROM, a DVD, a Blu-ray Disc™, a flash drive, a memory stick, a magnetic tape, or a hard disk drive. The machine-readable medium can be a single medium, or multiple media, of the same or different type. The computer program product can be one or more computer program components embodied in medium and / or transmission signals. The computer program product can have one or more computer program components embodied in medium and / or transmission signals.

[0106] The implementations of the disclosure have been described above with the intent to be illustrative rather than limiting. Although the implementations of the disclosure have been described with regard to one or more implementations, it will be recognized that a variety of modifications and changes can be made to these implementations without departing from the broader spirit and scope of the implementations as set forth in the preceding disclosure. For example, certain aspects of the implementations can be performed using hardware, software, and / or firmware, or any combination thereof. The above-described implementations should therefore be regarded as merely illustrative, and not as narrowing the scope of the disclosure, which is defined by the appended claims and their equivalents.

Claims

1. A view switching method, comprising: presenting a first view in a target interface; in response to receiving a first operation, presenting a first transition animation corresponding to the first operation in the target interface, the first transition animation comprising a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and in response to an end state of the first operation satisfying a preset condition, switching the target interface to a state of fully displaying the second view based on a second transition animation. 2.The method of claim 1, wherein the first view comprises at least a first element and a second element, and the first view animation comprises a first element animation corresponding to the first element and a second element animation corresponding to the second element, the first element animation and the second element animation corresponding to different animation types. 3.The method of claim 1, further comprising: during a process of the second view animation, presenting dynamic content with the second view. 4.The method of claim 3, wherein the second view is used for taking an image, and the dynamic content comprises a real-time image captured by a camera. 5.The method of claim 1, wherein the second view animation comprises a change of transparency associated with the second view. 6.The method of claim 1, wherein the first view is used for viewing a work. 7.The method of claim 6, wherein presenting a first transition animation corresponding to the first operation in the target interface in response to receiving a first operation comprises: in response to a current work presented by the first view being a first work in an information flow, presenting the first transition animation corresponding to the first operation in the target interface based on the received first operation. 8.The method of claim 6, further comprising: in response to the target interface presenting the first view, switching the first view to present another work based on a received second operation. 9.The method of claim 1, wherein a layout style of the first view is independent of a layout style of the second view. 10.The method of claim 1, wherein the presenting a first transition animation corresponding to the first operation in the target interface in response to receiving a first operation comprises: dynamically changing the first transition animation based on a preset attribute of the first operation.

11. The method of claim 1, wherein, the dynamically changing the first transition animation comprises changing a display ratio of the first view and / or the second view in the target interface. 12.The method of claim 1, wherein the switching the target interface to a state of fully displaying the second view based on a second transition animation comprises: terminating the first transition animation in response to an end of the first operation; determining a target animation state when the first transition animation is terminated; and presenting the second transition animation with the target animation state as an initial state.

13. The method of claim 12, wherein the presenting the second transition animation with the target animation state as an initial state comprises: presenting the second transition animation with the target animation state as an initial state based on a preset attribute of the first operation.

14. The method of claim 1, further comprising: in response to the end state of the first operation not satisfying the preset condition, switching the target interface to fully display the first view based on a third transition animation.

15. The method of claim 1, wherein the preset condition is associated with at least one attribute of the first operation.

16. A device for view switching, comprising: a view presenting module configured to present a first view in a target interface; an animation presenting module configured to, in response to receiving a first operation, present a first transition animation corresponding to the first operation in the target interface, the first transition animation comprising a first view animation corresponding to the first view and a second view animation corresponding to a second view, wherein the second view animation causes the second view to be presented in a fixed position in the target interface; and a view switching module configured to, in response to an end state of the first operation satisfying a preset condition, switch the target interface to fully display the second view based on a second transition animation.

17. An electronic device, comprising: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions which, when executed by the at least one processing unit, cause the electronic device to perform the method of any of claims 1-15.

18. A computer-readable storage medium having stored thereon a computer program, the computer program being executable by a processor to implement the method of any of claims 1-15. ​ ​

Citation Information

Patent Citations

  • Scene switching method and device, terminal and storage medium

    CN110062271A

  • Multimedia resource switching method and device, electronic equipment and storage medium

    CN112256167A

  • Application switching method and device, terminal and storage medium

    CN115509698A

  • View transition method and device, electronic equipment and storage medium

    CN115619908A

  • View switching method and device, equipment and storage medium

    CN118245159A