WO2024109190A1 - 应用界面显示方法、电子设备和存储介质 - Google Patents

应用界面显示方法、电子设备和存储介质 Download PDF

Info

Publication number
WO2024109190A1
WO2024109190A1 PCT/CN2023/113524 CN2023113524W WO2024109190A1 WO 2024109190 A1 WO2024109190 A1 WO 2024109190A1 CN 2023113524 W CN2023113524 W CN 2023113524W WO 2024109190 A1 WO2024109190 A1 WO 2024109190A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
screen
split
interface
displayed
Prior art date
Application number
PCT/CN2023/113524
Other languages
English (en)
French (fr)
Inventor
孙以天
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024109190A1 publication Critical patent/WO2024109190A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Definitions

  • the present application relates to the field of split-screen technology, and in particular to an application interface display method, an electronic device, and a storage medium.
  • the electronic device can normally display the application interface of the application in the left-right split screen, but cannot normally display the application interface of the application in the top-bottom split screen.
  • the present application provides an application interface display method, an electronic device, and a storage medium, which can solve the problem in the prior art that the electronic device cannot well display the application interface of the application in the split-screen function usage scenario, affecting the user experience. That is, the electronic device can well display the application interface of the application in the split-screen function usage scenario, thereby improving the user experience.
  • an implementation method 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; 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, the first split-screen window displaying a first application interface corresponding to a first application, 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.
  • 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, that is, the electronic device displays the first application interface in the first split-screen window with a size that does not fully cover 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).
  • 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 fully covers 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, and out of proportion, which will affect 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.
  • 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.
  • the second application interface is displayed in the second split-screen window with a size that fully covers the second split-screen window
  • the interface layout direction of the second application interface is the same as 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 fully covers the second split-screen window and with an interface layout direction that is the same as the current screen direction of the electronic device.
  • 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.
  • a second application interface corresponding to a 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 an interface layout direction of the second application interface is different from the current screen direction of the electronic device.
  • 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, that is, the electronic device displays the second application interface in the second split-screen window with a size that does not fully cover 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).
  • 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 fully covers 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, and out of proportion, which will affect the normal use of the user. That is, the electronic device can display the second application interface that meets the user's usage needs in the second split-screen window, thereby effectively improving the user experience.
  • the first interface may be a full-screen display interface of the first application, or a full-screen display interface of the second application, or a display interface including a floating window, etc.
  • the first operation may be a split-screen operation, for example.
  • 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.
  • 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 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
  • the third size is the size corresponding to the first size with an aspect ratio of the second aspect ratio.
  • 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 demand for using the first application interface and effectively improve the user experience.
  • 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.
  • 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 a size after adjusting the original interface size of the second application according to a second preset ratio
  • the fifth size is a size corresponding to the fourth size with an aspect ratio of a third aspect ratio
  • the sixth size is a size corresponding to the fourth size with an aspect ratio of a fourth aspect ratio.
  • 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 demand for using the second application interface and effectively improve the user experience.
  • 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.
  • 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. may be selected or set according to the application and user requirements.
  • 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.
  • a function bar may be displayed, so that the user can further operate the second split-screen window.
  • a function bar may not be displayed, so that the user's need for better use of the first application interface in the first split-screen window can be met, thereby improving the user experience.
  • a second interface in response to a first operation, 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 mode 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 mode.
  • the electronic device can conveniently and accurately determine whether the application to be split screen can be well adapted to the current split screen window according to the current screen direction 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 the application to be split screen can be well adapted to the current split screen window.
  • the corresponding application interface is displayed in the corresponding split-screen window in a certain display mode to display the application interface that meets the user's needs, effectively improving the user experience.
  • 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 direction 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 direction 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 direction of the electronic device; if the application to be split screen does not support the same interface layout direction as the current screen direction 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
  • 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 direction 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, effectively improving the user experience.
  • a second interface in response to a first operation, 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 mode 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 mode.
  • the electronic device can conveniently and accurately determine whether the application to be split-screen can be well adapted 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.
  • the preset application is an application in a preset whitelist.
  • 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 that can meet the user's usage needs.
  • the electronic device can further determine whether the application to be split-screen 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 to be split-screen, whether it can meet the user's usage needs. 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-screen. In this way, it is possible to conveniently and accurately determine in which display mode the corresponding application interface is displayed in the corresponding split-screen window, so as to display the application interface that meets the user's usage needs, effectively improving the user experience.
  • the display mode of the application interface of the application to be split in the corresponding split-screen window is determined according to the screen direction 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 direction 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 size, it means that the application to be split 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 is displayed with the size of the full-screen window and with the same interface layout direction as the current screen direction of the electronic device; if the application to be split does not support the same interface layout direction as the current screen direction 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
  • the electronic device can conveniently and accurately determine whether the application to be split-screen can be well adapted 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.
  • the method further includes: if the to-be-split-screen application does not support the same interface layout direction as the current screen direction of the electronic device, and the to-be-split-screen application is not a preset application, it means that when the to-be-split-screen application 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 to-be-split-screen application, it cannot meet the user's usage needs, and the corresponding For example, a prompt message may pop up to remind the user that the split screen of the application to be split screen is not currently supported.
  • 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.
  • the method also includes, in any of the following cases, determining that the application to be split screen does not support 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 a second screen direction, and the first interface layout direction and the second screen direction are different; the application to be split screen supports a 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.
  • 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, thereby effectively improving the user experience.
  • 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
  • the second screen direction is a horizontal screen direction
  • the electronic device can determine whether the to-be-split-screen application 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.
  • 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.
  • 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.
  • 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.)
  • the electronic device can display the corresponding split-screen window according to the user's operation, and display the corresponding application interface in the corresponding split-screen window to meet the user's usage needs and effectively improve the user experience.
  • 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; an operation of adjusting the usage status of different display screens of the electronic device.
  • the first operation may, for example, be an operation in which the user operates the first interface to perform a split-screen operation (for example, 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 inner and outer display screens, or switches different display screens to adjust the usage status of different display screens of the electronic device, etc.
  • a split-screen operation for example, selecting a split-screen application, or switching from a floating window to a split-screen mode, etc.
  • the electronic device can display the corresponding split-screen window according to the user's operation, and display the corresponding application interface in the corresponding split-screen window to meet the user's usage needs and effectively improve the user experience.
  • the first split-screen window and the second split-screen window may be displayed in split screens on the same screen or on different screens.
  • the electronic device may be a straight-screen electronic device with only one screen, or a folding-screen electronic device with only one screen, or a folding-screen electronic device with two screens (e.g., an inner screen, an outer screen, or two outer screens, or two inner screens).
  • the electronic device may also be an electronic device including three or more screens.
  • an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program, the computer program comprising program instructions; a processor for executing the program instructions so that the electronic device executes an application interface display method provided by the above-mentioned first aspect and/or any possible implementation method of the first aspect.
  • the embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions are executed by an electronic device to enable the electronic device to perform the first aspect and/or Or the application interface display method provided by any possible implementation of the first aspect.
  • 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;
  • FIG2 is a schematic diagram showing an interface of a mobile phone display application interface according to some implementation modes of the present application
  • FIG3A is a schematic diagram showing a correspondence between an interface layout direction, an interface size adjustment capability, and a screen direction supported by an application and a display mode of an application interface according to some implementation modes of the present application;
  • FIG3B is a schematic diagram showing another correspondence relationship between the interface layout direction, interface size adjustment capability and screen direction supported by the application and the display mode of the application interface according to some implementation modes of the present application;
  • 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 size that is not a full-screen split-screen window according to some embodiments of the present application;
  • FIG5 is a schematic diagram showing a structure of a mobile phone according to some implementation modes of the present application.
  • FIG6 is a schematic diagram showing a software system of a mobile phone according to some implementation modes of the present application.
  • FIGS. 7A-7G are schematic diagrams showing some display interfaces of the mobile phone 100 according to some implementations of the present application.
  • FIG8 is a schematic diagram showing some display interfaces of the mobile phone 200 according to some implementation modes of the present application.
  • FIG. 9 is a schematic diagram showing some display interfaces of a mobile phone 300 according to some implementations of the present application.
  • FIG. 10 is a schematic diagram showing some display interfaces of a tablet computer 400 according to some embodiments of the present application.
  • FIG. 11 is a schematic diagram showing some other display interfaces of the mobile phone 100 according to some implementation modes of the present application.
  • FIG12A is a schematic diagram showing a display mode of a split-screen interface according to some implementations of the present application.
  • FIG12B is a schematic diagram showing another display method of a split-screen interface according to some implementations of the present application.
  • FIG. 13A is a schematic diagram showing a display interface of calling an input method in a split-screen state of the mobile phone 100 according to some implementation modes of the present application;
  • FIG. 13B is a schematic diagram showing another display interface of calling an input method in a split-screen state of the mobile phone 100 according to some implementation modes of the present application;
  • FIG. 14 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 implementation modes of the present application;
  • FIG15 is a schematic diagram showing a flow chart of an application interface display method provided by the present application according to some implementation modes of the present application;
  • FIG16 is a flowchart showing another method for displaying an application interface provided by the present application according to some implementation modes of the present application;
  • FIG17 is a flowchart showing another method for displaying an application interface provided by the present application according to some implementation modes of the present application.
  • FIG18 is a flowchart showing another method for displaying an application interface provided by the present application according to some implementation modes of the present application.
  • 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 implementation modes of the present application;
  • FIG20 is a schematic diagram showing a flow chart of another application interface display method provided by the present application according to some implementation modes of the present application;
  • FIG21 is a schematic diagram showing a flow chart of another application interface display method provided by the present application according to some implementation modes of the present application;
  • FIG22A is a schematic diagram showing a size of an application interface displayed in a size of a non-full-screen split-screen window according to some implementations of the present application;
  • FIG22B is a schematic diagram showing another size of an application interface displayed in a size of a non-full-screen split-screen window according to some implementations of the present application;
  • FIG23 is a schematic diagram showing the structure of an electronic device according to some implementations of the present application.
  • FIG. 24 is a schematic diagram showing the structure of a system on a chip (SoC) according to some implementations of the present application.
  • SoC system on a chip
  • foldable screen mobile phones in the split screen function of the foldable screen mobile phone (it can also be During the use of the application split-screen function), foldable screen mobile phones default to displaying the application interface in the split-screen window with the application interface fully covering the size of the split-screen window.
  • 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 split) to display two vertical split screen windows, split screen window W1 and split screen window W2.
  • split screen window W1 the application interface of the calculator application is displayed vertically in the size of the full split screen window W1
  • split screen window W2 the application interface of the video application is displayed vertically in the size of the full split screen window W2.
  • the original interface size of the application interface of the calculator application will be adjusted 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 proportion imbalance 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-spread split-screen window W1.
  • 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-spread 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 be well adapted to the split-screen window W1.
  • the original interface size of the application interface of the video application will be resized vertically and horizontally.
  • the application interface of the video application (such as the video playback interface) is usually laid out horizontally, after the application interface of the video application is stretched vertically, there will be serious problems such as interface disproportion and deformation.
  • 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.
  • the folding 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 be well adapted to the split-screen window W2.
  • 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 of affecting the user experience.
  • 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).
  • 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 displayed in split-screen), 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.
  • 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.
  • 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, 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.
  • the foldable screen mobile phone can also include more other display screens.
  • the screen direction of the foldable screen mobile phone includes a vertical screen direction (i.e., the screen direction of the foldable screen mobile phone in a vertical screen state when placed vertically) and a horizontal screen direction (i.e., the screen direction of the foldable screen mobile phone in a horizontal screen state when placed horizontally). Therefore, the screen direction includes a vertical screen direction (as an example of a first screen direction) and a horizontal screen direction (as an example of a second screen direction).
  • the interface layout direction refers to the positive direction of the screen displayed on the interface. If the width of the interface is greater than the height, the interface layout direction of the interface is considered to be the horizontal layout direction. If the width of the interface is less than the height, the interface layout direction of the interface is considered to be the vertical layout direction. Therefore, the interface layout direction includes the vertical screen layout direction (also called the vertical layout direction, or the vertical screen layout mode, as an example of the first interface layout direction) and the horizontal screen layout direction (also called the horizontal layout direction, or the horizontal screen layout mode, as an example of the second interface layout direction).
  • the vertical screen layout direction also called the vertical layout direction, or the vertical screen layout mode, as an example of the first interface layout direction
  • the horizontal screen layout direction also called the horizontal layout direction, or the horizontal screen layout mode, as an example of the second interface layout direction.
  • Resizeable Activity refers to whether the size of the application interface can be adjusted during the display process, that is, the ability to adjust the size. Therefore, it can include adjustable size and non-adjustable size.
  • 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 an interface layout direction supported by the application that is 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 an interface layout direction supported by the application, that is, it can be an interface layout direction different from the current screen direction.
  • 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.
  • the foldable screen mobile phone needs 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.
  • the foldable screen mobile phone will always display the application interface of the application in the corresponding split-screen window with a size that fills the split-screen window in the split-screen state, 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 fills the split-screen window and in the same interface layout direction as the current screen direction.
  • the foldable screen mobile phone displays the application interface of the application in the corresponding split-screen window 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 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.
  • the foldable screen mobile phone displays the application interface of the application in the corresponding split-screen window in 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 direction, that is, the application interface of the application is displayed in a size that does not fill the split-screen window and in an interface layout direction supported by the application.
  • 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 the first operation, the split-screen operation can be, for example, an operation in which the user selects an application for split-screen, an operation in which the floating window is switched to the split screen, and other split-screen operations, an operation in which the foldable screen mobile phone is rotated, and other operations in which the direction of the foldable screen mobile phone is adjusted (i.e., an operation in which the screen of the foldable screen mobile phone is rotated, and other operations in which the direction of the screen is adjusted), an operation in which the inner display screen and the outer display screen of the foldable screen mobile phone are switched to adjust the usage status of different display screens of the foldable screen mobile phone, and other operations), in response to the split-screen operation, a second interface is displayed, and the second interface includes two split-screen windows, a
  • the foldable screen mobile phone determines that the calculator application supports the same interface layout direction as the current screen direction 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 with a size that fully covers the split-screen window W1
  • 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 direction of the foldable screen mobile phone, that is, the application interface of the calculator application is displayed with a size that fully covers the split-screen window W1 and with an interface layout direction that is the same as the current screen direction.
  • the foldable screen mobile phone determines that the calculator application does not support the same interface layout direction as the current screen direction 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 with 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 direction of the foldable screen mobile phone, that is, the application interface of the calculator application is displayed with a size that fully covers the split-screen window W1 and with an interface layout direction that is the same as the current screen direction.
  • the foldable screen mobile phone determines that the calculator application does not support the same interface layout direction as the screen direction 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 direction 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.
  • the interface layout direction supported by the calculator application is the portrait layout direction, and the screen orientation of the folding screen mobile phone is the portrait orientation
  • the interface layout direction supported by the calculator application is considered to be the same as the screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the calculator application is the landscape layout direction, and the screen orientation of the folding screen mobile phone is the landscape orientation
  • the interface layout direction supported by the calculator application is considered to be the same as the split-screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the calculator application is the portrait layout direction, and the screen orientation of the folding screen mobile phone is the landscape orientation
  • the interface layout direction supported by the calculator application is considered to be different from the split-screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the calculator application is the landscape layout direction, and the screen orientation of the folding screen mobile phone is the portrait orientation
  • the interface layout direction supported by the calculator application is considered to be different from the screen orientation of the folding screen mobile phone.
  • the foldable screen mobile phone determines that the video application supports the same interface layout direction as the current screen direction 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 with the size of the full-screen split-screen window W2, and the split-screen
  • the interface layout direction of the application interface of the video application displayed in the window W2 is the same as the current screen direction of the foldable screen mobile phone, that is, the application interface of the video application is displayed in a size that fills the split-screen window W2 and in an interface layout direction that is the same as the current screen direction.
  • the foldable screen mobile phone determines that the video application does not support the interface layout direction that is the same as the current screen direction 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 in a size that fills 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 direction of the foldable screen mobile phone, that is, the application interface of the video application is displayed in a size that fills the split-screen window W2 and in an interface layout direction that is the same as the current screen direction.
  • 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.
  • the interface layout direction supported by the video application is the portrait layout direction, and the screen orientation of the folding screen mobile phone is the portrait orientation
  • the interface layout direction supported by the video application is considered to be the same as the screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the video application is the landscape layout direction, and the screen orientation of the folding screen mobile phone is the landscape orientation
  • the interface layout direction supported by the video application is considered to be the same as the screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the video application is the portrait layout direction, and the screen orientation of the folding screen mobile phone is the landscape orientation
  • the interface layout direction supported by the video application is considered to be different from the screen orientation of the folding screen mobile phone.
  • the interface layout direction supported by the video application is the landscape layout direction, and the screen orientation of the folding screen mobile phone is the portrait orientation
  • the interface layout direction supported by the video application is considered to be different from the screen orientation of the folding screen mobile phone.
  • the foldable screen mobile phone determines that the calculator application supports the portrait layout direction, then as shown in FIG2 , the foldable screen mobile phone displays the application interface of the calculator application (as an example of a second application interface) vertically in the split-screen window W1 with the size of the full-spread split-screen window W1.
  • the foldable screen mobile phone determines that the video application does not support the portrait layout direction, but only supports the landscape layout direction, and the interface size adjustment capability of the video application is that the size cannot be adjusted, then as shown in FIG2 , the foldable screen mobile phone displays the application interface of the video application (as an example of a first application interface) horizontally in the split-screen window W2 with the size of the non-full-spread split-screen window W2, rather than displaying the application interface of the video application vertically with the size of the full-spread split-screen window W2 as in the prior art as shown in FIG1 .
  • the folding screen mobile phone can display the application interface of the video application horizontally in the split-screen window W2 in the size of a non-full-screen split-screen window. In this way, the folding screen mobile phone can normally display the application interface of the video application in the split-screen window W2, avoiding the problem that the application interface of the video application is stretched, deformed, out of proportion, etc., which affects the normal viewing of the user, that is, it can meet the viewing needs of the user, thereby improving the user experience.
  • calculator application and video application 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 the present application.
  • 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 (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).
  • 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 states (that is, when the screen orientation is the portrait orientation and the landscape orientation) with the size of the full-spread split-screen window (for example, if the screen orientation is the landscape orientation, it is displayed horizontally in the landscape layout direction, and if the screen orientation is the portrait orientation, it is displayed vertically in the portrait layout direction).
  • the foldable screen mobile phone displays the application interface of the calculator application in the split-screen window with the size of the full-spread split-screen window in the split-screen window in the portrait state (that is, when the screen orientation is the portrait orientation).
  • the application interface of the calculator application is displayed vertically.
  • the foldable screen mobile phone is in landscape mode (that is, when the screen orientation is landscape)
  • the application interface of the calculator application is displayed vertically in the split-screen window with a size that does not fully cover the split-screen window.
  • the folding screen mobile phone in both the portrait and landscape states (that is, when the screen orientation is the portrait orientation and the landscape orientation), displays the application interface of the game 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 (for example, if the screen orientation is the landscape orientation, it is displayed horizontally in the landscape layout orientation; if the screen orientation is the portrait orientation, it is displayed vertically in the portrait layout orientation).
  • the foldable screen mobile phone is in portrait mode (that is, when the screen orientation is portrait), and displays the video application horizontally in the split-screen window with the size of a non-full-screen split-screen window.
  • the foldable screen mobile phone is in landscape mode (that is, when the screen orientation is landscape), it displays the application interface of the video application horizontally in the split-screen window with the size of a full-screen split-screen window.
  • the application interface display method provided by this implementation is applied to the split-screen scenario.
  • the folding screen mobile phone can display the application interface of the application in the split-screen window with the size of the non-full split-screen window and the interface layout direction supported by the application. In this way, the folding screen mobile phone can display the application interface of the application normally in the split-screen window, avoiding abnormal display situations such as deformation of the application interface, so as to meet user needs and improve user experience.
  • a foldable screen mobile phone is used in a split-screen scenario.
  • 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
  • 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 through a compatible mode according to actual conditions.
  • 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.
  • left-right split-screen i.e. vertical split-screen
  • top-bottom split-screen i.e. horizontal split-screen
  • the preset size (as an example of the first preset size) can be, for example, any one of the first size, the second size, and the third size.
  • the first size (also referred to as the 0:0 size) is the size after the original interface size of the application interface of the application is adjusted (for example, proportionally reduced) according to the 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, etc.
  • the preset ratio can be set according to the size of the display screen of the folding screen mobile phone, the size of the split-screen window, etc.
  • the second size is a size corresponding to the first size with an aspect ratio of 4:3 (as an example of the first aspect ratio)
  • the third size is a size corresponding to the first size with an aspect ratio of 16:9 (as an example of the second aspect ratio).
  • 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 specifically set as needed, and the adjustment ratios corresponding to the width and height in the preset ratio can be the same or different.
  • 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 the original interface size of the application interface of the application is adjusted (for example, reduced) according to the preset ratio (i.e., the second preset ratio).
  • the preset ratio can be set according to the size of the display screen of the folding 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)
  • 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 specifically set as needed.
  • the foldable screen mobile phone displays the application interface of the calculator application horizontally in the lower split screen window in a full-spread split screen window manner, and displays the application interface of the browser application vertically in the upper split screen window in a non-full-spread split screen window manner.
  • the application interface of the browser application can be a first size (i.e., it can be a 0:0 size), a second size (i.e., it can be a 4:3 size), or a third size (i.e., it can be a 16:9 size).
  • the foldable screen mobile phone displays the application interface of the calculator application vertically in the split screen window on the right side in a full-screen split window manner, and displays the application interface of the calculator application vertically in a non-full-screen split window manner.
  • the method of laying the split-screen window horizontally displays the application interface of the video application in the split-screen window on the left, wherein the application interface of the video application can be a first size (that is, it can be a 0:0 size), a second size (that is, it can be a 4:3 size), or a third size (that is, it can be a 16:9 size).
  • the application interface of the video application can be a first size (that is, it can be a 0:0 size), a second size (that is, it can be a 4:3 size), or a third size (that is, it can be a 16:9 size).
  • the foldable screen mobile phone displays the application interface of the application in the split-screen window with 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 applications (for example, the first size, second size, third size, etc. mentioned above).
  • Different display effects can be achieved without affecting the display of application functions and user operations.
  • it can provide users with better visual display effects, thereby effectively improving the user experience.
  • the present application also provides an application interface display method, which is applied to the aforementioned folding screen mobile phone.
  • 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 according to 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 manner, that is, display the corresponding split-screen interface.
  • 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 a 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 a preset application.
  • the applications in the whitelist may refer to, for example, 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.
  • the applications that are not in the whitelist may 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.
  • the application interface of some applications (such as some game applications and drawing applications 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.
  • the applications in the whitelist can be selected and set as needed.
  • the folding 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 folding screen mobile phone further determines its interface size adjustment capability, and determines the display mode 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.
  • the interface size adjustment capability of the application to be split screen is adjustable in size
  • the application interface of the application to be split screen is displayed with the size of the full-split screen window and the interface layout direction that is the same as the current screen direction of the electronic device.
  • 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 the interface layout direction that is different from the current screen direction of the electronic device.
  • the foldable screen mobile phone does not perform a split screen operation on the application to be split screen (i.e., does not display the application in split screen).
  • the foldable screen mobile phone can also pop up a prompt message such as "** application currently does not support split screen” or "** application does not support compatible mode display” on the display screen to prompt the user.
  • FIG5 shows a schematic structural diagram of a mobile phone.
  • 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.
  • SIM subscriber identification module
  • 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.
  • the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • 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 processor (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), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
  • Mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied in mobile phones.
  • Wireless communication module 160 can provide solutions for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT) and the like applied in mobile phones.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT Bluetooth
  • 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.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the internal memory 121 may be used to store computer executable program codes, which include 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 the present application.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be set on the display screen 194.
  • the mobile phone detects the touch operation intensity according to the pressure sensor 180A.
  • the mobile phone can also calculate the touch position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, determine operations such as pressing and sliding the screen.
  • the touch sensor 180K is also called a "touch control device”.
  • the touch sensor 180K can be set on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be set on the surface of the mobile phone, which is different from the position of the display screen 194.
  • the software system of the mobile phone is described below.
  • the software system of the mobile phone can adopt a layered architecture, an event-driven architecture, a micro-core 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.
  • FIG. 6 exemplarily shows a software structure diagram of a mobile phone.
  • the layered architecture divides the software into several layers, each with clear roles and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom: the application (Application, APP) layer, the application framework (Application Framework) layer, the Android runtime (Android Runtime) and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include function bars (such as DockBar), system interface (System User Interface (UI)) management applications, desktop launchers (Launcher), notepad (Notepad) and other applications.
  • function bars such as DockBar
  • system interface System User Interface (UI)
  • UI System User Interface
  • Desktop launchers Launcher
  • notepad Notepad
  • the application layer can also include camera, gallery, settings and other applications.
  • the function bar mainly provides the function of entering the split screen, such as providing the function of entering the split screen from an application, or entering the split screen from a floating window, etc.
  • the desktop launcher mainly provides task switching manager functions.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer, such as Java API Framework.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include content providers (Content Providers), view system (View System) and multi window manager (Multi Window Manager).
  • Content providers Content Providers
  • view system View System
  • Multi Window Manager Multi Window Manager
  • 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.
  • 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.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • the display interface of a text notification icon can include a view for displaying text and a view for displaying images, the display interface of an application, etc.
  • the activity management service is used to manage various activity tasks in the mobile phone and provide the capability of split-screen task manager.
  • the window management service is used to manage window programs.
  • the window management service can obtain the display size, determine whether there is a function bar, lock the screen, capture the screen, etc. In addition, it provides the ability to split the screen task manager.
  • 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, such as the animation effect of entering the split screen from the full screen, or the animation effect of entering the full screen from the split screen.
  • the display management service can be used to obtain the user's touch command 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 command, that is, the content currently displayed on the display screen.
  • the call management service is used to provide communication functions of the electronic device 100, such as the management of call status (including answering, hanging up, etc.).
  • the resource management service provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification management service enables applications to display notification information in the status bar. It can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification management service is used to notify message prompts, etc.
  • the notification management service can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • the Android runtime includes core libraries (Core Libraries) and the Android runtime virtual machine (i.e. virtual machine).
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • 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.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • System libraries can also be called native libraries, such as Native C/C++ Libraries, which include multiple functional modules.
  • 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, etc.
  • Web lit Web component library
  • C function library Libc
  • OpenMAX AL open multimedia interface
  • GPU graphics programming interface
  • Media Framework media framework
  • the kernel layer (not shown in the figure) is a layer between hardware and software.
  • the kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
  • 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 described later and will not be elaborated here.
  • system architecture of the mobile phone provided by this implementation method can also be other system architectures such as the Magic OS system architecture, which can be selected and set as needed.
  • mobile phone 100 that only includes one display screen (i.e., screen) as an example.
  • the mobile phone 100 is in a vertical screen 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.
  • applications such as a calculator application, a video application, a browser application, a game application 1, and a game application 2.
  • a display interface as shown in Fig. 7B is displayed.
  • the display interface is the main interface of the video application, including multiple videos.
  • FIG7B if mobile phone 100 receives a click operation on video 1 by the user, video 1 is opened and a video playback interface as shown in FIG7C is displayed, that is, mobile phone 100 displays the playback interface of video 1 in full screen on the display screen of mobile phone 100 .
  • a function bar (i.e., 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.
  • the mobile phone 100 receives a click operation on the function bar S1 by the user, then as shown in FIG7D , the mobile phone 100 expands the function bar S1 to display the function bar S2, and the function bar S2 includes a "split screen" control (as an example of the first interface).
  • the mobile phone 100 performs a split screen process, splits the screen left and right (i.e., vertically splits the screen) into two split screen windows, and displays the application interface of the video application in the left split screen window, and displays other interfaces in the right split screen window.
  • the mobile phone 100 when the mobile phone 100 displays the application interface of the video application in the split-screen window on the left, it is necessary to first 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 left split-screen window W2 with the size of the non-full-spread split-screen window (as an example of the second interface).
  • the mobile phone 100 can normally display the application interface of the video application in a non-full-spread split-screen window, meet the user's viewing needs, and thus improve the user experience.
  • 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).
  • this display interface can be used as an example of the second interface or as another example of the first interface.
  • the mobile phone 100 when the mobile phone 100 displays the application interface of the calculator application in the split-screen window W1, it is necessary to first determine whether the calculator 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 calculator application supports the vertical screen layout direction, as shown in FIG. 7F, the mobile phone 100 displays the application interface of the calculator application vertically in the split-screen window W1 in a manner that fully covers the split-screen window W1. In this way, the application interface of the calculator application can be displayed in the split-screen window W1 in the size of the full-screen split-screen window, thereby ensuring the user experience.
  • the mobile phone 100 displays the application interface of the video application horizontally in the split-screen window W2 with the size of a non-full-screen window, and displays the application interface of the calculator application in the split-screen window W1 with the size of a full-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.
  • the mobile phone 100 determines that it needs to redetermine the display mode of the application interfaces 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.
  • 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.
  • 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, and 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 full-spread split screen window W4, 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 full-spread split screen window W3 (as another example of the second interface).
  • the mobile phone 100 can determine the display mode of the application interface of the application in the split-screen window according to the current screen orientation of the 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 the mobile phone 100, that is, for mobile phones 100 with different screen orientations, the 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 use requirements for the mobile phone 100 and different applications, and effectively improving the user experience.
  • 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 mobile phone 200 is in a horizontal screen state, and the top of the mobile phone 100 is located on the right side.
  • the mobile phone 200 starts the video application in full screen on the inner screen, and displays the application interface of the video application in full screen on the inner screen of the mobile phone 200.
  • a function bar S1 is displayed on the inner screen of the mobile phone 200.
  • the mobile phone 200 receives a user split screen operation such as shown in the aforementioned Figures 7B-7E, and determines that the calculator application and the video application need to be split screen, the mobile phone 200 determines that both the calculator application and the video application support the horizontal screen layout direction, and at this time the inner screen of the mobile phone 200 is in the horizontal screen state, then the mobile phone 100 determines that both the calculator application and the video application support the same interface layout direction as the current screen direction of the inner screen (i.e., the horizontal screen direction), that is, both support the horizontal screen layout direction.
  • the mobile phone 200 displays two split screen windows, the split screen window W1 and the split screen window W2, in the upper and lower split screens, with the split screen window W1 located at the top and the split screen window W2 located at the bottom.
  • the mobile phone 200 displays the application interface of the calculator application in the split screen window W1 horizontally with the size of the full split screen window W1, and displays the application interface of the video application in the split screen window W2 horizontally with the size of the full split screen window W2. That is, the mobile phone 200 enters the split screen state, and displays the application interfaces of the calculator application and the video application respectively in the manner of full inner screen split screen windows.
  • the mobile phone 200 determines that the display content of the inner screen needs to be switched to the outer screen of the mobile phone 200 for display.
  • the mobile phone 200 is in a horizontal screen state, it is limited by the size of the outer screen and the mobile phone 200 cannot split the screen up and down, and can only split the screen left and right.
  • the outer screen of the mobile phone 200 splits the screen left and right to display two split screen windows, split screen window W3 and split screen window W4, on the outer screen of the mobile phone 200.
  • the split screen window W3 is located on the left and the split screen window W4 is located on the right.
  • the mobile phone 200 determines that the calculator application and the video application both support the same interface layout direction as the current screen direction of the outer screen (i.e., the horizontal screen direction), that is, both support the horizontal screen layout direction, then the mobile phone 200 displays the application interface of the video application in the split screen window W4 with the size of the full split screen window, and displays the application interface of the calculator application in the split screen window W3 with the size of the full 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.
  • 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 orientation 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.
  • 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 in an upper and lower split-screen split, with split-screen window W5 located at the top and split-screen window W6 located at the bottom.
  • the mobile phone 200 determines that the calculator application supports the same interface layout direction as the current screen direction of the external screen (i.e., the vertical screen direction), that is, it supports the vertical screen layout direction, and the video application does not support the same interface layout direction as the current screen direction of the external screen (i.e., the vertical screen direction), that is, it does not support the vertical screen layout direction, then the mobile phone 200 displays the application interface of the calculator application vertically in the split-screen window W5 with the size of the full-spread split-screen window W5, and displays the application interface of the video application horizontally in the split-screen window W6 with the size of the non-full-spread split-screen window W6.
  • the mobile phone 100 keeps the external screen split-screen window displayed according to 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.
  • 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 the display mode of the application interface of the calculator application and the video application in the split-screen window according to 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.
  • 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.
  • the mobile phone 200 The left-right split screen 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 located on the left and split screen window W8 located on the right.
  • the mobile phone 200 displays the application interface of the calculator application vertically in the split screen window W7 with the size of the full-spread split screen window W7, and displays the application interface of the video application horizontally in the split screen window W8 with the size of the non-full-spread split screen window W8. That is, the mobile phone 200 switches to displaying the application interface of the application on the inner screen, and displays the application interfaces of the video application and the calculator application in a compatible mode that adapts to the ratio of the inner screen split screen window.
  • the user rotates the mobile phone 200 shown in FIG8 (e) counterclockwise by 90 degrees and adjusts the mobile phone 200 to the horizontal screen state, then the mobile phone 200 will detect that the screen direction of the mobile phone 200 is adjusted to the vertical screen direction, so the mobile phone 200 determines that the split screen direction of the inner screen needs to be adjusted from left and right split screen to top and bottom split screen, and the mobile phone 200 needs to re-determine the display mode of the application interface of the calculator application and the video application in the split screen window according to the screen direction of the rotated inner screen, 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.
  • the screen direction of the inner screen is the horizontal screen direction
  • the calculator application supports the horizontal screen layout direction
  • the video application also supports the horizontal screen layout direction, that is, the calculator application and the video application both support the same interface layout direction as the screen direction of the inner screen.
  • the upper and lower 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 the split screen window W9 located at the bottom and the split screen window W10 located at the top.
  • the mobile phone 200 displays the application interface of the calculator application in the split-screen window W9 in a horizontal manner with the size of the full split-screen window, and displays the application interface of the video application in the split-screen window W10 in a horizontal manner with the size of the full split-screen window. That is, the mobile phone 200 displays the application interfaces of the video application and the calculator application in a manner of full split-screen windows based on the detected information of the rotation of the inner screen.
  • the mobile phone 200 determines that the split screen operation needs to be exited, and the mobile phone 200 closes the calculator application, and as shown in FIG8(g), the application interface of the video application is displayed in full screen on the inner screen. That is, the mobile phone 200 exits the split screen state and switches to the full screen state, and displays the application interface in full screen.
  • the split screen line also called split screen bar
  • the mobile phone 200 can determine the display mode of the application interface in the split-screen window of the mobile phone 200 in different states according to the user's switching use of the inner screen and the outer screen of the mobile phone 200, the adjustment of the direction of the display screen of the mobile phone 200, and the interface layout direction and interface size adjustment capability supported by the application to be split on the mobile phone 200.
  • the display of the application interface can be adapted to the current screen state of the mobile phone 200, so as to display a normal picture, avoiding the deformation of the interface content due to the incompatibility of the application interface with the current split-screen situation. That is, the mobile phone 200 can display a normal application interface, meet the user's use requirements for the mobile phone 200 and different applications, and effectively improve the user experience.
  • the game application 1 may also only support the horizontal screen layout direction, and its interface size adjustment capability is not adjustable. Then the video application shown in FIG8 above can be directly replaced by the game application 1 to illustrate the display process of the application interface of the game application 1 in different states, which will not be repeated here.
  • the following uses 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 by the present application to further illustrate the application interface display method provided by the present application.
  • a straight-screen mobile phone 300 i.e., a non-folding screen mobile phone, hereinafter referred to as mobile phone 300
  • the mobile phone 300 is in a vertical screen state and displays a calculator application. If the mobile phone 300 receives, for example, a sliding operation of the user from the right side of the mobile phone 300 to 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 of the user dragging the icon of the video application 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.
  • a side toolbar which includes multiple applications such as a video application, a game application 1, and a browser application.
  • the mobile phone 300 displays two split screen windows, a split screen window M1 and a split screen window M2, in the upper and lower split screens, and since the calculator application supports the vertical screen layout direction, the mobile phone 300 displays the application interface of the calculator application vertically in the split screen window M1 with the size of the full-spread split screen window. Since the video application does not support the vertical screen layout direction, and the interface size adjustment capability of the video application is not adjustable, the mobile phone 300 displays the application interface of the video application horizontally in the split screen window M2 with the size of the non-full-spread split screen window.
  • the mobile phone 300 displays two split-screen windows, namely, split-screen window M3 and split-screen window M4, in a left-right split-screen manner. Since the calculator application also supports a horizontal screen layout direction, the mobile phone 300 displays the application interface of the calculator application in the split-screen window M3 in a horizontal manner with the size of the full-spread split-screen window. Since the video application also supports a horizontal screen layout direction, the mobile phone 300 displays the application interface of the video application in the split-screen window M4 in a horizontal manner with the size of the full-spread split-screen window.
  • 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.
  • the following uses a tablet computer 400 as another example of the electronic device provided in the present application to further illustrate the application interface display method provided in the present application.
  • the tablet computer 400 is in portrait mode
  • the calculator application supports both portrait and landscape layout directions
  • the browser application only supports portrait layout directions
  • its interface size adjustment can be adjustable.
  • the tablet computer 400 then displays two split-screen windows, split-screen window N1 and split-screen window N2, with split-screen window N1 located on the right and split-screen window N2 located on the left.
  • the tablet computer 400 displays the application interface of the calculator application vertically in the split-screen window N1 with the size of the split-screen window N1 fully spread out, and displays the application interface of the browser application vertically in the split-screen window N2 with the size of the split-screen window N2 fully spread out.
  • the tablet computer 400 displays two split screen windows, the split screen window N3 and the split screen window N4, in an upper and lower split screen, with the split screen window N3 located at the bottom and the split screen window N4 located at the top.
  • the tablet computer 400 displays the application interface of the calculator application in the split screen window N3 in a horizontal manner with the size of the full split screen window, and displays the application interface of the browser application in the split screen window N4 in a horizontal manner with the size of the full split screen window.
  • 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.
  • electronic devices such as mobile phone 100, mobile phone 200, mobile phone 300, tablet computer 400 display the application interface of the application to be split in the 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, 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.
  • the mobile phone 100 determines that the application interface of the 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 the game application 2 is a horizontal screen layout direction based on the current screen direction and the interface layout direction supported by the game application 2, which is different from the vertical screen direction of the current screen. Then the mobile phone 100 further determines whether the game application 2 belongs to an application in the preset whitelist. If the game application 2 belongs to an application in the preset whitelist, the mobile phone 100 further determines whether the interface size adjustment capability of the 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-spread 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-spread split-screen window W1 (as another example of the second interface of the second application).
  • 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.
  • the mobile phone 100 can also display a "confirm" control corresponding to the prompt message for the user to use, or the prompt message disappears automatically after a preset time.
  • 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 the "Confirm” control and the "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 FIG.
  • the mobile phone 100 displays the split screen window W3 and the split screen window W4 in the upper and lower split screens, and displays the application interface of the video application in the split screen window W4 in the horizontal direction with the size of the full split screen window W4, and displays the application interface of the game application 2 in the split screen window W3 in the horizontal direction with 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 FIG. 11 (a).
  • 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.
  • the process of the mobile phone 100 implementing the split-screen interface may also be as shown in FIG. 12A , where the mobile phone 100 first displays the interface of application A in full screen, and if the mobile phone 100 detects the user's split-screen operation, it determines that application A and application B need to be split-screen displayed. Since the application interface of application A is not suitable for horizontal layout, and the application interface of application B is suitable for both horizontal and vertical layouts, the mobile phone 100, in both the horizontal and vertical screen states, displays the corresponding application interface after reducing the original interface size of application A by a preset equal proportion. For example, As shown in FIG.
  • the mobile phone 100 in the horizontal screen state, displays the application interface of application A proportionally reduced from the original interface size of application A in the upper split-screen window, and displays the application interface of application B horizontally in the lower split-screen window with the size of the full split-screen window.
  • the mobile phone 100 In the vertical screen state after rotation, the mobile phone 100 still displays the application interface of application A proportionally reduced from the original interface size of application A in the left split-screen window, and displays the application interface of application B vertically in the right split-screen window with the size of the full split-screen window.
  • This method can be understood as a display method of native compatible mode.
  • this implementation method displays the application interface of application A in a manner of proportionally reducing the original interface size of application A in both the portrait and landscape states, so that the display of the application interface of application A is always limited (i.e., always small), which affects the user experience.
  • the application interface display method provided by the implementation of the present application is applied to the 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 has two left-right split-screen windows, and the mobile phone 100 determines the display mode of the split-screen application in the split-screen window according to the screen direction of the mobile phone 100.
  • the mobile phone 100 determines that the mobile phone 100 is in a horizontal screen state, the mobile phone 100 displays the upper and lower split-screen windows in an upper and lower split-screen window, and displays the application interface of application A vertically in the upper split-screen window in a non-full-spread split-screen window manner, and displays the application interface of application B horizontally in the lower split-screen window in a full-spread split-screen window manner.
  • the mobile phone 100 detects that the user rotates the mobile phone 100 by 90 degrees, the mobile phone determines that the screen direction of the mobile phone 100 is adjusted from the horizontal screen direction to the vertical screen direction, and the mobile phone 100 splits the screen left and right, and displays the application interface of application A vertically in the left split-screen window in the size of the full-spread window, and displays the application interface of application B vertically in the right split-screen window in the size of the full-spread window.
  • the application interface of the application can be better displayed according to different screen directions and interface layout directions supported by the application, thereby improving the user experience.
  • the electronic device in a scenario where the application interface of an application is displayed in a non-full-screen manner, i.e., in a compatible mode scenario, the electronic device, such as the mobile phone 100, the mobile phone 200, the mobile phone 300, and the tablet computer 400, does not display the aforementioned function bar S1 (also referred to as the top bar) in the split-screen window where the application interface of the application is displayed in a non-full-screen manner, i.e., hides the function bar S1, so as to achieve the effect that the function bar S1 disappears after entering the compatible mode.
  • 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.
  • the mobile phone 100 determines the display mode of the input method according to the current split-screen mode (i.e., the split-screen direction) and the position of the application that needs to use the input method on the screen.
  • the current split-screen mode i.e., the split-screen direction
  • the split-screen mode can be, for example, a top-bottom split-screen mode (i.e., top-bottom split-screen or horizontal split-screen), and 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), and the position of the application that needs to use the input method on the screen is, for example, the right and left.
  • a top-bottom split-screen mode i.e., top-bottom split-screen or horizontal split-screen
  • the split-screen mode can also be a left-right split-screen mode (i.e., left-right split-screen or vertical split-screen)
  • the position of the application that needs to use the input method on the screen is, for example, the right and left.
  • the mobile phone 100 directly displays the input method window at the bottom of the screen without adjusting the boundary of the top-bottom split screen application (that is, there is no need to adjust the split screen line), and the input method window at least partially blocks the content displayed in the split screen window at the bottom of the screen.
  • the mobile phone 100 shrinks the bottom edge of the top split screen, and the bottom split screen is moved up, and when the bottom split screen is moved up, the height of the bottom split screen remains unchanged, and the input method window is displayed at the bottom of the screen.
  • the upper split-screen application is a browser application and the lower split-screen application is a calculator application.
  • the browser application calls an input method
  • mobile phone 100 directly displays an input method window at the bottom of the screen without adjusting the boundary between the upper and lower split-screen applications (i.e., 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.
  • the upper split-screen application is a calculator application
  • the lower split-screen application is a browser application.
  • the browser application calls an input method
  • mobile phone 100 shrinks the bottom edge of the upper split-screen calculator application and moves the browser application to the top (i.e., the split-screen line needs to be moved up).
  • the browser application moves to the top, the height of the browser application remains unchanged and an input method window is displayed at the bottom of the screen.
  • 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.
  • the split screen operation of the user may be the split screen operation performed by the user through the function bar S1, or the split screen operation performed through the side toolbar, or the split screen operation performed by dragging the floating window displayed in a floating manner, etc.
  • it may also be a split screen operation implemented according to other operations, which may be selected and set as needed.
  • 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.
  • the split screen window M1 and the split screen window M2 are displayed.
  • the application interface of the calculator application is displayed vertically with the size of the full split screen window M1
  • the application interface of the video application is displayed horizontally with the size of the non-full split screen window M2. If the mobile phone 100 receives a user's sliding operation on the right screen to the left, as shown in (b) of FIG.
  • the mobile phone 100 displays a side toolbar P, and the side toolbar P includes icons of multiple applications such as a browser application and a game application 1.
  • the mobile phone 100 receives a user's click operation on the browser application icon, as shown in (c) of FIG. 14 , 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 FIG.
  • the mobile phone 100 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 FIG. 14 , the mobile phone 100 vertically displays the application interface of the browser application in the split-screen interface M2.
  • the mobile phone 100 displays the application interface of the video application in full screen as shown in (e) of FIG. 14 .
  • 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.
  • the mobile phone 100 can add a list of unified management of the three state switchings 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 is an application that 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 corresponding interfaces to different modules according to the list to realize the mutual switching of the three states.
  • 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 effects, thereby meeting the different usage needs of users and effectively improving the user experience.
  • the mobile phone 100 needs to display the application in accordance with the new window mode/window size in both scenarios when the application enters or exits the split-screen mode.
  • an application When an application enters the split-screen state, it may be in the full-screen state (which may be called a cold start of the application), or in the floating state or in the split-screen state (which may be called a hot start).
  • the application enters the split-screen state i.e., it is started in the split-screen state or switched from the full-screen/floating window to the split-screen mode
  • the mobile phone 100 displays the application interface of the application in the split-screen window at a size that fills the split-screen window; if the interface layout direction supported by the application is different from the screen direction, etc., the mobile phone 100 displays the application interface of the application in the split-screen window at a size that does not fill the split-screen window according to the aforementioned preset display ratio rule.
  • 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 rule, and displays the corresponding application in full screen. Or according to the user operation or the preset display rule, the application is switched to the floating window and displayed according to the floating window size.
  • mobile phone 200 receives the split-screen operation of the aforementioned user, or detects that the screen direction of mobile phone 200 has changed in the split-screen state, 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 and the interface size adjustment capability supported by the application to be split, 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.
  • mobile phone 200 determines that the application to be split screen supports the same interface layout direction as the current screen direction of mobile phone 200, or 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 mobile phone 200, or mobile phone 200 determines that mobile phone 200 includes the aforementioned vertical screen layout direction and horizontal layout direction, then mobile phone 200 executes step S112.
  • 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 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, but the interface size adjustment capability of the application to be split screen is adjustable, then mobile phone 200 executes step S112.
  • 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 that the size is not adjustable, then mobile phone 200 executes step S113.
  • the mobile phone 200 displays the application interface of the application to be split in the split window, with a size that fully covers the split window, and with an interface layout direction that is supported by the application to be split and is the same as the current screen direction.
  • the mobile phone 200 displays the application interface of the application to be split screen 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 application to be split screen (i.e., with an interface layout direction different from the current screen direction).
  • 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.
  • 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.
  • 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.
  • the screen orientation includes the aforementioned vertical screen orientation and horizontal screen orientation
  • the interface layout orientation includes the aforementioned vertical screen layout orientation and horizontal screen layout orientation.
  • the mobile phone 200 determines whether the current screen direction of the mobile phone 200 is the same as the interface layout direction supported by the application to be split. If they are different, the mobile phone 200 executes step S214; if they are the same, the mobile phone 200 executes step S216.
  • the mobile phone 200 determines the interface size adjustment capability of the application to be split, and the interface size adjustment capability includes adjustable size and non-adjustable size. If the mobile phone 200 determines that the interface size adjustment capability of the application is non-adjustable size, the mobile phone 200 executes step S215; if the mobile phone 200 determines that the interface size adjustment capability of the application is adjustable size, the mobile phone 200 executes step S216.
  • the mobile phone 200 displays the application interface of the application to be split-screen 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 application to be split-screen.
  • the mobile phone 200 displays the application interface of the application to be split in the split window with a size that fully covers the split window and with an interface layout direction that is supported by the application to be split and is the same as the current screen direction.
  • the mobile phone 200 can easily determine the display mode in which 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.
  • the mobile phone 200 receives the aforementioned screen splitting operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the screen splitting state.
  • the mobile phone 200 determines the interface layout direction supported by the application to be split. If the interface layout direction supported by the application to be split includes both the vertical layout direction and the horizontal layout direction, the mobile phone 200 executes step S317; if the interface layout direction supported by the application to be split only includes the vertical layout direction or the horizontal layout direction, the mobile phone 200 executes step S313.
  • the mobile phone 200 determines the interface size adjustment capability of the application to be split, and the interface size adjustment capability includes adjustable size and non-adjustable size. If the mobile phone 200 determines that the interface size adjustment capability of the application to be split is non-adjustable size, the mobile phone 200 executes step S314; if the mobile phone 200 determines that the interface size adjustment capability of the application to be split is adjustable size, the mobile phone 200 executes step S317.
  • the mobile phone 200 determines the current screen direction of the mobile phone 200.
  • the mobile phone 200 determines whether the current screen direction of the mobile phone 200 is the same as the interface layout direction supported by the application to be split. If they are different, the mobile phone 200 executes step S316; if they are the same, the mobile phone 200 executes step S317.
  • the mobile phone 200 displays the application interface of the application to be split in the split window, with a size that fully covers the split window, and with an interface layout direction that is supported by the application to be split and is the same as the current screen direction.
  • 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.
  • the mobile phone 200 determines the interface size adjustment capability of the application to be split, and the interface size adjustment capability includes adjustable size and non-adjustable size. If the mobile phone 200 determines that the interface size adjustment capability of the application to be split is non-adjustable size, the mobile phone 200 executes step S413; if the mobile phone 200 determines that the interface size adjustment capability of the application to be split is adjustable size, the mobile phone 200 executes step S417.
  • the mobile phone 200 determines the interface layout direction supported by the application to be split. If the interface layout direction supported by the application to be split includes both the vertical layout direction and the horizontal layout direction, the mobile phone 200 executes step S417; if the interface layout direction supported by the application to be split only includes the vertical layout direction or the horizontal layout direction, the mobile phone 200 executes step S414.
  • the mobile phone 200 determines the current screen direction of the mobile phone 200.
  • the mobile phone 200 determines whether the current screen direction of the mobile phone 200 is the same as the interface layout direction supported by the application to be split. If they are different, the mobile phone 200 executes step S416; if they are the same, the mobile phone 200 executes step S417.
  • the mobile phone 200 displays the application interface of the application to be split-screen 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 application to be split-screen.
  • the mobile phone 200 displays the application interface of the application to be split-screen in the split-screen window, with a size that fully covers the split-screen window, and with an interface layout direction that is supported by the application to be split-screen and is the same as the current screen direction.
  • 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.
  • 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 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, the interface size adjustment capability of the application to be split, and whether the application to be split is a preset application, 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.
  • mobile phone 200 determines that the application to be split screen supports the same interface layout direction as the current screen direction of mobile phone 200, or 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 mobile phone 200, or mobile phone 200 determines that mobile phone 200 includes the aforementioned vertical screen layout direction and horizontal layout direction, then mobile phone 200 executes step S512.
  • 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 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, 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 mobile phone 200 executes step S512.
  • 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, but the application to be split screen is a preset application and the interface size adjustment capability of the application is that the size cannot be adjusted, then mobile phone 200 executes step S513.
  • 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.
  • the mobile phone 200 displays the application interface of the application to be split in the split window, with a size that fully covers the split window, and with an interface layout direction that is supported by the application to be split and is the same as the current screen direction.
  • the mobile phone 200 displays the application interface of the application to be split-screen 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 application to be split-screen.
  • 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-screen in the split-screen window.
  • 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.
  • the mobile phone 200 receives the aforementioned screen splitting operation of the user, or detects that the screen direction of the mobile phone 200 has changed in the screen splitting state.
  • 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.
  • the screen orientation includes the aforementioned vertical screen orientation and horizontal screen orientation
  • the interface layout orientation includes the aforementioned vertical screen layout orientation and horizontal screen layout orientation.
  • the mobile phone 200 determines whether the current screen direction of the mobile phone 200 is the same as the interface layout direction supported by the application to be split. If they are different, the mobile phone 200 executes step S614; if they are the same, the mobile phone 200 executes step S616.
  • the mobile phone 200 determines whether the application to be split screen is a preset application. If so, the mobile phone 200 executes step S615; if not, the mobile phone 200 executes step S618.
  • 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.
  • the mobile phone 200 determines the interface size adjustment capability of the application to be split, and the interface size adjustment capability includes adjustable size and non-adjustable size. If the mobile phone 200 determines that the interface size adjustment capability of the application to be split is non-adjustable size, the mobile phone 200 executes step S617; if the mobile phone 200 determines that the interface size adjustment capability of the application to be split is adjustable size, the mobile phone 200 executes step S616.
  • 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 that is supported by the application to be split and is the same as the current screen direction.
  • 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 with an interface layout direction supported by the to-be-split-screen application.
  • 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.
  • 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.
  • the mobile phone 200 may also determine that the application is a preset application before executing step S314, and perform subsequent processing according to the result. Also, corresponding to the aforementioned FIG. 18 , the mobile phone 200 may also determine that the application is a preset application before executing step S414, and perform subsequent processing according to the result. The process can be referred to the relevant steps of FIG. 20 , which will not be described here.
  • the mobile phone 200 displays the application interface mainly by the desktop launcher, activity management service, window management service, function bar and animation management in the mobile phone 200.
  • the desktop launcher includes the activity task manager service (Activity Task Manager Service) module
  • the activity management service includes the activity start (Activity Starter) module and the activity record (Activity Record) module
  • the window management service includes the task ((Task)) module and the window management service module.
  • the activity start module and the task module can interact through the root window container (Root Window Container).
  • the implementation process of the method includes the following steps:
  • the activity task manager service module determines that the corresponding activity needs to be started as the user (which 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 interface (the splitting 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.
  • the activity task manager service module executes the operation of calling the activity starter (Activity Starter) module.
  • the activity start module executes the request corresponding to the call of the activity task manager service module, and 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).
  • the activity startup 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 started tasks).
  • S704 is executed.
  • the activity startup 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 started, 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 started tasks).
  • 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).
  • the activity launch module sends an instruction to launch the root task (which can be understood as get Launch Root Task) to the root window container.
  • the root window container determines that it needs to obtain or create a root task corresponding to the current activity according to the instruction sent by the activity startup module. (That is, it can be understood as get Or Create Root Task).
  • 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.
  • the activity start module sends an instruction to the task module to attach the activity to the corresponding existing task.
  • Hanging an activity on a corresponding task means associating the corresponding identification information of the activity with the identification information of the corresponding task.
  • the identification information of the task is used as a 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.
  • the task module determines that the new activity is an activity selected by the user to enter split screen, it determines that the window mode (Window Mode) needs to be changed accordingly, that is, a new window mode needs to be set.
  • Window Mode the window mode
  • the window modes include full screen, split screen and freeform, which can be determined according to a pre-stored window mode configuration file, and the corresponding container size and other information can also be determined.
  • the task unconfiguration 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 in the configuration (configuration) of the task that needs to be processed at this time (i.e., the size of the split-screen window) and calculates the specific position coordinates of the application interface in the split-screen window, and calls the activity recording module.
  • the activity records changes in non-configuration items of the module, which identifies that the configuration of the activity has changed.
  • the activity recording module determines that the application interface display corresponding to the configuration needs to be resolved (that is, it can be understood as Resolved Override Configuration).
  • the activity recording module calls the window management service module in the window management service in the multi-window manager (Multi Window Manager) to enable the window management service module to perform the following steps.
  • Multi Window Manager Multi Window Manager
  • 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.
  • 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.
  • the screen orientation includes the portrait orientation of the mobile phone 200 (i.e., the original orientation when not rotated or the set physical orientation) 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).
  • the window management service module determines the interface layout direction supported by the application.
  • 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.
  • step 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.
  • the window management service module reads the corresponding preset whitelist and determines whether the application belongs to the preset application in the whitelist, that is, whether it is in the whitelist. If the application is in the whitelist, the window management service module executes step S807. If not in the whitelist, the window management service module executes step S810.
  • the window management service module displays the application interface in a compatible mode, for example.
  • the window management service module determines the display range of the application in the split-screen window, that is, determines the corresponding display position.
  • 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).
  • 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 the aforementioned FIG. 11, prompting that the current application does not support split-screen.
  • the method also includes S901, that is, the task module performs operations related to displaying the application interface, such as setting the display range, according to the display position information (i.e., the display range (bounds) information).
  • the task module can determine the corresponding container size according to 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.
  • the dynamic effect in the split-screen display process can be implemented by the aforementioned dynamic effect service, and its implementation process can refer to the current implementation method, which will not be repeated here.
  • the mobile phone 200 can conveniently determine in which display mode the application interface of the application to be split screen is displayed in the split screen window, and The application interface is displayed according to this 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.
  • the window management service module determines the display range of the application in the split-screen window, and 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. And, the mobile phone 200 can obtain the display size of the preset application when it is displayed in the size of a non-full-spread 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.
  • the display size may be any one of the aforementioned first size, second size, and third size, the first size being the size of the application interface of the application reduced according to a preset ratio, the second size being the size corresponding to the first size with an aspect ratio of 4:3, and the third size being the size corresponding to the first size with an aspect ratio of 16:9.
  • the first size, the second size, the third size, and the preset ratio may all be specifically set as required.
  • the following is an illustrative description of the settings of the first size, the second size, the third size, and the preset ratio.
  • the foldable screen mobile phone enters split screen mode from full screen mode and enters compatible mode.
  • the interface size of application A is: height is x, width is y.
  • the interface size of application A displayed in the size of the non-full-screen split screen window is:
  • 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.
  • dividerbar is the width of the screen splitting line, and its value may be, for example, 10 to 15 mm, for example, 12 mm.
  • x, y and dividerbar may also be any other values, which can be set as needed.
  • 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).
  • the mobile phone 200 enters the split-screen state from the full-screen state in the portrait mode, and enters the compatible mode, wherein the interface size of application A in the full-screen state of the mobile phone 100 is: height is x, width is y. Then in the split-screen state, the interface size of application A displayed in the size of the non-full-spread split-screen window is:
  • width (y-dividerbar)/2
  • height (y-dividerbar)*(y-dividerbar)/(4*x).
  • width (y-dividerbar)/2
  • height (y-dividerbar)/2*3/4.
  • width (y-dividerbar)/2
  • height (y-dividerbar)/2*9/16.
  • 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.
  • dividerbar is the width of the screen splitting line, and its value may be, for example, 10 to 15 mm, for example, 12 mm.
  • x, y and dividerbar may also be any other values, which can be set as needed.
  • 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).
  • 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 satisfying the different application usage requirements of the user.
  • the display size of the application interface in the split-screen window may also be determined in other ways.
  • the mobile phone 200 can 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.
  • the aforementioned white list 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.
  • the height and width (i.e., x, y) of the interface size of the aforementioned application A can be determined according to the size and screen orientation of the pre-stored display screen.
  • the size of the dividerbar can also be determined according to the dividerbar configuration file in the preset split screen mode.
  • the electronic device provided by the present application may also be a vehicle-mounted 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 media client device, an e-book, a reading device, a POS machine, and other devices.
  • MID mobile Internet device
  • a wearable device for example, including: smart watches, smart bracelets, pedometers, etc.
  • a personal digital assistant for example, including: smart watches, smart bracelets, pedometers, etc.
  • portable media player for example, including: smart watches, smart bracelets, pedometers, etc.
  • a navigation device for example, including: smart watches, smart bracelets, ped
  • the application interface display method provided by the implementation of the present application can be applied to electronic devices in various application scenarios such as home, office, social, sports and health, and automobiles.
  • FIG. 23 is a schematic diagram of the structure of an electronic device 900 provided according to an 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.
  • 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.
  • the controller hub 904 includes, but is not limited to, a graphics memory controller hub (GMCH) (not shown in the figure) and an input/output hub (IOH) (which may be on a separate chip) (not shown in the figure), wherein the GMCH includes a memory and a graphics controller and is coupled to the IOH.
  • GMCH graphics memory controller hub
  • IOH input/output hub
  • the electronic device 900 may also include a coprocessor 906 and a memory 902 coupled to the controller hub 904.
  • a coprocessor 906 and a memory 902 coupled to the controller hub 904.
  • one or both of the memory 902 and the GMCH may be integrated within the processor 901 (as described in the present application), with the memory 902 and the coprocessor 906 being directly coupled to the processor 901 and the controller hub 904, with the controller hub 904 being in a single chip with the IOH.
  • the memory 902 may be, for example, a dynamic random access memory (DRAM), a phase change memory (PCM), or a combination of the two.
  • DRAM dynamic random access memory
  • PCM phase change memory
  • 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 Units (GPGPU), or an embedded processor, etc.
  • MIC Many Integrated Core
  • GPU General Purpose Graphics Processing Units
  • the optional nature of the coprocessor 906 is indicated by a dashed line in FIG. 23 .
  • the electronic device 900 may further include a network interface (Network Interface Card, NIC) 903.
  • the network interface 903 may include a transceiver for providing a radio interface for the electronic device 900 to communicate with any other suitable device (such as a front-end module, an antenna, etc.).
  • the network interface 903 may be integrated with other components of the electronic device 900.
  • the network interface 903 may implement the functions of the communication unit in the above implementation.
  • the electronic device 900 may further include an input/output (I/O) device 905.
  • the input/output (I/O) device 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 also interact with the electronic device 900; and/or a sensor designed to determine environmental conditions and/or path information related to the electronic device 900.
  • FIG. 23 is only exemplary. That is, although FIG. 23 shows that the electronic device 900 includes multiple devices such as a processor 901, a controller hub 904, and a memory 902, in actual applications, the device using the methods of the present application may only include a portion of the devices of the electronic device 900, for example, it may only include the processor 901 and the NIC 903. The properties of the optional devices in FIG. 23 are shown with dotted lines.
  • 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.
  • 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.
  • FIG. 24 is a schematic diagram of a structure of a SoC (System on Chip) 1000 provided according to an implementation of the present application.
  • SoC System on Chip
  • similar components have the same reference numerals.
  • the dashed box is 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 according to the different devices in which it is located and the different instructions stored therein.
  • 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 group or 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.
  • the coprocessor 1007 includes a dedicated processor, such as, for example, a network or communication processor, a compression engine, a GPU, a high throughput MIC processor, or an embedded processor, etc.
  • 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 as mentioned above.

