Application interface display method, electronic equipment and storage medium
Patent Information
- Application Number
- CN202380069361.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-11-21
- Filing Date
- 2023-08-17
- Publication Date
- 2025-05-30
AI Technical Summary
Existing electronic devices cannot display the application interface of the application well in the split-screen function usage scenario, which affects the user experience.
By displaying the application interface in a split-screen window with a non-full split-screen window size and an interface layout direction that is different from the device screen direction, the application interface is prevented from being stretched and deformed due to incompatibility with the split-screen direction, and a compatibility mode is provided to meet User needs.
It effectively improves the user experience and ensures that the application interface is displayed normally in split-screen scenarios to meet user needs.
Smart Images

Figure CN120077352A_ABST
Abstract
Description
Application interface display method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 21, 2022, with application number 202211462499.9 and application name “Application interface display method, electronic device and storage medium”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of split-screen technology, and in particular to an application interface display method, electronic device, and storage medium. Background Art
[0003] With the development of electronic technology and the increase in applications installed in electronic devices, more and more electronic devices such as mobile phones and tablets can support split-screen functions, and electronic devices can display application interfaces of multiple applications on the screen in split screens.
[0004] However, in the actual use of the split-screen function of electronic devices, it has been found that not all applications are well adapted or compatible with split-screen technology. For example, in split-screen scenarios of left and right and top and bottom, an application often supports left and right split screen, but not top and bottom split screen. As a result, the electronic device can display the application interface of the application normally when the screen is split left and right, but cannot display the application interface of the application normally when the screen is split top and bottom.
[0005] Therefore, in the prior art, there is a problem that the electronic device cannot well display the application interface of the application program in the use scenario of the split-screen function, which affects the user experience.
[0006] Summary of the Invention
[0007] This application provides an application interface display method, electronic device, and storage medium that can solve the problem in the prior art that electronic devices cannot properly display the application interface of an application in a split-screen function usage scenario, thereby affecting the user experience. That is, the electronic device can properly display the application interface of an application in a split-screen function usage scenario, thereby improving the user experience.
[0008] To solve the above technical problems, in the first aspect, an embodiment of the present application provides an application interface display method, which is applied to an electronic device, and the method includes: displaying a first interface; receiving a first operation; and displaying a second interface in response to the first operation, wherein the second interface includes a first split-screen window and a second split-screen window displayed in a split-screen manner, wherein the first split-screen window displays a first application interface corresponding to a first application, and the first application interface is displayed in the first split-screen window with a size that does not fully cover the first split-screen window, and the interface layout direction of the first application interface is different from the current screen direction of the electronic device.
[0009] In this implementation, the first application interface is displayed in the first split-screen window with a size that is not fully covered by the first split-screen window, and the interface layout direction of the first application interface is different from the current screen direction of the electronic device, that is, the electronic device displays the first application interface in the first split-screen window with a size that is not fully covered by the first split-screen window, and with an interface layout direction that is different from the current screen direction of the electronic device (that is, with an interface layout direction supported by the first application). In this way, the electronic device can normally display the first application interface of the first application in the first split-screen window, avoiding the problem that the first application interface cannot adapt well to the split-screen direction of the first split-screen window (that is, the current screen direction of the electronic device), and if it is displayed in the first split-screen window with the size that is fully covered by the first split-screen window and with the same interface layout direction as the current screen direction of the electronic device, it will be stretched, deformed, disproportioned, etc., which affects the normal use of the user. That is, the electronic device can display the first application interface that meets the user's usage needs in the first split-screen window, thereby effectively improving the user experience.
[0010] In a possible implementation of the first aspect above, a second application interface corresponding to the second application is displayed in the second split-screen window, and the second application interface is displayed in the second split-screen window with a size that fully covers the second split-screen window, and the interface layout direction of the second application interface is the same as the current screen direction of the electronic device.
[0011] In this implementation, the second application interface is displayed in the second split-screen window at a size that fully covers the second split-screen window, and the interface layout direction of the second application interface is the same as the current screen orientation of the electronic device. That is, the electronic device displays the second application interface in the second split-screen window at a size that fully covers the second split-screen window and in an interface layout direction that is the same as the current screen orientation of the electronic device. In this way, the electronic device can normally display the second application interface of the second application that meets the user's usage needs in the second split-screen window, thereby improving the user experience.
[0012] In a possible implementation of the first aspect above, a second application interface corresponding to the second application is displayed in the second split-screen window, and the second application interface is displayed in the second split-screen window with a size that does not fully cover the second split-screen window, and the interface layout direction of the second application interface is different from the current screen direction of the electronic device.
[0013] In this implementation, the second application interface is displayed in the second split-screen window with a size that is not fully covered by the second split-screen window, and the interface layout direction of the second application interface is different from the current screen direction of the electronic device, that is, the electronic device displays the second application interface in the second split-screen window with a size that is not fully covered by the second split-screen window, and with an interface layout direction that is different from the current screen direction of the electronic device (that is, with an interface layout direction supported by the second application). In this way, the electronic device can normally display the second application interface of the second application in the second split-screen window, avoiding the problem that the second application interface cannot adapt well to the split-screen direction of the second split-screen window (that is, the current screen direction of the electronic device), and if it is displayed in the second split-screen window with the size that is fully covered by the second split-screen window and with the same interface layout direction as the current screen direction of the electronic device, it will be stretched, deformed, disproportioned, etc., affecting the normal use of the user. That is, the electronic device can display the second application interface that meets the user's needs in the second split-screen window, thereby effectively improving the user experience.
[0014] In a possible implementation of the first aspect, the first interface may be a full-screen display interface of the first application, a full-screen display interface of the second application, or a display interface including a floating window. The first operation may be, for example, a split-screen operation.
[0015] In a possible implementation of the first aspect above, the second interface may also include other split-screen windows other than the first split-screen window and the second split-screen window to realize multi-window split-screen, and / or the second interface may also include a floating window other than the first split-screen window and the second split-screen window to realize simultaneous display of the floating window and the split-screen window.
[0016] In a possible implementation of the first aspect above, the size of the non-full-covered first split-screen window is a first preset size, the first preset size is any one of the first size, the second size and the third size, the first size is the size after adjusting the original interface size of the first application according to the first preset ratio, the second size is the size corresponding to the first size with an aspect ratio of the first aspect ratio, and the third size is the size corresponding to the first size with an aspect ratio of the second aspect ratio.
[0017] In this way, the electronic device can display the first application interface in the first split-screen window in the first preset size according to the first preset size corresponding to the preset first application, which can meet the user's usage requirements for the first application interface and effectively improve the user experience.
[0018] Among them, the first size, the second size, the third size, the original interface size of the first application, the first preset ratio, the first aspect ratio, the second aspect ratio, etc. can all be set as needed.
[0019] In a possible implementation of the first aspect above, the size of the non-full-covered second split-screen window is a second preset size, the second preset size is any one of a fourth size, a fifth size, and a sixth size, the fourth size is the size after adjusting the original interface size of the second application according to the second preset ratio, the fifth size is the size corresponding to the fourth size with an aspect ratio of the third aspect ratio, and the sixth size is the size corresponding to the fourth size with an aspect ratio of the fourth aspect ratio.
[0020] In this way, the electronic device can display the second application interface in the second split-screen window in the second preset size according to the second preset size corresponding to the preset second application, which can meet the user's usage requirements for the second application interface and effectively improve the user experience.
[0021] Among them, the fourth size, the fifth size, the sixth size, the original interface size of the second application, the second preset ratio, the third aspect ratio, the fourth aspect ratio, etc. can all be set as needed.
[0022] In addition, the first size, the second size, the third size and the fourth size, the fifth size, and the sixth size may be the same size or completely different. The original interface size of the first application and the original interface size of the second application may be the same or different. The first preset ratio and the second preset ratio may be the same or different. The first aspect ratio, the second aspect ratio and the third aspect ratio and the fourth aspect ratio may be the same ratio or completely different. The size, preset ratio, aspect ratio, etc. can be selected or set according to the application and user requirements.
[0023] In a possible implementation of the first aspect above, the function bar is not displayed in the first split-screen window that displays the application interface in a non-full-screen manner, and the function bar is displayed in the second split-screen window that displays the application interface in a full-screen manner.
[0024] For the second split-screen window displaying an application interface displayed at the size of a full-screen split-screen window, a function bar can be displayed, so that the user can perform further operations on the second split-screen window. For the first split-screen window displaying an application interface displayed at the size of a non-full-screen split-screen window, the function bar can be not displayed, so that the user can better use the first application interface in the first split-screen window and improve the user experience.
[0025] In a possible implementation of the first aspect above, in response to the first operation, the second interface is displayed, including: in response to the first operation, according to the screen direction of the electronic device, the interface layout direction supported by the application to be split-screen, and the interface size adjustment capability, determining the display method of the application interface of the application to be split-screen in the corresponding split-screen window; and displaying the second interface in the determined display method.
[0026] In this way, the electronic device can conveniently and accurately determine whether the application to be split-screen can adapt well to the current split-screen window based on the current screen orientation of the electronic device and the interface layout direction and interface size adjustment capability supported by the application to be split-screen, thereby conveniently and accurately determining how to display the corresponding application interface in the corresponding split-screen window, so as to display the application interface that meets the user's usage needs, thereby effectively improving the user experience.
[0027] In a possible implementation of the first aspect above, the display method of the application interface of the application to be split screen in the corresponding split-screen window is determined according to the screen orientation of the electronic device, the interface layout direction supported by the application to be split screen, and the interface size adjustment capability, including: if the application to be split screen supports the same interface layout direction as the current screen orientation of the electronic device, or if the interface size adjustment capability of the application to be split screen is adjustable size, it means that the application to be split screen can adapt to the current split screen window well, and in the corresponding split screen window, the application interface of the application to be split screen is displayed with the size of the full-screen window and the same interface layout direction as the current screen orientation of the electronic device; if the application to be split screen does not support the same interface layout direction as the current screen orientation of the electronic device, and the interface size adjustment capability of the application to be split screen is not adjustable size, it means that the application to be split screen cannot adapt to the current split screen window well, and in the corresponding split screen window, the application interface of the application to be split screen is displayed with the size of the non-full-screen window and the interface layout direction different from the current screen orientation of the electronic device.
[0028] In this way, the electronic device can conveniently and accurately determine whether the application to be split-screen can adapt well to the current split-screen window based on the current screen orientation of the electronic device and the interface layout direction and interface size adjustment capability supported by the application to be split-screen, thereby conveniently and accurately determining how to display the corresponding application interface in the corresponding split-screen window, so as to display the application interface that meets the user's usage needs, thereby effectively improving the user experience.
[0029] In a possible implementation of the first aspect above, in response to the first operation, the second interface is displayed, including: in response to the first operation, according to the screen direction of the electronic device, the interface layout direction supported by the application to be split-screen, the interface size adjustment capability of the application to be split-screen, and whether the application to be split-screen is a preset application, determining the display method of the application interface of the application to be split-screen in the corresponding split-screen window; and displaying the second interface in the determined display method.
[0030] In this way, the electronic device can conveniently and accurately determine whether the application to be split-screen can adapt well to the current split-screen window based on the screen direction of the electronic device, the interface layout direction supported by the application to be split-screen, the interface size adjustment capability of the application to be split-screen, and whether the application to be split-screen is a preset application, thereby conveniently and accurately determining how to display the corresponding application interface in the corresponding split-screen window, so as to display the application interface that meets the user's usage needs, thereby effectively improving the user experience.
[0031] In a possible implementation of the first aspect above, the preset application is an application in a preset whitelist.
[0032] The applications in the whitelist may refer to, for example, some applications that can be displayed normally in the split-screen window at a size that does not fill the split-screen window and in an interface layout direction supported by the application, and can meet the user's usage needs.
[0033] In this way, the electronic device can further determine whether the application to be split-screened can meet the user's usage needs when displayed in the split-screen window with a size that does not fill the split-screen window and with an interface layout direction supported by the application to be split-screened. If it can meet the user's usage needs, it will further determine whether it needs to be displayed in the split-screen window with a size that does not fill the split-screen window and with an interface layout direction supported by the application to be split-screened. In this way, it can be conveniently and accurately determined in which display mode the corresponding application interface in the corresponding split-screen window should be displayed, so as to display the application interface that meets the user's usage needs, effectively improving the user experience.
[0034] In a possible implementation of the first aspect above, the display method of the application interface of the application to be split in the corresponding split-screen window is determined according to the screen orientation of the electronic device, the interface layout direction supported by the application to be split, the interface size adjustment capability of the application to be split, and whether the application to be split is a preset application, including: if the application to be split supports the same interface layout direction as the current screen orientation of the electronic device, or if the application to be split is a preset application and the interface size adjustment capability of the application to be split is adjustable, it means that the application to be split can adapt well to the current split-screen window, and in the corresponding split-screen window, the application interface of the application to be split is displayed with the size of a full-screen window and with the same interface layout direction as the current screen orientation of the electronic device; if the application to be split does not support the same interface layout direction as the current screen orientation of the electronic device, and the application to be split is a preset application, and the interface size adjustment capability of the application to be split is not adjustable, it means that the application to be split cannot adapt well to the current split-screen window, and in the corresponding split-screen window, the application interface of the application to be split is displayed with the size of a non-full-screen window and with an interface layout direction different from the current screen orientation of the electronic device.
[0035] In this way, the electronic device can conveniently and accurately determine whether the application to be split-screen can adapt well to the current split-screen window based on the screen direction of the electronic device, the interface layout direction supported by the application to be split-screen, the interface size adjustment capability of the application to be split-screen, and whether the application to be split-screen is a preset application, thereby conveniently and accurately determining how to display the corresponding application interface in the corresponding split-screen window, so as to display the application interface that meets the user's usage needs, thereby effectively improving the user experience.
[0036] In a possible implementation of the first aspect, the method further includes: if the application to be split does not support an interface layout orientation that is the same as the current screen orientation of the electronic device, and the application to be split is not a preset application, indicating that the application to be split cannot meet the user's usage requirements when displayed in the split window at a size that does not fill the split window and in an interface layout orientation supported by the application to be split, and therefore the split operation corresponding to the application to be split is not performed. For example, a prompt message may pop up to inform the user that the split of the application to be split is not currently supported.
[0037] In this way, it is possible to avoid problems such as the application to be split-screen not being able to adapt well to the current split-screen window, and the application interface being stretched and deformed when displayed in split screen, thereby effectively improving the user experience.
[0038] In a possible implementation of the first aspect above, the method also includes, in any of the following cases, determining that the application to be split screen supports an interface layout direction that is the same as the current screen direction of the electronic device: the application to be split screen supports a first interface layout direction, the current screen direction of the electronic device is the first screen direction, and the first interface layout direction is the same as the first screen direction; the application to be split screen supports a second interface layout direction, the current screen direction of the electronic device is the second screen direction, and the second interface layout direction is the same as the second screen direction.
[0039] In a possible implementation of the first aspect above, the method also includes, in any of the following cases, determining that the application to be split screen does not support the same interface layout direction as the current screen direction of the electronic device: the application to be split screen supports the first interface layout direction, the current screen direction of the electronic device is the second screen direction, and the first interface layout direction and the second screen direction are different; the application to be split screen supports the second interface layout direction, the current screen direction of the electronic device is the first screen direction, and the second interface layout direction is different from the first screen direction.
[0040] In this way, the electronic device can easily and accurately determine whether the application to be split-screen supports the same interface layout direction as the current screen direction of the electronic device, thereby more accurately and conveniently determining the display method of the application interface in the corresponding split-screen window, effectively improving the display effect of the application interface, and thus effectively improving the user experience.
[0041] In a possible implementation of the first aspect above, the first interface layout direction is a vertical screen layout direction, the second interface layout direction is a horizontal screen layout direction, the first screen direction is a vertical screen direction, and the second screen direction is a horizontal screen direction.
[0042] In this way, the electronic device can determine whether the application to be split-screen supports the same interface layout direction as the current screen orientation of the electronic device based on whether the screen orientation of the electronic device is portrait or landscape, and whether the interface layout direction supported by the application is portrait or landscape, thereby more accurately and conveniently determining the display method of the application interface in the corresponding split-screen window, effectively improving the display effect of the application interface, and thus effectively improving the user experience.
[0043] In a possible implementation of the first aspect above, if the electronic device includes a display screen, the first operation is any one of the following operations: a split-screen operation; an operation of adjusting the direction of the electronic device or adjusting the direction of the display screen of the electronic device.
[0044] The first operation may be, for example, a split-screen operation performed by the user on the first interface (such as selecting a split-screen application, or switching from a floating window to a split-screen mode, etc.), or an operation in which the user rotates the display screen to adjust the direction of the electronic device or adjusts the direction of the display screen of the electronic device.
[0045] In this way, in different split-screen scenarios, electronic devices can display corresponding split-screen windows according to user operations, and display corresponding application interfaces in the corresponding split-screen windows to meet user usage needs and effectively improve user experience.
[0046] In a possible implementation of the first aspect above, if the electronic device includes at least two display screens, the first operation is any one of the following operations: a split-screen operation; an operation to adjust the direction of the electronic device, or the direction of the display screen of the electronic device; an operation to adjust the usage status of different display screens of the electronic device.
[0047] The first operation may, for example, be a split-screen operation performed by the user on the first interface to perform a split-screen operation (such as selecting a split-screen application, or switching from a floating window to a split-screen mode, etc.), or an operation in which the user rotates the display screen to adjust the direction of the electronic device or adjusts the direction of the display screen of the electronic device, or an operation in which the user folds the display screen, opens the display screen to switch between the inner and outer display screens, or switches between different display screens to adjust the usage status of different display screens of the electronic device, etc.
[0048] In this way, in different split-screen scenarios, electronic devices can display corresponding split-screen windows according to user operations, and display corresponding application interfaces in the corresponding split-screen windows to meet user usage needs and effectively improve user experience.
[0049] In a possible implementation of the first aspect above, the first split-screen window and the second split-screen window may be displayed in split-screen on the same screen or in split-screen on different screens.
[0050] In one possible implementation of the first aspect above, the electronic device may be a candy-bar electronic device with only one screen, a foldable screen electronic device with only one screen, or a foldable screen electronic device with two screens (e.g., an inner screen and an outer screen, or two outer screens, or two inner screens). Of course, the electronic device may also include three or more screens.
[0051] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program, the computer program including program instructions; a processor for executing the program instructions so that the electronic device executes the application interface display method provided by the above-mentioned first aspect and / or any possible implementation of the first aspect.
[0052] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and the program instructions are executed by an electronic device to enable the electronic device to execute an application interface display method provided by the above-mentioned first aspect and / or any possible implementation of the first aspect.
[0053] It can be understood that the beneficial effects of the second to third aspects mentioned above can also be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings used in the description of the implementation methods.
[0055] FIG1 is a schematic diagram showing an interface of a mobile phone display application interface in the prior art according to some embodiments of the present application;
[0056] FIG2 is a schematic diagram showing an interface of a mobile phone display application interface according to some embodiments of the present application;
[0057] FIG3A is a schematic diagram illustrating a correspondence between interface layout directions, interface size adjustment capabilities, and screen directions supported by an application and a display mode of the application interface according to some embodiments of the present application;
[0058] FIG3B is a schematic diagram illustrating another correspondence between the interface layout direction, interface size adjustment capability, and screen direction supported by an application and the display mode of the application interface according to some embodiments of the present application;
[0059] FIG4 is a schematic diagram showing the sizes of several display interfaces in a scenario where a mobile phone displays an application interface in a non-full-screen split-screen window size according to some embodiments of the present application;
[0060] FIG5 is a schematic structural diagram of a mobile phone according to some embodiments of the present application;
[0061] FIG6 is a schematic diagram showing a software system of a mobile phone according to some embodiments of the present application;
[0062] 7A-7G are schematic diagrams showing some display interfaces of the mobile phone 100 according to some embodiments of the present application;
[0063] FIG8 is a schematic diagram showing some display interfaces of the mobile phone 200 according to some embodiments of the present application;
[0064] FIG9 is a schematic diagram showing some display interfaces of a mobile phone 300 according to some embodiments of the present application;
[0065] FIG10 is a schematic diagram showing some display interfaces of a tablet computer 400 according to some embodiments of the present application;
[0066] FIG11 is a schematic diagram showing some other display interfaces of the mobile phone 100 according to some embodiments of the present application;
[0067] FIG12A is a schematic diagram showing a display mode of a split-screen interface according to some embodiments of the present application;
[0068] FIG12B is a schematic diagram showing another display method of a split-screen interface according to some embodiments of the present application;
[0069] FIG13A is a schematic diagram showing a display interface of the mobile phone 100 for calling an input method in a split-screen state according to some embodiments of the present application;
[0070] FIG13B is a schematic diagram showing another display interface of the mobile phone 100 for calling an input method in a split-screen state according to some embodiments of the present application;
[0071] FIG14 is a schematic diagram showing a process of switching between the full-screen state, the split-screen state, and the floating state of the mobile phone 100 according to some embodiments of the present application;
[0072] FIG15 is a schematic diagram illustrating a flow chart of an application interface display method provided by the present application according to some embodiments of the present application;
[0073] FIG16 is a flow chart showing another method for displaying an application interface provided by the present application according to some embodiments of the present application;
[0074] FIG17 is a flow chart showing another method for displaying an application interface provided by the present application according to some embodiments of the present application;
[0075] FIG18 is a flow chart illustrating another method for displaying an application interface provided by the present application, according to some embodiments of the present application;
[0076] FIG19 is a schematic diagram showing a flow chart of another method for displaying an application interface provided by the present application according to some embodiments of the present application;
[0077] FIG20 is a schematic diagram showing a flow chart of another method for displaying an application interface provided by the present application according to some embodiments of the present application;
[0078] FIG21 is a schematic diagram showing a flow chart of another method for displaying an application interface provided by the present application according to some embodiments of the present application;
[0079] FIG22A is a schematic diagram showing a size of an application interface displayed in a non-full-screen split-screen window according to some embodiments of the present application;
[0080] FIG22B is a schematic diagram showing another size of an application interface displayed in a non-full-screen split-screen window according to some embodiments of the present application;
[0081] FIG23 is a schematic structural diagram of an electronic device according to some implementations of the present application;
[0082] FIG24 is a schematic structural diagram showing a system on a chip (SoC) according to some implementations of the present application. DETAILED DESCRIPTION
[0083] The technical solution of this application will be described in further detail below with reference to the accompanying drawings.
[0084] Taking a foldable screen mobile phone as an example of an electronic device provided by the implementation method of this application, when using the split-screen function (also called the application split-screen function) of the foldable screen mobile phone, the foldable screen mobile phone defaults to displaying the application interface in the split-screen window with the size of the application interface fully covering the split-screen window.
[0085] For example, please refer to Figure 1. The foldable screen mobile phone is in portrait mode. The foldable screen mobile phone splits the screen to the left and right (i.e., vertically splits the screen) to display two vertical split-screen windows, split-screen window W1 and split-screen window W2. The application interface of the calculator application is displayed vertically in the split-screen window W1 with the full size of the split-screen window W1, and the application interface of the video application is displayed vertically in the split-screen window W2 with the full size of the split-screen window W2.
[0086] When the foldable screen mobile phone displays the application interface of the calculator application vertically in the split-screen window W1 with the size of the full-screen split-screen window W1, the original interface size of the application interface of the calculator application will be resized vertically and horizontally. Since the application interface of the calculator application is usually arranged vertically, even if the foldable screen mobile phone adjusts the original interface size of the application interface of the calculator application vertically and horizontally, there will be no serious problems such as interface disproportion and deformation when the adjusted application interface of the calculator application is displayed vertically in the vertical split-screen window W1 with the size of the full-screen split-screen window W1. Therefore, as shown in Figure 1, the foldable screen mobile phone can normally display the application interface of the calculator application in the split-screen window W1 with the size of the full-screen split-screen window W1, that is, the application interface of the calculator application displayed in the split-screen window W1 is normal, and the application interface of the calculator application can adapt well to the split-screen window W1.
[0087] When the foldable screen mobile phone displays the application interface of the video application vertically in the split-screen window W2 with the size of the full split-screen window W2, the original interface size of the application interface of the video application will be resized vertically and horizontally respectively. Since the application interface of the video application (such as the video playback interface) is usually arranged in a horizontal layout, after the application interface of the video application is stretched vertically, there will be serious problems such as interface disproportion and deformation. For example, the application interface of the video application is an image of a person jumping. As shown in Figure 1, the image is stretched and deformed in the vertical direction, and the proportion is disproportionate, and the user cannot see the display content of the image clearly. Therefore, the foldable screen mobile phone cannot display the application interface of the video application normally in the split-screen window W2 with the size of the full split-screen window W2, that is, the application interface of the video application displayed in the split-screen window W2 is abnormal, and the application interface of the video application cannot adapt well to the split-screen window W2. In this case, the user cannot watch the video normally through the application interface of the video application displayed in the split-screen window W2, and there is a problem that affects the user experience.
[0088] Based on this, the present application provides an application interface display method, which is applied to a foldable screen mobile phone (as an example of an electronic device). In a split-screen scenario, the foldable screen mobile phone can determine the display method of the application interface in the split-screen window according to the screen orientation of the foldable screen mobile phone, the interface layout direction supported by the application to be split-screen (i.e., the application that needs to be split-screen displayed), and the interface size adjustment capability, and display the application interface of the application to be split-screen in the corresponding split-screen window according to the determined display method, that is, display the corresponding split-screen interface.
[0089] Among them, the screen direction refers to the direction of the display screen (i.e., screen) of the foldable screen mobile phone in use, that is, the direction of the foldable screen mobile phone. For example, if the foldable screen mobile phone includes only one display screen, the split screen direction refers to the direction of the display screen when it is in use; if the foldable screen mobile phone includes two display screens, an inner display screen and an outer display screen, then when the inner display screen is used, the split screen direction refers to the direction of the inner display screen, and when the outer display screen is used, the split screen direction refers to the direction of the outer display screen. Of course, the foldable screen mobile phone can also include more other display screens. The screen direction of the foldable screen mobile phone includes a portrait screen direction (i.e., the screen direction of the foldable screen mobile phone in a portrait state when placed vertically) and a landscape screen direction (i.e., the screen direction of the foldable screen mobile phone in a landscape state when placed horizontally). Therefore, the screen direction includes a portrait screen direction (as an example of a first screen direction) and a landscape screen direction (as an example of a second screen direction).
[0090] The interface layout direction refers to the forward direction of the screen displayed on the interface. If the width of the interface is greater than its height, the interface layout direction is considered to be a horizontal layout direction. If the width of the interface is less than its height, the interface layout direction is considered to be a vertical layout direction. Therefore, the interface layout direction includes a portrait layout direction (also referred to as a portrait layout direction, or a portrait layout mode, as an example of a first interface layout direction) and a landscape layout direction (also referred to as a landscape layout direction, or a landscape layout mode, as an example of a second interface layout direction).
[0091] Resizeable Activity refers to whether the size of the application interface can be adjusted during the display process, that is, the size adjustability, and thus can include resizeable and non-resizeable.
[0092] The display method of the application interface in the split-screen window, including the display size and interface layout direction of the application interface in the split-screen window. The display size can be the size of a full-screen split-screen window, and the corresponding interface layout direction can be the interface layout direction supported by the application and the same as the current screen direction. The display size can also be the size of a non-full-screen split-screen window, and the corresponding interface layout direction can be the interface layout direction supported by the application, that is, it can be an interface layout direction different from the current screen direction.
[0093] Then, in the application interface display method provided by the present application, if the application declares that it supports both portrait and landscape layout directions (that is, the interface layout direction is a non-fixed direction), then in the split-screen state, the foldable screen mobile phone always displays the application interface of the application in a size that fills the split-screen window, and the interface layout direction of the application interface displayed in the split-screen window is the same as the current screen direction, that is, the application interface of the application is always displayed in a size that fills the split-screen window and in an interface layout direction that is the same as the current screen direction.
[0094] If the application declares that it only supports portrait or landscape layout orientation (that is, the interface layout direction is fixed), then in the split-screen state of the foldable screen mobile phone, it is necessary to further distinguish or determine the display method of the application interface in the split-screen window based on the interface size adjustment capability declared by the application.
[0095] Among them, if the interface size adjustment capability declared by the application is adjustable, then in the split-screen state, the foldable screen mobile phone always displays the application interface of the application in the corresponding split-screen window with a size that covers the split-screen window, and the interface layout direction of the application interface displayed in the split-screen window is the same as the current screen direction, that is, the application interface of the application is always displayed with a size that covers the split-screen window and with the same interface layout direction as the current screen direction.
[0096] If the size adjustment capability declared by the application is not adjustable, then if the interface layout direction declared by the application is the same as the current screen orientation (that is, the application supports the same interface layout direction as the current screen orientation), the foldable screen phone displays the application interface of the application in the corresponding split-screen window in the split-screen state at a size that fills the split-screen window, and the interface layout direction of the application interface displayed in the split-screen window is the same as the current screen orientation, that is, the application interface of the application is displayed at a size that fills the split-screen window and in the same interface layout direction as the current screen orientation. If the interface layout direction declared by the application is different from the current screen orientation (that is, the application does not support the same interface layout direction as the current screen orientation), the foldable screen phone displays the application interface of the application in the corresponding split-screen window at a size that does not fill the split-screen window, and the interface layout direction of the application interface displayed in the split-screen window is different from the current screen orientation, that is, the application interface of the application is displayed at a size that does not fill the split-screen window and in the interface layout direction supported by the application.
[0097] Furthermore, in a split-screen scenario, the application interface display method provided by the present application includes: the foldable screen mobile phone displays a first interface, and if the foldable screen mobile phone receives a split-screen operation corresponding to the first interface by the user (as an example of a first operation, the split-screen operation can be, for example, an operation of the user selecting an application for split-screen, an operation of switching from a floating window to a split screen, an operation of rotating the foldable screen mobile phone, etc. (i.e., an operation of adjusting the direction of the screen, such as rotating the foldable screen mobile phone), an operation of switching between the inner display screen and the outer display screen of the foldable screen mobile phone, etc., an operation of adjusting the usage status of different display screens of the foldable screen mobile phone, etc.), in response to the split-screen operation, a second interface is displayed, and the second interface includes two split-screen windows, a split-screen window W1 (as an example of a second split-screen window) and a split-screen window W2 (as an example of a first split-screen window) displayed in a split-screen manner, and the application interface of a calculator application (as an example of an application to be split-screen) is displayed in the split-screen window W1, and the application interface of a video application (as another example of an application to be split-screen) is displayed in the split-screen window W2.
[0098] In this implementation, if the foldable screen mobile phone determines that the calculator application supports an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone, the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window W1 at a size that fully covers the split-screen window W1, and the interface layout direction of the application interface of the calculator application displayed in the split-screen window W1 is the same as the current screen orientation of the foldable screen mobile phone, that is, the application interface of the calculator application is displayed at a size that fully covers the split-screen window W1 and in an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone. If the foldable screen mobile phone determines that the calculator application does not support an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone, but the interface size adjustment capability of the calculator application is adjustable, the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window W1 at a size that fully covers the split-screen window W1, and the interface layout direction of the application interface of the calculator application displayed in the split-screen window W1 is the same as the current screen orientation of the foldable screen mobile phone, that is, the application interface of the calculator application is displayed at a size that fully covers the split-screen window W1 and in an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone. If the foldable screen mobile phone determines that the calculator application does not support the same interface layout direction as the screen orientation of the foldable screen mobile phone, and the interface size adjustment capability of the calculator application is not adjustable, the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window W1 with a size that does not fully cover the split-screen window W1, and the interface layout direction of the application interface of the calculator application displayed in the split-screen window W1 is different from the current screen orientation of the foldable screen mobile phone, that is, the application interface of the calculator application is displayed with a size that does not fully cover the split-screen window W1 and in the interface layout direction supported by the calculator application.
[0099] Among them, if the interface layout direction supported by the calculator application is the portrait layout direction, and the screen orientation of the foldable screen phone is the portrait orientation, then the interface layout direction supported by the calculator application is considered to be the same as the screen orientation of the foldable screen phone. Or if the interface layout direction supported by the calculator application is the landscape layout direction, and the screen orientation of the foldable screen phone is the landscape orientation, then the interface layout direction supported by the calculator application is considered to be the same as the split-screen orientation of the foldable screen phone. If the interface layout direction supported by the calculator application is the portrait layout direction, and the screen orientation of the foldable screen phone is the landscape orientation, then the interface layout direction supported by the calculator application is considered to be different from the split-screen orientation of the foldable screen phone. Or if the interface layout direction supported by the calculator application is the landscape layout direction, and the screen orientation of the foldable screen phone is the portrait orientation, then the interface layout direction supported by the calculator application is considered to be different from the screen orientation of the foldable screen phone.
[0100] Similarly, in this implementation, if the foldable screen mobile phone determines that the video application supports the same interface layout direction as the current screen orientation of the foldable screen mobile phone, the foldable screen mobile phone displays the application interface of the video application in the split-screen window W2 at a size that fully covers the split-screen window W2, and the interface layout direction of the application interface of the video application displayed in the split-screen window W2 is the same as the current screen orientation of the foldable screen mobile phone, that is, the application interface of the video application is displayed at a size that fully covers the split-screen window W2 and in an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone. If the foldable screen mobile phone determines that the video application does not support the same interface layout direction as the current screen orientation of the foldable screen mobile phone, but the interface size adjustment capability of the video application is adjustable, the foldable screen mobile phone displays the application interface of the video application in the split-screen window W2 at a size that fully covers the split-screen window W2, and the interface layout direction of the application interface of the video application displayed in the split-screen window W2 is the same as the current screen orientation of the foldable screen mobile phone, that is, the application interface of the video application is displayed at a size that fully covers the split-screen window W2 and in an interface layout direction that is the same as the current screen orientation of the foldable screen mobile phone. If the foldable screen mobile phone determines that the video application does not support the same interface layout direction as the current screen direction of the foldable screen mobile phone, and the interface size adjustment capability of the video application is not adjustable, the foldable screen mobile phone displays the application interface of the video application in the split-screen window W2 with a size that does not fully cover the split-screen window W2, and the interface layout direction of the application interface of the video application displayed in the split-screen window W2 is different from the current screen direction of the foldable screen mobile phone, that is, the application interface of the video application is displayed with a size that does not fully cover the split-screen window W2 and in the interface layout direction supported by the video application.
[0101] Among them, if the interface layout direction supported by the video application is a portrait layout direction and the screen orientation of the foldable screen mobile phone is a portrait orientation, then the interface layout direction supported by the video application is considered to be the same as the screen orientation of the foldable screen mobile phone. Or if the interface layout direction supported by the video application is a landscape layout direction and the screen orientation of the foldable screen mobile phone is a landscape orientation, then the interface layout direction supported by the video application is considered to be the same as the screen orientation of the foldable screen mobile phone. If the interface layout direction supported by the video application is a portrait layout direction and the screen orientation of the foldable screen mobile phone is a landscape orientation, then the interface layout direction supported by the video application is considered to be different from the screen orientation of the foldable screen mobile phone. Or if the interface layout direction supported by the video application is a landscape layout direction and the screen orientation of the foldable screen mobile phone is a portrait orientation, then the interface layout direction supported by the video application is considered to be different from the screen orientation of the foldable screen mobile phone.
[0102] For example, in the split-screen scenario where the above-mentioned foldable phone is in portrait mode and displays a calculator application (as an example of the second application) and a video application (as an example of the first application) in a left-right split-screen (i.e., the split-screen direction is a vertical split-screen direction, which can also be called a vertical split-screen), if the foldable phone determines that the calculator application supports a portrait layout direction, then as shown in FIG2 , the foldable phone displays the application interface of the calculator application (as an example of the second application interface) vertically in the split-screen window W1 at the size of the full-screen split-screen window W1. If the foldable phone determines that the video application does not support a portrait layout direction, but only supports a landscape layout direction, and the interface size adjustment capability of the video application is that the size is not adjustable, then as shown in FIG2 , the foldable phone displays the application interface of the video application (as an example of the first application interface) horizontally in the split-screen window W2 at the size of the non-full-screen split-screen window W2, rather than displaying the application interface of the video application vertically at the size of the full-screen split-screen window W2 as in the prior art as shown in FIG1 .
[0103] In this implementation, for video applications that cannot be well adapted to the vertical split-screen window W2 in a full-screen display mode (for applications that are not well adapted to split-screen), the foldable screen phone can display the video application's application interface horizontally in the split-screen window W2 at the size of a non-full-screen split-screen window. In this way, the foldable screen phone can normally display the video application's application interface in the split-screen window W2, avoiding the problem of the video application's application interface being stretched, deformed, or disproportioned, which affects the user's normal viewing, thus meeting the user's viewing needs and improving the user experience.
[0104] The following takes the above-mentioned calculator application and video application, as well as browser application and game application (such as game application 1 and game application 2) as examples to further illustrate the display method of the application interface in the application interface display method provided in this application.
[0105] As shown in Figures 3A and 3B, for a calculator application, if the calculator application declares that the interface layout directions it supports include portrait and landscape, then regardless of whether the interface size adjustment capability it declares is resizable or unresizable, the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window with the size of the full-screen window and the interface layout direction corresponding to the current screen orientation in the split-screen window (for example, if the screen orientation is landscape, it is displayed horizontally in the landscape layout orientation; if the screen orientation is portrait, it is displayed vertically in the portrait layout orientation).
[0106] As shown in Figure 3A, for a browser application, if the browser application declares that the interface layout direction it supports is the portrait layout direction, and declares that its interface size adjustment capability is adjustable, then the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window with the interface layout direction corresponding to the current screen direction (that is, the same interface layout direction as the current screen direction) in both the portrait and landscape modes (that is, when the screen orientation is portrait and landscape), with the size of the full-screen window (for example, if the screen orientation is landscape, it is displayed horizontally in the landscape layout direction, and if the screen orientation is portrait, it is displayed vertically in the portrait layout direction). If the browser application declares that the interface layout direction it supports is the portrait layout direction, and declares that its interface size adjustment capability is not adjustable, then the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window in the portrait mode (that is, when the screen orientation is portrait), with the size of the full-screen window (that is, when the screen orientation is landscape), and displays the application interface of the calculator application in the split-screen window in the landscape mode (that is, when the screen orientation is landscape), with the size of the non-full-screen window (that is, when the screen orientation is landscape).
[0107] As shown in Figure 3B, for a game application (such as a poker game - game application 1), if the game application declares that the interface layout direction it supports is the horizontal layout direction, and declares that its interface size adjustment capability is adjustable, then the folding screen mobile phone will display the application interface of the game application in the split-screen window with the full-screen window size and the interface layout direction corresponding to the current screen direction in the split-screen window in both the portrait and landscape states (that is, when the screen orientation is portrait and landscape). (For example, if the screen orientation is landscape, it will be displayed horizontally in the landscape layout direction; if the screen orientation is portrait, it will be displayed vertically in the portrait layout direction).
[0108] As shown in Figure 3B, for a video application, if the video application declares that the interface layout direction it supports is the horizontal layout direction, and declares that its interface size adjustment capability is not adjustable, then the foldable screen mobile phone will display the video application horizontally in the split-screen window with the size of a non-full split-screen window when in the portrait state (that is, when the screen orientation is portrait), and the foldable screen mobile phone will display the application interface of the video application horizontally in the split-screen window with the size of a full split-screen window when in the landscape state (that is, when the screen orientation is landscape).
[0109] The application interface display method provided by this implementation is applied in split-screen scenarios. For applications that cannot be well adapted to the split-screen window, the foldable screen phone can display the application interface in the split-screen window with a size that does not fully cover the split-screen window and the interface layout direction supported by the application. In this way, the foldable screen phone can display the application interface normally in the split-screen window, avoiding abnormal display situations such as deformation of the application interface, thus meeting user needs and improving the user experience.
[0110] In this implementation, a foldable screen mobile phone is used in a split-screen scenario. In one split-screen window, the application interface of the application is displayed in the size of a non-full split-screen window and the interface layout direction supported by the application. In another split-screen window, the application interface of the application is displayed in the size of a full split-screen window and the interface layout direction corresponding to the current screen direction supported by the application. This method can be called a compatible mode display method. That is, in a split-screen scenario (such as a top-bottom split-screen scenario or a left-right split-screen scenario), the mobile phone can display the application interface corresponding to the application in a compatible mode according to actual conditions. In this way, for applications that are not well adapted to split-screen, the application is supported to display the application interface in the split-screen window in the size of a non-full split-screen window and the interface layout direction supported by the application, so as to solve the problems of application interface display in the scenarios of switching between left-right split-screen (i.e. vertical split-screen) and top-bottom split-screen (i.e. horizontal split-screen), improve the display effect of the application interface, and thus improve the user experience.
[0111] Furthermore, in the application interface display method provided by the implementation of the present application, in the process of displaying the application interface of the application in the split-screen window in the size of the non-full-screen split-screen window, the foldable screen mobile phone also needs to confirm the preset size of the application interface corresponding to the application, use the preset size as the size of the non-full-screen split-screen window, and display it in the split-screen window in the size of the non-full-screen split-screen window. The preset size (as an example of a first preset size) can be, for example, any one of a first size, a second size, and a third size. The first size (also referred to as a 0:0 size) is the size of the original interface size of the application interface of the application adjusted (for example, proportionally reduced) according to a preset ratio (i.e., the first preset ratio). The original interface size can be, for example, the size of the full-screen display of the application interface, or the default original size of the application. The preset ratio can be set according to the size of the display screen of the foldable screen mobile phone, the size of the split-screen window, etc. The second size is a size with an aspect ratio of 4:3 (as an example of the first aspect ratio) corresponding to the first size. The third size is a size with an aspect ratio of 16:9 (as an example of the second aspect ratio) corresponding to the first size. The original interface size, the first size, the second size, the third size and the preset ratio (as an example of the first preset ratio or the second preset ratio) can all be set as needed, and the adjustment ratios corresponding to the width and height in the preset ratio can be the same or different.
[0112] The preset size (as the second preset size) can be, for example, any one of the fourth size, the fifth size, and the sixth size. The fourth size (also referred to as the 0:0 size) is the size after adjusting (e.g., reducing) the original interface size of the application interface of the application according to a preset ratio (i.e., the second preset ratio). The preset ratio can be set according to the size of the display screen of the foldable screen mobile phone, the size of the split-screen window, etc. The fifth size is a size corresponding to the fourth size with an aspect ratio of 4:3 (as an example of the first aspect ratio), and the sixth size is a size corresponding to the fourth size with an aspect ratio of 16:9 (as an example of the second aspect ratio). The fourth size, the fifth size, the sixth size, and the preset ratio can all be set as needed.
[0113] Then, as shown in Figure 4, when the screen of the foldable screen mobile phone is in landscape mode (i.e., in top-bottom split screen or horizontal split screen mode), the foldable screen mobile phone displays the application interface of the calculator application horizontally in the lower split screen window in a full-screen split window manner, and displays the application interface of the browser application vertically in the upper split screen window in a non-full-screen split window manner. The application interface of the browser application can be a first size (i.e., a 0:0 size), a second size (i.e., a 4:3 size), or a third size (i.e., a 16:9 size).
[0114] In addition, as shown in Figure 4, when the screen of the foldable screen mobile phone is in portrait mode (i.e., in left-right split or vertical split), the foldable screen mobile phone displays the application interface of the calculator application vertically in the right split-screen window in a full-screen split window manner, and displays the application interface of the video application horizontally in the left split-screen window in a non-full-screen split window manner. The application interface of the video application can be a first size (i.e., a 0:0 size), a second size (i.e., a 4:3 size), or a third size (i.e., a 16:9 size).
[0115] In this way, when a foldable mobile phone displays the application interface of an application in a split-screen window at a size that does not fully cover the split-screen window, the application interface of the application can be displayed according to preset sizes corresponding to different preset applications (for example, the first size, second size, third size, and other different sizes mentioned above). Different display effects can be achieved without affecting the display of application functions and user operations. Compared with a display method that only provides a size that is proportionally reduced from the original interface size, it can provide users with a better visual display effect, thereby effectively improving the user experience.
[0116] Furthermore, the present application also provides an application interface display method, which is applied to the aforementioned folding screen mobile phone. In a split-screen scenario, the folding screen mobile phone can determine the display method of the application interface of the application to be split in the corresponding split-screen window based on the screen orientation of the folding screen mobile phone, the interface layout direction supported by the application to be split, the interface size adjustment capability of the application to be split, and whether the application to be split is a preset application, and display the application interface of the application to be split in the corresponding split-screen window in the determined display method, that is, display the corresponding split-screen interface.
[0117] Whether the application to be split screen is a preset application may, for example, refer to whether the application to be split screen is an application in the preset whitelist. If the application to be split screen is an application in the preset whitelist, the application to be split screen is considered to be the preset application. If the application to be split screen is not an application in the preset whitelist, the application to be split screen is considered not to be the preset application.
[0118] The applications in the whitelist may, for example, refer to some applications that can be displayed normally in the split-screen window with a size that does not fill the split-screen window and with an interface layout direction supported by the application, and can meet the user's usage needs, such as video applications. Then, the applications that are not in the whitelist may, for example, refer to some applications that cannot be displayed normally and / or cannot meet the user's usage needs in the split-screen window with a size that does not fill the split-screen window and with an interface layout direction supported by the application. For example, if the application interface of some applications (such as some game applications, drawing applications, etc. that require users to operate local details) is displayed in the split-screen window with a size that does not fill the split-screen window and with an interface layout direction supported by the application, its interface may be very small and cannot meet the user's usage needs. Of course, the applications in the whitelist can be selected and set as needed.
[0119] In this method, for the application to be split screen that supports an interface layout direction that is different from the current screen direction, the foldable screen mobile phone can further determine whether the application to be split screen is an application in the preset whitelist. If it is determined that the application to be split screen is an application in the preset whitelist, it means that the application to be split screen is a preset application and can be displayed in a non-full split screen window. The foldable screen mobile phone then further determines its interface size adjustment capability and determines the display method of the application interface of the application to be split screen in the split screen window according to the interface size adjustment capability of the application to be split screen. Among them, if the interface size adjustment capability of the application to be split screen is adjustable in size, then in the corresponding split screen window, the application interface of the application to be split screen is displayed with the size of the full split screen window and with the same interface layout direction as the current screen direction of the electronic device. If the interface size adjustment capability of the application to be split screen is not adjustable in size, then in the corresponding split screen window, the application interface of the application to be split screen is displayed with the size of the non-full split screen window and with an interface layout direction different from the current screen direction of the electronic device. If it is determined that the application to be split-screen is not an application in the preset whitelist, it means that the application to be split-screen cannot be displayed in a non-full-screen split-screen window, and the foldable screen phone will not perform the split-screen operation on the application to be split-screen (that is, it will not be displayed in split screen). In addition, the foldable screen phone may also pop up a prompt message on the display screen, such as "** application currently does not support split-screen" or "** application does not support compatible mode display", to remind the user.
[0120] The structure of a mobile phone as an example of an electronic device provided in an implementation mode of the present application is described below.
[0121] Please refer to FIG5 , which shows a schematic structural diagram of a mobile phone.
[0122] The mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0123] It should be understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the mobile phone. In other embodiments of this application, the mobile phone may include more or fewer components than shown in the figure, or some components may be combined or separated, or the components may be arranged differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0124] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0125] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and execution.
[0126] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0127] The mobile phone's wireless communication functions can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, and a baseband processor. Mobile communication module 150 can provide solutions for wireless communication applications in the mobile phone, including 2G / 3G / 4G / 5G. Wireless communication module 160 can provide solutions for wireless communication applications in the mobile phone, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks) and Bluetooth (BT).
[0128] The mobile phone implements display functions through a GPU, a display screen 194, and an application processor, etc. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0129] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0130] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone by running the instructions stored in the internal memory 121 and / or the instructions stored in the memory provided in the processor 110, such as executing the processing related to the application interface display method provided in the implementation of this application.
[0131] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be provided on display screen 194. When a touch operation is applied to display screen 194, the mobile phone detects the intensity of the touch operation based on pressure sensor 180A. The mobile phone can also calculate the location of the touch based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch operation intensities can correspond to different operation instructions. For example, operations such as pressing or sliding the screen can be determined.
[0132] The touch sensor 180K is also called a "touch device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180K can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the mobile phone, in a location different from that of the display screen 194.
[0133] The following is an explanation of the software system of the mobile phone.
[0134] The software system of the mobile phone can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the mobile phone.
[0135] FIG6 exemplarily shows a software structure block diagram of a mobile phone.
[0136] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom: the application (APP) layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0137] The application layer can include a series of application packages.
[0138] As shown in Figure 6, the application package can include applications such as a function bar (such as DockBar), a system user interface (UI) management application, a desktop launcher (Launcher), and a notepad (Notepad). Of course, the application layer can also include applications such as a camera, a gallery, and settings.
[0139] Among them, the function bar mainly provides the function of entering the split screen, such as the function of entering the split screen from an application, or the function of entering the split screen from a floating window, etc.
[0140] The desktop launcher mainly provides task switching manager functions.
[0141] The application framework layer provides an application programming interface (API) and a programming framework, such as a Java API Framework, for the applications in the application layer. The application framework layer includes some predefined functions.
[0142] As shown in FIG6 , the application framework layer may include content providers (Content Providers), a view system (View System) and a multi-window manager (Multi Window Manager).
[0143] Among them, the multi-window manager includes activity management service, window management service, animation management service, display management service, package management service, telephony management service, notification management service and resource management service.
[0144] The content provider is used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0145] The view system includes visual controls, such as those for displaying text and images. The view system can be used to build applications. A display interface can be composed of one or more views. For example, the display interface for a text notification icon can include views for displaying text and images, as well as the display interface of an application.
[0146] The activity management service is used to manage various activity tasks in the phone and provide split-screen task manager capabilities.
[0147] The window management service manages windowed programs. It can obtain the display size, determine whether a function bar is present, lock the screen, take screenshots, and more. It also provides a split-screen task manager.
[0148] The animation management service mainly provides system animation capabilities, which are used to complete the processing related to the display and switching of mobile phone animations. For example, the animation effect of entering the split screen from the full screen or the split screen from the full screen is realized during the split screen process.
[0149] The display management service can be used to obtain the user's touch instruction from the notification management service. Then, the display management service can display the content to be displayed on the display screen according to the notification message corresponding to the touch instruction, that is, the content currently displayed on the display screen.
[0150] The call management service is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0151] Resource management services provide various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0152] The Notification Management Service enables applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically, without requiring user interaction. For example, the Notification Management Service is used to display message prompts. The Notification Management Service can also display notifications in the system's top status bar as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting a sound, vibrating electronic devices, or flashing indicator lights.
[0153] The Android runtime includes core libraries and the Android runtime virtual machine (i.e., virtual machine). The Android runtime is responsible for scheduling and management of the Android system.
[0154] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0155] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0156] System libraries can also be called native libraries, such as Native C / C++ Libraries, which include multiple functional modules.
[0157] For example, as shown in FIG6 , the native library includes a Web component library (Web lit), a C function library (Libc), an open multimedia interface (OpenMAX AL) function, a graphics programming interface (such as OpenGL ES) function, a media framework (Media Framework) function, and the like.
[0158] The kernel layer (not shown in the figure) is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0159] In this implementation method, the implementation of the display method of the application interface mainly involves the application layer and the application framework layer in the overall framework, and mainly involves the aforementioned function bar, desktop launcher, activity management service, window management service and animation management service, etc. The implementation process will be explained later and will not be elaborated here.
[0160] Of course, the system architecture of the mobile phone provided by this implementation may also be other system architectures such as the Magic OS system architecture, which can be selected and set as needed.
[0161] The application interface display method provided by this application will be further explained below in conjunction with the interface diagram of the electronic device.
[0162] Below, the application interface display method provided in this application is further explained by taking a folding screen mobile phone 100 (hereinafter referred to as mobile phone 100) that only includes one display screen (i.e., screen) as an example.
[0163] As shown in FIG7A , the mobile phone 100 is in a portrait state, and the display screen of the mobile phone 100 displays multiple applications such as a calculator application, a video application, a browser application, a game application 1, and a game application 2.
[0164] As shown in Figure 7A, if the mobile phone 100 receives a click operation on the video application from the user, the video application is opened and the display interface shown in Figure 7B is displayed. The display interface is the main interface of the video application, including multiple videos.
[0165] Furthermore, as shown in FIG7B , if the mobile phone 100 receives a click operation on the video 1 by the user, the video 1 is opened and the video playback interface as shown in FIG7C is displayed, that is, the mobile phone 100 displays the playback interface of the video 1 in full screen on the display screen of the mobile phone 100 .
[0166] Furthermore, as shown in FIG7C , a function bar (i.e., a top dock bar) S1 is also displayed above the display screen of the mobile phone 100, and the user can split the screen by operating the function bar S1. For example, as shown in FIG7C , if the mobile phone 100 receives a user click operation on the function bar S1, the mobile phone 100 will expand the function bar S1 to display the function bar S2, as shown in FIG7D , and the function bar S2 includes a "split screen" control (as an example of the first interface).
[0167] As shown in Figure 7D, if the mobile phone 100 receives a user click operation on the "split screen" control (as an example of the first operation), the mobile phone 100 performs split screen processing, splitting the screen left and right (i.e., vertical split screen) into two split screen windows, and displays the application interface of the video application in the split screen window on the left, and displays other interfaces in the split screen window on the right.
[0168] In this implementation, when the mobile phone 100 displays the application interface of the video application in the split-screen window on the left, it is first necessary to determine whether the video application supports the same interface layout direction as the current screen direction of the mobile phone 100, that is, whether it supports the vertical screen layout direction. If the mobile phone 100 determines that the video application only supports the horizontal screen layout direction and does not support the vertical screen layout direction, the mobile phone 100 further determines the interface size adjustment capability declared by the video application. If the mobile phone 100 determines that the video application declares that its interface size adjustment capability is not adjustable, as shown in Figure 7E, the mobile phone 100 displays the application interface of the video application horizontally in the split-screen window W2 on the left (as an example of the second interface) in the size of a non-full split-screen window. In this way, it is possible to avoid the problem that the video application is stretched and deformed in the split-screen state due to poor adaptation to the vertical split-screen window W2, affecting the normal display of the video playback screen, thereby affecting the user experience. That is, the mobile phone 100 can normally display the application interface of the video application in a non-full split-screen window manner, meeting the user's viewing needs, thereby improving the user experience.
[0169] In addition, as shown in FIG7E , the mobile phone 100 can display icons of multiple applications such as a calculator application, a browser application, a game application 1, and a game application 2 in the right split-screen window W1 (this display interface can be used as an example of the second interface or as another example of the first interface). As shown in FIG7E , if the mobile phone 100 receives a click operation on the calculator application by the user (as another example of the first operation), it determines that the calculator application needs to be opened and the application interface of the calculator application needs to be displayed in the split-screen window W1.
[0170] In this implementation, when the mobile phone 100 displays the application interface of the calculator application in the split-screen window W1, it first determines whether the calculator application supports the same interface layout orientation as the current screen orientation of the mobile phone 100, that is, whether it supports the portrait layout orientation. If the mobile phone 100 determines that the calculator application supports the portrait layout orientation, as shown in Figure 7F, the mobile phone 100 displays the application interface of the calculator application in the split-screen window W1 in a vertical manner, so that the split-screen window W1 is fully covered. In this way, the application interface of the calculator application can be displayed in the split-screen window W1 at the size of the full-screen window, thereby ensuring the user experience.
[0171] In this implementation, the mobile phone 100 displays the application interface of the video application horizontally in the split-screen window W2 at the size of a non-full-screen split-screen window, and displays the application interface of the calculator application in the split-screen window W1 at the size of a full-screen split-screen window. This can be understood as a way of displaying the split-screen window in a compatible mode, and the application interfaces of different applications can be normally displayed in the split-screen window in different ways, thereby improving the user experience.
[0172] Furthermore, in this implementation, if the user rotates the mobile phone 100 90 degrees (for example, 90 degrees clockwise, as another example of the first operation) while using the mobile phone 100, and adjusts the mobile phone 100 from a portrait state to a landscape state, the mobile phone 100 will detect that the screen orientation of the mobile phone 100 has changed, that is, the mobile phone 100 will detect that the screen orientation of the mobile phone 100 has been adjusted from a portrait orientation to a landscape orientation. Therefore, the mobile phone 100 determines that it needs to redetermine the display mode of the application interface of the calculator application and the video application in the split-screen window based on the current screen orientation of the mobile phone 100, the interface layout direction supported by the calculator application and the video application, and the interface size adjustment capability of the calculator application and the video application.
[0173] For example, as described above, the mobile phone 100 determines that the video application supports the horizontal screen layout direction, and the calculator application also supports the horizontal screen layout direction, that is, the video application and the calculator application both support the same interface layout direction as the current screen direction of the mobile phone 100. As shown in FIG7G , after the screen direction of the mobile phone 100 is adjusted from the portrait screen direction to the landscape screen direction, the split screen direction of the mobile phone 100 is adjusted from the left-right split screen to the top-bottom split screen, and the mobile phone 100 displays two split screen windows, split screen window W3 and split screen window W4, in the top-bottom split screen. In addition, the mobile phone 100 displays the application interface of the video application in the split screen window W4 in a horizontal manner with the size of the split screen window W4 being fully covered, and the mobile phone 100 displays the application interface of the calculator application in the split screen window W3 in a horizontal manner with the size of the split screen window W3 being fully covered (as another example of the second interface).
[0174] In this way, during the use of mobile phone 100, mobile phone 100 can determine the display mode of the application interface in the split-screen window according to the current screen orientation of mobile phone 100, the interface layout orientation supported by the split-screen application, and the interface size adjustment capability of the split-screen application. Therefore, in different usage states of mobile phone 100, that is, for mobile phone 100 with different screen orientations, mobile phone 100 can display the corresponding application interface in the form of a full-screen split-screen window or a non-full-screen split-screen window, thereby displaying a normal application interface, meeting the user's usage requirements for mobile phone 100 and different applications, and effectively improving the user experience.
[0175] Below, taking the folding screen mobile phone 200 (hereinafter referred to as mobile phone 200) including two display screens (i.e., screens), an inner display screen (hereinafter referred to as inner screen) and an outer display screen (hereinafter referred to as outer screen) as an example, the application interface display method provided in this application is further explained.
[0176] As shown in FIG8(a), mobile phone 200 is in landscape mode, with the top of mobile phone 100 positioned on the right. A video application is launched on the inner screen of mobile phone 200, and the video application interface is displayed in full screen mode on the inner screen of mobile phone 200. Furthermore, a function bar S1 is displayed on the inner screen of mobile phone 200.
[0177] If the mobile phone 200 receives a user split-screen operation such as that shown in Figures 7B-7E above, and determines that the calculator application and the video application need to be split-screen displayed, and the mobile phone 200 determines that both the calculator application and the video application support a horizontal screen layout direction, and the inner screen of the mobile phone 200 is in a horizontal screen state at this time, then the mobile phone 100 determines that both the calculator application and the video application support an interface layout direction that is the same as the current screen direction of the inner screen (i.e., the horizontal screen direction), i.e., both support a horizontal screen layout direction. Therefore, as shown in Figure 8 (b), the mobile phone 200 displays two split-screen windows, split-screen window W1 and split-screen window W2, in an upper and lower split-screen mode, with split-screen window W1 located at the top and split-screen window W2 located at the bottom. In addition, the mobile phone 200 displays the application interface of the calculator application in split-screen window W1 in a horizontal direction at the size of the full-screen split-screen window W1, and displays the application interface of the video application in split-screen window W2 in a horizontal direction at the size of the full-screen split-screen window W2. That is, the mobile phone 200 enters a split-screen state, and displays the application interfaces of the calculator application and the video application, respectively, in a manner that the split-screen windows fully cover the inner screen.
[0178] If phone 200 detects that the user has folded the inner screen of phone 200 downward, phone 200 determines that the inner screen's display content needs to be switched to the outer screen of phone 200 for display. At this point, although phone 200 is in landscape mode, due to the size of the outer screen, phone 200 cannot perform a vertical split, only a left-right split. As shown in FIG8(c), the outer screen of phone 200 displays two split-screen windows, W3 and W4, on the outer screen of phone 200: W3 on the left and W4 on the right. Furthermore, phone 200 determines that both the calculator application and the video application support the same interface layout orientation as the outer screen's current screen orientation (i.e., landscape orientation), i.e., both support landscape layout orientation. Therefore, phone 200 displays the video application's interface in split-screen window W4, in landscape orientation, at the full size of the split-screen window, and displays the calculator application's interface in split-screen window W3, in landscape orientation, at the full size of the split-screen window. That is, the mobile phone 200 switches from the inner screen to the outer screen, and displays the application interfaces of the video application and the calculator application respectively in a manner of fully covering the outer screen split-screen windows.
[0179] Furthermore, if the user rotates the mobile phone 200 shown in (c) in Figure 8 counterclockwise by 90 degrees to adjust the mobile phone 200 to a portrait state, the mobile phone 200 will detect that the screen orientation of the mobile phone 200 is adjusted to a portrait orientation. Therefore, the mobile phone 200 determines that the split-screen direction of the external screen is adjusted from left and right split screen to top and bottom split screen, and needs to redetermine the display mode of the application interface of the calculator application and the video application in the split-screen window based on the screen orientation of the rotated mobile phone 200, the interface layout direction supported by the calculator application and the video application, and the interface size adjustment capability of the calculator application and the video application.
[0180] As shown in (d) of FIG8 , the mobile phone 200 displays two split-screen windows, split-screen window W5 and split-screen window W6, on the external screen of the mobile phone 200, with split-screen window W5 located at the top and split-screen window W6 located at the bottom. If the mobile phone 200 determines that the calculator application supports the same interface layout direction as the current screen orientation of the external screen (i.e., the portrait orientation), that is, it supports the portrait layout direction, and the video application does not support the same interface layout direction as the current screen orientation of the external screen (i.e., the portrait orientation), then the mobile phone 200 displays the application interface of the calculator application in split-screen window W5 in a vertical direction at the size of the full-screen split-screen window W5, and displays the application interface of the video application in split-screen window W6 in a horizontal direction at the size of the non-full-screen split-screen window W6. That is, the mobile phone 100 maintains the display of the external screen split-screen window based on the detected external screen rotation information, and displays the application interfaces of the video application and the calculator application in the split-screen window in a compatible mode that adapts to the ratio of the external screen split-screen window.
[0181] Furthermore, if the mobile phone 200 detects that the user has opened the inner screen of the mobile phone 200, the mobile phone 200 determines that the display content on the outer screen of the mobile phone 200 needs to be switched to the inner screen of the mobile phone 200 for display. The mobile phone 200 then splits the inner screen and determines how the application interfaces of the calculator application and the video application are displayed in the split-screen window based on the screen orientation of the inner screen, the interface layout orientation supported by the calculator application and the video application, and the interface size adjustment capability of the calculator application and the video application. At this time, the mobile phone 200 determines that the mobile phone 200 is in portrait mode, and the calculator application supports the same interface layout orientation as the current screen orientation of the inner screen (i.e., the portrait orientation), i.e., it supports the portrait layout orientation, the video application does not support the same interface layout orientation as the current screen orientation of the inner screen (i.e., the portrait orientation), i.e., it does not support the portrait layout orientation, and the interface size adjustment capability of the video application is that the size is not adjustable. As shown in FIG8(e), the mobile phone 200 displays two split-screen windows, split-screen window W7 and split-screen window W8, on the inner screen of the mobile phone 200, with split-screen window W7 on the left and split-screen window W8 on the right. The mobile phone 200 displays the application interface of the calculator application vertically in split-screen window W7 at the size of the full-screen split-screen window W7, and displays the application interface of the video application horizontally in split-screen window W8 at the size of the non-full-screen split-screen window W8. In other words, the mobile phone 200 switches to displaying the application interface of the inner screen, and displays the application interface of the video application and the calculator application in a compatible mode that adapts to the ratio of the inner screen split-screen window.
[0182] Furthermore, if the user rotates the mobile phone 200 shown in FIG8(e) counterclockwise 90 degrees and adjusts the mobile phone 200 to a landscape orientation, the mobile phone 200 will detect that the screen orientation of the mobile phone 200 has been adjusted to a portrait orientation. Therefore, the mobile phone 200 determines that the split screen orientation of the inner screen needs to be adjusted from left-right to top-down. The mobile phone 200 also needs to re-determine the display mode of the application interface of the calculator application and the video application in the split-screen window based on the screen orientation of the rotated inner screen, the interface layout orientation supported by the calculator application and the video application, and the interface size adjustment capabilities of the calculator application and the video application. At this time, the screen orientation of the inner screen is landscape, the calculator application supports landscape layout orientation, and the video application also supports landscape layout orientation. That is, the calculator application and the video application both support the same interface layout orientation as the screen orientation of the inner screen. As shown in FIG8(f), the top-down split screen of the mobile phone 200 displays two split-screen windows, split-screen window W9 and split-screen window W10, on the inner screen of the mobile phone 200, with split-screen window W9 located at the bottom and split-screen window W10 located at the top. Furthermore, mobile phone 200 displays the application interface of the calculator application in split-screen window W9 in a horizontal orientation, fully covering the split-screen window size, and displays the application interface of the video application in split-screen window W10 in a horizontal orientation, fully covering the split-screen window size. That is, mobile phone 200 displays the application interfaces of the video application and the calculator application in split-screen windows that fully cover the inner screen based on the detected inner screen rotation information.
[0183] Furthermore, as shown in FIG8(f), if the user pulls down the split-screen line (also called a split-screen bar) displayed in the middle of the screen, the mobile phone 200 determines that the split-screen operation needs to be exited, closes the calculator application, and displays the application interface of the video application in full screen on the inner screen, as shown in FIG8(g). That is, the mobile phone 200 exits the split-screen state and switches to the full-screen state, displaying the application interface in full screen.
[0184] Thus, during the use of mobile phone 200, mobile phone 200 can determine the display mode of the application interface in the split-screen window in different states based on the user's switching between the inner and outer screens of mobile phone 200, the adjustment of the orientation of the display screen of mobile phone 200, and the interface layout direction and interface size adjustment capability supported by the application to be split on mobile phone 200. This allows the display of the application interface to adapt to the current screen state of mobile phone 200, thereby displaying a normal picture, avoiding the situation where the interface content is distorted due to the application interface not being compatible with the current split-screen situation. In other words, mobile phone 200 can display a normal application interface, meeting the user's needs for using mobile phone 200 and different applications, and effectively improving the user experience.
[0185] In another implementation of the present application, game application 1 may also only support landscape orientation and its interface size cannot be adjusted. The video application shown in FIG8 above can be directly replaced with game application 1 to illustrate the display process of the application interface of game application 1 in different states, which will not be repeated here.
[0186] Below, the application interface display method provided in this application is further explained by taking a straight-screen mobile phone 300 (i.e., a non-folding screen mobile phone, hereinafter referred to as mobile phone 300) as another example of the electronic device provided in this application.
[0187] Referring to FIG9 (a), the mobile phone 300 is in portrait mode and displays a calculator application. If the mobile phone 300 receives, for example, a user sliding operation from the right side of the mobile phone 300 toward the left side, the mobile phone 300 displays a side toolbar, which includes multiple applications such as a video application, a game application 1, and a browser application. If the mobile phone 300 further receives an operation in which the user drags the video application icon downward from the side toolbar, the mobile phone 300 determines that the calculator application and the video application need to be displayed in split-screen mode. As shown in FIG9 (b), the mobile phone 300 displays two split-screen windows, split-screen window M1 and split-screen window M2, in a vertical split-screen mode. Since the calculator application supports a portrait layout orientation, the mobile phone 300 displays the calculator application interface in split-screen window M1 at the size of a full-screen window. Since the video application does not support a portrait layout orientation and the video application's interface size adjustment capability is not adjustable, the mobile phone 300 displays the video application interface in split-screen window M2 at the size of a non-full-screen window.
[0188] Furthermore, if the user rotates the mobile phone 300, for example, the user rotates the mobile phone 300 90 degrees clockwise to adjust the mobile phone 300 to a landscape state, the mobile phone 300 will detect that the screen orientation of the mobile phone 300 has been adjusted to a landscape orientation. As shown in FIG9 (c), the mobile phone 300 displays two split-screen windows, namely, split-screen window M3 and split-screen window M4, on the left and right sides. Since the calculator application also supports a landscape layout orientation, the mobile phone 300 displays the application interface of the calculator application in split-screen window M3 in a landscape orientation with the size of the full split-screen window. Since the video application also supports a landscape layout orientation, the mobile phone 300 displays the application interface of the video application in split-screen window M4 in a landscape orientation with the size of the full split-screen window.
[0189] In this way, the mobile phone 300 can display a normal application interface, meet the user's needs for using the mobile phone 300 and different applications, and effectively improve the user experience.
[0190] The following uses a tablet computer 400 as another example of the electronic device provided in this application to further illustrate the application interface display method provided in this application.
[0191] As shown in FIG10( a ), tablet computer 400 is in portrait mode. The calculator application supports both portrait and landscape layouts, while the browser application only supports portrait layouts, and its interface size adjustment can be adjustable. Tablet computer 400 then displays two split-screen windows, split-screen window N1 and split-screen window N2, with split-screen window N1 on the right and split-screen window N2 on the left. Furthermore, tablet computer 400 displays the calculator application interface in split-screen window N1 vertically, fully covering the size of split-screen window N1, and displays the browser application interface in split-screen window N2 vertically, fully covering the size of split-screen window N2.
[0192] Furthermore, if the user rotates tablet computer 400, for example, by rotating tablet computer 400 90 degrees clockwise to adjust tablet computer 400 to landscape mode, tablet computer 400 will detect that the screen orientation of tablet computer 400 has been adjusted to landscape. As shown in FIG10(b), tablet computer 400 displays two split-screen windows, split-screen window N3 and split-screen window N4, in a top-bottom split-screen arrangement, with split-screen window N3 positioned at the bottom and split-screen window N4 positioned at the top. Since the calculator application supports landscape layout, and the browser application does not, its interface size adjustment is adjustable. Therefore, tablet computer 400 displays the calculator application's interface in landscape orientation in split-screen window N3, fully covering the split-screen window's size, and displays the browser application's interface in landscape orientation in split-screen window N4, fully covering the split-screen window's size.
[0193] In this way, the tablet computer 400 can display a normal application interface, satisfying the user's needs for using the tablet computer 400 and different applications, and effectively improving the user experience.
[0194] In some implementations of the present application, when electronic devices such as mobile phone 100, mobile phone 200, mobile phone 300, and tablet computer 400 display the application interface of the application to be split in a split-screen window, for the application to be split whose supported interface layout direction is different from the current screen direction, electronic devices such as mobile phone 100, mobile phone 200, mobile phone 300, and tablet computer 400 can further determine whether the application to be split belongs to an application in a preset whitelist, thereby determining the display method of the application interface of the application to be split.
[0195] For example, as shown in FIG11(a), if the mobile phone 100 receives a user click operation on game application 2 (for example, a racing game), the mobile phone 100 determines that the application interface of game application 2 needs to be displayed in the split-screen window W1. The mobile phone 100 first determines that the interface layout direction supported by game application 2 is a horizontal layout direction based on the current screen orientation and the interface layout direction supported by game application 2, which is different from the portrait orientation of the current screen. The mobile phone 100 then further determines whether game application 2 is an application in a preset whitelist. If game application 2 is an application in the preset whitelist, the mobile phone 100 further determines whether the interface size adjustment capability of game application 2 is adjustable. And if the interface size adjustment capability of game application 2 is adjustable, the mobile phone 100 displays the application interface of game application 2 vertically in the split-screen window W1 with the size of the full-screen split-screen window W1. If the interface size adjustment capability of game application 2 is not adjustable, as shown in (e) in Figure 11, the mobile phone 100 displays the application interface of game application 2 horizontally in the split-screen window W1 with the size of the non-full-screen split-screen window W1 (as another example of the second interface of the second application). If game application 2 does not belong to the applications in the preset whitelist, as shown in (b) in Figure 11, the mobile phone 100 displays the prompt message "Game application 2 currently does not support split screen" in the split-screen window W1, that is, the mobile phone 100 will not display the application interface of game application 2 in the split-screen window W1. In addition, the mobile phone 100 can also display a "confirm" control corresponding to the prompt message for the user to use, or the prompt message automatically disappears after a preset time.
[0196] Furthermore, since the mobile phone 100 determines that the interface layout direction supported by the game application 2 is the horizontal layout direction, as shown in Figure 11 (c), the mobile phone 100 can also display a prompt message "If you want to display the game application 2 in split screen, you can adjust the mobile phone 100 to the horizontal screen direction." And display a "Confirm" control and a "Cancel" control for the user to determine whether to continue to display the game application 2 in split screen. If the mobile phone 100 detects that the user clicks the "Confirm" control and the mobile phone 100 is rotated to the horizontal screen state by the user, then as shown in Figure 11 (d), the mobile phone 100 displays the split screen window W3 and the split screen window W4 in the upper and lower split screens. In the split screen window W4, the application interface of the video application is displayed horizontally at the size of the full split screen window W4, and in the split screen window W3, the application interface of the game application 2 is displayed horizontally at the size of the full split screen window W3. If the mobile phone 100 detects that the user clicks the "Cancel" control, the mobile phone 100 continues to display the display interface shown in Figure 11 (a).
[0197] In this way, the mobile phone 100 can display a normal application interface, or not split the screen, to meet the user's needs for using the mobile phone 100 and different applications, and effectively improve the user experience.
[0198] Furthermore, in a split-screen scenario, the process by which mobile phone 100 implements a split-screen interface may be as follows, as shown in FIG12A : mobile phone 100 first displays the interface of application A in full screen. If mobile phone 100 detects the user's split-screen operation, it determines that application A and application B need to be displayed in split screen. Since application A's interface is not suitable for landscape layout, while application B's interface is suitable for both landscape and portrait layouts, mobile phone 100 displays the corresponding application interfaces at a preset proportionally reduced size of application A's original interface in both landscape and portrait modes. For example, as shown in FIG12A , in landscape mode, mobile phone 100 displays application A's interface proportionally reduced from its original interface size in the upper split-screen window, and displays application B's interface horizontally in the lower split-screen window, fully occupying the split-screen window's size. In the portrait mode after rotation, mobile phone 100 continues to display application A's interface proportionally reduced from its original interface size in the left split-screen window, while displaying application B's interface vertically in the right split-screen window, fully occupying the split-screen window's size. This method can be understood as a native-compatible display mode.
[0199] However, for application A that cannot adapt to the horizontal layout, this implementation method displays the application interface of application A in a proportionally reduced size of its original interface size in both portrait and landscape modes, so that the display of application A's application interface is always limited (i.e., always small), which affects the user experience.
[0200] The application interface display method provided by the implementation of the present application is applied to a split-screen scenario. As shown in FIG12B , if the mobile phone 100 displays the interface of application A in full screen, then after the left-right split screen is performed, the mobile phone 100 displays two split-screen windows on the left and right sides, and the mobile phone 100 determines the display mode of the split-screen applications in the split-screen windows based on the screen orientation of the mobile phone 100. For example, if the mobile phone 100 determines that the mobile phone 100 is in landscape mode, the mobile phone 100 displays the upper and lower split-screen windows in a vertical manner, and displays the application interface of application A in the upper split-screen window as a non-full-screen split-screen window, and displays the application interface of application B in the lower split-screen window as a full-screen split-screen window in a horizontal manner. If the mobile phone 100 detects that the user rotates the mobile phone 100 by 90 degrees, the mobile phone determines that the screen orientation of the mobile phone 100 is adjusted from landscape to portrait, and the mobile phone 100 splits the screen left and right, displays the application interface of application A in a vertical manner in the left split-screen window at the size of a full-screen window, and displays the application interface of application B in a vertical manner in the right split-screen window at the size of a full-screen window.
[0201] In this way, the application interface of the application can be better displayed according to different screen orientations and interface layout directions supported by the application, thereby improving the user experience.
[0202] In some implementations of the present application, electronic devices such as mobile phone 100, mobile phone 200, mobile phone 300, and tablet computer 400, in a scenario where the application interface of an application is displayed in a non-full-screen manner, that is, in a compatible mode scenario, the electronic device does not display the aforementioned function bar S1 (also referred to as the top bar) in the split-screen window that displays the application interface of the application in a non-full-screen manner, that is, hides the function bar S1, and achieves the effect that the function bar S1 disappears after entering the compatible mode. In addition, the function bar S1 can be unpacked and set in other locations for separate management and operation. How to adapt the size of the function bar S1 at the top of the window in the compatible mode and how to set it can all be selected and set as needed.
[0203] In some implementations of the present application, taking the aforementioned mobile phone 100 as an example, when the mobile phone 100 is in split-screen mode and receives a user's call operation for an input method, the mobile phone 100 determines the display mode of the input method based on the current split-screen mode (i.e., split-screen direction) and the position of the application that needs to use the input method on the screen. The split-screen mode can be, for example, a top-bottom split-screen mode (i.e., top-bottom split-screen or horizontal split-screen), in which case the position of the application that needs to use the input method on the screen is, for example, the top and bottom; the split-screen mode can also be a left-right split-screen mode (i.e., left-right split-screen or vertical split-screen), in which case the position of the application that needs to use the input method on the screen is, for example, the right and left.
[0204] For example, in a top-bottom split-screen scenario, if an application that requires an input method is located at the top of the screen, i.e., the top split screen invokes the input method, the mobile phone 100 directly displays the input method window at the bottom of the screen without adjusting the boundaries of the top-bottom split-screen applications (i.e., there is no need to adjust the split-screen line). The input method window at least partially obscures the content displayed in the split-screen window at the bottom of the screen. If an application that requires an input method is located at the bottom of the screen, i.e., the bottom split screen invokes the input method, the mobile phone 100 shrinks the bottom edge of the top split screen and moves the bottom split screen up. When the bottom split screen moves up, the height of the bottom split screen remains unchanged, and the input method window is displayed at the bottom of the screen.
[0205] For example, as shown in Figure 13A, the upper split-screen application is a browser application, and the lower split-screen application is a calculator application. The browser application calls the input method, and the mobile phone 100 directly displays the input method window at the bottom of the screen without adjusting the boundaries of the upper and lower split-screen applications (that is, there is no need to adjust the split-screen line). The input method window at least partially blocks the application interface of the calculator application displayed in the split-screen window at the bottom of the screen.
[0206] For example, as shown in Figure 13B, the upper split-screen application is a calculator application, and the lower split-screen application is a browser application. When the browser application calls the input method, the mobile phone 100 shrinks the bottom edge of the upper split-screen calculator application and moves the browser application to the top (that is, the split-screen line needs to be moved up). When the browser application moves to the top, the height of the browser application remains unchanged and the input method window is displayed at the bottom of the screen.
[0207] Furthermore, after the display state of the mobile phone 100 screen switches from the expanded state to the folded state or from the folded state to the expanded state, the mobile phone 100 needs to recalculate the input method height according to the new split-screen ratio, and the calculation method can be based on the selection and setting.
[0208] In this way, the user's needs for input method usage in different split-screen scenarios can be met, effectively improving the user experience.
[0209] In one implementation of the present application, the user's split-screen operation can be the aforementioned split-screen operation performed by the user through the function bar S1, or can be performed through the side toolbar, or can be performed by dragging a floating window displayed in a floating manner. Of course, it can also be a split-screen operation implemented according to other operations, which can be selected and set as needed.
[0210] Taking the mobile phone 100 as an example, the process of splitting the screen when the mobile phone 100 detects the user's split-screen operation is further illustrated below.
[0211] As shown in FIG14(a), the mobile phone 100 displays the application interface of the video application and displays the function bar S1. The user can enter the split-screen state through the function bar S1 as described above. As shown in FIG14(b), the split-screen window M1 and the split-screen window M2 are displayed. In the split-screen window M1, the application interface of the calculator application is displayed vertically with the size of the full-screen window M1, and in the split-screen window M2, the application interface of the video application is displayed horizontally with the size of the non-full-screen window M2. If the mobile phone 100 receives a user sliding operation on the right screen to the left, as shown in FIG14(b), the mobile phone 100 displays a side toolbar P, which includes icons of multiple applications such as the browser application and the game application 1. As shown in FIG14(b), if the mobile phone 100 receives a user clicking operation on the browser application icon, as shown in FIG14(c), the mobile phone 100 displays the application interface N of the browser application in a floating manner on the current display interface. Further, as shown in (c) in Figure 14, if the mobile phone 100 receives an operation by the user to drag the application interface N to the lower left corner of the downward split-screen window M2, the mobile phone 100 replaces the application interface of the video application displayed in the split-screen window M2 with the application interface of the browser application, that is, as shown in (d) in Figure 14, the mobile phone 100 vertically displays the application interface of the browser application in the split-screen interface M2.
[0212] In addition, if the mobile phone 100 receives the user's operation of sliding the split-screen line to the right as shown in Figure 14 (b), and determines that the split-screen state needs to be exited, the mobile phone 100 displays the application interface of the video application in full screen as shown in Figure 14 (e).
[0213] Alternatively, if the mobile phone 100 receives an operation from the user to drag the interface of the video application as shown in (b) in Figure 14 to above the interface of the calculator application, it determines that it is necessary to enter the floating window state from the split screen state, then as shown in (f) in Figure 14, the mobile phone 100 displays the application interface of the calculator application in full screen, and displays the application interface of the video application in a floating manner above the application interface of the calculator application.
[0214] In this implementation, the mobile phone 100 can add a list of unified management for switching between the three states of full-screen state, split-screen state, and floating window state on the basis of the original system framework. The mobile phone 100 can determine whether the application supports the corresponding full-screen display, split-screen display, and floating window display based on the list. If so, the mobile phone 100 obtains the preset interface in the list, and provides the corresponding interface to different modules according to the list to realize the mutual switching of the three states.
[0215] In this way, in the split-screen scenario, the mobile phone 100 can display the application interface of the application in a compatible mode, and realize switching between the full-screen state, split-screen state, and floating window state, and realize corresponding display animation effects, thereby meeting the different usage needs of users and effectively improving the user experience.
[0216] Furthermore, for applications that are displayed in a split-screen window at a size that does not fill the split-screen window, the mobile phone 100 needs to display the application according to the new window mode / window size in the scenario of entering or exiting the split-screen mode.
[0217] When an application enters the split-screen state, it can be in the full-screen state (which can be called a cold start of the application) or in the floating state or split-screen state (which can be called a hot start). In addition, when the application enters the split-screen state (i.e., it is started in the split-screen or switched from the full-screen / floating window to the split-screen mode), if the interface layout direction supported by the application is the same as the screen direction, the mobile phone 100 displays the application interface of the application in the split-screen window at a size that covers the split-screen window. If the interface layout direction supported by the application is different from the screen direction, the mobile phone 100 displays the application interface of the application in the split-screen window at a size that does not cover the split-screen window according to the aforementioned preset display ratio rule.
[0218] If the mobile phone 100 determines that the application needs to exit the split-screen state, the mobile phone 100 switches to the full-screen state according to the user operation or the preset switching rules, and displays the corresponding application in full screen. Alternatively, according to the user operation or the preset display rules, the mobile phone 100 switches the application to a floating window and displays it according to the floating window size.
[0219] The process of displaying the application interface on the mobile phone 200 will be further described below by taking the aforementioned mobile phone 200 as an example.
[0220] The process of displaying the application interface of the application on the mobile phone 200 will be further described below with reference to FIG. 15 .
[0221] S111, the mobile phone 200 receives the split-screen operation of the aforementioned user, or detects that the screen direction of the mobile phone 200 has changed in the split-screen state. The mobile phone 200 determines the display mode of the application to be split in the corresponding split-screen window according to the current screen direction, the interface layout direction supported by the application to be split, and the interface size adjustment capability, and displays the application interface of the application to be split in the split-screen window corresponding to the application to be split in the determined display mode, thereby displaying the split-screen interface.
[0222] Among them, if the mobile phone 200 determines that the application to be split screen supports the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the interface layout direction supported by the application to be split screen includes the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the mobile phone 200 includes the aforementioned vertical screen layout direction and horizontal layout direction, then the mobile phone 200 executes step S112.
[0223] If the mobile phone 200 determines that the application to be split screen does not support the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the interface layout direction supported by the application to be split screen is different from the current screen direction of the mobile phone 200, but the interface size adjustment capability of the application to be split screen is adjustable, then the mobile phone 200 executes step S112.
[0224] If mobile phone 200 determines that the application to be split screen does not support the same interface layout direction as the screen direction of mobile phone 200, or mobile phone 200 determines that the interface layout direction supported by the application to be split screen is different from the current screen direction of mobile phone 200, and the interface size adjustment capability of the application to be split screen is not adjustable, then mobile phone 200 executes step S113.
[0225] S112, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that fully covers the split-screen window and an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0226] S113, the mobile phone 200 displays the application interface of the application to be split in the split-screen window with a size that is not fully covered by the split-screen window, and with an interface layout direction supported by the application to be split (i.e., with an interface layout direction different from the current screen direction).
[0227] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0228] The process of displaying the application interface by the mobile phone 200 will be further described below with reference to FIG. 16 .
[0229] S211, the mobile phone 200 receives the aforementioned split-screen operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the split-screen state and an application needs to be split.
[0230] S212, the mobile phone 200 determines the current screen direction of the mobile phone 200 and the interface layout direction supported by the application to be split-screen.
[0231] The screen orientation includes the aforementioned vertical screen orientation and horizontal screen orientation, and the interface layout orientation includes the aforementioned vertical screen layout orientation and horizontal screen layout orientation.
[0232] S213: The mobile phone 200 determines whether the current screen orientation of the mobile phone 200 is the same as the interface layout orientation supported by the application to be split. If not, the mobile phone 200 executes step S214; if the same, the mobile phone 200 executes step S216.
[0233] At step S214, mobile phone 200 determines the interface resizing capability of the application to be split. Interface resizing capabilities include resizing and non-resizing. If mobile phone 200 determines that the application's interface resizing capability is non-resizing, mobile phone 200 executes step S215. If mobile phone 200 determines that the application's interface resizing capability is resizing, mobile phone 200 executes step S216.
[0234] S215, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window, with a size that does not fully cover the split-screen window, and with an interface layout direction supported by the to-be-split-screen application.
[0235] S216, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that fully covers the split-screen window and an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0236] In this way, the mobile phone 200 can easily determine in what display mode to display the application interface of the split-screen application in the split-screen window, meet the needs of normal display of the application interface, and thus effectively improve the user experience.
[0237] The process of displaying the application interface on the mobile phone 200 will be further described below with reference to FIG. 17 .
[0238] S311, the mobile phone 200 receives the aforementioned split-screen operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the split-screen state.
[0239] At step S312, mobile phone 200 determines the interface layout orientations supported by the application to be split. If the interface layout orientations supported by the application to be split include both the portrait and landscape orientations, mobile phone 200 executes step S317. If the interface layout orientations supported by the application to be split include only the portrait or landscape orientations, mobile phone 200 executes step S313.
[0240] At step S313, mobile phone 200 determines the interface size adjustment capability of the application to be split, which can be either adjustable or non-adjustable. If mobile phone 200 determines that the interface size adjustment capability of the application to be split is non-adjustable, mobile phone 200 executes step S314; if mobile phone 200 determines that the interface size adjustment capability of the application to be split is adjustable, mobile phone 200 executes step S317.
[0241] S314 , the mobile phone 200 determines the current screen orientation of the mobile phone 200 .
[0242] S315: The mobile phone 200 determines whether the current screen orientation of the mobile phone 200 is the same as the interface layout orientation supported by the application to be split. If not, the mobile phone 200 executes step S316; if the same, the mobile phone 200 executes step S317.
[0243] S316, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that does not fully cover the split-screen window and with an interface layout direction supported by the to-be-split-screen application.
[0244] S317, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that fully covers the split-screen window and an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0245] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0246] The process of displaying the application interface on the mobile phone 200 will be further described below with reference to FIG. 18 .
[0247] S411, the mobile phone 200 receives the aforementioned split-screen operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the split-screen state.
[0248] At step S412, mobile phone 200 determines the interface size adjustment capability of the application to be split, which can be either adjustable or non-adjustable. If mobile phone 200 determines that the interface size adjustment capability of the application to be split is non-adjustable, mobile phone 200 executes step S413; if mobile phone 200 determines that the interface size adjustment capability of the application to be split is adjustable, mobile phone 200 executes step S417.
[0249] At step S413, mobile phone 200 determines the interface layout orientations supported by the application to be split. If the interface layout orientations supported by the application to be split include both the portrait and landscape orientations, mobile phone 200 executes step S417. If the interface layout orientations supported by the application to be split include only the portrait or landscape orientations, mobile phone 200 executes step S414.
[0250] S414 , the mobile phone 200 determines the current screen orientation of the mobile phone 200 .
[0251] S415: The mobile phone 200 determines whether the current screen orientation of the mobile phone 200 is the same as the interface layout orientation supported by the application to be split. If not, the mobile phone 200 executes step S416; if the same, the mobile phone 200 executes step S417.
[0252] S416, the mobile phone 200 displays the application interface of the application to be split in the split window, with a size that does not fully cover the split window, and with an interface layout direction supported by the application to be split.
[0253] S417, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that fully covers the split-screen window and an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0254] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0255] The process of displaying the application interface on the mobile phone 200 will be further described below with reference to FIG. 19 .
[0256] S511: Mobile phone 200 receives the aforementioned user's split-screen operation, or detects that the screen orientation of mobile phone 200 has changed while in split-screen mode. Mobile phone 200 determines a display mode for the application to be split in the corresponding split-screen window based on the current screen orientation, the interface layout directions supported by the application to be split, the interface resizing capability of the application to be split, and whether the application to be split is a preset application. Mobile phone 200 then displays the application interface of the application to be split in the split-screen window corresponding to the application to be split using the determined display mode, thereby displaying the split-screen interface.
[0257] Among them, if the mobile phone 200 determines that the application to be split screen supports the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the interface layout direction supported by the application to be split screen includes the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the mobile phone 200 includes the aforementioned vertical screen layout direction and horizontal layout direction, then the mobile phone 200 executes step S512.
[0258] If the mobile phone 200 determines that the application to be split screen does not support the same interface layout direction as the current screen direction of the mobile phone 200, or the mobile phone 200 determines that the interface layout direction supported by the application to be split screen is different from the current screen direction of the mobile phone 200, but the application to be split screen is a preset application, and the interface size adjustment capability of the application to be split screen is adjustable, then the mobile phone 200 executes step S512.
[0259] If the mobile phone 200 determines that the application to be split screen does not support the same interface layout direction as the screen direction of the mobile phone 200, or the mobile phone 200 determines that the interface layout direction supported by the application to be split screen is different from the current screen direction of the mobile phone 200, but the application to be split screen is a preset application, and the interface size adjustment capability of the application is that the size is not adjustable, then the mobile phone 200 executes step S513.
[0260] If mobile phone 200 determines that the application to be split screen does not support the same interface layout direction as the screen direction of mobile phone 200, or mobile phone 200 determines that the interface layout direction supported by the application to be split screen is different from the current screen direction of mobile phone 200, and the application to be split screen is not a preset application, then mobile phone 200 executes step S514.
[0261] S512, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that fully covers the split-screen window and an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0262] S513, the mobile phone 200 displays the application interface of the application to be split in the split window, with a size that does not fully cover the split window, and with an interface layout direction supported by the application to be split.
[0263] S514, the mobile phone 200 does not perform split-screen processing on the application, that is, does not display the application interface of the application to be split in the split-screen window.
[0264] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0265] The process of displaying the application interface on the mobile phone 200 will be further described below with reference to FIG. 20 .
[0266] S611, the mobile phone 200 receives the aforementioned split-screen operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the split-screen state.
[0267] S612, the mobile phone 200 determines the current screen direction of the mobile phone 200 and the interface layout direction supported by the application to be split-screen.
[0268] The screen orientation includes the aforementioned vertical screen orientation and horizontal screen orientation, and the interface layout orientation includes the aforementioned vertical screen layout orientation and horizontal screen layout orientation.
[0269] S613: The mobile phone 200 determines whether the current screen orientation of the mobile phone 200 is the same as the interface layout orientation supported by the application to be split. If not, the mobile phone 200 executes step S614; if the same, the mobile phone 200 executes step S616.
[0270] S614: The mobile phone 200 determines whether the application to be split is a preset application. If so, the mobile phone 200 executes step S615; if not, the mobile phone 200 executes step S618.
[0271] The mobile phone 200 may determine whether the application to be split screen is a preset application by determining whether the application to be split screen is an application in the whitelist.
[0272] At step S615, mobile phone 200 determines the interface resizing capability of the application to be split, which can be either resizable or non-resizable. If mobile phone 200 determines that the interface resizing capability of the application to be split is non-resizable, mobile phone 200 executes step S617; if mobile phone 200 determines that the interface resizing capability of the application to be split is resizable, mobile phone 200 executes step S616.
[0273] S616, the mobile phone 200 displays the application interface of the to-be-split-screen application in the split-screen window with a size that is not fully covered by the split-screen window and with an interface layout direction that is supported by the to-be-split-screen application and is the same as the current screen direction.
[0274] S617 , the mobile phone 200 displays the application interface of the application to be split-screen in the split-screen window at a size that fully covers the split-screen window and in an interface layout direction supported by the application to be split-screen.
[0275] S618, the mobile phone 200 does not perform split-screen processing on the application, that is, the application interface of the application to be split-screen is no longer displayed in the split-screen window.
[0276] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0277] In addition, corresponding to FIG. 17 , mobile phone 200 may also determine whether the application is a preset application before executing step S314 and perform subsequent processing based on the result. Furthermore, corresponding to FIG. 18 , mobile phone 200 may also determine whether the application is a preset application before executing step S414 and perform subsequent processing based on the result. This process can be seen in the relevant steps of FIG. 20 and will not be further described here.
[0278] Furthermore, the process of displaying the application interface on the mobile phone 200 is further explained below in conjunction with FIG. 21 .
[0279] In one implementation of the present application, the mobile phone 200 displays an application interface mainly through the desktop launcher, activity management service, window management service, function bar, and animation management in the mobile phone 200. Referring to FIG21 , the desktop launcher includes an activity task manager service module, the activity management service includes an activity starter module and an activity record module, and the window management service includes a task module and a window management service module. The activity starter module and the task module can interact with each other through a root window container.
[0280] Then, the implementation process of this method includes the following steps:
[0281] S701, the activity task manager service module determines that the corresponding activity needs to be started as a user (that is, it can be understood as Start Activity As User) based on the user's operation of opening the application, or the user's operation of splitting the screen of the interface (the splitting screen operation can be implemented based on the user's operation on the aforementioned function bar), and then the activity task manager service module executes S702.
[0282] S702: The activity task manager service module executes the operation of calling the activity starter module.
[0283] S703, the activity start module executes the corresponding request according to the call of the activity task manager service module, checks the currently started activities and tasks inside to determine whether there is a task corresponding to the current activity (that is, it can be understood as Excute Request start Activity Unchecked start Activity Inner).
[0284] If the activity launch module determines that there is no root task corresponding to the current activity (for example, if the user operation is to open a new application, it is determined that there is no root task corresponding to the activity, or there is no task with the same application identification information as the current activity among the currently launched tasks), then S704 is executed. If the activity launch module determines that there is a root task corresponding to the current activity (for example, if the user operation is a split-screen operation and the application has been launched, it is determined that there is a root task corresponding to the activity, or there is a task with the same application identification information as the current activity among the currently launched tasks), then S708 is executed.
[0285] S704: The activity launch module determines that it needs to obtain the root task corresponding to the current activity (that is, it can be understood as Computer target Task get Launch Root Task).
[0286] S705: The activity starting module sends an instruction to start a root task (which can be understood as "get Launch Root Task") to the root window container.
[0287] S706: The root window container determines whether to obtain or create a root task corresponding to the current activity (ie, it can be understood as "get Or Create Root Task") according to the instruction sent by the activity starting module.
[0288] S707: The root window container sends an instruction to create a new task to the task module, so that the task module creates the new task and hangs the current activity on the new task.
[0289] S708: The activity start module sends an instruction to the task module to attach the activity to the corresponding existing task.
[0290] Hanging an activity on a corresponding task means associating the corresponding identification information of the activity with the identification information of the corresponding task. For example, the identification information of the task is used as the parent node, and the identification information of the activity is added to the identification information of the task as its child node, thereby associating the two.
[0291] S709: If the task module determines that the new activity is an activity selected by the user to enter a split-screen mode, it determines that the window mode needs to be changed accordingly, that is, a new window mode needs to be set.
[0292] The window modes include full screen (full), split screen (split) and floating (freeform) three kinds, which can be determined according to the pre-stored window mode configuration file, and the corresponding container size and other information can also be determined.
[0293] S710, the task non-configuration item of the task module changes (i.e., Task Unconfiguration changed), that is, when the window mode changes, the task module determines the container size (i.e., the size of the split-screen window) in the configuration of the task that needs to be processed at this time, and calculates the specific position coordinates of the application interface in the split-screen window, and calls the activity recording module.
[0294] S711, the activity records changes in non-configuration items of the module, which identifies that the configuration of the activity has changed.
[0295] S712 , the activity recording module determines that the application interface display corresponding to the configuration needs to be resolved (ie, it can be understood as Resolved Override Configuration).
[0296] S713: The activity recording module calls the window management service module in the window management service in the multi-window manager (Multi Window Manager), so that the window management service module performs the following steps.
[0297] S801, the window management service module determines the split screen mode and the position of the split screen line, and updates the screen split boundary corresponding to the current split screen mode through the split screen line, such as the upper and lower split boundaries, that is, updates the special upper and lower split boundaries.
[0298] S802: The window management service module determines whether the current screen direction matches the interface layout direction supported by the application, that is, whether they are the same or consistent.
[0299] S803: The window management service module obtains the screen direction.
[0300] The screen orientation includes the portrait orientation of the mobile phone 200 (i.e., the original orientation or the set physical orientation when not rotated) and the landscape orientation (e.g., the orientation of the mobile phone 200 rotated 90 degrees or 270 degrees based on the original orientation or the set physical orientation).
[0301] S804: The window management service module determines the interface layout direction supported by the application.
[0302] The window management service module may, for example, obtain the interface layout direction declared by the third-party application from an XML file provided by the third-party application.
[0303] S805, the window management service module determines whether the current screen direction is consistent with the interface layout direction supported by the application. If not, the window management service module executes step S806. If yes, the window management service module executes step S808,
[0304] At step S806, the window management service module reads the corresponding preset whitelist and determines whether the application is a preset application in the whitelist, that is, whether it is on the whitelist. If the application is on the whitelist, the window management service module executes step S807. If not, the window management service module executes step S810.
[0305] S807: The window management service module displays the application interface in, for example, a compatible mode.
[0306] S808: The window management service module determines the display range of the application in the split-screen window, that is, determines the corresponding display position.
[0307] S809: The window management service module calls the task module so that the task module performs operations related to displaying the application interface according to the determined display range information (ie, display position information).
[0308] S810: The window management service module does not perform the split-screen operation, and causes the display screen of the mobile phone 100 to display a prompt message as shown in FIG. 11 , indicating that the current application does not support split-screen.
[0309] In addition, the method also includes S901, that is, the task module performs operations related to displaying the application interface, such as setting the display range, based on the display position information (i.e., display range (bounds) information). Among them, the task module can determine the corresponding container size based on the configuration file of the preset container size (such as the diagonal coordinates of the container and other position information), and display the application interface in the corresponding container according to the display range of the application interface. In addition, the dynamic effect in the split-screen display process can be implemented by the aforementioned dynamic effect service. The implementation process can refer to the current implementation method and will not be repeated here.
[0310] In this way, mobile phone 200 can easily determine the display mode in which to display the application interface of the application to be split in the split-screen window, and display the application interface according to the display mode to meet the needs of normal display of the application interface and ensure the user's usage needs, thereby effectively improving the user experience.
[0311] Furthermore, in this implementation, for step S808, the window management service module determines the display range of the application in the split-screen window. For example, the mobile phone 200 can obtain information such as the interface layout direction and interface size adjustment capability supported by the application from the declaration file in the application package of the application. In addition, the mobile phone 200 can obtain the display size of the preset application when it is displayed in the size of a non-full split-screen window from the declaration file in the application package of the application. Alternatively, the mobile phone 200 can also determine the display size of the application through a preset application whitelist.
[0312] The display size can be any of the aforementioned first, second, and third sizes. The first size is the size of the application interface of the application reduced according to a preset ratio. The second size is the size corresponding to the first size with an aspect ratio of 4:3. The third size is the size corresponding to the first size with an aspect ratio of 16:9. The first, second, third, and preset ratios can all be set as needed.
[0313] The following is an example description of the settings of the first size, the second size, the third size and the preset ratio.
[0314] Please refer to Figure 22A. In landscape mode, a foldable phone switches from full-screen mode to split-screen mode and enters compatible mode. In full-screen mode, the interface size of application A is: height x, width y. In split-screen mode, the interface size of application A displayed in a non-full-screen split-screen window is:
[0315] If displayed at 0:0 size, height = (x-dividerbar) / 2, width = (x-dividerbar)*(x-dividerbar) / (4*y).
[0316] If displayed in 4:3 size, height = (x-dividerbar) / 2, width = (x-dividerbar) / 2*3 / 4.
[0317] If displayed in 16:9 size, height = (x-dividerbar) / 2, width = (x-dividerbar) / 2*9 / 16.
[0318] The value of x may be, for example, 1900-2000 mm, such as 1984 mm; the value of y may be, for example, 2000-2500 mm, such as 2272 mm.
[0319] In addition, dividerbar is the width of the screen dividing line, and its value can be, for example, 10 to 15 mm, for example, 12 mm.
[0320] Of course, the values of x, y and dividerbar can also be any other values, which can be set as needed.
[0321] Subsequently, the mobile phone 200 may display the application interface of the application in the center of the corresponding container according to the container position of the task (ie, the split-screen window position).
[0322] Please refer to Figure 22B. In portrait mode, mobile phone 200 switches from full-screen mode to split-screen mode and enters compatible mode. In full-screen mode, the interface size of application A is: height x, width y. In split-screen mode, the interface size of application A displayed in a non-full-screen window is:
[0323] If displayed at 0:0 size, width = (y-dividerbar) / 2, height = (y-dividerbar)*(y-dividerbar) / (4*x).
[0324] If displayed in 4:3 size, width = (y-dividerbar) / 2, height = (y-dividerbar) / 2*3 / 4.
[0325] If displayed in 16:9 size, width = (y-dividerbar) / 2, height = (y-dividerbar) / 2*9 / 16.
[0326] The value of x may be, for example, 2000-2500 mm, such as 2272 mm; the value of y may be, for example, 1900-2000 mm, such as 1984 mm.
[0327] In addition, dividerbar is the width of the screen dividing line, and its value can be, for example, 10 to 15 mm, for example, 12 mm.
[0328] Of course, the values of x, y and dividerbar can also be any other values, which can be set as needed.
[0329] Subsequently, the mobile phone 200 may display the application interface of the application in the center of the corresponding container according to the container position of the task (ie, the split-screen window position).
[0330] Thus, in the compatible mode, the mobile phone 200 can display the corresponding application interface according to the aforementioned three different display sizes (ie, large and small display modes), thereby meeting the user's different application usage requirements.
[0331] Of course, in other implementations of the present application, the display size of the application interface in the split-screen window may also be determined in other ways.
[0332] In addition, in this implementation, the mobile phone 200 may also determine the screen direction of the mobile phone 200 based on the motion information of the mobile phone 200 detected by the gyroscope sensor 180B in the mobile phone 200 .
[0333] In addition, the aforementioned whitelist for determining whether an application is a preset application can be stored in a storage area corresponding to the window management service in the mobile phone 200, or can be stored in other storage areas, which can be set as needed.
[0334] Furthermore, the height and width (i.e., x, y) of the interface size of the aforementioned application A can be determined based on the pre-stored display screen size and screen orientation. Furthermore, the size of the dividerbar can also be determined based on a preset dividerbar configuration file in split-screen mode.
[0335] In other implementations of the present application, the electronic device provided by the present application may also be an in-vehicle device, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (for example, including: smart watches, smart bracelets, pedometers, etc.), a personal digital assistant, a portable media player, a navigation device, a video game device, a set-top box, a television, a speaker, a virtual reality and / or augmented reality device, an Internet of Things device, an industrial control device, a streaming client device, an e-book, a reading device, a POS machine, and other devices.
[0336] The application interface display method provided by the implementation of this application can be applied to electronic devices in various application scenarios such as home, office, social, sports and health, and automobiles.
[0337] The following describes some other possible structures of the electronic device provided by the implementation of this application.
[0338] Please refer to Figure 23, which is a schematic diagram of the structure of an electronic device 900 provided according to one implementation of the present application. The electronic device 900 may include one or more processors 901 coupled to a controller hub 904, and the processor 901 includes a GPU. For at least one implementation, the controller hub 904 communicates with the processor 901 via a multi-drop bus such as a front-side bus (FSB), a point-to-point interface such as a QuickPath Interconnect (QPI), or a similar connection. The processor 901 executes instructions that control general types of data processing operations. In one implementation, the controller hub 904 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown) and an input / output hub (IOH) (which may be on separate chips) (not shown), wherein the GMCH includes memory and a graphics controller and is coupled to the IOH.
[0339] The electronic device 900 may also include a coprocessor 906 and a memory 902 coupled to the controller hub 904. Alternatively, one or both of the memory 902 and the GMCH may be integrated within the processor 901 (as described herein), with the memory 902 and the coprocessor 906 coupled directly to the processor 901 and the controller hub 904, with the controller hub 904 being in a single chip with the IOH.
[0340] The memory 902 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two.
[0341] In one implementation, the coprocessor 906 is a special-purpose processor, such as, for example, a high-throughput Many Integrated Core (MIC) processor, a network or communication processor, a compression engine, a graphics processor, a GPU such as a General Purpose Graphics Processing Unit (GPGPU), or an embedded processor. The optional nature of the coprocessor 906 is indicated by dashed lines in FIG23 .
[0342] In one implementation, the electronic device 900 may further include a network interface card (NIC) 903. The NIC 903 may include a transceiver for providing a radio interface for the electronic device 900, thereby communicating with any other suitable device (such as a front-end module, antenna, etc.). In various implementations, the NIC 903 may be integrated with other components of the electronic device 900. The NIC 903 may implement the functions of the communication unit in the above implementations.
[0343] The electronic device 900 may further include input / output (I / O) devices 905. The I / O devices 905 may include: a user interface designed to enable a user to interact with the electronic device 900; a peripheral component interface designed to enable peripheral components to interact with the electronic device 900; and / or sensors designed to determine environmental conditions and / or path information related to the electronic device 900.
[0344] It is worth noting that Figure 23 is merely exemplary. That is, although Figure 23 shows that electronic device 900 includes multiple components such as processor 901, controller hub 904, and memory 902, in actual applications, devices using the methods of the present application may only include a portion of the components of electronic device 900, for example, only processor 901 and NIC 903. The properties of optional components in Figure 23 are indicated by dotted lines.
[0345] One or more tangible, non-transitory computer-readable media for storing data and / or instructions may be included in the memory of the electronic device 900. The computer-readable storage medium stores instructions, and more specifically, stores temporary and permanent copies of the instructions.
[0346] In the present application, the electronic device 900 may be a terminal device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), or a desktop computer. The instructions stored in the memory of the electronic device may include instructions that, when executed by at least one unit in the processor, cause the electronic device to implement the application interface display method mentioned above.
[0347] Please refer to Figure 24, which shows a schematic diagram of the structure of a SoC (System on Chip) 1000 provided according to one implementation of the present application. In Figure 24, similar components have the same reference numerals. In addition, the dashed box indicates an optional feature of a more advanced SoC 1000. The SoC 1000 can be used in any electronic device according to the present application, and can implement corresponding functions depending on the device in which it is located and the instructions stored therein.
[0348] In FIG24 , SoC 1000 includes an interconnect unit 1002 coupled to a processor 1001, a system agent unit 1006, a bus controller unit 1005, an integrated memory controller unit 1003, a set of one or more coprocessors 1007, which may include integrated graphics logic, an image processor, an audio processor, and a video processor, a static random access memory (SRAM) unit 1008, and a direct memory access (DMA) unit 1004. In one implementation, the coprocessors 1007 include specialized processors, such as a network or communication processor, a compression engine, a GPU, a high-throughput MIC processor, or an embedded processor.
[0349] The SRAM unit 1008 may include one or more computer-readable media for storing data and / or instructions. The computer-readable storage medium may store instructions, specifically, temporary and permanent copies of the instructions. The instructions may include instructions that, when executed by at least one unit in the processor 1001, cause the electronic device to implement the application interface display method described above.
[0350] The aforementioned terms “first”, “second”, etc. are only used for distinguishing descriptions and should not be understood as indicating or implying relative importance.
[0351] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some implementations, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all implementations, and in some implementations, such features may not be included or may be combined with other features.
[0352] Although the present application has been illustrated and described with reference to certain implementations of the present application, those skilled in the art should understand that the above description is provided as a further detailed explanation of the present application in conjunction with specific implementations, and that the specific implementation of the present application should not be limited to these descriptions. Those skilled in the art may make various changes in form and detail, including simple deductions or substitutions, without departing from the spirit and scope of the present application.
Claims
1. A method for displaying an application interface, characterized in that: Applied to electronic equipment, the method includes: Displaying a first interface, where the first interface includes a first application interface of a first application displayed in full screen; receiving a first operation corresponding to the first interface, where the first operation includes splitting the screen of the electronic device; In response to the first operation, displaying a second interface, the second interface including a first split-screen window and a second split-screen window displayed in a split-screen manner; and Determine the display method of the application interface of the application to be displayed in the corresponding split-screen window according to the interface layout direction declared by the application to be displayed, and display the application interface of the application to be displayed in the corresponding split-screen window according to the display method. The application to be displayed includes the first application and the second application, and the display method includes displaying in a manner of filling the split-screen window and displaying in a manner of not filling the split-screen window.
2. The application interface display method according to claim 1, characterized in that: Determining a display mode of the application interface of the to-be-displayed application in the corresponding split-screen window according to the interface layout direction declared by the to-be-displayed application includes: If the interface layout direction declared by the to-be-displayed application includes the current screen direction of the electronic device, the application interface of the to-be-displayed application is displayed in a manner of filling the split-screen window; If the interface layout direction declared by the application to be displayed does not include the current screen direction of the electronic device, the display mode of the application interface of the application to be displayed in the corresponding split-screen window is determined according to the interface size adjustment capability declared by the application to be displayed.
3. The application interface display method according to claim 2, characterized in that: Determining a display mode of the application interface of the to-be-displayed application in the corresponding split-screen window according to the interface size adjustment capability declared by the to-be-displayed application includes: If the interface size adjustment capability declared by the application to be displayed is that the interface size is adjustable, the display mode of the application interface of the application to be displayed is to display it in a manner of covering the split-screen window; If the interface size adjustment capability declared by the application to be displayed is that the interface size cannot be adjusted, the display mode of the application interface of the application to be displayed is to display it in a non-full split-screen window, or the display mode of the application interface of the application to be displayed in the corresponding split-screen window is determined according to whether the application to be displayed is a preset application.
4. The application interface display method according to claim 3, characterized in that: Determining, according to whether the application to be displayed is a preset application, a display mode of the application interface of the application to be displayed in the corresponding split-screen window, including: If the application to be displayed is the preset application, the application interface of the application to be displayed is displayed in a non-full split-screen window; If the application to be displayed is not the preset application, the split-screen operation corresponding to the application to be displayed is not performed.
5. The application interface display method according to claim 1, characterized in that: Determining a display mode of the application interface of the to-be-displayed application in the corresponding split-screen window according to the interface layout direction declared by the to-be-displayed application includes: If the interface layout direction declared by the to-be-displayed application includes the current screen direction of the electronic device, the application interface of the to-be-displayed application is displayed in a manner of filling the split-screen window; If the interface layout direction declared by the application to be displayed does not include the current screen direction of the electronic device, the display mode of the application interface of the application to be displayed in the corresponding split-screen window is determined according to whether the application to be displayed is a preset application.
6. The application interface display method according to claim 5, characterized in that: Determining, according to whether the application to be displayed is a preset application, a display mode of the application interface of the application to be displayed in the corresponding split-screen window, including: If the application to be displayed is the preset application, determining a display mode of the application interface of the application to be displayed in the corresponding split-screen window according to the interface size adjustment capability declared by the application to be displayed; If the application to be displayed is not the preset application, the split-screen operation corresponding to the application to be displayed is not performed.
7. The application interface display method according to claim 6, characterized in that: Determining a display mode of the application interface of the to-be-displayed application in the corresponding split-screen window according to the interface size adjustment capability declared by the to-be-displayed application includes: If the interface size adjustment capability declared by the application to be displayed is that the interface size is adjustable, the display mode of the application interface of the application to be displayed is to display it in a manner of covering the split-screen window; If the interface size adjustment capability declared by the application to be displayed is that the interface size cannot be adjusted, the application interface of the application to be displayed is displayed in a non-full split-screen window.
8. The application interface display method according to claim 1, characterized in that: The method further comprises: The display mode of the application interface of the to-be-displayed application in the corresponding split-screen window is determined according to the interface size adjustment capability declared by the to-be-displayed application.
9. The application interface display method according to claim 8, characterized in that: Determining a display mode of the application interface of the to-be-displayed application in the corresponding split-screen window according to the interface size adjustment capability declared by the to-be-displayed application includes: If the interface size adjustment capability declared by the application to be displayed is that the interface size is adjustable, the display mode of the application interface of the application to be displayed is to display it in a manner of covering the split-screen window; If the interface size adjustment capability declared by the application to be displayed is that the interface size cannot be adjusted, the display mode of the application interface of the application to be displayed is to display it in a non-full split-screen window, or the display mode of the application interface of the application to be displayed in the corresponding split-screen window is determined according to whether the application to be displayed is a preset application, or the display mode of the application interface of the application to be displayed in the corresponding split-screen window is determined according to the interface layout direction declared by the application to be displayed.
10. The application interface display method according to any one of claims 1 to 9, characterized in that: The method further comprises: When the screen of the electronic device is in a split-screen state, receiving a second operation, where the second operation is an operation of rotating the screen direction of the electronic device, or the second operation is an operation of changing a state of a foldable screen of the electronic device, where the state of the foldable screen includes an unfolded state and a folded state; In response to the second operation, displaying a third interface, the third interface including a third split-screen window and a fourth split-screen window displayed in a split-screen manner; and Determine the display method of the application interface of the application to be displayed in the corresponding split-screen window according to the interface layout direction declared by the application to be displayed, and display the application interface of the application to be displayed in the corresponding split-screen window according to the display method. The application to be displayed includes the first application and the second application, and the display method includes displaying in a manner of filling the split-screen window and displaying in a manner of not filling the split-screen window.
11. The application interface display method according to any one of claims 1 to 10, characterized in that: The application interface of the application to be displayed is displayed in the split-screen window in a manner that fills the split-screen window. In the first screen direction of the electronic device, the size of the application interface of the application to be displayed is equal to the size of the corresponding split-screen window. In the second screen direction of the electronic device, the size of the application interface of the application to be displayed is equal to the size of the corresponding split-screen window. The first screen direction is the current screen direction of the electronic device, and the second screen direction is the direction of the first screen direction rotated 90 degrees or 270 degrees.
12. The application interface display method according to any one of claims 1 to 11, characterized in that: The application interface of the application to be displayed is displayed in the split-screen window in a manner that does not fill the split-screen window. In the first screen direction of the electronic device, the size of the application interface of the application to be displayed is smaller than the size of the corresponding split-screen window. In the second screen direction of the electronic device, the size of the application interface of the application to be displayed is equal to the size of the corresponding split-screen window. The first screen direction is the current screen direction of the electronic device, and the second screen direction is the direction of the first screen direction rotated 90 degrees or 270 degrees.
13. The application interface display method according to any one of claims 1 to 12, characterized in that: Displaying the application interface of the application to be displayed in the split-screen window in a manner that does not fill the split-screen window includes: Displaying the application interface of the application to be displayed in the split-screen window in a first size, where the first size is the size of the original interface size of the application interface of the application to be displayed adjusted according to a first preset ratio; or Displaying the application interface of the application to be displayed in the split-screen window in a second size, where the second size is a size having a first aspect ratio corresponding to the first size; or The application interface of the application to be displayed is displayed in the split-screen window in a third size, where the third size is a size having an aspect ratio of the first size and a second aspect ratio.
14. The application interface display method according to claim 13, characterized in that: The first aspect ratio is 4:3, and the second aspect ratio is 16:
9.
15. The application interface display method according to any one of claims 1 to 14, characterized in that: The first function bar is displayed in the split-screen window that displays the application interface in a manner of filling the split-screen window.
16. The application interface display method according to claim 15, characterized in that: The method further comprises: receiving a user's operation on the first function bar; In response to the user's operation on the first function bar, a second function bar is displayed.
17. The application interface display method according to any one of claims 1 to 16, characterized in that: The first function bar is not displayed in the split-screen window that displays the application interface in a non-full split-screen window manner.
18. The application interface display method according to any one of claims 1 to 17, characterized in that: The second application is an application to be split screen that is different from the first application and selected by the user in response to the first operation.
19. The application interface display method according to any one of claims 3 to 7, characterized in that: The preset applications are applications in a preset whitelist.
20. The application interface display method according to any one of claims 2 to 10, characterized in that: The method further includes, in any of the following cases, determining that the interface layout direction declared by the to-be-displayed application includes the current screen direction of the electronic device: The interface layout direction declared by the to-be-displayed application includes a first interface layout direction, the current screen direction of the electronic device is the first screen direction, and the first interface layout direction is the same as the first screen direction; The interface layout direction declared by the application to be displayed includes a second interface layout direction, the current screen direction of the electronic device is the second screen direction, and the second interface layout direction is the same as the second screen direction.
21. The application interface display method according to claim 20, characterized in that: The first interface layout direction is a vertical screen layout direction, the second interface layout direction is a horizontal screen layout direction, the first screen direction is a vertical screen direction, and the second screen direction is a horizontal screen direction.
22. An electronic device, characterized in that: include: a memory for storing a computer program, wherein the computer program includes program instructions; A processor is used to execute the program instructions so that the electronic device executes the application interface display method as described in any one of claims 1-21.
23. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which includes program instructions. The program instructions are executed by an electronic device to enable the electronic device to execute the application interface display method according to any one of claims 1 to 21.