WO2022017013A1 - 应用界面切换方法、装置、终端及存储介质 - Google Patents

应用界面切换方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2022017013A1
WO2022017013A1 PCT/CN2021/098160 CN2021098160W WO2022017013A1 WO 2022017013 A1 WO2022017013 A1 WO 2022017013A1 CN 2021098160 W CN2021098160 W CN 2021098160W WO 2022017013 A1 WO2022017013 A1 WO 2022017013A1
Authority
WO
WIPO (PCT)
Prior art keywords
application interface
interface
displayed
target
application
Prior art date
Application number
PCT/CN2021/098160
Other languages
English (en)
French (fr)
Inventor
莫博宇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to JP2023503197A priority Critical patent/JP2023534305A/ja
Priority to EP21845357.9A priority patent/EP4187378A4/en
Publication of WO2022017013A1 publication Critical patent/WO2022017013A1/zh
Priority to US18/069,724 priority patent/US20230127743A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • the embodiments of the present application relate to the technical field of terminals, and in particular, to an application interface switching method, device, terminal, and storage medium.
  • the user first uses the taxi-hailing application to take a taxi, and while waiting for the vehicle to arrive, switches to use the news reading application for browsing.
  • the news reading application is in the foreground, while the taxi application is switched to run in the background.
  • the user needs to check the specific location of the vehicle, he needs to switch the taxi-hailing application to the foreground again, and switch the news reading application to the background to run.
  • Embodiments of the present application provide an application interface switching method, device, terminal, and storage medium.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for switching an application interface, and the method includes:
  • the second application interface is displayed in the first display mode, and the first application interface is displayed in the second display mode
  • An application interface wherein the interface size of the application interface displayed by the first display mode is smaller than the interface size of the application interface displayed by the second display mode.
  • an embodiment of the present application provides an application interface switching device, and the device includes:
  • a display module configured to display the first application interface through a first display mode
  • an operation receiving module configured to receive an interface switching operation on the first application interface, where the interface switching operation is used to trigger switching of the interface display mode of the application interface;
  • a switching module configured to display the second application interface through the first display mode and display the second application interface through the second display mode in response to the interface switching operation when there is a second application interface displayed through the second display mode
  • the first application interface is displayed in the first display mode, wherein the interface size of the application interface displayed in the first display mode is smaller than the interface size of the application interface displayed in the second display mode.
  • an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the above aspect The described application interface switching method.
  • an embodiment of the present application provides a computer-readable storage medium, where the storage medium stores at least one instruction, and the at least one instruction is configured to be executed by a processor to implement the application interface switching according to the above aspect method.
  • an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the application interface switching method provided by the above aspects.
  • Fig. 1 is the interface schematic diagram of application switching process in the related art
  • Fig. 2 shows the method flow chart of the application interface switching method provided by an exemplary embodiment of the present application
  • FIG. 3 is a schematic interface diagram of an application interface switching process shown in an exemplary embodiment
  • FIG. 4 shows a method flowchart of a method for switching an application interface provided by another exemplary embodiment of the present application
  • FIG. 5 is a schematic interface diagram of an application interface switching process shown in an exemplary embodiment of the application interface switching method shown in FIG. 4;
  • FIG. 6 shows a method flowchart of a method for switching an application interface provided by another exemplary embodiment of the present application
  • FIG. 7 to 9 are schematic interface diagrams of the application interface switching process shown in the exemplary embodiment of the application interface switching method shown in FIG. 4;
  • FIG. 10 shows a method flow chart of a method for switching an application interface provided by another exemplary embodiment of the present application.
  • FIG. 11 is a schematic interface diagram of an application interface switching process shown in an exemplary embodiment of the application interface switching method shown in FIG. 10;
  • FIG. 12 shows a method flowchart of a method for switching an application interface provided by another exemplary embodiment of the present application
  • FIG. 13 is a schematic interface diagram of an application interface switching process shown in an exemplary embodiment of the application interface switching method shown in FIG. 12;
  • FIG. 14 shows a structural block diagram of an application interface switching device provided by an embodiment of the present application.
  • FIG. 15 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • plural refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects are an "or" relationship.
  • the first type of floating window a floating window used to display the application interface.
  • the application interface displayed in the first type of floating window is a reduced application interface, which includes all interface elements in the application interface; or, the first type of floating window displays core interface elements in the application interface, the core interface Elements are preset by the application.
  • the terminal scales down the taxi-hailing interface in the full-screen display state, so that the reduced taxi-hailing interface is displayed in the first-type floating window; for recording applications, the terminal extracts the recording duration in the recording interface as well as the recording controls (ie core interface elements) so that only the recording duration and recording controls are displayed in the first type of floating window.
  • the recording controls ie core interface elements
  • the first type floating window is only used for application interface display, and cannot respond to in-app operations on the displayed application interface.
  • the first type of floating window in addition to being used for application interface display, also supports responding to in-app operations. For example, when the first type of floating window displays core interface elements in the application interface, it can respond to touch operations on the core interface elements.
  • the floating window of the first type can be displayed on the main interface of the system, the upper layer of the full-screen application interface, or the upper layer of the split-screen application interface, and supports displaying two or more floating windows of the first type at the same time.
  • the first type of floating window supports movement and size adjustment, that is, the user can change the display position or display size of the first type of floating window according to requirements.
  • the second type of floating window a floating window used to display the application interface.
  • the default size of the second type of floating window is larger than that of the first type of floating window.
  • the second-type floating window also supports responding to in-application operations of the displayed application interface. For example, when the news reading interface of a news reading application is displayed in the second-type floating window, the user can slide up or down the news reading interface through a sliding operation; when the recording interface of the recording application is displayed in the second-type floating window, the user can You can control the recording progress by clicking the recording controls in the recording interface.
  • the application interface displayed in the floating window of the second type is a reduced application interface.
  • the second-type floating window can be displayed on the system main interface, the upper layer of the full-screen application interface, or the upper layer of the split-screen application interface, and supports the simultaneous display of two or more second-type floating windows.
  • the first type of floating window and the second type of floating window support simultaneous display.
  • the second-type floating window supports movement and size adjustment, that is, the user can change the display position or display size of the second-type floating window as required.
  • the user first uses the taxi application to take a taxi, and the terminal displays the taxi interface 11 in full screen at this time; while waiting for the arrival of the vehicle, the user switches the taxi application to the background, and opens the news reading application for news. reading, the terminal displays the news reading interface 12 in full screen at this time; in the process of reading news, when the user needs to check the current position of the vehicle, the user needs to switch the news reading application to the background through the multitasking function, and switch the taxi application to the foreground again (you can The front-end and back-end switching is realized through the multi-task interface). At this time, the terminal displays the taxi-hailing interface 11 in full screen again.
  • the embodiment of the present application provides an application interface switching method.
  • the terminal can display the first application interface that has switching requirements in the first display mode, and the user performs the switching in the second application interface (using the second display mode).
  • the application information in the first application interface can be viewed at the same time; when the user needs to perform in-application operations on the first application interface, the user can trigger the terminal to switch the first application interface by performing an interface switching operation on the first application interface Unlike the interface display mode of the second application, the first application interface is displayed in a larger display area, which is convenient for users to operate in the first application interface; at the same time, since the second application interface is still displayed in the first display mode, therefore After completing the operation on the first application interface, the user can switch the interface display modes of the second application interface and the first application interface again by performing an interface switching operation on the second application interface, thereby realizing efficient switching between applications.
  • the application interface switching method provided in the embodiment of the present application can be used for a terminal with a touch-sensitive display screen, and the terminal can be a smart phone, a tablet computer, a digital player, a smart wearable device, or a personal computer, etc.
  • the terminal can be a smart phone, a tablet computer, a digital player, a smart wearable device, or a personal computer, etc.
  • the example does not limit this.
  • FIG. 2 shows a method flowchart of an application interface switching method provided by an exemplary embodiment of the present application.
  • the method may include the following steps.
  • Step 201 displaying a first application interface in a first display manner.
  • the first display mode is a display mode other than full-screen display, such as floating window display, split-screen display, and the like.
  • the first application interface is a real-time application interface, that is, changes of interface elements within the application are displayed in the first application interface in real time.
  • the first application interface is a navigation interface
  • the display position of the navigation object in the navigation interface map will change in real time during the movement of the navigation object.
  • the terminal displays the taxi-hailing interface of the taxi-hailing application in the first-type floating window 31 .
  • the display position and display size of the first application interface can be adjusted according to requirements.
  • the user can change the display position of the first application interface by performing a drag operation on the first application interface, and can change the display size of the first application interface by performing a stretching operation on the interface edge of the first application interface.
  • Step 202 Receive an interface switching operation on the first application interface, where the interface switching operation is used to trigger switching of the interface display mode of the application interface.
  • the interface switching operation may be a preset touch operation such as a single-click operation, a double-click operation, a pressing operation, a long-pressing operation, etc.; or, the interface switching operation may be a preset gesture operation; or, the interface switching operation may be a preset touch operation. It is a triggering operation for the interface switching control corresponding to the first application interface, and the embodiment of the present application does not limit the operation type of the interface switching operation.
  • the interface switching operation is used to trigger switching of the interface display mode of the first application interface, and after the interface display mode is switched, the interface size of the first application interface is larger than the interface size before the interface display mode is switched.
  • the terminal when receiving a double-click operation on the taxi interface in the floating window 31 of the first type, the terminal determines that an interface switching operation is received.
  • Step 203 when there is a second application interface displayed through the second display mode, in response to the interface switching operation, display the second application interface through the first display mode, and display the first application interface through the second display mode, wherein the The interface size of the application interface displayed in the first display mode is smaller than the interface size of the application interface displayed in the second display mode.
  • the terminal after receiving the interface switching operation, the terminal detects whether there is a second application interface displayed in the second display mode, and if so, switches the interface display modes of the second application interface and the first application interface .
  • the second application interface displayed in the second display mode is in the foreground display state, that is, before and after switching the interface display mode, both the first application interface and the second application interface are displayed at the same time, and the interface size of the second application interface is larger than that of the first application interface.
  • the interface size of the application interface is a possible implementation manner, after receiving the interface switching operation, the terminal detects whether there is a second application interface displayed in the second display mode, and if so, switches the interface display modes of the second application interface and the first application interface .
  • the second application interface displayed in the second display mode is in the foreground display state, that is, before and after switching the interface display mode, both the first application interface and the second application interface are displayed at the same time, and the interface size of the second application interface is larger than that of the first application interface.
  • the second application interface needs to support the first display mode
  • the first application interface needs to support the second display mode, which is not repeated in this embodiment.
  • the terminal acquires the original display area of the second application interface, so as to display the first application interface in the original display area of the second application interface, and displays the The second application interface is displayed in the original display area of the first application interface.
  • the terminal when receiving a double-click operation on the taxi-hailing interface, the terminal determines that the news reading interface displayed in full screen is determined as the second application interface, so that the news reading interface is displayed on the first type floating window 31, And full-screen display of the taxi interface.
  • the user can realize the mutual switching between application interfaces through a simple interface switching operation. While improving the efficiency of application switching, it can avoid that the switched application process is affected by the related art. kill, causing issues that require a restart of the app.
  • the terminal when there is no second application interface displayed in the second display manner, the terminal does not respond to the interface switching operation. For example, when the first application interface is on the main interface of the system (that is, there are no other applications displayed in the foreground), the terminal does not respond to the interface switching operation, or when other application interfaces displayed in the foreground do not support the first display mode, or, When the first application interface does not support displaying the second display mode corresponding to the application in the foreground, the terminal does not respond to the interface switching operation.
  • the terminal when there is no second application interface displayed in the second display mode, the terminal performs a response other than switching the interface display mode. For example, when the first application interface is on the main interface of the system (ie, there is no other application displayed in the foreground), the terminal switches the first application interface to full-screen display according to the interface switching operation.
  • the terminal displays prompt information to prompt the user under which circumstances the interface switching can be implemented through an interface switching operation.
  • the terminal in the case where the first application interface is displayed, if there is a second application interface that adopts a different display mode from the first application interface and the interface size is larger than that of the first application interface, the user By performing an interface switching operation on the first application interface, the terminal can be triggered to switch the interface display modes of the first application interface and the second application interface, so that the user can continue to view the first application interface while viewing the first application interface in a larger display area.
  • the interface content of the second application interface helps to improve the efficiency of switching between applications in a multi-application usage scenario.
  • the second application interface is displayed by the first display mode
  • the first application interface is displayed by the second display mode
  • the target application interface is displayed in the first display mode, and the first application interface is displayed in the second display mode.
  • the first display mode is a first floating window display
  • the second display mode includes at least one of full-screen display, second floating window display, and split-screen display
  • the application interface is displayed in the first type of floating window when the first floating window is displayed, the application interface is displayed in the second type of floating window when the second floating window is displayed, and the size of the floating window of the first type of floating window is smaller than that of the second type of floating window The floating window size of the floating window.
  • the second display mode is full-screen display
  • Determining a target application interface from at least one second application interface includes:
  • Displaying the second application interface through the first display mode, and displaying the first application interface through the second display mode includes:
  • the first application interface is displayed in full screen, and the target application interface is displayed in the first type of floating window.
  • the second display mode is a second floating window display
  • Determining a target application interface from at least one second application interface includes:
  • Displaying the second application interface through the first display mode, and displaying the first application interface through the second display mode includes:
  • the first application interface is displayed in the target second type floating window, and the target application interface is displayed in the first type floating window.
  • the second display mode includes full screen display and second floating window display
  • Determining a target application interface from at least one second application interface includes:
  • the target application interface is displayed in the first display mode, and the first application interface is displayed in the second display mode, including:
  • the target application interface being the second application interface displayed in full screen, displaying the first application interface in full screen, and displaying the target application interface in the first type of floating window;
  • the target application interface being the second application interface displayed by the second floating window
  • the first application interface is displayed in the second type floating window
  • the target application interface is displayed in the first type floating window.
  • the second display mode is split-screen display
  • Determining a target application interface from at least one second application interface includes:
  • Displaying the second application interface through the first display mode, and displaying the first application interface through the second display mode includes:
  • the first application interface is displayed in the split screen area corresponding to the target application interface, and the target application interface is displayed in the first type of floating window.
  • the method further includes:
  • the first application interface is displayed in the first display mode
  • the target application interface is displayed in the second display mode.
  • the method further includes:
  • the operation time interval is greater than the interval threshold, or an interface operation on the first application interface is received within the operation time interval, in response to the interface switching operation, the first application interface is displayed in the first display mode, and the target is displayed in the second display mode application interface;
  • the candidate application interface is determined from the second application interface other than the target application interface; in response to the interface switching operation, restore Interface display mode, and the candidate application interface is displayed in the first display mode, and the first application interface is displayed in the second display mode.
  • the terminal determines the target application interface from the at least one second application interface, Therefore, in response to the interface switching operation, the target application interface is displayed in the first display mode, and the first application interface is displayed in the second display mode, so as to realize the interface display mode switching.
  • the first application interface when the first display mode adopted by the first application interface is the first floating window display, the first application interface is displayed in the first type of floating window, and correspondingly, the full screen display, the second floating window display or the split screen is displayed.
  • the displayed application interface is the second application interface that satisfies the interface switching condition.
  • the application interface when the second floating window is displayed, the application interface is displayed in the second floating window, and the floating window size of the first floating window is smaller than the floating window size of the second floating window.
  • the second application interface displayed by the terminal may include at least one of the following situations:
  • At least one floating window application interface (displayed in the second type of floating window);
  • FIG. 4 shows a method flowchart of an application interface switching method provided by another exemplary embodiment of the present application.
  • the method may include the following steps.
  • Step 401 displaying a first application interface in a floating window of the first type.
  • Step 402 Receive an interface switching operation on the first application interface.
  • steps 401 to 402 For the implementation of the foregoing steps 401 to 402, reference may be made to steps 201 to 202, and details are not described herein again in this embodiment.
  • Step 403 when there is a second application interface displayed in full screen, determine the second application interface as the target application interface.
  • a full-screen application that is, an application corresponding to the second application interface
  • the terminal determines the second application interface as the target application interface that satisfies the application interface switching condition, and then switches the first application interface and The interface display mode of the second application interface.
  • the terminal while displaying the taxi interface corresponding to the taxi application in the first type floating window 51, the terminal displays the news reading interface of the news application in full screen.
  • the terminal When receiving a double-click operation on the taxi interface, the terminal will The news reading interface is determined as the target application interface.
  • Step 404 in response to the interface switching operation, display the first application interface in full screen, and display the target application interface in the first type floating window.
  • the terminal When switching the interface display modes of the first application interface and the target application interface, the terminal displays the first application interface in full screen, and displays the target application interface in the first type floating window. After switching the interface display mode, the user can perform in-app operations in the first application interface displayed in full screen, and at the same time can view the interface content of the target application interface through the first type of floating window.
  • the terminal after receiving the double-click operation on the first-type floating window 51 , the terminal displays the taxi-hailing interface in full screen, and displays the news reading interface in the first-type floating window 51 .
  • Step 405 Receive an interface switching operation on the target application interface.
  • the user may need to perform interface switching again so as to continue to perform the in-app operation on the target application interface.
  • the user may perform an interface switching operation on the target application interface in the first display mode, thereby triggering another switching of the application interface.
  • the terminal when the terminal receives a double-click operation on the news reading interface in the first type floating window 51 , it determines that the interface display modes of the taxi-hailing interface and the news reading interface need to be switched again.
  • Step 406 in response to the interface switching operation, display the first application interface in the first type of floating window, and display the target application interface in full screen.
  • the terminal determines that the interface switching operation is used to switch the interface display modes of the first application interface and the target application interface, and then displays the first application interface on the first type floating point. window, and display the target application interface in full screen.
  • the terminal after receiving the double-click operation on the first-type floating window 51 , the terminal redisplays the taxi-hailing interface in the first-type floating window 51 , and redisplays the news reading interface in full screen.
  • the user can switch back and forth between the interface display mode of the full-screen application and the application in the first type of floating window, which improves the switching efficiency between applications.
  • FIG. 6 shows a method flowchart of an application interface switching method provided by another exemplary embodiment of the present application.
  • the method may include the following steps.
  • Step 601 displaying a first application interface in a first type of floating window.
  • Step 602 Receive an interface switching operation on the first application interface.
  • steps 601 to 602 For the implementation of the foregoing steps 601 to 602, reference may be made to steps 201 to 202, and details are not described herein again in this embodiment.
  • Step 603 when there is at least one second application interface displayed in the second type of floating window, obtain the most recent use time of the application in each second type of floating window;
  • the type floating window is determined as the target second type floating window;
  • the second application interface displayed in the target second type floating window is determined as the target application interface.
  • the terminal determines that there is a second application interface that satisfies the application interface switching condition. Further, if there is one floating window of the second type, the terminal determines the second application interface displayed in the floating window of the second type as the target application interface; if there are at least two floating windows of the second type, the terminal determines according to the preset interface. The switching logic determines the target application interface from the second application interfaces displayed by the at least two second-type floating windows.
  • FIG. 7 when the upper layer of the system main interface 71 displays a first-type floating window 72 and a second-type floating window 73, wherein the first-type floating window 72 displays a recording interface of a recording application, A taxi-hailing interface of the taxi-hailing application is displayed in the second-type floating window 73 .
  • the terminal determines the taxi-hailing interface as the target application interface.
  • the terminal acquires the most recently used applications corresponding to each second-type floating window time, and determine the time interval between the most recent use time and the current time, so that the second-type floating window corresponding to the minimum time interval is determined as the target second-type floating window, and then the second-type floating window displayed in the target second-type floating window is determined.
  • the second application interface is determined as the target application interface.
  • the most recent usage moment of the application in each second-type floating window may be obtained from the task stack, which is not limited in this embodiment of the present application.
  • the current time is 10:00:00. If there are two second-type floating windows displayed on the main interface of the system, and the most recently used times of the corresponding applications are 9:59:50 and 9:58: At 00:00, the terminal determines the floating window application whose most recent use time is 9:59:50 as the target application (the corresponding application interface is the target application interface).
  • Step 604 when there is at least one second application interface displayed in the second type of floating window, display the switching options corresponding to the second type of floating window; in response to the selection operation of the target switching option in the at least one switching option, the The second-type floating window corresponding to the target switching option is determined as the target second-type floating window; the second application interface displayed in the target second-type floating window is determined as the target application interface.
  • the terminal displays respective switching options corresponding to each second-type floating window (ie, each second application interface).
  • the switching option may be displayed at the window edge of the first type of floating window, and the switching option may be in the form of a control such as a button.
  • the embodiment of the present application does not limit the display form and display position of the switching option.
  • the terminal when receiving a selection operation for the target switching option in the at least one switching option, determines the second-type floating window corresponding to the target switching option as the target second-type floating window.
  • the system main interface 81 displays a first-type floating window 82 , a second-type floating window 83 and a second-type floating window 84 , wherein the first-type floating window 82 displays recordings.
  • the second-type floating window 83 displays a taxi-hailing interface of a taxi-hailing application
  • the second-type floating window 84 displays a navigation interface of a navigation application.
  • the terminal displays a first switching option 85 corresponding to a navigation application and a second switching option 86 corresponding to a taxi application on the left side of the first-type floating window 82. Further, when receiving the click operation on the second switching option 86, the terminal determines the taxi-hailing application as the target application.
  • the terminal may also determine the target application according to the first application (the application to which the first application interface belongs) and each second application (the second application to which the second application interface belongs) ), the second application with the highest frequency of historical application switching with the first application is determined as the target application, or the second application associated with the first application is determined as the target application, and then based on The target application determines the target application interface, which is not limited in this embodiment.
  • Step 605 in response to the interface switching operation, display the first application interface in the target second-type floating window, and display the target application interface in the first-type floating window.
  • the terminal displays the first application interface in the target second-type floating window, and displays the target application interface in the first-type floating window. It should be noted that this embodiment takes the example that the first application interface supports to be displayed in the second type of floating window. If the first application interface does not support to be displayed in the second type of floating window, the terminal does not respond to the interface switching operation. .
  • the terminal displays the recording interface in the second-type floating window 73 and the taxi-hailing interface in the first-type floating window 72 according to the interface switching operation; as shown in FIG.
  • the recording interface is displayed in the second-type floating window 83
  • the taxi-hailing interface is displayed in the first-type floating window 82 .
  • Step 606 Receive an interface switching operation on the target application interface.
  • the terminal When there is only one floating window of the second type, the terminal is about to switch the interface display modes of the first application interface and the target application interface again.
  • the terminal receives the double-click operation on the first-type floating window 72 again, it determines that the interface display modes of the taxi-hailing interface and the recording interface need to be switched again, so as to redisplay the recording interface on the first type.
  • the taxi-hailing interface is redisplayed in the second-type floating window 73 .
  • the user's interface switching operation on the floating windows of the first type may be used not only to instruct to switch back to the original interface display mode, but also to instruct to switch the interface display with other floating windows of the second type Way. Therefore, when there are at least two floating windows of the second type, after receiving the interface switching operation for the floating windows of the first type, the terminal needs to further determine the interface switching intention of the interface switching operation.
  • Step 607 If there is a second application interface other than the target application interface, obtain the operation time interval between two adjacent interface switching operations.
  • the terminal may determine the operation time interval between two adjacent interface switching operations, and then according to the length of the interval of the operation time interval and the user's response to the first application interface within the operation time interval to determine the actual switching intent of this interface switching operation.
  • the terminal records the operation time of the interface switching operation, and when receiving the interface switching operation again, determines the operation time interval from the last interface switching operation.
  • the terminal detects whether the operation time interval is greater than the interval threshold, and detects whether an interface operation on the first application interface is received within the operation time interval. If the operation time interval is greater than the interval threshold, or an interface operation on the first application interface is received within the operation time interval, the following step 608 is performed; if the operation time interval is less than the interval threshold, and no response is received within the operation time interval For the interface operation of the first application interface, the following step 609 is performed.
  • Step 608 if the operation time interval is greater than the interval threshold, or an interface operation on the first application interface is received within the operation time interval, in response to the interface switching operation, the first application interface is displayed through the first display mode, and the second display mode is used to display the first application interface. mode to display the target application interface.
  • the terminal determines that the interface switch operation received this time is used for Trigger to restore the interface display modes of the first application interface and the target application interface, so that the first application interface is redisplayed in the first type floating window, and the target application interface is redisplayed in the second type floating window.
  • the interval threshold may be 5s, 10s, or 15s, etc., which is not limited in this embodiment of the present application.
  • the system main interface 81 displays a first-type floating window 82 , a second-type floating window 83 and a second-type floating window 84 , wherein the first-type floating window 82 displays recordings.
  • the second-type floating window 83 displays a taxi-hailing interface of a taxi-hailing application
  • the second-type floating window 84 displays a navigation interface of a navigation application.
  • Step 609 if the operation time interval is less than the interval threshold, and the interface operation on the first application interface is not received within the operation time interval, determine the candidate application interface from the second application interface except the target application interface; in response to the interface switching operation, restore the interface display mode, display the candidate application interface through the first display mode, and display the first application interface through the second display mode.
  • the operation time interval is less than the interval threshold, and no interface operation for the first application interface is received within the operation time interval (that is, the interface switching operation for the first type of floating window is continuously received), it indicates that the interface display mode was switched last time It does not meet the user's expectation, so the terminal determines that the interface switching operation received this time is used to trigger the interface display mode to be switched again.
  • the terminal determines candidate application interfaces from the second application interface other than the target application interface, and restores the original interface display mode (which can be achieved by canceling the response to the last interface switching operation),
  • the first application interface is displayed in the second-type floating window corresponding to the candidate application interface
  • the candidate application interface is displayed in the first-type floating window.
  • the last adjustment of the interface display mode of the terminal does not meet expectations, so that the interface display mode is restored, and the navigation interface is displayed in the first type.
  • the recording interface is displayed in the second type of floating window 84 .
  • the terminal determines the target second-type floating window for switching the interface display mode, which helps to improve the accuracy of interface switching.
  • the terminal determines to restore the original interface display mode or switch the interface display mode again according to the operation time interval and the interface operation of the first application within the interval, which further improves the accuracy of interface switching.
  • FIG. 10 shows a method flowchart of an application interface switching method provided by another exemplary embodiment of the present application.
  • the method may include the following steps.
  • Step 1001 displaying a first application interface in a first type of floating window.
  • Step 1002 Receive an interface switching operation on the first application interface.
  • steps 1001 to 1002 For the implementation of the foregoing steps 1001 to 1002, reference may be made to steps 201 to 202, and details are not described herein again in this embodiment.
  • Step 1003 When there is a second application interface displayed in full screen and at least one second application interface displayed in the second type of floating window, determine the second application interface displayed in full screen as the target application interface.
  • the terminal determines the full-screen application as the default application for interface switching with the application in the floating window of the first type. Therefore, when a full-screen application and at least one application displayed in the floating window of the second type are displayed, , the terminal preferentially determines the full-screen application as the target application.
  • the terminal may also determine the application displayed in the second type of floating window as the default application for interface switching with the application in the first type of floating window.
  • the terminal preferentially starts from at least one first
  • the target application is determined among the applications displayed in the two-type floating window (for the method of determining the target application, reference may be made to the above-mentioned embodiment).
  • Step 1004 when there is a second application interface displayed in full screen and at least one second application interface displayed in the second type of floating window, display the respective switching options corresponding to each second application interface; In the selection operation of the switching option, the second application interface corresponding to the target switching option is determined as the target application interface.
  • the terminal displays respective switching options corresponding to each application.
  • the switching option may be displayed at the window edge of the first type of floating window, and the switching option may be in the form of a control such as a button.
  • the embodiment of the present application does not limit the display form and display position of the switching option.
  • the terminal when receiving a selection operation for a target switching option in at least one switching option, determines an application corresponding to the target switching option as a target application, and the target application may be a full-screen application or a floating-window application.
  • the terminal may also change the frequency of historical application switching with the first application according to the historical application switching records between the first application and each second application
  • the highest second application is determined as the target application, or the second application associated with the first application is determined as the target application, or the most recently used second application is determined as The target application is not limited in this embodiment.
  • Step 1005 in response to the target application interface being the second application interface displayed in full screen, display the first application interface in full screen, and display the target application interface in the first type of floating window.
  • the terminal displays the first application interface in full screen, and displays the target application interface in the first type of floating window.
  • the interface switching display mode may refer to FIG. 5 .
  • Step 1006 in response to the target application interface being the second application interface displayed by the second floating window, display the first application interface in the second type floating window, and display the target application interface in the first type floating window.
  • the terminal displays the first application interface in the second type floating window, and displays the target application interface in the first type floating window.
  • the interface switching display mode may refer to FIG. 7 .
  • Step 1007 Receive an interface switching operation on the target application interface.
  • the interface switching operation on the target application interface may instruct to restore the original interface display mode, or may instruct to reconnect with the application interface again.
  • the other second application interface is switched. Therefore, the terminal needs to further determine the intention to perform the interface switching operation again.
  • Step 1008 Obtain an operation time interval between two adjacent interface switching operations.
  • step 607 For the implementation of this step, reference may be made to step 607, which is not repeated in this embodiment again.
  • Step 1009 if the operation time interval is greater than the interval threshold, or an interface operation on the first application interface is received within the operation time interval, in response to the interface switching operation, the first application interface is displayed through the first display mode, and the second display mode is used to display the first application interface. mode to display the target application interface.
  • the terminal redisplays the first application interface in the first display mode, and redisplays the target application interface in the second display mode.
  • the terminal redisplays the target application interface in full screen
  • the terminal redisplays the target application interface in the second type of floating window.
  • Step 1010 if the operation time interval is less than the interval threshold, and the interface operation on the first application interface is not received within the operation time interval, determine the candidate application interface from the second application interface except the target application interface; in response to the interface switching operation, restore the interface display mode, display the candidate application interface through the first display mode, and display the first application interface through the second display mode.
  • the terminal cancels the response to the last interface switching operation, and switches the interface display modes of the first application interface and the candidate application interface.
  • the terminal displays a full-screen application 1101, a first-type floating window 1102, and a second-type floating window 1103, wherein the full-screen application 1101 is a taxi-hailing application, and the first-type floating window 1102
  • the recording interface of the recording application is displayed in the
  • the navigation interface of the navigation application is displayed in the second type floating window 1103 .
  • the terminal determines the full-screen application 1101 as the target application, thereby displaying the taxi-hailing interface in the first-type floating window 1102, and displaying the recording interface in full-screen.
  • the terminal cancels the last interface switching operation, displays the recording interface in the second type floating window 1103, and displays the navigation interface in the first type floating window 1102.
  • FIG. 12 shows a method flowchart of a method for switching an application interface provided by another exemplary embodiment of the present application.
  • the method may include the following steps.
  • Step 1201 displaying a first application interface in a first type of floating window.
  • Step 1202 Receive an interface switching operation on the first application interface.
  • steps 1201 to 1202 For the implementation of the foregoing steps 1201 to 1202, reference may be made to steps 201 to 202, and details are not described herein again in this embodiment.
  • Step 1203 when there are at least two second application interfaces displayed in the split screen, determine the target split screen area where the first type of floating window is located; determine the second application interface located in the target split screen area as the target application interface.
  • the terminal obtains the first The current display area of the type floating window, so as to determine the target split screen area where the first type floating window is located according to the current display area and the split screen range of each split screen area, and then determine the second application interface located in the target split screen area. for the target application.
  • the intersection area of the first type of floating window and the target split screen area is larger than the intersection area of the first type of floating window and other split screen areas.
  • the terminal determines the split screen area other than the split screen area where the first type floating window is located as the target split screen area. screen area.
  • the terminal displays a first split-screen application 1301 and a second split-screen application 1302 in a split screen, and displays a recording application in the first type floating window 1303 .
  • the first split-screen application 1301 is a taxi-hailing application
  • the second split-screen application 1302 is a news reading application.
  • the terminal displays the split-screen area corresponding to the second split-screen application 1302. It is determined as the target split-screen area, so as to avoid blocking the recording interface after the subsequent switching interface is displayed.
  • Step 1204 when there are at least two second application interfaces displayed in a split screen, display the respective corresponding switching options of each second application interface; in response to the selection operation of the target switching option in the at least one switching option, the target switching option corresponds to The second application interface is determined as the target application interface.
  • the terminal displays the respective split-screen applications (corresponding to the second application interface) respectively.
  • corresponding toggle option when an interface switching operation is received and at least two split-screen applications are displayed, the terminal displays the respective split-screen applications (corresponding to the second application interface) respectively.
  • the switching option may be displayed at the window edge of the first type of floating window, and the switching option may be in the form of a control such as a button.
  • the embodiment of the present application does not limit the display form and display position of the switching option.
  • the terminal when receiving a selection operation for a target switching option in at least one switching option, determines the split-screen application corresponding to the target switching option as the target application, and correspondingly, the second application interface corresponding to the target application is target application interface.
  • the terminal can also determine the split-screen area with the largest display size as the target split-screen area according to the display size of the split-screen area, or, according to the historical application switching between the first application and each split-screen application Record, determine the split-screen application with the highest frequency of historical application switching with the first application as the target application, or determine the split-screen application associated with the first application as the target application, or, according to the At the most recent use time, the most recently used split-screen application is determined as the target application, which is not limited in this embodiment.
  • Step 1205 in response to the interface switching operation, display the first application interface in the split screen area corresponding to the target application interface, and display the target application interface in the first type of floating window.
  • the terminal displays the recording interface in the original split-screen area corresponding to the second split-screen application 1302 , and displays the news reading interface in the first-type floating window 1303 .
  • the first application supports split-screen display as an example for description. If the first application does not support split-screen display, the terminal does not respond to the interface switching operation.
  • Step 1206 Receive an interface switching operation on the target application interface.
  • Step 1207 Obtain an operation time interval between two adjacent interface switching operations.
  • the terminal needs to further determine the switching intention of the interface switching operation.
  • Step 1208 if the operation time interval is greater than the interval threshold, or an interface operation on the first application interface is received within the operation time interval, in response to the interface switching operation, the first application interface is displayed through the first display mode, and the second display mode is used to display the first application interface. mode to display the target application interface.
  • the terminal redisplays the first application interface in the first type floating window, and redisplays the target application interface in the original split screen area of the target application interface. application interface.
  • Step 1209 if the operation time interval is less than the interval threshold, and the interface operation on the first application interface is not received within the operation time interval, determine the candidate application interface from the second application interface except the target application interface; in response to the interface switching operation, restore the interface display mode, display the candidate application interface through the first display mode, and display the first application interface through the second display mode.
  • the terminal when it is determined that the switching intention of the interface switching operation is to reselect the split-screen application for switching, the terminal revokes the last response to the interface switching operation, and displays the first application interface in the corresponding interface of the candidate application interface. In the split screen area, the candidate application interface is displayed in the first type floating window.
  • the above-mentioned embodiment only takes the above-mentioned four cases as examples for schematic illustration.
  • the terminal may refer to the above-mentioned implementation principles Application interface switching is not repeated in this embodiment.
  • FIG. 14 shows a structural block diagram of an application interface switching apparatus provided by an embodiment of the present application.
  • the apparatus can be implemented as all or a part of the terminal through software, hardware or a combination of the two.
  • the device includes:
  • a display module 1401, configured to display a first application interface through a first display mode
  • An operation receiving module 1402 configured to receive an interface switching operation on the first application interface, where the interface switching operation is used to trigger switching of the interface display mode of the application interface;
  • the switching module 1403 is configured to display the second application interface through the first display mode and display the second application interface through the second display mode in response to the interface switching operation when there is a second application interface displayed through the second display mode.
  • the first application interface is displayed in a display mode, wherein the interface size of the application interface displayed in the first display mode is smaller than the interface size of the application interface displayed in the second display mode.
  • the switching module 1403 includes:
  • an application determination unit configured to determine a target application interface from at least one of the second application interfaces when there is at least one of the second application interfaces displayed in the second display manner;
  • a switching unit configured to display the target application interface through the first display mode and display the first application interface through the second display mode in response to the interface switching operation.
  • the first display mode is a first floating window display
  • the second display mode includes at least one of full-screen display, second floating window display, and split-screen display
  • the application interface is displayed in the first type of floating window when the first floating window is displayed, the application interface is displayed in the second type of floating window when the second floating window is displayed, and the size of the floating window of the first type of floating window is smaller than that of the second type of floating window The floating window size of the floating window.
  • the second display mode is full-screen display
  • the application determination unit is used for:
  • the switching unit is used for:
  • the first application interface is displayed in full screen, and the target application interface is displayed in the first type of floating window.
  • the second display mode is a second floating window display
  • the application determination unit is used for:
  • the switching unit is used for:
  • the first application interface is displayed in the target second-type floating window, and the target application interface is displayed in the first-type floating window.
  • the second display mode includes full screen display and second floating window display
  • the application determination unit is used for:
  • the switching unit is used for:
  • the target application interface being the second application interface displayed in full screen, displaying the first application interface in full screen, and displaying the target application interface in the first type floating window;
  • the first application interface is displayed in the second type floating window, and all the above are displayed in the first type floating window. Describe the target application interface.
  • the second display mode is split-screen display
  • the application determination unit is used for:
  • the switching unit is used for:
  • the first application interface is displayed in the split screen area corresponding to the target application interface, and the target application interface is displayed in the first type floating window.
  • the operation receiving module 1402 is configured to receive the interface switching operation on the target application interface
  • the device also includes:
  • a restoring module configured to display the first application interface through the first display mode in response to the interface switching operation when the second application interface other than the target application interface does not exist, and display the first application interface through the The second display mode displays the target application interface.
  • the device further includes:
  • An interval acquisition module configured to respond to the interface switching operation through the first application interface if the operation time interval is greater than an interval threshold, or if an interface operation on the first application interface is received within the operation time interval Displaying the first application interface in a display mode, and displaying the target application interface in the second display mode;
  • the restoration module is further configured to display the first application interface on the in the first type floating window, and display the target application interface in the original display area;
  • the switching module 1403 is further configured to, in response to the operation time interval being less than the interval threshold, and no interface operation on the first application interface is received within the operation time interval, remove the target application from the target application.
  • a candidate application interface is determined in the second application interface other than the interface; in response to the interface switching operation, the interface display mode is restored, and the candidate application interface is displayed through the first display mode, and the second display mode is used to display the candidate application interface.
  • the first application interface is displayed.
  • the terminal in the case where the first application interface is displayed, if there is a second application interface that adopts a different display mode from the first application interface and the interface size is larger than that of the first application interface, the user By performing an interface switching operation on the first application interface, the terminal can be triggered to switch the interface display modes of the first application interface and the second application interface, so that the user can continue to view the first application interface while viewing the first application interface in a larger display area.
  • the interface content of the second application interface helps to improve the efficiency of switching between applications in a multi-application usage scenario.
  • FIG. 15 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the terminal in this application may include one or more of the following components: a processor 1510 and a memory 1520 .
  • Processor 1510 may include one or more processing cores.
  • the processor 1510 uses various interfaces and lines to connect various parts in the entire terminal, and executes the terminal's operation by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1520, and calling the data stored in the memory 1520.
  • Various functions and processing data may be adopted at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 1510 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), and a modem, etc.
  • a central processing unit Central Processing Unit, CPU
  • a graphics processor Graphics Processing Unit, GPU
  • a neural network processor Neural-network Processing Unit, NPU
  • a modem etc.
  • the CPU mainly handles the operating system, user interface, and applications
  • the GPU is used to render and draw the content that needs to be displayed on the touch screen
  • the NPU is used to implement artificial intelligence (AI) functions
  • the modem is used to process Wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1510, but is implemented by a single chip.
  • the memory 1520 may include a random access memory (Random Access Memory, RAM), or may include a read-only memory (Read-Only Memory, ROM).
  • the memory 1520 includes a non-transitory computer-readable storage medium.
  • Memory 1520 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like used to implement the following various method embodiments; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal.
  • the terminal in this embodiment of the present application further includes a display screen 1530 .
  • the display screen 1530 is used for image display, which may be a full screen, a special-shaped screen, a curved screen, a folding screen, or a double-sided screen, which is not limited in this embodiment of the present application.
  • the display screen 1530 may also have a touch function, and the user may perform touch operations on elements in the interface with a finger or a stylus.
  • the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the drawings, or combine certain components, Or a different component arrangement.
  • the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a speaker, a microphone, and a power supply, which will not be repeated here.
  • Embodiments of the present application further provide a computer-readable storage medium, where the storage medium stores at least one instruction, and at least one instruction is used to be executed by a processor to implement the application interface switching method described in the foregoing embodiments.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the application interface switching method provided in the foregoing embodiment.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

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