Landscapes

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

Abstract

本申请公开了一种应用界面显示方法,应用于电子设备,该方法包括:显示第一界面;接收第一操作;响应于第一操作,显示第二界面,第二界面包括以分屏方式显示的第一分屏窗口和第二分屏窗口,第一分屏窗口中显示有第一应用对应的第一应用界面,第一应用界面在第一分屏窗口中以非满铺第一分屏窗口的尺寸显示,并且第一应用界面的界面布局方向与电子设备的当前屏幕方向不同。如此,可以在第一分屏窗口中正常显示第一应用的第一应用界面,避免了第一应用界面被拉伸变形、比例失调等问题,即可以在第一分屏窗口中显示满足用户使用需求的正常的第一应用界面,从而提升了用户体验。本申请还公开了一种电子设备和存储介质。

Description

应用界面显示方法、电子设备和存储介质
本申请要求于2022年11月21日提交中国专利局、申请号为202211462499.9、申请名称为“应用界面显示方法、电子设备和存储介”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及分屏技术领域,特别涉及一种应用界面显示方法、电子设备和存储介质。
背景技术
随着电子技术的发展,以及电子设备中安装的应用程序的增多,当前,例如手机、平板电脑等越来越多的电子设备可以支持分屏功能,电子设备在屏幕上可以分屏显示多个应用程序的应用界面。
但是,在电子设备的分屏功能的实际使用过程中发现,并不是所有的应用程序都能很好地适配或者兼容分屏技术。例如,在左右分屏和上下分屏的分屏场景中,经常存在应用程序可以支持左右分屏,但是无法支持上下分屏的问题。因此,电子设备在左右分屏时可以正常显示该应用程序的应用界面,但是在上下分屏时却无法正常显示该应用程序的应用界面。
因此,现有技术中存在电子设备在分屏功能的使用场景中,无法很好地显示应用程序的应用界面,影响用户体验的问题。
发明内容
本申请提供了一种应用界面显示方法、电子设备和存储介质,可以解决现有技术中存在的电子设备在分屏功能使用场景中,无法很好地显示应用程序的应用界面,影响用户体验的问题。即电子设备在分屏功能使用场景中,可以很好地显示应用程序的应用界面,提升用户体验。
为解决上述技术问题,第一方面,本申请的实施方式提供了一种应用界面显示方法,应用于电子设备,该方法包括:显示第一界面;接收第一操作;响应于第一操作,显示第二界面,第二界面包括以分屏方式显示的第一分屏窗口和第二分屏窗口,第一分屏窗口中显示有第一应用对应的第一应用界面,第一应用界面在第一分屏窗口中以非满铺第一分屏窗口的尺寸显示,并且第一应用界面的界面布局方向与电子设备的当前屏幕方向不同。
本实现方式中,第一应用界面在第一分屏窗口中以非满铺第一分屏窗口的尺寸显示,并且第一应用界面的界面布局方向与电子设备的当前屏幕方向不同,即为电子设备在第一分屏窗口中以非满铺第一分屏窗口的尺寸,以及以与电子设备的当前屏幕方向不同的界面布局方向(即以第一应用支持的界面布局方向)显示第一应用界面。如此,电子设备可以在第一分屏窗口中正常显示第一应用的第一应用界面,避免了第一应用界面由于无法很好地适配第一分屏窗口的分屏方向(即电子设备的当前屏幕方向),如果在第一分屏窗口中以满铺第一分屏窗口的尺寸和以与电子设备的当前屏幕方向相同的界面布局方向显示,会被拉伸变形、比例失调等,影响用户正常使用的问题,即电子设备可以在第一分屏窗口中显示满足用户使用需求的第一应用界面,从而有效地提升了用户体验。
在上述第一方面的一种可能的实现中,第二分屏窗口中显示有第二应用对应的第二应用界面,第二应用界面在第二分屏窗口中以满铺第二分屏窗口的尺寸显示,并且第二应用界面的界面布局方向与电子设备的当前屏幕方向相同。
本实现方式中,第二应用界面在第二分屏窗口中以满铺第二分屏窗口的尺寸显示,并且第二应用界面的界面布局方向与电子设备的当前屏幕方向相同,即为电子设备在第二分屏窗口中以满铺第二分屏窗口的尺寸,以及以与电子设备的当前屏幕方向相同的界面布局方向显示第二应用界面。如此,电子设备可以在第二分屏窗口中正常显示满足用户使用需求的第二应用的第二应用界面,从而提升了用户体验。
在上述第一方面的一种可能的实现中,第二分屏窗口中显示有第二应用对应的第二应用界面,第二应用界面在第二分屏窗口中以非满铺第二分屏窗口的尺寸显示,并且第二应用界面的界面布局方向与电子设备的当前屏幕方向不同。
本实现方式中,第二应用界面在第二分屏窗口中以非满铺第二分屏窗口的尺寸显示,并且第二应用界面的界面布局方向与电子设备的当前屏幕方向不同,即为电子设备在第二分屏窗口中以非满铺第二分屏窗口的尺寸,以及以与电子设备的当前屏幕方向不同的界面布局方向(即以第二应用支持的界面布局方向)显示第二应用界面。如此,电子设备可以在第二分屏窗口中正常显示第二应用的第二应用界面,避免了第二应用界面由于无法很好地适配第二分屏窗口的分屏方向(即电子设备的当前屏幕方向),如果在第二分屏窗口中以满铺第二分屏窗口的尺寸和以与电子设备的当前屏幕方向相同的界面布局方向显示,会被拉伸变形、比例失调等,影响用户正常使用的问题,即电子设备可以在第二分屏窗口中显示满足用户使用需求的第二应用界面,从而有效地提升了用户体验。
在上述第一方面的一种可能的实现中,第一界面可以是第一应用对应的应用全屏显示界面,也可以是第二应用对应的应用全屏显示界面,或者还可以是包括悬浮窗的显示界面等。第一操作例如可以是分屏操作。
在上述第一方面的一种可能的实现中,第二界面还可以包括第一分屏窗口和第二分屏窗口以外的其他分屏窗口,以实现多窗口分屏,和/或第二界面也可以包括第一分屏窗口和第二分屏窗口以外的悬浮窗口,以实现悬浮窗口和分屏窗口的同时显示。
在上述第一方面的一种可能的实现中,非满铺第一分屏窗口的尺寸为第一预设尺寸,第一预设尺寸为第一尺寸、第二尺寸和第三尺寸中的任意一种,第一尺寸为将第一应用的原始界面尺寸按照第一预设比例调整后的尺寸,第二尺寸为对应于第一尺寸的宽高比为第一宽高比的尺寸,第三尺寸为对应于第一尺寸的宽高比第二宽高比的尺寸。
如此,电子设备可以根据预设的第一应用对应的第一预设尺寸,在第一分屏窗口中以第一预设尺寸显示第一应用界面,可以满足用户对第一应用界面的使用需求,可以有效地提升用户体验。
其中,第一尺寸、第二尺寸、第三尺寸、第一应用的原始界面尺寸、第一预设比例、第一宽高比、第二宽高比等都可以根据需要设置。
在上述第一方面的一种可能的实现中,非满铺第二分屏窗口的尺寸为第二预设尺寸,第二预设尺寸为第四尺寸、第五尺寸和第六尺寸中的任意一种,第四尺寸为将第二应用的原始界面尺寸按照第二预设比例调整后的尺寸,第五尺寸为对应于第四尺寸的宽高比为第三宽高比的尺寸,第六尺寸为对应于第四尺寸的宽高比第四宽高比的尺寸。
如此,电子设备可以根据预设的第二应用对应的第二预设尺寸,在第二分屏窗口中以第二预设尺寸显示第二应用界面,可以满足用户对第二应用界面的使用需求,可以有效地提升用户体验。
其中,第四尺寸、第五尺寸、第六尺寸、第二应用的原始界面尺寸、第二预设比例、第三宽高比、第四宽高比等都可以根据需要设置。
另外,第一尺寸、第二尺寸、第三尺寸和第四尺寸、第五尺寸、第六尺寸中,可以有相同的尺寸,也可以完全不同。第一应用的原始界面尺寸和第二应用的原始界面尺寸,可以相同,也可以不同。第一预设比例和第二预设比例,可以相同,也可以不同。第一宽高比、第二宽高比和第三宽高比、第四宽高比中,可以有相同的比,也可以完全不同。可以根据应用以及用户使用需求等,选择或者设置该尺寸、预设比例以及宽高比等。
在上述第一方面的一种可能的实现中,以非满铺方式显示有应用界面的第一分屏窗口中不显示功能栏,以满铺方式显示有应用界面的第二分屏窗口中显示有功能栏。
对于显示有以满铺分屏窗口的尺寸显示的应用界面的第二分屏窗口,可以显示功能栏,如此,可以满足用户对第二分屏窗口进行进一步操作。对于显示有以非满铺分屏窗口的尺寸显示的应用界面的第一分屏窗口,可以不显示功能栏,如此,可以满足用户对第一分屏窗口中的第一应用界面的更好地使用需求,以提升用户体验。
在上述第一方面的一种可能的实现中,响应于第一操作,显示第二界面,包括:响应于第一操作,根据电子设备的屏幕方向、待分屏应用支持的界面布局方向以及界面尺寸调节能力,确定待分屏应用的应用界面在对应的分屏窗口中的显示方式;以确定的显示方式显示第二界面。
如此,电子设备可以根据电子设备的当前屏幕方向和待分屏应用支持的界面布局方向以及界面尺寸调节能力,方便、准确地确定待分屏应用是否能很好地适配当前分屏窗口,从而方便、准确地确定在对 应的分屏窗口中以何种显示方式显示对应的应用界面,以显示满足用户使用需求的应用界面,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,根据电子设备的屏幕方向、待分屏应用支持的界面布局方向以及界面尺寸调节能力,确定待分屏应用的应用界面在对应的分屏窗口中的显示方式,包括:若待分屏应用支持与电子设备的当前屏幕方向相同的界面布局方向,或者若待分屏应用的界面尺寸调节能力为尺寸可调节,则说明待分屏应用能很好地适配当前分屏窗口,在对应的分屏窗口中,以满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面;若待分屏应用不支持与电子设备的当前屏幕方向相同的界面布局方向,并且待分屏应用的界面尺寸调节能力为尺寸不可调节,则说明待分屏应用不能很好地适配当前分屏窗口,在对应的分屏窗口中,以非满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向不同的界面布局方向,显示待分屏应用的应用界面。
如此,电子设备可以根据电子设备的当前屏幕方向和待分屏应用支持的界面布局方向以及界面尺寸调节能力,方便、准确地确定待分屏应用是否能很好地适配当前分屏窗口,从而方便、准确地确定在对应的分屏窗口中以何种显示方式显示对应的应用界面,以显示满足用户使用需求的应用界面,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,响应于第一操作,显示第二界面,包括:响应于第一操作,根据电子设备的屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力以及待分屏应用是否为预设应用,确定待分屏应用的应用界面在对应的分屏窗口中的显示方式;以确定的显示方式显示第二界面。
如此,电子设备可以根据电子设备的屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力以及待分屏应用是否为预设应用,方便、准确地确定待分屏应用是否能很好地适配当前分屏窗口,从而方便、准确地确定在对应的分屏窗口中以何种显示方式显示对应的应用界面,以显示满足用户使用需求的应用界面,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,预设应用为预设的白名单中的应用。
白名单中的应用例如可以是指以非铺满分屏窗口的尺寸以及以应用支持的界面布局方向在分屏窗口中,可以正常显示、并且可以满足用户的使用需求的一些应用。
如此,电子设备可以进一步确定待分屏应用以非铺满分屏窗口的尺寸以及以待分屏应用支持的界面布局方向在分屏窗口中显示时,是否可以满足用户的使用需求,如果可以满足用户的使用需求,则进一步确定是否需要以非铺满分屏窗口的尺寸以及以待分屏应用支持的界面布局方向在分屏窗口中显示。如此,可以方便、准确地确定在对应的分屏窗口中以何种显示方式显示对应的应用界面,以显示满足用户使用需求的应用界面,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,根据电子设备的屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力以及待分屏应用是否为预设应用,确定待分屏应用的应用界面在对应的分屏窗口中的显示方式,包括:若待分屏应用支持与电子设备的当前屏幕方向相同的界面布局方向,或者若待分屏应用为预设应用、并且待分屏应用的界面尺寸调节能力为尺寸可调节,则说明待分屏应用能很好地适配当前分屏窗口,在对应的分屏窗口中,以满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面;若待分屏应用不支持与电子设备的当前屏幕方向相同的界面布局方向,并且待分屏应用为预设应用,以及待分屏应用的界面尺寸调节能力为尺寸不可调节,则说明待分屏应用不能很好地适配当前分屏窗口,在对应的分屏窗口中,以非满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向不同的界面布局方向,显示待分屏应用的应用界面。
如此,电子设备可以根据电子设备的屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力以及待分屏应用是否为预设应用,方便、准确地确定待分屏应用是否能很好地适配当前分屏窗口,从而方便、准确地确定在对应的分屏窗口中以何种显示方式显示对应的应用界面,以显示满足用户使用需求的应用界面,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,该方法还包括:若待分屏应用不支持与电子设备的当前屏幕方向相同的界面布局方向,并且待分屏应用不是预设应用,则说明待分屏应用以非铺满分屏窗口的尺寸以及以待分屏应用支持的界面布局方向在分屏窗口中显示时,不能满足用户的使用需求,则不执行对应 于待分屏应用的分屏操作。例如可以弹出提示信息提示用户当前不支持待分屏应用的分屏等。
如此,可以避免待分屏应用不能很好地适配当前分屏窗口,在分屏显示时,应用界面被拉伸变形等问题,从而有效地提升了用户体验。
在上述第一方面的一种可能的实现中,该方法还包括,在以下任意一种情况下,确定待分屏应用支持与电子设备的当前屏幕方向相同的界面布局方向:待分屏应用支持第一界面布局方向,电子设备的当前屏幕方向为第一屏幕方向,第一界面布局方向与第一屏幕方向相同;待分屏应用支持第二界面布局方向,电子设备的当前屏幕方向为第二屏幕方向,第二界面布局方向和第二屏幕方向相同。
在上述第一方面的一种可能的实现中,该方法还包括,在以下任意一种情况下,确定待分屏应用不支持与电子设备的当前屏幕方向相同的界面布局方向:待分屏应用支持第一界面布局方向,电子设备的当前屏幕方向为第二屏幕方向,第一界面布局方向和第二屏幕方向不同;待分屏应用支持第二界面布局方向,电子设备的当前屏幕方向为第一屏幕方向,第二界面布局方向和第一屏幕方向不同。
如此,电子设备可以方便、准确地确定待分屏应用是否支持与电子设备的当前屏幕方向相同的界面布局方向,从而更为准确、方便地确定应用界面在对应分屏窗口中的显示方式,有效地提升了应用界面的显示效果,从而有效地提升了用户体验。
在上述第一方面的一种可能的实现中,第一界面布局方向为竖屏布局方向,第二界面布局方向为横屏布局方向,第一屏幕方向为竖屏方向,第二屏幕方向为横屏方向。
如此,电子设备可以根据电子设备的屏幕方向为竖屏方向还是横屏方向,以及应用支持的界面布局方向是竖向布局方向还是横向布局方向,确定待分屏应用是否支持与电子设备的当前屏幕方向相同的界面布局方向,从而更为准确、方便地确定应用界面在对应分屏窗口中的显示方式,有效地提升了应用界面的显示效果,从而有效地提升了用户体验。
在上述第一方面的一种可能的实现中,若电子设备包括一个显示屏,则第一操作为以下操作中的任意一种:分屏操作;调整电子设备所处的方向或者调整电子设备的显示屏所处的方向的操作。
第一操作例如可以是用户对第一界面进行操作进行分屏的分屏操作(例如选择分屏应用、或者从悬浮窗切换到分屏的方式等),或者用户旋转显示屏调整电子设备所处的方向或者调整电子设备的显示屏所处的方向的操作等。
如此,在不同的分屏场景下,电子设备都可以根据用户的操作,显示对应的分屏窗口,以及在对应的分屏窗口中显示对应的应用界面,以满足用户的使用需求,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,若电子设备至少包括两个显示屏,则第一操作为以下操作中的任意一种:分屏操作;调整电子设备所处的方向,或者调整电子设备的显示屏所处的方向的操作;调整电子设备的不同显示屏的使用状态的操作。
第一操作例如可以是用户对第一界面进行操作进行分屏的分屏操作(例如选择分屏应用、或者从悬浮窗切换到分屏的方式等),或者用户旋转显示屏调整电子设备所处的方向或者调整电子设备的显示屏所处的方向的操作,或者用户折叠显示屏、打开显示屏的切换内外显示屏、或者切换不同的显示屏以调整电子设备的不同显示屏的使用状态的操作等。
如此,在不同的分屏场景下,电子设备都可以根据用户的操作,显示对应的分屏窗口,以及在对应的分屏窗口中显示对应的应用界面,以满足用户的使用需求,有效地提升了用户体验。
在上述第一方面的一种可能的实现中,第一分屏窗口和第二分屏窗口可以是在同一个屏幕上分屏显示,也可以是在不同的屏幕上分屏显示。
在上述第一方面的一种可能的实现中,电子设备可以是只有一个屏幕的直板电子设备,也可以是只有一个屏幕的折叠屏电子设备,或者可以是有两个屏幕(例如一个内屏幕,一个外屏幕,或者两个外屏幕,或者两个内屏幕)的折叠屏电子设备。当然,电子设备也可以是包括三个及以上屏幕的电子设备。
第二方面,本申请的实施方式提供了一种电子设备,包括:存储器,用于存储计算机程序,计算机程序包括程序指令;处理器,用于执行程序指令,以使电子设备执行如上述第一方面和/或第一方面的任意一种可能的实现方式所提供的应用界面显示方法。
第三方面,本申请的实施方式提供了一种计算机可读取存储介质,计算机可读取存储介质存储有计算机程序,计算机程序包括程序指令,程序指令被电子设备运行以使电子设备执行如上述第一方面和/ 或第一方面的任意一种可能的实现方式所提供的应用界面显示方法。
可以理解的是,上述第二方面至第三方面的有益效果也可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
为了更清楚地说明本申请的技术方案,下面将对实施方式描述中所使用的附图作简单介绍。
图1是根据本申请的一些实施方式,示出了现有技术中手机显示应用界面的一种界面示意图;
图2是根据本申请的一些实施方式,示出了手机显示应用界面的一种界面示意图;
图3A是根据本申请的一些实施方式,示出了应用支持的界面布局方向、界面尺寸调节能力和屏幕方向与应用界面的显示方式之间的一种对应关系示意图;
图3B是根据本申请的一些实施方式,示出了应用支持的界面布局方向、界面尺寸调节能力和屏幕方向与应用界面的显示方式之间的另一种对应关系示意图;
图4是根据本申请的一些实施方式,示出了手机以非满铺分屏窗口的尺寸显示应用界面的场景中的几种显示界面的尺寸示意图;
图5是根据本申请的一些实施方式,示出了手机的一种结构示意图;
图6是根据本申请的一些实施方式,示出了手机的一种软件系统示意图;
图7A-7G是根据本申请的一些实施方式,示出了手机100的一些显示界面示意图;
图8是根据本申请的一些实施方式,示出了手机200的一些显示界面示意图;
图9是根据本申请的一些实施方式,示出了手机300的一些显示界面示意图;
图10是根据本申请的一些实施方式,示出了平板电脑400的一些显示界面示意图;
图11是根据本申请的一些实施方式,示出了手机100的另一些显示界面示意图;
图12A是根据本申请的一些实施方式,示出了分屏界面的一种显示方式示意图;
图12B根据本申请的一些实施方式,示出了分屏界面的另一种显示方式示意图;
图13A是根据本申请的一些实施方式,示出了手机100在分屏状态下调用输入法的一种显示界面示意图;
图13B是根据本申请的一些实施方式,示出了手机100在分屏状态下调用输入法的另一种显示界面示意图;
图14是根据本申请的一些实施方式,示出了手机100进行全屏状态、分屏状态和悬浮状态三种状态切换的一种过程示意图;
图15是根据本申请的一些实施方式,示出了一种本申请提供的应用界面显示方法的流程示意图;
图16是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法的流程示意图;
图17是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法的流程示意图;
图18是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法的流程示意图;
图19是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法流程示意图;
图20是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法流程示意图;
图21是根据本申请的一些实施方式,示出了另一种本申请提供的应用界面显示方法流程示意图;
图22A是根据本申请的一些实施方式,示出了以非满铺分屏窗口的尺寸显示的应用界面的一种尺寸示意图;
图22B是根据本申请的一些实施方式,示出了以非满铺分屏窗口的尺寸显示的应用界面的另一种尺寸示意图;
图23是根据本申请的一些实现方式,示出了一种电子设备的结构示意图;
图24是根据本申请的一些实现方式,示出了一种片上系统(SoC)的结构示意图。
具体实施方式
下面将结合附图对本申请的技术方案作进一步详细描述。
以折叠屏手机作为本申请实现方式提供的电子设备的一种示例,在折叠屏手机的分屏功能(也可以 称为应用分屏功能)的使用过程中,折叠屏手机都是默认以应用的应用界面满铺分屏窗口的尺寸在分屏窗口中显示应用界面。
例如,请参见图1,折叠屏手机处于竖屏状态,折叠屏手机左右分屏(即竖向分屏)显示有两个竖向的分屏窗口分屏窗口W1和分屏窗口W2,并且在分屏窗口W1中以满铺分屏窗口W1的尺寸竖向显示计算器应用的应用界面,在分屏窗口W2中以满铺分屏窗口W2的尺寸竖向显示视频应用的应用界面。
折叠屏手机在分屏窗口W1中以满铺分屏窗口W1的尺寸竖向显示计算器应用的应用界面的过程中,会对计算器应用的应用界面的原始界面尺寸竖向和横向分别进行尺寸调整。由于计算器应用的应用界面通常为竖向布局,因此,即使折叠屏手机对计算器应用的应用界面的原始界面尺寸竖向和横向分别进行尺寸调整,调整后的计算器应用的应用界面在竖向的分屏窗口W1中以满铺分屏窗口W1的尺寸竖向显示时,也不会存在严重的界面比例失调、变形等问题。由此,如图1所示,折叠屏手机可以在分屏窗口W1中以满铺分屏窗口W1的尺寸正常显示计算器应用的应用界面,即分屏窗口W1中显示的计算器应用的应用界面是正常的,计算器应用的应用界面可以很好地适配分屏窗口W1。
折叠屏手机在分屏窗口W2中以满铺分屏窗口W2的尺寸竖向显示视频应用的应用界面时,会对视频应用的应用界面的原始界面尺寸竖向和横向分别进行尺寸调整。由于视频应用的应用界面(例如视频播放界面)通常为横向布局,因此,视频应用的应用界面被竖向拉伸后,会存在严重的界面比例失调、变形等问题。例如,视频应用的应用界面是一个人在跳跃的图像,则如图1所示,该图像在竖向方向上被拉伸变形、比例失调,用户并不能看清楚该图像的显示内容。因此,折叠屏手机在分屏窗口W2中以满铺分屏窗口W2的尺寸无法正常显示视频应用的应用界面,即分屏窗口W2中显示的视频应用的应用界面是异常的,视频应用的应用界面无法很好地适配分屏窗口W2。在这种情况下,用户通过分屏窗口W2中显示的视频应用的应用界面,无法正常观看视频,存在影响用户体验的问题。
基于此,本申请提供了一种应用界面显示方法,应用于折叠屏手机(作为电子设备的一种示例),在分屏场景中,折叠屏手机可以根据折叠屏手机的屏幕方向、待分屏应用(即需要分屏显示的应用)支持的界面布局方向以及界面尺寸调节能力,确定应用界面在分屏窗口中的显示方式,并且以确定的显示方式在对应的分屏窗口中显示待分屏应用的应用界面,即显示对应的分屏界面。
其中,屏幕方向指的是折叠屏手机的处于使用状态的显示屏(即屏幕)所处的方向,即折叠屏手机所处的方向。例如,若折叠屏手机只包括一个显示屏,则分屏方向指的是该显示屏被使用时所处的方向;若折叠屏手机包括内显示屏和外显示屏两个显示屏,则内显示屏被使用时,分屏方向指的是该内显示屏所处的方向,外显示屏被使用时,分屏方向指的是该外显示屏所处的方向。当然,折叠屏手机也可以包括其他更多的显示屏。折叠屏手机的屏幕方向包括竖屏方向(即折叠屏手机在竖向放置的竖屏状态下的屏幕方向)和横屏方向(即折叠屏手机在横向放置的横屏状态下的屏幕方向)。因此,屏幕方向包括竖屏方向(作为第一屏幕方向的一种示例)和横屏方向(作为第二屏幕方向的一种示例)。
界面布局方向指的是在界面上显示的画面所处的正向方向上,如果界面的宽大于高,则认为界面的界面布局方向是横向布局方向,如果界面的宽小于高,则认为界面的界面布局方向是竖向布局方向。因此,界面布局方向包括竖屏布局方向(也可以称为竖向布局方向,或者竖屏布局模式,作为第一界面布局方向的一种示例)和横屏布局方向(也可以称为横向布局方向,或者横屏布局模式,作为第二界面布局方向的一种示例)。
界面尺寸调节能力(resizeable Activity)指的是应用的应用界面的尺寸在显示的过程中是否可以调整,即尺寸的可调节能力,因此可以包括尺寸可调节和尺寸不可调节。
应用界面在分屏窗口中的显示方式,包括应用界面在分屏窗口的显示尺寸和界面布局方向,显示尺寸可以是满铺分屏窗口的尺寸,则对应的界面布局方向可以是应用支持的与当前屏幕方向相同的界面布局方向,显示尺寸也可以是非满铺分屏窗口的尺寸,则对应的界面布局方向可以是应用支持的界面布局方向,即可以是与当前屏幕方向不同的界面布局方向。
则,本申请提供的应用界面显示方法中,如果应用声明既支持竖屏布局方向也支持横屏布局方向(即界面布局方向是非固定方向),则折叠屏手机在分屏状态下,始终以铺满分屏窗口的尺寸显示该应用的应用界面,并且分屏窗口中显示的应用界面的界面布局方向与当前屏幕方向相同,即始终以铺满分屏窗口的尺寸以及以与当前屏幕方向相同的界面布局方向显示该应用的应用界面。
如果应用声明只支持竖屏布局方向或者横屏布局方向(即界面布局方向是固定方向的),则折叠屏手机在分屏状态下,需要进一步根据应用声明的界面尺寸调节能力区分或者确定应用界面在分屏窗口中的显示方式。
其中,如果应用声明的界面尺寸调节能力为尺寸可调节,则折叠屏手机在分屏状态下,始终以铺满分屏窗口的尺寸在对应的分屏窗口中显示该应用的应用界面,并且分屏窗口中显示的应用界面的界面布局方向与当前屏幕方向相同,即始终以铺满分屏窗口的尺寸以及以与当前屏幕方向相同的界面布局方向显示该应用的应用界面。
如果应用声明的尺寸调节能力为尺寸不可调节,则若应用声明的界面布局方向和当前屏幕方向相同(即应用支持与当前屏幕方向相同的界面布局方向),折叠屏手机在分屏状态下,以铺满分屏窗口的尺寸在对应的分屏窗口中显示该应用的应用界面,并且分屏窗口中显示的应用界面的界面布局方向与当前屏幕方向相同,即以铺满分屏窗口的尺寸以及以与当前屏幕方向相同的界面布局方向显示该应用的应用界面。若应用声明的界面布局方向和当前屏幕方向不同(即应用不支持与当前屏幕方向相同的界面布局方向),折叠屏手机以非满铺分屏窗口的尺寸在对应的分屏窗口中显示该应用的应用界面,并且分屏窗口中显示的应用界面的界面布局方向与当前屏幕方向不同,即以非铺满分屏窗口的尺寸以及以应用支持的界面布局方向显示该应用的应用界面。
进一步地,在分屏场景中,本申请提供的应用界面显示方法,包括;折叠屏手机显示第一界面,折叠屏手机若接收到用户对应于该第一界面的分屏操作(作为第一操作的一种示例,分屏操作例如可以是用户选择进行分屏的应用的操作、从悬浮窗切换至分屏的操作等分屏操作,旋转折叠屏手机等调整折叠屏手机所处的方向的操作(即旋转折叠屏手机屏幕等调整屏幕所处的方向的操作),切换使用折叠屏手机的内显示屏和外显示屏等调整折叠屏手机的不同显示屏的使用状态的操作等操作),响应于该分屏操作,显示第二界面,第二界面包括以分屏方式显示的分屏窗口W1(作为第二分屏窗口的一种示例)和分屏窗口W2(作为第一分屏窗口的一种示例)两个分屏窗口,并且在分屏窗口W1中显示计算器应用(作为待分屏应用的一种示例)的应用界面,在分屏窗口W2中显示视频应用(作为待分屏应用的另一种示例)的应用界面。
本实现方式中,若折叠屏手机确定计算器应用支持与折叠屏手机的当前屏幕方向相同的界面布局方向,则折叠屏手机在分屏窗口W1中以满铺分屏窗口W1的尺寸显示计算器应用的应用界面,并且分屏窗口W1中显示的计算器应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向相同,即以铺满分屏窗口W1的尺寸以及以与当前屏幕方向相同的界面布局方向显示计算器应用的应用界面。若折叠屏手机确定计算器应用不支持与折叠屏手机的当前屏幕方向相同的界面布局方向,但是计算器应用的界面尺寸调节能力为尺寸可调节,则折叠屏手机在分屏窗口W1中以满铺分屏窗口W1的尺寸显示计算器应用的应用界面,并且分屏窗口W1中显示的计算器应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向相同,即以铺满分屏窗口W1的尺寸以及以与当前屏幕方向相同的界面布局方向显示计算器应用的应用界面。若折叠屏手机确定计算器应用不支持与折叠屏手机的屏幕方向相同的界面布局方向,并且计算器应用的界面尺寸调节能力为尺寸不可调节,则折叠屏手机在分屏窗口W1中以非满铺分屏窗口W1的尺寸显示计算器应用的应用界面,并且分屏窗口W1中显示的计算器应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向不同,即以非铺满分屏窗口W1的尺寸以及以计算器应用支持的界面布局方向显示计算器应用的应用界面。
其中,若计算器应用支持的界面布局方向为竖屏布局方向,折叠屏手机的屏幕方向为竖屏方向,则认为计算器应用支持的界面布局方向与折叠屏手机的屏幕方向相同。或者若计算器应用支持的界面布局方向为横屏布局方向,折叠屏手机的屏幕方向为横屏方向,则认为计算器应用支持的界面布局方向与折叠屏手机的分屏方向相同。若计算器应用支持的界面布局方向为竖屏布局方向,折叠屏手机的屏幕方向为横屏方向,则认为计算器应用支持的界面布局方向与折叠屏手机的分屏方向不同。或者若计算器应用支持的界面布局方向为横屏布局方向,折叠屏手机的屏幕方向为竖屏方向,则认为计算器应用支持的界面布局方向与折叠屏手机的屏幕方向不同。
同理,本实现方式中,若折叠屏手机确定视频应用支持与折叠屏手机的当前屏幕方向相同的界面布局方向,则折叠屏手机在分屏窗口W2中以满铺分屏窗口W2的尺寸显示视频应用的应用界面,并且分屏 窗口W2中显示的视频应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向相同,即以铺满分屏窗口W2的尺寸以及以与当前屏幕方向相同的界面布局方向显示视频应用的应用界面。若折叠屏手机确定视频应用不支持与折叠屏手机的当前屏幕方向相同的界面布局方向,但是视频应用的界面尺寸调节能力为尺寸可调节,则折叠屏手机在分屏窗口W2中以满铺分屏窗口W2的尺寸显示视频应用的应用界面,并且分屏窗口W2中显示的视频应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向相同,即以铺满分屏窗口W2的尺寸以及以与当前屏幕方向相同的界面布局方向显示视频应用的应用界面。若折叠屏手机确定视频应用不支持与折叠屏手机的当前屏幕方向相同的界面布局方向,并且视频应用的界面尺寸调节能力为尺寸不可调节,则折叠屏手机在分屏窗口W2中以非满铺分屏窗口W2的尺寸显示视频应用的应用界面,并且分屏窗口W2中显示的视频应用的应用界面的界面布局方向与折叠屏手机的当前屏幕方向不同,即以非铺满分屏窗口W2的尺寸以及以视频应用支持的界面布局方向显示视频应用的应用界面。
其中,若视频应用支持的界面布局方向为竖屏布局方向,折叠屏手机的屏幕方向为竖屏方向,则认为视频应用支持的界面布局方向与折叠屏手机的屏幕方向相同。或者若视频应用支持的界面布局方向为横屏布局方向,折叠屏手机的屏幕方向为横屏方向,则认为视频应用支持的界面布局方向与折叠屏手机的屏幕方向相同。若视频应用支持的界面布局方向为竖屏布局方向,折叠屏手机的屏幕方向为横屏方向,则认为视频应用支持的界面布局方向与折叠屏手机的屏幕方向不同。或者若视频应用支持的界面布局方向为横屏布局方向,折叠屏手机的屏幕方向为竖屏方向,则认为视频应用支持的界面布局方向与折叠屏手机的屏幕方向不同。
例如,在上述折叠屏手机位于竖屏状态左右分屏(即分屏方向为竖屏分屏方向,也可以称为竖向分屏)显示计算器应用(作为第二应用的一种示例)和视频应用(作为第一应用的一种示例)的分屏场景中,如果折叠屏手机确定计算器应用支持竖屏布局方向,则如图2所示,折叠屏手机在分屏窗口W1中以满铺分屏窗口W1的尺寸竖向显示计算器应用的应用界面(作为第二应用界面的一种示例)。如果折叠屏手机确定视频应用不支持竖屏布局方向,只支持横屏布局方向,并且视频应用的界面尺寸调节能力为尺寸不可调节,则如图2所示,折叠屏手机在分屏窗口W2中以非满铺分屏窗口W2的尺寸横向显示视频应用的应用界面(作为第一应用界面的一种示例),而非如图1所示的现有技术中的以满铺分屏窗口W2的尺寸竖向显示视频应用的应用界面。
本实现方式中,对于以满铺显示方式无法很好地适配竖向的分屏窗口W2的视频应用(对于分屏适配不好的应用),折叠屏手机可以在分屏窗口W2中以非满铺分屏窗口的尺寸横向显示视频应用的应用界面。如此,折叠屏手机可以在分屏窗口W2中正常显示视频应用的应用界面,避免了视频应用的应用界面被拉伸变形、比例失调等,影响用户正常观看的问题,即可以满足用户的观看需求,从而提升了用户体验。
下面以上述计算器应用和视频应用,以及浏览器应用、游戏应用(例如游戏应用1和游戏应用2)为例,对本申请提供的应用界面显示方法中应用界面的显示方式进行进一步说明。
如图3A和3B所示,对于计算器应用来说,如果计算器应用声明其支持的界面布局方向包括竖屏布局方向(portrait)和横屏布局方向(landscape),则不论其声明的界面尺寸调节能力为尺寸可调节(resizable)还是尺寸不可调节(unresizable),折叠屏手机在竖屏状态和横屏状态下(即屏幕方向为竖屏方向和横屏方向的情况下),都以满铺分屏窗口的尺寸在分屏窗口中以对应于当前屏幕方向的界面布局方向显示计算器应用的应用界面(例如,若屏幕方向为横屏方向,则以横屏布局方向横向显示,若屏幕方向为竖屏方向,则以竖屏布局方向竖向显示)。
如图3A所示,对于浏览器应用来说,如果浏览器应用声明其支持的界面布局方向为竖屏布局方向,并且声明其界面尺寸调节能力为尺寸可调节,则折叠屏手机在竖屏状态和横屏状态下(即屏幕方向为竖屏方向和横屏方向的情况下),都以满铺分屏窗口的尺寸在分屏窗口中以对应于当前屏幕方向的界面布局方向(即与当前屏幕方向相同的界面布局方向)显示计算器应用的应用界面(例如,若屏幕方向为横屏方向,则以横屏布局方向横向显示,若屏幕方向为竖屏方向,则以竖屏布局方向竖向显示)。如果浏览器应用声明其支持的界面布局方向为竖屏布局方向,并且声明其界面尺寸调节能力为尺寸不可调节,则折叠屏手机在竖屏状态下(即屏幕方向为竖屏方向的情况下),以满铺分屏窗口的尺寸在分屏窗口中 竖向显示计算器应用的应用界面,折叠屏手机在横屏状态下(即屏幕方向为横屏方向的情况下),以非满铺分屏窗口的尺寸在分屏窗口中竖向显示计算器应用的应用界面。
如图3B所示,对于游戏应用(例如扑克牌类游戏-游戏应用1)来说,如果游戏应用声明其支持的界面布局方向为横屏布局方向,并且声明其界面尺寸调节能力为尺寸可调节,则折叠屏手机在竖屏状态和横屏状态下(即屏幕方向为竖屏方向和横屏方向的情况下),都以满铺分屏窗口的尺寸在分屏窗口中以对应于当前屏幕方向的界面布局方向显示游戏应用的应用界面(例如,若屏幕方向为横屏方向,则以横屏布局方向横向显示,若屏幕方向为竖屏方向,则以竖屏布局方向竖向显示)。
如图3B所示,对于视频应用来说,如果视频应用声明其支持的界面布局方向为横屏布局方向,并且声明其界面尺寸调节能力为尺寸不可调节,则折叠屏手机在竖屏状态下(即屏幕方向为竖屏方向的情况下),以非满铺分屏窗口的尺寸在分屏窗口中横向显示视频应用,折叠屏手机在横屏状态下(即屏幕方向为横屏方向的情况下),以满铺分屏窗口的尺寸在分屏窗口中横向显示视频应用的应用界面。
本实现方式提供的应用界面显示方法,应用于分屏场景中,对于无法很好地适配分屏窗口的应用,折叠屏手机可以在分屏窗口中以非满铺分屏窗口的尺寸和应用支持的界面布局方向显示应用的应用界面。如此,折叠屏手机可以在分屏窗口中正常显示应用的应用界面,避免应用界面变形等非正常显示的情况,以满足用户需求,从而提升了用户体验。
本实现方式中,折叠屏手机应用于分屏场景中,在一个分屏窗口中以非满铺分屏窗口的尺寸和应用支持的界面布局方向显示应用的应用界面,在另一个分屏窗口中以满铺分屏窗口的尺寸和应用支持的对应于当前屏幕方向的界面布局方向显示应用的应用界面的方式,可以称为兼容模式显示方式。即,手机在分屏场景中(例如上下分屏场景或者左右分屏场景),可以根据实际情况,通过兼容模式显示应用对应的应用界面,如此对于分屏适配不好的应用,支持应用在分屏窗口中以非铺满分屏窗口的尺寸和应用支持的界面布局方向显示应用界面,以解决左右分屏(即竖向分屏)、上下分屏(即横向分屏)切换的场景中存在的应用界面显示存在的问题,提升应用界面的显示效果,从而提升了用户体验。
进一步地,本申请实现方式提供的应用界面显示方法中,折叠屏手机在分屏窗口中以非满铺分屏窗口的尺寸显示应用的应用界面的过程中,还需要确认应用对应的应用界面的预设尺寸,将该预设尺寸作为非满铺分屏窗口的尺寸,并且在分屏窗口中以非满铺分屏窗口的尺寸显示。该预设尺寸(作为第一预设尺寸的一种示例)例如可以是第一尺寸、第二尺寸和第三尺寸中的任意一种,第一尺寸(也可以称为0:0尺寸)为将应用的应用界面的原始界面尺寸按照预设比例(即第一预设比例)调整(例如等比例缩小)后的尺寸,原始界面尺寸例如可以是应用界面全屏显示的尺寸,或者应用默认的原始尺寸等,该预设比例可以根据折叠屏手机的显示屏的大小、分屏窗口的大小等进行设置,第二尺寸为对应于第一尺寸的宽高比(aspect ratio)为4:3(作为第一宽高比的一种示例)的尺寸,第三尺寸为对应于第一尺寸的宽高比为16:9(作为第二宽高比的一种示例)的尺寸。该原始界面尺寸、第一尺寸、第二尺寸、第三尺寸和预设比例(作为第一预设比例或者第二预设比例的一种示例),皆可以根据需要具体设置,并且该预设比例中对应于宽和高的调整比例可以是相同的,也可以是不同的。
该预设尺寸(作为第二预设尺寸)例如可以是第四尺寸、第五尺寸和第六尺寸中的任意一种,第四尺寸(也可以称为0:0尺寸)为将应用的应用界面的原始界面尺寸按照预设比例(即第二预设比例)调整(例如缩小)后的尺寸,该预设比例可以根据折叠屏手机的显示屏的大小、分屏窗口的大小等进行设置,第五尺寸为对应于第四尺寸的宽高比(aspect ratio)为4:3(作为第一宽高比的一种示例)的尺寸,第六尺寸为对应于第四尺寸的宽高比为16:9(作为第二宽高比的一种示例)的尺寸。该第四尺寸、第五尺寸、第六尺寸和预设比例,皆可以根据需要具体设置。
则,如图4所示,在折叠屏手机的屏幕处于横屏状态的情况下(即上下分屏或者横向分屏的情况下),折叠屏手机以满铺分屏窗口的方式在下方的分屏窗口中横向显示计算器应用的应用界面,以非满铺分屏窗口的方式在上方的分屏窗口中竖向显示浏览器应用的应用界面。其中,浏览器应用的应用界面可以是第一尺寸(即可以是0:0尺寸),也可以是第二尺寸(即可以是4:3尺寸),也可以是第三尺寸(即可以是16:9尺寸)。
另外,如图4所示,在折叠屏手机的屏幕处于竖屏状态的情况下(即左右分屏或者竖向分屏的情况下),折叠屏手机以满铺分屏窗口的方式在右侧的分屏窗口中竖向显示计算器应用的应用界面,以非满 铺分屏窗口的方式在左侧的分屏窗口中横向显示视频应用的应用界面。其中,视频应用的应用界面可以是第一尺寸(即可以是0:0尺寸),也可以是第二尺寸(即可以是4:3尺寸),也可以是第三尺寸(即可以是16:9尺寸)。
如此,折叠屏手机在分屏窗口中以非满铺分屏窗口的尺寸显示应用的应用界面的过程中,可以根据预设的不同应用对应的预设尺寸(例如上述第一尺寸、第二尺寸、第三尺寸等不同的尺寸)显示应用的应用界面,在不影响应用功能显示及用户操作的前提下,可以实现不同的显示效果,相比于只提供一种等比例缩小原始界面尺寸的尺寸的显示方式,可以给用户提供更好的视觉显示效果,从而有效地提升了用户体验。
进一步地,本申请还提供了一种应用界面显示方法,应用于前述折叠屏手机,在分屏场景中,折叠屏手机可以根据折叠屏手机的屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力以及待分屏应用是否为预设应用,确定待分屏应用的应用界面在对应的分屏窗口中的显示方式,并且以确定的显示方式在对应的分屏窗口中显示待分屏应用的应用界面,即显示对应的分屏界面。
待分屏应用是否为预设应用例如可以是指待分屏应用是否是预设的白名单中的应用,若待分屏应用是预设的白名单中的应用,则认为待分屏应用是预设应用,若待分屏应用不是预设的白名单中的应用,则认为待分屏应用不是预设应用。
白名单中的应用例如可以是指以非铺满分屏窗口的尺寸以及以应用支持的界面布局方向在分屏窗口中,可以正常显示、并且可以满足用户的使用需求的一些应用,例如视频应用等。则,不属于白名单中的应用可以例如可以是指以非铺满分屏窗口的尺寸以及以应用支持的界面布局方向在分屏窗口中,无法正常显示和/或无法满足用户的使用需求的一些应用。例如一些应用(例如需要用户对局部细节进行操作的一些游戏应用、绘图应用等)的应用界面如果以非铺满分屏窗口的尺寸以及以应用支持的界面布局方向在分屏窗口中显示,其界面可能会很小,无法满足用户的使用需求。当然,白名单中的应用,可以根据需要进行选择和设置。
该方法中,对于支持的界面布局方向与当前屏幕方向不同的待分屏应用,折叠屏手机还可以进一步确定待分屏应用是否为预设的白名单中的应用。若确定待分屏应用为预设的白名单中的应用,则说明该待分屏应用为预设应用,可以以非满铺分屏窗口的方式显示,则折叠屏手机进一步确定其界面尺寸调节能力,根据待分屏应用的界面尺寸调节能力确定待分屏应用的应用界面在分屏窗口中的显示方式。其中,若待分屏应用的界面尺寸调节能力为尺寸可调节,则在对应的分屏窗口中,以满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。若待分屏应用的界面尺寸调节能力为尺寸不可调节,则在对应的分屏窗口中,以非满铺分屏窗口的尺寸,以及以与电子设备的当前屏幕方向不同的界面布局方向,显示待分屏应用的应用界面。若确定待分屏应用不是预设的白名单中的应用,则说明该待分屏应用不可以以非满铺分屏窗口的方式显示,折叠屏手机不对该待分屏应用进行分屏操作(即不分屏显示该应用)。并且,折叠屏手机还可以在显示屏上弹出例如“**应用当前不支持分屏”或者“**应用不支持兼容模式显示”等提示信息,以提示用户。
下面对作为本申请实现方式提供的电子设备的一种示例的手机的结构进行说明。
请参见图5,图5示出了手机的一种结构示意图。
手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接头130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT)等无线通信的解决方案。
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,执行手机的各种功能应用以及数据处理,例如执行本申请实现方式提供的应用界面显示方法相关的处理。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。当有触摸操作作用于显示屏194,手机根据压力传感器180A检测所述触摸操作强度。手机也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如确定对屏幕的按压、滑动等操作。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机的表面,与显示屏194所处的位置不同。
下面对手机的软件系统进行说明。
手机的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明手机的软件结构。
图6示例性示出了手机的一种软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序(Application,APP)层,应用程序框架(Application Framework)层,安卓运行时(Android Runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图6所示,应用程序包可以包括功能栏(例如DockBar)、系统界面(System User Interface(UI))管理应用、桌面启动器(Launcher)、记事本(Notepad)等应用,当然,应用程序层还可以包括相机、图库、设置等应用程序。
其中,功能栏主要提供进入分屏的功能,例如提供从一个应用进入分屏的功能,或者从悬浮窗进入分屏的功能等。
桌面启动器主要提供任务切换管理器功能。
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramminginterface,API)和编程框架,例如为Java API Framework。应用程序框架层包括一些预先定义的函数。
如图6所示,应用程序框架层可以包括内容提供器(Content Providers)、视图系统(View System)和多窗口管理器(Multi Window Manager)。
其中,多窗口管理器包括活动(Activity)管理服务、窗口(Window)管理服务、动画(Animation)管理服务、显示(Display)管理服务、封装(Package)管理服务、电话(Telephony)管理服务、通知(Notification)管理服务和资源(Resource)管理服务。
其中,内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图、应用的显示界面等。
活动管理服务用于管理手机中的各种活动任务,以及提供分屏任务管理器的能力。
窗口管理服务用于管理窗口程序。窗口管理服务可以获取显示屏大小,判断是否有功能栏,锁定屏幕,截取屏幕等。以及,提供分屏任务管理器的能力。
动画管理服务主要提供系统动效的能力,用于完成与手机显示动画显示以及切换相关的处理,例如实现分屏过程中全屏进入分屏的动效,或者分屏进入全屏的动效等。
显示管理服务可用于从通知管理服务处获取用户的触摸指令。进而,显示管理服务可根据触摸指令对应的通知消息在显示屏上展示待展示的内容,即当前在显示屏上显示的内容。
电话管理服务用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理服务为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理服务使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理服务被用于告知消息提示等。通知管理服务还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
安卓运行时包括核心库(Core Libraries)和安卓运行时虚拟机(即虚拟机),安卓运行时负责安卓系统的调度和管理。
核心库,包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以也可以称为原生库,例如为Native C/C++Libraries,包括多个功能模块。
例如,如图6所示,原生库包括Web组件库(Web lit)、C函数库(Libc)、开放多媒体接口(OpenMAX AL)函数、图形程序接口(例如OpenGL ES)函数、媒体框架(Media Framework)函数等。
内核层(图中未示出)是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
本实现方式中,应用界面的显示方法的实现主要涉及整体框架中的应用程序层和应用程序框架层,并且主要涉及前述功能栏、桌面启动器、活动管理服务、窗口管理服务和动画管理服务等,其实现过程将在后文进行说明,此处暂不展开说明。
当然,本实现方式提供的手机的系统架构也可以是Magic OS系统架构等其他系统架构,其可以根据需要选择和设置。
下面将结合电子设备的界面图,对本申请提供的应用界面显示方法进行进一步说明。
下面,先以只包括一个显示屏(即屏幕)的折叠屏手机100(以下简称手机100)为例,对本申请提供的应用界面显示方法进行进一步说明。
如图7A所示,手机100处于竖屏状态,手机100的显示屏上显示有计算器应用、视频应用、浏览器应用、游戏应用1、游戏应用2等多个应用。
如图7A所示,手机100若接收到用户对视频应用的点击操作,则打开视频应用,显示如图7B所示的显示界面。该显示界面为视频应用的主界面,包括多个视频。
进一步地,如图7B所示,手机100若接收到用户对视频1的点击操作,则打开视频1,显示如图7C所示的视频播放界面,即手机100在手机100的显示屏上全屏显示视频1的播放界面。
进一步地,如图7C所示,手机100的显示屏上方还显示有功能栏(即顶部dock bar)S1,用户可以通过操作功能栏S1来进行分屏。例如,如图7C所示,手机100若接收到用户对功能栏S1的点击操作,则如图7D所示,手机100展开功能栏S1显示功能栏S2,功能栏S2包括“分屏”控件(作为第一界面的一种示例)。
如图7D所示,手机100若接收到用户对“分屏”控件的点击操作(作为第一操作的一种示例),手机100进行分屏处理,将屏幕左右分屏(即竖向分屏)成2个分屏窗口,并且在左侧的分屏窗口中显示视频应用的应用界面,在右侧的分屏窗口中显示其他界面。
本实现方式中,手机100在左侧的分屏窗口中显示视频应用的应用界面的过程中,先要确定视频应用是否支持与手机100的当前屏幕方向相同的界面布局方向,即确定是否支持竖屏布局方向。若手机100确定视频应用只支持横屏布局方向,不支持竖屏布局方向,则手机100进一步确定视频应用声明的界面尺寸调节能力。若手机100确定视频应用声明其界面尺寸调节能力为尺寸不可调节,则如图7E所示,手机100在左侧分屏窗口W2中,以非满铺分屏窗口的尺寸横向显示视频应用的应用界面(作为第二界面的一种示例)。如此,可以避免视频应用在分屏状态下,由于对竖向的分屏窗口W2适配度不佳,视频播放界面被拉伸变形,影响视频播放画面的正常显示,从而影响用户体验的问题。即,手机100以非满铺分屏窗口的方式可以正常显示视频应用的应用界面,满足用户的观看需求,从而提升了用户体验。
另外,如图7E所示,手机100在右侧分屏窗口W1中可以显示计算器应用、浏览器应用、游戏应用1、游戏应用2等多个应用的图标(该显示界面可以作为第二界面的一种示例,也可以作为第一界面的另一种示例)。则如图7E所示,手机100若接收到用户对计算器应用的点击操作(作为第一操作的另一种示例),则确定需要打开计算器应用,并且需要在分屏窗口W1中显示计算器应用的应用界面。
本实现方式中,手机100在分屏窗口W1中显示计算器应用的应用界面的过程中,先要确定计算器应用是否支持与手机100的当前屏幕方向相同的界面布局方向,即确定是否支持竖屏布局方向。若手机100确定计算器应用支持竖屏布局方向,则如图7F所示,手机100以满铺分屏窗口W1的方式在分屏窗口W1中竖向显示计算器应用的应用界面。如此,可以在分屏窗口W1中以满铺分屏窗口的尺寸显示计算器应用的应用界面,从而保证用户体验。
本实现方式中,手机100在分屏窗口W2中以非满铺分屏窗口的尺寸横向显示视频应用的应用界面,在分屏窗口W1中以满铺分屏窗口的尺寸显示计算器应用的应用界面,可以理解为一种兼容模式显示分屏窗口的方式,可以在分屏窗口中以不同方式正常显示不同应用的应用界面,从而提升了用户体验。
进一步地,本实现方式中,若用户在使用手机100的过程中,将手机100旋转了90度(例如顺时针旋转90度,作为第一操作的另一种示例),将手机100从竖屏状态调整为横屏状态,手机100会检测到手机100的屏幕方向发生了变化,即手机100会检测到手机100的屏幕方向从竖屏方向调整为横屏方向,因此手机100确定需要根据手机100的当前屏幕方向、计算器应用和视频应用支持的界面布局方向、以及计算器应用和视频应用的界面尺寸调节能力,重新确定计算器应用和视频应用的应用界面在分屏窗口中的显示方式。
例如,如前所述,手机100确定视频应用支持横屏布局方向,计算器应用也支持横屏布局方向,即视频应用和计算器应用都支持与手机100的当前屏幕方向相同的界面布局方向。则如图7G所示,手机100的屏幕方向从竖屏方向调整为横屏方向后,手机100的分屏方向从左右分屏调整为上下分屏,手机100上下分屏显示分屏窗口W3和分屏窗口W4两个分屏窗口,并且手机100在分屏窗口W4中,以满铺分屏窗口W4的尺寸横向显示视频应用的应用界面,手机100在分屏窗口W3中,以满铺分屏窗口W3的尺寸横向显示计算器应用的应用界面(作为第二界面的另一种示例)。
如此,在手机100的使用过程中,手机100可以根据手机100的当前屏幕方向、分屏应用支持的界面布局方向、以及分屏应用的界面尺寸调节能力,确定应用的应用界面在分屏窗口中的显示方式。从而在手机100的不同使用状态下,即针对不同的屏幕方向的手机100,手机100可以以满铺分屏窗口或者非满铺分屏窗口的方式,显示对应的应用界面,从而显示正常的应用界面,满足用户对手机100和不同应用的使用需求,有效地提升了用户体验。
下面以包括内显示屏(以下简称内屏)和外显示屏(以下简称外屏)两个显示屏(即屏幕)的折叠屏手机200(以下简称手机200)为例,对本申请提供的应用界面显示方法进行进一步说明。
如图8中(a)所示,手机200处于横屏状态,并且手机100的顶部位于右侧。手机200在内屏全屏启动视频应用,以全屏满铺的方式在手机200的内屏上显示视频应用的应用界面。并且,手机200的内屏上显示有功能栏S1。
手机200若接收到例如前述图7B-7E所示的用户分屏操作,确定需要分屏显示计算器应用和视频应用,手机200确定计算器应用和视频应用都支持横屏布局方向,并且此时手机200的内屏为横屏状态,则手机100确定计算器应用和视频应用都支持与内屏的当前屏幕方向(即横屏方向)相同的界面布局方向,即都支持横屏布局方向。因此,如图8中(b)所示,手机200上下分屏显示分屏窗口W1和分屏窗口W2两个分屏窗口,分屏窗口W1位于上方,分屏窗口W2位于下方。并且,手机200在分屏窗口W1中以满铺分屏窗口W1的尺寸横向显示计算器应用的应用界面,在分屏窗口W2中以满铺分屏窗口W2的尺寸横向显示视频应用的应用界面。即,手机200进入分屏状态,以满铺内屏分屏窗口的方式分别显示计算器应用和视频应用的应用界面。
手机200若检测到用户向下折叠手机200以折叠手机200的内屏的操作,手机200确定需要将内屏的显示内容切换至手机200的外屏进行显示。此时,手机200虽然为横屏状态,但是受限于外屏尺寸,手机200无法进行上下分屏,只能进行左右分屏。则如图8中(c)所示,手机200的外屏左右分屏在手机200的外屏上显示分屏窗口W3和分屏窗口W4两个分屏窗口,分屏窗口W3位于左侧,分屏窗口W4位于右侧。并且,手机200确定计算器应用和视频应用都支持与外屏的当前屏幕方向(即横屏方向)相同的界面布局方向,即都支持横屏布局方向,则手机200在分屏窗口W4中以满铺分屏窗口的尺寸横向显示视频应用的应用界面,在分屏窗口W3中以满铺分屏窗口的尺寸横向显示计算器应用的应用界面。即,手机200从内屏切换至外屏,以满铺外屏分屏窗口的方式分别显示视频应用和计算器应用的应用界面。
进一步地,用户如果将图8中(c)所示的手机200逆时针旋转90度,以将手机200调整为竖屏状态,手机200会检测到手机200的屏幕方向调整为竖屏方向,因此手机200确定外屏的分屏方向从左右分屏调整为上下分屏,并且需要根据旋转后的手机200的屏幕方向、计算器应用和视频应用支持的界面布局方向、以及计算器应用和视频应用的界面尺寸调节能力,重新确定计算器应用和视频应用的应用界面在分屏窗口中的显示方式。
则如图8中(d)所示,手机200上下分屏在手机200的外屏上显示分屏窗口W5和分屏窗口W6两个分屏窗口,分屏窗口W5位于上方,分屏窗口W6位于下方。手机200若确定计算器应用支持与外屏的当前屏幕方向(即竖屏方向)相同的界面布局方向,即支持竖屏布局方向,视频应用不支持与外屏的当前屏幕方向(即竖屏方向)相同的界面布局方向,即不支持竖屏布局方向,则手机200在分屏窗口W5中以满铺分屏窗口W5的尺寸竖向显示计算器应用的应用界面,在分屏窗口W6中以非满铺分屏窗口W6的尺寸横向显示视频应用的应用界面。即,手机100根据检测到的外屏旋转的信息,保持外屏分屏窗口显示,并且以适配外屏分屏窗口比例的兼容模式显示视频应用和计算器应用在分屏窗口中的应用界面。
进一步地,手机200如果检测到用户打开手机200的内屏的操作,手机200确定需要将手机200的外屏上的显示内容切换至手机200的内屏上显示。则手机200对内屏进行分屏处理,以及根据内屏的屏幕方向、计算器应用和视频应用支持的界面布局方向、以及计算器应用和视频应用的界面尺寸调节能力,确定计算器应用和视频应用的应用界面的在分屏窗口中的显示方式。此时,手机200确定手机200处于竖屏状态,并且计算器应用支持与内屏的当前屏幕方向(即竖屏方向)相同的界面布局方向,即支持竖屏布局方向,视频应用不支持与内屏的当前屏幕方向(即竖屏方向)相同的界面布局方向,即不支持竖屏布局方向,并且视频应用的界面尺寸调节能力为尺寸不可调节。则如图8中(e)所示,手机200 左右分屏在手机200的内屏上显示分屏窗口W7和分屏窗口W8两个分屏窗口,分屏窗口W7位于左侧,分屏窗口W8位于右侧。手机200在分屏窗口W7中以满铺分屏窗口W7的尺寸竖向显示计算器应用的应用界面,在分屏窗口W8中以非满铺分屏窗口W8的尺寸横向显示视频应用的应用界面。即,手机200切换至内屏显示应用的应用界面,并且以适配内屏分屏窗口比例的兼容模式显示视频应用和计算器应用的应用界面。
进一步地,用户将图8中(e)所示的手机200逆时针旋转90度,将手机200调整为横屏状态,则手机200会检测到手机200的屏幕方向调整为竖屏方向,因此手机200确定需要将内屏的分屏方向从左右分屏调整为上下分屏,并且手机200需要根据旋转后的内屏的屏幕方向、计算器应用和视频应用支持的界面布局方向、以及计算器应用和视频应用的界面尺寸调节能力,重新确定计算器应用和视频应用的应用界面在分屏窗口中的显示方式。此时,内屏的屏幕方向为横屏方向,计算器应用支持横屏布局方向,视频应用也支持横屏布局方向,即计算器应用和视频应用都支持与内屏的屏幕方向相同的界面布局方向。则如图8中(f)所示,手机200上下分屏在手机200的内屏上显示分屏窗口W9和分屏窗口W10两个分屏窗口,分屏窗口W9位于下方,分屏窗口W10位于上方。并且,手机200在分屏窗口W9中以满铺分屏窗口的尺寸横向显示计算器应用的应用界面,在分屏窗口W10中以满铺分屏窗口的尺寸横向显示视频应用的应用界面。即,手机200根据检测到的内屏旋转的信息,以满铺内屏分屏窗口的方式显示视频应用和计算器应用的应用界面。
进一步地,如图8中(f)所示,手机200若接收到用户对屏幕中间显示的分屏线(也可以称为分屏条)的下拉操作,手机200确定需要退出分屏操作,手机200关闭计算器应用,如图8中(g)所示,在内屏上全屏显示视频应用的应用界面。即,手机200退出分屏状态切换至全屏状态,全屏显示应用界面。
如此,在手机200的使用过程中,手机200可以根据用户对手机200的内屏和外屏的切换使用,以及对手机200的显示屏所处的方向的调整,根据手机200待分屏应用支持的界面布局方向和界面尺寸调节能力,确定手机200在不同状态下在分屏窗口中显示应用界面的显示方式。使得应用界面的显示可以适配于当前手机200的屏幕状态,从而显示正常的画面,避免由于应用界面不适配当前分屏情况,出现的界面内容变形等情况。即手机200可以显示正常的应用界面,满足用户对手机200和不同应用的使用需求,有效地提升了用户体验。
在本申请的另一种实现方式中,游戏应用1也可以只支持横屏布局方向,并且其界面尺寸调节能力为不可调节。则上述图8所示的视频应用可以直接替换为游戏应用1,以说明游戏应用1在不同状态下的应用界面的显示过程,此处不再赘述。
下面以直板手机300(即非折叠屏手机,以下简称手机300)作为本申请提供的电子设备的另一种示例,对本申请提供的应用界面显示方法进行进一步说明。
请参见图9中(a),手机300处于竖屏状态,并且显示计算器应用,如果手机300接收到例如用户对手机300右侧朝向左侧的滑动操作,手机300显示侧边工具条,该侧边工具条包括视频应用、游戏应用1、浏览器应用等多个应用。若手机300进一步接收到用户从侧边工具条中向下方拖动视频应用的图标的操作,手机300确定需要分屏显示计算器应用和视频应用。则如图9中(b)所示,手机300上下分屏显示分屏窗口M1和分屏窗口M2两个分屏窗口,并且由于计算器应用支持竖屏布局方向,则手机300在分屏窗口M1中以满铺分屏窗口的尺寸竖向显示计算器应用的应用界面。由于视频应用不支持竖屏布局方向,并且视频应用的界面尺寸调节能力为不可调节,则手机300在分屏窗口M2中以非满铺分屏窗口的尺寸横向显示视频应用的应用界面。
进一步地,如果用户旋转手机300,例如用户顺时针将手机300旋转90度,以将手机300调整为横屏状态,手机300会检测到手机300的屏幕方向调整为横屏方向。则如图9中(c)所示,手机300左右分屏显示分屏窗口M3和分屏窗口M4两个分屏窗口,由于计算器应用也支持横屏布局方向,则手机300在分屏窗口M3中以满铺分屏窗口的尺寸横向显示计算器应用的应用界面。由于视频应用也支持横屏布局方向,则手机300在分屏窗口M4中以满铺分屏窗口的尺寸横向显示视频应用的应用界面。
如此,手机300可以显示正常的应用界面,满足用户对手机300和不用应用的使用需求,有效地提升了用户体验。
下面以平板电脑作400为本申请提供的电子设备的另一种示例,对本申请提供的应用界面显示方法进行进一步说明。
请参见图10中(a)所示,平板电脑400处于竖屏状态,计算器应用支持竖屏布局方向和横屏布局方向,浏览器应用只支持竖屏布局方向,并且其界面尺寸调节能为尺寸可调节。则平板电脑400左右分屏显示分屏窗口N1和分屏窗口N2两个分屏窗口,分屏窗口N1位于右侧,分屏窗口N2位于左侧。并且,平板电脑400在分屏窗口N1中以满铺分屏窗口N1的尺寸竖向显示计算器应用的应用界面,在分屏窗口N2中以满铺分屏窗口N2的尺寸竖向显示浏览器应用的应用界面。
进一步地,如果用户旋转平板电脑400,例如用户顺时针将平板电脑400旋转90度,以将平板电脑400调整为横屏状态,平板电脑400会检测到平板电脑400的屏幕方向调整为横屏方向。则如图10中(b)所示所示,平板电脑400上下分屏显示分屏窗口N3和分屏窗口N4两个分屏窗口,分屏窗口N3位于下方,分屏窗口N4位于上方。由于计算器应用支持横屏布局方向,浏览器应用虽然不支持横屏布局方向,但是其界面尺寸调节能为尺寸可调节,则平板电脑400在分屏窗口N3中以满铺分屏窗口的尺寸横向显示计算器应用的应用界面,在分屏窗口N4中以满铺分屏窗口的尺寸横向显示浏览器应用的应用界面。
如此,平板电脑400可以显示正常的应用界面,满足用户对平板电脑400和不用应用的使用需求,有效地提升了用户体验。
在本申请的一些实现方式中,手机100、手机200、手机300、平板电脑400等电子设备,在分屏窗口中显示待分屏应用的应用界面的过程中,对于支持的界面布局方向与当前屏幕方向不同的待分屏应用,手机100、手机200、手机300、平板电脑400等电子设备还可以进一步确定该待分屏应用是否属于预设的白名单中的应用,从而确定该待分屏应用的应用界面的显示方式。
例如,请参见图11中(a)所示,若手机100接收到用户对游戏应用2(例如可以是赛车游戏)的点击操作,手机100确定需要在分屏窗口W1中显示游戏应用2的应用界面。手机100先根据当前屏幕方向、游戏应用2支持的界面布局方向,确定游戏应用2支持的界面布局方向为横屏布局方向,与当前屏幕所处的竖屏方向并不同。则手机100进一步确定游戏应用2是否属于预设的白名单中的应用,若游戏应用2属于预设的白名单中的应用,则手机100进一步确定游戏应用2的界面尺寸调节能力是否为尺寸可调节。并且若游戏应用2的界面尺寸调节能力为尺寸可调节,则手机100在分屏窗口W1中以满铺分屏窗口W1的尺寸竖向显示游戏应用2的应用界面,若游戏应用2的界面尺寸调节能力为尺寸不可调节,如图11中(e)所示,手机100在分屏窗口W1中以非满铺分屏窗口W1的尺寸横向显示游戏应用2的应用界面(作为第二应用的第二界面的另一种示例)。若游戏应用2不属于预设的白名单中的应用,则如图11中(b)所示,手机100在分屏窗口W1中显示提示信息“游戏应用2当前不支持分屏”,即手机100在分屏窗口W1中不会显示游戏应用2的应用界面。另外,手机100还可以显示对应于该提示信息的“确认”控件以用于用户使用,或者该提示信息在预设时间后自动消失。
进一步地,由于手机100确定游戏应用2支持的界面布局方向为横屏布局方向,则如图11中(c)所示,手机100还可以显示提示信息“若想分屏显示游戏应用2,可以将手机100调整为横屏方向”。以及显示“确认”控件和“取消”控件,以用于用户确定是否需要继续分屏显示游戏应用2。若手机100检测到用户对“确定”控件的点击操作,并且手机100被用户旋转为横屏状态,则如图11中(d)所示,手机100上下分屏显示分屏窗口W3和分屏窗口W4,在分屏窗口中W4中以满铺分屏窗口W4的尺寸横向显示视频应用的应用界面,在分屏窗口中W3中以满铺分屏窗口W3的尺寸横向显示游戏应用2的应用界面。若手机100检测到用户对“取消”控件的点击操作,手机100继续显示图11中(a)所示的显示界面。
如此,手机100可以显示正常的应用界面,或者不进行分屏,满足用户对手机100和不用应用的使用需求,有效地提升了用户体验。
进一步地,在分屏场景中,手机100实现分屏界面的过程也可以是,如图12A所示,手机100先全屏显示应用A的界面,如果手机100检测到用户的分屏操作,确定需要分屏显示应用A和应用B。由于应用A的应用界面不适合横向布局,应用B的应用界面适合横向布局也适合竖向布局,因此,手机100在横屏状态和竖屏状态下,都以预设的等比例缩小应用A的原始界面尺寸后显示对应的应用界面。例如, 如图12A所示,在横屏状态下,手机100在上分屏窗口中显示等比例缩小应用A的原始界面尺寸后的应用A的应用界面,在下分屏窗口中以满铺分屏窗口的尺寸横向显示应用B的应用界面。在旋转后的竖屏状态下,手机100仍然在左分屏窗口中显示等比例缩小应用A的原始界面尺寸后的应用A的应用界面,在右分屏窗口中以满铺分屏窗口的尺寸竖向显示应用B的应用界面。该方式,可以理解为一种原生进兼容模式的显示方式。
但是这种实现方式,对于不能适配横向布局的应用A来说,在竖屏状态和横向状态下,都是以等比例缩小应用A的原始界面尺寸的方式显示应用A的应用界面,使得应用A的应用界面显示始终受限(即始终较小),存在影响用户体验的问题。
而本申请实现方式提供的应用界面显示方法,应用于分屏场景中,如图12B所示,如果手机100全屏显示应用A的界面,则在进行左右分屏后,手机100左右两个分屏窗口,并且手机100根据手机100的屏幕方向,确定分屏应用在分屏窗口中的显示方式。例如,若手机100确定手机100处于横屏状态,则手机100上下分屏显示上下两个分屏窗口,并且在上分屏窗口中以非满铺分屏窗口的方式竖向显示应用A的应用界面,在下分屏窗口中以满铺分屏窗口的方式横向显示应用B的应用界面。如果手机100检测到用户将手机100旋转90度的操作,则手机确定手机100的屏幕方向从横屏方向调整为竖屏方向,手机100左右分屏,在左侧分屏窗口中以满铺窗口的尺寸竖向显示应用A的应用界面,在右侧分屏窗口中以满铺窗口的尺寸竖向显示应用B的应用界面。
如此,可以针对不同的屏幕方向,以及应用支持的界面布局方向,更好地显示应用的应用界面,提升了用户体验。
在本申请的一些实现方式中,手机100、手机200、手机300、平板电脑400等电子设备,在以非满铺方式显示应用的应用界面的场景中,即在兼容模式场景中,电子设备在以非满铺方式显示应用的应用界面的分屏窗口中,不显示前述功能栏S1(也可以称为顶部bar),即隐藏功能栏S1,实现进入兼容模式后功能栏S1消失的效果。另外,功能栏S1可以被拆封出来设置于其他位置,进行单独管理以及操作,兼容模式下窗口顶部功能栏S1的大小如何进行适配,以及如何设置,其皆可以根据需要选择和设置。
在本申请的一些实现方式中,以前述的手机100为例,手机100在分屏状态下,如果接收到用户对输入法的调用操作,则手机100根据当前的分屏模式(即分屏方向),以及需要使用输入法的应用在屏幕上所处的位置确定输入法的显示方式。分屏模式例如可以是上下分屏模式(即上下分屏或者横向分屏),则需要使用输入法的应用在屏幕上所处的位置例如为上方和下方;分屏模式也可以是左右分屏模式(即左右分屏或者竖向分屏),则需要使用输入法的应用在屏幕上所处的位置例如为右侧和左侧。
例如,在上下分屏场景中,如果需要使用输入法的应用位于屏幕的上方,即上分屏调用起输入法,则手机100直接在屏幕下方显示输入法窗口,不调整上下分屏应用的边界(即不需要调整分屏线),该输入法窗口至少部分遮挡屏幕下方的分屏窗口中显示的内容。如果需要使用输入法的应用位于屏幕的下方,即下分屏调用起输入法,则手机100将上分屏的底边收缩,下分屏上顶,下分屏上顶时下分屏的高度保持不变上顶,并且在屏幕下方显示输入法窗口。
例如,如图13A所示,上分屏应用是浏览器应用,下分屏应用是计算器应用,浏览器应用调用起输入法,则手机100直接在屏幕下方显示输入法窗口,不调整上下分屏应用的边界(即不需要调整分屏线),该输入法窗口至少部分遮挡屏幕下方的分屏窗口中显示的计算器应用的应用界面。
例如,如图13B所示,上分屏应用是计算器应用,下分屏应用是浏览器应用,浏览器应用调用起输入法,则手机100将上分屏的计算器应用的底边收缩,浏览器应用上顶(即需要上移分屏线),浏览器应用上顶时浏览器应用的高度保持不变上顶,并且在屏幕下方显示输入法窗口。
进一步地,在手机100屏幕的显示状态从展开状态切换至折叠状态或者从折叠状态切换中展开状态后,手机100需要根据新的分屏比例重新计算输入法高度,其计算方式可以根据选择和设置。
如此,可以满足不同分屏场景中,用户对输入法的使用需求,有效地提升了用户体验。
在本申请的一种实现方式中,用户的分屏操作可以是前述用户通过功能栏S1进行的分屏操作,也可以是通过侧边工具条进行的分屏操作,或者是对悬浮显示的悬浮窗口的拖动操作进行的分屏操作等。当然,其也可以是根据其他操作实现的分屏操作,其可以根据需要选择和设置。
以手机100为例,下面对手机100检测到用户的分屏操作进行分屏的过程进行进一步实例性说明。
请参见图14中(a)所示,手机100显示视频应用的应用界面,并且显示功能栏S1,用户通过功能栏S1可以如前所述,进入分屏状态如图14中(b)所示显示分屏窗口M1和分屏窗口M2,在分屏窗口M1中以满铺分屏窗口M1的尺寸竖向显示计算器应用的应用界面,在分屏窗口M2中以非满铺分屏窗口M2的尺寸横向显示视频应用的应用界面。手机100如果接收到用户对右侧屏幕向左侧的滑动操作,如图14中(b)所示,手机100显示侧边工具条P,侧边工具条P包括浏览器应用、游戏应用1等多个应用的图标。如图14中(b)所示,如果手机100接收到用户对浏览器应用图标的点击操作,如图14中(c)所示,手机100在当前显示界面上悬浮显示浏览器应用的应用界面N。进一步地,如图14中(c)所示,如果手机100接收到用户向下分屏窗口M2的左下角拖动应用界面N的操作,手机100用浏览器应用的应用界面替换分屏窗口M2中显示的视频应用的应用界面,即如图14中(d)所示,手机100在分屏界面M2中竖向显示浏览器应用的应用界面。
另外,若手机100接收到用户向右滑动如图14中(b)所示的分屏线的操作,确定需要退出分屏状态,则如图14中(e)所示,手机100全屏显示视频应用的应用界面。
或者,若手机100接收到用户将如图14中(b)所示的视频应用的界面拖动至计算器应用的界面的上方的操作,则确定需要从分屏状态进入至悬浮窗状态,则如图14中(f)所示,手机100全屏显示计算器应用的应用界面,并且在计算器应用的应用界面上方悬浮显示视频应用的应用界面。
本实现方式中,手机100可以在原有系统框架的基础上增加关于全屏状态、分屏状态、悬浮窗状态三种状态切换的名单统一管理,手机100可以根据该名单确定应用是否为支持对应的全屏显示、分屏显示和悬浮窗显示的应用,若是,则手机100获取名单中预设的接口,从而根据名单提供相应的接口给不同模块,以实现三态的相互切换。
如此,在分屏场景中,手机100可以以兼容模式显示应用的应用界面,并且实现全屏状态、分屏状态、悬浮窗状态三态之间的切换,以及实现对应的显示动效,满足用户的不同使用需求,有效地提升了用户体验。
进一步地,对于在分屏窗口中会以非铺满分屏窗口的尺寸显示的应用,该应用在进入或者退出分屏模式的持场景中,手机100都需要按照新的窗口模式/窗口大小来显示该应用。
应用在进入分屏状态,可以是在全屏状态下进入分屏状态(可以称为应用冷启动),也可以是在悬浮状态下或者分屏状态下进入分屏状态(也可以称为热启动)。另外,该应用进入分屏(即在分屏中启动或从全屏/悬浮窗切换为分屏模式),如果应用支持的界面布局方向和屏幕方向相同,则手机100在分屏窗口中以铺满分屏窗口的尺寸显示该应用的应用界面,如果应用支持的界面布局方向和屏幕方向不同等,则手机100在分屏窗口中按照前述预设的显示比例规则,以非铺满分屏窗口的尺寸显示该应用的应用界面。
手机100如果确定应用需要退出分屏状态,则手机100按照用户操作或者按照预设的切换规则,切换到全屏状态,全屏显示对应的应用。或者按照用户操作或者按照预设的显示规则,将该应用切换到悬浮窗,则按照悬浮窗口大小显示。
下面将以前述的手机200为例,对手机200显示应用界面的过程进行进一步说明。
下面结合图15,对手机200显示应用的应用界面的过程进行进一步说明。
S111,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化,手机200根据当前屏幕方向、待分屏应用支持的界面布局方向和界面尺寸调节能力,确定待分屏应用在对应的分屏窗口中的显示方式,并且以该确定的显示方式在待分屏应用对应的分屏窗口中的显示待分屏应用的应用界面,从而显示分屏界面。
其中,若手机200确定待分屏应用支持与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向中包括与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定手机200包括前述竖屏布局方向和横向布局方向,则手机200执行步骤S112。
若手机200确定待分屏应用不支持与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向与手机200的当前屏幕方向不同,但是待分屏应用的界面尺寸调节能力为尺寸可调节,则手机200执行步骤S112。
若手机200确定待分屏应用不支持与手机200的屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向与手机200的当前屏幕方向不同,并且待分屏应用的界面尺寸调节能力为尺寸不可调节,则手机200执行步骤S113。
S112,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
S113,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向(即以与当前屏幕方向不同的界面布局方向),显示待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
下面结合图16,对手机200显示应用界面的过程进行进一步说明。
S211,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化需要分屏的应用。
S212,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向。
屏幕方向包括前述的竖屏方向和横屏方向,界面布局方向包括前述的竖屏布局方向和横屏布局方向。
S213,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向是否相同。若不同,手机200执行步骤S214;若相同,手机200执行步骤S216。
S214,手机200确定待分屏应用的界面尺寸调节能力,界面尺寸调节能力包括尺寸可调节和尺寸不可调节。若手机200确定应用的界面尺寸调节能力为尺寸不可调节,手机200执行步骤S215;若手机200确定应用的界面尺寸调节能力为尺寸可调节,手机200执行步骤S216。
S215,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向,显示待分屏应用的应用界面。
S216,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示分屏应用的应用界面,满足正常显示应用界面的需求,从而有效地提升了用户体验。
下面结合图17,对手机200显示应用界面的过程进行进一步说明。
S311,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化。
S312,手机200确定待分屏应用支持的界面布局方向。若待分屏应用支持的界面布局方向同时包括前述的竖屏布局方向和横屏布局方向,手机200执行步骤S317;若待分屏应用支持的界面布局方向只包括前述的竖屏布局方向或者横屏布局方向,手机200执行步骤S313。
S313,手机200确定待分屏应用的界面尺寸调节能力,界面尺寸调节能力包括尺寸可调节和尺寸不可调节。若手机200确定待分屏应用的界面尺寸调节能力为尺寸不可调节,手机200执行步骤S314;若手机200确定待分屏应用的界面尺寸调节能力为尺寸可调节,手机200执行步骤S317。
S314,手机200确定手机200的当前屏幕方向。
S315,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向是否相同。若不同,手机200执行步骤S316;若相同,手机200执行步骤S317。
S316,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向,显示待分屏应用的应用界面。
S317,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
下面结合图18,对手机200显示应用界面的过程进行进一步说明。
S411,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化。
S412,手机200确定待分屏应用的界面尺寸调节能力,界面尺寸调节能力包括尺寸可调节和尺寸不可调节。若手机200确定待分屏应用的界面尺寸调节能力为尺寸不可调节,手机200执行步骤S413;若手机200确定待分屏应用的界面尺寸调节能力为尺寸可调节,手机200执行步骤S417。
S413,手机200确定待分屏应用支持的界面布局方向。若待分屏应用支持的界面布局方向同时包括前述的竖屏布局方向和横屏布局方向,手机200执行步骤S417;若待分屏应用支持的界面布局方向只包括前述的竖屏布局方向或者横屏布局方向,手机200执行步骤S414。
S414,手机200确定手机200的当前屏幕方向。
S415,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向是否相同。若不同,手机200执行步骤S416;若相同,手机200执行步骤S417。
S416,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向,显示待分屏应用的应用界面。
S417,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
下面结合图19,对手机200显示应用界面的过程进行进一步说明。
S511,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化,手机200根据当前屏幕方向、待分屏应用支持的界面布局方向、待分屏应用的界面尺寸调节能力,以及待分屏应用是否为预设应用,确定待分屏应用在对应的分屏窗口中的显示方式,并且以该确定的显示方式在待分屏应用对应的分屏窗口中的显示待分屏应用的应用界面,从而显示分屏界面。。
其中,若手机200确定待分屏应用支持与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向中包括与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定手机200包括前述竖屏布局方向和横向布局方向,则手机200执行步骤S512。
若手机200确定待分屏应用不支持与手机200的当前屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向与手机200的当前屏幕方向不同,但是待分屏应用为预设应用,并且待分屏应用的界面尺寸调节能力为尺寸可调节,则手机200执行步骤S512。
若手机200确定待分屏应用不支持与手机200的屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向与手机200的当前屏幕方向不同,但是待分屏应用为预设应用,并且应用的界面尺寸调节能力为尺寸不可调节,则手机200执行步骤S513。
若手机200确定待分屏应用不支持与手机200的屏幕方向相同的界面布局方向,或者手机200确定待分屏应用支持的界面布局方向与手机200的当前屏幕方向不同,并且待分屏应用不是预设应用,则手机200执行步骤S514。
S512,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
S513,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向,显示待分屏应用的应用界面。
S514,手机200不对该应用进行分屏处理,即不在分屏窗口中显示该待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
下面结合图20,对手机200显示应用界面的过程进行进一步说明。
S611,手机200接收到前述用户的分屏操作,或者检测到手机200在分屏状态下,其屏幕方向发生了变化。
S612,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向。
屏幕方向包括前述的竖屏方向和横屏方向,界面布局方向包括前述的竖屏布局方向和横屏布局方向。
S613,手机200确定手机200的当前屏幕方向和待分屏应用支持的界面布局方向是否相同。若不同,手机200执行步骤S614;若相同,手机200执行步骤S616。
S614,手机200确定待分屏应用是否为预设应用。若是,手机200执行步骤S615;若不是,手机200执行步骤S618。
手机200确定待分屏应用是否为预设应用可以是通过前述待分屏应用是否为白名单中的应用的方式确定。
S615,手机200确定待分屏应用的界面尺寸调节能力,界面尺寸调节能力包括尺寸可调节和尺寸不可调节。若手机200确定待分屏应用的界面尺寸调节能力为尺寸不可调节,手机200执行步骤S617;若手机200确定待分屏应用的界面尺寸调节能力为尺寸可调节,手机200执行步骤S616。
S616,手机200在分屏窗口中,以非满铺分屏窗口的尺寸,以及以待分屏应用支持的与当前屏幕方向相同的界面布局方向,显示待分屏应用的应用界面。
S617,手机200在分屏窗口中,以满铺分屏窗口的尺寸,以及以待分屏应用支持的界面布局方向,显示待分屏应用的应用界面。
S618,手机200不对该应用进行分屏处理,即不再分屏窗口中显示该待分屏应用的应用界面。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
另外,对应于前述图17,手机200在执行步骤S314之前也可以先确定应用是为预设应用,并根据结果进行后续处理。以及,对应于前述图18,手机200在执行步骤S414之前也可以先确定应用是为预设应用,并根据结果进行后续处理,该过程可以参见图20相关步骤,此处不再赘述。
进一步地,下面结合图21,对手机200显示应用界面的过程进行进一步说明。
在本申请的一种实现方式中,手机200显示应用界面主要由手机200中的桌面启动器、活动管理服务、窗口管理服务、功能栏和动画管理等实现。其中,请参见图21,桌面启动器包括活动任务管理器服务(Activity Task Manager Service)模块,活动管理服务包括活动启动(Activity Starter)模块和活动记录(Activity Record)模块,窗口管理服务包括任务((Task))模块和窗口管理服务模块。活动启动模块和任务模块之间可以通过根窗口容器(Root Window Container)进行交互。
则,该方法的实现过程包括以下步骤:
S701,活动任务管理器服务模块根据用户打开应用的操作,或者用户对界面的分屏操作等操作(该分屏操作可以根据用户对前述功能栏的操作实现),确定需要以用户身份启动对应的活动(即可以理解为Start Activity As User),则活动任务管理器服务模块执行S702。
S702,活动任务管理器服务模块执行(excute)调用活动启动(Activity Starter)模块的操作。
S703,活动启动模块根据活动任务管理器服务模块的调用,执行调用对应的请求,检查内部当前已经启动的活动和任务,以确定是否已经存在当前活动对应的任务(即可以理解为Excute Request start Activity Unchecked start Activity Inner)。
若活动启动模块确定当前不存在当前活动对应的根任务(例如用户操作是打开新应用的操作,则确定当前不存在该活动对应的根任务,或者当前已经启动的任务中不存在与该当前活动相同的例如应用标识信息的任务),则执行S704。若活动启动模块确定当前存在该当前活动对应的根任务(例如用户操作是分屏操作,且该应用已经启动,则确定当前存在该活动对应的根任务,或者当前以启动的任务中存在与该当前活动相同的例如应用标识信息的任务),则执行S708。
S704,活动启动模块确定需要获取当前活动对应的根任务(即可以理解为Computer target Task get Launch Root Task)。
S705,活动启动模块向根窗口容器发送启动根任务(即可以理解为get Launch Root Task)的指令。
S706,根窗口容器根据活动启动模块发送来的指令,确定需要获取或者创建当前活动对应的根任务 (即可以理解为get Or Create Root Task)。
S707,根窗口容器向任务模块发送创建新任务的指令,以使任务模块创建新任务,并且将该当前活动挂在到该新的任务。
S708,活动启动模块向任务模块发送指令以将该活动挂在到对应的已有任务。
将活动挂在到对应的任务,指的是将活动的对应的标识信息与对应的任务的标识信息关联起来,例如将任务的标识信息作为父节点,将活动的标识信息添加至任务的标识信息下,作为其子节点,从而将二者关联起来。
S709,任务模块如果确定新活动是用户选择进入分屏的活动,则确定需要对窗口模式(Window Mode)进行相应的变化,即需要设置新的窗口模式。
窗口模式包括全屏(full)、分屏(split)和悬浮(freeform)三种,可以根据预存的窗口模式配置文件确定,并且还可以确定对应的容器大小等信息。
S710,任务模块的任务非配置项改变(即Task Unconfiguration changed),即当窗口模式发生变化时,任务模块确定需要处理此时的任务的配置(configuration)中的容器大小(即分屏窗口的大小)以及计算出应用界面在分屏窗口中的具体的位置坐标,并调用活动记录模块。
S711,活动记录模块的非配置项改变,其识别到活动的配置发生变化。
S712,活动记录模块确定需要解决对应于配置的应用界面显示(即可以理解为Resolved Override Configuration)。
S713,活动记录模块调用多窗口管理器(Multi Window Manager)中的窗口管理服务中的窗口管理服务模块,以使窗口管理服务模块执行以下步骤。
S801,窗口管理服务模块确定分屏模式,并且确定分屏线的位置,通过分屏线更新当前分屏模式对应的屏幕分割边界,例如上下分割边界,即更新特殊的上下分割边界。
S802,窗口管理服务模块确定需要确定当前屏幕方向与应用支持的界面布局方向是否匹配,即是否相同,或者是否一致。
S803,窗口管理服务模块获取屏幕方向。
屏幕方向包括手机200竖屏方向(即未旋转时的原方向或者设置的物理方向)和横屏方向(例如将手机200在原方向或者设置的物理方向的基础上,旋转90度或者旋转270度的方向等)。
S804,窗口管理服务模块确定应用支持的界面布局方向。
窗口管理服务模块例如可以从第三方应用提供的xml文件中获取该第三方应用声明的界面布局方向。
S805,窗口管理服务模块确定当前屏幕方向与应用支持的界面布局方向是否一致。若否,窗口管理服务模块执行步骤S806。若是,窗口管理服务模块执行步骤S808,
S806,窗口管理服务模块读取相应的预设白名单,确定该应用是否属于白名单中的预设应用,即是否在白名单中。若应用在白名单中,窗口管理服务模块执行步骤S807。若不在白名单中,窗口管理服务模块执行步骤S810。
S807,窗口管理服务模块例如以兼容模式显示应用界面。
S808,窗口管理服务模块确定应用在分屏窗口中的显示范围,即确定相应的显示位置。
S809,窗口管理服务模块调用任务模块,以使任务模块根据确定的显示范围信息(即显示位置信息),执行显示应用界面相关的操作。
S810,窗口管理服务模块不执行分屏操作,并且使得手机100的显示屏显示如前述图11中所示的提示信息,提示当前应用不支持分屏。
另外,该方法还包括S901,即任务模块根据显示位置信息(即显示范围(bounds)信息),执行设置显示范围等显示应用界面相关的操作。其中,任务模块可以根据预设的容器大小(例如容器的对角线坐标等位置信息)的配置文件确定对应的容器大小,并且可以根据应用界面的显示范围在对应的容器中显示应用界面。并且,分屏显示过程中的动效可以由前述的动效服务实现,其实现过程可以参见当前实现方式,此处不再赘述。
如此,手机200可以方便地确定在分屏窗口中以何种显示方式显示待分屏应用的应用界面,并且根 据该显示方式显示应用界面,以满足正常显示应用界面的需求,保证用户的使用需求,从而有效地提升了用户体验。
进一步地,本实现方式中,对于步骤S808,窗口管理服务模块确定应用在分屏窗口中的显示范围,可以是手机200例如可以从应用的应用包中的声明文件中,获取应用支持的界面布局方向、界面尺寸调节能力等信息。并且,手机200例如可以从应用的应用包中的声明文件中,获取预设的应用以非满铺分屏窗口的尺寸显示时的显示尺寸。或者,手机200也可以通过预设的应用白名单,确定应用的显示尺寸。
该显示尺寸可以是前述的第一尺寸、第二尺寸和第三尺寸中的任意一种,第一尺寸为将应用的应用界面按照预设比例缩小后的尺寸,第二尺寸为对应于第一尺寸宽高比为4:3的尺寸,第三尺寸为对应于第一尺寸宽高比为16:9的尺寸。该第一尺寸、第二尺寸、第三尺寸和预设比例,皆可以根据需要具体设置。
下面对第一尺寸、第二尺寸、第三尺寸和预设比例的设置进行实例性说明。
请参见图22A,折叠屏手机在横屏状态下,从全屏状态进入分屏状态,并且进入兼容模式,其中,折叠屏手机在全屏状态下应用A的界面大小为:高为x,宽为y。则在分屏状态下,以非满铺分屏窗口的尺寸显示的应用A的界面大小为:
若以0:0尺寸显示,高=(x-dividerbar)/2,宽=(x-dividerbar)*(x-dividerbar)/(4*y)。
若以4:3尺寸显示,高=(x-dividerbar)/2,宽=(x-dividerbar)/2*3/4。
若以16:9尺寸显示,高=(x-dividerbar)/2,宽=(x-dividerbar)/2*9/16。
其中,x的取值例如可以是1900~2000mm,例如可以是1984mm;y的取值例如可以是2000~2500mm,例如可以是2272mm。
另外,dividerbar为分屏线的宽度,其取值例如可以是10~15mm,例如可以是12mm。
当然,x、y和dividerbar的值也可以是其他任意值,其可以根据需要设置。
后续,手机200可以根据任务的容器位置(即分屏窗口位置),将应用的应用界面在对应的容器中居中显示。
请参见图22B,手机200在竖屏状态下,从全屏状态进入分屏状态,并且进入兼容模式,其中,手机100在全屏状态下应用A的界面大小为:高为x,宽为y。则在分屏状态下,以非满铺分屏窗口的尺寸显示的应用A的界面大小为:
若以0:0尺寸显示,宽=(y-dividerbar)/2,高=(y-dividerbar)*(y-dividerbar)/(4*x)。
若以4:3尺寸显示,宽=(y-dividerbar)/2,高=(y-dividerbar)/2*3/4。
若以16:9尺寸显示,宽=(y-dividerbar)/2,高=(y-dividerbar)/2*9/16。
其中,x的取值例如2000~2500mm,例如可以是2272mm;可以是y的取值例如可以是1900~2000mm,例如可以是1984mm。
另外,dividerbar为分屏线的宽度,其取值例如可以是10~15mm,例如可以是12mm。
当然,x、y和dividerbar的值也可以是其他任意值,其可以根据需要设置。
后续,手机200可以根据任务的容器位置(即分屏窗口位置),将应用的应用界面在对应的容器中居中显示。
如此,在兼容模式下,手机200可以根据前述三种不同的显示尺寸(即大小显示模式)来显示对应的应用界面,可以满足用户对应用的不同使用需求。
当然,在本申请的另一些实现方式中,也可以通过其他的方式确定应用界面在分屏窗口中的显示尺寸。
另外,本实现方式中,手机200也可以根据手机200中的陀螺仪传感器180B检测到的手机200的运动信息,确定手机200的屏幕方向。
另外,前述用于确定应用是否为预设应用的白名单,可以存储在手机200中的窗口管理服务对应的存储区内,也可以存储至其他存储区内,其可以根据需要设置。
以及,前述应用A的界面大小中的高和宽(即x,y),可以根据预存的显示屏的尺寸和屏幕方向确 定。以及,dividerbar的尺寸也可以根据预设的分屏模式下的dividerbar配置文件确定。
在本申请的另一些实现方式中,本申请提供的电子设备也可以是车载设备、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备(例如包括:智能手表、智能手环、计步器等)、个人数字助理、便携式媒体播放器、导航设备、视频游戏设备、机顶盒、电视、音箱、虚拟现实和/或增强现实设备、物联网设备、工业控制设备、流媒体客户端设备、电子书、阅读设备、POS机以及其他设备。
本申请实现方式提供的应用界面显示方法,可以应用于家庭、办公、社交、运动健康、汽车等多种应用场景中的电子设备中。
下面对本申请实现方式提供的电子设备的另一些可能的结构进行说明。
请参见图23,图23所示为根据本申请的一种实现方式提供的电子设备900的结构示意图。电子设备900可以包括耦合到控制器中枢904的一个或多个处理器901,处理器901包括GPU。对于至少一个实现方式,控制器中枢904经由诸如前端总线(Front Side Bus,FSB)之类的多分支总线、诸如快速通道互连(QuickPath Interconnect,QPI)之类的点对点接口、或者类似的连接与处理器901进行通信。处理器901执行控制一般类型的数据处理操作的指令。在一实现方式中,控制器中枢904包括,但不局限于,图形存储器控制器中枢(Graphics Memory controller hub,GMCH)(图中未示出)和输入/输出中枢(IOH)(其可以在分开的芯片上)(图中未示出),其中GMCH包括存储器和图形控制器并与IOH耦合。
电子设备900还可包括耦合到控制器中枢904的协处理器906和存储器902。或者,存储器902和GMCH中的一个或两者可以被集成在处理器901内(如本申请中所描述的),存储器902和协处理器906直接耦合到处理器901以及控制器中枢904,控制器中枢904与IOH处于单个芯片中。
存储器902可以是例如动态随机存取存储器(Dynamic Random Access Memory,DRAM)、相变存储器(Phase Change Memory,PCM)或这两者的组合。
在一个实现方式中,协处理器906是专用处理器,诸如例如高吞吐量众核(Many Integrated Core,MIC)处理器、网络或通信处理器、压缩引擎、图形处理器、通用图形处理器(General Purpose Graphics Processing Units,GPGPU)等GPU、或嵌入式处理器等等。协处理器906的任选性质用虚线表示在图23中。
在一个实现方式中,电子设备900可以进一步包括网络接口(Network Interface Card,NIC)903。网络接口903可以包括收发器,用于为电子设备900提供无线电接口,进而与任何其他合适的设备(如前端模块,天线等)进行通信。在各种实现方式中,网络接口903可以与电子设备900的其他组件集成。网络接口903可以实现上述实现方式中的通信单元的功能。
电子设备900可以进一步包括输入/输出(I/O)设备905。输入/输出(I/O)设备905可以包括:用户界面,该设计使得用户能够与电子设备900进行交互;外围组件接口的设计使得外围组件也能够与电子设备900交互;和/或传感器设计用于确定与电子设备900相关的环境条件和/或路径信息。
值得注意的是,图23仅是示例性的。即虽然图23中示出了电子设备900包括处理器901、控制器中枢904、存储器902等多个器件,但是,在实际的应用中,使用本申请各方法的设备,可以仅包括电子设备900各器件中的一部分器件,例如,可以仅包含处理器901和NIC903。图23中可选器件的性质用虚线示出。
在该电子设备900的存储器中可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性计算机可读介质。计算机可读存储介质中存储有指令,具体而言,存储有该指令的暂时和永久副本。
本申请中,该电子设备900具体可以是手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)或台式电脑等终端设备。该电子设备的存储器中存储的指令可以包括:由处理器中的至少一个单元执行时导致电子设备实施如前述提到的应用界面显示方法的指令。
请参见图24,图24所示为根据本申请的一种实现方式提供的SoC(System on Chip,片上系统)1000的结构示意图。在图24中,相似的部件具有同样的附图标记。另外,虚线框是更先进的SoC 1000的可选特征。该SoC 1000可以被用于根据本申请的任一电子设备,根据其所在的设备不同以及其内所存储的指令的不同,可以实现相应的功能。
在图24中,SoC1000包括:互连单元1002,其被耦合至处理器1001;系统代理单元1006;总线控制器单元1005;集成存储器控制器单元1003;一组或一个或多个协处理器1007,其可包括集成图形逻辑、图像处理器、音频处理器和视频处理器;静态随机存取存储器(Static Random-Access Memory,SRAM)单元1008;直接存储器存取(Direct Memory Access,DMA)单元1004。在一个实现方式中,协处理器1007包括专用处理器,诸如例如网络或通信处理器、压缩引擎、GPU、高吞吐量MIC处理器、或嵌入式处理器等等。
SRAM单元1008中可以包括用于存储数据和/或指令的一个或多个计算机可读介质。计算机可读存储介质中可以存储有指令,具体而言,存储有该指令的暂时和永久副本。该指令可以包括:由处理器1001中的至少一个单元执行时导致电子设备实施如前述所提到的应用界面显示方法的指令。
前述术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实现方式中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实现方式中都需要这样的特征,并且在一些实现方式中,可以不包括这些特征或者可以与其他特征组合。
虽然通过参照本申请的某些实现方式,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,以上内容是结合具体的实现方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限于这些说明。本领域技术人员可以在形式上和细节上对其作各种改变,包括做出若干简单推演或替换,而不偏离本申请的精神和范围。

