WO2023103902A1 - 一种分屏显示方法及电子设备 - Google Patents

一种分屏显示方法及电子设备 Download PDF

Info

Publication number
WO2023103902A1
WO2023103902A1 PCT/CN2022/136165 CN2022136165W WO2023103902A1 WO 2023103902 A1 WO2023103902 A1 WO 2023103902A1 CN 2022136165 W CN2022136165 W CN 2022136165W WO 2023103902 A1 WO2023103902 A1 WO 2023103902A1
Authority
WO
WIPO (PCT)
Prior art keywords
split
screen
applications
electronic device
application
Prior art date
Application number
PCT/CN2022/136165
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 WO2023103902A1 publication Critical patent/WO2023103902A1/zh

Links

Images

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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

Definitions

  • the embodiments of the present application relate to the technical field of terminals, and in particular, to a split-screen display method and an electronic device.
  • electronic devices can support multi-task split-screen technology and simultaneously display interfaces of multiple tasks.
  • the user can chat with friends through the chat application while watching the video through the video application.
  • multi-task split-screen display in order to make the multi-task interface split-screen display in a layout conforming to the user's habits, the user needs to manually adjust multiple times, and the user operation is relatively cumbersome.
  • the more tasks on the split screen the more cumbersome the user operations will be.
  • the electronic device displays the interface 10 shown in FIG. 1 in response to receiving an operation of opening application 1 , application 2 and application 3 by the user.
  • the interface 10 includes the window of application 1, the window of application 2 and the window of application 3, wherein the layout of the window of application 1, the window of application 2 and the window of application 3 on the display screen is messy and mutually occluded .
  • the user adjusts the position of the application window, the height and/or width of the application window to realize the split-screen effect on the interface 20 shown in FIG. 1 .
  • the present application provides a split-screen display method and an electronic device, which can realize multi-task automatic split-screen layout and reduce the number of times of manual split-screen by the user.
  • a split-screen display method includes: when the electronic device is running N applications (where N ⁇ 2, N is an integer), acquiring target split-screen templates corresponding to the N applications, wherein the target split
  • the screen template includes N split-screen areas, the N split-screen areas are of different sizes, and the N split-screen areas are arranged according to the preset arrangement rules of the N applications. Further, based on the preset arrangement rules of the N applications, the electronic device respectively displays the N applications in the N split-screen areas of the target split-screen template.
  • the electronic device can obtain existing target split-screen templates corresponding to the preset arrangement rules of the multiple applications when running multiple applications, so as to pass multiple
  • the split-screen area displays the above multiple applications, realizing an intelligent and automated multi-task split-screen experience.
  • the above-mentioned preset arrangement rules may be used to characterize the user's usage habits.
  • the aforementioned preset arrangement rules may be determined by the electronic device according to user adjustments to split-screen areas and/or split-screen applications, and/or other relevant information during historical multi-tasking split-screen use.
  • the electronic device can record the user's usage habits after the user uses the electronic device to perform multi-task split screen for a period of time, for example, according to the user's split-screen operation records, multiple split-screen samples (that is, historical split-screen samples) are obtained, and the split-screen A screen sample is associated with the task it refers to. Afterwards, when the user has a requirement for multi-task split-screen display, the preset arrangement rules are determined according to the split-screen samples associated with the task combination, and then the multi-task split-screen is performed.
  • This solution can realize multi-task automatic split-screen layout and reduce the number of manual split-screen by users.
  • the display position and size of the multitasking on the display screen conform to the habits of the user, thereby improving the multitasking split-screen experience of the user.
  • the electronic device may acquire the split-screen samples associated with the above N applications, so as to determine the preset arrangement rules of the N applications.
  • the above-mentioned electronic device running N applications includes: in response to receiving an operation of opening the first application combination by the user, the electronic device runs N applications; wherein the first application combination includes the N applications application.
  • This application supports multiple forms of multi-tasking startup methods, for example, a user can start multiple applications in the form of a combination of applications opened with one key.
  • the above-mentioned electronic device running the N applications includes: the electronic device receives an operation of opening the above-mentioned N applications respectively by the user, and runs the N applications.
  • This application supports multiple forms of multi-tasking startup methods, for example, a user can start multiple applications by opening the applications one by one.
  • the electronic device obtaining the target split-screen templates corresponding to the N applications includes: the electronic device receives an operation triggered by the user to display the N applications on a split screen, and obtains the target split-screen templates corresponding to the N applications.
  • This application supports multiple forms of multi-task split-screen triggering methods, for example, the user can manually trigger multi-task split-screen.
  • the electronic device acquiring the target split-screen templates corresponding to the N applications includes: when the electronic device is running the N applications, automatically acquiring the target split-screen templates corresponding to the N applications.
  • the present application supports multiple forms of multi-task split-screen triggering methods. For example, an electronic device can automatically trigger multi-task split-screen when running multiple applications at the same time.
  • the electronic device acquiring the target split-screen templates corresponding to the N applications includes: the electronic device receives the smart recommendation, and acquires the target split-screen templates corresponding to the N applications.
  • This application supports multiple forms of multi-task split-screen triggering methods, for example, electronic devices can accept smart recommendations to trigger multi-task split-screen.
  • the smart recommendation is the recommendation of split-screen related applications.
  • the above-mentioned electronic device acquires target split-screen templates corresponding to N applications, including: the electronic device acquires historical split-screen samples; the electronic device determines preset arrangement rules for N applications according to the historical split-screen samples; The electronic device obtains target split-screen templates corresponding to the N applications according to the preset arrangement rules of the N applications.
  • the electronic device may determine the user's usage habits based on historical split screen samples, thereby determining the preset arrangement rules for N application split screens.
  • the historical split-screen samples (for example, historical split-screen adjustment records) in the process of using the electronic device for multi-application split-screen display by the user may reflect the usage habits of the user.
  • multi-task split-screen is performed according to the split-screen sample associated with the task combination.
  • This solution can realize multi-task automatic split-screen layout and reduce the number of manual split-screen by users.
  • the display position and size of the multitasking on the display screen conform to the habits of the user, thereby improving the multitasking split-screen experience of the user.
  • the above-mentioned historical split-screen samples include one or more of the following recorded by the electronic device when displaying M applications in historical split-screen: the identifiers of the M applications, the application category, user adjustments to M split-screen areas, operating frequencies of M applications, and input frequencies of M applications, M ⁇ 2, and M is an integer.
  • the M applications are exactly the same as the above N applications.
  • the M applications are different from at least one of the above N applications.
  • application i is different from application j, but the application types of application i and application j are the same, or the operation frequency and/or input frequency of application i and application j are the same.
  • the same means the same or the difference is within a certain range.
  • the above-mentioned N applications are the same as the above-mentioned M applications respectively, and the historical split-screen samples include the above-mentioned M applications (that is, the above-mentioned N applications) recorded by the electronic device when the historical split-screen displays the above-mentioned M applications.
  • N applications such as application A, application B, and application C
  • M applications such as application A, application B, and application C
  • the electronic device can directly determine The default arrangement rules for N applications, that is, application A in N applications is in the same area as application A in the historical split-screen samples, application B in the N applications is in the same area as application B in the historical split-screen samples, and N applications Application C in the application is in the same area as application C in the historical split-screen sample.
  • the application categories of the above N applications and the above M applications are respectively the same, and the historical split screen samples include the records of the M applications recorded by the electronic device when the historical split screen displays the above M applications.
  • the electronic device can determine the corresponding split-screen area according to the application categories of the N applications, for example, application A1 among the N applications The same area as application A2 in the historical split-screen sample, the same area as the application B1 in the N applications and the application B2 in the historical split-screen sample, and the same area as the application C2 in the N application and the historical split-screen sample .
  • the above-mentioned historical split-screen samples include the operation frequency and/or input frequency of the above-mentioned N applications recorded by the electronic device when the above-mentioned M applications are displayed on the historical split-screen and the user's response to the M split-screen areas. Adjust, and the operating frequencies and/or input frequencies of the above N applications are respectively consistent with those of the above M applications; the above electronic device determines the preset arrangement rules of the N applications according to the historical split screen samples: including: the electronic device according to the historical split screen The sample determines that the preset arrangement rule of the N applications is the same as the arrangement rule of the applications with the same operating frequency or input frequency after the user adjusted the M split-screen areas in the historical split-screen sample.
  • the electronic device can operate according to the operation frequency of the N applications Frequency and input frequency determine the corresponding split screen area, for example, the area where application A1 in N applications is the same as that of application A2 in historical split screen samples, the area where application B1 in N applications is located in the same area as application B2 in historical split screen samples, N
  • the application C1 in an application is located in the same area as the application C2 in the historical split-screen sample.
  • the above-mentioned historical split-screen samples include the operation frequency and/or input frequency of the above-mentioned M applications recorded when the electronic device is running the above-mentioned N applications; Screen templates, including: the electronic device obtains target split-screen templates corresponding to N applications according to the operating frequency and/or input frequency of the N applications, combined with the convenience of operation in different split-screen areas on the electronic device; wherein, the above-mentioned N applications Among them, applications with high operating frequency and/or high input frequency correspond to conveniently operated split-screen areas on the electronic device.
  • the above method further includes: when the electronic device correspondingly displays the above N applications in the above N split-screen areas, acquiring the application states of the N applications, and the application states are used to represent The activity situation of the current or preset time period is applied; the electronic device adjusts the preset arrangement rules of the N applications according to the application states of the N applications.
  • the above method further includes: during the process of displaying N applications through the N split screen areas, the electronic device updates the target split screen template according to one or more of the following: The adjustment of the split-screen areas, the scene information of the electronic device, the operating frequency of the above-mentioned N applications, and the input frequency of the above-mentioned N applications; wherein, the adjustment of the above-mentioned N split-screen areas by the user includes one or more of the following : The user increases or decreases the split-screen area, the user adjusts the position of at least one of the N split-screen areas, the user adjusts the size of at least one of the N split-screen areas, the user adjusts the N split-screen areas Adjustment of the application or application category corresponding to at least one split-screen area in the . Based on this method, the electronic device can continuously analyze and learn to obtain a split-screen template that is more suitable for the user's usage habits, so as to provide an application split-screen service that is more suitable for the user's usage habits
  • the target split-screen template is a preset initial template.
  • N applications are displayed in the N split-screen areas in the preset initial template to ensure the intelligence of the multi-tasking split screen ,automation.
  • an electronic device in a second aspect, includes: a processing unit, configured to run N applications (where N ⁇ 2, N is an integer), and acquire target split-screen templates corresponding to the N applications, wherein the target The split-screen template includes N split-screen areas, the N split-screen areas are of different sizes, and the N split-screen areas are arranged according to the preset arrangement rules of the N applications.
  • the display unit is configured to, based on the preset arrangement rules of the N applications, respectively display the above N applications in the target split-screen template, corresponding areas in the N split-screen areas.
  • the electronic device can obtain existing target split-screen templates corresponding to the preset arrangement rules of the multiple applications when running multiple applications, so as to pass multiple
  • the split-screen area displays the above multiple applications, realizing an intelligent and automated multi-task split-screen experience.
  • the above-mentioned preset arrangement rules may be used to characterize the user's usage habits.
  • the aforementioned preset arrangement rules may be determined by the electronic device according to user adjustments to split-screen areas and/or split-screen applications, and/or other relevant information during historical multi-tasking split-screen use.
  • the electronic device can record the user's usage habits after the user uses the electronic device to perform multi-task split screen for a period of time, for example, according to the user's split-screen operation records, multiple split-screen samples (that is, historical split-screen samples) are obtained, and the split-screen A screen sample is associated with the task it refers to. Afterwards, when the user has a requirement for multi-task split-screen display, the preset arrangement rule is determined according to the split-screen samples associated with the task combination, and then the multi-task split-screen is performed.
  • This solution can realize multi-task automatic split-screen layout and reduce the number of manual split-screen by users.
  • the display position and size of the multitasking on the display screen conform to the habits of the user, thereby improving the multitasking split-screen experience of the user.
  • the electronic device may further include: a split-screen recording unit, configured to associate the split-screen sample with a corresponding application combination.
  • a split-screen recording unit configured to associate the split-screen sample with a corresponding application combination.
  • one split-screen sample includes multiple split-screen templates of the same application combination.
  • the processing unit may be specifically configured to: acquire split-screen samples associated with N applications, and then determine preset arrangement rules for the N applications.
  • the above-mentioned processing unit running N applications includes: in response to receiving an operation of opening the first application combination by the user, the processing unit runs N applications; wherein the first application combination includes the N applications application.
  • This application supports multiple forms of multi-tasking startup methods, for example, a user can start multiple applications in the form of a combination of applications opened with one key.
  • the processing unit running the N applications includes: after receiving an operation of opening the N applications respectively by the user, the processing unit runs the N applications.
  • This application supports multiple forms of multi-tasking startup methods, for example, a user can start multiple applications by opening the applications one by one.
  • the above-mentioned processing unit acquiring the target split-screen templates corresponding to the N applications includes: after receiving the user's operation of triggering split-screen display of the N applications, the processing unit acquires the target split-screen templates corresponding to the N applications. screen template.
  • This application supports multiple forms of multi-task split-screen triggering methods, for example, the user can manually trigger multi-task split-screen.
  • the processing unit obtaining the target split-screen templates corresponding to the N applications includes: when the processing unit runs the N applications, automatically obtaining the target split-screen templates corresponding to the N applications.
  • the present application supports multiple forms of multi-task split-screen triggering methods. For example, an electronic device can automatically trigger multi-task split-screen when running multiple applications at the same time.
  • the above-mentioned processing unit acquiring the target split-screen templates corresponding to the N applications includes: the processing unit receives the smart recommendation, and acquires the target split-screen templates corresponding to the N applications.
  • This application supports multiple forms of multi-task split-screen triggering methods, for example, electronic devices can accept smart recommendations to trigger multi-task split-screen.
  • the smart recommendation is the recommendation of split-screen related applications.
  • the above processing unit is specifically configured to: obtain historical split screen samples; determine the preset arrangement rules of N applications according to the historical split screen samples; and obtain N applications according to the preset arrangement rules of the N applications.
  • the target split-screen template corresponding to each application.
  • the electronic device may determine the user's usage habits based on historical split screen samples, thereby determining the preset arrangement rules for N application split screens.
  • the historical split-screen samples (for example, historical split-screen adjustment records) in the process of using the electronic device for multi-application split-screen display by the user may reflect the usage habits of the user.
  • multi-task split-screen is performed according to the split-screen sample associated with the task combination.
  • This solution can realize multi-task automatic split-screen layout and reduce the number of manual split-screen by users.
  • the display position and size of the multitasking on the display screen conform to the habits of the user, thereby improving the multitasking split-screen experience of the user.
  • the above-mentioned historical split-screen samples include one or more of the following recorded by the electronic device when displaying M applications in historical split-screen: the identifiers of the M applications, the application category, user adjustments to M split-screen areas, operating frequencies of M applications, and input frequencies of M applications, M ⁇ 2, and M is an integer.
  • the M applications are exactly the same as the above N applications.
  • the M applications are different from at least one of the above N applications.
  • application i is different from application j, but the application types of application i and application j are the same, or the operation frequency and/or input frequency of application i and application j are the same.
  • the same means the same or the difference is within a certain range.
  • the above-mentioned N applications are the same as the above-mentioned M applications respectively, and the historical split-screen samples include the above-mentioned M applications (that is, the above-mentioned N applications) recorded by the electronic device when the historical split-screen displays the above-mentioned M applications.
  • the arrangement rule is the same as the arrangement rule of the M applications adjusted by the user for the M split-screen areas in the historical split-screen samples.
  • N applications such as application A, application B, and application C
  • M applications such as application A, application B, and application C
  • the electronic device can directly determine The default arrangement rules for N applications, that is, application A in N applications is in the same area as application A in the historical split-screen samples, application B in the N applications is in the same area as application B in the historical split-screen samples, and N applications Application C in the application is in the same area as application C in the historical split-screen sample.
  • the application categories of the above N applications and the above M applications are respectively the same, and the historical split screen samples include the records of the M applications recorded by the electronic device when the historical split screen displays the above M applications.
  • the electronic device can determine the corresponding split-screen area according to the application categories of the N applications, for example, application A1 among the N applications The same area as application A2 in the historical split-screen sample, the same area as the application B1 in the N applications and the application B2 in the historical split-screen sample, and the same area as the application C2 in the N application and the historical split-screen sample .
  • the above-mentioned historical split-screen samples include the operation frequency and/or input frequency of the above-mentioned N applications recorded by the electronic device when the above-mentioned M applications are displayed on the historical split-screen and the user's response to the M split-screen areas. Adjust, and the operating frequencies and/or input frequencies of the N applications and the M applications are respectively consistent; the processing unit determines the preset arrangement rules of the N applications according to the historical split-screen samples: including: the processing unit according to the historical split-screen The sample determines that the preset arrangement rule of the N applications is the same as the arrangement rule of the applications with the same operating frequency or input frequency after the user adjusted the M split-screen areas in the historical split-screen sample.
  • the electronic device can operate according to the operation frequency of the N applications Frequency and input frequency determine the corresponding split screen area, for example, the area where application A1 in N applications is the same as that of application A2 in historical split screen samples, the area where application B1 in N applications is located in the same area as application B2 in historical split screen samples, N
  • the application C1 in an application is located in the same area as the application C2 in the historical split-screen sample.
  • the above-mentioned historical split-screen samples include the operation frequency and/or input frequency of the above-mentioned M applications recorded when the electronic device is running the above-mentioned N applications;
  • the screen template includes: the processing unit obtains target split-screen templates corresponding to the N applications according to the operating frequency and/or input frequency of the N applications, combined with the convenience of operation in different split-screen areas on the electronic device; wherein, the above-mentioned N applications Among them, applications with high operating frequency and/or high input frequency correspond to conveniently operated split-screen areas on the electronic device.
  • the above processing unit is further configured to: acquire the application states of the N applications when correspondingly displaying the above N applications in the above N split-screen areas, and the application states are used to represent Apply the activity status of the current or preset time period; and, according to the application status of the N applications, adjust the preset arrangement rules of the N applications.
  • the processing unit is further configured to: during the process of displaying N applications through the N split-screen regions, update the target split-screen template according to one or more of the following: The adjustment of the split-screen areas, the scene information of the electronic device, the operating frequency of the above-mentioned N applications, and the input frequency of the above-mentioned N applications; wherein, the adjustment of the above-mentioned N split-screen areas by the user includes one or more of the following : The user increases or decreases the split-screen area, the user adjusts the position of at least one of the N split-screen areas, the user adjusts the size of at least one of the N split-screen areas, the user adjusts the N split-screen areas Adjustment of the application or application category corresponding to at least one split-screen area in the . Based on this method, the electronic device can continuously analyze and learn to obtain a split-screen template that is more suitable for the user's usage habits, so as to provide an application split-screen service that is more suitable for the user's
  • the target split-screen template is a preset initial template.
  • N applications are displayed in the N split-screen areas in the preset initial template to ensure the intelligence of the multi-tasking split screen ,automation.
  • an electronic device in a third aspect, includes: a memory for storing a computer program; a display for displaying an interface; a processor for executing the computer program, so that the electronic device implements any of the aspects of the first aspect.
  • a computer-readable storage medium is provided, and computer program code is stored on the computer-readable storage medium.
  • the processor implements any possible implementation of the first aspect. methods in methods.
  • a chip system includes a processor and a memory, and computer program code is stored in the memory; when the computer program code is executed by the processor, the processor implements any one of the first aspect. method in one possible implementation.
  • the system-on-a-chip may consist of chips, or may include chips and other discrete devices.
  • a computer program product includes computer instructions.
  • the computer instructions When the computer instructions are run on the computer, the computer is made to implement the method in any possible implementation manner of the first aspect.
  • Fig. 1 is a schematic diagram of a conventional multi-task split-screen display process
  • FIG. 2 is a schematic diagram of the form of an electronic device provided by the embodiment of the present application.
  • FIG. 3 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 4 is a flow chart of a split-screen display method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of split-screen related functional units in an electronic device provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an initial split-screen arrangement rule provided by an embodiment of the present application.
  • Fig. 7 is a schematic diagram of two kinds of initial split-screen arrangement rules provided by the embodiment of the present application.
  • FIG. 8 is a flow chart of determining a split-screen sample associated with a second application combination provided by an embodiment of the present application
  • FIG. 9 is a schematic diagram of two application window location schemes provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of an application window size adjustment provided by an embodiment of the present application.
  • Fig. 11 is a schematic diagram of two kinds of split-screen sample selection interfaces provided by the embodiment of the present application.
  • Fig. 12 is a schematic diagram of a hand-held hot zone in a user's hands-holding posture provided by an embodiment of the present application;
  • Fig. 13 is a schematic diagram of four kinds of area label settings provided by the embodiment of the present application.
  • FIG. 14 is a schematic diagram of an interface for selecting three application combinations provided by the embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, “plurality” means two or more.
  • An embodiment of the present application provides a split-screen display method, which is used in the process of split-screen displaying a multi-tasking interface by an electronic device.
  • the electronic device includes one or more display screens.
  • the electronic device displays the multitasking interface in split screens
  • the electronic device can display multiple task interfaces in multiple non-overlapping display areas (also called split screen areas) of the display screen.
  • the electronic device may, in response to the user's operation on the display area, display an interface triggered by the user's operation on the display area.
  • the user operation received by the electronic device in one display area will not trigger the change of display content in other display areas.
  • At least one task interface among the multiple task interfaces can be displayed on the display screen of the electronic device in the form of pop-up windows, bubbles, etc.
  • the task interface can be an application program (application, APP) interface, a small program interface, a light application (also called a quick application) interface, or other types of electronic device native function interfaces.
  • application application, APP
  • small program interface small program interface
  • light application also called a quick application
  • the task interface is not limited in this application.
  • different display areas of the display screen of the electronic device can display interfaces of different applications or applets.
  • the display screen of the electronic device can display the video playback interface and the Chat interface to facilitate users to communicate with friends while watching movies chat.
  • part or all of the above-mentioned multiple non-overlapping display areas may also display the interface of the same application or applet.
  • split-screen display on the display screen of an electronic device public account interface and chat interface for the convenience of users in reading At the same time as the official account, with friends chat.
  • an electronic device may include, but is not limited to, a personal computer (PC), a smart phone, a netbook, a tablet computer, an electronic whiteboard, a smart watch, a smart bracelet, a phone watch, a smart camera, a palmtop computer, a personal Digital assistant (personal digital assistant, PDA), portable multimedia player (portable multimedia player, PMP), augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) equipment, TV or human-computer interaction scene Somatosensory game consoles, etc.
  • PC personal computer
  • PDA personal digital assistant
  • PMP portable multimedia player
  • augmented reality augmented reality, AR
  • virtual reality virtual reality
  • VR virtual reality
  • a smartphone such as a dual-screen phone.
  • the dual-screen mobile phone includes, but is not limited to, a folding-screen mobile phone (as shown in (a) in FIG. 2 ) or a front and back screen mobile phone (as shown in (b) in FIG. 2 ).
  • the dual-screen mobile phone includes a first screen and a second screen.
  • the folding screen mobile phone includes an outward folding folding screen mobile phone (as shown in (a) in FIG. 2 ) and an internal folding folding screen mobile phone. This application does not limit the specific functions and structures of the electronic equipment.
  • FIG. 3 takes a smart phone as an example and shows a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • the electronic device can include a processor 310, a memory (comprising an external memory interface 320 and an internal memory 321), a universal serial bus (universal serial bus, USB) interface 330, a charge management module 340, and a power management module 341 , battery 342, antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, earphone jack 370D, sensor module 380, button 390, motor 391, indicator 392 , a camera 393, a display screen 394, and a subscriber identification module (subscriber identification module, SIM) card interface 395, etc.
  • SIM subscriber identification module
  • the sensor module 380 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown in the illustrations, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • Processor 310 may include one or more processing units.
  • the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a flight controller, Video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor
  • AP application processor
  • modem processor graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • flight controller Video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • a memory may also be provided in the processor 310 for storing instructions and data.
  • the memory in processor 310 is a cache memory.
  • the memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thereby improving the efficiency of the system.
  • processor 310 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the charging management module 340 is configured to receive charging input from the charger.
  • the power management module 341 is used for connecting the battery 342 , the charging management module 340 and the processor 310 .
  • the power management module 341 receives the input of the battery 342 and/or the charging management module 340, and supplies power for the processor 310, the internal memory 321, the display screen 394, the camera 393, and the wireless communication module 360, etc.
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 350 can provide wireless communication solutions including 2G/3G/4G/5G/6G applied to electronic devices.
  • the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 350 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 350 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 350 may be set in the processor 310 .
  • at least part of the functional modules of the mobile communication module 350 and at least part of the modules of the processor 310 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 370A, a receiver 370B, etc.), or displays an image or video through a display screen 394 .
  • the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent of the processor 310, and be set in the same device as the mobile communication module 350 or other functional modules.
  • the wireless communication module 360 can provide wireless local area networks (wireless local area networks, WLAN) (such as WiFi network), Bluetooth (Bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 360 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 360 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310 .
  • the wireless communication module 360 can also receive the signal to be sent from the processor 310 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device is coupled to the mobile communication module 350, and the antenna 2 is coupled to the wireless communication module 360, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), new wireless (new radio, NR ), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc.
  • GSM global system for mobile communications
  • general packet radio service general packet radio service
  • CDMA code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • LTE long term evolution
  • new wireless new radio,
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (satellite based augmentation systems, SBAS), etc.
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device realizes the display function through the GPU, the display screen 394 , and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 394 is used to display images, videos and the like.
  • Display 394 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device may include 1 or N display screens 394, where N is a positive integer greater than 1. As shown in (b) of FIG. 2 , the electronic device includes two display screens.
  • the electronic device can render multiple application interfaces through the GPU, and perform multi-task split-screen interface display including multiple application interfaces through the display screen 394 .
  • the electronic device can realize the shooting function through ISP, camera 293 , video codec, GPU, display screen 394 and application processor.
  • the external memory interface 320 can be used to connect an external memory card, such as a micro (storage card, SD) card, so as to expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. Such as saving music, video and other files in the external memory card.
  • the internal memory 321 may be used to store computer-executable program code, which includes instructions.
  • the internal memory 321 may include an area for storing programs and an area for storing data.
  • the program storage area can store an operating system, a program required by at least one function, and the like.
  • the storage data area can store data and the like created during use of the electronic device.
  • the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 310 executes various functional applications and data processing of the electronic device by executing instructions stored in the internal memory 321 and/or instructions stored in a memory provided in the processor.
  • the internal memory 321 may be used to cache file thumbnails corresponding to files in other devices.
  • the electronic device can realize the audio function through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, and the application processor. Such as music playback, recording, etc.
  • the audio module 370, the speaker 370A, the receiver 370B and the microphone 370C reference may be made to the introduction in conventional technologies.
  • the keys 390 include a power key, a volume key and the like.
  • the key 390 may be a mechanical key. It can also be a touch button.
  • the electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
  • the hardware modules included in the electronic device shown in FIG. 3 are only described as examples, and do not limit the specific structure of the electronic device.
  • the electronic device may also include components such as a keyboard and a mouse.
  • an embodiment of the present application provides a split-screen display method, which can run multiple, such as N (wherein N ⁇ 2, N is an integer) on an electronic device ) applications, determine the preset arrangement rules of the N applications, so as to obtain existing target split-screen templates corresponding to the multiple applications according to the preset arrangement rules of the N applications.
  • N wherein N ⁇ 2, N is an integer
  • the sizes of the N split-screen areas in the target split-screen template are different.
  • the N split-screen areas in the target split-screen template have a corresponding relationship with the application.
  • the N split-screen areas in the target split-screen template are arranged according to the preset arrangement rules of the above-mentioned N applications. Based on the target split-screen template, the above-mentioned multiple applications can be displayed on the above-mentioned N split-screen regions.
  • the split-screen display method in the embodiment of the present application can be used after the user uses the electronic device to perform multi-task split-screen for a period of time, A plurality of split-screen samples (that is, historical split-screen samples) are obtained according to the user's split-screen operation records, and the split-screen samples are associated with the tasks involved. Afterwards, when the user has multi-task split-screen display requirements, the split-screen sample associated with the task combination is determined from the multiple split-screen samples, so as to determine the preset arrangement rules of the current multiple tasks and complete the split-screen layout.
  • the tasks displayed on the split screen include various types of tasks such as applications, applets, light applications, and native function tasks, which are not limited in this application.
  • the following embodiments take multi-application split-screen display as an example to introduce a method for split-screen display provided in the embodiments of the present application.
  • multiple application programs (APP, hereinafter referred to as applications), including third-party APPs and/or system-level APPs built into the operating system, are installed in the electronic device to meet the user's entertainment and social needs. , learning, financial management, office, travel and other needs.
  • applications application programs
  • a user can interact with an electronic device through touch, gesture, voice, etc., such as opening an application on the electronic device.
  • the electronic device may display the multiple applications on a split screen based on a split-screen display method provided in an embodiment of the present application.
  • the electronic device when the electronic device executes the split-screen display tasks of multiple applications (such as multiple applications in the first application combination) for the first time, the electronic device may follow the initial split-screen arrangement rules, as indicated by the preset initial template.
  • the split-screen arrangement rule is used as a preset arrangement rule to arrange multiple applications in the first application combination, so as to perform task splitting.
  • a split-screen display method provided may include S401-S406:
  • S401 The electronic device displays interfaces of multiple applications in the first application combination on a split screen according to an initial split-screen arrangement rule.
  • the first application combination includes M applications, M ⁇ 2, and M is an integer.
  • the situation that the electronic device executes the split-screen display task of multiple applications in the first application combination for the first time may include but not limited to: the electronic device receives the first application combination (such as the first application + the combination of the second application + the third application), the split-screen display task, the use time of the electronic device is less than a preset value (such as 1 hour), and the number of times the electronic device adjusts the position and/or size of the application window is less than the preset value (such as 10 times) and so on.
  • a preset value such as 1 hour
  • the number of times the electronic device adjusts the position and/or size of the application window is less than the preset value (such as 10 times) and so on.
  • the electronic device has not processed the split-screen display task of a certain application combination before, the electronic device has not recorded the split-screen samples related to the application combination, so the split-screen samples cannot be determined according to the split-screen samples associated with the application combination. layout. If the use time of the electronic device is less than the preset value (such as 1 hour), it can be understood that the electronic device is a new machine, so it can be judged that there are few split-screen samples in the electronic device, and it is difficult to find the split-screen associated with the application combination sample.
  • the preset value such as 1 hour
  • the electronic device If the number of times the electronic device adjusts the position and/or size of the application window is less than a preset value (such as 10 times), it can be judged that there are few split-screen samples in the electronic device, and the reliability of determining the split-screen layout based on the split-screen samples is not high. .
  • a preset value such as 10 times
  • the electronic device may automatically display the interfaces of the multiple applications in the first application combination in split screens according to the initial split screen arrangement rule.
  • the initial split-screen arrangement rule is a preset arrangement rule of multiple applications in the first application combination.
  • the operation of the user to open multiple applications in the first application combination for the first time is the operation of the user to open multiple applications respectively for the first time, or the user firstly performs the operation as shown in (a) in Figure 14, (b) in Figure 14 or Figure 14.
  • the electronic device may display the interfaces of the multiple applications in the first application combination in split screen according to the initial split screen arrangement rule.
  • the initial split screen arrangement rule is used to specify the positions and sizes of the windows where the multiple task interfaces are located when the initial split screen displays multiple task interfaces.
  • the initial split-screen arrangement rule may be preset in the electronic device when the electronic device leaves the factory, or be set by the user, which is not limited in this embodiment of the present application.
  • the initial split-screen arrangement rule is the same as the split-screen arrangement rule indicated by the preset initial template.
  • the initial split-screen layout rules may include but not limited to main area+sub-area split-screen layout rules, average display split-screen layout rules, etc., which are not limited in this application and depend on specific factory settings or user settings.
  • FIG. 6 shows a split-screen arrangement rule of main area+sub area.
  • one application such as the first application
  • the windows of other applications such as the second application, the third application, and the fourth application
  • the specific positions and sizes of the main area and the sub-area can be set by the user, or can be determined by the electronic device itself according to factors such as opening time and user habits.
  • FIG. 6 only takes the average display screen area other than the main area among multiple sub-areas as an example, and the sizes of multiple sub-areas may also be different, depending on specific factory settings or user settings.
  • FIG. 7 shows two average display split screen arrangement rules.
  • the sizes of the multiple display areas are equal.
  • the windows where the multiple applications are located are respectively displayed in the multiple display areas.
  • the electronic device may display corresponding application windows in multiple display areas in a sequence from top to bottom and from left to right according to the order in which the user opens the multiple applications.
  • a split-screen display method provided in the embodiment of the present application may be implemented based on multiple split-screen related functional units in an electronic device.
  • the electronic device may include a split screen recording unit 510 , a split screen sample library 520 , a label unit 530 , an initial rule library 540 , a rule determination unit 550 and a processing unit 560 .
  • the electronic device may store the initial split-screen layout rules through the initial rule library 540 shown in FIG. 5 .
  • the initial rule library 540 shown in FIG. 5 may be located in a storage unit of the electronic device (the internal memory 321 shown in FIG. 3 ).
  • S402 When the electronic device displays interfaces of multiple applications in the first application combination on a split screen, it receives user adjustments to one or more of the following, and obtains a split-screen sample: the number of application windows, the position of the application windows, and the size of the application windows , the application category corresponding to the application window.
  • one split-screen sample corresponds to one application combination.
  • a split-screen sample includes one or more split-screen records corresponding to an application combination. For example, a split-screen operation performed by a user during split-screen display of multiple applications corresponds to a split-screen record, so a split-screen record corresponds to a task combination (such as an application combination). Multiple split-screen recordings of the same application combination form a split-screen sample.
  • the split-screen sample obtained based on the user's above-mentioned adjustments may reflect the user's usage habits in the process of using the split-screen.
  • the number of application windows is adjusted such as adding windows and/or reducing windows.
  • the user adjusts the position of the application window, such as the user dragging the application window, and the user adjusts the size of the application window, such as the user dragging the side of the application window.
  • the specific operation depends on the input method of the electronic device. Certainly, the embodiment of this application is not limited.
  • the electronic device may record one or more of the following: identifiers of multiple applications displayed on a split screen, application categories, application operating frequency/input frequency, and the user's position on multiple application windows and/or or resizing specific information as a split-screen record of the app combination.
  • the application identifier includes an application name, an application identity number (identity, ID), and the like.
  • the specific information about the position and/or size adjustment of the multiple application windows by the user may include position information and size information of the multiple application windows.
  • the electronic device may record position information and size information of multiple application windows in the form of coordinates of four corners of the split-screen area where the multiple application windows are located.
  • the split-screen samples may also include the corresponding number of split-screen recordings. For example, if at different times, such as time 1 and time 2, the user adjusts the windows of the same application combination the same, then the two split-screen records are the same, and the number of times corresponding to the split-screen records is 2.
  • the same window adjustment for the same application combination means that the position and size adjustments for the same application combination are approximately the same (for example, the error is smaller than a preset value).
  • the same window adjustment for the same application combination means that the position and size adjustments for the same application combination are completely the same. For this case, if any one of the position and size is different after multiple adjustments, different split-screen recordings will be obtained.
  • the electronic device may also record one or more of the following in the split-screen sample when the interfaces of the multiple applications in the first application combination are displayed in split-screen: scene information of the electronic device, The historical use information of the application, the corresponding relationship between the operating frequency and/or input frequency of the application displayed on the split screen and the split screen area, and the activity status of the application displayed on the split screen at present or within a preset time period.
  • the electronic device may record the user's split-screen operation through the split-screen recording unit 510 shown in FIG. 5 to obtain a split-screen sample.
  • S403 The electronic device associates the first application combination with the split-screen sample.
  • the electronic device may associate the identifiers of the multiple applications in the first application combination (that is, the combination of identifiers of the multiple applications) with the split-screen sample.
  • the identifier of the application includes an application name, an application ID, and the like.
  • the first application is The second application is The third application is Electronic devices can The application combination of is associated with the corresponding split-screen sample.
  • the electronic device may associate the first application combination with the split-screen sample by automatically adding tags to the split-screen sample, for example, using a tag combination of application tags of multiple applications as the split-screen sample Tag of.
  • the electronic device may determine an application label according to relevant information in an application store, so as to add labels to the split-screen sample according to tags of multiple applications in the first application combination, and associate the first application combination with the split-screen sample.
  • the electronic device may determine an application label according to an application category in an application store.
  • the application category such as video category (such as and other applications), instant messaging (such as and other applications), news and information (such as and other applications), reading classes (such as and other applications), document editing classes (such as and other applications), shopping (such as and other applications), financial management (such as and other applications) etc.
  • the categories in the application store are video applications, video applications and instant messaging applications, and the electronic device can be and The split-screen samples corresponding to this combination of applications add the label "video application + video application + instant messaging application".
  • the electronic device may determine the application label according to the historical use information of the electronic device, so as to add a label to the split-screen sample according to the tags of multiple applications in the first application combination, and associate the first application combination with the split-screen sample .
  • the historical use information of the electronic device is used to represent but not limited to information such as the time, times, and historical operations of the electronic device running the application, and the time, times, and historical operations of the application calling other applications or functions when the electronic device is running the application.
  • the electronic device can add a "high-frequency operation" label to the application; if the historical usage information indicates that the electronic device If the frequency of running an application is low, the electronic device can add a "low-frequency operation" label to the application.
  • the electronic device can add a "high-frequency input” label to the application; if the historical If the usage information indicates that the frequency of invoking the input method is low when the electronic device runs an application, the electronic device may add a "low-frequency input” label to the application. because and The labels are "low frequency input”, “low frequency input” and “high frequency input”, then the electronic equipment can be and The split-screen sample corresponding to this application combination adds the label "low frequency input + low frequency input + high frequency input”.
  • the electronic device can add a label to the application according to the operation interval time of the application when the electronic device is running, if the operation interval time ⁇ (or ⁇ ) the first preset value, then add a "high If the operation interval is ⁇ (or >) the first preset value, add the label "low frequency operation” to it.
  • the electronic device can add a label to the application according to the interval time between the application calling the input method when the electronic device is running, and if the interval time between calling the input method ⁇ (or ⁇ ) the second preset value, then add " High-frequency input” label, if the interval time between calling the input method ⁇ (or >) the second preset value, then add the "low-frequency input” label to it.
  • the determination of the application label according to the relevant information in the application store and the determination of the application label according to the historical use information of the electronic device are only two examples of adding labels to the application, and this application does not limit the specific method.
  • the electronic device can also add tags to the application according to other information, such as scene information (such as motion status, location, time, and gesture of the mobile phone, etc.).
  • the electronic device can also add tags to the application by combining relevant information in the application store and historical usage information of the electronic device.
  • the application tag can be a combination of tags, such as "video software + high-frequency operation".
  • the electronic device can add a label to the split-screen sample through the labeling unit 530 shown in FIG. 5 .
  • the label of the split-screen sample is a combination of application labels of multiple applications corresponding to the split-screen sample, or a combination of application identifiers of multiple applications corresponding to the split-screen sample.
  • each multi-task split-screen display process of the electronic device can generate a split-screen sample.
  • the electronic device may save the above split-screen sample.
  • the split-screen sample may be stored in the split-screen sample library 520 of the electronic device shown in FIG. 5 .
  • the split-screen sample library 520 shown in FIG. 5 may be located in a storage unit of the electronic device (the internal memory 321 shown in FIG. 3 ).
  • the electronic device can determine the number of split-screen samples according to the existing split-screen samples. Split-screen layout of tasks to obtain split-screen results that meet user needs as much as possible. If the user is dissatisfied with the multi-task split-screen interface displayed by the electronic device according to the determined split-screen layout, the user will make manual adjustments. During the process of manual adjustment by the user, the electronic device may perform the above S402-S403 again to enrich the split-screen record in the split-screen sample.
  • the second application combination includes N applications, N ⁇ 2, and N is an integer.
  • the electronic device may automatically determine the split-screen sample associated with the second application combination in response to receiving the user's operation of opening multiple applications in the second application combination.
  • the user's operation of opening multiple applications in the first application combination is like the user's operation of opening multiple (such as N) applications in the second application combination, or the user's operation as shown in (a) in Figure 14 and Figure 14 (b) or the selection operation of a recommended application combination option on the interface shown in (c) in FIG. 14 .
  • the electronic device determines a split-screen sample associated with the second application combination in response to receiving a user's operation of triggering split-screen display of multiple applications in the second application combination.
  • the electronic device may accept the smart recommendation and determine the split-screen sample associated with the second application combination.
  • the electronic device may, according to the application identifiers (such as the combination of identifiers) of multiple applications in the second application combination, obtain the split-screen sample (such as In the sample library), find the split-screen sample associated with the second application combination.
  • the application identifiers such as the combination of identifiers
  • the split-screen sample such as In the sample library
  • the electronic device can be based on and The application identifier of the application is searched for the split-screen sample associated with the application combination from the split-screen sample library.
  • the electronic device searches according to the application identifiers (such as the identifier combination) of multiple applications in the second application combination, and matches the split-screen sample associated with the second application combination. For this case, as shown in S802 in FIG. 8 , the electronic device continues to execute the following S405 according to the split-screen sample associated with the second application combination.
  • the application identifiers such as the identifier combination
  • the electronic device searches according to the application identifiers (such as the identifier combination) of multiple applications in the second application combination, but no split-screen sample associated with the second application combination is found. .
  • the electronic device may further search for a split-screen sample associated with the second application combination from the split-screen sample library according to the application labels of multiple applications in the second application combination. .
  • an application may have a label.
  • the application combination corresponds to a label combination
  • the electronic device can search the split-screen samples (such as the split-screen sample library) previously obtained by the electronic device according to the label combination corresponding to the application combination. Split screen sample.
  • the electronic device can be based on and For the tag combination corresponding to the application combination (that is, "video application + instant messaging application + reading application"), the split-screen sample associated with the application combination is searched from the split-screen sample library previously obtained by the electronic device.
  • an application may include multiple tags.
  • the application combination corresponds to multiple label combinations
  • the electronic device may find multiple matching labels from the split-screen samples (such as the split-screen sample library) previously obtained by the electronic device according to all the tag combinations corresponding to the application combination.
  • tags include “video application”, “low frequency operation” and “low frequency input”, (that is, the second application) includes “instant messaging application”, “high-frequency operation” and “high-frequency input”, (that is, the third application) has tags including “reading application”, “high-frequency operation” and “low-frequency input”, then and There are 27 label combinations corresponding to application combinations.
  • the second application combination is the same as the first application combination, that is, when the user opens the (i.e. the first application), (i.e. the second application) and (i.e. the third application) application combination
  • the electronic device can be based on and For the 27 tag combinations corresponding to the application combination, search for the split-screen samples associated with the application combination from the split-screen sample library previously obtained by the electronic device.
  • the electronic device searches according to the application labels (such as the label combination) of multiple applications in the second application combination, and matches the split-screen sample associated with the second application combination, then as shown in S802 in FIG.
  • the second application combines associated split-screen samples to determine a preset arrangement rule for the N applications.
  • the electronic device may use any of the following methods 1-4 to determine the split-screen sample associated with the above-mentioned second application combination:
  • Manner 1 The electronic device uses the latest split-screen sample as the split-screen sample associated with the second application combination. Wherein, the nearest split-screen sample is the split-screen sample closest to the current moment.
  • Mode 2 The electronic device determines the split-screen sample associated with the second application combination according to the matching degrees corresponding to the multiple split-screen samples. For example, the split-screen sample with the highest matching degree is used as the split-screen sample associated with the second application combination.
  • the matching degree is used to characterize the number of label combinations that the split-screen sample can match. For example, suppose tags include “instant messaging apps,””frequentoperations,” and “frequent input,” tags include “Video Applications”, “Low Frequency Operation” and “Low Frequency Input”, tags include “reading applications”, “high-frequency operation” and “low-frequency input”, then the same as and
  • tags include “instant messaging apps,”"frequentoperations,” and “frequent input”
  • tags include “Video Applications”, “Low Frequency Operation” and “Low Frequency Input”
  • tags include “reading applications”, “high-frequency operation” and “low-frequency input”
  • Way 3 The electronic device comprehensively determines a split-screen sample associated with the second application combination according to the matched multiple split-screen samples.
  • the electronic device can comprehensively determine and combine multiple split-screen samples within a preset time period (such as within a year, within half a year, within a month, within a week, etc.) according to the matched multiple types of split-screen samples. Associated split-screen samples.
  • the electronic device may first determine the relative positions of the multiple application windows in the second application combination according to the multiple matched split-screen samples, and then determine the sizes of the multiple application windows.
  • the electronic device analyzes and obtains two application window position schemes shown in FIG. 9 according to multiple matched split-screen samples: scheme 1 and scheme 2, it can be determined that the second application window is located in the upper right corner area of the display screen. Then, the electronic device may further determine to adopt scheme 1 or scheme 2 as shown in FIG. For example, assuming that the number of split-screen samples of an application located in the left half of the display screen is 9, and the number of split-screen samples located in the lower right corner of the display screen is 1, the electronic device can determine the relative positions of multiple application windows in the second application combination as in solution 1. shown.
  • the electronic device may select the window size most preferred by the user according to the window size adjustment record. For example, when the third application window is located in the lower right corner of the display screen, if the user adjusts the right edge and bottom edge of the third application window, then the edge pixels are obviously concentrated near a certain column/row of pixels, you can first set the column /row of pixels is the right edge and bottom edge of the third application window.
  • the electronic device may adaptively adjust the edges of the multiple windows so that adjacent edges overlap. For example, if there is a gap between adjacent edges of two application windows, the middle pixel of the gap can be used as the new edge of the two application windows; if the edges of the two application windows overlap, the middle pixel of the overlap can be used As the new edge of the two application windows.
  • the electronic device can The overlapping area of the application window and the second application window, the first application window and the third application window determines the middle column of pixels (as shown in dotted line a in Figure 10), which is used as the right edge of the first application window and simultaneously as the second application window. window and the left edge of the third application window. And, the electronic device can determine the middle row of pixels (as shown by dotted line b in FIG. 10 ) in the gap between the adjacent edges of the second application window and the third application window, as the second application window and the third application window. demarcation.
  • Mode 4 The electronic device displays relevant information of multiple matched split-screen samples to the user for selection by the user.
  • the electronic device may display to the user the distribution of application windows represented by the matched multiple split-screen samples in the form of icons shown in (a) in FIG.
  • the distribution of application windows represented by the matched multiple split-screen samples is displayed to the user, and the embodiment of the present application does not limit the specific display form.
  • the electronic device uses the split-screen sample as the split-screen sample associated with the above-mentioned second application combination.
  • the user's selection operation of one of the multiple split-screen samples is like the user's click operation on a certain application window distribution icon on the interface shown in (a) in Figure 11, or the user's click operation on the icon shown in Figure 11
  • the application does not limit the specific form of the user's selection operation of a split-screen sample among multiple split-screen samples.
  • the user can also perform the split-screen sample selection operation through voice commands, preset gestures, and eyeball attention.
  • the electronic device may determine the split-screen sample associated with the second application combination through the rule determining unit 550 shown in FIG. 5 .
  • S405 The electronic device determines a preset arrangement rule of the second application combination according to the split-screen samples associated with the second application combination.
  • the split-screen record in the split-screen sample records the split-screen information associated with the application combination, such as the window positions and sizes of multiple applications, etc., when determining the split-screen information associated with the above-mentioned second application combination After sampling, the possible positions and sizes of the windows of the multiple applications in the second application combination on the display screen are determined, that is, the preset arrangement rules of the second application combination are determined.
  • the second application combination is the same as the first application combination, that is, the N applications in the second application combination are respectively the same as the M applications in the first application combination, and the applications associated with the second application combination
  • the split-screen samples include the recorded identifications of the M applications in the first application combination and the user's adjustments to the split-screen area when the electronic device displays the first application combination in split-screen history.
  • the split-screen sample directly determines the preset arrangement rules of the N applications in the second application combination. For example, assuming that both the first application combination and the second application combination include application A, application B, and application C, the electronic device can determine the split-screen relationship between application A and application C in the first application combination according to the split-screen sample associated with the second application combination.
  • Application A in the sample is in the same area
  • application B in the first application combination is in the same area as application B in the split-screen sample
  • application C in the first application combination is in the same area as application C in the split-screen sample.
  • the electronic device may determine the corresponding split-screen areas according to the application categories of the N applications in the second application combination.
  • the electronic device determines according to the split-screen samples associated with the second application combination
  • Application A1 is in the same area as application A2 in the split-screen sample
  • application B1 is in the same area as application B2 in the split-screen sample
  • application C1 is in the same area as application C2 in the split-screen sample.
  • the electronic device can determine the split-screen samples associated with the second application combination
  • the preset arrangement rule of the N applications is the same as the arrangement rule of the applications with the same operating frequency or input frequency after the user adjusted the M split-screen areas in the historical split-screen samples. For example, suppose the first application combination includes application A2, application B2, and application C2, and the second application combination includes A1, application B1, and application C1.
  • the electronic device determines the application A1 in the second application combination and the application A2 in the split-screen sample according to the split-screen samples associated with the second application combination They are located in the same area, application B1 is located in the same area as application B2 in the split-screen sample, and application C1 is located in the same area as application C2 in the split-screen sample.
  • S406 The electronic device displays multiple applications in the second application combination based on the preset arrangement rule of the second application combination.
  • the electronic device may acquire the target split-screen template corresponding to the second application combination according to the determined position and size, and automatically adjust the windows of multiple applications in the second application combination based on the target split-screen template corresponding to the second application combination distribution on the display and refresh the interface.
  • the electronic device can determine multiple The possible positions and sizes of the app's window on the display.
  • the split-screen sample associated with the second application combination includes a split-screen record, and in this case, the electronic device may determine the windows of multiple applications in the second application combination according to the split-screen record The position and size on the display screen (that is, determine the preset arrangement rule of the second application combination).
  • the split-screen sample associated with the second application combination includes multiple split-screen records.
  • the electronic device may determine a split-screen in a manner similar to the above-mentioned method 1-method 4. Record.
  • the electronic device may determine a split-screen in a manner similar to the above-mentioned method 1-method 4. Record.
  • the electronic device may determine the positions and sizes of the windows of the multiple applications in the second application combination on the display screen (that is, determine the preset Set the arrangement rules).
  • determine the positions and sizes of the windows of multiple applications in the second application combination on the display screen that is, determine the second application combination). combination of default arrangement rules).
  • relevant information of multiple split-screen records in the split-screen sample associated with the second application combination is displayed to the user for the user to choose from.
  • the electronic device searches according to the application labels (such as label combination) of multiple applications in the second application combination, the split screen associated with the second application combination is still not matched.
  • the electronic device can be used as a possible implementation manner.
  • the electronic device can display multiple applications in the second application combination according to the initial split-screen arrangement rule.
  • the electronic device may combine the preset correspondence between application labels and screen (display screen) area labels according to the application labels of multiple applications in the second application combination.
  • the relationship shows multiple applications in the second application portfolio.
  • the corresponding relationship between the application tag and the screen area tag may be preset in the electronic device when the electronic device leaves the factory, or be defined by the user, which is not limited in the embodiment of the present application.
  • FIG. 12 shows a schematic diagram of a hand-held hot zone in a user's hands-holding posture.
  • area 1 and area 2 are the easily accessible areas when the user holds it with both hands;
  • area 3 is the area that requires a lot of effort to reach when the user holds it with both hands, or needs to change the holding position slightly to reach it Area;
  • Area 4 is an area that cannot be touched by the user holding the gesture with both hands, and the user needs to raise one hand to reach Area 4.
  • the electronic device can determine the viewing area, flexible area and operating area on the display screen.
  • the viewing area is usually an area that cannot be touched by the user
  • the flexible area is usually an area that the user needs to work hard to reach
  • the operation area is usually an area that the user can easily touch.
  • the label on the left half of the display screen is the viewing area.
  • the label on the right half area is the operation area;
  • the label on the upper half of the display screen is the viewing area, and the label on the lower half is the operation area.
  • the label in the lower right corner of the display is the operation area, the label in the upper right or lower left corner is the flexible area, and the labels in other areas are the viewing area.
  • FIG. 13 only takes a right-handed user as an example, and shows an example of an electronic device determining screen area labels according to the user's convenience of operating in each area of the display screen.
  • This application does not limit the specific label of the specific display screen area, it depends on the specific situation. For example, for left-handed users, the user's convenience in operating various areas of the display screen is different from that for right-handed users. For another example, for the horizontal screen state and the vertical screen state, the specific labels of the same screen area of the electronic device will also be different.
  • tags include “Video Applications”, “Low Frequency Operation” and “Low Frequency Input”
  • tags include “instant messaging apps,””frequentoperations,” and “frequent input”
  • Labels include “reading applications”, “high-frequency operation” and "low-frequency input”
  • electronic devices according to i.e. the first application), (i.e. the second application) and (i.e. the third application) the application tags of the application combination are searched, and the split-screen sample associated with the application combination is not matched, then the electronic device can determine the corresponding to the viewing area on the display, corresponding to the operating area on the display, Corresponds to the flexible area on the display.
  • the electronic device may also update according to one or more of the following during the process of displaying multiple applications in the second application combination according to the split-screen sample associated with the second application combination Split-screen sample library or split-screen template: adjustments by the user, scene information of the electronic device, and historical usage information of the applications in the second application combination.
  • the user's adjustment includes one or more of the following: the user increases or decreases the split-screen area, the user adjusts the position of at least one split-screen area, the user adjusts the size of at least one split-screen area, the user adjusts at least one split-screen area Adjust the application or application category corresponding to the screen area.
  • the electronic device may use the processing unit 560 shown in FIG.
  • Application interfaces of multiple applications are loaded into corresponding split-screen windows.
  • FIG. 5 only takes as an example that the split-screen recording unit 510 , the labeling unit 530 and the rule determining unit 550 are independent of the processing unit 560 .
  • the split-screen recording unit 510 and one or more of the labeling unit 530 and the rule determining unit 550 may also be located in the processing unit 560 .
  • the processing unit 560 is shown as the processor 310 in FIG. 3 .
  • the split-screen display method can record the user's usage habits after the user uses the electronic device to perform multi-task split-screen for a period of time, for example, obtain multiple split-screen samples according to the user's split-screen operation records , and associate the split-screen samples with the tasks they refer to. Afterwards, when the user has a multi-task split-screen display requirement, a split-screen sample associated with the task combination is determined, so as to perform multi-task split-screen.
  • This solution can realize multi-task automatic split-screen layout and reduce the number of manual split-screen by users.
  • the display position and size of the multitasking on the display screen conform to the habits of the user, thereby improving the multitasking split-screen experience of the user.
  • the split-screen display method provided by the embodiment of the present application can associate the split-screen samples with the tasks involved in the form of tags by adding tags to the tasks, which increases the matching range of task combinations and enables more flexible matching to
  • the user's historical split-screen samples and at the same time, can better filter and obtain appropriate records from the historical split-screen samples, so that the split-screen layout determined by this is more in line with the user's habits.
  • the preset application tag and the screen area tag can be combined.
  • the corresponding relationship determines the preset arrangement rule of the second application combination, so that the obtained split-screen layout corresponding to the target split-screen template is more suitable for the user's habit.
  • the electronic device may further determine the split-screen layout or adjust the split-screen layout in combination with other relevant information.
  • other relevant information includes one or more of the following: scene information, application status.
  • the scene information may include but not limited to: the user's motion state (such as stationary, walking, running, driving, etc.), the user's location (such as home, company, scenic spot, shopping mall, school, station, meeting room, etc.), time information (such as working days, weekends, working hours, rest time, meal time, sleep time, meeting time, etc.) and mobile phone gestures (such as horizontal screen, vertical screen, etc.).
  • the scene information may be obtained by the electronic device based on data collected by sensors, positioning devices, etc., mode settings, calendars, memo settings, clocks, etc. of the electronic device.
  • the electronic device can obtain the user's location based on the location information collected by the positioning device, the user's motion status and mobile phone posture can be obtained according to the data collected by the sensor, and the time information can be obtained according to the calendar, memo settings, clock, etc.
  • the specific determination means and specific method of the scene information reference may be made to the introduction in the general data, which will not be repeated in the embodiment of the present application.
  • the electronic device can determine the split-screen layout in combination with the scene information. This makes the determined split-screen layout more suitable for the user's current scene.
  • the split-screen samples associated with the chat application and the shopping application include two different split-screen records: split-screen record 1 and split-screen record 2 .
  • the chat application is displayed on the left, and the shopping application is displayed on the right; in the split-screen record 2, the shopping application is displayed on the left, and the chat application is displayed on the right.
  • the scene information recorded in split-screen record 1 is time: 20:00-22:00 in the evening, location: home; the scene information recorded in split-screen record 2 is time: 12:00-13:00 noon, location: company. Since the current scene of the electronic device (time: 12:00 noon, place: company) is more consistent with the scene information of the split-screen record 2, the electronic device can determine the split-screen layout according to the split-screen record 2.
  • the individualized screen split is comprehensively performed, so that the split screen layout is more in line with the usage habits of the user in the current scene, and the experience of using the split screen of the application is further improved.
  • the application status is used to represent the current activity of the application or within a preset period of time. For example, whether the application currently receives a message, whether the application window receives the user's operation (such as click, long press, etc.), whether the application receives the user's input, and so on. It can be understood that if the user operates or inputs an application, or the application receives a message within the current or preset time period, it can be inferred that the user will pay more attention to the application in the future. Based on this, when the application state satisfies the first preset condition, the electronic device may determine the split-screen layout according to the split-screen sample associated with the application combination and in combination with the application state. Exemplarily, the first preset condition is that the preset application receives an operation, an input, or receives a message.
  • electronic devices can be After receiving the message, on the basis of the application window distribution represented by the split-screen sample associated with the application combination, temporarily adjust the split-screen layout to expand application window.
  • the electronic device may restore the previous split-screen layout when the application status of the application whose split-screen has been temporarily adjusted satisfies the second preset condition.
  • the second preset condition is such as no operation, no input, no message received within a preset time period (such as 3 seconds), or message sent successfully.
  • the embodiment of the present application adjusts the temporary split-screen layout in combination with the application status, so as to infer the user's need for temporarily expanding the window during the application process, which can better fit the user's habits and meet the user's needs.
  • the electronic device may also comprehensively determine or adjust the split-screen rule in combination with various other related information.
  • the electronic device may comprehensively analyze and determine or adjust the split-screen layout according to the split-screen sample associated with the application combination, in combination with scene information and state information.
  • the electronic device may provide the user with a multi-task combination recommendation service.
  • the electronic device may present one or more recommended application combinations to the user.
  • the above multiple recommended application combinations may be determined by the electronic device according to but not limited to one or more of the following: matching degree of split-screen samples, scene information, and state information.
  • the electronic device may recommend an application combination of map application + music application to the user. For another example, assuming that the electronic device determines that the current time is a break time, a meal time or a weekend, the electronic device may recommend to the user an application combination of a chat application + a news application, or an application combination of a chat application + a video application, for the user to choose from. For another example, assuming that the electronic device determines that the current location is a station, the electronic device may recommend to the user an application combination of a mobile payment application + a health code applet. For another example, assuming that the electronic device determines that the current location is a shopping mall, the electronic device may recommend an application combination of a mobile payment application + a consumption review application + a shopping application to the user.
  • the electronic device may display multiple recommended application combinations to the user in the form of text shown in (a) in FIG. 14 , and this embodiment of the present application does not limit the specific display form.
  • the electronic device may also display the distribution of application windows of the application combinations to the user while presenting multiple recommended application combinations to the user.
  • the electronic device may display multiple recommended application combinations and application combinations to the user in the form of icons shown in (b) in FIG.
  • the application window distribution, the embodiment of the present application does not limit the specific display form.
  • the electronic device can determine the split-screen layout based on the methods provided in the above-mentioned embodiments of the present application, such as matching from the split-screen sample library according to the application identifier, matching from the split-screen sample library according to the combination of application labels, or matching according to the initial split-screen layout.
  • Layout rules or in combination with preset correspondence between application labels and screen area labels, or in combination with historical application combination frequencies, etc., determine the distribution of application windows displaying multiple recommended application combinations to the user. For details, reference may be made to the foregoing embodiments.
  • the electronic device may display the above-mentioned multiple recommended application combinations on a main interface.
  • the electronic device may run multiple applications in the application combination in response to receiving a user's selection operation on any application combination in the multiple recommended application combinations.
  • the user's selection operation on any application combination among multiple recommended application combinations is as shown in (a) in FIG. 14 , (b) in FIG. 14 or (c) in FIG. One-click action for applying combination options.
  • the application does not limit the specific form of the user's selection operation on one of the multiple split-screen samples.
  • the user can also perform application combination selection operations through voice commands, preset gestures, and eyeball attention.
  • the electronic device recommends an application combination to the user to facilitate the user to open the multi-application split screen with one click, thereby improving the user's multi-tasking split-screen experience.
  • the electronic device includes corresponding hardware structures and/or software modules for performing various functions.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the embodiment of the present application may divide the electronic device into functional modules, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in FIG. 4 in this application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • each module in the electronic device may be implemented in the form of software and/or hardware, which is not specifically limited. In other words, electronic equipment is presented in the form of functional modules.
  • the "module” here may refer to an application-specific integrated circuit ASIC, a circuit, a processor and memory executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above-mentioned functions.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available mediums.
  • the available medium can be a magnetic medium, (such as a floppy disk, a hard disk, etc. , tape), optical media (such as digital video disk (digital video disk, DVD)), or semiconductor media (such as solid state disk (SSD)), etc.
  • the steps of the methods or algorithms described in conjunction with the embodiments of the present application may be implemented in hardware, or may be implemented in a manner in which a processor executes software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage known in the art medium.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC can be located in the electronic device or SSD.
  • the processor and the storage medium can also exist in the electronic device as discrete components.

