Display direction switching method and electronic equipment
By providing windows with different display directions in the interface of the electronic device and allowing users to switch window display directions separately, the problem of switching window display directions in the prior art is not suitable for two users to operate on different sides, improving the user experience.
Patent Information
- Application Number
- CN202411368952.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2025-03-21
AI Technical Summary
The prior art cannot effectively switch the display direction of the window in scenarios where two users operate on different sides of the electronic device, resulting in poor user operation experience.
A method of switching display direction is provided. By displaying the first interface and the second interface in the interface of the electronic device, respectively, including windows with different display directions, the user can switch its display direction separately through the operation of the first window, independent of the automatic rotation function of the electronic device.
It realizes that in the scenario where two users operate on different sides of the electronic device, effectively switch the window display direction, improves the user's operating experience, and is suitable for a variety of operation scenarios.
Smart Images

Figure CN119668737A_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed with the State Intellectual Property Office on September 12, 2023, with application number 202311170230.8 and application name “Display direction switching method and electronic device”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a display direction switching method and an electronic device. Background Art
[0003] With the continuous development of large screens, foldable screens and flexible screens, the screen size of electronic devices is getting larger and larger, and the content that can be displayed on a screen is gradually increasing. Electronic devices can provide two windows corresponding to application programs on one interface to meet the needs of one user performing operations in two windows at the same time, or two users performing operations in two windows respectively.
[0004] Currently, when a user wants to switch the display direction of a window, the user can rotate the electronic device; when it is detected that the screen direction of the electronic device is switched from a first direction to a second direction, through the automatic rotation function of the electronic device, the display direction of the two windows can be switched from the first direction to the second direction along with the screen direction of the electronic device.
[0005] However, in the above implementation, the two windows can only switch the display direction as a whole. After the switch, the display directions of the two windows are the same. This is not suitable for the scenario where two users are located on different sides of the electronic device and perform operations in the two windows of the electronic device respectively, and the user's operating experience is poor. Summary of the invention
[0006] The present application provides a display direction switching method and an electronic device, which are applicable to a scenario where two users are located on different sides of an electronic device and respectively perform operations in two windows of the electronic device, and can improve the user's operating experience.
[0007] In a first aspect, the present application provides a method for switching a display direction, which is applied to an electronic device, and the method includes:
[0008] Displaying a first interface, wherein the first interface includes a first window with a display direction in the first direction and a second window with a display direction in the second direction;
[0009] In response to the first operation, a second interface is displayed, wherein the second interface includes a first window whose display direction is a third direction and a second window whose display direction is a second direction, and the third direction is different from the first direction.
[0010] The first operation is used to switch the display direction of the first window to a third direction.
[0011] The first operation may be a voice operation on the first window, or a click operation on a related control in the first window.
[0012] In the above method, the first interface includes a first window and a second window. After receiving a first operation on the first window, the first window corresponding to the first operation can be rotated as a separate window, and the display direction of the first window can be switched from the first direction to the third direction. In the second interface obtained after switching the direction, the display direction of the first window is changed to the third direction, and the display direction of the second window remains in the second direction. It can be seen that the switching of the display direction of the first window does not depend on the automatic rotation function of the electronic device, and the first window and the second window will not be rotated as a whole to switch the direction, thereby achieving the effect of switching the display direction of the first window alone.
[0013] It can be understood that when the first direction and the second direction are the same, after the first direction is switched to the third direction, in the second interface, the display directions of the first window and the second window are different. Therefore, it can be suitable for scenarios where two users respectively operate the first window and the second window on different sides of the electronic device. When the display directions of the first window and the second window are completely opposite, it can be suitable for scenarios where two users respectively operate the first window and the second window on opposite sides of the electronic device, thereby improving the user experience.
[0014] When the first direction and the second direction are different and the third direction is the same as the second direction, after the first direction is switched to the third direction, in the second interface, the display directions of the first window and the second window are the same. Therefore, it can be suitable for the scenario where two users operate the first window and the second window respectively on one side of the electronic device, thereby improving the user experience.
[0015] In some embodiments, the display orientation includes a landscape orientation, a reverse landscape orientation, a portrait orientation, or a reverse portrait orientation.
[0016] For example, the first direction and the second direction are the same, both are landscape directions, and the third direction is the anti-landscape direction. After switching the display direction of the first window, the display direction of the first window is the anti-landscape direction, and the display direction of the second window is the landscape direction.
[0017] For another example, the first direction and the second direction are different, the first direction is the landscape direction, the second direction is the reverse landscape direction, and the third direction is the reverse landscape direction. After switching the display direction of the first window, the display direction of the first window is the reverse landscape direction, and the display direction of the second window is the reverse landscape direction.
[0018] Based on the above description, it can be known that by separately switching the display direction of the first window, the display directions of the first window and the second window can be the same, or the display directions of the first window and the second window can be different. This is suitable for various scenarios in which two or more users operate the electronic device on any side of the electronic device.
[0019] In addition, the first window and the second window may be considered as two windows, or the first window and the second window may be considered as two or more windows respectively.
[0020] In combination with the first aspect, in some implementations of the first aspect, the first direction and the second direction are the same display direction, and the third direction and the second direction are opposite directions.
[0021] In the above method, the first direction and the second direction are the same, and the third direction and the second direction are opposite directions. Then, after the display direction of the first window is switched from the first direction to the third direction, the display direction of the first window and the display direction of the second window are opposite. In this way, it can be suitable for the scenario where two users operate the first window and the second window respectively on opposite sides of the electronic device, thereby improving the user experience.
[0022] In combination with the first aspect, in some implementations of the first aspect, the first window includes a first control, and in response to the first operation, the second interface is displayed, including:
[0023] In response to a first operation on the first control, a second interface is displayed.
[0024] The first operation may be a click operation on the first control.
[0025] In the above method, a first control may be displayed in the first window, and when the user performs an operation such as clicking on the first control, the electronic device may display the second interface.
[0026] In combination with the first aspect, in some implementations of the first aspect, before displaying the first interface, the method further includes:
[0027] Display a third interface, wherein the third interface includes a first window with a display direction of the first direction and a second window with a display direction of the second direction, wherein the first window includes a second control, and the second control is used to trigger the display of the first control;
[0028] In response to a second operation on the second control, the first interface is displayed.
[0029] In the above method, the third interface before displaying the first interface may include a first window with a display direction of the first direction and a second window with a display direction of the second direction. The first window includes a second control. When the user performs an operation such as clicking on the second control, the electronic device can display the first interface.
[0030] In combination with the first aspect, in some implementations of the first aspect, the first interface also includes a third control, the second control is further used to trigger display of the third control, and the third control is used to switch the display direction of the first window to a fourth direction.
[0031] In the above method, the first interface includes not only a first control but also a third control. The first control is used to switch the display direction of the first window to a third direction. The second control can switch the display direction of the first window to a fourth direction. The third direction and the fourth direction are different directions.
[0032] In addition, the third control may include multiple ones, and the corresponding fourth directions may include multiple ones.
[0033] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0034] In response to the third operation, a fourth interface is displayed, wherein the fourth interface includes a first window whose display direction is a first direction and a second window whose display direction is a fifth direction, where the fifth direction is different from the second direction.
[0035] In the above method, if the user wants to switch the display direction of the second window, after receiving the third operation on the second window, the second window corresponding to the third operation can be rotated as a separate window to switch the display direction of the second window from the second direction to the fifth direction. In the fourth interface obtained after switching the direction, the display direction of the second window is changed to the fifth direction, and the display direction of the first window remains in the first direction. It can be seen that the switching of the display directions of the first window and the second window does not depend on the automatic rotation function of the electronic device, and the first window and the second window will not be rotated as a whole to switch the direction, thereby achieving the effect of switching the display direction of the second window alone.
[0036] It should be noted that the method for switching the display direction of the second window is the same as the method for switching the display direction of the first window, and will not be described in detail here.
[0037] In combination with the first aspect, in some implementations of the first aspect, in response to the first operation, displaying the second interface includes:
[0038] In response to a first operation, determining whether the automatic rotation switch is on;
[0039] When the automatic rotation switch is on, turn off the automatic rotation switch;
[0040] The second interface is displayed.
[0041] In the above method, since the automatic rotation switch is turned on, the first window and the second window will automatically switch the rotation direction as a whole, which will affect the individual switching display direction of the first window or the second window. Therefore, when the automatic rotation switch is turned on, it is necessary to turn off the automatic rotation switch and then perform the operation of switching the display direction. In this way, after the automatic rotation switch is turned off, the first window and the second window will not automatically switch directions as a whole, which can ensure the stability of the individual switching direction of the first window or the second window.
[0042] In combination with the first aspect, in some implementations of the first aspect, in response to the first operation, displaying the second interface includes:
[0043] Based on the first operation, determine identification information and direction information, where the identification information is used to identify the first window, and the direction information is used to indicate the display direction to be switched indicated by the first operation;
[0044] The second interface is displayed according to the identification information and the direction information.
[0045] In the above method, the window whose display direction is to be switched can be accurately determined to be the first window through the identification information corresponding to the first window corresponding to the first operation, so that the electronic device can accurately switch the display direction of the first window whose display direction is to be switched.
[0046] In combination with the first aspect, in some implementations of the first aspect, displaying the second interface according to the identification information and the direction information includes:
[0047] Acquire a first image in the first window according to the identification information;
[0048] Displaying a dynamic picture in the first window according to the first image, where the dynamic picture is used to display the switching state of the display direction of the first window;
[0049] When the dynamic picture display ends, the second interface is displayed according to the identification information and the direction information.
[0050] In the above method, before displaying the second interface, a dynamic picture can also be displayed in the first window based on the first image in the first window. The dynamic picture can not only remind the user that the display direction of the window is switching, but also provide the user with visual interaction, making the process of switching the display direction of the window more intuitive and enjoyable.
[0051] In combination with the first aspect, in certain implementations of the first aspect, the first window is a window of a first application, and the second window is a window of a second application. When the first application and the second application are different applications, the identification information of the first window includes at least one of the package name of the first application, the name of the first application, and the process name of the first application.
[0052] In the above method, the first application in the first window and the second application in the second window may be different applications, and the window whose display direction is to be switched can be accurately determined by the package name, name and process name of the application.
[0053] In combination with the first aspect, in certain implementations of the first aspect, the first window is a window of a first application, and the second window is a window of a second application. When the first application and the second application are the same application, login accounts of the first application and the second application are different.
[0054] In the above method, when the first application and the second application are the same application, the first application and the second application can be distinguished by different login accounts.
[0055] In combination with the first aspect, in some implementations of the first aspect, when the first application and the second application are the same application, the identification information of the first window includes a login account identification of the first application.
[0056] In the above method, the first application in the first window and the second application in the second window may be the same application, and the window whose display direction is to be switched may be accurately determined by logging into an account.
[0057] In combination with the first aspect, in some implementations of the first aspect, the relationship between the first window and the second window includes any one of the following relationships:
[0058] The first window and the second window are displayed in split screen;
[0059] The first window is displayed in full screen, and the second window is displayed floating in the second window;
[0060] Also, the second window is displayed in full screen, and the first window is displayed floating in the second window.
[0061] In the above method, the first window and the second window can be displayed in the interface in any of the above relationships.
[0062] In a second aspect, the present application provides an electronic device, the electronic device comprising a first software module and a second software module;
[0063] The first software module is used to display a first interface, wherein the first interface includes a first window with a display direction in the first direction and a second window with a display direction in the second direction;
[0064] The second software module is used to display a second interface in response to the first operation, wherein the second interface includes a first window with a display direction of a third direction and a second window with a display direction of a second direction, and the third direction is different from the first direction.
[0065] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device further includes a third software module;
[0066] The third software module is used to determine whether the automatic rotation switch is turned on, and when the automatic rotation switch is turned on, turn off the automatic rotation switch.
[0067] In a third aspect, the present application provides an electronic device comprising one or more processors, a memory and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by one or more processors, the electronic device executes the method for switching the display direction in the first aspect and any possible implementation of the first aspect.
[0068] In a fourth aspect, the present application provides a chip system, which includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method for switching the display direction in the first aspect and any possible implementation of the first aspect.
[0069] In a fifth aspect, the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on an electronic device, the electronic device executes the method for switching the display direction in the first aspect and any possible implementation of the first aspect.
[0070] In a sixth aspect, the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the display direction switching method in the first aspect and any possible implementation of the first aspect.
[0071] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of an application scenario provided by the prior art;
[0073] Figure 2 A schematic diagram of an application scenario provided by the prior art;
[0074] Figure 3A schematic diagram of an application scenario provided by an embodiment of the present application;
[0075] Figure 4 A schematic diagram of an application scenario provided by an embodiment of the present application;
[0076] Figure 5 A schematic diagram of the screen direction of an electronic device provided by an embodiment of the present application;
[0077] Figure 6 A schematic diagram of a display direction of a window provided in an embodiment of the present application;
[0078] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0079] Figure 8 A schematic diagram of a software architecture of an electronic device provided in one embodiment of the present application;
[0080] Fig. 9 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0081] Fig.10 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0082] Fig.11 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0083] Fig.12 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0084] Fig.13 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0085] Fig.14 A schematic diagram of a human-computer interaction interface provided in one embodiment of the present application;
[0086] Fig.15 A schematic diagram of a flow chart of a method for switching a display direction provided in an embodiment of the present application;
[0087] Fig.16 A flowchart of a method for switching a display direction provided in one embodiment of the present application is provided. DETAILED DESCRIPTION
[0088] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0089] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.
[0090] In order to improve the privacy and security of user data, many electronic devices support dual systems. The main system can be used for daily use by users, and the subsystem can be used as a privacy system by users.
[0091] 1. Host system.
[0092] The main system is the core of the mobile phone operating system, responsible for managing and controlling the hardware and software resources of the mobile phone, as well as providing the user interface and various functions.
[0093] 2. Subsystem (guest system).
[0094] A subsystem is a subsystem application that runs in the application layer of the main system, that is, the subsystem application is in the application layer of the main system, and the operation of the subsystem application requires the support of the main system. Therefore, the subsystem is a privacy space within the main system, but the subsystem exists in the form of an application. The subsystem can be used to run application clones and / or parallel spaces. The subsystem can run applications independently, and each subsystem has its own independent data, settings, and account information.
[0095] It should be noted that the aforementioned subsystem is not a subsystem that is completely parallel to the main system, but a subsystem application running in the application layer of the main system. The subsystem application can have the functions of the main system. For example, after the subsystem application is turned on, the main interface of the subsystem application can be displayed, and the main interface can display the icons of multiple applications installed in the subsystem application (for example, instant messaging applications, camera applications, and game applications, etc.). Of course, the subsystem also has an independent storage space, and the independent storage space of the subsystem can also store user data that cannot be accessed in the main system and can only be accessed after entering the subsystem.
[0096] Among them, the main system and subsystem have independent system desktop, wallpaper and storage space, etc.
[0097] Specifically, the method for starting a subsystem of an electronic device includes:
[0098] Step 1: Display the interface of the main system, which includes the system desktop of the main system or the setting interface of the main system.
[0099] Step 2: In response to a first operation on the interface of the main system, the electronic device starts the subsystem application through the main system.
[0100] Step 3: During the process of starting the subsystem application through the main system, the first storage space corresponding to the subsystem application is mounted through the main system.
[0101] Step 4: Display the main interface of the subsystem application, the main interface includes a first control, the content displayed by the first control is the icon of the first application, and the first control is used to start the first application in the subsystem application.
[0102] In some embodiments, the interface of the main system is the system desktop of the main system, the icon of the subsystem application is displayed on the interface of the main system, and the first operation is an operation acting on the icon of the subsystem application.
[0103] In other embodiments, the interface of the main system includes a setting interface of the main system, the setting interface of the main system includes a second control, the second control is used to start the subsystem application, and the first operation is an operation acting on the second control.
[0104] In addition, after displaying the interface of the subsystem application, the electronic device can also display the interface of the first application upon receiving an operation of the user on the first control, display icons of multiple applications upon receiving an operation of the user on the interface of the first application (for example, swiping left), and display a split-screen interface upon receiving an operation of the user on an icon of a second application among the icons of multiple applications. The split-screen interface includes a window of the first application and a window of the second application displayed in split screen.
[0105] Among them, the second application is an application in the main system, the first application and the second application can be the same application or different applications. When the first application and the second application are the same application, the first application and the second application log in to different accounts.
[0106] Based on the above description, the subsystem implements the subsystem function in the form of an application. When the user starts the subsystem, it can be started from the interface of the main system; and the subsystem is started through the main system; after starting the subsystem, the main interface of the subsystem is displayed, and the icon of the first application in the subsystem is displayed through the main interface to start the first application in the subsystem. Since the subsystem is started in the form of an application, it is faster than starting the system, so this way of starting the subsystem is more efficient.
[0107] The above process of entering the interface of the subsystem application may be a process of opening a parallel space, or a process of opening an application clone.
[0108] 3. App cloning.
[0109] App clones allow users to install and run multiple identical applications on the same electronic device; they also allow users to log in to different accounts on two identical applications on the same electronic device at the same time without switching accounts or logging out. Each application has its own data, settings, and account information, just like using the application on different electronic devices. App clones are usually implemented through cloned applications from the app store or third-party applications, and each cloned application runs in a subsystem. Each subsystem runs independently and has its own application data and settings, just like running on different electronic devices.
[0110] 4. Parallel space.
[0111] Parallel Space allows users to install and run multiple identical applications on the same electronic device; it also allows users to log in to different accounts on two identical applications on the same electronic device at the same time without switching accounts or logging out; it also allows users to install and run multiple different applications on the same electronic device, and run multiple different applications at the same time, and display the interfaces of multiple different applications at the same time. Parallel Space creates an independent virtual space in which other applications can be installed and run. Users can add applications to be cloned in Parallel Space and assign different accounts to each application to achieve the function of logging in to different accounts at the same time.
[0112] App clones and parallel spaces can be applied to a variety of application scenarios. For example, in social software, users can log in to multiple accounts through parallel spaces or app clones and manage different social circles. In e-commerce platforms, users can log in to different accounts through parallel spaces or app clones and make membership purchases of different levels to obtain more discounts or points; in various games, users can also use parallel spaces or app clones to create virtual accounts and have multiple characters of different levels or different game professions to enhance the gaming experience.
[0113] In this way, by using App Clone or Parallel Space, users can easily manage multiple social media or game accounts without having to switch accounts frequently; using App Clone and Parallel Space can separate the data of different applications, avoid data cross-over or leakage, and enhance privacy protection; App Clone and Parallel Space allow users to log in to multiple social media accounts on the same electronic device at the same time and communicate with different people online at the same time.
[0114] See also Figure 1 and Figure 2 , Figure 1 and Figure 2 A schematic diagram of an application scenario provided by the prior art is shown.
[0115] like Figure 1 and Figure 2 As shown, electronic device 100 is an electronic device with a folding screen; the interface of the electronic device is divided into two display areas along the folding axis of the folding screen, and the two display areas are used to display window 1 and window 2, respectively. Window 1 is the window of application 1, and window 2 is the window of application 2.
[0116] User A can perform operations on window 1; user B can perform operations on window 2.
[0117] like Figure 1 As shown, in the initial state, the display directions of window 1 and window 2 are the same, both are horizontal, and user A and user B perform operations in the two windows of the electronic device respectively on the same side of the electronic device.
[0118] When the user wants to switch the display direction of window 1 and window 2, the user can rotate the electronic device; when it is detected that the screen direction of the electronic device is switched from a first direction to a second direction, based on the automatic rotation function of the electronic device, window 1 and window 2 can switch directions as a whole, thereby, the display direction of window 1 and window 2 switches from the first direction to the second direction along with the screen direction of the electronic device.
[0119] like Figure 2As shown, when it is detected that the screen direction of the electronic device is rotated to the anti-landscape direction, the display directions of window 1 and window 2 remain the same, both are anti-landscape directions, and user A and user B cannot perform operations on the two windows on both sides of the electronic device respectively.
[0120] Based on the above description, it can be seen that window 1 and window 2 can only switch the display direction as a whole, and cannot switch the display direction individually. Whether before or after the switch, user A and user B need to perform operations on window 1 and window 2 respectively on the same side of the electronic device.
[0121] It can be seen that in the implementation method of the prior art, the two windows can only switch directions as a whole, and the display directions of the two windows are the same after switching. This is not suitable for the scenario where two users are located on different sides of the electronic device and perform operations in the two windows of the electronic device respectively, and the user's operating experience is poor.
[0122] In view of the above problems, the present application may provide a display direction switching method, an electronic device, a chip system, a computer-readable storage medium and a computer program product, which display two windows of the display interface in split screen, and set direction rotation controls in the two windows respectively. After receiving an operation on any direction rotation control, the corresponding window can be rotated according to the operation to switch the display direction, and the display direction of the other window remains unchanged, so that the display directions of the two windows are different. Therefore, it can be suitable for scenarios where two users operate the two windows respectively on different sides of the electronic device. When the display directions of the two windows are completely opposite, it can be suitable for scenarios where two users operate the two windows respectively on opposite sides of the electronic device (face to face), thereby improving the user experience.
[0123] The display direction switching method provided in the present application can be applied to electronic devices. The electronic device can be an electronic device with display screen hardware and corresponding software support.
[0124] An electronic device may include a main system and a subsystem. The main system may provide a main space, and the subsystem may provide a privacy space.
[0125] An electronic device can display two or more display windows in split screen on a display interface. The two or more display windows can all be windows corresponding to the main space, or all be windows corresponding to the privacy space, or one or several windows can be windows corresponding to the main space, and the remaining windows can be windows corresponding to the privacy space.
[0126] Specifically, when an electronic device displays two display windows of a user space through a display interface, the two display windows can be used to respectively display information of two different applications, or can be used to respectively display different display information of the same application.
[0127] For example, among the two windows, one window displays the information of the instant messaging application in the main space, and the other window displays the information of the short video application in the main space; or, one window displays the address book list of the instant messaging application in the main space, and the other window displays the message list of the instant messaging application in the main space.
[0128] When an electronic device displays two display windows corresponding to a main space and a privacy space respectively through a split screen display interface, the two display windows can be used to respectively display information of two different applications, or can be used to respectively display different display information of the same application.
[0129] For example, among the two windows, one window displays the information of the instant messaging application in the main space, and the other window displays the information of the short video application in the private space; or, one window displays the information of the game application in the main space, and the other window displays the information of the game application in the private space.
[0130] It should be noted that when the information of the same application is displayed in two windows, the login accounts of the same application in the two windows are different.
[0131] Among them, the display screen of the electronic device can be a straight screen, a curved screen or a folding screen.
[0132] The electronic device with a foldable screen can be in an unfolded state, a bent state, and a folded state. That is, the electronic device with a foldable screen can be unfolded for use, or folded along a folding axis for use.
[0133] See also Figure 3 and Figure 4 , Figure 3 and Figure 4 A schematic diagram of an application scenario provided by an embodiment of the present application is shown.
[0134] like Figure 3 and Figure 4 As shown, electronic device 100 is an electronic device with a folding screen. The interface of the electronic device is divided into two display areas along the folding axis of the folding screen. The two display areas are used to display window 1 and window 2, respectively. Window 1 is the window of application 1, and window 2 is the window of application 2.
[0135] User C can perform operations on window 1; user D can perform operations on window 2.
[0136] like Figure 3 As shown, in the initial state, the display directions of window 1 and window 2 are the same, and both window 1 and window 2 are in the horizontal direction.
[0137] For example, the display directions of window 1 and window 2 are both toward user D. At this time, user C needs to be at a side of the electronic device where user D is located and perform an operation on window 1.
[0138] For another example, the display directions of window 1 and window 2 are both toward user C. At this time, user D needs to be at a side of the electronic device where user C is located and perform an operation on window 2.
[0139] When receiving the operation of user C to switch the display direction of window 1, the display direction of the interface changes to the switched display direction. At this time, the display directions of window 1 and window 2 are different.
[0140] For example, Figure 4 As shown in FIG. 1 , after performing the operation corresponding to rotating 180° on window 1, the display direction of the interface changes from the horizontal screen direction to the reverse horizontal screen direction. At this time, the display directions of window 1 and window 2 are different (opposite), and user C can be on the opposite side of user D (i.e. Figure 4 and performs an operation on window 1.
[0141] Based on the above description, it can be known that window 1 and window 2 can switch the display direction independently. When the display direction is switched for the first time in the initial state, before the switch, user A and user B can perform operations on window 1 and window 2 respectively on the same side of the electronic device; after the switch, user A and user B can perform operations on window 1 and window 2 respectively on different sides (such as the opposite side) of the electronic device.
[0142] Taking an electronic device with a foldable screen as an example, the electronic device may include four screen orientations, namely, portrait orientation, landscape orientation, reverse portrait orientation, and reverse landscape orientation. When the long side of the screen of the electronic device is in the horizontal direction and the short side is in the vertical direction perpendicular to the horizontal direction, the screen orientation of the electronic device is the landscape orientation. Figure 5 As shown in (a) in FIG. 1 ; at this time, when the electronic device is placed upside down, the screen direction of the electronic device is the reverse horizontal screen direction, such as Figure 5 As shown in (b) in FIG. 1 ; when the electronic device is rotated 90° clockwise from the horizontal screen orientation, the screen orientation of the electronic device is the vertical screen orientation, such as Figure 5 As shown in (c) in FIG. 1 ; when the electronic device is rotated 90° counterclockwise from the horizontal screen direction, the screen direction of the electronic device is the reverse vertical screen direction, such as Figure 5 As shown in (d) in .
[0143] Based on this, when the screen orientation of the electronic device is the horizontal orientation, in the initial state, the display orientation of the two windows in the display interface of the electronic device can be regarded as the horizontal orientation, such as Figure 6 As shown in (a); at this time, when the display direction of a window is rotated 180° from the horizontal screen direction, the display direction of the window is the reverse horizontal screen direction, such as Figure 6 As shown in (b); when the display direction of a window is rotated 90° clockwise from the horizontal screen direction, the display direction of the window is the vertical screen direction, as shown in Figure 6 As shown in (c) in FIG. 1 ; when the display direction of a window is rotated 90° counterclockwise from the horizontal screen direction, the display direction of the window is the anti-vertical screen direction, such as Figure 6 As shown in (d) in .
[0144] It should be understood that the above is an example of a scenario and does not limit the scenario of the present application.
[0145] The electronic device provided in the embodiments of the present application can be a mobile phone, a tablet computer, a vehicle-mounted device, a laptop computer, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a smart car, a smart TV, a robot, and other devices.
[0146] It should be pointed out that in some possible implementations, the electronic device may also be called a terminal device, user equipment (UE), etc., which is not limited in the embodiments of the present application.
[0147] For example, Figure 7 As shown, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.
[0148] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors 101.
[0149] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0150] The processor 101 may also be provided with a memory for storing instructions and data.
[0151] In some embodiments, the memory in the processor 101 is a cache memory. The memory can store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
[0152] In some embodiments, the processor 101 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0153] The display screen 103 is used to display images or videos in the human-computer interaction interface. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), MiniLED, MicroLED, Micro-OLED, quantum dot light emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 103, where N is a positive integer greater than 1.
[0154] The external memory interface 108 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 101 through the external memory interface 108 to implement a data storage function. For example, files such as music and video streams are stored in the external memory card.
[0155] The internal memory 106 can be used to store computer executable program codes, which include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 106. The internal memory 106 can include a program storage area and a data storage area.
[0156] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 106 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0157] The sensor 105 in the electronic device 100 may include image sensors, touch sensors, pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, ambient light sensors, fingerprint sensors, temperature sensors, bone conduction sensors and other components to realize sensing and / or acquisition functions for different signals.
[0158] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
[0159] In other embodiments, the electronic device 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0160] Please refer to Figure 8 , is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application. The display direction switching method provided in an embodiment of the present application is applied to Figure 7 When the electronic device 100 is shown, the software in the electronic device 100 can be divided into the following Figure 8 The illustrated embodiment includes an application layer 201 , an application framework layer (framework, FWK) 202 , a hardware abstraction layer (HAL) 203 , and a driver layer 204 .
[0161] A plurality of applications may be installed in the application layer 201, for example, a launcher module (luncher) and a bottom bar module (dock bar).
[0162] The application framework layer (framework, FWK) 202 may include a multi-window manager module (multi window manager), a display rotation module (display rotation), a display window settings module (display window settings), a display window service module (window manager service) and a display content module (display content).
[0163] Among them, the launcher module is used to enable the parallel space and / or application clone function, and to display the interface before switching the window direction. The bottom bar module is used to listen to clicks on the direction rotation control. The multi-window manager module is used to determine the identification information and direction information of the window, and to turn off the automatic rotation switch when the automatic rotation switch is turned on. The display rotation module is used to transmit the identification information and direction information to the display window setting module. The display window setting module is used to transmit the identification information and direction information to the display window service module. The display window service module is used to transmit the identification information and direction information to the display content module. The display content module is used to obtain the image data of the window whose display direction is to be switched. The display window setting module is also used to display the dynamic picture corresponding to the switching direction according to the image data, and according to the identification information and direction information, the interface after the display interface and the interface after the window direction is switched.
[0164] The hardware abstraction layer 203 is a software located between the operating system kernel and the hardware circuit, and is usually used to abstract the hardware to achieve the interaction between the operating system and the hardware circuit at the logic layer.
[0165] The driver layer 204 may be installed with a plurality of drivers for driving the hardware.
[0166] It should be noted that the application layer 201, the application framework layer 202, the hardware abstraction layer 203, and the driver layer 204 may also include other contents, which are not specifically limited here.
[0167] Based on the above description, combined with Figure 9-14 , describes in detail the method for switching the display direction of the electronic device in this application. For the convenience of explanation, Figure 9-14 In the figure, the electronic device is a folding screen mobile phone in an unfolded state, and the display screen of the mobile phone is used to split the screen display window 1 in the interface and window 2 in the interface. Window 1 is the window corresponding to a game application (application, APP) logging in to one account, and window 2 is the window corresponding to another account logging in to the game application.
[0168] See also Figure 9-14 , Figure 9-14 A schematic diagram of a human-computer interaction interface provided by an embodiment of the present application is shown.
[0169] The phone can display Fig. 9 Interface 11 is shown, and interface 11 is a split-screen interface for installing the same game application on a mobile phone and logging into different accounts.
[0170] Among them, the interface 11 may include window 1 and window 2. Window 1 is the window corresponding to the game application of the login account "Mac". Window 1 may include control 1001, and control 1001 is used to display and control the display status of window 1; window 2 is the window corresponding to the game application of the login account "Cyithia". Window 2 may include control 1003, and control 1003 is used to control the display status of window 2. Control 1002 may also be included between window 1 and window 2, or in window 1 or window 2, and control 1002 is used to control the display status of window 1 and window 2.
[0171] At this time, the display directions of window 1 and window 2 are the same, and both are horizontal (landscape) directions.
[0172] In one implementation, upon receiving a user's Fig. 9 After the control 1001 shown in FIG. 1 is triggered (such as click, double-click or long press operation, etc.), the mobile phone can be used as shown in FIG. Fig. 9The interface 11 shown changes to display as shown Fig.10 Interface 12 is shown.
[0173] Among them, window 1 in interface 12 may include control 1004, control 1004 is used to display multiple controls, and the multiple controls include a control for displaying window 1 in full screen, a control for displaying window 1 and window 2 in split screen, a control for suspending window 1 on window 2, and a control for providing adjustment of the display direction of window 1.
[0174] At this time, the multiple controls in the control 1004 include a control 1005 , and the control 1005 is a control for providing a control for adjusting the display direction of the window 1 .
[0175] Upon receiving the user's Fig.10 After the control 1005 shown in the figure performs the triggering operation, the mobile phone can Fig.10 The interface 12 shown changes to display as shown in Fig.11 Interface 13 is shown.
[0176] Among them, the window 1 in the interface 13 may also include a control 1006, and the control 1006 is used to adjust the display direction of the window 1. The control 1006 includes multiple controls, and the multiple controls may include a control for adjusting the display direction of the window 1 to the horizontal screen direction (horizontal), a control for adjusting the display direction of the window 1 to the vertical screen direction (vertical), a control for adjusting the display direction of the window 1 to the reverse horizontal screen direction (horizontal reverse), and a control for adjusting the display direction of the window 1 to the reverse vertical screen direction (vertical reverse).
[0177] At this time, the multiple controls in the control 1006 include a control 1007, and the control 1007 is a control for adjusting the display direction of the window 1 to the reverse horizontal screen direction.
[0178] Since the initial display orientation of window 1 and window 2 is landscape, the landscape orientation is equivalent to a rotation of 0°, the anti-landscape orientation is equivalent to a rotation of 180° based on the landscape orientation, the portrait orientation is equivalent to a clockwise rotation of 90° based on the landscape orientation, and the anti-portrait orientation is equivalent to a counterclockwise rotation of 90° based on the landscape orientation.
[0179] It should be noted that the multiple controls in control 1006 may include but are not limited to the above four controls, and may also include controls corresponding to more display directions, that is, window 1 and window 2 can be rotated to any angle and displayed in any direction respectively.
[0180] Upon receiving the user's Fig.11After the control 1007 shown in FIG. 1 performs a triggering operation, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1. Thus, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1 according to the identification information about the window 1 and the direction information about the window 1. Fig.11 The interface 13 shown changes to display as shown in Fig.12 Interface 14 is shown.
[0181] Among them, in interface 14, the display directions of window 1 and window 2 are opposite, the display direction of window 1 is the reverse horizontal screen direction, and the display direction of window 2 remains unchanged and is still the horizontal screen direction.
[0182] The method for adjusting the display direction of window 2 is similar to the method for adjusting the display direction of window 1 described above, and will not be described in detail here.
[0183] In another implementation, upon receiving a user's Fig. 9 After the control 1001 shown in the figure is triggered, the mobile phone can Figure 8 The interface 11 shown changes to display as shown Fig.13 Interface 15 is shown.
[0184] Among them, window 1 in interface 15 may include control 1004. Control 1004 is used to display multiple controls, including a control for full-screen display of window 1, a control for split-screen display of window 1 and window 2, a control for floating window 1 on window 2, and a control for adjusting the display direction of window 1 to the reverse horizontal screen direction.
[0185] At this time, the multiple controls in the control 1004 include a control 1008, and the control 1008 is a control for adjusting the display direction of the window 1 to the reverse horizontal screen direction.
[0186] Upon receiving the user's Fig.13 After the control 1008 shown in FIG. 1 is triggered, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1. Thus, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1 according to the identification information about the window 1 and the direction information about the window 1. Fig.13 The interface 15 shown changes to display as shown in Fig.12 Interface 14 is shown.
[0187] In another implementation, upon receiving a user's Fig. 9 After the control 1002 shown in the figure performs the triggering operation, the mobile phone can Fig. 9 The interface 11 shown changes to display as shown Fig.14 Interface 16 is shown.
[0188] Among them, in the interface 16, a control 1009 is included between window 1 and window 2. The control 1009 is used to display multiple controls, including a control for displaying window 1 and window 2 left and right, a control for displaying window 1 and window 2 up and down, a control for controlling the display state of window 1, and a control for controlling the display state of window 2.
[0189] At this time, the multiple controls in the control 1009 include a control 1010 , and the control 1010 is a control for controlling the display state of the window 1 .
[0190] Upon receiving the user's Fig.14 After the control 1010 shown in the figure is triggered, the mobile phone can Fig.14 The interface 16 shown changes to display as shown in Fig.13 Interface 12 is shown.
[0191] Upon receiving the user's Fig.10 After the control 1005 shown in the figure performs the triggering operation, the mobile phone can Fig.10 The interface 12 shown changes to display as shown in Fig.11 Interface 13 is shown.
[0192] Upon receiving the user's Fig.11 After the control 1007 shown in FIG. 1 performs a triggering operation, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1. Thus, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1 according to the identification information about the window 1 and the direction information about the window 1. Fig.11 The interface 13 shown changes to display as shown in Fig.12 Interface 14 is shown.
[0193] Or, upon receiving the user's Fig.14 After the control 1010 shown in the figure is triggered, the mobile phone can Fig.14 The interface 16 shown changes to display as shown in Fig.13 Interface 15 is shown.
[0194] Upon receiving the user's Fig.13 After the control 1008 shown in FIG. 1 is triggered, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1. Thus, the mobile phone can determine the identification information about the window 1 and the direction information about the window 1 according to the identification information about the window 1 and the direction information about the window 1. Fig.13 The interface 15 shown changes to display as shown in Fig.12 Interface 14 is shown.
[0195] In summary, after receiving the user's operation to switch the direction of window 1, the mobile phone can switch the display direction of window 1 and keep the display direction of window 2 unchanged, so that the display directions of window 1 and window 2 are different. It can be seen that window 1 and window 2 can switch the display direction individually, without switching the display direction of the entire interface as a whole. Therefore, it can be suitable for scenarios where two users operate two windows separately on different sides of the electronic device, for example, a scenario where two users play a game face to face on opposite sides of the electronic device, and a scenario where two users work collaboratively face to face on opposite sides of the electronic device, which can enhance the user experience.
[0196] Based on the above scenario description, below, the present application takes an electronic device as an example, combined with the accompanying drawings and application scenarios, to elaborate on the display direction switching method provided in the embodiment of the present application.
[0197] See also Fig.15 , Fig.15 A schematic flow chart of a method for switching a display direction provided in an embodiment of the present application is shown.
[0198] like Fig.15 As shown, the display direction switching method provided by the present application may include:
[0199] S11. The launcher module opens a parallel space and / or opens an application clone.
[0200] The launcher module is an application in the application layer of the electronic device. The launcher module is used to enable the parallel space and / or application clone function of the electronic device, and to provide an interactive interface for the user to interact with other applications and functions on the electronic device.
[0201] The electronic device may provide a parallel space function, where the parallel space is used to provide a function of simultaneously logging into different applications on the same electronic device, and / or to provide a function of installing and running multiple identical applications on the same electronic device.
[0202] In some embodiments, the electronic device includes a main system and a subsystem. The electronic device displays the main system desktop, and the icons of the subsystem applications are displayed on the main system desktop. When receiving an operation from the user on the icon of the subsystem application, the electronic device can open the subsystem, that is, open the parallel space.
[0203] In other embodiments, the electronic device includes a main system and a subsystem. The electronic device displays a setting interface. The setting interface of the main system includes a control for opening the subsystem application. When receiving a user operation on the control for opening the subsystem application, the electronic device can open the subsystem, that is, open the parallel space.
[0204] Electronic devices can provide an application clone function, which allows users to install and run multiple identical applications on the same electronic device.
[0205] When providing the application clone function, multiple identical applications are installed on the electronic device, and the multiple identical applications constitute an application multi-opening group. The user can log in to multiple accounts respectively through the multiple applications included in the application multi-opening group.
[0206] For example, two instant messaging applications are installed on an electronic device, and the two instant messaging applications constitute an instant messaging application multi-opening group. A user can log in to two instant messaging application accounts at the same time through the two instant messaging applications included in the instant messaging application multi-opening group to realize application clones of the instant messaging application.
[0207] In some embodiments, the electronic device displays a settings interface, which includes a control for opening an application clone of the target application. Upon receiving a user operation on the control for opening an application clone of the target application, the electronic device can open the application clone of the target application, whereby the desktop of the electronic device can display icons of two target applications.
[0208] For example, if you want to implement the application clone mode of an instant messaging application, you need to turn on the instant messaging application clone mode in the settings interface. After turning on the instant messaging application clone mode in the settings interface, the desktop of the electronic device can display icons of two instant messaging applications.
[0209] S12. The launcher module opens Application 1 and Application 2 through Parallel Space or Application Clone.
[0210] Among them, after opening the parallel space, the electronic device can open application 1 and application 2 based on the parallel space function.
[0211] In some embodiments, when the parallel space is opened, the electronic device displays the interface corresponding to the parallel space (the interface of the subsystem application). When receiving the user's operation on the icon of application 1 in the interface corresponding to the parallel space, the electronic device can also open application 1 and display the interface of application 1. When receiving the user's operation on the interface of application 1 (for example, swiping left), the electronic device displays icons of multiple applications. When receiving the user's operation on the icon of application 2 among the icons of multiple applications, the electronic device can open application 2.
[0212] Among them, after opening the application clone, the electronic device can open application 1 and application 2 based on the application clone function.
[0213] In some embodiments, when the application clone function of the target application is turned on, the desktop of the electronic device can display icons of two target applications (application 1 and application 2). When the user's operations on the icons of the two target applications are received in sequence, the electronic device can turn on application 1 and application 2.
[0214] This application does not limit the way to open application 1 and application 2.
[0215] S13. The launcher module displays interface 1, which includes window 1 and window 2. Window 1 is a window of application 1, and window 2 is a window of application 2. Window 1 and window 2 have the same display direction.
[0216] Based on S13, it can be known that the electronic device can open application 1 and application 2 based on parallel space or application clone. Therefore, when opening application 1 and application 2, the electronic device can display interface 1. Interface 1 can be a split-screen interface. Interface 1 splits the screen to display window 1 and window 2. Window 1 is the window of application 1, and window 2 is the window of application 2.
[0217] In some embodiments, application 1 and application 2 are different applications; for example, application 1 is an instant messaging application, and application 2 is a game application.
[0218] In other embodiments, Application 1 and Application 2 are the same application, and the login accounts of Application 1 and Application 2 are different; for example, Application 1 and Application 2 are both game applications, and the login account of Application 1 is "Cynthia", and the login account of Application 2 is "Mac".
[0219] This application does not limit whether application 1 and application 2 are the same application.
[0220] S14. The bottom bar module monitors the operation on the direction rotation control through the control monitoring function.
[0221] The dockbar module is an application program in the application program layer of the electronic device and is used to monitor the operations on the controls in various interfaces of the electronic device.
[0222] In some embodiments, window 1 may include direction rotation control 1, window 2 may include direction rotation control 2, and the bottom bar module monitors the operations on direction rotation control 1 and direction rotation control 2 respectively through the control monitoring function.
[0223] Thus, the electronic device can adjust the display direction of window 1 based on the operation on direction rotation control 1. Similarly, the display direction of window 2 can be adjusted based on the operation on direction rotation control 2.
[0224] For example, when the direction rotation control 1 is used to switch the display direction of window 1 between landscape and reverse landscape, and the current display direction of window 1 is landscape, the electronic device can switch the display direction of window 1 to reverse landscape based on the operation on the direction rotation control 1.
[0225] In other embodiments, window 1 may include a navigation bar 1. When receiving an operation of the user on the navigation bar 1, window 1 may display multiple icons 1, including a direction rotation control 1; window 2 may include a navigation bar 2. When receiving an operation of the user on the navigation bar 2, window 2 may display multiple icons 2, including a direction rotation control 2. The bottom bar module monitors the operations on the direction rotation control 1 and the direction rotation control 2 respectively through the control monitoring function.
[0226] The specific implementation of navigation bar 1 can be found in Fig. 9 The interface shown is 11- Fig.14 The specific implementation of multiple icons 1 can be found in Fig.13 The specific implementation of the direction rotation control 1 can be Fig.13 Description of control 1008 in interface 15 shown.
[0227] Thus, the electronic device can adjust the display direction of window 1 based on the operation on direction rotation control 1. Similarly, the display direction of window 2 can be adjusted based on the operation on direction rotation control 2.
[0228] For example, when the direction rotation control 1 is used to switch the display direction of window 1 between landscape and reverse landscape, and the current display direction of window 1 is landscape, the electronic device can switch the display direction of window 1 to reverse landscape based on the operation on the direction rotation control 1.
[0229] In other embodiments, window 1 may include a navigation bar 1. When receiving an operation of the user on the navigation bar 1, window 1 may display multiple icons 3, including a direction icon 1. When receiving an operation of the user on the direction icon 1, window 1 may display multiple direction rotation controls 1, and the multiple direction rotation controls 1 correspond to multiple display directions respectively; window 2 may include a navigation bar 2. When receiving an operation of the user on the navigation bar 2, window 2 may display multiple icons 4, including a direction icon 2. When receiving an operation of the user on the direction icon 2, window 2 may display multiple direction rotation controls 2, and the multiple direction rotation controls 2 correspond to multiple display directions respectively. The bottom bar module monitors the operations on the multiple direction rotation controls 1 and the multiple direction rotation controls 2 respectively through the control monitoring function.
[0230] The specific implementation of navigation bar 1 can be found in Fig. 9 The interface shown is 11- Fig.14 The specific implementation of multiple icons 3 can be found in Fig.10 The interface shown is 12- Fig.11 The description of multiple controls in the control 1004 in the interface 13 shown in FIG. The specific implementation of the direction icon 1 can be found in Fig.10 The interface shown is 12- Fig.11 The specific implementation of the multi-directional rotation control 1 can be Fig.11 Descriptions of multiple controls in controls 1006 in interface 13 are shown.
[0231] Thus, the electronic device can rotate the control 1 in one of the multiple directions (eg Figure 7 The display direction of window 1 can be adjusted by operating on a control 1007 in the control. Similarly, the display direction of window 2 can be adjusted based on an operation on one of the rotation controls 2 in multiple directions.
[0232] For example, when one of the multiple directional rotation controls 1 is used to switch the display direction of window 1 to the anti-landscape direction, and the current display direction of window 1 is the landscape direction, the electronic device can switch the display direction of window 1 to the anti-landscape direction based on the operation on the directional rotation control 1.
[0233] In other embodiments, multiple navigation points may be included between window 1 and window 2. When the user operates on the multiple navigation points, multiple icons 5 may be displayed between window 1 and window 2, and the multiple icons 5 include a control icon for window 1 and a control icon for window 2. When the user operates on the control icon of window 1, window 1 may display the above-mentioned multiple icons 1, so that the bottom bar module monitors the operations on the direction rotation control 1 and the direction rotation control 2 respectively through the control monitoring function; or, when the user operates on the control icon of window 1, window 1 may display the above-mentioned multiple icons 3, so that the bottom bar module monitors the operations on the multiple direction rotation controls 1 and the multiple direction rotation controls 2 respectively through the control monitoring function.
[0234] The specific implementation of multiple navigation points can be found in Fig. 9 The interface shown is 11- Fig.13 The specific implementation of multiple icons 5 can be found in Fig.14 The detailed implementation of the control icons of window 1 can be found in Fig.14 A description of controls 1010 in interface 16 is shown.
[0235] S15. The bottom bar module monitors operation 1 performed by the user on the direction rotation control.
[0236] Operation 1 is used to switch the display direction of the window.
[0237] If the user wants to switch the display direction of window 1 , operation 1 is performed on the direction rotation control in window 1 , thereby, the bottom bar module can monitor operation 1 performed by the user on the direction rotation control in window 1 .
[0238] If the user wants to switch the display direction of window 2 , operation 1 is performed on the direction rotation control in window 2 , and thus, the bottom bar module can monitor operation 1 performed by the user on the direction rotation control in window 2 .
[0239] S16. The bottom bar module responds to operation 1 and determines the identification information and target direction of the window corresponding to operation 1.
[0240] The target direction is used to indicate the display direction of the window corresponding to operation 1 to be switched.
[0241] When operation 1 is used to instruct to switch the display direction of window 1 to the reverse landscape direction, the target direction is the reverse landscape direction.
[0242] Alternatively, when operation 1 is used to instruct to rotate the window to angle 1, and the display direction of the window after rotation to angle 1 is the anti-landscape direction, the target direction is the anti-landscape direction.
[0243] For example, the current display direction of window 1 is the landscape direction, and operation 1 is used to indicate that window 1 is rotated by 180°, so that the display direction of the window after rotation is the anti-landscape direction, that is, the target direction is the anti-landscape direction.
[0244] The identification information is used to identify the window corresponding to operation 1, that is, the window whose display direction is to be switched, and the identification information may include multiple situations.
[0245] Case 1: When application 1 corresponding to window 1 and application 2 corresponding to window 2 are the same application program, the identification information of window 1 is the login account identification of application 1, and the identification information of window 2 is the login account identification of application 2.
[0246] For example, application 1 corresponding to window 1 and application 2 corresponding to window 2 are both game applications. The identification information of window 1 is the login account identification of application 1, namely userid-0, and the identification information of window 2 is the login account identification of application 2, namely userid-10.
[0247] Case 2: When application 1 corresponding to window 1 and application 2 corresponding to window 2 are different applications, the identification information of window 1 is the package name of application 1, the name of application 1 or the process name of application 1, and the identification information of window 2 is the package name of logged-in application 2, the name of application 2 or the process name of application 2.
[0248] For example, application 1 corresponding to window 1 is a game application, application 2 corresponding to window 2 is an instant messaging application, the identification information of window 1 is the package name of the game application, and the identification information of window 2 is the package name of the instant messaging application.
[0249] Based on the above description, when the bottom bar module receives operation 1, it can determine the identification information and target direction of the window corresponding to operation 1 according to operation 1.
[0250] For example, if the user performs operation 1 in window 1, operation 1 is used to indicate that the display direction of window 1 is switched from landscape to reverse landscape, and application 1 corresponding to window 1 and application 2 corresponding to window 2 are the same game application, the bottom bar module can determine that the identification information of window 1 is the login account identification of application 1, i.e. userid-0, and the bottom bar module can determine that the target direction is reverse landscape.
[0251] S17. The bottom bar module sends identification information and direction information to the multi-window manager module.
[0252] The multi-window manager module is a software module in the application framework layer of the electronic device. The multi-window manager module is used to process events of multiple windows in the display interface.
[0253] The direction information includes the display direction to be switched.
[0254] Based on S16, the bottom bar module can determine the identification information and the direction information, so that the bottom bar module can transmit the identification information and the direction information to the multi-window manager module.
[0255] S18. The multi-window manager module receives the identification information and direction information sent by the bottom bar module.
[0256] Since the bottom bar module can transmit the identification information and direction information to the multi-window manager module, the multi-window manager module can receive the identification information and direction information sent by the bottom bar module.
[0257] S19. The multi-window manager module determines whether the automatic rotation switch is turned on.
[0258] Among them, the electronic device can display a drop-down menu, and the drop-down menu may include an automatic rotation switch; when the automatic rotation switch is turned on, the electronic device will switch the overall display direction of window 1 and window 2 as the electronic device rotates, and when the automatic rotation switch is turned off, the electronic device will not switch the overall display direction of window 1 and window 2 as the electronic device rotates.
[0259] If the automatic rotation switch is turned on, window 1 and window 2 will automatically switch the rotation direction as a whole, which will affect the individual switching of the display direction of window 1 and window 2. Therefore, before switching the display direction according to the identification information and direction information, the multi-window manager module needs to determine whether the automatic rotation switch is turned on.
[0260] When the automatic rotation switch is turned on, the multi-window manager module executes S20; when the automatic rotation switch is not turned on, the multi-window manager module does not perform an operation, that is, does not execute S20.
[0261] S20. The multi-window manager module turns off the automatic rotation switch.
[0262] If the automatic rotation switch is turned on, window 1 and window 2 will automatically switch the rotation direction as a whole, which will affect the individual switching of the display direction of window 1 and window 2. Therefore, the multi-window manager module needs to turn off the automatic rotation switch when the automatic rotation switch is turned on.
[0263] Therefore, after the automatic rotation switch is turned off, the window 1 and the window 2 do not automatically switch directions as a whole, which can ensure the stability of the switching direction of the window 1 or the window 2 alone.
[0264] S21. The multi-window manager module sends identification information and direction information to the display rotation module.
[0265] The display rotation module is a software module in the application framework layer of the electronic device and is used to transmit the information sent by the multi-window manager module.
[0266] If the automatic rotation switch is turned on, the multi-window manager module may first turn off the automatic rotation switch. When the automatic rotation switch is turned off, the multi-window manager module may send identification information and direction information to the display rotation module.
[0267] If the automatic rotation switch is not turned on, the multi-window manager module can directly send identification information and direction information to the display rotation module.
[0268] S22. The display rotation module sends identification information and direction information to the display window setting module.
[0269] The display window settings module is a software module in the application framework layer of the electronic device. The display window service module is used to transmit the information sent by the display rotation module.
[0270] After receiving the identification information and the direction information, the display rotation module may continue to transmit the identification information and the direction information to the display window setting module.
[0271] S23. The display window setting module sends identification information and direction information to the display window service module.
[0272] The display window service module (window manager service) is a software module in the application framework layer of the electronic device. The display window service module is used to transmit the information sent by the display rotation module and update the display direction according to the information.
[0273] After receiving the identification information and the direction information, the display window setting module may continue to transmit the identification information and the direction information to the display window service module.
[0274] In addition, after receiving the identification information and the direction information, the display window setting module can save the identification information and the direction information, so as to prepare data for the display window setting module to display the interface 2 according to the identification information and the direction information.
[0275] S24. The display window service module sends message 1 to the display content module.
[0276] The display content module is a software module in the application framework layer of the electronic device. The display content module is used to obtain the image in the window corresponding to operation 1 and update the display direction according to the information transmitted by the display window service module.
[0277] Message 1 carries identification information and / or direction information, and is used to instruct the display content module to obtain image 1 in the window corresponding to the identification information.
[0278] S25. The display content module obtains image 1.
[0279] Among them, Image 1 is the image in the window whose display direction is to be switched indicated by the identification information.
[0280] When the message 1 is received, the display content module may obtain the image 1 in the window corresponding to the identification information.
[0281] For example, when the window whose display direction is to be switched indicated by the identification information is window 1 , the display content module may obtain image 1 in window 1 .
[0282] For another example, when the window whose display direction is to be switched indicated by the identification information is window 2 , the display content module may obtain image 1 in window 2 .
[0283] S26. The display content module sends the image 1 to the display window setting module.
[0284] After obtaining the image 1 , the display content module may send the image 1 to the display window setting module, so as to prepare data for the display window setting module to display a dynamic picture according to the image 1 .
[0285] S27, the display window setting module displays the dynamic picture according to image 1.
[0286] The display status of the dynamic picture may include multiple situations.
[0287] In some embodiments, the dynamic picture is a picture in which the image 1 is rotated from the current angle to the preset angle in the clockwise direction, that is, the picture is rotated from the current display direction to the display direction to be switched in the clockwise direction.
[0288] The current angle and the preset angle are both the angles between the screen of the electronic device and the window corresponding to the image 1 .
[0289] For example, when the current angle is 0°, the display direction corresponding to the current angle is the landscape direction, the preset angle is 180°, and the display direction to be switched is the anti-landscape direction, the dynamic picture is the picture of image 1 rotated from 0° to 180° in a clockwise direction, that is, the picture rotated from the landscape direction to the anti-landscape direction in a clockwise direction.
[0290] In other embodiments, the dynamic picture is a picture in which the image 1 is rotated counterclockwise from the current angle to the preset angle, that is, a picture in which the image 1 is rotated counterclockwise from the current display direction to the display direction to be switched.
[0291] For example, when the current angle is 0°, the display direction corresponding to the current angle is the landscape direction, the preset angle is 180°, and the display direction to be switched is the anti-landscape direction, the dynamic picture is the picture of image 1 rotated from 0° to 180° counterclockwise, that is, the picture rotated from the landscape direction to the anti-landscape direction counterclockwise.
[0292] This application does not limit the display status of dynamic images.
[0293] It should be noted that, when the display window setting module displays a dynamic image in one of the windows according to the image 1, the image in the other window remains unchanged.
[0294] For example, when the window whose display direction is to be switched indicated by the identification information is window 1, the display window setting module displays a dynamic image in window 1 according to image 1 in window 1, while the image in window 2 remains unchanged.
[0295] For another example, when the window whose display direction is to be switched indicated by the identification information is window 2, the display window setting module displays a dynamic image in window 2 according to image 1 in window 2, while the image in window 1 remains unchanged.
[0296] Based on the above description, the display window setting module displays a dynamic picture according to Image 1, which can not only remind the user that the display direction of the window is switching, but also provide the user with visual interaction, making the process of switching the display direction of the window more intuitive and enjoyable.
[0297] S28. After the dynamic picture is displayed, the display window setting module displays interface 2 according to the identification information and the direction information, and the display directions of window 1 and window 2 in interface 1 are different.
[0298] Since the identification information is used to identify the window whose display direction is to be switched, and the direction information is used to indicate the direction to be switched, after the dynamic picture display is finished, the display window setting module can display interface 2 according to the identification information and the direction information, and the display directions of window 1 and window 2 in interface 1 are different.
[0299] For example, when the window whose display direction is to be switched as indicated by the identification information is window 1, the display direction to be switched as indicated by the direction information is the reverse landscape direction, the current display direction of window 1 is the landscape direction, and the current display direction of window 2 is the landscape direction, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 1 is changed to the reverse landscape direction, and the display direction of window 2 remains unchanged and is still the landscape direction, and the display direction of window 1 is opposite to that of window 2.
[0300] For another example, when the window whose display direction is to be switched as indicated by the identification information is window 2, the display direction to be switched as indicated by the direction information is the reverse landscape direction, the current display direction of window 1 is the landscape direction, and the current display direction of window 2 is the landscape direction, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 2 is changed to the reverse landscape direction, and the display direction of window 1 remains unchanged and is still the landscape direction, and the display direction of window 1 is opposite to that of window 2.
[0301] When the display directions of window 1 and window 2 are opposite, two users can operate face to face on window 1 and window 2 of the electronic device respectively. For example, window 1 and window 2 correspond to the same application, but have different login accounts. User 1 and user 2 can play games face to face (open two games against each other), or user 1 and user 2 can collaborate on work face to face.
[0302] For example, when the window whose display direction is to be switched as indicated by the identification information is window 1, the display direction to be switched as indicated by the direction information is portrait, the current display direction of window 1 is landscape, and the current display direction of window 2 is landscape, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 1 is changed to portrait, while the display direction of window 2 remains unchanged and is still landscape. The display direction of window 1 is different from that of window 2.
[0303] For another example, the window whose display direction is to be switched as indicated by the identification information is window 2, the display direction to be switched as indicated by the direction information is portrait, the current display direction of window 1 is landscape, and the current display direction of window 2 is landscape, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 2 is changed to portrait, while the display direction of window 1 remains unchanged and is still landscape. The display direction of window 1 is different from that of window 2.
[0304] When the display orientation of window 1 becomes portrait and the display orientation of window 2 becomes landscape, or when the display orientation of window 2 becomes portrait and the display orientation of window 1 becomes landscape, two users can sit adjacent to each other and perform operations on window 1 and window 2 of the electronic device respectively.
[0305] The present application is also applicable to a scenario in which, when the display directions of window 1 and window 2 are different, the display directions of window 1 and window 2 are made the same by switching the display direction of window 1 or window 2.
[0306] For example, when the window whose display direction is to be switched indicated by the identification information is window 1, the display direction to be switched indicated by the direction information is landscape, the current display direction of window 1 is portrait, and the current display direction of window 2 is landscape, the display window setting module changes the display direction of window 1 to landscape in the displayed interface 2 according to the identification information and the direction information, and the display direction of window 2 remains unchanged and is still landscape. The display direction of window 1 is the same as that of window 2.
[0307] For another example, when the window whose display direction is to be switched indicated by the identification information is window 2, the display direction to be switched indicated by the direction information is landscape, the current display direction of window 1 is landscape, and the current display direction of window 2 is portrait, the display window setting module changes the display direction of window 2 to landscape in the displayed interface 2 according to the identification information and the direction information, and the display direction of window 1 remains unchanged and is still landscape. The display direction of window 1 is the same as that of window 2.
[0308] The present application is also applicable to a scenario in which, when the display directions of window 1 and window 2 are different, the display direction of window 1 or window 2 is switched so that the display direction of window 1 or window 2 is different from the display direction before the switching.
[0309] For example, when the window whose display direction is to be switched as indicated by the identification information is window 1, the display direction to be switched as indicated by the direction information is the reverse landscape direction, the current display direction of window 1 is the portrait direction, and the current display direction of window 2 is the landscape direction, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 1 is changed to the reverse landscape direction, and the display direction of window 2 remains unchanged and is still the landscape direction. The display direction of window 1 is different from that of window 2.
[0310] For another example, when the window whose display direction is to be switched as indicated by the identification information is window 2, the display direction to be switched as indicated by the direction information is the reverse landscape direction, the current display direction of window 1 is the landscape direction, and the current display direction of window 2 is the portrait direction, the display window setting module displays interface 2 according to the identification information and the direction information, in which the display direction of window 2 is changed to the reverse landscape direction, and the display direction of window 1 remains unchanged and is still the portrait direction. The display direction of window 1 is different from that of window 2.
[0311] Optionally, after displaying the second interface ends, the electronic device can also restore the automatic rotation function.
[0312] Specifically, in S19, if the automatic rotation switch is not turned on, the operation of turning on the automatic rotation switch is not performed after the second interface is displayed; if in S19, if the automatic rotation switch is turned on, the operation of turning on the automatic rotation switch can also be performed after the second interface is displayed.
[0313] In some embodiments, the display content module can send a notification to turn on the automatic rotation switch to the multi-window manager module through the display window service module, the display window setting module, and the display rotation module. Upon receiving the notification, the multi-window manager module can turn on the automatic rotation switch.
[0314] In some other embodiments, upon receiving an operation from a user to turn on an automatic rotation switch, the multi-window manager module may turn on the automatic rotation switch.
[0315] It should be noted that the application in existing game battle scenarios is one application, the logged-in account is one account, and the window displayed in the interface is one window. The electronic device does not need to have the function of opening parallel space or application clones, and there is no need to open parallel space or application clones. The operations of two users in one window are associated; while in scenarios such as dual-opening game battles in the present application, two applications can be logged in at the same time through the parallel space or application clone function, and two windows are displayed. Two users can perform operations in the two windows separately, and the operations in the two windows may be unrelated.
[0316] The display direction switching method of the present application is that window 1 and window 2 in interface 1 are displayed in split screen, and direction rotation controls are respectively provided in window 1 and window 2. After receiving an operation on the direction rotation control in any window, the window corresponding to the operation can be treated as a separate window and rotated to switch the display direction of the window. The display direction of the other window remains unchanged so that the display directions of the two windows are different. The switching of the display directions of window 1 and window 2 does not depend on the automatic rotation function of the electronic device, and window 1 and window 2 will not be rotated as a whole to switch the direction, thereby achieving the effect of different display directions of the two windows. In this way, it can be suitable for the scenario where two users operate the two windows separately on different sides of the electronic device. When the display directions of the two windows are completely opposite, it can be suitable for the scenario where two users operate the two windows separately on opposite sides (face to face) of the electronic device, thereby improving the user experience.
[0317] Furthermore, the window whose display direction is to be switched can be accurately determined through the identification information corresponding to the window operated by the direction rotation control, so that the electronic device can accurately switch the display direction of the window whose display direction is to be switched.
[0318] In addition, since the automatic rotation switch is turned on, window 1 and window 2 will automatically switch the rotation direction as a whole, which will affect the individual switching of the display direction of window 1 and window 2. Therefore, when the automatic rotation switch is turned on, the multi-window manager module needs to turn off the automatic rotation switch and then execute the next step. In this way, after the automatic rotation switch is turned off, window 1 and window 2 do not automatically switch directions as a whole, which can ensure the stability of the individual switching of directions of window 1 or window 2.
[0319] In addition, before displaying the interface after switching the display direction of the window, the electronic device can also display a dynamic picture in the window whose display direction is to be switched. The dynamic picture can not only remind the user that the display direction of the window is being switched, but also provide the user with visual interaction, making the process of switching the display direction of the window more intuitive and enjoyable.
[0320] Based on some of the aforementioned embodiments, the method for switching the display direction provided by the present application is introduced below.
[0321] Exemplarily, the present application provides a method for switching a display direction.
[0322] For the sake of convenience, the display direction switching method of the present application can be: Figure 2 to be executed by the electronic devices in the
[0323] See also Fig.16 , Fig.16 A schematic flow chart of a method for switching a display direction provided in an embodiment of the present application is shown.
[0324] like Fig.16 As shown, the display direction switching method provided by the present application may include:
[0325] S301. Display a first interface, where the first interface includes a first window with a display direction in a first direction and a second window with a display direction in a second direction.
[0326] The specific implementation of the first interface can be found in Fig. 9 The interface 11 shown, and Fig.15 Description of interface 1 in .
[0327] For the specific implementation of the first direction, please refer to Fig. 9 The display direction of window 1 is shown, and Fig.15 Description of the display direction of window 1 in interface 1.
[0328] For the specific implementation of the second direction, please refer to Fig. 9 The display direction of window 2 is shown, and Fig.15 Description of the display direction of window 2 in interface 1.
[0329] The specific implementation of S301 can be seen in interface 11 shown in 9, and Fig.15 The relevant description of S13 in is not repeated here.
[0330] S302. In response to the first operation, display a second interface, wherein the second interface includes a first window whose display direction is a third direction and a second window whose display direction is a second direction, where the third direction is different from the first direction.
[0331] The specific implementation of the first operation can be found in Fig.11 Operations on the control 1007, Fig.13 Operations on the control 1008, and Fig.15 Description of operation 1 in .
[0332] For the specific implementation of the third direction, please refer to Fig.12 The display direction of window 1 is shown, and Fig.15 Description of the display direction of window 1 in interface 2.
[0333] For the specific implementation of S302, please refer to Fig.11 The interface shown is 13- Fig.12 The interface shown in 14, Fig.13 The interface shown is 15- Fig.12 The interface shown in 14, Fig.14 The interface shown is 16- Fig.12 The interface shown in 14, Fig.14 The interface shown is 16- Fig.12 The interface 14 shown, and Fig.15 The description of S16-S28 in the description will not be repeated here.
[0334] The display direction switching method of the present application includes a first window and a second window in a first interface. After receiving a first operation on the first window, the first window corresponding to the first operation can be rotated as a separate window to switch the display direction of the first window from the first direction to a third direction. In the second interface obtained after switching the direction, the display direction of the first window is changed to the third direction, and the display direction of the second window remains in the second direction. It can be seen that the switching of the display direction of the first window does not depend on the automatic rotation function of the electronic device, and the first window and the second window will not be rotated as a whole to switch the direction, thereby achieving the effect of switching the display direction of the first window alone.
[0335] In some embodiments, the display direction switching method provided by the present application may include:
[0336] In response to a first operation on the first control, a second interface is displayed.
[0337] The specific implementation of the first control can be found in Fig.11 Middle control 1007, Fig.13 middle control 1008, and Fig.15 Description of the directional rotation controls in .
[0338] The specific implementation of the above steps can be found in Fig.11 The interface shown is 13- Fig.12 The interface shown in 14, Fig.13 The interface shown is 15- Fig.12 The interface shown in 14, Fig.14 The interface shown is 16- Fig.12 The interface shown in 14, Fig.14 The interface shown is 16- Fig.12 The interface 14 shown, and Fig.15 The description of S16-S28 in the description will not be repeated here.
[0339] In some embodiments, the display direction switching method provided by the present application may include:
[0340] Display a third interface, the third interface includes a first window with a display direction of a first direction and a second window with a display direction of a second direction, the first window includes a second control, and the second control is used to trigger display of the first control; in response to a second operation on the second control, display the first interface.
[0341] The specific implementation of the third interface can be found in Fig.10 The interface 12 shown, and Fig.13 A related description of the interface 15 is shown.
[0342] For the specific implementation of the second control, please refer to Fig.10 The control 1005 shown, and Fig. 9 The interface shown is 11- Fig.13 Relevant description of the control 1003 shown in the interface 15 shown.
[0343] The specific implementation of the above steps can be found in Fig.10 A description of the interface 12 shown, and Fig.15 The relevant description of S14 in will not be repeated here.
[0344] In some embodiments, the first interface also includes a third control, the second control is further used to trigger display of the third control, and the third control is used to switch the display direction of the first window to a fourth direction.
[0345] The specific implementation of the third control can be found in Fig.11 Relevant descriptions of the controls in control 1006 except control 1007 are shown.
[0346] The specific implementation of the above steps can be found in Fig.11 A description of the interface 13 shown, and Fig.15 The relevant description of S14 in will not be repeated here.
[0347] In some embodiments, the display orientation includes a landscape orientation, a reverse landscape orientation, a portrait orientation, or a reverse portrait orientation.
[0348] The specific implementation of the horizontal screen direction can be found in Figure 6 Related description of the display direction of the upper window shown in (a).
[0349] For details on how to implement the reverse landscape orientation, see Figure 6 Related description of the display direction of the upper window shown in (b).
[0350] For details on how to implement the vertical screen orientation, see Figure 6 Related description of the display direction of the upper window shown in (c).
[0351] For details on how to implement the reverse portrait orientation, see Figure 6 Related description of the display direction of the upper window shown in (d).
[0352] In some embodiments, the display direction switching method provided by the present application may include:
[0353] In response to the third operation, a fourth interface is displayed, wherein the fourth interface includes a first window whose display direction is a first direction and a second window whose display direction is a fifth direction, where the fifth direction is different from the second direction.
[0354] The display direction switching method of the present application, if the user wants to switch the display direction of the second window, after receiving the third operation on the second window, the second window corresponding to the third operation can be rotated as a separate window, and the display direction of the second window is switched from the second direction to the fifth direction. In the fourth interface obtained after switching the direction, the display direction of the second window is changed to the fifth direction, and the display direction of the first window remains in the first direction. It can be seen that the switching of the display direction of the first window and the second window does not depend on the automatic rotation function of the electronic device, and the first window and the second window will not be rotated as a whole to switch the direction, thereby achieving the effect of switching the display direction of the second window alone.
[0355] It should be noted that the method for switching the display direction of the second window is the same as the method for switching the display direction of the first window, and will not be described in detail here.
[0356] In some embodiments, the display direction switching method provided by the present application may include:
[0357] In response to the first operation, determining whether the automatic rotation switch is turned on; when the automatic rotation switch is turned on, turning off the automatic rotation switch; and displaying the second interface.
[0358] The specific implementation of the above steps can be found in Fig.15 The description of S19-S20 in the description will not be repeated here.
[0359] In the present application, since the automatic rotation switch is turned on, the first window and the second window will automatically switch the rotation direction as a whole, which will affect the individual switching display direction of the first window or the second window. Therefore, when the automatic rotation switch is turned on, it is necessary to turn off the automatic rotation switch and then perform the operation of switching the display direction to ensure the stability of the individual switching direction of the first window or the second window.
[0360] In some embodiments, the display direction switching method provided by the present application may include:
[0361] Based on the first operation, identification information and direction information are determined, where the identification information is used to identify the first window, and the direction information is used to indicate the display direction to be switched indicated by the first operation; and the second interface is displayed according to the identification information and the direction information.
[0362] The identification information of the first window can be found in Fig.15 S17-S18, and S21-S28 in it describe the identification information.
[0363] For the first window's orientation information, see Fig.15 S17-S18, and S21-S28 in the description of direction information.
[0364] The specific implementation of the above steps can be found in Fig.15 The descriptions of S17-S18 and S21-S28 in the description will not be repeated here.
[0365] In some embodiments, the display direction switching method provided by the present application may include:
[0366] According to the identification information, a first image in the first window is obtained; according to the first image, a dynamic picture is displayed in the first window, and the dynamic picture is used to display the switching state of the display direction of the first window; when the dynamic picture display ends, a second interface is displayed according to the identification information and the direction information.
[0367] The specific implementation of the above steps can be found in Fig.15 The description of S25-S27 in the description will not be repeated here.
[0368] In some embodiments, the first window is a window of a first application, and the second window is a window of a second application. When the first application and the second application are different applications, the identification information of the first window includes at least one of the package name of the first application, the name of the first application, and the process name of the first application.
[0369] The identification information of the first window can be found in Fig.15S17-S18, and S21-S28 in it describe the identification information.
[0370] For example, the first application is an instant messaging application, the second application is a game application, and the identification information of the first window is the package name of the first application.
[0371] In some embodiments, the first window is a window of a first application, and the second window is a window of a second application. When the first application and the second application are the same application, login accounts of the first application and the second application are different.
[0372] For example, the first application is a game application, the second application is a game application, the login account of the first application is "Mac", and the login account of the second application is "Cynthia".
[0373] In some embodiments, when the first application and the second application are the same application, the identification information of the first window includes a login account identification of the first application.
[0374] The identification information of the first window can be found in Fig.15 S17-S18, and S21-S28 in it describe the identification information.
[0375] For example, the first application is a game application, the second application is a game application, and the identification information of the first window is the login account of the first application.
[0376] In some embodiments, the first direction and the second direction are the same display direction, and the third direction and the second direction are opposite directions.
[0377] For example, the first direction and the second direction are both landscape directions, and the third direction is a reverse landscape direction.
[0378] In some embodiments, the relationship between the first window and the second window includes any one of the following relationships:
[0379] The first window and the second window are displayed in split screen; the first window is displayed in full screen, and the second window is displayed floating in the second window; and the second window is displayed in full screen, and the first window is displayed floating in the second window.
[0380] Exemplarily, the present application provides an electronic device, the electronic device comprising a first software module and a second software module;
[0381] The first software module is used to display a first interface, wherein the first interface includes a first window with a display direction in the first direction and a second window with a display direction in the second direction;
[0382] The second software module is used to display a second interface in response to the first operation, wherein the second interface includes a first window with a display direction of a third direction and a second window with a display direction of a second direction, and the third direction is different from the first direction.
[0383] Among them, the electronic device may include a launcher module (luncher), a bottom bar module (dock bar), a multi-window manager module (multi window manager), a display rotation module (display rotation), a display window settings module (display window settings), a display window service module (window manager service) and a display content module (display content).
[0384] The specific implementation of the first software module can be found in Fig.15 The description of the launcher module in is not repeated here.
[0385] The specific implementation of the second software module can be found in Fig.15 The descriptions of the dock bar module, display rotation module, display window settings module, window manager service module, and display content module are not repeated here.
[0386] The specific implementation of the above module for executing the display direction switching method of the present application can be found in Fig.15 The relevant descriptions of S11-S28 in are not repeated here.
[0387] In some embodiments, the electronic device further includes a third software module; the third software module is used to determine whether the automatic rotation switch is turned on, and when the automatic rotation switch is turned on, turn off the automatic rotation switch.
[0388] The specific implementation of the third software module can be found in Fig.15 The description of the multi-window manager module (multiwindow manager) in is not repeated here.
[0389] Exemplarily, the present application provides an electronic device, including a processor; when the processor executes computer code or instructions in the memory, the electronic device executes the display direction switching method in the above embodiment.
[0390] Exemplarily, the present application provides an electronic device, comprising: a memory and a processor; the memory is coupled to the processor, and the memory is used to store program codes or instructions; the processor is used to call the program codes or instructions in the memory so that the electronic device executes the display direction switching method in the previous embodiment.
[0391] Illustratively, the present application provides a chip system, which is applied to an electronic device including a memory, a display screen and a sensor; the chip system includes: one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive signals from the memory and send signals to the processor, and the signals include computer codes or instructions stored in the memory; when the processor executes the computer code or instructions, the electronic device executes the display direction switching method in the previous embodiment.
[0392] Exemplarily, the present application provides a computer-readable storage medium, in which codes or instructions are stored. When the codes or instructions are executed on an electronic device, the electronic device implements the method for switching the display direction in the foregoing embodiment when executing the electronic device.
[0393] Exemplarily, the present application provides a computer program product, which, when executed on a computer, enables an electronic device to implement the method for switching the display direction in the foregoing embodiment.
[0394] In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk (SSD)), etc.
[0395] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Claims
1. A method for switching a display direction, characterized in that: Applied to electronic equipment, the method comprises: Displaying the first window of the first application in full screen; When the first window of the first application is displayed in full screen, in response to a fourth operation, a first interface is displayed, the fourth operation is used to trigger opening of a second window of the first application, the first interface includes the first window with a display direction of a first direction and the second window with a display direction of a second direction, the first window and the second window are displayed in split screens, the first direction and the second direction are the same display direction, the login accounts of the first application in the first window and the second window are different, the second window is started by a parallel space function of the electronic device, the parallel space function is used to run at least two identical applications in the electronic device, the first window includes a first control, the first control is used to adjust the display direction of the first window from the first direction to a third direction, the third direction is different from the first direction; In response to a first operation on the first control, a second interface is displayed, wherein the second interface includes the first window whose display direction is the third direction and the second window whose display direction is the second direction, wherein the third direction and the second direction are opposite directions, and the first window and the second window in the second interface are used for two users to perform operations face to face in the first window and the second window respectively.
2. The method according to claim 1, characterized in that The step of displaying the first interface in response to the fourth operation includes: In response to the fourth operation, a third interface is displayed, wherein the third interface includes the first window whose display direction is the first direction and the second window whose display direction is the second direction, wherein the first window includes a second control, wherein the second control is used to trigger display of a plurality of first direction rotation controls, wherein any one of the plurality of first direction rotation controls is used to adjust the display direction of the first window from the first direction to a direction different from the first direction, and wherein the second window includes a fourth control, wherein the fourth control is used to trigger display of a plurality of second direction rotation controls, wherein any one of the plurality of second direction rotation controls is used to adjust the display direction of the second window from the second direction to a direction different from the second direction; In response to a second operation on the second control, the first interface is displayed, wherein the first interface includes the multiple first-direction rotation controls, and the first control is a control among the multiple first-direction rotation controls that adjusts the display direction of the first window from the first direction to the third direction.
3. The method according to claim 2, characterized in that The method further comprises: In response to a fifth operation on a third control, a fifth interface is displayed, wherein the third control is a control among the multiple first-direction rotation controls that adjusts the display direction of the first window from the first direction to a fourth direction, and the fifth interface includes the first window having a display direction of the fourth direction and the second window having a display direction of the second direction, the fourth direction and the second direction are different directions, and the first window and the second window in the fifth interface are used for two users to perform operations on the first window and the second window respectively in different directions of the electronic device.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: In response to a third operation on a fourth control, a fourth interface is displayed, wherein the fourth interface includes the first window whose display direction is the first direction and the second window whose display direction is the second direction, and the second window in the fourth interface includes the multiple second direction rotation controls.
5. The method according to any one of claims 1 to 4, characterized in that The displaying a second interface in response to a first operation on the first control includes: In response to the first operation on the first control, determining whether an automatic rotation switch is turned on; When the automatic rotation switch is turned on, turning off the automatic rotation switch; Based on the first operation, determine identification information and direction information, the identification information is used to identify the first window, and the direction information is used to indicate the display direction to be switched indicated by the first operation; The second interface is displayed according to the identification information and the direction information.
6. The method according to claim 5, characterized in that The method further comprises: When an operation of turning on the automatic rotation switch is received and it is detected that the screen direction of the electronic device is switched to a screen direction different from the current screen direction, a sixth interface is displayed. The sixth interface is switched from the second interface as a whole as the screen direction of the electronic device is switched. The sixth interface includes the first window with a display direction of a fifth direction and the second window with a display direction of a sixth direction. The fifth direction and the sixth direction are opposite directions. The first window and the second window in the sixth interface are used for two users to perform operations face to face in the first window and the second window respectively.
7. The method according to claim 5 or 6, characterized in that: The displaying of the second interface according to the identification information and the direction information includes: Acquire a first image in the first window according to the identification information; Displaying a dynamic picture in the first window according to the first image, wherein the dynamic picture is used to display a switching state of a display direction of the first window; When the dynamic picture display ends, a second interface is displayed according to the identification information and the direction information.
8. The method according to any one of claims 5 to 7, characterized in that The identification information of the first window includes a login account identification of the first application.
9. The method according to any one of claims 5 to 7, characterized in that The method further comprises: In response to a sixth operation, a seventh interface is displayed, wherein the sixth operation is used to trigger opening a second window associated with a second application, and when the first application and the second application are different applications, the identification information of the first window includes at least one of a package name of the first application, a name of the first application, and a process name of the first application.
10. The method according to any one of claims 1 to 9, characterized in that The display direction includes a landscape direction, a reverse landscape direction, a portrait direction or a reverse portrait direction.
11. An electronic device, characterized in that: The electronic device comprises a first software module and a second software module; The first software module is used to display a first window of a first application program in full screen; When the first window of the first application is displayed in full screen, in response to a fourth operation, a first interface is displayed, the fourth operation is used to trigger opening of a second window of the first application, the first interface includes the first window with a display direction of a first direction and the second window with a display direction of a second direction, the first window and the second window are displayed in split screens, the first direction and the second direction are the same display direction, the login accounts of the first application in the first window and the second window are different, the second window is started by a parallel space function of the electronic device, the parallel space function is used to run at least two identical applications in the electronic device, the first window includes a first control, the first control is used to adjust the display direction of the first window from the first direction to a third direction, the third direction is different from the first direction; The second software module is used to display a second interface in response to a first operation on the first control, wherein the second interface includes the first window having a display direction in a third direction and the second window having a display direction in the second direction, wherein the third direction and the second direction are opposite directions, and the first window and the second window in the second interface are used for two users to perform operations face to face in the first window and the second window respectively.
12. An electronic device, characterized in that: include: One or more processors, a memory, and one or more computer programs; wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the display direction switching method as described in any one of claims 1 to 11.
13. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the display direction switching method as described in any one of claims 1 to 11.
14. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on a terminal device, the electronic device is enabled to execute the display direction switching method according to any one of claims 1 to 11.