Claims (23)

  1. 一种应用界面显示方法,其特征在于,应用于电子设备,所述方法包括:
    显示第一界面,所述第一界面包括全屏显示的第一应用的第一应用界面;
    接收对应于所述第一界面的第一操作,所述第一操作包括对所述电子设备的屏幕进行分屏的操作;
    响应于所述第一操作,显示第二界面,所述第二界面包括以分屏方式显示的第一分屏窗口和第二分屏窗口;以及
    根据待显示应用声明的界面布局方向确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,并且根据所述显示方式在对应的分屏窗口中显示所述待显示应用的应用界面,所述待显示应用包括所述第一应用和第二应用,所述显示方式包括以铺满分屏窗口的方式显示和以非铺满分屏窗口的方式显示。
  2. 根据权利要求1所述的应用界面显示方法,其特征在于,根据待显示应用声明的界面布局方向确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用声明的界面布局方向包括所述电子设备的当前屏幕方向,所述待显示应用的应用界面的显示方式为以铺满分屏窗口的方式显示;
    若所述待显示应用声明的界面布局方向不包括所述电子设备的当前屏幕方向,根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式。
  3. 根据权利要求2所述的应用界面显示方法,其特征在于,根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸可调节,所述待显示应用的应用界面的显示方式为以铺满分屏窗口的方式显示;
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸不可调节,所述待显示应用的应用界面的显示方式为以非铺满分屏窗口的方式显示,或者根据所述待显示应用是否为预设应用确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式。
  4. 根据权利要求3所述的应用界面显示方法,其特征在于,根据所述待显示应用是否为预设应用确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用是所述预设应用,所述待显示应用的应用界面的显示方式为以非铺满分屏窗口的方式显示;
    若所述待显示应用不是所述预设应用,不执行对应于所述待显示应用的分屏操作。
  5. 根据权利要求1所述的应用界面显示方法,其特征在于,根据待显示应用声明的界面布局方向确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用声明的界面布局方向包括所述电子设备的当前屏幕方向,所述待显示应用的应用界面的显示方式为以铺满分屏窗口的方式显示;
    若所述待显示应用声明的界面布局方向不包括所述电子设备的当前屏幕方向,根据所述待显示应用是否为预设应用确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式。
  6. 根据权利要求5所述的应用界面显示方法,其特征在于,根据所述待显示应用是否为预设应用确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用是所述预设应用,根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式;
    若所述待显示应用不是所述预设应用,不执行对应于所述待显示应用的分屏操作。
  7. 根据权利要求6所述的应用界面显示方法,其特征在于,根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸可调节,所述待显示应用的应用界面的显示方式为以铺满分屏窗口的方式显示;
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸不可调节,所述待显示应用的应用界面的显示方式为以非铺满分屏窗口的方式显示。
  8. 根据权利要求1所述的应用界面显示方法,其特征在于,所述方法还包括:
    根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式。
  9. 根据权利要求8所述的应用界面显示方法,其特征在于,根据所述待显示应用声明的界面尺寸调节能力确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,包括:
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸可调节,所述待显示应用的应用界面的显示方式为以铺满分屏窗口的方式显示;
    若所述待显示应用声明的界面尺寸调节能力为界面尺寸不可调节,所述待显示应用的应用界面的显示方式为以非铺满分屏窗口的方式显示,或者根据所述待显示应用是否为预设应用确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,或者根据所述待显示应用声明的界面布局方向确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式。
  10. 根据权利要求1-9任意一项所述的应用界面显示方法,其特征在于,所述方法还包括:
    在所述电子设备的屏幕处于分屏状态的情况下,接收第二操作,所述第二操作为旋转所述电子设备的屏幕方向的操作,或者所述第二操作为改变所述电子设备的折叠屏的状态的操作,所述折叠屏的状态包括展开状态和折叠状态;
    响应于所述第二操作,显示第三界面,所述第三界面包括以分屏方式显示的第三分屏窗口和第四分屏窗口;以及
    根据所述待显示应用声明的界面布局方向确定所述待显示应用的应用界面在对应的分屏窗口中的显示方式,并且根据所述显示方式在对应的分屏窗口中显示所述待显示应用的应用界面,所述待显示应用包括所述第一应用和所述第二应用,所述显示方式包括以铺满分屏窗口的方式显示和以非铺满分屏窗口的方式显示。
  11. 根据权利要求1-10任意一项所述的应用界面显示方法,其特征在于,在分屏窗口中以铺满分屏窗口的方式显示的所述待显示应用的应用界面,在所述电子设备的第一屏幕方向上,所述待显示应用的应用界面的尺寸等于对应的分屏窗口的尺寸,在所述电子设备的第二屏幕方向上,所述待显示应用的应用界面的尺寸等于对应的分屏窗口的尺寸,所述第一屏幕方向是所述电子设备的当前屏幕方向,所述第二屏幕方向是所述第一屏幕方向旋转90度或者旋转270度的方向。
  12. 根据权利要求1-11任意一项所述的应用界面显示方法,其特征在于,在分屏窗口中以非铺满分屏窗口的方式显示的所述待显示应用的应用界面,在所述电子设备的第一屏幕方向上,所述待显示应用的应用界面的尺寸小于对应的分屏窗口的尺寸,在所述电子设备的第二屏幕方向上,所述待显示应用的应用界面的尺寸等于对应的分屏窗口的尺寸,所述第一屏幕方向是所述电子设备的当前屏幕方向,所述第二屏幕方向是所述第一屏幕方向旋转90度或者旋转270度的方向。
  13. 根据权利要求1-12任意一项所述的应用界面显示方法,其特征在于,在分屏窗口中以非铺满分屏窗口的方式显示所述待显示应用的应用界面,包括:
    在分屏窗口中以第一尺寸显示所述待显示应用的应用界面,所述第一尺寸为所述待显示应用的应用界面的原始界面尺寸按照第一预设比例调整后的尺寸;或者
    在分屏窗口中以第二尺寸显示所述待显示应用的应用界面,所述第二尺寸为对应于所述第一尺寸的宽高比为第一宽高比的尺寸;或者
    在分屏窗口中以第三尺寸显示所述待显示应用的应用界面,所述第三尺寸为对应于所述第一尺寸的宽高比第二宽高比的尺寸。
  14. 根据权利要求13所述的应用界面显示方法,其特征在于,所述第一宽高比为4:3,所述第二宽高比为16:9。
  15. 根据权利要求1-14任意一项所述的应用界面显示方法,其特征在于,以铺满分屏窗口的方式显示应用界面的分屏窗口中显示有第一功能栏。
  16. 根据权利要求15所述的应用界面显示方法,其特征在于,所述方法还包括:
    接收用户对所述第一功能栏的操作;
    响应于所述用户对所述第一功能栏的操作,显示第二功能栏。
  17. 根据权利要求1-16任意一项所述的应用界面显示方法,其特征在于,以非铺满分屏窗口的方式显示应用界面的分屏窗口中不显示第一功能栏。
  18. 根据权利要求1-17任意一项所述的应用界面显示方法,其特征在于,所述第二应用为对应于所述第一操作,用户选择的与所述第一应用不同的待分屏应用。
  19. 根据权利要求3-7任意一项所述的应用界面显示方法,其特征在于,所述预设应用为预设的白名单中的应用。
  20. 根据权利要求2-10任意一项所述的应用界面显示方法,其特征在于,所述方法还包括,在以下任意一种情况下,确定所述待显示应用声明的界面布局方向包括所述电子设备的当前屏幕方向:
    所述待显示应用声明的界面布局方向包括第一界面布局方向,所述电子设备的当前屏幕方向为第一屏幕方向,所述第一界面布局方向与所述第一屏幕方向相同;
    所述待显示应用声明的界面布局方向包括第二界面布局方向,所述电子设备的当前屏幕方向为第二屏幕方向,所述第二界面布局方向和所述第二屏幕方向相同。
  21. 根据权利要求20所述的应用界面显示方法,其特征在于,所述第一界面布局方向为竖屏布局方向,所述第二界面布局方向为横屏布局方向,所述第一屏幕方向为竖屏方向,所述第二屏幕方向为横屏方向。
  22. 一种电子设备,其特征在于,包括:
    存储器,用于存储计算机程序,所述计算机程序包括程序指令;
    处理器,用于执行所述程序指令,以使所述电子设备执行如权利要求1-21任意一项所述的应用界面显示方法。
  23. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被电子设备运行以使所述电子设备执行如权利要求1-21任意一项所述的应用界面显示方法。
