Window display method and electronic device
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-06-09
- Publication Date
- 2026-05-07
Smart Images

Figure CN2025099994_07052026_PF_FP_ABST
Abstract
Description
Window display methods and electronic devices
[0001] This application claims priority to Chinese patent application filed on October 29, 2024, with application number 202411527675.1 and entitled "Window Display Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic device technology, and in particular to window display methods and electronic devices. Background Technology
[0003] Currently, electronic devices support multitasking. Multiple application windows can run simultaneously using methods like floating windows to meet user interaction needs. However, in some display schemes, based on the right-handed principle, windows displayed using floating windows are shown on the right side of the screen by default. This display method can cause inconvenience for user interaction with the windows. Summary of the Invention
[0004] This application provides a window display method and an electronic device that can improve the convenience of interaction between users and windows, and make the display of windows or controls more in line with user needs.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, a window display method is provided, applied to an electronic device having a display screen, the method comprising: displaying a banner notification; receiving a first operation performed on a first area of the banner notification on the display screen; when the first operation is performed by a left hand, displaying a floating window corresponding to the banner notification on the left side of the display screen in response to the first operation; or, when the first operation is performed by a right hand, displaying a floating window corresponding to the banner notification on the right side of the display screen in response to the first operation.
[0007] Based on the above technical solution, when a user uses their left hand to access the first area of the banner notification and activate the floating window, the electronic device can display the corresponding floating window on the left. When the user uses their right hand to access the first area of the banner notification and activate the floating window, the electronic device can display the corresponding floating window on the right. This allows the floating window activated via the banner notification to be displayed on the side of the user's hand performing the operation, i.e., on the same side as the interacting hand. This ensures the window is displayed responsively to the user's hand, making it easily accessible and improving the convenience of interaction between the user and the window, thus better meeting the user's needs.
[0008] In one possible design, the first area can be any area of the banner notification. This way, regardless of which area of the banner notification the user interacts with, the electronic device will always display the floating window brought up by the banner notification on the same side as the user's hand, ensuring the window always appears in sync with their hand gesture.
[0009] In one possible design, the first area belongs to the middle area of the banner notification, which also includes a left area and a right area, arranged sequentially from left to right. Alternatively, the banner notification can be divided into left, middle, and right areas from left to right. Only when the first area belongs to the middle area of the banner notification—that is, when the operation to invoke the floating window via the banner notification is performed on the middle area of the banner notification—will the electronic device display the invoked floating window on the same side as the user's hand. In other words, the display position of the floating window invoked via the banner notification is related not only to the user's hand but also to the position of the operation performed by that hand, making the display position of the floating window more aligned with the user's actual needs and improving the convenience of interaction between the user and the window.
[0010] In one possible design, after displaying the banner notification, the method further includes: receiving a second operation performed on a second area of the banner notification on the display screen; when the second area belongs to the left-hand area, in response to the second operation, displaying a floating window corresponding to the banner notification on the left side of the display screen; or, when the second area belongs to the right-hand area, in response to the second operation, displaying a floating window corresponding to the banner notification on the right side of the display screen; wherein the second operation is performed by either the left or right hand. Optionally, the second operation and the first operation can be the same operation, such as both being a single-click operation, or they can be different operations, such as the first operation being a single-click operation and the second operation being a double-click operation, etc. Thus, when a user performs the operation to bring up the floating window on the second area of the banner notification, if the second area is the left-hand area of the banner notification, regardless of whether the user's interaction hand is left-hand or right-hand, the electronic device can display the floating window corresponding to the banner notification on the left side of the display screen. Conversely, if the second area is the right-hand area of the banner notification, regardless of whether the user's interaction hand is left-hand or right-hand, the electronic device can display the floating window corresponding to the banner notification on the right side of the display screen. In other words, the display position of the floating window brought up by the banner notification is not related to the interactive hand, but to the hot zone of the banner notification that the interactive hand is acting on. This makes the floating window brought up by the banner notification more in line with the user's actual needs and improves the convenience of interaction between the user and the window.
[0011] In a second aspect, a window display method is provided, applied to an electronic device having a display screen, the method comprising: displaying a first floating window; receiving a first operation performed on a first area of the display screen; when the first operation is performed by the left hand, in response to the first operation, displaying a second floating window corresponding to the first floating window on the left side of the display screen; or, when the first operation is performed by the right hand, in response to the first operation, displaying a second floating window corresponding to the first floating window on the right side of the display screen; wherein the first floating window is smaller than the second floating window.
[0012] Based on the above technical solution, when a user performs a first operation on the first area of the display screen using their left hand, the electronic device can display a second floating window corresponding to the first floating window on the left side of the display screen. When the user performs the first operation on the first area of the display screen using their right hand, the electronic device can display a second floating window corresponding to the first floating window on the right side of the display screen. The first floating window is smaller than the second floating window, meaning the first operation is used to enlarge the first floating window. This allows the enlarged floating window to be displayed on the side of the hand on which the user performed the enlargement operation, i.e., on the same side as the interacting hand. This makes the enlarged floating window responsive to the hand, making it easily accessible and improving the convenience of interaction between the user and the window, thus better meeting the user's needs.
[0013] In one possible design, the first area can be any display area of the screen. This way, regardless of which area of the screen the user interacts with, the electronic device will always display the enlarged floating window on the same side as the user's hand, ensuring the window always appears in sync with the user's hand gesture.
[0014] In one possible design, the first area belongs to the middle area of the display screen, which also includes a left-side area and a right-side area, arranged sequentially from left to right. Alternatively, the display screen can be divided into left-side, middle, and right-side areas from left to right. Only when the first area belongs to the middle area of the display screen, i.e., when the operation to enlarge the floating window is applied to the middle area, will the electronic device display the enlarged floating window on the same side as the user's hand. In other words, the display position of the enlarged floating window is related not only to the user's hand but also to the position of the operation performed by the hand, making the display position of the enlarged floating window more aligned with the user's actual needs and improving the convenience of interaction between the user and the window.
[0015] In one possible design, after displaying the first floating window, the method further includes: receiving a second operation performed on a second area of the display screen; when the second area belongs to the left-hand area, displaying the second floating window on the left side of the display screen in response to the second operation; or, when the second area belongs to the right-hand area, displaying the second floating window on the right side of the display screen in response to the second operation; wherein the second operation is performed by either the left or right hand. Thus, when a user performs an operation to enlarge the floating window on the second area of the display screen, if the second area is the left-hand area of the display screen, regardless of whether the user uses their left or right hand, the electronic device can display the enlarged floating window on the left side of the display screen. Conversely, if the second area is the right-hand area of the display screen, regardless of whether the user uses their left or right hand, the electronic device can display the enlarged floating window on the right side of the display screen. That is, the display position of the enlarged floating window is independent of the user's hand but depends on the hot zone of the display screen where the user's hand is acting. This allows the enlarged floating window to better meet the user's actual needs and improves the convenience of interaction between the user and the window.
[0016] In one possible design, the first area overlaps with the display area of the first floating window. That is, a first operation performed on the first area of the display screen can also be applied to the first floating window.
[0017] In one possible design, before displaying the second floating window, the display screen also displays a third floating window, the display area of the third floating window overlapping with the display area of the second floating window; when the first operation is performed by the left hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the left side of the display screen, including: when the first operation is performed by the left hand, in response to the first operation, displaying the second floating window on the left side of the display screen and displaying the third floating window on the right side of the second floating window, the display area of the third floating window not overlapping with the display area of the second floating window; or, when the first operation is performed by the right hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the right side of the display screen, including: when the first operation is performed by the right hand, in response to the first operation, displaying the second floating window on the right side of the display screen and displaying the third floating window on the left side of the second floating window, the display area of the third floating window not overlapping with the display area of the second floating window.
[0018] In this way, the electronic device displays a third floating window before the second floating window, meaning that both the first and third floating windows are displayed simultaneously. The display areas of the third floating window and the second floating window overlap, potentially causing obstruction between them. When the user performs the first operation with their left hand to enlarge the first floating window into the second, the electronic device can display the second floating window on the left side of the screen and the third floating window on the right. Alternatively, when the user performs the first operation with their right hand, the electronic device can display the second floating window on the right side of the screen and the third floating window on the left. The display areas of the third floating window and the second floating window do not overlap. This not only allows the second floating window to be displayed responsively and reachably, improving the convenience of user interaction and making the window display more user-friendly, but also ensures that the third floating window avoids obstruction of the second floating window.
[0019] In one possible design, displaying the third floating window to the right of the second floating window includes: sliding the third floating window to the right; or, displaying the third floating window to the left of the second floating window includes: sliding the third floating window to the left. Thus, sliding the third floating window to the left or right means that the electronic device only performs a left-right sliding operation on the third floating window to avoid the second floating window, without changing the size or vertical position of the third floating window (i.e., the direction perpendicular to the left and right of the screen). This achieves window avoidance while minimizing the user's ability to modify the window's state.
[0020] Thirdly, a window display method is provided, applied to an electronic device having a display screen, the method comprising: displaying a floating window; receiving a target operation performed on the floating window on the display screen; when the target operation is performed by the left hand, responding to the target operation by collapsing the floating window into a floating bar and displaying the floating bar on the left side of the display screen; or, when the target operation is performed by the right hand, responding to the target operation by collapsing the floating window into a floating bar and displaying the floating bar on the right side of the display screen; wherein a second control can be used to initiate the display of the first floating window on the display screen.
[0021] Based on the above technical solution, when a user uses their left hand to collapse the floating window into a floating bar, the electronic device will display the collapsed floating bar on the left side of the screen; when the user uses their right hand to collapse the floating window into a floating bar, the electronic device will display the collapsed floating bar on the right side of the screen. In other words, the collapsed floating bar can be displayed on the side of the user's hand performing the operation, i.e., on the same side as the interacting hand. This allows the floating bar to display in sync with the hand, making it easily accessible and meeting user needs. It also facilitates the user's ability to easily recall the floating window, improving the convenience of interaction between the user and the window.
[0022] Fourthly, a window display method is provided, applied to an electronic device with a display screen. The method includes: displaying a floating bar, the floating bar being used to activate a floating window displayed on the display screen; at the end of a preset time period, displaying the floating bar on one side of the display screen in the same direction as a target hand, wherein, within the preset time period, if the hand performing the user operation on the display screen is the left hand, the target hand is the left hand; or, within the preset time period, if the hand performing the user operation on the display screen is the right hand, the target hand is the right hand; or, within the preset time period, if the display screen does not receive a user operation, the target hand is the hand holding the electronic device.
[0023] Based on the above technical solution, after the electronic device displays the floating bar, at the end of the preset time, the electronic device can adjust the display position of the floating bar, displaying it on the same side of the screen as the user's interactive hand or holding hand. In other words, the position of the floating bar can change depending on at least one of the interactive hand or holding hand. This allows the floating bar to always be displayed in sync with the user's hand, remaining accessible even if the user's interactive hand or holding hand changes. This makes the display of the floating bar more user-friendly and facilitates the user's ability to easily recall the floating window, improving the convenience of interaction between the user and the window.
[0024] In one possible design, the floating bar is in a hidden state, and the area occupied by the hidden floating bar on the display screen is smaller than the area occupied by the floating bar in its visible state. This allows the position of the floating bar to change based on the user's hand or grip when it is hidden. In other words, when the floating bar is visible, its position can be fixed, meaning it will not change based on the user's hand or grip. Because the area occupied by the floating bar on the display screen when it is hidden is smaller than when it is visible, it is less likely to be noticed by the user, and therefore, any changes in its position on the screen have a weaker impact on the user. Conversely, when the floating bar is visible, it is easily noticed by the user, and any changes in its position on the screen could be inconvenient. Therefore, the floating bar's position only changes based on the user's hand or grip when it is hidden, ensuring a good user experience.
[0025] Fifthly, a window display method is provided, applied to an electronic device having a display screen, the method comprising: receiving a target operation performed on an application icon, the application icon being displayed in a sidebar on the left side of the display screen; responding to the target operation, displaying a floating window corresponding to the application icon on the left side of the display screen; or, receiving a target operation performed on an application icon, the application icon being displayed in a sidebar on the right side of the display screen; responding to the target operation, displaying a floating window corresponding to the application icon on the right side of the display screen; wherein at least one application icon is displayed in the sidebar, the application icon being used to trigger the display of the floating window corresponding to the application.
[0026] Based on the above technical solution, when a user invokes a floating window via an application icon in the left-hand sidebar of the screen, the electronic device can display the floating window on the left side of the display. Conversely, when the user invokes the floating window via an application icon in the right-hand sidebar, the electronic device can display the floating window on the right side of the display. In other words, regardless of whether the user uses their left or right hand to invoke the floating window, the electronic device will display it on the same side of the sidebar used to invoke the window, regardless of the hand used. When a user specifically invokes a floating window by accessing a particular sidebar of the electronic device, it indicates that the user may intend to display the invoked floating window on the same side as the sidebar. Therefore, the electronic device displays the invoked window on the same side as the sidebar, satisfying the user's display needs and improving the convenience of interaction between the user and the window.
[0027] A sixth aspect provides a window display method applied to an electronic device having a display screen, the method comprising: displaying a first window receiving a sliding operation, the sliding operation being used to shrink the first window; and responding to the sliding operation, displaying a second window, the second window being smaller than the first window, the display position of the second window being consistent with the sliding direction of the sliding operation.
[0028] Based on the above technical solution, when a user performs a swipe operation to shrink a window, the electronic device can display the shrunken window in the same position as the swipe direction. This ensures that the window's movement trend aligns with the swipe direction, making the window display more user-friendly.
[0029] In one possible design, displaying the second window in response to the sliding operation includes: displaying the second window in the upper right corner of the display screen when the sliding operation is from the lower left corner to the upper right of the first window; or, displaying the second window in the upper left corner of the display screen when the sliding operation is from the lower right corner to the upper left of the first window. Thus, when the user performs a sliding operation from the lower left corner of the window to the upper right, the electronic device can display a corresponding scaled-down window in the upper right corner of the display screen because the sliding direction is upper right. When the user performs a sliding operation from the lower right corner of the window to the upper left, the electronic device can display a corresponding scaled-down window in the upper left corner of the display screen because the sliding direction is upper left. This ensures that the window's movement trend is consistent with the sliding direction, making the window display more user-friendly.
[0030] A seventh aspect provides an electronic device having the function of implementing the method described in any of the designs of any of the first to sixth aspects. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the described function.
[0031] Eighthly, an electronic device is provided, comprising: a processor, a memory, and a display screen, wherein the memory and the display screen are coupled to the processor, the memory being used to store program code including instructions, and the processor reading the instructions from the memory to cause the electronic device to perform the method as designed in any of the first to sixth aspects described above. Optionally, the memory may be coupled to the processor or may be independent of the memory. The display screen may be used by the electronic device to perform display operations.
[0032] A ninth aspect provides a computer-readable storage medium comprising a computer program that, when executed on an electronic device, causes the electronic device to perform the method as described in any one of the first to sixth aspects above.
[0033] In a tenth aspect, a computer program product is provided, the computer program product comprising: a computer program or instructions that, when the computer program or instructions are run on a computer, cause the computer to perform the method as designed in any one of the first to sixth aspects described above.
[0034] Eleventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, the at least one interface circuit being used to perform transceiver functions and send instructions to at least one processor, wherein when at least one processor executes instructions, at least one processor performs the method as designed in any one of the first to sixth aspects described above.
[0035] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0036] Figure 1 is a schematic diagram of an interface for bringing up a floating window via a side dock bar according to an embodiment of this application;
[0037] Figure 2 is a schematic diagram of an interface for displaying a notification message in a floating window according to an embodiment of this application;
[0038] Figure 3 is a schematic diagram of an interface for adjusting the size of a floating window according to an embodiment of this application;
[0039] Figure 4 is a schematic diagram of an interface that collapses a floating window into a floating bar according to an embodiment of this application;
[0040] Figure 5 is a schematic diagram of an interface for bringing up a floating window through a full-screen window, according to an embodiment of this application.
[0041] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0042] Figure 7 is a schematic diagram of some user states when using electronic devices according to embodiments of this application;
[0043] Figure 8 is a schematic diagram of the touch points, coordinate system, and capacitance values when a user interacts with an electronic device, according to an embodiment of this application.
[0044] Figure 9 is a schematic diagram of the interface of a notification message pop-up window provided in an embodiment of this application;
[0045] Figure 10 is a schematic diagram of hot zone division for banner notifications provided in an embodiment of this application;
[0046] Figure 11 is a schematic diagram of an interface for adjusting the window size according to an embodiment of this application;
[0047] Figure 12 is a schematic diagram of a window avoidance interface provided in an embodiment of this application;
[0048] Figure 13 is a schematic diagram of another window avoidance interface provided in an embodiment of this application;
[0049] Figure 14 is a schematic diagram of another window avoidance interface provided in an embodiment of this application;
[0050] Figure 15 is a schematic diagram of hot zone division of an electronic device screen provided in an embodiment of this application;
[0051] Figure 16 is a schematic diagram of a hidden window interface provided in an embodiment of this application;
[0052] Figure 17 is a schematic diagram of the interactive hand and the holding hand detected by an electronic device within a preset time period according to an embodiment of this application;
[0053] Figure 18 is a schematic diagram of the interface of a floating bar with different display states provided in an embodiment of this application;
[0054] Figure 19 is a schematic diagram of another interface provided in this application embodiment for bringing up a floating window through the side dock bar;
[0055] Figure 20 is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0056] Figure 21 is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0057] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0058] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0059] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0060] Currently, users can run multiple windows simultaneously on their electronic devices by using methods such as displaying floating windows, thus meeting their needs for simultaneous interaction with different windows. In one possible display scheme, the electronic device, based on the right-handed principle, will display the window by default on the right side of the screen (or display panel) to facilitate user interaction. This display scheme will be introduced below in conjunction with several different application scenarios.
[0061] In one application scenario, a user can bring up a floating window on an electronic device via a side dock. For example, as shown in Figure 1 (1), the electronic device can display a desktop 100 (or main interface 100), on which icons of one or more applications can be displayed, such as the icons of calendar applications, clock applications, etc. Different application icons can be used to open the running interface of the corresponding application. If the user performs an operation such as swiping to the right on the left side of the electronic device screen, then in response to the user's operation, as shown in Figure 1 (2), the electronic device can bring up the left side dock 110. In the side dock, icons of one or more applications can be displayed, such as the icons of video applications, memo applications, chat applications, etc. Different application icons can be used to open the window of the corresponding application and float on the electronic device. Taking the video application icon as an example, if the electronic device detects that the user has performed a click operation on the video application icon 111, then in response to the operation, as shown in Figure 1 (3), the electronic device floats the video application window 120 on the right side of the screen.
[0062] In another application scenario, users can also bring up a floating window displayed on the electronic device via a notification message. For example, as shown in Figure 2(1), the electronic device can display the running interface 200 of a video application. It is understood that Figure 2 is an example of receiving a notification message when the electronic device is displaying the running interface of a video application. The electronic device can also receive notification messages when displaying other interfaces. Subsequently, when the electronic device receives a notification message, it can display the notification message. Optionally, the notification message can be a notification message from any application. For example, the electronic device can display a banner notification 201 of a social application as shown in Figure 2(1). Users can view the specific content of the notification message through the banner notification 201. If the user can perform operations such as clicking on the banner notification 201, in response to the operation, as shown in Figure 2(2), the electronic device displays a floating window 210 of a chat application on the right side of the screen. The chat application window 210 can be used to display the specific content of the banner notification 201.
[0063] In another application scenario, the user can also adjust the size of the floating window. For example, as shown in Figure 3(1), the electronic device displays a video application window 300 on the desktop, and the video application window 300 is displayed floating on the left side of the electronic device screen. Optionally, the video application window 300 can be brought up and adjusted to the left side of the screen by the user through a sidebar such as that shown in Figure 1, or it can be brought up and adjusted to the left side of the screen by other means. The user can choose to adjust the size of the video application window 300 to the smallest window (also known as a mini window, mini window, etc.). It can be understood that in the embodiments of this application, the smallest window can refer to the smallest display form in which the window can be displayed floating on the screen of the electronic device. When a window on the screen of the electronic device is adjusted to the smallest window display, the size of the smallest window cannot be adjusted to a smaller window for floating display. The user can perform an operation such as swiping from the lower right corner of the video application window 300 to the upper left. In response to this operation, the electronic device gradually shrinks the display window 300 of the video application. Finally, as shown in Figure 3 (2), the electronic device displays the smallest window 310 corresponding to the video application window 300 floating in the upper right corner of the screen.
[0064] As shown in Figure 3(3), the electronic device displays the smallest window 320 of the video application on the desktop, and the smallest window 320 of the video application is displayed floating in the upper left corner of the electronic device screen. The user can choose to maximize the display of the smallest window 320 of the video application. It can be understood that, in this embodiment of the application, the maximized display window can refer to the maximum display form in which the window can be displayed floating on the screen of the electronic device. When a window on the screen of the electronic device is adjusted to the maximum window display, that is, when it is maximized, the size of the maximum window cannot be adjusted to a larger window for floating display. If the user performs an operation such as clicking on the smallest window 320 of the video application shown in Figure 3(3), in response to the operation, as shown in Figure 3(4), the electronic device displays the maximized window 330 of the video application (also called the maximum window 330) floating on the right side of the screen.
[0065] In another application scenario, users can also hide the floating window, such as by temporarily hiding it as a floating ball, floating bar (or described as a sidebar) or other controls. It is understood that in this application embodiment, when a user temporarily hides a window with a floating ball, floating bar or other controls, the user can also bring the window back up using the floating ball, floating bar or other controls. For example, taking the video application window 300 shown in Figure 3(1) as an example, the video application window 300 is collapsed as a floating bar. As shown in Figure 3(1), a collapse control 301 can be displayed in the video application window 300, and the user can collapse the video application window 300 as a floating bar using the collapse control 301. If the user can perform an operation such as clicking on the collapse control 301 (the operation is not shown in Figure 3(1)), then in response to the operation, as shown in Figure 4, the electronic device collapses the video application window 300 as a floating bar 400, where the floating bar 400 is displayed in the upper right corner of the electronic device screen.
[0066] In another application scenario, the user can also modify the position of the floating window. For example, as shown in Figure 5(1), the electronic device displays a video application window 500, which is displayed in full screen on the screen of the electronic device. The user can set this full-screen window as a floating window. For example, if the user performs an operation such as dragging the video application window 500 from the bottom of the screen to the upper right corner of the screen of the electronic device, in response to the operation, the electronic device gradually shrinks the display of the video application window 500, and as shown in Figure 5(2), the electronic device displays the smallest window 510 corresponding to the video application window 500 floating in the upper right corner of the screen. It is understood that the method of calling up the smallest window shown in Figure 5 is only an example, and the smallest window can also be called up in other ways.
[0067] Next, the user can modify the position of the minimum window 510. For example, if the user drags the minimum window 510 to the upper left corner of the screen, in response to this operation, the electronic device can display the minimum window 510 floating in the upper left corner of the screen in the display mode shown in Figure 3 (3). Next, the user can also adjust the size of the floating window in the same way as in the scenario shown in Figure 3. For example, if the user performs an operation such as clicking to maximize the floating window 510 that is floating in the upper left corner of the screen, in response to this operation, the electronic device can also display the maximized video application window floating on the right side of the screen in the display mode shown in Figure 3 (4).
[0068] In all the application scenarios mentioned above, electronic devices typically display windows and controls used for window display (such as floating bars and floating balls) on the right side of the screen, based on the right-handedness principle. However, users may interact with these devices using their left hand, such as holding the phone with their left hand and operating the device with their left thumb. In this scenario, the right-handedness-based window display method may cause inconvenience for users, hindering interaction with the window and failing to meet their usage habits and expectations.
[0069] Based on this, embodiments of this application provide a window display method that improves the convenience of interaction between the user and the window, enabling the window display to meet the user's usage habits and psychological expectations, and satisfying the user's needs. It is understood that in these embodiments, the window can also be described as a user interface, application interface, etc. Optionally, for an application, one or more windows can be displayed on the electronic device screen.
[0070] The technical solutions provided in this application embodiment can be applied to electronic device 100, or to a system including electronic device 100.
[0071] Electronic device 100 can be a mobile phone, a personal digital assistant (PDA), a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices, and / or smart city devices. Optionally, electronic device 100 can be a fixed device or a portable device. Optionally, the operating system installed on electronic device 100 can include, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not impose specific limitations on the specific type of electronic device or the operating system installed.
[0072] For example, Figure 6 shows a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application.
[0073] As shown in Figure 6, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, buttons 180, a display screen 190, etc.
[0074] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0075] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0076] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0077] In some embodiments, processor 110 may include one or more interfaces, such as USB interface 130.
[0078] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to electronic devices through the power management module 141.
[0079] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, memory 120, display 190, and wireless communication module 160, etc.
[0080] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0081] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0082] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.
[0083] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Starflash, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0084] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include 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), BT, Starflash, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0085] The display screen 190 is used to display images, videos, etc. The display screen 190 includes a display panel. In some embodiments of this application, the display screen 190 can be used to display one or more windows in a floating manner.
[0086] The memory 120 can be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the electronic device 100, etc. Furthermore, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in memory disposed in the processor.
[0087] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.
[0088] Buttons 180 include a power button, volume buttons, etc. Buttons 180 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0089] It is understood that the structure illustrated in Figure 6 does not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The processing steps or functional characteristics of the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0090] The technical solutions involved in the following embodiments can all be implemented in a device with the structure shown in Figure 6.
[0091] In some embodiments, the electronic device can display windows based on the user's state of using the device, enabling window interaction with hand gestures. The user's state of using the electronic device can refer to the user's interacting hand or holding hand. The interacting hand can refer to the hand used to perform various operations on the electronic device, i.e., the hand used to operate the electronic device to display windows. The holding hand can refer to the hand used to grasp the electronic device, i.e., the hand not used to operate the electronic device. It is understood that both the interacting hand and the holding hand may be present simultaneously, or only one of them may be present. One or more interacting hands and one or more holding hands may be present simultaneously.
[0092] For example, Figure 7 shows some examples of user states of using electronic devices provided in embodiments of this application. As shown in Figure 7 (1), the user holds the electronic device with their left hand and operates it with their left thumb. That is, both the holding hand and the interaction hand are present, and both are left hands. As shown in Figure 7 (2), the user holds the electronic device with their right hand and operates it with their right thumb. That is, both the holding hand and the interaction hand are present, and both are right hands. As shown in Figure 7 (3), the user operates the electronic device with their left index finger and does not hold it. That is, only the interaction hand is present, and the interaction hand is left hands. As shown in Figure 7 (4), the user operates the electronic device with their right index finger and does not hold it. That is, only the interaction hand is present, and the interaction hand is right hands. As shown in Figure 7 (5), the user holds the electronic device with their left hand and operates it with their right index finger. That is, both the holding hand and the interaction hand are present, and the holding hand is left hands, and the interaction hand is right hands. As shown in Figure 7 (6), the user holds the electronic device with his right hand and operates the electronic device with his left index finger. That is to say, there is a holding hand and an interactive hand at the same time, and the holding hand is the right hand and the interactive hand is the left hand.
[0093] As shown in Figure 7(7), the user holds the electronic device with both their left and right hands, and operates the electronic device using their left and right thumbs. That is, there is both a holding hand and an interactive hand, and both the holding hand and the interactive hand include the left and right hands. As shown in Figure 7(8), the user holds the electronic device with their left hand and operates the electronic device using their left thumb and right index finger. That is, there is both a holding hand and an interactive hand, and the holding hand is the left hand, while the interactive hand is the left and right hands. As shown in Figure 7(9), the user holds the electronic device with their right hand and operates the electronic device using their left index finger and right thumb. That is, there is both a holding hand and an interactive hand, and the holding hand is the right hand, while the interactive hand is the left and right hands.
[0094] The following section describes how electronic devices determine the user's interaction hand and gripping hand.
[0095] In some embodiments, when a user operates the screen of an electronic device with their finger, a corresponding touch point can be formed on the screen. The touch point formed is different when the finger used belongs to different hands (such as the left hand and the right hand). For example, when a user interacts with the electronic device with their left thumb, as shown in the interaction scenario in Figure 7 (1), the touch point formed can be as shown in Figure 8 (1). When a user interacts with the electronic device with their right index finger, as shown in the interaction scenario in Figure 7 (4), the touch point formed can be as shown in Figure 8 (2). Optionally, the touch points shown in Figure 8 (1) and Figure 8 (2) are examples of touch points formed when a user interacts with the electronic device using the pad of their finger. When a user interacts with the electronic device using their fingertip, the touch point formed can be different from the examples shown in Figure 8 (1) and Figure 8 (2). For example, when a user interacts with the electronic device using the tip of their left thumb, the touch point formed on the screen can be as shown in Figure 8 (3). When a user interacts with an electronic device using the tip of their right index finger, the touch point formed on the screen can be as shown in Figure 8 (4).
[0096] In this embodiment, the electronic device can determine the user's interactive hand by detecting at least one parameter, such as the shape and area of the touch point. In some implementations, the shape of the touch point can be determined based on at least one of the following: the ratio between the major axis a and the minor axis b as shown in Figure 8; the angle between the line in the direction of the major axis a and the preset coordinate axis; and the angle between the line in the direction of the minor axis b and the preset coordinate axis. The preset coordinate axis can be a coordinate axis in a preset coordinate system. For example, taking the rectangular coordinate system shown in Figure 8 (5) as an example, with the lower left corner of the electronic device screen as the origin o, the positive x-axis direction to the right, and the positive y-axis direction upward, the preset coordinate axis can be the x-axis shown in Figure 8 (5) or the y-axis. Of course, in practical applications, the preset coordinate axis can also be set in other ways, and this application embodiment does not impose specific limitations on this.
[0097] In some embodiments, when a touch point is formed on the screen of an electronic device, the screen parameters of the area corresponding to the touch point may change. The electronic device can then determine the position of the touch point by detecting these screen parameters, and further detect at least one of the touch point's shape, area, etc. For example, taking an electronic device screen implemented as a capacitive touchscreen, the screen parameter can be the capacitance value. Of course, when the electronic screen is implemented as other types of touchscreens, such as resistive touchscreens, the screen parameters can also be other parameters. In this embodiment, the screen parameter is taken as the capacitance value.
[0098] In some embodiments, when a user holds the capacitive screen, the hand holding the screen may touch the edge of the electronic device screen, thereby causing changes in the screen parameters at the edge of the screen. For example, as shown in Figure 8 (6), when the user holds the electronic device with their left hand, the capacitance value in region 1 of the electronic device screen will change. Region 1 may include multiple capacitor units, and each "#" in region 1 represents the capacitance value of a capacitor unit. The electronic device can determine whether a hand is holding the screen by detecting the screen parameters (such as capacitance values) at the edge of the screen. Similarly, when the user uses different hands to hold the screen (such as left hand or right hand), the location of the changing screen parameters may be different. For example, when the user holds the electronic device with their left hand, the screen parameters on the left edge of the screen may change. When the user holds the electronic device with their right hand, the screen parameters on the right edge of the screen may change. Therefore, the electronic device can also determine whether the hand holding the screen is left or right by detecting the location of the changing screen parameters.
[0099] Of course, in other embodiments, the electronic device may also use other sensors, such as pressure sensors, to detect the presence of a holding hand, the holding hand, and whether the holding hand is the left or right hand.
[0100] The above describes how electronic devices determine the user's interaction hand and gripping hand. The following section will introduce how to display windows based on the interaction hand and gripping hand.
[0101] In this embodiment, the electronic device can display at least one of the following: a window, controls for displaying the window (such as a floating bar, a floating ball, etc.), on the same side as the user's interacting hand or holding hand. This display of the window and its controls on the same side as the user's hand, i.e., achieving hand-responsive window display, makes the window and its controls readily accessible, improving the convenience of interaction between the user and the window, and making the window display more in line with user needs.
[0102] In this embodiment, in some implementations, when an interactive hand is present, the electronic device can display at least one of the following on the same side as the interactive hand: a window and controls for displaying the window. Since the interactive hand is used to operate the electronic device, displaying the window and controls on the same side as the interactive hand facilitates user interaction with the window, improving interaction convenience. If the interactive hand is right-handed, the electronic device can display at least one of the following on the right side, the upper right corner, etc. If the interactive hand is left-handed, the electronic device can display at least one of the following on the left side, the upper left corner, etc. Optionally, in this implementation, a holding hand may or may not be present.
[0103] In some implementations, when there is no interactive hand but a holding hand is present, the electronic device can display at least one of the following on the same side as the holding hand: a window, controls for displaying the window, etc. In this way, since there is no interactive hand—meaning the user hasn't yet operated the electronic device—but a holding hand is present, there is a possibility that the user will later use that holding hand to operate the electronic device. That is, the holding hand may become the subsequent interactive hand, and the window, controls for displaying the window, etc., can be displayed on the side of the holding hand, making it easier for the user to interact with the window using that holding hand, thus improving the convenience of interaction. If the holding hand is right-handed, the electronic device can display at least one of the following on the right side, the upper right corner, etc. If the holding hand is left-handed, the electronic device can display at least one of the following on the left side, the upper left corner, etc.
[0104] The following section introduces the implementation of display windows and controls for window display on electronic devices based on interactive hands, gripping hands, etc., in different application scenarios.
[0105] In one possible application scenario, let's take the display of a window on an electronic device via a notification message as an example. For example, in conjunction with the banner notification 201 shown in Figure 2 (1), in some implementations, as shown in Figure 2 (1), the electronic device detects an operation such as the user using their left hand (the left thumb or left index finger as shown in Figure 2 (1)) to perform a click or swipe operation on the banner notification 201 to bring up the window (which can be used as an example of a first operation performed on the first area of the banner notification). In response to this operation, as shown in Figure 9 (1), the electronic device displays the chat application window 210 on the left side of the screen (which can be used as an example of a floating window corresponding to the banner notification). Alternatively, as shown in Figure 9 (2), when the electronic device detects an operation such as the user using their right hand (the right thumb or right index finger as shown in Figure 9 (2)) to perform a click or swipe operation on the banner notification 201 to bring up the window, in response to this operation, as shown in Figure 9 (3), the electronic device displays the chat application window 210 on the right side of the screen. In this implementation, the electronic device can detect the interactive hand that initiates the window via a banner notification or similar action, and display the window on the side of the interactive hand. It is understood that in the various application scenarios described in this application embodiment, the interactive hand may or may not be present.
[0106] The above implementation assumes that the banner notification is not divided into hot zones. This means that regardless of which area of the banner notification the user interacts with (or any area) using their left hand, the electronic device will display the brought-up window on the left side of the screen. Conversely, regardless of which area of the banner notification the user interacts with using their right hand, the electronic device will display the brought-up window on the right side of the screen.
[0107] In this application scenario, in some implementations, the banner notification can also be divided into hot zones. When a user operates on different hot zones of the banner notification using their left or right hand, the display position of the window brought up by the electronic device on the screen can be related to the interacting hand and at least one of the hot zones operated by the interacting hand. For example, in conjunction with the banner notification 201 shown in Figure 9, Figure 10 shows a schematic diagram of hot zone division of the banner notification provided by an embodiment of this application. It can be understood that hot zone division of the banner notification is also the division of the operating area of the banner notification. As shown in Figure 10, the banner notification 201 can be divided from left to right into a left hot zone (also described as the left side area), a middle hot zone (also described as the middle area), and a right hot zone (also described as the right side area). The size of the left hot zone and the right hot zone can each occupy x% of the banner notification display area size, and the size of the middle hot zone can occupy 1-2x% of the banner notification display area size, where x is greater than 0 and less than 100. The specific value of x can be set by the developers according to actual needs. It is understood that in this embodiment of the application, the left and right hot zones are the same size. In other examples, they may be different. This embodiment of the application does not limit the size of each hot zone.
[0108] Referring to the hotspot example shown in Figure 10, in some examples, when the electronic device detects an operation such as a user clicking or swiping on the left hotspot of the banner notification 201 with their left or right hand (which can be seen as an example of a second operation performed on the second area of the banner notification), in response to this operation, the electronic device can display the chat application window 210 on the left side of the screen in the same manner as in Figure 9 (1). When the electronic device detects an operation such as a user clicking or swiping on the right hotspot of the banner notification 201 with their left or right hand (which can also be seen as an example of a second operation performed on the second area of the banner notification), in response to this operation, the electronic device can display the chat application window 210 on the right side of the screen in the same manner as in Figure 2 (2) or Figure 9 (3). That is, in this example, the electronic device can display the window that has been brought up on the side of the banner notification hotspot that has been operated on by detecting whether the hotspot operated by the interactive hand is the left or right hotspot of the banner notification.
[0109] In other examples, when the electronic device detects an operation to bring up a window, such as a user clicking or swiping the central hotspot of a banner notification with their left hand (which can also be seen as an example of a first operation performed on the first area of the banner notification), in response to this operation, the electronic device can display the chat application window 210 on the left side of the screen in the same manner as in Figure 9 (1). When the electronic device detects an operation to bring up a window, such as a user clicking or swiping the central hotspot of a banner notification with their right hand, in response to this operation, the electronic device can display the chat application window 210 on the right side of the screen in the same manner as in Figure 9 (3). That is, in this example, when the hotspot of the interacting hand is the central hotspot of the banner notification, the electronic device can detect the interacting hand and display the brought-up window on the side of the interacting hand.
[0110] In another possible application scenario, let's take adjusting the size of a window as an example. In some implementations, the display position of the resized window can be related to the interactive hand. For example, in conjunction with the minimum window 320 of the video application shown in Figure 3 (3) (which can be used as an example of a first floating window), as shown in Figure 3 (3), the electronic device detects that the user has performed an operation such as clicking on the minimum window 320 of the video application to maximize the display of the video application window (which can be used as an example of a first operation performed in the first area on the display screen). In response to this operation, as shown in Figure 11 (1), the electronic device displays the maximized video application window 330 floating on the left side of the screen (which can be used as an example of a second floating window corresponding to the first floating window). Optionally, the aforementioned operation to maximize the display window can be applied to the window before resizing, that is, the display areas of the first area and the first floating window can overlap. Alternatively, the aforementioned operation to maximize the display window can also not be applied to the window before resizing, that is, the display areas of the first area and the first floating window can not overlap.
[0111] Alternatively, as shown in Figure 11(2), when the electronic device detects an operation such as a user clicking the minimum window 320 of the video application with their right hand (as shown by the right index finger in Figure 11(2)) to maximize the display of the video application window (which can also be an example of a first operation performed in the first area of the display screen), in response to the operation, as shown in Figure 11(3), the electronic device displays the maximized video application window 330 floating on the right side of the screen (which can also be an example of a second floating window corresponding to the first floating window). Optionally, in this application scenario, the windows before resizing, such as the minimum window 320 of the video application shown in Figure 3(3) and Figure 11(2), can be displayed in the upper left corner of the screen, or the upper right corner of the screen, or the middle of the screen, etc. The embodiments of this application do not limit the display position of the windows before resizing, such as the minimum window 320 of the video application shown in Figure 3(3) and Figure 11(2), on the screen. In this application scenario, the first area can be any display area of the screen. The electronic device can detect the interactive hand that performs the operation of maximizing the display of the smallest window and display the maximized window on the side of the interactive hand. In this embodiment of the application, the maximized window can be used as an example of a window after resizing.
[0112] The example shown in Figure 11 is based on the simultaneous display of a single minimum window on an electronic device. In some scenarios, multiple minimum windows may be displayed simultaneously on an electronic device. For example, as shown in Figure 12(1), the electronic device simultaneously displays the minimum window 1201 of a video application (which can be used as an example of a first floating window) and the minimum window 1202 of a chat application (which can be used as an example of a third floating window). Currently, when the user adjusts the size of one of the windows, the electronic device will still fix the display position of the resized window on the right side of the screen based on the right-handed principle mentioned above. For example, as shown in Figure 12(1), when the user performs a click operation or other operation to maximize the display of the video application window using their left hand, in response to this operation, as shown in Figure 12(2), the electronic device floats the maximized video application window 1210 on the right side of the screen and maintains the display of the minimum window 1202 in its original position. Under this right-handed solution, the display position of the maximized window is independent of the user's hand.
[0113] Therefore, in this scenario, to ensure that the display position of the resized window is related to the user's hand, in some embodiments, the electronic device can readjust the display position of the unresized window so that the unresized window can avoid the resized window, thereby ensuring that the display position of the resized window is related to the user's hand and that different windows do not obstruct each other. For example, in conjunction with the example shown in Figure 12(1), when the user performs an operation such as clicking on the smallest window 1201 of the video application with their left hand to maximize the display of the video application window (which can be used as an example of a first operation performed in the first area of the display screen), in response to this operation, as shown in Figure 13(1), the electronic device floats the maximized video application window 1210 on the left side of the screen (which can be used as an example of a second floating window) and moves the smallest window 1202 of the chat application to the right. Among them, the display area of the smallest window 1202 of the chat application shown in Figure 12(1) overlaps with the display area of the window 1210 of the video application shown in Figure 13(1), while the display area of the window 1210 of the video application shown in Figure 13(1) does not overlap with the display area of the smallest window 1202 of the chat application shown in Figure 13(1).
[0114] For example, when the minimum window 1201 of the video application (which can be used as an example of the first floating window) and the minimum window 1202 of the chat application (which can be used as an example of the third floating window) are displayed in the position shown in Figure 13 (2), when the user performs an operation such as clicking on the minimum window 1201 of the video application to maximize the display of the video application window (which can be used as an example of the first operation performed in the first area on the display screen), in response to the operation, the electronic device can display the maximized floating display of the video application window 1210 (which can be used as an example of the second floating window) on the right side of the screen and move the minimum window 1202 of the chat application to the left. The electronic device can display the interface shown in Figure 12 (2), where the display area of the minimum window 1202 of the chat application shown in Figure 13 (2) overlaps with the display area of the window 1210 of the video application shown in Figure 12 (2), and the display area of the window 1210 of the video application shown in Figure 12 (2) does not overlap with the display area of the minimum window 1202 of the chat application shown in Figure 12 (2).
[0115] It is understood that the positions of the minimum window 1202 of the chat application shown in Figure 13 (1) and Figure 12 (2) are merely illustrative examples. In other examples, the minimum window 1202 of the chat application may also be located in the position of the window 1210 of another unobstructed video application.
[0116] It is understandable that in this embodiment, in some cases, the electronic device needs to readjust the display position of the unresized window, as shown in the examples in Figures 12 and 13. Since the original display position of the unresized window (such as the smallest window 1202 of the chat application) would obstruct the display of the resized window (such as the window 1210 of the video application), the electronic device can readjust the display position of the unresized window. In some cases, the electronic device does not need to readjust the display position of the unresized window, as shown in the example in Figure 12 (1). When the user clicks on the smallest window 1201 of the video application with their right hand, since the maximized window 1210 of the video application needs to be displayed on the right side of the screen, and the display of the smallest window 1202 of the chat application will not obstruct the display of the window 1210 of the video application, the electronic device does not need to readjust the display position of the unresized window.
[0117] Optionally, in scenarios where the electronic device displays multiple minimized windows simultaneously, the user may also modify at least one of the positions, sizes, etc., of the unresized windows. In some embodiments, when the electronic device readjusts the positions of other windows to ensure that the display position of the resized window (which may refer to the window displayed after receiving a window maximization operation performed by the user, such as window 1210 of a video application as shown in Figures 12 and 13) is related to the user, the size of the other windows may not be changed. Optionally, the electronic device may also pan the unresized windows (which may refer to the windows that have not received a window maximization operation performed by the user, such as the minimized window 1202 of a chat application as shown in Figure 14) left or right to avoid the resized windows. This achieves window avoidance while preserving as much of the user's modified window state as possible.
[0118] For example, referring to the example shown in Figure 12(1), suppose the user drags the smallest window 1202 of the chat application down to the position shown in Figure 14(1), that is, the user modifies the display position of the smallest window 1202 of the chat application. Then, the user uses their left hand to perform a click operation or other operation to maximize the display of the video application window, as shown in Figure 14(1). In response to this operation, as shown in Figure 14(2), the electronic device displays the maximized video application window 1210 floating on the left side of the screen, and at the same time moves the smallest window 1202 of the chat application shown in Figure 14(1) to the right so that the smallest window 1202 of the chat application can avoid the window 1210 of the video application, without changing the relative position of the smallest window 1202 of the chat application in the vertical direction of the screen (that is, the direction perpendicular to the left and right direction of the screen).
[0119] For example, referring to the example shown in Figure 12(1), suppose the user increases the size of the smallest window 1202 of the chat application. If the user drags the edge of the smallest window 1202 of the chat application, in response to this operation, the electronic device can display the chat application window 1400 as shown in Figure 14(3). Then, the user performs an operation such as clicking the smallest window 1201 of the video application with their left hand to maximize the display of the video application window. In response to this operation, as shown in Figure 14(4), the electronic device displays the maximized video application window 1210 floating on the left side of the screen, while simultaneously shifting the chat application window 1400 to the right so that the chat application window 1400 can avoid the video application window 1210, without changing the relative position of the chat application window 1400 in the vertical direction of the screen.
[0120] Optionally, as shown in the examples of Figures 13 and 14, due to the limited display space on the screen of an electronic device, when an electronic device displays multiple windows, it may not be able to guarantee that different windows will not obstruct each other. In some embodiments, the electronic device can display windows such as the video application window 1210 shown in Figures 13 and 14 on the top layer to ensure that the resized window will not be obscured by other windows.
[0121] Similarly, the above implementation assumes that the electronic device screen is not divided into hot zones. This means that regardless of where the smallest window is displayed on the screen, and regardless of which area of the smallest window the user operates on with their left hand (i.e., the user operates on any area of the display with their left hand), the electronic device will display the corresponding maximized window on the left side of the screen. Conversely, regardless of where the smallest window is displayed on the screen, and regardless of which area of the smallest window the user operates on with their right hand (i.e., the user operates on any area of the display with their right hand), the electronic device will display the corresponding maximized window on the right side of the screen.
[0122] In this application scenario, in some other implementations, the screen of an electronic device can also be divided into hot zones. When a user uses their left or right hand to operate on different hot zones of the screen to adjust the size of the window, the display position of the resized window on the screen can be related to at least one of the interacting hand and the hot zone operated by the interacting hand. Optionally, in this implementation, the area of action of the interacting hand and the display area of the window before resizing may or may not overlap. For example, Figure 15 shows a schematic diagram of hot zone division of an electronic device screen provided by an embodiment of this application. As shown in Figure 15, the screen of an electronic device can be divided from left to right into a left hot zone (or described as the left side area), a middle hot zone (or described as the middle area), and a right hot zone (or described as the right side area). The size of the left hot zone and the size of the right hot zone can each occupy y% of the screen display area size, and the size of the middle hot zone can occupy 1-2y% of the screen display area size, where y is greater than 0 and less than 100. The specific value of y can be set by the developers according to actual needs.
[0123] Referring to the hotspot example shown in Figure 15, in some examples, referring to the minimum window 320 of the video application shown in Figure 3 (3), when the electronic device detects that the area affected by the user's click operation on the minimum window 320 of the video application is in the left hotspot of the screen (which can be used as an example of a second operation performed in a second area on the display screen), then regardless of whether the user uses the left or right hand to perform the click operation, in response to the operation, the electronic device will display the maximized window 330 of the video application floating on the left side of the screen in the manner shown in Figure 11 (1) (which can also be used as an example of a second floating window corresponding to the first floating window). Optionally, the minimum window 320 of the video application shown in Figure 3 (3) can be displayed in at least one of the left hotspot and the middle hotspot of the screen. Conversely, when the electronic device detects that the area affected by the user's click operation on the minimum window 320 of the video application is in the right hot zone of the screen (which can also be used as an example of a second operation performed in a second area on the display screen), regardless of whether the user uses the left or right hand to perform the click operation, in response to the operation, the electronic device will display the maximized video application window 330 floating on the right side of the screen in the manner shown in Figure 11 (3) (which can also be used as an example of a second floating window corresponding to the first floating window). Optionally, the minimum window of the video application can be displayed in at least one of the right hot zone or the middle hot zone of the screen, as shown in the display position of the minimum window 310 of the video application in Figure 3 (2). That is, in this example, the electronic device can detect whether the area affected by the interactive hand used to operate on the window is in the left or right hot zone of the screen, and display the resized window on the side of the screen hot zone where the interactive hand is located.
[0124] In other examples, in conjunction with the minimum window 320 of the video application shown in Figure 3 (3), when the electronic device detects that the area affected by the user's click operation on the minimum window 320 of the video application is in the central hot zone of the screen (which can also be used as an example of the first operation performed in the first area on the display screen), if the user's left hand is used to perform the click operation, in response to the operation, the electronic device will display the maximized video application window 330 floating on the left side of the screen in the manner shown in Figure 11 (1). If the user's right hand is used to perform the click operation, in response to the operation, the electronic device will display the maximized video application window 330 floating on the right side of the screen in the manner shown in Figure 11 (3). That is, in this example, when the area affected by the hand used to operate on the window is in the central hot zone of the screen, the electronic device can detect the hand and display the resized window on the side of the hand.
[0125] In some implementations, the display position of the resized window on the screen can be determined based on at least one of the hot zones in which the window is located. Optionally, the display position of the window on the screen can be represented by the coordinates of a point on the window (such as the top-left corner, bottom-right corner, center point, etc.).
[0126] For example, still referring to the minimum window 320 of the video application shown in Figure 3 (3), when the electronic device detects various operations such as the user clicking on the minimum window 320 of the video application to enlarge the window display, in response to the operation, the electronic device can obtain the display position of the minimum window 320 of the video application and determine the hot zone where the display position is located. When it is determined that the display position is in the left hot zone, the maximized window 330 of the video application shown in Figure 11 (1) is displayed floating on the left side of the screen. Conversely, when it is determined that the display position is in the right hot zone, the maximized window 330 of the video application shown in Figure 11 (3) is displayed floating on the right side of the screen.
[0127] Optionally, when the electronic device determines that the display position of the minimum window 320 of the video application is in the central hot zone, the electronic device can also determine the display position of the resized window based on the interactive hand and display the resized window on the side of the interactive hand.
[0128] Similarly, in this implementation, when multiple minimized windows are displayed simultaneously on the electronic device, to ensure that the display position of the resized window is related to at least one of the screen's hot zone and the user's control, and to ensure that different windows do not obstruct each other, the electronic device can also adjust the display position of the unresized window, or the display position of the window whose position or size has been modified by the user, using the scheme described in the examples shown in Figures 13 and 14. Similarly, this scheme can also be applied to the scheme of reducing the size of the window as described in the following examples, to ensure that the display position of the reduced-size window is related to at least one of the screen's hot zone and the user's control, thus achieving the avoidance display of the resized window.
[0129] Similarly, in application scenarios where the window's position is modified and then its size is adjusted, as shown in Figure 5 combined with Figure 3, after the user modifies the position of the smallest window 510 shown in Figure 5 (2), such as adjusting it to the position of the smallest window 310 shown in Figure 3 (3), the above-mentioned method of adjusting the window size also applies when the user performs a maximized display operation on the smallest window 310.
[0130] The above example uses enlarging the window size for display. In other examples, the window size can also be reduced for display. In this example, the above scheme without hot zone division of the electronic device screen also applies. For example, in conjunction with the video application window 300 shown in Figure 3 (1), if the electronic device detects various operations such as the user sliding from the lower right corner of the video application window 300 to the upper left with their left hand, or sliding from the lower left corner of the video application window 300 to the upper right with their left hand, in response to the operation, the electronic device can display the smallest window 310 corresponding to the video application window 300 floating in the upper left corner of the screen, as shown in the position of the smallest window 320 of the video application in Figure 3 (3). Alternatively, when the electronic device detects various operations for shrinking the window, such as the user swiping from the lower right corner to the upper left of the video application window 300 with their right hand, or swiping from the lower left corner to the upper right of the video application window 300 with their right hand, in response to the operation, the electronic device displays the smallest window 310 corresponding to the video application window 300 floating in the upper right corner of the screen, as shown in Figure 3(2).
[0131] In the aforementioned implementation, the electronic device can detect the hand performing the shrinking operation on the window and display the shrunk window on the side of the hand performing the operation. In this embodiment, the smallest window can also be used as an example of a resized window. Optionally, in the aforementioned implementation, regardless of where the window was displayed on the screen before shrinking, and regardless of which area of the window the user operated on with their left hand, the electronic device will display the shrunk window in the upper left corner of the screen. Conversely, regardless of where the window was displayed on the screen before shrinking, and regardless of which area of the window the user operated on with their right hand, the electronic device will display the shrunk window in the upper right corner of the screen. It is understood that in this embodiment, the smallest window is shown as being displayed in the upper left or lower left corner; in other examples, the top corner can also be the lower left corner, and the upper right corner can also be the lower right corner.
[0132] Similarly, the above-mentioned scheme for dividing the screen of an electronic device into hot zones also applies in this example. For example, in some examples, taking the hot zones shown in Figure 15 and the video application window 300 shown in Figure 3 (1) as examples, when the electronic device detects that the area affected by the operation (such as a sliding operation or a clicking operation) used to shrink the video application window 300 to the smallest window is in the left hot zone of the screen, then regardless of whether the user uses the left or right hand to perform the operation, in response to the operation, the electronic device will display the smallest window 310 corresponding to the video application window 300 floating in the upper left corner of the screen, as shown in Figure 3 (3) for the position of the smallest window 320 of the video application. When the electronic device detects that the area affected by the operation (such as a swipe or click) used to minimize the video application window 300 to its smallest size is within the right-side hot zone of the screen, regardless of whether the user uses their left or right hand to perform the operation, the electronic device will display the smallest window 310 corresponding to the video application window 300 floating in the upper right corner of the screen in response to the operation, as shown in Figure 3(2). In other words, in this example, the electronic device can also detect whether the area affected by the interactive hand used to operate on the window is within the left or right-side hot zone of the screen, and display the resized window on the side of the screen hot zone where the interactive hand is located.
[0133] In other examples, referring to the video application window 300 shown in Figure 3(1), when the electronic device detects that the area affected by the operation of shrinking the video application window is in the central hot zone of the screen, if the user's left hand is used to perform the operation, the electronic device will display the smallest window 310 corresponding to the video application window 300 floating in the upper left corner of the screen in response to the operation, as shown in Figure 3(3) for the position of the smallest window 320 of the video application. If the user's right hand is used to perform the operation, the electronic device will display the smallest window 310 corresponding to the video application window 300 floating in the upper right corner of the screen in response to the operation, as shown in Figure 3(2). In this example, when the area affected by the hand used to perform the shrinking operation on the window is in the central hot zone of the screen, the electronic device can detect the hand and display the resized window on the side of the hand.
[0134] In another possible application scenario, let's take a hidden window as an example. In some implementations, the display position of the control corresponding to the hidden window (that is, the control used for window display mentioned above, such as a floating bar, a floating ball, etc.) can be related to the interaction hand. The following is an example of using a floating bar as the control corresponding to the hidden window, where the floating bar can be used to bring up the window before it was hidden and display it on the screen. For example, in conjunction with the video application window 300 shown in Figure 3 (1), if the electronic device detects that the user has performed an operation such as clicking on the collapse control 301 with their left hand (the operation is not shown in Figure 3 (1)) (which can be used as an example of the target operation performed on the floating window on the screen), then in response to the operation, as shown in Figure 16 (1), the electronic device collapses the video application window 300 into a floating bar 400, which is displayed in the upper left corner or left side of the electronic device screen. Alternatively, as shown in Figure 16(2), when the electronic device detects an operation such as a click performed by the user with their right hand on the collapse control 301 (which can be seen as an example of a target operation performed on the floating window on the display screen), in response to this operation, as shown in Figure 4, the electronic device collapses the video application window 300 into a floating bar 400, which is displayed in the upper right corner or right side of the electronic device screen. In this implementation, the electronic device can detect the interactive hand used to collapse the window into a floating bar and display the floating bar on the side of the interactive hand.
[0135] Similarly, the above implementation also takes the example of not dividing the electronic device screen into hot zones. In other implementations, the electronic device screen can also be divided into hot zones. For example, in some examples, taking the hot zones shown in Figure 15 and the video application window 300 shown in Figure 3 (1) as examples, when the electronic device detects that the area where the operation to collapse the video application window 300 into a floating bar is applied is in the left hot zone of the screen, then regardless of whether the user uses the left or right hand to perform the operation, in response to the operation, the electronic device can display the floating bar 400 of the collapsed video application window 300 in the upper left corner, as shown in Figure 16 (1). Conversely, when the electronic device detects that the area where the operation to collapse the video application window 300 into a floating bar is applied is in the right hot zone of the screen, then regardless of whether the user uses the left or right hand to perform the operation, in response to the operation, the electronic device can display the floating bar 400 of the collapsed video application window 300 in the upper right corner, as shown in Figure 4. In this example, the electronic device can detect whether the area where the interactive hand used to collapse the window into a floating bar is located in the left or right hot zone of the screen, and then display the collapsed floating bar on the side of the screen hot zone where the interactive hand is located.
[0136] In other examples, taking the hot zone shown in Figure 15 and the video application window 300 shown in Figure 3(1) as examples, when the electronic device detects that the area where the operation to collapse the video application window 300 into a floating bar is applied is in the central hot zone of the screen, if the user's left hand is used to perform the operation, the electronic device can display the collapsed floating bar 400 of the video application window 300 on the left side in response to the operation, as shown in Figure 16(1). Conversely, if the user's right hand is used to perform the operation, the electronic device can display the collapsed floating bar 400 of the video application window 300 on the right side in response to the operation, as shown in Figure 4. In this example, when the area where the hand used to collapse the window into a floating bar is applied is in the central hot zone of the screen, the electronic device can detect the hand and display the collapsed floating bar on the side of the hand.
[0137] In this application scenario, in some embodiments, the position of the floating bar, such as that shown in Figures 4 and 16, can be fixed. That is, once the electronic device displays the floating bar, regardless of whether there is an interactive hand or a holding hand, whether the interactive hand is the left or right hand, or whether the holding hand is the left or right hand, the display position of the floating bar on the screen of the electronic device will not change.
[0138] In other embodiments, such as those shown in Figures 4 and 16, the position of the floating bar can be varied. That is, after the electronic device displays the floating bar, its position can subsequently change depending on at least one of the interacting hand, holding hand, etc. As a specific implementation, after displaying the floating bar, the electronic device can detect at preset intervals whether an interacting hand or holding hand exists within that preset interval, and whether the existing interacting hand or holding hand is the left or right hand. Based on the detection results, the display position of the floating bar after each preset interval is determined. In this way, the electronic device can infer its stable usage state from its instantaneous usage state, and then display the floating bar based on that stable usage state. Based on empirical statistics, when a user is immersed in using an electronic device, the immersive usage time is generally between 30 seconds and 15 minutes, and the user typically does not frequently change the interacting hand, holding hand, etc. Therefore, for example, the preset duration can be greater than or equal to 30 seconds and less than or equal to 15 minutes. Of course, in practical applications, the preset duration can also be set in other ways.
[0139] Optionally, within a preset time period, the user may perform one or more operations on the electronic device, resulting in the electronic device detecting one or more interactive hands or holding hands. It is understood that interactive hands and holding hands may coexist, one or both may coexist, or neither may exist. Optionally, when the user performs a momentary interactive operation such as a click, the electronic device can acquire one interaction event for each click, which may include the corresponding interactive hand or holding hand. When the user performs a prolonged interactive operation such as a swipe, the electronic device can acquire multiple interaction events for each swipe, and each interaction event may include the corresponding interactive hand or holding hand.
[0140] For example, Figure 17 illustrates an example of the interaction hand and holding hand detected by the electronic device provided in this application within a preset time period. As shown in Figure 17, the electronic device acquires 7 interaction events within the preset time period, which are acquired from time t1 to time t7. It is understood that the time interval between adjacent times t1 to t7 is not limited. The usage of the interaction hand and holding hand in the interaction events at each time is as follows: at time t1, the left hand holds the device while the right hand interacts; then, at time t2, the left hand interacts; then, at time t3, the left hand holds the device while the right hand interacts; then, at time t4, the left hand holds the device while the right hand interacts; then, at time t5, the left hand interacts; then, at time t6, only the left hand holds the device, and there is no interaction hand; finally, at time t7, the left hand interacts. Therefore, within the preset time period shown in Figure 17, the user's state of using the electronic device may be that the user holds the electronic device with their left hand and interacts with the electronic device using both their left and right hands.
[0141] In some examples, when the electronic device determines that an interactive hand exists within a preset time period, and that the interactive hand includes only one of the left or right hands, it indicates that the stable usage state of the electronic device is to use only that interactive hand. After the preset time period, such as at the end of the preset time period, the electronic device can adjust the position of the floating bar to the side of the interactive hand that existed within the preset time period (which can be considered an example of a target hand). Alternatively, when the interactive hand includes both the left and right hands, the electronic device can set the position of the floating bar based on the frequency of the left and right hands as interactive hands. For example, after the preset time period, the electronic device can adjust the position of the floating bar to the side of the interactive hand with the highest frequency of interaction within the preset time period. Optionally, in this example, a holding hand may or may not exist within the preset time period.
[0142] In some other examples, when the electronic device determines that only one hand is present during a preset duration, and that hand is either the left or right hand, it indicates that the stable usage state of the electronic device is using only that hand. After the preset duration, such as at the end of the preset duration, the electronic device can adjust the position of the floating bar to the side of the hand present during that preset duration (which can also be considered an example of the target hand). Alternatively, when both the left and right hands are present, the electronic device can set the position of the floating bar based on the frequency of the left and right hands being used as the hand. For example, after the preset duration, the electronic device can adjust the position of the floating bar to the side of the hand with the highest frequency of use during that preset duration. Or, when both the left and right hands are present, but the same hand is used for the first n seconds of the preset duration (e.g., both are left hands), and then for the next n seconds (preset duration - n seconds), the same hand is used (e.g., both are right hands), the electronic device can adjust the position of the floating bar to the side of the hand used for the next n seconds.
[0143] In some other examples, regardless of whether there is an interactive hand or a holding hand within the preset time period, and whether the interactive hand or the holding hand is the left hand or the right hand, the electronic device can directly adjust the position of the floating bar to the side of the last interactive hand, the last holding hand, or the last detected hand (which may be an interactive hand or a holding hand) after the preset time period.
[0144] Understandably, for each preset duration, if the position of the floating bar before that preset duration is the same as the position determined by the electronic device, the electronic device does not need to adjust the position of the floating bar after that preset duration. Conversely, if the position of the floating bar before that preset duration is different from the position determined by the electronic device, the electronic device can adjust the position of the floating bar after the preset duration.
[0145] In some embodiments, the floating bar may include different states: a visible state (the display state of the floating bar 400 as shown in Figure 4 or Figure 16) and a hidden state (the display state of the floating bar 1800 as shown in Figure 18). Optionally, the screen area occupied by the floating bar when displayed in the visible state may be greater than the screen area occupied when displayed in the hidden state. Optionally, the switching of the floating bar state may be automatic. For example, after the electronic device displays the floating bar in the visible state for a certain period of time (such as 5 seconds or other durations), the floating bar may automatically switch to the hidden state, thus avoiding the floating bar affecting the user's use of the electronic device. Alternatively, the switching of the floating bar state may also be triggered based on user operation. This embodiment does not impose specific limitations on the user operation. In this embodiment, as a possible implementation, when the floating bar is in the visible state, the position of the floating bar may be fixed, that is, the position of the floating bar will not change based on the changes in the user's use of the electronic device as described above. Since the floating bar is easily noticed by users when it is visible, if its position changes on the screen, it can be inconvenient for users. Therefore, when the floating bar is visible, its position will not change based on the user's usage of the electronic device as described above, thus ensuring a good user experience.
[0146] As another possible implementation, when the floating bar is hidden, its position can change based on at least one of the interactive hand, holding hand, etc., as described above. Since the floating bar is not easily noticed by the user when it is visible, the position of the floating bar changes with the user's usage state of the electronic device, which makes it convenient for the user to operate the floating bar at any time and improves the convenience of the user's operation of the floating bar. For example, taking the example of the electronic device determining that only the holding hand exists within a preset time period as described above, as shown in Figure 18 (1), the electronic device initially displays the floating bar 1800 in the upper left corner. Then, within the preset time period, as shown in Figure 18 (2), the electronic device detects the presence of the holding hand, the absence of the interactive hand, and the holding hand changes to the right hand. Then, at the end of the preset time period, as shown in Figure 18 (3), the electronic device displays the floating bar 1800 in the upper right corner.
[0147] Of course, in other implementations, regardless of the state in which the floating bar is presented, the floating bar can change according to at least one of the interactive hand, holding hand, etc., as described above.
[0148] The above describes the implementation of a status display window based on user interaction with the electronic device. In some embodiments, the electronic device may also display the window based on a control used to invoke the window. In this embodiment, the electronic device may display the window on the same side as the control used to invoke the window.
[0149] The following example uses a side dock (or sidebar) as the control for bringing up a window. The side dock can display at least one application icon, and each application icon can be used to trigger the display of the corresponding application window. For example, referring to the side dock 110 shown in Figure 1 (2), and taking the display of a video application window as an example, if the electronic device detects that the user has performed a click operation on the video application icon 111 in the side dock 110 using either the left or right hand (the left hand is used as an example in Figure 1 (2)), the electronic device will display the video application window on the left side of the screen in response to the operation (as an example of a floating window corresponding to the application icon), as shown in the display position of the video application window 300 in Figure 3 (1). Alternatively, referring to the desktop 100 shown in Figure 1 (1), if the electronic device detects an operation such as the user performing a swipe to the left on the right side of the electronic device screen, the electronic device can bring up the right side dock 1900 in response to the operation, as shown in Figure 19 (1). For an introduction to the side dock 1900, please refer to the relevant description of the side dock 110 shown in Figure 1 (2). When the electronic device detects that the user has performed a click operation on the video application icon 1901 in the side dock 1900 using either their left or right hand (Figure 19 (1) uses the left hand as an example) (which can also be used as an example of a target operation performed on an application icon), in response to the operation, the electronic device displays the video application window (which can be used as an example of a floating window corresponding to the application icon) on the right side of the screen, as shown in the display position of the video application window 330 in Figure 3 (4). That is to say, in this embodiment, regardless of whether the interactive hand used to bring up the window is the left or right hand, the electronic device will display the window on the same side as the control used to bring up the window, regardless of the interactive hand used. When a user specifically brings up a floating window by accessing the sidebar on one side of the electronic device, it indicates that the user may intend for the floating window to be displayed on the same side as the sidebar. In this case, the electronic device will display the window on the same side as the sidebar, thus satisfying the user's display requirements.
[0150] Similarly, when the control used to bring up the window is another control, such as the floating bar shown in Figures 16 and 18, the solution described in this embodiment is also applicable when the user performs an operation such as clicking on the floating bar to bring up the window again.
[0151] In some other embodiments, the electronic device may also display a window based on user actions. In this embodiment, the display position of the window may be related to the user action performed, but not to the interactive hand performing the user action; that is, the display position of the window may be the same when the same user action is performed using different interactive hands.
[0152] In this embodiment, as a possible implementation, the user operation can be a sliding operation, and the display position of the window can be consistent with the sliding direction of the sliding operation. In this way, the movement trend of the window can be consistent with the sliding direction. For example, in conjunction with the application scenario of adjusting the window size to the smallest window display described above, taking the video application window 300 (which can be used as an example of the first window) as shown in Figure 3 (1), the sliding operation is used to shrink the video application window 300. It can be understood that this example is based on performing a sliding operation on a floating window, and the solution described in this implementation is also applicable to performing a sliding operation on a full-screen window. When the electronic device detects an operation such as the user sliding from the lower right corner of the video application window 300 to the upper left (which can be used as an example of a sliding operation), since the sliding direction of the sliding operation is to the upper left, in response to the sliding operation, the electronic device displays the smallest window corresponding to the video application window 300 in the upper left corner of the screen, as shown in the display position of the smallest window 320 of the video application (which can be used as an example of the second window) in Figure 3 (3). Alternatively, as shown in Figure 19(2), when the electronic device detects an operation such as a user sliding from the lower left corner of the video application window to the upper right (which can also be used as an example of a sliding operation), since the sliding direction of the sliding operation is to the upper right, in response to the operation, the electronic device displays the smallest window corresponding to the video application window 300 in the upper right corner of the screen, as shown in Figure 3(2) (which can also be used as an example of a second window).
[0153] Of course, in other examples, when a user swipes from the top left corner of the video application window 300 to the bottom right, the electronic device can display the smallest window corresponding to the video application window 300 in the bottom right corner of the screen because the swipe direction is bottom right. Alternatively, when a user swipes from the top right corner of the video application window 300 to the bottom left, the electronic device can display the smallest window corresponding to the video application window 300 in the bottom left corner of the screen because the swipe direction is bottom left. Understandably, in practical applications, there can be many more implementations for the swipe direction.
[0154] Optionally, in the above examples, there is no restriction on the display position of the video application window 300 on the screen. In Figure 3 (1) and Figure 19 (2), the window is displayed on the left side of the screen.
[0155] In the example above, the sliding operation is used to adjust the maximized floating window to the minimum window. In other examples, when the sliding operation is used to collapse the window (such as the maximized window, the minimum window, etc. mentioned above) into a floating bar, the display position of the floating bar can also be consistent with the sliding direction of the sliding operation.
[0156] In some other embodiments, when the user modifies the position of the window, the position of the window can remain consistent with the position modified by the user when the electronic device displays the window again. In other words, the position of the window displayed by the electronic device can be independent of the position of the interactive hand, the gripping hand, the control used to bring up the window, etc., as mentioned above. For example, in conjunction with the example shown in Figure 5, when the user modifies the position of the minimum window of the video application, such as dragging the minimum window of the video application from the position of the minimum window 510 shown in Figure 5 (2) to the position of the minimum window 320 shown in Figure 3 (3), it can be understood that in this example, the minimum window 510 and the minimum window 320 can be the same. Then, the user performs a closing operation on the minimum window 320 of the video application shown in Figure 3 (3). For example, if the user drags the minimum window 320 of the video application shown in Figure 3 (3) to the delete control 1920 shown in Figure 19 (3), in response to this operation, the electronic device can close the minimum window 320 of the video application, such as the electronic device can display the desktop 100 shown in Figure 1 (1). Optionally, the delete control 1920 may be presented by the electronic device when it detects that the user has dragged the minimized window 320 of the video application to the display position of the delete control 1920. Of course, the user can also close the minimized window of the video application in other ways, and this embodiment does not limit this.
[0157] Understandably, when a user closes the minimized window of a video application, the application window can continue to run in the background of the electronic device and is not destroyed by the system. For example, the minimized window of the video application may still be displayed in the Recent Tasks Center.
[0158] Next, the user can use the control used to bring up the window of the video application to make the electronic device redisplay the window. For example, taking the control used to bring up the window of the video application as the side dock, the user can bring up the left dock 110 as shown in Figure 1 (2), or the right dock 1900 as shown in Figure 19 (1). Subsequently, the user performs an operation such as clicking on the icon of the video application contained in the side dock (the icon 111 of the video application shown in Figure 1 (2), or the icon 1901 of the video application shown in Figure 19 (1)). In response to the operation, the electronic device will still present the minimum window 320 of the video application in the position shown in Figure 3 (3). That is, no matter which dock the user uses to bring up the previously closed window, the display position of the window is the same as the position before it was closed, regardless of the position of the dock, the interaction hand, the holding hand, etc. It is understood that the control used to bring up the window of the video application can also be other controls, and this embodiment of the application does not limit this.
[0159] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Based on the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.
[0160] This application provides embodiments for dividing an electronic device into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into a single processing unit. The integrated unit can be implemented in hardware or as a software functional module. It should be noted that the unit division in this application embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.
[0161] Figure 20 shows a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 2000 can be used to implement the methods executed by the electronic devices described in the above method embodiments. For example, the electronic device 2000 may include a processing unit 2001 and a display unit 2002.
[0162] The processing unit 2001 is used to support the electronic device 2000 in performing the processing function of the electronic device as described in any one of Figures 1 to 19, and the display unit 2002 is used to support the electronic device 2000 in performing the display function of the electronic device as described in any one of Figures 1 to 19.
[0163] Optionally, the electronic device 2000 shown in FIG20 may further include a storage unit 2003, which stores programs or instructions. When the processing unit 2001 executes the program or instructions, the electronic device 2000 shown in FIG20 can perform the method described in the above-described method embodiments.
[0164] Optionally, the electronic device 2000 shown in FIG20 may also include a communication unit (not shown in FIG20) which can be used to support the electronic device 2000 to communicate with other devices.
[0165] The technical effects of the electronic device 2000 shown in Figure 20 can be referred to the technical effects described in the above method embodiments, and will not be repeated here. The processing unit 2001 involved in the electronic device 2000 shown in Figure 20 can be implemented by a processor or processor-related circuit components, and can be a processor or processing module. The display unit 2002 can be implemented by display screen-related components.
[0166] This application also provides a chip system, as shown in FIG21, which includes at least one processor 2101 and at least one interface circuit 2102. The processor 2101 and the interface circuit 2102 are interconnected via lines. For example, the interface circuit 2102 can be used to receive signals from other devices. As another example, the interface circuit 2102 can be used to send signals to other devices (e.g., the processor 2101). Exemplarily, the interface circuit 2102 can read instructions stored in a memory and send the instructions to the processor 2101. When the instructions are executed by the processor 2101, the electronic device can perform the various steps performed by the electronic device in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0167] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0168] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0169] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0170] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0171] This application also provides a computer storage medium storing computer instructions, which, when executed on an electronic device, cause the electronic device to perform the methods described in the above-described method embodiments.
[0172] This application provides a computer program product, which includes a computer program or instructions that, when run on a computer, cause the computer to perform the methods described in the above-described method embodiments.
[0173] In addition, this application also provides an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the apparatus to perform the methods in the above-described method embodiments.
[0174] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0175] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0176] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The embodiments can be combined with or referenced to each other without conflict. The apparatus embodiments described above are merely illustrative; for example, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0177] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0178] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0179] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0180] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: Display banner notification; Receive a first operation performed on a first area of the banner notification on the display screen; When the first operation is performed by the left hand, in response to the first operation, a floating window corresponding to the banner notification is displayed on the left side of the display screen; Alternatively, when the first operation is performed by the right hand, in response to the first operation, a floating window corresponding to the banner notification is displayed on the right side of the display screen.
2. The method according to claim 1, characterized in that, The first area is any area of the banner notification.
3. The method according to claim 1, characterized in that, The first area is the middle area of the banner notification, which also includes a left area and a right area, arranged in order from left to right.
4. The method according to claim 3, characterized in that, After displaying the banner notification, the method further includes: Receive a second operation performed on a second area of the banner notification on the display screen; When the second area belongs to the left area, in response to the second operation, a floating window corresponding to the banner notification is displayed on the left side of the display screen; Alternatively, when the second area belongs to the right-side area, in response to the second operation, a floating window corresponding to the banner notification is displayed on the right side of the display screen; The second operation is performed by either the left or right hand.
5. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: Display the first floating window; Receive a first operation performed in a first area on the display screen; When the first operation is performed by the left hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the left side of the display screen; Alternatively, when the first operation is performed by the right hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the right side of the display screen; The first floating window is smaller than the second floating window.
6. The method according to claim 5, characterized in that, The first area is any display area of the display screen.
7. The method according to claim 5, characterized in that, The first area is the middle area of the display screen, which also includes a left area and a right area, and the left area, the middle area, and the right area are arranged in order from left to right.
8. The method according to claim 7, characterized in that, After displaying the first floating window, the method further includes: Receive a second operation performed in the second area on the display screen; When the second region belongs to the left region, in response to the second operation, the second floating window is displayed on the left side of the display screen; Alternatively, when the second region belongs to the right region, in response to the second operation, the second floating window is displayed on the right side of the display screen; The second operation is performed by either the left or right hand.
9. The method according to any one of claims 6-8, characterized in that, The first area overlaps with the display area of the first floating window.
10. The method according to any one of claims 5-9, characterized in that, Before the second floating window is displayed, the display screen also displays a third floating window, and the display area of the third floating window overlaps with the display area of the second floating window; When the first operation is performed by the left hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the left side of the display screen, including: When the first operation is performed by the left hand, in response to the first operation, the second floating window is displayed on the left side of the display screen, and the third floating window is displayed on the right side of the second floating window, wherein the display area of the third floating window and the display area of the second floating window do not overlap; Alternatively, when the first operation is performed by the right hand, in response to the first operation, a second floating window corresponding to the first floating window is displayed on the right side of the display screen, including: When the first operation is performed by the right hand, in response to the first operation, the second floating window is displayed on the right side of the display screen, and the third floating window is displayed on the left side of the second floating window, wherein the display area of the third floating window does not overlap with the display area of the second floating window.
11. The method according to claim 10, characterized in that, Displaying the third floating window to the right of the second floating window includes: panning the third floating window to the right; Alternatively, displaying the third floating window to the left of the second floating window includes: panning the third floating window to the left.
12. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: Display floating window; Receive the target operation performed on the floating window on the display screen; When the target operation is performed by the left hand, in response to the target operation, the floating window is collapsed into a floating bar, and the floating bar is displayed on the left side of the display screen; Alternatively, when the target operation is performed by the right hand, in response to the target operation, the floating window is collapsed into a floating bar, and the floating bar is displayed on the right side of the display screen; The floating bar can be used to activate the floating window displayed on the screen.
13. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: A floating bar is displayed, which is used to activate a floating window to be displayed on the screen. At the end of the preset time period, the floating bar is displayed on one side of the display screen in the same direction as the target hand. Within the preset time period, if the hand performing the user operation on the display screen is the left hand, the target hand is the left hand; or, within the preset time period, if the hand performing the user operation on the display screen is the right hand, the target hand is the right hand; or, within the preset time period, if the display screen does not receive any user operation, the target hand is the hand holding the electronic device.
14. The method according to claim 13, characterized in that, The floating bar is in a hidden state, and the area occupied by the floating bar in the hidden state on the display screen is smaller than the area occupied by the floating bar in the visible state on the display screen.
15. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: Receive the target operation to be performed on the application icon, which is displayed in the sidebar on the left side of the display screen; In response to the target operation, a floating window corresponding to the application icon is displayed on the left side of the display screen; or, Receive the target operation to be performed on the application icon, which is displayed in the sidebar on the right side of the display screen; In response to the target operation, a floating window corresponding to the application icon is displayed on the right side of the display screen; The sidebar displays at least one application icon, which is used to trigger a floating window displaying the corresponding application.
16. A window display method, characterized in that, Applied to an electronic device having a display screen, the method includes: Display the first window; Receive a sliding operation, the sliding operation being used to shrink the first window; In response to the sliding operation, a second window is displayed. The second window is smaller than the first window, and the display position of the second window is consistent with the sliding direction of the sliding operation.
17. The method according to claim 16, characterized in that, The response to the sliding operation, displaying a second window, includes: When the sliding operation is a sliding operation from the lower left corner of the first window to the upper right corner, the second window is displayed in the upper right corner of the display screen; Alternatively, if the sliding operation is a sliding operation from the lower right corner of the first window to the upper left corner, the second window is displayed in the upper left corner of the display screen.
18. An electronic device, characterized in that, include: A processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, the memory being used to store program code including instructions, the processor reading the instructions from the memory to cause the electronic device to perform the method as described in any one of claims 1-17.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-17.
20. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1-17.
Citation Information
Patent Citations
Method for controlling position of floating window, and terminal
CN102929535A
Message prompt method and device, equipment and memory medium
CN108540646A
Operation method of suspension control and electronic equipment
CN118113195A
Method for Anti-disturbing, electronic device, and computer-readable storage medium
US20210274035A1