Abstract

本申请公开了一种分屏显示方法及电子设备,涉及终端技术领域,可以在多任务分屏时,减少用户手动分屏的次数。本申请中,电子设备可以在运行多个应用时,获取已有的,与该多个应用的预设排列规则对应的目标分屏模板,以通过在目标分屏模板的多个分屏区域显示上述多个应用。其中,上述预设排列规则可以用于表征用户的使用习惯。基于本申请公开的方案,可以实现智能化、自动化、符合用户使用习惯的多任务分屏体验。

Description

一种分屏显示方法及电子设备
本申请要求于2021年12月6日提交国家知识产权局、申请号为202111481374.6、申请名称为“一种分屏显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端技术领域,尤其涉及一种分屏显示方法及电子设备。
背景技术
随着屏幕技术的不断发展,为了满足用户在使用电子设备时,并行处理多任务的需求,电子设备可以支持多任务分屏技术,同时显示多个任务的界面。
示例性的,基于多任务分屏技术,用户可以在通过视频应用观看视频的同时,通过聊天应用与朋友聊天。但是,在多任务分屏显示时,为了使得多个任务界面以符合用户习惯的布局分屏显示,需要用户手动多次调整,用户操作比较繁琐。并且,分屏的任务数量越多,用户操作越繁琐。
作为一种示例,如图1所示,假设响应于接收到用户打开应用1、应用2和应用3的操作,电子设备显示图1所示界面10。如图1所示,界面10上包括应用1的窗口、应用2的窗口和应用3的窗口,其中应用1的窗口、应用2的窗口和应用3的窗口在显示屏上的布局杂乱且互相遮挡。为了使得多任务界面以符合用户习惯的布局分屏显示,用户分别通过调整应用窗口位置、应用窗口的高和/或宽,以实现图1所示界面20上的分屏效果。
发明内容
本申请提供一种分屏显示方法及电子设备,可以实现多任务自动分屏布局,减少用户手动分屏的次数。
为达到上述目的,本申请实施例采用如下技术方案:
第一方面,提供一种分屏显示方法,该方法包括:电子设备在运行N个应用(其中N≥2,N为整数)时,获取该N个应用对应的目标分屏模板,其中目标分屏模板包括N个分屏区域,该N个分屏区域的大小不同,且该N个分屏区域按照N个应用的预设排列规则排布。进一步的,电子设备基于上述N个应用的预设排列规则,将上述N个应用分别显示在目标分屏模板的N个分屏区域中。
上述第一方面提供的方案,电子设备可以在运行多个应用时,获取已有的,与该多个应用的预设排列规则对应的目标分屏模板,以通过在目标分屏模板的多个分屏区域显示上述多个应用,实现智能化、自动化的多任务分屏体验。
其中,上述预设排列规则可以用于表征用户的使用习惯。示例性的,上述预设排列规则可以由电子设备在历史多任务分屏使用过程中,根据用户对分屏区域和/或分屏应用等的调整,和/或其它相关信息确定。
例如,电子设备可以在用户使用电子设备进行多任务分屏一段时间后,记录用户的使用习惯,例如根据用户的分屏操作记录得到多个分屏样本(即历史分屏样本),以及将分屏样本与其所涉及的任务关联。之后,在用户有多任务分屏显示需求时,根 据与任务组合相关联的分屏样本确定预设排列规则,进而进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
示例性的,电子设备可以获取与上述N个应用相关联的分屏样本,从而确定该N个应用的预设排列规则。
在一种可能的实现方式中,上述电子设备运行N个应用,包括:响应于接收到用户打开第一应用组合的操作,电子设备运行N个应用;其中,第一应用组合包括所述N个应用。本申请支持多种形式的多任务启动方式,例如用户可以以一键打开应用组合的形式启动多个应用。
在一种可能的实现方式中,上述电子设备运行N个应用,包括:电子设备接收用户分别打开上述N个应用的操作,运行N个应用。本申请支持多种形式的多任务启动方式,例如用户可以以逐一打开应用的形式启动多个应用。
在一种可能的实现方式中,上述电子设备获取N个应用对应的目标分屏模板,包括:电子设备接收用户触发分屏显示N个应用的操作,获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如用户可以手动触发多任务分屏。
在一种可能的实现方式中,上述电子设备获取N个应用对应的目标分屏模板,包括:电子设备在运行N个应用时,自动获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如电子设备可以在同时运行多个应用时自动触发多任务分屏。
在一种可能的实现方式中,上述电子设备获取N个应用对应的目标分屏模板,包括:电子设备接受智慧推荐,获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如电子设备可以接受智慧推荐触发多任务分屏。示例性的,智慧推荐如分屏相关应用的推荐。
在一种可能的实现方式中,上述电子设备获取N个应用对应的目标分屏模板,包括:电子设备获取历史分屏样本;电子设备根据历史分屏样本确定N个应用的预设排列规则;电子设备根据N个应用的预设排列规则获取N个应用对应的目标分屏模板。本申请中,电子设备可以基于历史分屏样本确定用户的使用习惯,从而确定N个应用分屏时的预设排列规则。
可以理解,用户在使用电子设备进行多应用分屏显示的过程中的历史分屏样本(例如历史分屏调整记录)可以反映用户的使用习惯。基于此,在用户有多任务分屏显示需求时,根据与任务组合相关联的分屏样本进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述历史分屏样本包括电子设备在历史分屏显示M个应用时,记录的以下中的一种或多种:该M个应用的标识、M个应用的应用类别、用户对M个分屏区域的调整、M个应用的操作频率、M个应用的输入频率,M≥2,M为整数。其中,M=N。本申请中,电子设备可以基于历史分屏样本中记录的应用标识、应用类别、调整记录、操作频率、输入频率等信息确定用户的使用习 惯,从而确定N个应用分屏时的预设排列规则。
作为一种示例,该M个应用与上述N个应用完全相同。
作为另一种示例,该M个应用与上述N个应用中的至少一个不同。例如,应用i与应用j不同,但是应用i与应用j的应用类型相同,或者应用i与应用j的操作频率和/或输入频率等一致。其中,在本申请实施例照中,一致是指相同或者相差在一定范围之内。
在一种可能的实现方式中,上述N个应用与上述M个应用分别相同,且历史分屏样本包括电子设备在历史分屏显上述M个应用(即上述N个应用)时,记录的该M个应用的标识和用户对M个分屏区域的调整;上述电子设备根据历史分屏样本确定N个应用的预设排列规则:包括:电子设备根据历史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的M个应用的排列规则相同。在N个应用(如应用A、应用B和应用C)与历史分屏样本中的M个应用(如应用A、应用B和应用C)完全相同时,电子设备可以根据历史分屏样本直接确定N个应用的预设排列规则,即N个应用中应用A与历史分屏样本中应用A所在的区域相同、N个应用中应用B与历史分屏样本中应用B所在的区域相同、N个应用中应用C与历史分屏样本中应用C所在的区域相同。
在一种可能的实现方式中,上述N个应用与上述M个应用的应用类别分别相同,且历史分屏样本包括电子设备在历史分屏显示上述M个应用时,记录的该M个应用的应用类别和用户对M个分屏区域的调整;上述电子设备根据历史分屏样本确定N个应用的预设排列规则:包括:电子设备根据历史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的、对应类别应用的排列规则相同。在N个应用与M个应用的应用类别分别相同时,例如N个应用中的应用A1与M个应用中的应用A2的应用类别相同、N个应用中的应用B1与M个应用中的应用B2的应用类别相同、N个应用中的应用C1与M个应用中的应用C2的应用类别相同时,电子设备可以根据N个应用的应用类别确定相应分屏区域,例如N个应用中应用A1与历史分屏样本中应用A2所在的区域相同、N个应用中应用B1与历史分屏样本中应用B2所在的区域相同、N个应用中应用C1与历史分屏样本中应用C2所在的区域相同。
可以理解,不同类别的应用由于其内容、操作方法、作用等的不同,对于用户来说,在分屏时在不同分屏区域的使用便捷程度不同。例如,视频类应用相比于即时通信类应用,其操作性较低,因此,对于用户来说,在视频类应用和即时通信类应用分屏时,更倾向于在靠近用户手指的分屏区域显示即时通信类应用。基于此,在用户有多任务分屏显示需求时,根据应用类别进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述历史分屏样本包括电子设备在历史分屏显示上述M个应用时,记录的上述N个应用的操作频率和/或输入频率和用户对M个分屏区域的调整,且上述N个应用与上述M个应用的操作频率和/或输入频率分别一致;上述电子设备根据历史分屏样本确定N个应用的预设排列规则:包括:电子设备根据历 史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的、操作频率或输入频率一致的应用的排列规则相同。在N个应用与M个应用的操作频率和/或输入频率分别一致时,例如N个应用中的应用A1与M个应用中的应用A2的操作频率和输入频率一致、N个应用中的应用B1与M个应用中的应用B2的操作频率和输入频率一致、N个应用中的应用C1与M个应用中的应用C2的操作频率和输入频率一致时,电子设备可以根据N个应用的操作频率和输入频率确定相应分屏区域,例如N个应用中应用A1与历史分屏样本中应用A2所在的区域相同、N个应用中应用B1与历史分屏样本中应用B2所在的区域相同、N个应用中应用C1与历史分屏样本中应用C2所在的区域相同。
在一种可能的实现方式中,上述历史分屏样本包括电子设备运行上述N个应用时,记录的上述M个应用的操作频率和/或输入频率;上述电子设备获取N个应用对应的目标分屏模板,包括:电子设备根据N个应用的操作频率和/或输入频率,结合电子设备上不同分屏区域的操作便捷程度,获取N个应用对应的目标分屏模板;其中,上述N个应用中,操作频率和/或输入频率高的应用对应电子设备上方便操作的分屏区域。
可以理解,对于用户来说,在不同操作频率和/或输入频率的应用在分屏时,更倾向于在靠近用户手指的分屏区域显示操作频率和/或输入频率较高的应用。基于此,在用户有多任务分屏显示需求时,根据应用操作频率和/或输入频率进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述方法还包括:电子设备在将上述N个应用分别对应地显示在上述N个分屏区域中时,获取该N个应用的应用状态,应用状态用于表征应用当前或者预设时间段内的活动情况;电子设备根据N个应用的应用状态,调整N个应用的预设排列规则。通过结合应用状态进行临时分屏布局调整,可以推测用户在使用应用过程中的一些临时扩大窗口的需求,能够更好的贴合用户的习惯,满足用户的需求。
在一种可能的实现方式中,上述方法还包括:电子设备在通过上述N个分屏区域显示N个应用的过程中,根据以下中的一个或多个更新目标分屏模板:用户对上述N个分屏区域的调整、电子设备的场景信息、上述N个应用的操作频率、上述N个应用的输入频率;其中,用户对上述N个分屏区域的调整包括以下中的一种或多种:用户增加或减少分屏区域、用户对N个分屏区域中至少一个分屏区域位置的调整、用户对N个分屏区域中至少一个分屏区域尺寸的调整、用户对N个分屏区域中至少一个分屏区域所对应的应用或应用类别的调整。基于该方法,电子设备可以不断通过分析学习,获取更加贴合用户使用习惯的分屏模板,以提供更加贴合用户使用习惯的应用分屏服务。
在一种可能的实现方式中,上述目标分屏模板是预设初始模板。在一些情况下,例如电子设备未获取到根据用户使用习惯生成的分屏样本时,采用在预设初始模板中的N个分屏区域中显示N个应用,以保证多任务分屏的智能化、自动化。
第二方面,提供一种电子设备,该电子设备包括:处理单元,用于运行N个应用(其中N≥2,N为整数),以及获取该N个应用对应的目标分屏模板,其中目标分屏模板包括N个分屏区域,该N个分屏区域的大小不同,且该N个分屏区域按照N个应用的预设排列规则排布。显示单元,用于基于上述N个应用的预设排列规则,将上述N个应用分别显示在目标分屏模板中,N个分屏区域中的对应区域。
上述第二方面提供的方案,电子设备可以在运行多个应用时,获取已有的,与该多个应用的预设排列规则对应的目标分屏模板,以通过在目标分屏模板的多个分屏区域显示上述多个应用,实现智能化、自动化的多任务分屏体验。
其中,上述预设排列规则可以用于表征用户的使用习惯。示例性的,上述预设排列规则可以由电子设备在历史多任务分屏使用过程中,根据用户对分屏区域和/或分屏应用等的调整,和/或其它相关信息确定。
例如,电子设备可以在用户使用电子设备进行多任务分屏一段时间后,记录用户的使用习惯,例如根据用户的分屏操作记录得到多个分屏样本(即历史分屏样本),以及将分屏样本与其所涉及的任务关联。之后,在用户有多任务分屏显示需求时,根据与任务组合相关联的分屏样本确定预设排列规则,进而进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
示例性的,电子设备还可以包括:分屏记录单元,用于将分屏样本与对应应用组合相关联。其中,一个分屏样本中包括相同应用组合的多个分屏模板。
示例性的,处理单元具体可以用于:获取与N个应用相关联的分屏样本,进而确定N个应用的预设排列规则。
在一种可能的实现方式中,上述处理单元运行N个应用,包括:响应于接收到用户打开第一应用组合的操作,处理单元运行N个应用;其中,第一应用组合包括所述N个应用。本申请支持多种形式的多任务启动方式,例如用户可以以一键打开应用组合的形式启动多个应用。
在一种可能的实现方式中,上述处理单元运行N个应用,包括:在接收用户分别打开上述N个应用的操作后,处理单元运行N个应用。本申请支持多种形式的多任务启动方式,例如用户可以以逐一打开应用的形式启动多个应用。
在一种可能的实现方式中,上述处理单元获取N个应用对应的目标分屏模板,包括:在接收到用户触发分屏显示N个应用的操作后,处理单元获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如用户可以手动触发多任务分屏。
在一种可能的实现方式中,上述处理单元获取N个应用对应的目标分屏模板,包括:处理单元在运行N个应用时,自动获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如电子设备可以在同时运行多个应用时自动触发多任务分屏。
在一种可能的实现方式中,上述处理单元获取N个应用对应的目标分屏模板,包括:处理单元接受智慧推荐,获取N个应用对应的目标分屏模板。本申请支持多种形式的多任务分屏触发方式,例如电子设备可以接受智慧推荐触发多任务分屏。示 例性的,智慧推荐如分屏相关应用的推荐。
在一种可能的实现方式中,上述处理单元具体用于:获取历史分屏样本;根据历史分屏样本确定N个应用的预设排列规则;以及,根据N个应用的预设排列规则获取N个应用对应的目标分屏模板。本申请中,电子设备可以基于历史分屏样本确定用户的使用习惯,从而确定N个应用分屏时的预设排列规则。
可以理解,用户在使用电子设备进行多应用分屏显示的过程中的历史分屏样本(例如历史分屏调整记录)可以反映用户的使用习惯。基于此,在用户有多任务分屏显示需求时,根据与任务组合相关联的分屏样本进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述历史分屏样本包括电子设备在历史分屏显示M个应用时,记录的以下中的一种或多种:该M个应用的标识、M个应用的应用类别、用户对M个分屏区域的调整、M个应用的操作频率、M个应用的输入频率,M≥2,M为整数。其中,M=N。本申请中,电子设备可以基于历史分屏样本中记录的应用标识、应用类别、调整记录、操作频率、输入频率等信息确定用户的使用习惯,从而确定N个应用分屏时的预设排列规则。
作为一种示例,该M个应用与上述N个应用完全相同。
作为另一种示例,该M个应用与上述N个应用中的至少一个不同。例如,应用i与应用j不同,但是应用i与应用j的应用类型相同,或者应用i与应用j的操作频率和/或输入频率等一致。其中,在本申请实施例照中,一致是指相同或者相差在一定范围之内。
在一种可能的实现方式中,上述N个应用与上述M个应用分别相同,且历史分屏样本包括电子设备在历史分屏显上述M个应用(即上述N个应用)时,记录的该M个应用的标识和用户对M个分屏区域的调整;上述处理单元根据历史分屏样本确定N个应用的预设排列规则:包括:处理单元根据历史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的M个应用的排列规则相同。在N个应用(如应用A、应用B和应用C)与历史分屏样本中的M个应用(如应用A、应用B和应用C)完全相同时,电子设备可以根据历史分屏样本直接确定N个应用的预设排列规则,即N个应用中应用A与历史分屏样本中应用A所在的区域相同、N个应用中应用B与历史分屏样本中应用B所在的区域相同、N个应用中应用C与历史分屏样本中应用C所在的区域相同。
在一种可能的实现方式中,上述N个应用与上述M个应用的应用类别分别相同,且历史分屏样本包括电子设备在历史分屏显示上述M个应用时,记录的该M个应用的应用类别和用户对M个分屏区域的调整;上述处理单元根据历史分屏样本确定N个应用的预设排列规则:包括:处理单元根据历史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的、对应类别应用的排列规则相同。在N个应用与M个应用的应用类别分别相同时,例如N个应用中的应用A1与M个应用中的应用A2的应用类别相同、N个应用中的应用B1与M个应用中的应用B2的应用类别相同、N个应用中的应用C1与M个应用中的应用C2的应 用类别相同时,电子设备可以根据N个应用的应用类别确定相应分屏区域,例如N个应用中应用A1与历史分屏样本中应用A2所在的区域相同、N个应用中应用B1与历史分屏样本中应用B2所在的区域相同、N个应用中应用C1与历史分屏样本中应用C2所在的区域相同。
可以理解,不同类别的应用由于其内容、操作方法、作用等的不同,对于用户来说,在分屏时在不同分屏区域的使用便捷程度不同。例如,视频类应用相比于即时通信类应用,其操作性较低,因此,对于用户来说,在视频类应用和即时通信类应用分屏时,更倾向于在靠近用户手指的分屏区域显示即时通信类应用。基于此,在用户有多任务分屏显示需求时,根据应用类别进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述历史分屏样本包括电子设备在历史分屏显示上述M个应用时,记录的上述N个应用的操作频率和/或输入频率和用户对M个分屏区域的调整,且上述N个应用与上述M个应用的操作频率和/或输入频率分别一致;上述处理单元根据历史分屏样本确定N个应用的预设排列规则:包括:处理单元根据历史分屏样本确定N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的、操作频率或输入频率一致的应用的排列规则相同。在N个应用与M个应用的操作频率和/或输入频率分别一致时,例如N个应用中的应用A1与M个应用中的应用A2的操作频率和输入频率一致、N个应用中的应用B1与M个应用中的应用B2的操作频率和输入频率一致、N个应用中的应用C1与M个应用中的应用C2的操作频率和输入频率一致时,电子设备可以根据N个应用的操作频率和输入频率确定相应分屏区域,例如N个应用中应用A1与历史分屏样本中应用A2所在的区域相同、N个应用中应用B1与历史分屏样本中应用B2所在的区域相同、N个应用中应用C1与历史分屏样本中应用C2所在的区域相同。
在一种可能的实现方式中,上述历史分屏样本包括电子设备运行上述N个应用时,记录的上述M个应用的操作频率和/或输入频率;上述处理单元获取N个应用对应的目标分屏模板,包括:处理单元根据N个应用的操作频率和/或输入频率,结合电子设备上不同分屏区域的操作便捷程度,获取N个应用对应的目标分屏模板;其中,上述N个应用中,操作频率和/或输入频率高的应用对应电子设备上方便操作的分屏区域。
可以理解,对于用户来说,在不同操作频率和/或输入频率的应用在分屏时,更倾向于在靠近用户手指的分屏区域显示操作频率和/或输入频率较高的应用。基于此,在用户有多任务分屏显示需求时,根据应用操作频率和/或输入频率进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
在一种可能的实现方式中,上述处理单元还用于:在将上述N个应用分别对应地显示在上述N个分屏区域中时,获取该N个应用的应用状态,应用状态用于表征应用当前或者预设时间段内的活动情况;以及,根据N个应用的应用状态,调整N 个应用的预设排列规则。通过结合应用状态进行临时分屏布局调整,可以推测用户在使用应用过程中的一些临时扩大窗口的需求,能够更好的贴合用户的习惯,满足用户的需求。
在一种可能的实现方式中,上述处理单元还用于:在通过上述N个分屏区域显示N个应用的过程中,根据以下中的一个或多个更新目标分屏模板:用户对上述N个分屏区域的调整、电子设备的场景信息、上述N个应用的操作频率、上述N个应用的输入频率;其中,用户对上述N个分屏区域的调整包括以下中的一种或多种:用户增加或减少分屏区域、用户对N个分屏区域中至少一个分屏区域位置的调整、用户对N个分屏区域中至少一个分屏区域尺寸的调整、用户对N个分屏区域中至少一个分屏区域所对应的应用或应用类别的调整。基于该方法,电子设备可以不断通过分析学习,获取更加贴合用户使用习惯的分屏模板,以提供更加贴合用户使用习惯的应用分屏服务。
在一种可能的实现方式中,上述目标分屏模板是预设初始模板。在一些情况下,例如电子设备未获取到根据用户使用习惯生成的分屏样本时,采用在预设初始模板中的N个分屏区域中显示N个应用,以保证多任务分屏的智能化、自动化。
第三方面,提供一种电子设备,该电子设备包括:存储器,用于存储计算机程序;显示器,用于显示界面;处理器,用于执行所述计算机程序,使得电子设备实现如第一方面任一种可能的实现方式中的方法。
第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序代码,该计算机程序代码被处理器执行时,使得处理器实现如第一方面任一种可能的实现方式中的方法。
第五方面,提供一种芯片系统,该芯片系统包括处理器、存储器,存储器中存储有计算机程序代码;所述计算机程序代码被所述处理器执行时,使得处理器实现如第一方面任一种可能的实现方式中的方法。该芯片系统可以由芯片构成,也可以包含芯片和其它分立器件。
第六方面,提供一种计算机程序产品,该计算机程序产品包括计算机指令。当该计算机指令在计算机上运行时,使得计算机实现如第一方面任一种可能的实现方式中的方法。
附图说明
图1为一种常规的多任务分屏显示过程示意图;
图2为本申请实施例提供的一种电子设备形态示意图;
图3为本申请实施例提供的一种电子设备的硬件结构示意图;
图4为本申请实施例提供的一种分屏显示方法流程图;
图5为本申请实施例提供的一种电子设备中分屏相关功能单元示意图;
图6为本申请实施例提供的一种初始分屏排布规则示意图;
图7为本申请实施例提供的两种初始分屏排布规则示意图;
图8为本申请实施例提供的确定与第二应用组合相关联的分屏样本的流程图;
图9为本申请实施例提供的两种应用窗口位置方案示意图;
图10为本申请实施例提供的一种应用窗口尺寸调整示意图;
图11为本申请实施例提供的两种分屏样本选择界面示意图;
图12为本申请实施例提供的一种用户双手握持姿势下的手持热区示意图;
图13为本申请实施例提供的四种区域标签设置示意图;
图14为本申请实施例提供的三种应用组合选择界面示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供一种分屏显示方法,该方法用于电子设备分屏显示多任务界面的过程中。
其中,本申请实施例中,电子设备包括一个或多个显示屏。电子设备分屏显示多任务界面时,该电子设备可以在显示屏的多个互不重叠的显示区域(也称分屏区域)显示多个任务界面。针对每一个显示区域,电子设备都可以响应于用户在该显示区域的操作,在该显示区域显示用户的操作所触发的界面。其中,电子设备在一个显示区域接收的用户操作,并不会触发其它显示区域的显示内容的变化。
或者,电子设备分屏显示多任务界面时,多个任务界面中的至少一个任务界面可以以弹窗、气泡等形式在电子设备的显示屏上显示,本申请不限定多个任务界面在电子设备上的具体显示形式。
作为一种示例,在本申请实施例中,任务界面可以是应用程序(application,APP)界面,小程序界面,轻应用(也称快应用)界面,也可以是电子设备原生功能界面等其它类型的任务界面,本申请不限定。
在一些实施例中,电子设备显示屏的不同的显示区域可以显示不同应用或小程序的界面。例如,电子设备的显示屏上可以分屏显示视频播放界面和
Figure PCTCN2022136165-appb-000001
聊天界面,以方便用户在看电影的同时,与朋友
Figure PCTCN2022136165-appb-000002
聊天。
在另一些实施例中,上述多个互不重叠的显示区域中的部分或全部显示区域,也可以显示同一应用或小程序的界面。例如,电子设备的显示屏上分屏显示
Figure PCTCN2022136165-appb-000003
公众号界面和
Figure PCTCN2022136165-appb-000004
聊天界面,以方便用户在阅读
Figure PCTCN2022136165-appb-000005
公众号的同时,与朋友
Figure PCTCN2022136165-appb-000006
聊天。
作为一种示例,电子设备可以包括但不限定于个人计算机(personal computer,PC)、智能手机、上网本、平板电脑、电子白板、智能手表、智能手环、电话手表、智能相机、掌上电脑、个人数字助理(personal digital assistant,PDA)、便携式多媒体播放器(portable multimedia player,PMP)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、电视机或人机交互场景中的体感游戏机 等。
作为一种示例,智能手机如双屏手机。其中,双屏手机包括但不限于折叠屏手机(如图2中的(a)所示)或者正反屏手机(如图2中的(b)所示)。如图2中的(a)和图2中的(b)所示,双屏手机包括第一屏和第二屏。折叠屏手机包括外折折叠屏手机(如图2中的(a)所示)和内折折叠屏手机。本申请对电子设备的具体功能和结构不做限定。
请参考图3,图3以智能手机为例,示出了本申请实施例提供的一种电子设备的硬件结构示意图。如图3所示,电子设备可以包括处理器310,存储器(包括外部存储器接口320和内部存储器321),通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395等。其中传感器模块380可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器310可以包括一个或多个处理单元。例如:处理器310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),飞行控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器310的等待时间,因而提高了系统的效率。
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块340用于从充电器接收充电输入。电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管 理模块340的输入,为处理器310,内部存储器321,显示屏394,摄像头393,和无线通信模块360等供电。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频段。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块350可以提供应用在电子设备上的包括2G/3G/4G/5G/6G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块350的至少部分功能模块可以被设置于处理器310中。在一些实施例中,移动通信模块350的至少部分功能模块可以与处理器310的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频装置(不限于扬声器370A、受话器370B等)输出声音信号,或通过显示屏394显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器310,与移动通信模块350或其它功能模块设置在同一个器件中。
无线通信模块360可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如WiFi网络),蓝牙(Bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得电子设备可以通过无线通信技术与网络以及其它设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution, LTE),新无线(new radio,NR),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)等。
电子设备通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏394用于显示图像,视频等。显示屏394包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏394,N为大于1的正整数。如图2中的(b)所示,电子设备包括2个显示屏。
在本申请实施例中,电子设备可以通过GPU进行多个应用的界面渲染,通过显示屏394进行包括有多个应用界面的多任务分屏界面显示等。
电子设备可以通过ISP,摄像头293,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。
外部存储器接口320可以用于连接外部存储卡,例如微型(micro)存储(storage card,SD)卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口320与处理器310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器321可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的程序等。存储数据区可存储电子设备使用过程中所创建的数据等。此外,内部存储器321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器310通过运行存储在内部存储器321的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备的各种功能应用以及数据处理。
在本申请实施例中,内部存储器321可以用于缓存其它设备中文件对应的文件缩略图。
电子设备可以通过音频模块370,扬声器370A,受话器370B,麦克风370C以及应用处理器等实现音频功能。例如音乐播放,录音等。关于音频模块370,扬声器370A,受话器370B和麦克风370C的具体工作原理和作用,可以参考常规技术中的 介绍。
按键390包括开机键,音量键等。按键390可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。
需要说明的是,图3所示电子设备包括的硬件模块只是示例性地描述,并不对电子设备的具体结构做出限定。例如,若电子设备是PC,那么电子设备还可以包括键盘、鼠标等部件。
为了提供更加便捷、智能化、自动化的多任务分屏体验,本申请实施例提供一种分屏显示方法,该方法可以在电子设备运行多个,如N个(其中N≥2,N为整数)应用时,确定该N个应用的预设排列规则,从而根据N个应用的预设排列规则获取已有的,与该多个应用对应的目标分屏模板。其中,目标分屏模板中N个分屏区域的尺寸不同。目标分屏模板中N个分屏区域与应用具有对应关系。例如,目标分屏模板中N个分屏区域按照上述N个应用的预设排列规则排布。基于目标分屏模板,可以实现上述多个应用在在上述N个分屏区域上的显示。
进一步的,在一些实施例中,为了提供更加贴合用户使用需求或习惯的多任务分屏体验,本申请实施例的分屏显示方法可以在用户使用电子设备进行多任务分屏一段时间后,根据用户的分屏操作记录得到多个分屏样本(即历史分屏样本),以及将分屏样本与其所涉及的任务关联。之后,在用户有多任务分屏显示需求时,从多个分屏样本中确定与任务组合相关联的分屏样本,从而确定当前多个任务的预设排列规则,完成分屏布局。
其中,分屏显示的任务如应用、小程序、轻应用、原生功能任务等各种类型的任务,本申请不限定。以下实施例以多应用分屏显示作为示例,介绍本申请实施例提供的一种分屏显示方法。关于其它类型任务的分屏显示过程,可以参考应用界面的分屏显示方法。
示例性的,在本申请实施例中,电子设备中安装了多个应用程序(APP,以下简称应用),包括第三方APP和/或操作系统内置的系统级APP,以满足用户的娱乐、社交、学习、理财、办公、出行等需求。用户可以通过触控、手势、语音等方式与电子设备交互,例如打开电子设备上的应用。响应于接收到用户打开多个应用的操作,电子设备可以基于本申请实施例提供的一种分屏显示方法分屏显示多个应用。
以下将结合附图,对本申请实施例提供的一种分屏显示方法做具体介绍。
在一些实施例中,在电子设备首次执行多个应用(如第一应用组合中多个应用)的分屏显示任务时,电子设备可以按照初始分屏排布规则,如预设初始模板指示的分屏排布规则作为预设排列规则排布第一应用组合中多个应用,从而进行任务分屏。
以电子设备首次执行多个应用(如第一应用组合中多个应用)的分屏显示任务时,按照初始分屏排布规则进行任务分屏为例,如图4所示,本申请实施例提供的一种分屏显示方法可以包括S401-S406:
S401:电子设备按照初始分屏排布规则分屏显示第一应用组合中多个应用的界面。
其中,第一应用组合包括M个应用,M≥2,M为整数。
示例性的,在本申请实施例中,电子设备首次执行第一应用组合中多个应用的分屏显示任务的情况可以包括但不限于:电子设备首次接收到第一应用组合(如第一应用+第二应用+第三应用的组合)的分屏显示任务、电子设备的使用时长小于预设值(如1小时)、电子设备进行应用窗口的位置和/或尺寸调整的次数小于预设值(如10次)等。
可以理解,若电子设备之前没有处理过某一应用组合的分屏显示任务,则电子设备未记录关于该应用组合的分屏样本,因此无法根据与该应用组合相关联的分屏样本确定分屏布局。若电子设备的使用时长小于预设值(如1小时),那么可以理解电子设备为新机,由此可以判断电子设备中分屏样本很少,则很难找到与应用组合相关联的分屏样本。电子设备进行应用窗口的位置和/或尺寸调整的次数小于预设值(如10次),则可以判断电子设备中分屏样本较少,则根据分屏样本确定分屏布局的可靠性不高。
例如,响应于接收到用户首次打开第一应用组合中多个应用的操作,电子设备可以自动按照初始分屏排布规则分屏显示第一应用组合中多个应用的界面。其中,初始分屏排布规则即第一应用组合中多个应用的预设排列规则。
其中,用户首次打开第一应用组合中多个应用的操作如用户首次分别打开多个应用的操作,或者用户首次对如图14中的(a)、图14中的(b)或图14中的(c)所示界面上某一推荐的应用组合选项的选择操作。
又如,响应于接收到用户首次触发分屏显示第一应用组合中多个应用的操作,电子设备可以按照初始分屏排布规则分屏显示第一应用组合中多个应用的界面。
作为一种示例,初始分屏排布规则用于规定初始分屏显示多个任务界面时,多个任务界面所在窗口的位置和尺寸。初始分屏排布规则可以在电子设备出厂时预先设置在电子设备中,或者由用户自定义设置,本申请实施例不限定。初始分屏排布规则如预设初始模板所指示的分屏排布规则。
示例性的,初始分屏排布规则可以包括但不限于主区域+子区域分屏排布规则,平均显示分屏排布规则等,本申请不限定,视具体出厂设置或用户设置而定。
例如,图6示出了一种主区域+子区域的分屏排布规则。如图6所示,在用户打开多个应用时,其中一个应用(如第一应用)窗口显示在主区域,其余应用(如第二应用、第三应用和第四应用)窗口显示在子区域。主区域和子区域的具体位置和尺寸可以由用户设置,也可以由电子设备按照打开时间、用户习惯等因素自行确定。
需要说明的是,图6仅以多个子区域平均除主区域以外的其它显示屏区域为例,多个子区域的尺寸也可以不相同,视具体出厂设置或用户设置而定。
又如,图7示出了两种平均显示分屏排布规则。如图7中的(a)和图7中的(b)所示,在用户打开多个应用时,多个显示区域的大小均等。多个应用所在的窗口分别显示在该多个显示区域。作为一种示例,电子设备可以根据用户打开多个应用的顺序,按照从上到下、从左到右的顺序,在多个显示区域显示对应应用窗口。
作为一种示例,本申请实施例提供的一种分屏显示方法可以基于电子设备中的多个分屏相关功能单元实现。如图5所示,电子设备可以包括分屏记录单元510、分屏样本库520、标签单元530、初始规则库540、规则确定单元550和处理单元560。
示例性的,电子设备可以通过图5所示初始规则库540保存初始分屏排布规则。
作为一种示例,图5所示初始规则库540可以位于电子设备的存储单元(如图3所示内部存储器321)。
S402:电子设备在分屏显示第一应用组合中多个应用的界面时,接收用户对以下中的一种或多种的调整,得到分屏样本:应用窗口数量、应用窗口位置、应用窗口尺寸、应用窗口所对应的应用类别。
在本申请实施例中,一个分屏样本与一个应用组合相对应。一个分屏样本包括一个应用组合对应的一个或多个分屏记录。例如,用户对多个应用分屏显示过程中的分屏操作,对应一个分屏记录,因此一个分屏记录与一个任务组合(如应用组合)相对应。相同应用组合的多个分屏记录,组成一个分屏样本。
通常,在电子设备为用户提供多任务分屏服务时,若多个应用窗口在显示屏上的分屏排布不符合用户意图,用户会对应用窗口数量、应用窗口位置、应用窗口尺寸、应用窗口所对应的应用类别等进行调整,直到满意为止。因此,基于用户的上述调整得到的分屏样本,可以反映用户在使用分屏过程中的使用习惯。其中,应用窗口数量调整如增加窗口和/或减小窗口。示例性的,在本申请实施例中,用户对应用窗口进行位置调整如用户拖动应用窗口,用户对应用窗口进行尺寸调整如用户拉拽应用窗口的边,具体操作视电子设备的输入方式而定,本申请实施例不作限定。
作为一种实现方式,电子设备可以记录以下中的一种或多种:分屏显示的多个应用的标识,应用类别,应用操作频率/输入频率,以及用户对多个应用窗口的位置和/或尺寸调整的具体信息,以此作为该应用组合的一个分屏记录。示例性的,应用的标识如应用名称、应用身份号(identity,ID)等。用户对多个应用窗口的位置和/或尺寸调整的具体信息可以包括多个应用窗口的位置信息和尺寸信息。例如,电子设备可以以多个应用窗口所在的分屏区域四个角的坐标的形式,记录多个应用窗口的位置信息和尺寸信息。
进一步的,在一些实施例中,分屏样本还可以包括分屏记录对应的次数。例如,若在不同时间,如时间1与时间2,用户对相同应用组合的窗口调整相同,则这两次分屏记录相同,该分屏记录对应的次数是2。
在一些实施例中,对相同应用组合的窗口调整相同是指对相同应用组合的位置和尺寸调整大致相同(如误差小于预设值)。
可以理解,用户在不同时间,对相同应用组合的窗口进行手动调整后,各应窗口的位置和/或尺寸即使在视觉上非常接近,但是反映到像素上时,各应窗口覆盖的像素点也可能会不同。因此,在另一些实施例中,对相同应用组合的窗口调整相同是指对相同应用组合的位置和尺寸调整都完全相同。对于这种情况,如果多次调整后,位置和尺寸中任一不同,则得到不同的分屏记录。
在一些实施例中,电子设备还可以在分屏显示第一应用组合中多个应用的界面时,在分屏样本中记录以下中的一个或多个:电子设备的场景信息、分屏显示的应用的历史使用信息、分屏显示的应用的操作频率和/或输入频率与分屏区域的对应关系、分屏显示的应用当前或者预设时间段内的活动情况。
以电子设备具有图5所示功能单元结构为例,示例性的,电子设备可以通过图5 所示分屏记录单元510记录用户的分屏操作,得到分屏样本。
S403:电子设备将第一应用组合与分屏样本相关联。
作为一种可能的实现方式,电子设备可以将第一应用组合中多个应用的标识(即多个应用的标识组合)与分屏样本相关联。其中,应用的标识如应用名称、应用ID等。
例如,假设第一应用是
Figure PCTCN2022136165-appb-000007
第二应用是
Figure PCTCN2022136165-appb-000008
第三应用是
Figure PCTCN2022136165-appb-000009
电子设备可以将
Figure PCTCN2022136165-appb-000010
的应用组合与对应分屏样本相关联。
作为另一种可能的实现方式,电子设备可以通过自动为分屏样本添加标签,将第一应用组合与分屏样本相关联,例如以多个应用的应用标签的标签组合作为所述分屏样本的标签。
作为一种示例,电子设备可以根据应用商店中的相关信息确定应用标签,以根据第一应用组合中多个应用的标签为分屏样本添加标签,将第一应用组合与分屏样本相关联。
例如,电子设备可以根据应用商店中的应用类别确定应用标签。其中,应用类别如视频类(如
Figure PCTCN2022136165-appb-000011
等应用)、即时通讯类(如
Figure PCTCN2022136165-appb-000012
等应用)、新闻资讯类(如
Figure PCTCN2022136165-appb-000013
等应用)、阅读类(如
Figure PCTCN2022136165-appb-000014
Figure PCTCN2022136165-appb-000015
等应用)、文档编辑类(如
Figure PCTCN2022136165-appb-000016
等应用)、购物类(如
Figure PCTCN2022136165-appb-000017
Figure PCTCN2022136165-appb-000018
等应用)、理财类(如
Figure PCTCN2022136165-appb-000019
等应用)等。示例性的,由于
Figure PCTCN2022136165-appb-000020
Figure PCTCN2022136165-appb-000021
Figure PCTCN2022136165-appb-000022
在应用商店中的类别分别是视频类应用、视频类应用和即时通信类应用,则电子设备可以为
Figure PCTCN2022136165-appb-000023
Figure PCTCN2022136165-appb-000024
这一应用组合对应的分屏样本添加“视频类应用+视频类应用+即时通信类应用”标签。
作为另一种示例,电子设备可以根据电子设备的历史使用信息确定应用标签,以根据第一应用组合中多个应用的标签为分屏样本添加标签,将第一应用组合与分屏样本相关联。其中,电子设备的历史使用信息用于表征但不限于电子设备运行应用的时间、次数、历史操作等信息,电子设备运行应用时应用调用其它应用或功能的时间、次数、历史操作等信息。
例如,若历史使用信息表明电子设备运行某一应用的频率较高,即某一应用的操作频率较高,则电子设备可以为该应用添加“高频操作”标签;若历史使用信息表明电子设备运行某一应用的频率较低,则电子设备可以为该应用添加“低频操作”标签。又如,若历史使用信息表明电子设备运行某一应用时调用输入法的频率较高,即某一应用的输入频率较高,则电子设备可以为该应用添加“高频输入”标签;若历史使用信息表明电子设备运行某一应用时调用输入法的频率较低,则电子设备可以为该应用添加“低频输入”标签。由于
Figure PCTCN2022136165-appb-000025
Figure PCTCN2022136165-appb-000026
的标签分别是“低频输入”、低频输入”和“高频输入”,则电子设备可以为
Figure PCTCN2022136165-appb-000027
Figure PCTCN2022136165-appb-000028
这一应用组合对应的分屏样本添加“低频输入+低频输入+高频输入”标签。
示例性的,电子设备可以根据电子设备运行某一应用时,对该应用的操作间隔时间为该应用添加标签,如若操作间隔时间<(或者≤)第一预设值,则为其添加“高频操作”标签,若操作间隔时间≥(或者>)第一预设值,则为其添加“低频操作”标签。或者,电子设备可以根据电子设备运行某一应用时,该应用调用输入法的间隔时间为 该应用添加标签,如若调用输入法间隔时间<(或者≤)第二预设值,则为其添加“高频输入”标签,若调用输入法间隔时间≥(或者>)第二预设值,则为其添加“低频输入”标签。
需要说明的是,上述根据应用商店中的相关信息确定应用标签以及根据电子设备的历史使用信息确定应用标签仅作为两种为应用添加标签的示例,本申请不限定具体方法。例如,电子设备还可以根据其它信息为应用添加标签,如场景信息(如运动状态、位置、时间和手机姿态等)等。又如,电子设备还可以结合应用商店中的相关信息和电子设备的历史使用信息等多种数据为应用添加标签,对于这种情况,作为一种示例,应用标签可以是标签组合,如“视频软件+高频操作”。
以电子设备具有图5所示功能单元结构为例,示例性的,电子设备可以通过图5所示标签单元530为分屏样本添加标签。其中,分屏样本的标签如分屏样本对应的多个应用的应用标签组合,或者分屏样本对应的多个应用的应用标识组合。
可以理解,通过上述S401-S403,电子设备的每一次多任务分屏显示过程,均可以生成分屏样本。
进一步的,在本申请实施例中,电子设备可以保存上述分屏样本。以电子设备具有图5所示功能单元结构为例,分屏样本可以保存在图5所示电子设备的分屏样本库520中。
作为一种示例,图5所示分屏样本库520可以位于电子设备的存储单元(如图3所示内部存储器321)。
可以理解,当分屏样本库中分屏样本的数量样本达到设定值(设定值≥1)时,如果用户再发起多任务分屏显示,电子设备就可以根据已有的分屏样本确定多任务的分屏布局,以得到尽可能符合用户需求的分屏结果。如果用户对电子设备根据确定的分屏布局显示的多任务分屏界面不满意,则用户会再进行手动调整。在用户进行手动调整的过程中,电子设备可以再次执行上述S402-S403,充实分屏样本中的分屏记录。
S404:在运行第二应用组合中多个应用时,电子设备确定与第二应用组合相关联的分屏样本。
其中,第二应用组合包括N个应用,N≥2,N为整数。
例如,电子设备可以响应于接收到用户打开第二应用组合中多个应用的操作,自动确定与第二应用组合相关联的分屏样本。
其中,用户打开第一应用组合中多个应用的操作如用户分别打开第二应用组合中多个(如N个)应用的操作,或者用户对如图14中的(a)、图14中的(b)或图14中的(c)所示界面上某一推荐的应用组合选项的选择操作。
又如,电子设备响应于接收到用户触发分屏显示第二应用组合中多个应用的操作,确定与第二应用组合相关联的分屏样本。
又如,电子设备可以接受智慧推荐,确定与第二应用组合相关联的分屏样本。
作为一种可能的实现方式,如图8中S801所示,电子设备可以根据第二应用组合中多个应用的应用标识(如标识组合),从电子设备之前得到的分屏样本(如分屏样本库)中,查找与第二应用组合相关联的分屏样本。
例如,假设用户已经打开了
Figure PCTCN2022136165-appb-000029
Figure PCTCN2022136165-appb-000030
两个应用,若用户再打开
Figure PCTCN2022136165-appb-000031
应 用,则电子设备可以根据
Figure PCTCN2022136165-appb-000032
Figure PCTCN2022136165-appb-000033
的应用标识,从分屏样本库中查找与该应用组合相关联的分屏样本。
作为一种可能的情况,如图8所示,电子设备根据第二应用组合中多个应用的应用标识(如标识组合)进行查找,匹配到与第二应用组合相关联的分屏样本。对于这种情况,如图8中S802所示,电子设备根据与该第二应用组合相关联的分屏样本,继续执行以下S405。
作为另一种可能的情况,如图8所示,电子设备根据第二应用组合中多个应用的应用标识(如标识组合)进行查找,未匹配到与第二应用组合相关联的分屏样本。对于这种情况,如图8中S803所示,电子设备可以进一步根据第二应用组合中多个应用的应用标签,从分屏样本库中,查找与该第二应用组合相关联的分屏样本。
在一些实施例中,一个应用可能会有一个标签。对于这种情况,应用组合对应一个标签组合,电子设备可以根据应用组合对应的标签组合,从电子设备之前得到的分屏样本(如分屏样本库)中,查找与第二应用组合相关联的分屏样本。
例如,假设
Figure PCTCN2022136165-appb-000034
(即第一应用)的标签是“视频类应用”,
Figure PCTCN2022136165-appb-000035
(即第二应用)的标签是“即时通讯类应用”,
Figure PCTCN2022136165-appb-000036
(即第三应用)的标签是“阅读类应用”,那么
Figure PCTCN2022136165-appb-000037
Figure PCTCN2022136165-appb-000038
应用组合对应的标签组合有1种,即“视频类应用+即时通信类应用+阅读类应用”。假设第二应用组合与第一应用组合相同,在用户再次打开
Figure PCTCN2022136165-appb-000039
(即第一应用)、
Figure PCTCN2022136165-appb-000040
(即第二应用)和
Figure PCTCN2022136165-appb-000041
(即第三应用)的应用组合时,电子设备可以根据
Figure PCTCN2022136165-appb-000042
Figure PCTCN2022136165-appb-000043
应用组合对应的标签组合(即“视频类应用+即时通信类应用+阅读类应用”),从电子设备之前得到的分屏样本库中,查找与该应用组合相关联的分屏样本。
在另一些实施例中,一个应用可能会包括多个标签。对于这种情况,应用组合对应多个标签组合,电子设备可以根据应用组合对应的所有标签组合,从电子设备之前得到的分屏样本(如分屏样本库)中可能会查找到多个相匹配的分屏样本。
例如,假设
Figure PCTCN2022136165-appb-000044
(即第一应用)的标签包括“视频类应用”、“低频操作”和“低频输入”,
Figure PCTCN2022136165-appb-000045
(即第二应用)的标签包括“即时通讯类应用”、“高频操作”和“高频输入”,
Figure PCTCN2022136165-appb-000046
(即第三应用)的标签包括“阅读类应用”、“高频操作”和“低频输入”,那么
Figure PCTCN2022136165-appb-000047
Figure PCTCN2022136165-appb-000048
应用组合对应的标签组合有27种。假设第二应用组合与第一应用组合相同,即在用户再次打开
Figure PCTCN2022136165-appb-000049
(即第一应用)、
Figure PCTCN2022136165-appb-000050
(即第二应用)和
Figure PCTCN2022136165-appb-000051
(即第三应用)的应用组合时,电子设备可以根据
Figure PCTCN2022136165-appb-000052
Figure PCTCN2022136165-appb-000053
应用组合对应的该27种标签组合,从电子设备之前得到的分屏样本库中,查找与该应用组合相关联的分屏样本。
若电子设备根据第二应用组合中多个应用的应用标签(如标签组合)进行查找,匹配到与第二应用组合相关联的分屏样本,则如图8中S802所示,电子设备根据与第二应用组合相关联的分屏样本,确定N个应用的预设排列规则。
对于电子设备根据标签组合匹配到多个分屏样本的情况,电子设备可以采用以下方式1-方式4中任意一种方法确定与上述第二应用组合相关联的分屏样本:
方式1:电子设备以最近的分屏样本作为与第二应用组合相关联的分屏样本。其中,最近的分屏样本即距离当前时刻最近的分屏样本。
方式2:电子设备根据多个分屏样本对应的匹配度,确定与第二应用组合相关联的分屏样本。例如,以对应匹配度最高的分屏样本作为与第二应用组合相关联的分屏样本。
其中,匹配度用于表征分屏样本能够匹配的标签组合的数量。例如,假设
Figure PCTCN2022136165-appb-000054
的标签包括“即时通讯类应用”、“高频操作”和“高频输入”,
Figure PCTCN2022136165-appb-000055
的标签包括“视频类应用”、“低频操作”和“低频输入”,
Figure PCTCN2022136165-appb-000056
的标签包括“阅读类应用”、“高频操作”和“低频输入”,那么与
Figure PCTCN2022136165-appb-000057
Figure PCTCN2022136165-appb-000058
相关联的分屏样本能够与27种标签组合相匹配,则该分屏样本的匹配度为27。
方式3:电子设备根据匹配到的多个分屏样本综合确定与第二应用组合相关联的分屏样本。
示例性的,电子设备可以根据匹配到的多个分屏样本种,预设时间内(如一年内、半年内、一个月内、一周内等)的多个分屏样本综合确定与第二应用组合相关联的分屏样本。
或者,电子设备可以先根据匹配到的多个分屏样本确定第二应用组合中多个应用窗口的相对位置,再确定该多个应用窗口的尺寸。
例如,假设电子设备根据匹配到的多个分屏样本,分析得到图9所示两种应用窗口位置方案:方案1和方案2,则可以确定第二应用窗口位于显示屏右上角区域。然后,电子设备可以根据某一应用位于显示屏左半边的分屏样本数量和位于显示屏右下角的分屏样本数量进一步确定采用图9所示方案1还是方案2。例如,假设应用位于显示屏左半边的分屏样本数量是9,位于显示屏右下角的分屏样本数量是1,则电子设备可以确定第二应用组合中多个应用窗口的相对位置如方案1所示。
作为一种示例,在确定多个应用窗口的尺寸时,电子设备可以根据窗口尺寸的调整记录,选择用户最偏爱的窗口尺寸。例如,当第三应用窗口位于显示屏右下角时,若用户调节第三应用窗口的右侧边缘和底部边缘,那么边缘像素明显在某一列/行像素附近集中分布,则可以先设定该列/行像素为第三应用窗口的右侧边缘和底部边缘。
进一步的,在确定完成第二应用组合中多个应用窗口的尺寸之后,电子设备可以自适应调整多个窗口的边缘,使相邻边缘重合。示例性的,若两个应用窗口的相邻边缘之间有间隙,可以以间隙的中间像素作为两个应用窗口的新边缘;若两个应用窗口的边缘有重叠,可以以重叠处的中间像素作为两个应用窗口的新边缘。
如图10所示,第一应用窗口和第二应用窗口、第三应用窗口均存在重叠,且第二应用窗口和第三应用窗口的相邻边缘之间有间隙,则电子设备可以在第一应用窗口和第二应用窗口、第一应用窗口和第三应用窗口的重叠区域,确定出中间列像素(如图10所示虚线a),作为第一应用窗口的右边缘,同时作为第二应用窗口和第三应用窗口的左边缘。以及,电子设备可以在第二应用窗口和第三应用窗口相邻边缘之间的间隙找中确定出中间行像素(如图10所示虚线b),作为第二应用窗口和第三应用窗口的分界。
方式4:电子设备向用户展示匹配到的多个分屏样本的相关信息,供用户选择。
例如,电子设备可以以图11中的(a)所示图标的形式,向用户展示匹配到的多 个分屏样本所表示的应用窗口分布,也可以以图11中的(b)所示悬浮可滑动页面的形式,向用户展示匹配到的多个分屏样本所表示的应用窗口分布,本申请实施例不限定具体展示形式。
进一步的,响应于接收到用户对多个分屏样本中一个分屏样本的选择操作,电子设备以该分屏样本作为与上述第二应用组合相关联的分屏样本。示例性的,用户对多个分屏样本中一个分屏样本的选择操作如用户对图11中的(a)所示界面上某一应用窗口分布图标的点击操作,又如用户对图11中的(b)所示界面上某一悬浮可滑动页面的点击操作。不申请不限定用户对多个分屏样本中一个分屏样本的选择操作的具体形式,例如用户还可以通过语音指令、预设手势、眼球关注等方式进行分屏样本选择操作。
以电子设备具有图5所示功能单元结构为例,示例性的,电子设备可以通过图5所示规则确定单元550确定与第二应用组合相关联的分屏样本。
S405:电子设备根据与第二应用组合相关联的分屏样本确定第二应用组合的预设排列规则。
可以理解,由于分屏样本中的分屏记录记录了和应用组合相关联的分屏信息,例如多个应用的窗口位置和尺寸等,因此,在确定与上述第二应用组合相关联的分屏样本之后,便确定了第二应用组合中多个应用的窗口在显示屏上可能的位置和尺寸,即确定了第二应用组合的预设排列规则。
在一些实施例中,假设第二应用组合与第一应用组合相同,即第二应用组合中的N个应用与第一应用组合中的M个应用分别相同,且与第二应用组合相关联的分屏样本包括电子设备在历史分屏显示第一应用组合时,记录的第一应用组合中M个应用的标识和用户对分屏区域的调整,电子设备可以根据与第二应用组合相关联的分屏样本直接确定第二应用组合中N个应用的预设排列规则。例如,假设第一应用组合和第二应用组合中均包括应用A、应用B和应用C,电子设备根据与第二应用组合相关联的分屏样本可以确定第一应用组合中应用A与分屏样本中应用A所在的区域相同、第一应用组合中应用B与分屏样本中应用B所在的区域相同、第一应用组合中应用C与分屏样本中应用C所在的区域相同。
在一些实施例中,假设第二应用组合与第一应用组合中应用的应用类别分别相同,且与第二应用组合相关联的分屏样本包括电子设备在历史分屏显示第一应用组合时,记录的第一应用组合中M个应用的应用类别和用户对M个分屏区域的调整,电子设备可以根据第二应用组合中N个应用的应用类别确定相应分屏区域。例如,假设第一应用组合包括应用A2、应用B2和应用C2,第二应用组合包括A1、应用B1和应用C1,电子设备根据与第二应用组合相关联的分屏样本确定第二应用组合中应用A1与分屏样本中应用A2所在的区域相同、应用B1与分屏样本中应用B2所在的区域相同、应用C1与分屏样本中应用C2所在的区域相同。
在一些实施例中,假设与第二应用组合相关联的分屏样本包括电子设备在历史分屏显示第一应用组合时,记录的第一应用组合中M个应用的操作频率和/或输入频率和用户对M个分屏区域的调整,且第二应用组合与第一应用组合中应用的操作频率和/或输入频率分别一致,电子设备可以根据与第二应用组合相关联的分屏样本确定 N个应用的预设排列规则与历史分屏样本中,用户对M个分屏区域调整后的、操作频率或输入频率一致的应用的排列规则相同。例如,假设第一应用组合包括应用A2、应用B2和应用C2,第二应用组合包括A1、应用B1和应用C1,若应用A1与应用A2的操作频率和输入频率一致、应用B1与应用B2的操作频率和输入频率一致、应用C1与应用C2的操作频率和输入频率一致时,电子设备根据与第二应用组合相关联的分屏样本确定第二应用组合中应用A1与分屏样本中应用A2所在的区域相同、应用B1与分屏样本中应用B2所在的区域相同、应用C1与分屏样本中应用C2所在的区域相同。
S406:电子设备基于第二应用组合的预设排列规则,显示第二应用组合中的多个应用。
示例性的,电子设备可以根据确定的位置和尺寸获取第二应用组合对应的目标分屏模板,并基于第二应用组合对应的目标分屏模板,自动调整第二应用组合中多个应用的窗口在显示屏上的分布,并刷新界面。
以电子设备具有图5所示功能单元结构为例,示例性的,电子设备可以通过图5所示规则确定单元550根据与第二应用组合相关联的分屏样本确定第二应用组合中多个应用的窗口在显示屏上可能的位置和尺寸。
作为一种可能的情况,与第二应用组合相关联的分屏样本包括一种分屏记录,对于这种情况,电子设备可以根据该分屏记录,确定第二应用组合中多个应用的窗口在显示屏上的位置和尺寸(即确定第二应用组合的预设排列规则)。
作为另一种可能的情况,与第二应用组合相关联的分屏样本包括多种分屏记录,对于这种情况,电子设备可以采用与上述方式1-方式4类似的方式确定一种分屏记录。例如,根据与上述第二应用组合相关联的分屏样本中最近的分屏记录,确定第二应用组合中多个应用的窗口在显示屏上的位置和尺寸(即确定第二应用组合的预设排列规则)。又如,根据与上述第二应用组合相关联的分屏样本中匹配度最高的分屏记录,确定第二应用组合中多个应用的窗口在显示屏上的位置和尺寸(即确定第二应用组合的预设排列规则)。又如,根据与上述第二应用组合相关联的分屏样本中多个分屏记录综合确定第二应用组合中多个应用的窗口在显示屏上的位置和尺寸(即确定第二应用组合的预设排列规则)。又如,向用户展示与上述第二应用组合相关联的分屏样本中多个分屏记录的相关信息,以供用户从中选择。
作为一种可能的情况,如图8所示,若电子设备根据第二应用组合中多个应用的应用标签(如标签组合)进行查找,仍然未匹配到与第二应用组合相关联的分屏样本,则电子设备可以作为一种可能的实现方式,如图8中S804所示,电子设备可以按照初始分屏排布规则显示第二应用组合中的多个应用。
作为另一种可能的实现方式,如图8中S804所示,电子设备可以根据第二应用组合中多个应用的应用标签,结合预先设置的应用标签与屏幕(即显示屏)区域标签的对应关系显示第二应用组合中的多个应用。其中,应用标签与屏幕区域标签的对应关系可以在电子设备出厂时预先设置在电子设备中,或者由用户自定义,本申请实施例不限定。
其中,应用标签与屏幕区域标签的对应关系可以基于人手在显示屏各个区域操作 的便捷程度确定。请参考图12,图12示出了一种用户双手握持姿势下的手持热区示意图。如图12所示,区域1和区域2为用户双手握持姿势下轻松可触及的区域;区域3为用户双手握持姿势下需要费力才能触及的区域,或者需要稍微变换握持姿势才能触及的区域;区域4为用户双手握持姿势下无法触及的区域,用户需要抬起一只手才能触及区域4。
基于人手在显示屏各个区域操作的便捷程度,电子设备可以确定显示屏上的观看区、灵活区和操作区。其中,观看区通常是用户无法触及的区域,灵活区通常是用户需要费力才能触及的区域,操作区通常是用户轻松可触及的区域。
以图12所示用户双手握持姿势下的手持热区为例,对于右利手用户,如图13所示,电子设备在左右二分屏时,显示屏左半边区域的标签为观看区,右半边区域的标签为操作区;电子设备在上下二分屏时,显示屏上半部分的标签为观看区,下半部分的标签为操作区。电子设备在三分屏时,显示屏右下角的标签为操作区,右上角或者左下角的标签为灵活区,其它区域的标签为观看区。
其中,图13仅以右利手用户为例,示出了一种电子设备根据用户在显示屏各个区域操作的便捷程度进行屏幕区域标签确定示例。本申请不限定具体显示屏区域的具体标签,视具体情况而定。例如,对于左利手用户,用户在显示屏各个区域操作的便捷程度与右利手用户不同。又如,对于横屏状态和竖屏状态,电子设备相同屏幕区域的具体标签也会不同。
作为一种示例,在本申请实施例中,电子设备中预先设置的应用标签与屏幕区域标签的对应关系可以如以下表1所示:
表1
Figure PCTCN2022136165-appb-000059
以表1所示应用标签与屏幕区域标签的对应关系为例,示例性的,假设
Figure PCTCN2022136165-appb-000060
的标签包括“视频类应用”、“低频操作”和“低频输入”,
Figure PCTCN2022136165-appb-000061
的标签包括“即时通讯类应用”、“高频操作”和“高频输入”,
Figure PCTCN2022136165-appb-000062
的标签包括“阅读类应用”、“高频操作”和“低频输入”,电子设备根据
Figure PCTCN2022136165-appb-000063
(即第一应用)、
Figure PCTCN2022136165-appb-000064
(即第二应用)和
Figure PCTCN2022136165-appb-000065
Figure PCTCN2022136165-appb-000066
(即第三应用)应用组合的应用标签进行查找,未匹配到与应用组合相关联的分屏样本,那么电子设备可以根据表1所示应用标签与屏幕区域标签的对应关系,确定
Figure PCTCN2022136165-appb-000067
Figure PCTCN2022136165-appb-000068
对应显示屏上的观看区、
Figure PCTCN2022136165-appb-000069
对应显示屏上的操作区、
Figure PCTCN2022136165-appb-000070
对应显示屏上的灵活区。
进一步的,在本申请实施例中,电子设备还可以在根据与第二应用组合相关联的分屏样本显示第二应用组合中的多个应用的过程中,根据以下中的一个或多个更新分屏样本库或者分屏模板:用户的调整、电子设备的场景信息、第二应用组合中应用的历史使用信息。其中,用户的调整包括以下中的一种或多种:用户增加或减少分屏区 域、用户对至少一个分屏区域位置的调整、用户对至少一个分屏区域尺寸的调整、用户对至少一个分屏区域所对应的应用或应用类别的调整。
以电子设备具有图5所示功能单元结构为例,示例性的,电子设备可以通过图5所示处理单元560,根据与第二应用组合相关联的分屏样本,将第二应用组合中的多个应用的应用界面加载到对应的分屏窗口。
需要说明的是,图5仅以分屏记录单元510、和标签单元530和规则确定单元550独立于处理单元560作为示例。在一些实施例中,分屏记录单元510、和标签单元530和规则确定单元550中的一个或多个还可以位于处理单元560中。其中,处理单元560如图3所示处理器310。
可以理解,本申请实施例提供的一种分屏显示方法可以在用户使用电子设备进行多任务分屏一段时间后,记录用户的使用习惯,例如根据用户的分屏操作记录得到多个分屏样本,以及将分屏样本与其所涉及的任务关联。之后,在用户有多任务分屏显示需求时,确定与任务组合相关联的分屏样本,从而进行多任务分屏。该方案可以实现多任务自动分屏布局,减少用户手动分屏的次数。并且,基于本申请实现的多任务在显示屏上的显示位置和大小符合用户的习惯,提升用户的多任务分屏体验。
进一步的,本申请实施例提供的一种分屏显示方法可以通过为任务添加标签,以标签形式将分屏样本与其所涉及的任务关联,增加了任务组合的匹配范围,能够更加灵活的匹配到用户的历史分屏样本,同时能够更好的从历史分屏样本中筛选得到合适的记录,以此确定的分屏布局更符合用户的习惯。
进一步的,本申请实施例提供的一种分屏显示方法可以在根据应用组合的组合标签未匹配到分屏样本时,根据多个应用的应用标签,结合预先设置的应用标签与屏幕区域标签的对应关系确定第二应用组合的预设排列规则,以此获取的目标分屏模板所对应的分屏布局更贴合用户的习惯。
为了使电子设备确定的分屏布局更贴合用户的习惯,在一些实施例中,电子设备还可以结合其它相关信息确定分屏布局或者进行分屏布局调整。示例性的,其它相关信息包括以下中的一种或多种:场景信息、应用状态。
以下将对电子设备结合几种常见相关信息进行分屏布局确定举例介绍:
1、场景信息
其中,场景信息可以包括但不限定于:用户的运动状态(如静止、步行、跑步、开车等)、用户的位置(如家、公司、景区、商场、学校、车站、会议室等)、时间信息(如工作日、周末、工作时间、休息时间、用餐时间、睡眠时间、会议时间等)和手机姿态(如横屏、竖屏等)。作为一种示例,场景信息可以由电子设备根据通过传感器、定位装置等采集到的数据,电子设备的模式设置、日历、备忘录设置、时钟等分析得到。例如,电子设备根据定位装置采集到的位置信息可以得到用户的位置,根据传感器采集的数据可以得到用户的运动状态和手机姿态等,根据日历、备忘录设置、时钟等可以得到时间信息。关于场景信息的具体确定手段和具体方法可以参考常规数据中的介绍,本申请实施例不做赘述。
可以理解,在不同运动状态、不同位置、不同时间和不同手机姿态下,用户对多应用分屏的需求有各自的特点。例如,在工作时间,用户通常偏向于将工作相关应用 (如
Figure PCTCN2022136165-appb-000071
邮箱等)显示在显示屏上最便于操作的区域,且偏向于窗口更大一些,而在休息时间,用户通常偏向于将休闲相关应用(如视频类应用、阅读类应用等)显示在显示屏上最便于操作的区域,且偏向于窗口更大一些。基于此,电子设备可以结合场景信息,确定分屏布局。使得确定的分屏布局更加契合用户当前的场景。
例如,假设用户在中午12:00在公司同时打开了聊天应用和购物应用,与聊天应用和购物应用相关联的分屏样本包括两种不同的分屏记录:分屏记录1和分屏记录2。其中,在分屏记录1中,聊天应用在左侧显示,购物应用在右侧显示;在分屏记录2中,购物应用在左侧显示,聊天应用在右侧显示。分屏记录1中同时记录有场景信息是时间:晚上20:00-22:00,地点:家;分屏记录2中同时记录有场景信息是时间:中午12:00-13:00,地点:公司。由于电子设备的当前场景(时间:中午12:00,地点:公司)与分屏记录2的场景信息更加吻合,因此电子设备可以确定根据分屏记录2确定分屏布局。
本申请实施例通过结合场景信息综合进行个性化分屏,使得分屏布局更加契合用户当前的场景下的使用习惯,进一步提升应用分屏使用体验。
2、应用状态
其中,应用状态用于表征应用当前或者预设时间段内的活动情况。例如,应用当前是否接收到消息,应用窗口是否接收到用户的操作(如点击、长按等),应用是否接收到用户的输入等。可以理解,若当前或者预设时间段内用户对某一应用有操作、输入,或者应用接收到了消息,则可以推测用户接下来对该应用会比较关注。基于此,在应用状态满足第一预设条件时,电子设备可以根据与应用组合相关联的分屏样本,结合应用状态,确定分屏布局。示例性的,第一预设条件如预设应用接收到操作、输入或者接收到消息等。
例如,电子设备可以在
Figure PCTCN2022136165-appb-000072
接收到消息后,在与应用组合相关联的分屏样本所表示的应用窗口分布的基础上,临时调整分屏布局,扩大
Figure PCTCN2022136165-appb-000073
应用窗口。
进一步的,电子设备可以在已临时调整分屏的应用的应用状态满足第二预设条件时,恢复之前的分屏布局。示例性的,第二预设条件如预设时长(如3秒)内未接收到操作、未接收到输入、未接收到消息,或者消息发送成功等。
本申请实施例通过结合应用状态进行临时分屏布局调整,可以推测用户在使用应用过程中的一些临时扩大窗口的需求,能够更好的贴合用户的习惯,满足用户的需求。
需要说明的是,电子设备在确定分屏布局时,还可以结合多种其它相关信息综合进行分屏规则确定或调整。例如,电子设备可以根据与应用组合相关联的分屏样本,结合场景信息和状态信息,综合分析确定或调整分屏布局。
在本申请一些实施例中,为了为用户提供更加智能化的多任务分屏体验,示例性的,电子设备可以为用户提供多任务组合推荐服务。例如,电子设备可以向用户展示一个或多个推荐的应用组合。其中,上述多个推荐的应用组合可以由电子设备根据但不限于以下中的一种或多种确定:分屏样本的匹配度、场景信息、状态信息。
例如,假设电子设备确定用户当前的运动状态是开车,那么电子设备可以向用户推荐地图应用+音乐应用的应用组合。又如,假设电子设备确定当前时间是休息时 间、用餐时间或者周末,那么电子设备可以向用户推荐聊天应用+新闻应用的应用组合,或者聊天应用+视频应用的应用组合,供用户从中选择。又如,假设电子设备确定当前位置是车站,那么电子设备可以向用户推荐移动支付应用+健康码小程序的应用组合。又如,假设电子设备确定当前位置是商场,那么电子设备可以向用户推荐移动支付应用+消费点评应用+购物应用的应用组合。
示例性的,电子设备可以以图14中的(a)所示文字的形式,向用户展示多个推荐的应用组合,本申请实施例不限定具体展示形式。
在一些实施例中,电子设备还可以在向用户展示多个推荐的应用组合的同时,向用户展示应用组合的应用窗口分布。示例性的,电子设备可以以图14中的(b)所示图标的形式,图14中的(c)所示悬浮可滑动页面的形式,向用户展示多个推荐的应用组合以及应用组合的应用窗口分布,本申请实施例不限定具体展示形式。
其中,电子设备可以基于本申请上述实施例提供的确定分屏布局的方法,如根据应用标识从分屏样本库中匹配、根据应用标签组合从分屏样本库中匹配,或者根据初始分屏排布规则,或者结合预先设置的应用标签与屏幕区域标签的对应关系,或者结合历史应用组合频率等,确定向用户展示多个推荐的应用组合的应用窗口分布。具体可以参考上述实施例。
作为一种示例,电子设备可以在设备解锁后,在主界面上显示上述多个推荐的应用组合。
进一步的,电子设备可以响应于接收到用户对多个推荐的应用组合中任意应用组合的选择操作,运行该应用组合中的多个应用。示例性的,用户对多个推荐的应用组合中任意应用组合的选择操作如用户对图14中的(a)、图14中的(b)或图14中的(c)所示界面上某一应用组合选项的点击操作。不申请不限定用户对多个分屏样本中一个分屏样本的选择操作的具体形式,例如用户还可以通过语音指令、预设手势、眼球关注等方式进行应用组合选择操作。
在本申请实施例中,电子设备通过向用户推荐应用组合,以方便用户一键打开多应用分屏,提升用户的多任务分屏体验。
可以理解的是,电子设备为了实现上述任一个实施例的功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请中图4对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
应理解,电子设备中的各个模块可以通过软件和/或硬件形式实现,对此不作具体限定。换言之,电子设备是以功能模块的形式来呈现。这里的“模块”可以指特定应 用集成电路ASIC、电路、执行一个或多个软件或固件程序的处理器和存储器、集成逻辑电路,和/或其它可以提供上述功能的器件。
在一种可选的方式中,当使用软件实现数据传输时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地实现本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其它可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线((digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如软盘、硬盘、磁带)、光介质(例如数字化视频光盘(digital video disk,DVD))、或者半导体介质(例如固态硬盘solid state disk(SSD))等。
结合本申请实施例所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于电子设备或SSD中。当然,处理器和存储介质也可以作为分立组件存在于电子设备中。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。

Claims (34)

  1. 一种分屏显示方法,其特征在于,所述方法包括:
    电子设备运行N个应用,所述N≥2,N为整数;
    所述电子设备获取所述N个应用对应的目标分屏模板,所述目标分屏模板包括N个分屏区域,所述N个分屏区域的大小不同,且所述N个分屏区域按照所述N个应用的预设排列规则排布;
    基于所述N个应用的预设排列规则,所述电子设备将所述N个应用分别对应地显示在所述N个分屏区域中。
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备运行N个应用,包括:
    响应于接收到用户打开第一应用组合的操作,所述电子设备运行所述N个应用;
    其中,所述第一应用组合包括所述N个应用。
  3. 根据权利要求1所述的方法,其特征在于,所述电子设备运行N个应用,包括:
    所述电子设备接收用户分别打开所述N个应用的操作,运行所述N个应用。
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述电子设备获取所述N个应用对应的目标分屏模板,包括:
    所述电子设备接收用户触发分屏显示所述N个应用的操作,获取所述N个应用对应的目标分屏模板。
  5. 根据权利要求1-3中任一项所述的方法,其特征在于,所述电子设备获取所述N个应用对应的目标分屏模板,包括:
    所述电子设备在运行所述N个应用时,自动获取所述N个应用对应的目标分屏模板。
  6. 根据权利要求1-3中任一项所述的方法,其特征在于,所述电子设备获取所述N个应用对应的目标分屏模板,包括:
    所述电子设备接受智慧推荐,获取所述N个应用对应的目标分屏模板。
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述电子设备获取所述N个应用对应的目标分屏模板,包括:
    所述电子设备获取历史分屏样本;
    所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则;
    所述电子设备根据所述N个应用的预设排列规则获取所述N个应用对应的目标分屏模板。
  8. 根据权利要求7所述的方法,其特征在于,
    所述历史分屏样本包括所述电子设备在历史分屏显示M个应用时,记录的以下中的一种或多种:所述M个应用的标识、所述M个应用的应用类别、用户对M个分屏区域的调整、所述M个应用的操作频率、所述M个应用的输入频率,所述M≥2,M为整数。
  9. 根据权利要求8所述的方法,其特征在于,所述N个应用与所述M个应用分 别相同,且所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述M个应用的标识和用户对M个分屏区域的调整;所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则:包括:
    所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的所述M个应用的排列规则相同。
  10. 根据权利要求8所述的方法,其特征在于,所述N个应用与所述M个应用的应用类别分别相同,且所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述M个应用的应用类别和用户对M个分屏区域的调整;所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则:包括:
    所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的、对应类别应用的排列规则相同。
  11. 根据权利要求8所述的方法,其特征在于,所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述N个应用的操作频率和/或输入频率和用户对M个分屏区域的调整,且所述N个应用与所述M个应用的操作频率和/或输入频率分别一致;所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则:包括:
    所述电子设备根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的、操作频率或输入频率一致的应用的排列规则相同。
  12. 根据权利要求6所述的方法,其特征在于,所述历史分屏样本包括所述电子设备运行所述N个应用时,记录的所述M个应用的操作频率和/或输入频率;所述电子设备获取所述N个应用对应的目标分屏模板,包括:
    所述电子设备根据所述N个应用的操作频率和/或输入频率,结合所述电子设备上不同分屏区域的操作便捷程度,获取所述N个应用对应的目标分屏模板;
    其中,所述N个应用中,操作频率和/或输入频率高的应用对应所述电子设备上方便操作的分屏区域。
  13. 根据权利要求1-12中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在将所述N个应用分别对应地显示在所述N个分屏区域中时,获取所述N个应用的应用状态,所述应用状态用于表征应用当前或者预设时间段内的活动情况;
    所述电子设备根据所述N个应用的应用状态,调整所述N个应用的预设排列规则。
  14. 根据权利要求1-13中任一项所述的方法,其特征在于,所述方法还包括:
    所述电子设备在将所述N个应用分别对应地显示在所述N个分屏区域中的过程中,根据以下中的一个或多个更新所述目标分屏模板:用户对所述N个分屏区域的调整、所述电子设备的场景信息、所述N个应用的操作频率、所述N个应用的输入频率;
    其中,所述用户对所述N个分屏区域的调整包括以下中的一种或多种:用户增加或减少分屏区域、用户对所述N个分屏区域中至少一个分屏区域位置的调整、用户对所述N个分屏区域中至少一个分屏区域尺寸的调整、用户对所述N个分屏区域中至少一个分屏区域所对应的应用或应用类别的调整。
  15. 根据权利要求1-14中任一项所述的方法,其特征在于,所述目标分屏模板是预设初始模板。
  16. 一种电子设备,其特征在于,所述电子设备包括:
    处理单元,用于运行N个应用,所述N≥2,N为整数;以及,
    获取所述N个应用对应的目标分屏模板,所述目标分屏模板包括N个分屏区域,所述N个分屏区域的大小不同,且所述N个分屏区域按照所述N个应用的预设排列规则排布;
    显示单元,用于基于所述N个应用的预设排列规则,在所述N个分屏区域中的对应区域分别显示所述N个应用。
  17. 根据权利要求16所述的电子设备,其特征在于,所述处理单元运行所述N个应用,包括:
    响应于接收到用户打开第一应用组合的操作,所述处理单元运行所述N个应用;
    其中,所述第一应用组合包括所述N个应用。
  18. 根据权利要求17所述的电子设备,其特征在于,所述处理单元运行所述N个应用,包括:
    在接收到用户分别打开所述N个应用的操作之后,所述处理单元运行所述N个应用。
  19. 根据权利要求16-18中任一项所述的电子设备,其特征在于,所述处理单元获取所述N个应用对应的目标分屏模板,包括:
    在接收到用户触发分屏显示所述N个应用的操作之后,所述处理单元获取所述N个应用对应的目标分屏模板。
  20. 根据权利要求16-18中任一项所述的电子设备,其特征在于,所述处理单元获取所述N个应用对应的目标分屏模板,包括:
    所述处理单元在运行所述N个应用时,自动获取所述N个应用对应的目标分屏模板。
  21. 根据权利要求16-18中任一项所述的电子设备,其特征在于,所述处理单元获取所述N个应用对应的目标分屏模板,包括:
    所述处理单元接受智慧推荐,获取所述N个应用对应的目标分屏模板。
  22. 根据权利要求16-18中任一项所述的电子设备,其特征在于,所述处理单元获取所述N个应用对应的目标分屏模板,包括:
    所述处理单元获取历史分屏样本,根据所述历史分屏样本确定所述N个应用的预设排列规则,以及根据所述N个应用的预设排列规则获取所述N个应用对应的目标分屏模板。
  23. 根据权利要求22所述的电子设备,其特征在于,
    所述历史分屏样本包括所述电子设备在历史分屏显示M个应用时,记录的以下中的一种或多种:所述M个应用的标识、所述M个应用的应用类别、用户对M个分屏区域的调整、所述M个应用的操作频率、所述M个应用的输入频率,所述M≥2,M为整数。
  24. 根据权利要求23所述的电子设备,其特征在于,所述N个应用与所述M个应用分别相同,且所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述M个应用的标识和用户对M个分屏区域的调整;所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则,包括:
    所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的所述M个应用的排列规则相同。
  25. 根据权利要求23所述的电子设备,其特征在于,所述N个应用与所述M个应用的应用类别分别相同,且所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述M个应用的应用类别和用户对M个分屏区域的调整;所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则,包括:
    所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的、对应类别应用的排列规则相同。
  26. 根据权利要求23所述的电子设备,其特征在于,所述历史分屏样本包括所述电子设备在历史分屏显示所述M个应用时,记录的所述N个应用的操作频率和/或输入频率和用户对M个分屏区域的调整,且所述N个应用与所述M个应用的操作频率和/或输入频率分别一致;所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则,包括:
    所述处理单元根据所述历史分屏样本确定所述N个应用的预设排列规则与所述与历史分屏样本中,用户对所述M个分屏区域调整后的、操作频率或输入频率一致的应用的排列规则相同。
  27. 根据权利要求22所述的电子设备,其特征在于,所述历史分屏样本包括所述电子设备运行所述N个应用时,记录的所述M个应用的操作频率和/或输入频率;所述处理单元获取所述N个应用对应的目标分屏模板,包括:
    所述处理单元根据所述N个应用的操作频率和/或输入频率,结合所述电子设备上不同分屏区域的操作便捷程度,获取所述N个应用对应的目标分屏模板;
    其中,所述N个应用中,操作频率和/或输入频率高的应用对应所述电子设备上方便操作的分屏区域。
  28. 根据权利要求16-27中任一项所述的电子设备,其特征在于,所述处理单元还用于:
    在将所述N个应用分别对应地显示在所述N个分屏区域中时,获取所述N个应用的应用状态,所述应用状态用于表征应用当前或者预设时间段内的活动情况;以及,
    根据所述N个应用的应用状态,调整所述N个应用的预设排列规则。
  29. 根据权利要求16-28中任一项所述的电子设备,其特征在于,所述处理单元还用于:
    在将所述N个应用分别对应地显示在所述N个分屏区域中的过程中,根据以下中的一个或多个更新所述目标分屏模板:用户对所述N个分屏区域的调整、所述电子设备的场景信息、所述N个应用的操作频率、所述N个应用的输入频率;
    其中,所述用户对所述N个分屏区域的调整包括以下中的一种或多种:用户增加或减少分屏区域、用户对所述N个分屏区域中至少一个分屏区域位置的调整、用户对所述N个分屏区域中至少一个分屏区域尺寸的调整、用户对所述N个分屏区域中至少一个分屏区域所对应的应用或应用类别的调整。
  30. 根据权利要求16-29中任一项所述的电子设备,其特征在于,所述目标分屏模板是预设初始模板。
  31. 一种电子设备,其特征在于,所述电子设备包括:
    存储器,用于存储计算机程序;
    显示器,用于显示界面;
    处理器,用于执行所述计算机程序,使得所述电子设备实现如权利要求1-15中任一项所述的方法。
  32. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序代码,所述计算机程序代码被处理电路执行时实现如权利要求1-15任一项所述的方法。
  33. 一种芯片系统,其特征在于,所述芯片系统包括处理电路、存储介质,所述存储介质中存储有计算机程序代码;所述计算机程序代码被所述处理电路执行时实现如权利要求1-15中任一项所述的方法。
  34. 一种计算机程序产品,其特征在于,所述计算机程序产品用于在计算机上运行,以实现如权利要求1-15中任一项所述的方法。
PCT/CN2022/136165 2021-12-06 2022-12-02 一种分屏显示方法及电子设备 WO2023103902A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111481374.6 2021-12-06
CN202111481374.6A CN116225353A (zh) 2021-12-06 2021-12-06 一种分屏显示方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023103902A1 true WO2023103902A1 (zh) 2023-06-15

Family

ID=86587935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136165 WO2023103902A1 (zh) 2021-12-06 2022-12-02 一种分屏显示方法及电子设备

Country Status (2)

Country Link
CN (1) CN116225353A (zh)
WO (1) WO2023103902A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140157163A1 (en) * 2012-11-30 2014-06-05 Hewlett-Packard Development Company, L.P. Split-screen user interface
CN106201171A (zh) * 2016-06-27 2016-12-07 联想(北京)有限公司 一种分屏显示方法及电子设备
CN108958633A (zh) * 2018-07-11 2018-12-07 Oppo广东移动通信有限公司 分屏显示方法、装置、存储介质及电子设备
CN110244893A (zh) * 2019-05-05 2019-09-17 华为技术有限公司 一种分屏显示的操作方法及电子设备
CN110727381A (zh) * 2019-09-03 2020-01-24 华为技术有限公司 一种切换应用的方法及电子设备
CN110727382A (zh) * 2019-09-06 2020-01-24 华为技术有限公司 一种分屏显示方法及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140157163A1 (en) * 2012-11-30 2014-06-05 Hewlett-Packard Development Company, L.P. Split-screen user interface
CN106201171A (zh) * 2016-06-27 2016-12-07 联想(北京)有限公司 一种分屏显示方法及电子设备
CN108958633A (zh) * 2018-07-11 2018-12-07 Oppo广东移动通信有限公司 分屏显示方法、装置、存储介质及电子设备
CN110244893A (zh) * 2019-05-05 2019-09-17 华为技术有限公司 一种分屏显示的操作方法及电子设备
CN110727381A (zh) * 2019-09-03 2020-01-24 华为技术有限公司 一种切换应用的方法及电子设备
CN110727382A (zh) * 2019-09-06 2020-01-24 华为技术有限公司 一种分屏显示方法及电子设备

Also Published As

Publication number Publication date
CN116225353A (zh) 2023-06-06

Similar Documents

Publication Publication Date Title
WO2020238774A1 (zh) 一种通知消息的预览方法及电子设备
WO2020238356A1 (zh) 界面显示方法、装置、终端及存储介质
US11226784B2 (en) Electronic device comprising plurality of displays and method for operating same
US20170205894A1 (en) Method and device for switching tasks
US20160357406A1 (en) Operating method for image and electronic device supporting the same
US20160247034A1 (en) Method and apparatus for measuring the quality of an image
US20200257411A1 (en) Method for providing user interface related to note and electronic device for the same
WO2021088881A1 (zh) 一种选择图片的方法和电子设备
CN112955856A (zh) 在分屏上显示可执行应用的列表的电子装置及其操作方法
US20220358089A1 (en) Learning-Based Keyword Search Method and Electronic Device
WO2021129254A1 (zh) 控制屏幕显示的方法和电子设备
CN111338519A (zh) 一种显示方法及电子设备
US20220366327A1 (en) Information sharing method for smart scene service and related apparatus
WO2022222752A1 (zh) 一种显示方法及相关装置
WO2022135485A1 (zh) 电子设备及其主题设置方法和介质
US20210405767A1 (en) Input Method Candidate Content Recommendation Method and Electronic Device
CN112740148A (zh) 一种向输入框中输入信息的方法及电子设备
WO2023103902A1 (zh) 一种分屏显示方法及电子设备
CN110502169B (zh) 一种显示控制方法及终端
WO2023016050A1 (zh) 一种卡片信息显示方法及电子设备
WO2022068563A1 (zh) 一种历史页面的打开方法、相关设备及计算机存储介质
CN115113780A (zh) 一种页面切换方法、装置和终端设备
CN112230822A (zh) 评论信息的显示方法、装置、终端及存储介质
WO2023045774A1 (zh) 显示方法及电子设备
WO2023174200A1 (zh) 界面显示方法及相关装置

Legal Events

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

Ref document number: 22903324

Country of ref document: EP

Kind code of ref document: A1