PCT/CN2023/113524 2022-11-21 2023-08-17 应用界面显示方法、电子设备和存储介质 WO2024109190A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211462499.9 2022-11-21
CN202211462499.9A CN118057276A (zh) 2022-11-21 2022-11-21 应用界面显示方法、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2024109190A1 true WO2024109190A1 (zh) 2024-05-30

Family

ID=87201358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/113524 WO2024109190A1 (zh) 2022-11-21 2023-08-17 应用界面显示方法、电子设备和存储介质

Country Status (2)

Country Link
CN (2) CN116466849A (zh)
WO (1) WO2024109190A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116466849A (zh) * 2022-11-21 2023-07-21 荣耀终端有限公司 应用界面显示方法、电子设备和存储介质
CN117111813B (zh) * 2023-10-19 2024-02-20 深圳市慧为智能科技股份有限公司 一种显示适配方法、装置及电子设备、存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006802A1 (zh) * 2016-07-04 2018-01-11 北京金山安全软件有限公司 一种视频播放方法、装置及电子设备
WO2020118490A1 (zh) * 2018-12-10 2020-06-18 华为技术有限公司 自动分屏的方法、图形用户界面及电子设备
CN113687743A (zh) * 2020-05-18 2021-11-23 Oppo广东移动通信有限公司 显示控制方法、装置、存储介质及电子设备
CN114995693A (zh) * 2021-12-31 2022-09-02 荣耀终端有限公司 显示屏窗口切换方法及电子设备
CN116466849A (zh) * 2022-11-21 2023-07-21 荣耀终端有限公司 应用界面显示方法、电子设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006802A1 (zh) * 2016-07-04 2018-01-11 北京金山安全软件有限公司 一种视频播放方法、装置及电子设备
WO2020118490A1 (zh) * 2018-12-10 2020-06-18 华为技术有限公司 自动分屏的方法、图形用户界面及电子设备
CN113687743A (zh) * 2020-05-18 2021-11-23 Oppo广东移动通信有限公司 显示控制方法、装置、存储介质及电子设备
CN114995693A (zh) * 2021-12-31 2022-09-02 荣耀终端有限公司 显示屏窗口切换方法及电子设备
CN116466849A (zh) * 2022-11-21 2023-07-21 荣耀终端有限公司 应用界面显示方法、电子设备和存储介质