Abstract

一种应用界面切换方法、装置、终端及存储介质,属于终端技术领域,该方法包括:通过第一显示方式显示第一应用界面(201);接收对第一应用界面的界面切换操作,界面切换操作用于触发切换应用界面的界面显示方式(202);当存在通过第二显示方式显示的第二应用界面时,响应于界面切换操作,通过第一显示方式显示第二应用界面,并通过第二显示方式显示第一应用界面,其中,通过第一显示方式显示的应用界面的界面尺寸小于通过第二显示方式显示的应用界面的界面尺寸(203)。采用上述方法、装置、终端及存储介质有助于提高多应用使用场景下进行应用间切换的效率。

Description

应用界面切换方法、装置、终端及存储介质
本申请要求于2020年07月23日提交的申请号为202010719533.0、发明名称为“应用界面切换方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,特别涉及一种应用界面切换方法、装置、终端及存储介质。
背景技术
随着终端技术的不断发展,终端中安装的应用程序越来越多,用户在使用应用程序的过程中,经常需要在应用程序间进行切换。
比如,用户首先使用当打车应用打车,并在等待车辆达到过程中,切换使用新闻阅读应用进行浏览,在浏览过程中,新闻阅读应用位于前台,而打车应用则被切换至后台运行。在浏览过程中,当用户需要查看车辆具体位置时,需要重新将打车应用切换至前台,并将新闻阅读应用切换至后台运行。
发明内容
本申请实施例提供了一种应用界面切换方法、装置、终端及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种应用界面切换方法,所述方法包括:
通过第一显示方式显示第一应用界面;
接收对所述第一应用界面的界面切换操作,所述界面切换操作用于触发切换应用界面的界面显示方式;
当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,其中,通过所述第一显示方式显示的应用界面的界面尺寸小于通过所述第二显示方式显示的应用界面的界面尺寸。
另一方面,本申请实施例提供了一种应用界面切换装置,所述装置包括:
显示模块,用于通过第一显示方式显示第一应用界面;
操作接收模块,用于接收对所述第一应用界面的界面切换操作,所述界面切换操作用于触发切换应用界面的界面显示方式;
切换模块,用于当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,其中,通过所述第一显示方式显示的应用界面的界面尺寸小于通过所述第二显示方式显示的应用界面的界面尺寸。
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的应用界面切换方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的应用界面切换方法。
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的应用界面切换方法。
附图说明
图1是相关技术中应用切换过程的界面示意图;
图2示出了本申请一个示例性实施例提供的应用界面切换方法的方法流程图;
图3是一个示例性实施例示出的应用界面切换过程的界面示意图;
图4示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图;
图5是图4所示应用界面切换方法中一个示例性实施例示出的应用界面切换过程的界面示意图;
图6示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图;
图7至图9是图4所示应用界面切换方法中示例性实施例示出的应用界面切换过程的界面示意图;
图10示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图;
图11是图10所示应用界面切换方法中一个示例性实施例示出的应用界面切换过程的界面示意图;
图12示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图;
图13是图12所示应用界面切换方法中一个示例性实施例示出的应用界面切换过程的界面示意图;
图14示出了本申请一个实施例提供的应用界面切换装置的结构框图;
图15示出了本申请一个示例性实施例提供的终端的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
为了方便理解,首先对本申请实施例中涉及的名词进行说明。
第一类型浮窗:一种用于展示应用界面的浮窗。可选的,第一类型浮窗中显示的应用界面为缩小后的应用界面,其中包含应用界面内所有界面元素;或者,第一类型浮窗中显示应用界面内的核心界面元素,该核心界面元素由应用预先设置。
比如,对于打车类应用,终端对全屏显示状态下的打车界面进行等比例缩小,从而将缩小后的打车界面显示在第一类型浮窗中;对于录音类应用,终端提取录音界面中的录音时长以及录音控件(即核心界面元素),从而仅在第一类型浮窗中显示录音时长和录音控件。
由于该浮窗的默认尺寸通常较小,因此在一些可能的实施方式中,第一类型浮窗仅用于应用界面展示,无法响应对所展示应用界面的应用内操作。在另一些可能的实施方式中,第一类型浮窗除了用于应用界面展示外,还支持响应应用内操作。比如,当第一类型浮窗中显示应用界面内的核心界面元素时,能够响应对核心界面元素的触控操作。
在一些实施例中,第一类型浮窗可以显示在系统主界面、全屏应用界面上层或分屏应用界面上层,且支持同时显示两个或两个以上第一类型浮窗。此外,第一类型浮窗支持移动以及尺寸调整,即用户可以根据需求改变第一类型浮窗的显示位置或显示尺寸。
第二类型浮窗:一种用于展示应用界面的浮窗。相较于第一类型浮窗,第二类型浮窗的默认尺寸较大。可选的,第二类型浮窗除了用于应用界面展示外,还支持对所展示应用界面的应用内操作进行响应。比如,当第二类型浮窗内显示新闻阅读类应用的新闻阅读界面时,用户可以通过滑动操作上滑或下滑新闻阅读界面;当第二类型浮窗内显示录音类应用的录音界面时,用户可以通过点击录音界面中的录音控件控制录音进度。可选的,第二类型浮窗中显示的应用界面为缩小后的应用界面。
在一些实施例中,第二类型浮窗可以显示在系统主界面、全屏应用界面上层或分屏应用界面上层,且支持同时显示两个或两个以上第二类型浮窗。本申请实施例中,第一类型浮窗和第二类型浮窗支持同时显示。此外,第二类型浮窗支持移动以及尺寸调整,即用户可以根据需求改变第二类型浮窗的显示位置或显示尺寸。
相关技术中,通过借助多任务切换功能实现多应用间切换。示意性的,如图1所示,用户首先使用打车应用进行打车,此时终端全屏显示打车界面11;在等待车辆到达的过程中,用户将打车应用切换至后台,并开启新闻阅读应用进行新闻阅读,此时终端全屏显示新闻阅读界面12;在阅读新闻过程中,当需要查看车辆当前位置时,用户需要通过多任务功能将新闻阅读应用切换至后台,并重新将打车应用切换至前台(可以通过多任务界面实现前后台切换),此时终端再次全屏显示打车界面11。
显然,采用上述方式实现应用间切换时,由于终端仅能够同时全屏显示单一应用的应用界面,用户无法同时查看切换前后应用界面内的应用信息,因此需要频繁进行前后台应用切换,应用切换效率较低。
本申请实施例提供了一种应用界面切换方法,采用该方法后,终端可以通过第一显示方式显示存在切换需求的第一应用界面,用户在第二应用界面(采用第二显示方式)中进行操作的过程中,可以同时查看第一应用界面内的应用信息;当用户需要对第一应用界面进行应用内操作时,可以通过对第一应用界面执行界面切换操作,触发终端切换第一应用界面与第二应用的界面显示方式,将第一应用界面显示在更大尺寸的显示区域,方便用户在第一应用界面内进行操作;同时,由于第二应用界面仍旧采用第一显示方式显示,因此用户在完成对第一应用界面的操作后,可以通过对第二应用界面执行界面切换操作,再次切换第二应用界面与第一应用界面的界面显示方式,从而实现高效的应用间切换。
本申请实施例提供的应用界面切换方法,可以用于具有触控显示屏的终端,该终端可以是智能手机、平板电脑、数码播放器、智能可穿戴式设备或个人计算机等等,本申请实施例对此不作限定。
请参考图2,其示出了本申请一个示例性实施例提供的应用界面切换方法的方法流程图。该方法可以包括如下步骤。
步骤201,通过第一显示方式显示第一应用界面。
在一些实施例中,第一显示方式是全屏显示之外的显示方式,比如浮窗显示、分屏显示等等。
本申请实施例中,第一应用界面是实时应用界面,即应用内界面元素的变化均会实时展现在第一应用界面中。比如,当第一应用界面为导航界面时,导航对象移动过程中,其在导航界面地图中的显示位置会实时发生变化。
示意性的,如图3所示,终端将打车应用的打车界面显示在第一类型浮窗31中。
需要说明的是,第一应用界面的显示位置和显示尺寸可以根据需求进行调整。比如,用户可以通过对第一应用界面执行拖动操作以改变第一应用界面的显示位置,可以通过对第一应用界面的界面边缘执行拉伸操作以改变第一应用界面的显示尺寸。
步骤202,接收对第一应用界面的界面切换操作,界面切换操作用于触发切换应用界面的界面显示方式。
可选的,该界面切换操作可以是单击操作、双击操作、按压操作、长按操作等预设触控操作;或者,该界面切换操作可以是预设手势操作;或者,该界面切换操作可以是对第一应用界面对应界面切换控件的触发操作,本申请实施例并不对界面切换操作的操作类型进行限定。
本申请实施例中,该界面切换操作用于触发切换第一应用界面的界面显示方式,且切换界面显示方式后,第一应用界面的界面尺寸大于切换界面显示方式之前的界面尺寸。
示意性的,如图3所示,当接收到对第一类型浮窗31中打车界面的双击操作时,终端确定接收到界面切换操作。
步骤203,当存在通过第二显示方式显示的第二应用界面时,响应于界面切换操作,通过第一显示方式显示第二应用界面,并通过第二显示方式显示第一应用界面,其中,通过第一显示方式显示的应用界面的界面尺寸小于通过第二显示方式显示的应用界面的界面尺寸。
在一种可能的实施方式中,终端接收到界面切换操作后,检测是否存在采用第二显示方式显示的第二应用界面,若存在,则切换第二应用界面和第一应用界面的界面显示方式。其中,采用第二显示方式显示的第二应用界面为处于前台显示状态,即切换界面显示方式前后,第一应用界面和第二应用界面均同时显示,且第二应用界面的界面尺寸大于第一应用界面的界面尺寸。
当然,第二应用界面需要支持第一显示方式,且第一应用界面需要支持第二显示方式,本实施例在此不再赘述。
关于切换第一应用界面和第二应用界面的方式,在一些实施例中,终端获取第二应用界面的原始显示区域,从而将第一应用界面显示在第二应用界面的原始显示区域,并将第二应用界面显示在第一应用界面的原始显示区域。
示意性的,如图3所示,当接收到对打车界面的双击操作时,终端确定全屏显示的新闻阅读界面确定为第二应用界面,从而将新闻阅读界面显示在第一类型浮窗31,并对打车界面进行全屏显示。
显然,采用本申请实施例提供的方案,用户通过简单的界面切换操作,即可实现应用界面之间的相互切换,在提高应用切换效率的同时,能够避免相关技术中,被切换的应用进程被杀死,导致需要重新启动应用的问题。
在一种可能的实施方式中,当不存在通过第二显示方式显示的第二应用界面时,终端不响应该界面切换操作。比如,当第一应用界面在系统主界面(即不存在前台显示的其他应用)时,终端不响应该界面切换操作,或者,当前台显示的其他应用界面不支持第一显示方式时,或,第一应用界面不支持在前台显示应用对应的第二显示方式时,终端不响应该界面切换操作。
在其他可能的实施方式中,当不存在通过第二显示方式显示的第二应用界面时,终端进行界面显示方式切换以外的响应。比如,当第一应用界面在系统主界面(即不存在前台显示的其他应用)时,终端根据界面切换操作,将第一应用界面切换为全屏显示。
可选的,当不存在通过第二显示方式显示的第二应用界面时,终端显示提示信息,提示用户在何种情况下可以通过界面切换操作实现界面切换。
综上所述,本申请实施例中,在显示有第一应用界面的情况下,若存在与第一应用界面采用不同显示方式,且界面尺寸大于第一应用界面的第二应用界面时,用户可以通过对第一应用界面执行界面切换操作,触发终端对第一应用界面和第二应用界面的界面显示方式进行切换,使用户在更大显示区域查看第一应用界面的同时,能够继续查看第二应用界面的界面内容,有助于提高多应用使用场景下进行应用间切换的效率。
可选的,当存在通过第二显示方式显示的第二应用界面时,响应于界面切换操作,通过第一显示方式 显示第二应用界面,并通过第二显示方式显示第一应用界面,包括:
当存在至少一个通过第二显示方式显示的第二应用界面时,从至少一个第二应用界面中确定目标应用界面;
响应于界面切换操作,通过第一显示方式显示目标应用界面,并通过第二显示方式显示第一应用界面。
可选的,第一显示方式为第一浮窗显示,第二显示方式包括全屏显示、第二浮窗显示和分屏显示中的至少一种;
其中,第一浮窗显示时应用界面显示在第一类型浮窗中,第二浮窗显示时应用界面显示在第二类型浮窗中,且第一类型浮窗的浮窗尺寸小于第二类型浮窗的浮窗尺寸。
可选的,第二显示方式为全屏显示;
从至少一个第二应用界面中确定目标应用界面,包括:
将全屏显示的第二应用界面确定为目标应用界面;
通过第一显示方式显示第二应用界面,并通过第二显示方式显示第一应用界面,包括:
全屏显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
可选的,第二显示方式为第二浮窗显示;
从至少一个第二应用界面中确定目标应用界面,包括:
获取各个第二类型浮窗中应用的最近使用时刻;将最近使用时刻与当前时刻之间间隔最小的第二类型浮窗确定为目标第二类型浮窗;将目标第二类型浮窗中显示的第二应用界面确定为目标应用界面;或,
显示第二类型浮窗各自对应的切换选项;响应于对至少一个切换选项中目标切换选项的选择操作,将目标切换选项对应的第二类型浮窗确定为目标第二类型浮窗;将目标第二类型浮窗中显示的第二应用界面确定为目标应用界面;
通过所述第一显示方式显示第二应用界面,并通过第二显示方式显示第一应用界面,包括:
在目标第二类型浮窗中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
可选的,第二显示方式包括全屏显示和第二浮窗显示;
从至少一个第二应用界面中确定目标应用界面,包括:
将全屏显示的第二应用界面确定为目标应用界面;或,
显示各个第二应用界面各自对应的切换选项;响应于对切换选项中目标切换选项的选择操作,将目标切换选项对应的第二应用界面确定为目标应用界面;
通过第一显示方式显示目标应用界面,并通过第二显示方式显示第一应用界面,包括:
响应于目标应用界面为全屏显示的第二应用界面,全屏显示第一应用界面,并在第一类型浮窗中显示目标应用界面;
响应于目标应用界面为第二浮窗显示的第二应用界面,在第二类型浮窗中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
可选的,第二显示方式为分屏显示;
从至少一个第二应用界面中确定目标应用界面,包括:
确定第一类型浮窗所处的目标分屏区域;将位于目标分屏区域的第二应用界面确定为目标应用界面;或,
显示各个第二应用界面各自对应的切换选项;响应于对至少一个切换选项中目标切换选项的选择操作,将目标切换选项对应的第二应用界面确定为目标应用界面;
通过第一显示方式显示第二应用界面,并通过第二显示方式显示第一应用界面,包括:
在目标应用界面对应的分屏区域中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
可选的,通过第一显示方式显示目标应用界面,并通过第二显示方式显示第一应用界面之后,方法还包括:
接收对目标应用界面的界面切换操作;
当不存在目标应用界面以外的第二应用界面时,响应于界面切换操作,通过第一显示方式显示第一应用界面,并通过第二显示方式显示目标应用界面。
可选的,接收对目标应用界面的界面切换操作之后,方法还包括:
当存在目标应用界面以外的第二应用界面时,获取相邻两次界面切换操作之间的操作时间间隔;
若操作时间间隔大于间隔阈值,或在操作时间间隔内接收到对第一应用界面的界面操作,响应于界面切换操作,通过第一显示方式显示第一应用界面,并通过第二显示方式显示目标应用界面;
若操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作,从除目标应用界面以外的第二应用界面中确定候选应用界面;响应于界面切换操作,还原界面显示方式,并通过第一显示方式显示候选应用界面,通过第二显示方式显示第一应用界面。
在一种可能的实施方式中,在显示第一应用界面的同时,当存在至少一个通过第二显示方式显示的第二应用界面时,终端从至少一个第二应用界面中确定出目标应用界面,从而响应于该界面切换操作,通过第一显示方式显示目标应用界面,并通过第二显示方式显示第一应用界面,实现界面显示方式切换。
可选的,当第一应用界面采用的第一显示方式为第一浮窗显示时,第一应用界面显示在第一类型浮窗中,相应的,全屏显示、第二浮窗显示或分屏显示的应用界面为满足界面切换条件的第二应用界面。其中,第二浮窗显示时应用界面显示在第二类型浮窗中,且第一类型浮窗的浮窗尺寸小于第二类型浮窗的浮窗尺寸。
在一些实施例中,终端显示的第二应用界面可以包括如下情况中的至少一种:
1、全屏应用界面;
2、至少一个浮窗应用界面(显示在第二类型浮窗中);
3、全屏应用界面以及至少一个浮窗应用界面;
4、至少两个分屏应用界面。
下面通过示意性的实施例,对上述各种情况下,确定目标应用界面以及切换界面显示方式的过程进行说明。
请参考图4,其示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图。该方法可以包括如下步骤。
步骤401,在第一类型浮窗中显示第一应用界面。
步骤402,接收对第一应用界面的界面切换操作。
上述步骤401至402的实施方式可以参考步骤201至202,本实施例在此不再赘述。
步骤403,当存在全屏显示的第二应用界面时,将第二应用界面确定为目标应用界面。
在显示第一应用界面的同时,显示有全屏应用(即第二应用界面对应的应用),终端将该第二应用界面确定为满足应用界面切换条件的目标应用界面,进而切换第一应用界面以及第二应用界面的界面显示方式。
示意性的,如图5所示,终端在第一类型浮窗51中显示打车应用对应打车界面的同时,全屏显示新闻应用的新闻阅读界面,当接收到对打车界面的双击操作时,终端将新闻阅读界面确定为目标应用界面。
步骤404,响应于界面切换操作,全屏显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
在切换第一应用界面和目标应用界面的界面显示方式时,终端即全屏显示第一应用界面,并将目标应用界面显示在第一类型浮窗中。切换界面显示方式后,用户可以在全屏显示的第一应用界面中进行应用内操作,同时可以通过第一类型浮窗查看目标应用界面的界面内容。
示意性的,如图5所示,终端接收到对第一类型浮窗51的双击操作后,将打车界面全屏显示,并将新闻阅读界面显示在第一类型浮窗51中。
步骤405,接收对目标应用界面的界面切换操作。
用户完成第一应用界面查看或完成对第一应用界面的应用内操作后,可能需要重新进行界面切换,以便继续对目标应用界面进行应用内操作。此时,用户可以对第一显示方式下的目标应用界面进行界面切换操作,以此触发应用界面的再次切换。
示意性的,如图5所示,终端接收到对第一类型浮窗51中新闻阅读界面的双击操作时,确定需要再次切换打车界面以及新闻阅读界面的界面显示方式。
步骤406,响应于界面切换操作,将第一应用界面显示在第一类型浮窗中,并全屏显示目标应用界面。
由于不存在除目标应用界面以外的其它第二应用界面,因此终端确定该界面切换操作用于切换第一应用界面与目标应用界面的界面显示方式,进而将第一应用界面显示在第一类型浮窗中,并全屏显示目标应用界面。
示意性的,如图5所示,终端接收到对第一类型浮窗51的双击操作后,重新将打车界面显示在第一类型浮窗51中,并重新全屏显示新闻阅读界面。
通过对第一类型浮窗的界面切换操作,用户可以来回切换全屏应用和第一类型浮窗内应用的界面显示方式,提高了应用间的切换效率。
请参考图6,其示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图。该方法可以包括如下步骤。
步骤601,在第一类型浮窗中显示第一应用界面。
步骤602,接收对第一应用界面的界面切换操作。
上述步骤601至602的实施方式可以参考步骤201至202,本实施例在此不再赘述。
步骤603,当存在至少一个显示在第二类型浮窗中的第二应用界面时,获取各个第二类型浮窗中应用的最近使用时刻;将最近使用时刻与当前时刻之间间隔最小的第二类型浮窗确定为目标第二类型浮窗;将目标第二类型浮窗中显示的第二应用界面确定为目标应用界面。
在一种可能的实施方式中,若在显示第一类型浮窗的同时,显示有至少一个第二类型浮窗,终端确定存在满足应用界面切换条件的第二应用界面。进一步的,若存在一个第二类型浮窗,终端将该第二类型浮窗中显示的第二应用界面确定为目标应用界面;若存在至少两个第二类型浮窗,终端则根据预设界面切换逻辑,从至少两个第二类型浮窗显示的第二应用界面中,确定出目标应用界面。
示意性的,如图7所示,当系统主界面71的上层显示有第一类型浮窗72以及第二类型浮窗73,其中,第一类型浮窗72中显示有录音应用的录音界面,第二类型浮窗73中显示有打车应用的打车界面。当接收到对第一类型浮窗72的双击操作时,终端将打车界面确定为目标应用界面。
在一种可能的实施方式中,由于用户通常在最近使用的两个应用之间进行切换,因此当存在至少两个第二类型浮窗时,终端获取各个第二类型浮窗对应应用的最近使用时刻,并确定最近使用时刻与当前时刻之间的时间间隔,从而将最小时间间隔对应的第二类型浮窗确定为目标第二类型浮窗,进而将该目标第二类型浮窗中显示的第二应用界面确定为目标应用界面。其中,各个第二类型浮窗中应用的最近使用时刻可以从任务栈中获取,本申请实施例并不对此进行限定。
在一个示例性例子中,当前时刻为10:00:00,若系统主界面上显示有两个第二类型浮窗,且对应应用的最近使用时刻分别为9:59:50以及9:58:00时,终端将最近使用时刻为9:59:50的浮窗应用确定为目标应用(其对应的应用界面即为目标应用界面)。
步骤604,当存在至少一个显示在第二类型浮窗中的第二应用界面时,显示第二类型浮窗各自对应的切换选项;响应于对至少一个切换选项中目标切换选项的选择操作,将目标切换选项对应的第二类型浮窗确定为目标第二类型浮窗;将目标第二类型浮窗中显示的第二应用界面确定为目标应用界面。
除了以最近使用时刻为依据确定目标应用界面外,为了进一步提高应用切换的准确性,在一种可能的实施方式中,当接收到界面切换操作,且显示有至少一个第二类型浮窗时,终端显示各个第二类型浮窗(即各个第二应用界面)各自对应的切换选项。其中,该切换选项可以显示在第一类型浮窗的窗口边缘,且该切换选项可以采用按钮等控件形式,本申请实施例对切换选项的展现形式以及显示位置不作限定。
相应的,当接收到对至少一个切换选项中目标切换选项的选择操作时,终端将该目标切换选项对应的第二类型浮窗确定为目标第二类型浮窗。
示意性的,如图8所示,系统主界面81上显示有第一类型浮窗82、第二类型浮窗83以及第二类型浮窗84,其中,第一类型浮窗82中显示有录音应用的录音界面,第二类型浮窗83中显示有打车应用的打车界面,第二类型浮窗84中显示有导航应用的导航界面。当接收到对第一类型浮窗82的双击操作时,终端在第一类型浮窗82左侧显示导航应用对应的第一切换选项85,以及打车应用对应的第二切换选项86。进一步的,当接收到对第二切换选项86的点击操作时,终端将打车应用确定为目标应用。
除了通过上述两种方式确定目标应用外,在其他可能的实施方式中,终端还可以根据第一应用(第一应用界面所属的应用)与各个第二应用(第二应用界面所属的第二应用)之间的历史应用切换记录,将与第一应用之间历史应用切换频次最高的第二应用确定为目标应用,或者,将与第一应用相关联的第二应用确定为目标应用,进而基于目标应用确定目标应用界面,本实施例在此不做限定。
步骤605,响应于界面切换操作,在目标第二类型浮窗中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
进一步的,终端将第一应用界面显示在目标第二类型浮窗中,并将目标应用界面显示在第一类型浮窗中。需要说明的是,本实施例以第一应用界面支持在第二类型浮窗中显示为例进行说明,若第一应用界面不支持在第二类型浮窗中显示,终端则不响应界面切换操作。
示意性的,如图7所示,终端根据界面切换操作,将录音界面显示在第二类型浮窗73中,将打车界面显示在第一类型浮窗72中;如图8所示,终端根据对切换选项的选择操作,将录音界面显示在第二类型浮窗83中,将打车界面显示在第一类型浮窗82中。
步骤606,接收对目标应用界面的界面切换操作。
本步骤的实施方式可以参考上述步骤405,本实施例在此不再赘述。
当仅存在一个第二类型浮窗时,终端即将再次切换第一应用界面和目标应用界面的界面显示方式。示意性的,如图7所示,终端再次接收到对第一类型浮窗72的双击操作时,确定需要再次切换打车界面以及录音界面的界面显示方式,从而将录音界面重新显示在第一类型浮窗72中,将打车界面重新显示在第二类型浮窗73中。
当存在至少两个第二类型浮窗时,用户对第一类型浮窗的界面切换操作除了用于指示切换回原始界面 显示方式外,还可能用于指示与其它第二类型浮窗切换界面显示方式。因此,当存在至少两个第二类型浮窗时,终端接收到对第一类型浮窗的界面切换操作后,需要进一步确定该界面切换操作的界面切换意图。
步骤607,若存在目标应用界面以外的第二应用界面,获取相邻两次界面切换操作之间的操作时间间隔。
通常情况下,当界面显示方式符合用户预期时,用户会在第一应用界面内进行应用内操作,或者,在保持当前界面显示方式一段时间后再次进行界面显示方式切换;而当界面显示方式不符合用户预期时,用户则不会在应用界面内进行应用内操作,并在短时间内再次进行界面显示方式切换。因此,在一种可能的实施方式中,终端可以确定相邻两次界面切换操作之间的操作时间间隔,进而根据该操作时间间隔的间隔长短,以及该操作时间间隔内用户对第一应用界面的操作情况,确定本次界面切换操作的实际切换意图。
可选的,每次接收到界面切换操作后,终端均会记录界面切换操作的操作时刻,并在再次接收到界面切换操作时,确定与上一次界面切换操作之间的操作时间间隔。终端检测操作时间间隔是否大于间隔阈值,并检测该操作时间间隔内是否接收到对第一应用界面的界面操作。若操作时间间隔大于间隔阈值,或在操作时间间隔内接收到对第一应用界面的界面操作,则执行下述步骤608;若操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作,则执行下述步骤609。
步骤608,若操作时间间隔大于间隔阈值,或在操作时间间隔内接收到对第一应用界面的界面操作,响应于界面切换操作,通过第一显示方式显示第一应用界面,并通过第二显示方式显示目标应用界面。
当操作时间间隔大于间隔阈值,或,在操作时间间隔内接收到对第一应用界面的界面操作时,表明上一次界面显示方式切换符合用户预期,因此终端确定本次接收到界面切换操作用于触发还原第一应用界面和目标应用界面的界面显示方式,从而重新将第一应用界面显示在第一类型浮窗中,并重新将目标应用界面显示在第二类型浮窗中。
比如,该间隔阈值可以为5s、10s或15s等等,本申请实施例对此不作限定。
示意性的,如图9所示,系统主界面81上显示有第一类型浮窗82、第二类型浮窗83以及第二类型浮窗84,其中,第一类型浮窗82中显示有录音应用的录音界面,第二类型浮窗83中显示有打车应用的打车界面,第二类型浮窗84中显示有导航应用的导航界面。当接收到对第一类型浮窗82的双击操作时,终端将打车应用确定为目标应用,从而将打车界面显示在第一类型浮窗82中,将录音界面显示在第二类型浮窗83中。完成界面切换后,用户点击录音界面中的暂停录音控件,并再次双击第一类型浮窗82。由于在相连两次界面切换操作之间对录音应用(即第一应用)进行了界面操作,因此终端根据本次接收到的界面切换操作,重新将录音界面显示在第一类型浮窗82中,重新将打车应用对应的应用界面显示在第二类型浮窗83中。
步骤609,若操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作,从除目标应用界面以外的第二应用界面中确定候选应用界面;响应于界面切换操作,还原界面显示方式,并通过第一显示方式显示候选应用界面,通过第二显示方式显示第一应用界面。
当操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作时(即连续接收到对第一类型浮窗的界面切换操作),表明上一次界面显示方式切换不符合用户预期,因此终端确定本次接收到界面切换操作用于触发再次切换界面显示方式。
在一种可能的实施方式中,终端从除目标应用界面以外的第二应用界面中确定候选应用界面,并还原至原始界面显示方式(可以通过撤销对上一次界面切换操作的响应来实现),从而将第一应用界面显示在候选应用界面对应的第二类型浮窗中,将候选应用界面显示在第一类型浮窗中。
示意性的,如图9所示,当用户在短时间内连续双击第一类型浮窗82时,终端上一次界面显示方式调整不符合预期,从而还原界面显示方式,并将导航界面显示在第一类型浮窗82中,将录音界面显示在第二类型浮窗84中。
本实施例中,在第一类型浮窗中显示第一应用界面,且显示有至少两个第二类型浮窗时,若接收到对第一类型浮窗进行界面切换操作,根据第二类型浮窗内应用的最近使用时刻,或者,根据第二类型浮窗对应的切换选项,确定进行界面显示方式切换的目标第二类型浮窗,有助于提高界面切换的准确性;并且,当连续接收到界面切换操作时,终端根据操作时间间隔以及该间隔内对第一应用的界面操作情况,确定恢复原始界面显示方式,或再次进行界面显示方式切换,进一步提高了界面切换的准确性。
请参考图10,其示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图。该方法可以包括如下步骤。
步骤1001,在第一类型浮窗中显示第一应用界面。
步骤1002,接收对第一应用界面的界面切换操作。
上述步骤1001至1002的实施方式可以参考步骤201至202,本实施例在此不再赘述。
步骤1003,当存在全屏显示的第二应用界面,以及至少一个显示在第二类型浮窗中的第二应用界面时,将全屏显示的第二应用界面确定为目标应用界面。
在一种可能的实施方式中,终端将全屏应用确定为与第一类型浮窗中应用进行界面切换的默认应用,因此,当显示有全屏应用以及至少一个显示在第二类型浮窗中的应用时,终端优先将全屏应用确定为目标应用。
当然,在其他可能的实施方式中,终端也可以将显示在第二类型浮窗中的应用确定为与第一类型浮窗中应用进行界面切换的默认应用,相应的,终端优先从至少一个第二类型浮窗中显示的应用中确定目标应用(确定目标应用的方式可以参考上述实施例)。
步骤1004,当存在全屏显示的第二应用界面,以及至少一个显示在第二类型浮窗中的第二应用界面时,显示各个第二应用界面各自对应的切换选项;响应于对切换选项中目标切换选项的选择操作,将目标切换选项对应的第二应用界面确定为目标应用界面。
为了进一步提高应用切换的准确性,在另一种可能的实施方式中,当接收到界面切换操作,且显示有全屏应用以及至少一个浮窗应用时,终端显示各个应用各自对应的切换选项。其中,该切换选项可以显示在第一类型浮窗的窗口边缘,且该切换选项可以采用按钮等控件形式,本申请实施例对切换选项的展现形式以及显示位置不作限定。
相应的,当接收到对至少一个切换选项中目标切换选项的选择操作时,终端将该目标切换选项对应的应用确定为目标应用,该目标应用可以为全屏应用或浮窗应用。
除了通过上述两种方式确定目标应用外,在其他可能的实施方式中,终端还可以根据第一应用与各个第二应用之间的历史应用切换记录,将与第一应用之间历史应用切换频次最高的的第二应用确定为目标应用,或者,将与第一应用相关联的第二应用确定为目标应用,或者,根据各个第二应用的最近使用时刻,将最近使用的第二应用确定为目标应用,本实施例在此不做限定。
步骤1005,响应于目标应用界面为全屏显示的第二应用界面,全屏显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
当确定出的目标应用为全屏应用时,终端全屏显示第一应用界面,并将目标应用界面显示在第一类型浮窗中。其中,该界面切换显示方式可以参考图5。
步骤1006,响应于目标应用界面为第二浮窗显示的第二应用界面,在第二类型浮窗中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
当确定出的目标应用为浮窗应用时,终端即将第一应用界面显示在第二类型浮窗中,并将目标应用界面显示在第一类型浮窗。其中,该界面切换显示方式可以参考图7。
步骤1007,接收对目标应用界面的界面切换操作。
本步骤的实施方式可以参考上述步骤405,本实施例在此不再赘述。
由于存在至少两个可供切换的第二应用界面(即全屏应用和至少一个浮窗应用的应用界面),因此对目标应用界面的界面切换操作可能指示还原原始界面显示方式,也可能指示再次与其他第二应用界面进行切换。因此,终端需要进一步确定再次执行界面切换操作的意图。
步骤1008,获取相邻两次界面切换操作之间的操作时间间隔。
本步骤的实施方式可以参考步骤607,本实施例再次不在赘述。
步骤1009,若操作时间间隔大于间隔阈值,或在操作时间间隔内接收到对第一应用界面的界面操作,响应于界面切换操作,通过第一显示方式显示第一应用界面,并通过第二显示方式显示目标应用界面。
与上述步骤608相似的,终端重新通过第一显示方式显示第一应用界面,并重新通过第二显示方式显示目标应用界面。其中,当目标应用界面为全屏应用界面时,终端重新全屏显示目标应用界面,当目标应用界面为浮窗应用界面时,终端重新在第二类型浮窗中显示目标应用界面。
步骤1010,若操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作,从除目标应用界面以外的第二应用界面中确定候选应用界面;响应于界面切换操作,还原界面显示方式,并通过第一显示方式显示候选应用界面,通过第二显示方式显示第一应用界面。
与上述步骤609类似的,终端撤销对上一次界面切换操作的响应,并切换第一应用界面与候选应用界面的界面显示方式。
在一个示意性的例子中,如图11所示,终端显示有全屏应用1101、第一类型浮窗1102以及第二类型浮窗1103,其中,全屏应用1101为打车应用,第一类型浮窗1102中显示有录音应用的录音界面,第二类型浮窗1103中显示有导航应用的导航界面。当接收到对第一类型浮窗1102的双击操作时,终端将全屏应用1101确定为目标应用,从而将打车界面显示在第一类型浮窗1102中,将录音界面全屏显示。由于用户期望将录音应用显示在第二类型浮窗1103中,因此用户再次双击第一类型浮窗1102。终端接收到界面切换操作后,撤销上一次界面切换操作,并将录音界面显示在第二类型浮窗1103中,将导航界面显示在第 一类型浮窗1102中。
请参考图12,其示出了本申请另一个示例性实施例提供的应用界面切换方法的方法流程图。该方法可以包括如下步骤。
步骤1201,在第一类型浮窗中显示第一应用界面。
步骤1202,接收对第一应用界面的界面切换操作。
上述步骤1201至1202的实施方式可以参考步骤201至202,本实施例在此不再赘述。
步骤1203,当存在分屏显示的至少两个第二应用界面时,确定第一类型浮窗所处的目标分屏区域;将位于目标分屏区域的第二应用界面确定为目标应用界面。
通常情况下,在开启分屏功能时,用户通常将浮窗移动至关注程度较低的分屏区域,避免浮窗对关注程度较高的分屏区域造成遮挡。因此,在一种可能的实施方式中,当在显示至少两个分屏应用的同时,显示有第一类型浮窗,且接收到对第一类型浮窗的界面切换操作时,终端获取第一类型浮窗的当前显示区域,从而根据当前显示区域以及各个分屏区域的分屏范围,确定第一类型浮窗所处的目标分屏区域,进而将位于目标分屏区域的第二应用界面确定为目标应用。其中,第一类型浮窗与目标分屏区域的交集区域大于第一类型浮窗与其他分屏区域的交集区域。
在另一种可能的实施方式中,为了避免切换显示后,第一类型浮窗对第一应用界面在成遮挡,终端将第一类型浮窗所处分屏区域以外的分屏区域确定为目标分屏区域。
示意性的,如图13所示,终端分屏显示第一分屏应用1301、第二分屏应用1302,并在第一类型浮窗1303中显示录音应用。其中,第一分屏应用1301为打车应用,第二分屏应用1302为新闻阅读应用。当接收到对第一类型浮窗1303的双击操作时,由于第一类型浮窗1303显示在第一分屏应用1301对应的分屏区域,因此终端将第二分屏应用1302对应的分屏区域确定为目标分屏区域,以此避免后续切换界面显示后对录音界面造成遮挡。
步骤1204,当存在分屏显示的至少两个第二应用界面时,显示各个第二应用界面各自对应的切换选项;响应于对至少一个切换选项中目标切换选项的选择操作,将目标切换选项对应的第二应用界面确定为目标应用界面。
为了进一步提高应用切换的准确性,在另一种可能的实施方式中,当接收到界面切换操作,且显示至少两个分屏应用时,终端显示各个分屏应用(对应第二应用界面)各自对应的切换选项。其中,该切换选项可以显示在第一类型浮窗的窗口边缘,且该切换选项可以采用按钮等控件形式,本申请实施例对切换选项的展现形式以及显示位置不作限定。
相应的,当接收到对至少一个切换选项中目标切换选项的选择操作时,终端将该目标切换选项对应的分屏应用确定为目标应用,相应的,该目标应用对应的第二应用界面即为目标应用界面。
当然,除了上述方式外,终端还可以根据分屏区域的显示尺寸,将显示尺寸最大的分屏区域确定为目标分屏区域,或者,根据第一应用与各个分屏应用之间的历史应用切换记录,将与第一应用之间历史应用切换频次最高的的分屏应用确定为目标应用,或者,将与第一应用相关联的分屏应用确定为目标应用,或者,根据各个分屏应用的最近使用时刻,将最近使用的分屏应用确定为目标应用,本实施例对此不做限定。
步骤1205,响应于界面切换操作,在目标应用界面对应的分屏区域中显示第一应用界面,并在第一类型浮窗中显示目标应用界面。
示意性的,如图13所示,终端将录音界面显示在第二分屏应用1302对应的原始分屏区域,将新闻阅读界面显示在第一类型浮窗1303中。
需要说明的是,本实施例以第一应用支持在分屏显示为例进行说明,若第一应用不支持分屏显示,终端则不响应界面切换操作。
步骤1206,接收对目标应用界面的界面切换操作。
步骤1207,获取相邻两次界面切换操作之间的操作时间间隔。
与上述实施例类似的,由于存在至少两个分屏应用,因此终端需要进一步确定界面切换操作的切换意图。
步骤1208,若操作时间间隔大于间隔阈值,或在操作时间间隔内接收到对第一应用界面的界面操作,响应于界面切换操作,通过第一显示方式显示第一应用界面,并通过第二显示方式显示目标应用界面。
与上述实施例类似的,当确定界面切换操作的切换意图是恢复原始界面显示方式时,终端重新在第一类型浮窗中显示第一应用界面,重新在目标应用界面的原始分屏区域显示目标应用界面。
步骤1209,若操作时间间隔小于间隔阈值,且在操作时间间隔内未接收到对第一应用界面的界面操作,从除目标应用界面以外的第二应用界面中确定候选应用界面;响应于界面切换操作,还原界面显示方式,并通过第一显示方式显示候选应用界面,通过第二显示方式显示第一应用界面。
与上述实施例类似的,当确定界面切换操作的切换意图是重新选择进行切换的分屏应用时,终端撤销上一次对界面切换操作的响应,并将第一应用界面显示在候选应用界面对应的分屏区域,将候选应用界面显示在第一类型浮窗中。
需要说明的是,上述实施例仅以上述四种情况为例进行示意性说明,在其他可能情况下(比如显示有至少两个分屏应用以及至少一个浮窗应用),终端可以参考上述实现原理应用界面切换,本实施例在此不再赘述。
请参考图14,其示出了本申请一个实施例提供的应用界面切换装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:
显示模块1401,用于通过第一显示方式显示第一应用界面;
操作接收模块1402,用于接收对所述第一应用界面的界面切换操作,所述界面切换操作用于触发切换应用界面的界面显示方式;
切换模块1403,用于当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,其中,通过所述第一显示方式显示的应用界面的界面尺寸小于通过所述第二显示方式显示的应用界面的界面尺寸。
可选的,切换模块1403,包括:
应用确定单元,用于当存在至少一个通过所述第二显示方式显示的所述第二应用界面时,从至少一个所述第二应用界面中确定目标应用界面;
切换单元,用于响应于所述界面切换操作,通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面。
可选的,所述第一显示方式为第一浮窗显示,所述第二显示方式包括全屏显示、第二浮窗显示和分屏显示中的至少一种;
其中,第一浮窗显示时应用界面显示在第一类型浮窗中,第二浮窗显示时应用界面显示在第二类型浮窗中,且第一类型浮窗的浮窗尺寸小于第二类型浮窗的浮窗尺寸。
可选的,所述第二显示方式为全屏显示;
所述应用确定单元,用于:
将全屏显示的所述第二应用界面确定为所述目标应用界面;
所述切换单元,用于:
全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
可选的,所述第二显示方式为第二浮窗显示;
所述应用确定单元,用于:
获取各个所述第二类型浮窗中应用的最近使用时刻;将所述最近使用时刻与当前时刻之间间隔最小的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;或,
显示所述第二类型浮窗各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;
所述切换单元,用于:
在所述目标第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
可选的,所述第二显示方式包括全屏显示和第二浮窗显示;
所述应用确定单元,用于:
将全屏显示的所述第二应用界面确定为所述目标应用界面;或,
显示各个所述第二应用界面各自对应的切换选项;响应于对所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
所述切换单元,用于:
响应于所述目标应用界面为全屏显示的所述第二应用界面,全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面;
响应于所述目标应用界面为第二浮窗显示的所述第二应用界面,在所述第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
可选的,所述第二显示方式为分屏显示;
所述应用确定单元,用于:
确定所述第一类型浮窗所处的目标分屏区域;将位于所述目标分屏区域的所述第二应用界面确定为所 述目标应用界面;或,
显示各个所述第二应用界面各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
所述切换单元,用于:
在所述目标应用界面对应的分屏区域中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
可选的,所述操作接收模块1402,用于接收对所述目标应用界面的所述界面切换操作;
所述装置还包括:
还原模块,用于当不存在所述目标应用界面以外的所述第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面。
可选的,所述装置还包括:
间隔获取模块,用于若所述操作时间间隔大于间隔阈值,或在所述操作时间间隔内接收到对所述第一应用界面的界面操作,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面;
所述还原模块,还用于若所述操作时间间隔大于间隔阈值,或在所述操作时间间隔内接收到对所述第一应用界面的界面操作,将所述第一应用界面显示在所述第一类型浮窗中,并将所述目标应用界面显示在所述原始显示区域;
所述切换模块1403,还用于响应于所述操作时间间隔小于所述间隔阈值,且在所述操作时间间隔内未接收到对所述第一应用界面的界面操作,从除所述目标应用界面以外的所述第二应用界面中确定候选应用界面;响应于所述界面切换操作,还原界面显示方式,并通过所述第一显示方式显示所述候选应用界面,通过所述第二显示方式显示所述第一应用界面。
综上所述,本申请实施例中,在显示有第一应用界面的情况下,若存在与第一应用界面采用不同显示方式,且界面尺寸大于第一应用界面的第二应用界面时,用户可以通过对第一应用界面执行界面切换操作,触发终端对第一应用界面和第二应用界面的界面显示方式进行切换,使用户在更大显示区域查看第一应用界面的同时,能够继续查看第二应用界面的界面内容,有助于提高多应用使用场景下进行应用间切换的效率。
请参考图15,其示出了本申请一个示例性实施例提供的终端的结构方框图。本申请中的终端可以包括一个或多个如下部件:处理器1510和存储器1520。
处理器1510可以包括一个或者多个处理核心。处理器1510利用各种接口和线路连接整个终端内的各个部分,通过运行或执行存储在存储器1520内的指令、程序、代码集或指令集,以及调用存储在存储器1520内的数据,执行终端的各种功能和处理数据。可选地,处理器1510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1510可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1510中,单独通过一块芯片进行实现。
存储器1520可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1520包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1520可用于存储指令、程序、代码、代码集或指令集。存储器1520可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本)等。
本申请实施例中的终端还包括显示屏1530。其中,显示屏1530用于进行图像显示,其可以是全面屏、异形屏、曲面屏、折叠屏或者双面屏,本申请实施例对此不作限定。此外,显示屏1530还可以具有触控功能,用户可以通过手指或者触控笔对界面内元素进行触控操作。
除此之外,本领域技术人员可以理解,上述附图所示出的终端的结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端中还包括射频电路、输入单元、传感器、音频电路、扬声器、麦克风、电源等部件,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,该存储介质存储有至少一条指令,至少一条指令用 于被处理器执行以实现如上述实施例所述的应用界面切换方法。
本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例提供的应用界面切换方法。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种应用界面切换方法,其特征在于,所述方法包括:
    通过第一显示方式显示第一应用界面;
    接收对所述第一应用界面的界面切换操作,所述界面切换操作用于触发切换应用界面的界面显示方式;
    当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,其中,通过所述第一显示方式显示的应用界面的界面尺寸小于通过所述第二显示方式显示的应用界面的界面尺寸。
  2. 根据权利要求1所述的方法,其特征在于,所述当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,包括:
    当存在至少一个通过所述第二显示方式显示的所述第二应用界面时,从至少一个所述第二应用界面中确定目标应用界面;
    响应于所述界面切换操作,通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面。
  3. 根据权利要求2所述的方法,其特征在于,所述第一显示方式为第一浮窗显示,所述第二显示方式包括全屏显示、第二浮窗显示和分屏显示中的至少一种;
    其中,第一浮窗显示时应用界面显示在第一类型浮窗中,第二浮窗显示时应用界面显示在第二类型浮窗中,且第一类型浮窗的浮窗尺寸小于第二类型浮窗的浮窗尺寸。
  4. 根据权利要求3所述的方法,其特征在于,所述第二显示方式为全屏显示;
    所述从至少一个所述第二应用界面中确定目标应用界面,包括:
    将全屏显示的所述第二应用界面确定为所述目标应用界面;
    所述通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,包括:
    全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  5. 根据权利要求3所述的方法,其特征在于,所述第二显示方式为第二浮窗显示;
    所述从至少一个所述第二应用界面中确定目标应用界面,包括:
    获取各个所述第二类型浮窗中应用的最近使用时刻;将所述最近使用时刻与当前时刻之间间隔最小的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;或,
    显示所述第二类型浮窗各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;
    所述通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,包括:
    在所述目标第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  6. 根据权利要求3所述的方法,其特征在于,所述第二显示方式包括全屏显示和第二浮窗显示;
    所述从至少一个所述第二应用界面中确定目标应用界面,包括:
    将全屏显示的所述第二应用界面确定为所述目标应用界面;或,
    显示各个所述第二应用界面各自对应的切换选项;响应于对所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
    所述通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面,包括:
    响应于所述目标应用界面为全屏显示的所述第二应用界面,全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面;
    响应于所述目标应用界面为第二浮窗显示的所述第二应用界面,在所述第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  7. 根据权利要求3所述的方法,其特征在于,所述第二显示方式为分屏显示;
    所述从至少一个所述第二应用界面中确定目标应用界面,包括:
    确定所述第一类型浮窗所处的目标分屏区域;将位于所述目标分屏区域的所述第二应用界面确定为所述目标应用界面;或,
    显示各个所述第二应用界面各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
    所述通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,包括:
    在所述目标应用界面对应的分屏区域中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  8. 根据权利要求2至7任一所述的方法,其特征在于,所述通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面之后,所述方法还包括:
    接收对所述目标应用界面的所述界面切换操作;
    当不存在所述目标应用界面以外的所述第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面。
  9. 根据权利要求8所述的方法,其特征在于,所述接收对所述目标应用界面的所述界面切换操作之后,所述方法还包括:
    当存在所述目标应用界面以外的所述第二应用界面时,获取相邻两次所述界面切换操作之间的操作时间间隔;
    若所述操作时间间隔大于间隔阈值,或在所述操作时间间隔内接收到对所述第一应用界面的界面操作,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面;
    若所述操作时间间隔小于所述间隔阈值,且在所述操作时间间隔内未接收到对所述第一应用界面的界面操作,从除所述目标应用界面以外的所述第二应用界面中确定候选应用界面;响应于所述界面切换操作,还原界面显示方式,并通过所述第一显示方式显示所述候选应用界面,通过所述第二显示方式显示所述第一应用界面。
  10. 一种应用界面切换装置,其特征在于,所述装置包括:
    显示模块,用于通过第一显示方式显示第一应用界面;
    操作接收模块,用于接收对所述第一应用界面的界面切换操作,所述界面切换操作用于触发切换应用界面的界面显示方式;
    切换模块,用于当存在通过第二显示方式显示的第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第二应用界面,并通过所述第二显示方式显示所述第一应用界面,其中,通过所述第一显示方式显示的应用界面的界面尺寸小于通过所述第二显示方式显示的应用界面的界面尺寸。
  11. 根据权利要求10所述的装置,其特征在于,所述切换模块,包括:
    应用确定单元,用于当存在至少一个通过所述第二显示方式显示的所述第二应用界面时,从至少一个所述第二应用界面中确定目标应用界面;
    切换单元,用于响应于所述界面切换操作,通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面。
  12. 根据权利要求11所述的装置,其特征在于,所述第一显示方式为第一浮窗显示,所述第二显示方式包括全屏显示、第二浮窗显示和分屏显示中的至少一种;
    其中,第一浮窗显示时应用界面显示在第一类型浮窗中,第二浮窗显示时应用界面显示在第二类型浮窗中,且第一类型浮窗的浮窗尺寸小于第二类型浮窗的浮窗尺寸。
  13. 根据权利要求12所述的装置,其特征在于,所述第二显示方式为全屏显示;
    所述应用确定单元,用于:
    将全屏显示的所述第二应用界面确定为所述目标应用界面;
    所述切换单元,用于:
    全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  14. 根据权利要求12所述的装置,其特征在于,所述第二显示方式为第二浮窗显示;
    所述应用确定单元,用于:
    获取各个所述第二类型浮窗中应用的最近使用时刻;将所述最近使用时刻与当前时刻之间间隔最小的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;或,
    显示所述第二类型浮窗各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二类型浮窗确定为目标第二类型浮窗;将所述目标第二类型浮窗中显示的所述第二应用界面确定为所述目标应用界面;
    所述切换单元,用于:
    在所述目标第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  15. 根据权利要求12所述的装置,其特征在于,所述第二显示方式包括全屏显示和第二浮窗显示;
    所述应用确定单元,用于:
    将全屏显示的所述第二应用界面确定为所述目标应用界面;或,
    显示各个所述第二应用界面各自对应的切换选项;响应于对所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
    所述切换单元,用于:
    响应于所述目标应用界面为全屏显示的所述第二应用界面,全屏显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面;
    响应于所述目标应用界面为第二浮窗显示的所述第二应用界面,在所述第二类型浮窗中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  16. 根据权利要求12所述的装置,其特征在于,所述第二显示方式为分屏显示;
    所述应用确定单元,用于:
    确定所述第一类型浮窗所处的目标分屏区域;将位于所述目标分屏区域的所述第二应用界面确定为所述目标应用界面;或,
    显示各个所述第二应用界面各自对应的切换选项;响应于对至少一个所述切换选项中目标切换选项的选择操作,将所述目标切换选项对应的所述第二应用界面确定为所述目标应用界面;
    所述切换单元,用于:
    在所述目标应用界面对应的分屏区域中显示所述第一应用界面,并在所述第一类型浮窗中显示所述目标应用界面。
  17. 根据权利要求11至16任一所述的装置,其特征在于,所述通过所述第一显示方式显示所述目标应用界面,并通过所述第二显示方式显示所述第一应用界面之后,所述方法还包括:
    还原模块,用于当不存在所述目标应用界面以外的所述第二应用界面时,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面。
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:
    间隔获取模块,用于当存在所述目标应用界面以外的所述第二应用界面时,获取相邻两次所述界面切换操作之间的操作时间间隔;
    所述还原模块,还用于若所述操作时间间隔大于间隔阈值,或在所述操作时间间隔内接收到对所述第一应用界面的界面操作,响应于所述界面切换操作,通过所述第一显示方式显示所述第一应用界面,并通过所述第二显示方式显示所述目标应用界面;
    所述切换模块,还用于若所述操作时间间隔小于所述间隔阈值,且在所述操作时间间隔内未接收到对所述第一应用界面的界面操作,从除所述目标应用界面以外的所述第二应用界面中确定候选应用界面;响应于所述界面切换操作,还原界面显示方式,并通过所述第一显示方式显示所述候选应用界面,通过所述第二显示方式显示所述第一应用界面。
  19. 一种终端,其特征在于,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至9任一所述的应用界面切换方法。
  20. 一种计算机可读存储介质,其特征在于,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至9任一所述的应用界面切换方法。