Also Published As

Publication number Publication date
CN118057276A (zh) 2024-05-21
CN116466849A (zh) 2023-07-21

Similar Documents

Publication Publication Date Title
WO2024109190A1 (zh) 应用界面显示方法、电子设备和存储介质
WO2021027747A1 (zh) 一种界面显示方法及设备
CN110839096B (zh) 一种具有折叠屏的设备的触控方法与折叠屏设备
CN109977333B (zh) 网页显示方法、装置、计算机设备及存储介质
CN111966252A (zh) 应用窗口显示方法和电子设备
WO2020038169A1 (zh) 图标显示方法、装置、终端及存储介质
WO2021043262A1 (zh) 一种具有折叠屏的设备的显示方法及折叠屏设备
CN116501210B (zh) 一种显示方法、电子设备及存储介质
CN111885265B (zh) 屏幕界面调整方法及相关装置
WO2021047251A1 (zh) 显示方法及电子设备
WO2023093776A1 (zh) 界面生成方法及电子设备
EP4170476A1 (en) Translation method and electronic device
CN115562771B (zh) 应用窗口管理方法、电子设备和计算机可读取存储介质
WO2024114051A1 (zh) 显示方法与装置、电子设备
CN115640083A (zh) 一种可提升动效性能的屏幕刷新方法及设备
WO2023066165A1 (zh) 动画效果显示方法及电子设备
WO2023093779A1 (zh) 界面生成方法及电子设备
CN114461312B (zh) 显示的方法、电子设备及存储介质
CN115543276A (zh) 一种用于实现软件开发的方法、系统以及电子设备
EP4351116A1 (en) Window interaction method and electronic device
WO2023131313A1 (zh) 窗口交互方法和电子设备
WO2013185664A1 (zh) 一种操作方法及装置
WO2024066976A1 (zh) 控件显示方法及电子设备
WO2023066177A1 (zh) 动画效果显示方法及电子设备
WO2024078114A1 (zh) 窗口显示方法、电子设备及计算机可读存储介质