PCT/CN2021/098160 2020-07-23 2021-06-03 应用界面切换方法、装置、终端及存储介质 WO2022017013A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2023503197A JP2023534305A (ja) 2020-07-23 2021-06-03 アプリケーションインターフェースの切り替え方法及び装置、端末並びに記憶媒体
EP21845357.9A EP4187378A4 (en) 2020-07-23 2021-06-03 METHOD AND DEVICE FOR SWITCHING AN APPLICATION INTERFACE AS WELL AS TERMINAL AND STORAGE MEDIUM
US18/069,724 US20230127743A1 (en) 2020-07-23 2022-12-21 Method for display-mode switching, terminal, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010719533.0 2020-07-23
CN202010719533.0A CN111782332A (zh) 2020-07-23 2020-07-23 应用界面切换方法、装置、终端及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/069,724 Continuation US20230127743A1 (en) 2020-07-23 2022-12-21 Method for display-mode switching, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2022017013A1 true WO2022017013A1 (zh) 2022-01-27

Family

ID=72764858

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/098160 WO2022017013A1 (zh) 2020-07-23 2021-06-03 应用界面切换方法、装置、终端及存储介质

Country Status (5)

Country Link
US (1) US20230127743A1 (zh)
EP (1) EP4187378A4 (zh)
JP (1) JP2023534305A (zh)
CN (1) CN111782332A (zh)
WO (1) WO2022017013A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399720A (zh) * 2020-03-24 2020-07-10 北京小米移动软件有限公司 一种显示应用界面的方法、装置及存储介质
CN111782332A (zh) * 2020-07-23 2020-10-16 Oppo广东移动通信有限公司 应用界面切换方法、装置、终端及存储介质
CN114942802A (zh) * 2021-02-07 2022-08-26 Oppo广东移动通信有限公司 应用切换方法、装置、终端及存储介质
EP4295314A1 (en) 2021-02-08 2023-12-27 Sightful Computers Ltd Content sharing in extended reality
WO2023009580A2 (en) 2021-07-28 2023-02-02 Multinarity Ltd Using an extended reality appliance for productivity
US11948263B1 (en) 2023-03-14 2024-04-02 Sightful Computers Ltd Recording the complete physical and extended reality environments of a user
WO2023146837A2 (en) * 2022-01-25 2023-08-03 Sightful Computers Ltd Extended reality for collaboration
CN114911383A (zh) * 2022-06-02 2022-08-16 亿咖通(湖北)技术有限公司 窗口显示方法和车载终端
CN117270748A (zh) * 2022-06-14 2023-12-22 Oppo广东移动通信有限公司 界面操作方法、装置以及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180284948A1 (en) * 2017-03-29 2018-10-04 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for split-window display
CN109445572A (zh) * 2018-09-10 2019-03-08 华为技术有限公司 全屏显示视频中快速调出小窗口的方法、图形用户接口及终端
CN110531910A (zh) * 2018-05-24 2019-12-03 上海掌门科技有限公司 一种界面显示方法及设备
CN111782332A (zh) * 2020-07-23 2020-10-16 Oppo广东移动通信有限公司 应用界面切换方法、装置、终端及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107256129A (zh) * 2017-07-20 2017-10-17 广东欧珀移动通信有限公司 在分屏模式下切换应用的方法、装置及其相关设备
CN108540647A (zh) * 2018-03-12 2018-09-14 广东欧珀移动通信有限公司 用户界面显示方法、装置、终端及存储介质
CN108920240B (zh) * 2018-06-29 2021-11-12 Oppo(重庆)智能科技有限公司 用户界面显示方法、装置、终端及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180284948A1 (en) * 2017-03-29 2018-10-04 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for split-window display
CN110531910A (zh) * 2018-05-24 2019-12-03 上海掌门科技有限公司 一种界面显示方法及设备
CN109445572A (zh) * 2018-09-10 2019-03-08 华为技术有限公司 全屏显示视频中快速调出小窗口的方法、图形用户接口及终端
CN111782332A (zh) * 2020-07-23 2020-10-16 Oppo广东移动通信有限公司 应用界面切换方法、装置、终端及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4187378A4 *

Also Published As

Publication number Publication date
JP2023534305A (ja) 2023-08-08
CN111782332A (zh) 2020-10-16
EP4187378A1 (en) 2023-05-31
EP4187378A4 (en) 2024-01-10
US20230127743A1 (en) 2023-04-27

Similar Documents

Publication Publication Date Title
WO2022017013A1 (zh) 应用界面切换方法、装置、终端及存储介质
JP7438254B2 (ja) 同時に開いているソフトウェアアプリケーションを管理するためのデバイス、方法、及びグラフィカルユーザインタフェース
US10990278B2 (en) Method and device for controlling information flow display panel, terminal apparatus, and storage medium
US10606540B2 (en) Device having a screen region on a hinge coupled between other screen regions
WO2021035884A1 (zh) 投屏方法、装置、终端及存储介质
US10775997B2 (en) Presentation of a control interface on a touch-enabled device based on a motion or absence thereof
US20190018571A1 (en) Mobile terminal and message-based conversation operation method for the same
US10606469B2 (en) Device, method, and graphical user interface for managing multiple display windows
EP2487578B1 (en) Method and system for controlling screen of mobile terminal
US9851790B2 (en) Gaze based notification reponse
US20140267094A1 (en) Performing an action on a touch-enabled device based on a gesture
US20130185676A1 (en) Method and mobile device for classified webpage switching
WO2021018211A1 (zh) 一种显示方法及电子设备
KR20100087834A (ko) 휴대단말의 기능 제어 방법 및 시스템
WO2021136136A1 (zh) 截图方法及电子设备
US20210365160A1 (en) Method for interface operation and terminal, storage medium thereof
WO2017101445A1 (zh) 一种响应操作轨迹的方法以及操作轨迹响应装置
WO2023010903A1 (zh) 终端设备的桌面管理方法和终端设备
CN107273111A (zh) 一种分屏显示方法及终端
WO2019129161A1 (zh) 移动终端后台应用程序查看方法及装置
WO2023005828A1 (zh) 消息显示方法、装置和电子设备
WO2023016463A1 (zh) 显示控制方法、装置、电子设备和介质
US8988369B1 (en) Restricted carousel with built-in gesture customization
US11249619B2 (en) Sectional user interface for controlling a mobile terminal
CN110244889B (zh) 图片缩放方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21845357

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023503197

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2021845357

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021845357

Country of ref document: EP

Effective date: 20230223