Window layout control method and device, electronic equipment and storage medium

By detecting user triggering operations in the multi-window mode of the mobile terminal and turning off the automatic arrangement mode, the user allows the arrangement window to operate based on his own control, solving the problem of insufficient freedom of user window layout, and achieving higher user experience and operation convenience.

CN119883449AActive Publication Date: 2025-04-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202311398143.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-04-25
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

The layout method of the multi-window mode of mobile terminals is mainly automatically arranged according to the arrangement method specified by the system, giving users a low degree of freedom of window layout, resulting in poor user actual use effect.

Method used

A window layout control method is provided, including closing the automatic layout mode in response to detecting that a trigger operation for the currently displayed window meets a preset condition in an automatic layout mode, and operating the layout window based on the user's control.

Benefits of technology

By detecting the user's trigger operation, identifying the user's intentions, turning off the automatic arrangement mode, meeting the user's need to freely adjust the window layout, taking into account automation and freedom, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883449A_ABST
    Figure CN119883449A_ABST
Patent Text Reader

Abstract

The invention provides a window layout control method and device, electronic equipment and a storage medium, and the window layout control method comprises the steps: in an automatic arrangement mode, closing the automatic arrangement mode in response to the detection that a trigger operation for a currently displayed window meets a preset condition, and arranging the windows based on the control operation of the user for the currently displayed window. In the embodiment of the invention, the automatic arrangement of multiple windows can be realized by utilizing the automatic arrangement mode, so that the window arrangement cost of a user in the use period is reduced, the user can concentrate on own tasks, the operation efficiency of the user is improved, the user intention is identified by detecting the triggering operation of the user for the windows, and the user experience is improved. Therefore, when the user wants to freely arrange the window layout, the automatic arrangement mode is closed, the requirement of the user for freely adjusting the window layout is met, and automation and freedom degree are both considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a window layout control method, device, electronic device and storage medium. Background Art

[0002] In recent years, with the increase in the functions of electronic devices, a desktop mode similar to the multi-window mode of a computer has appeared on mobile touch-screen devices, that is, a multi-window mode with multiple floating windows rather than full-screen windows as the main feature on the display interface of the mobile terminal.

[0003] At present, the layout of the multi-window mode of a mobile terminal is mainly automatically arranged according to the arrangement method specified by the system, which gives users a low degree of freedom in window layout, resulting in poor actual user experience. Summary of the invention

[0004] In order to improve the layout control effect for multiple windows, the embodiments of the present disclosure provide a window layout control method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a window layout control method, comprising:

[0006] In the automatic arrangement mode, in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, the automatic arrangement mode is turned off, wherein the automatic arrangement mode refers to a control mode for automatically laying out each window based on an automatic arrangement rule;

[0007] The windows are arranged based on a user's control operation on the currently displayed windows.

[0008] In some implementations, in the automatic layout mode, the process of automatically laying out each window based on the automatic layout rule includes:

[0009] The currently displayed windows are arranged in sequence and centered in the display direction, and the center point of each window is located on the central axis of the display interface.

[0010] In some implementations, in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, turning off the automatic arrangement mode includes:

[0011] In response to detecting that the total size of all currently displayed windows in the display direction is larger than the display interface size, determining that the trigger operation for the currently displayed window meets the preset condition, the automatic arrangement mode is turned off.

[0012] In some implementations, in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, closing the automatic arrangement mode includes:

[0013] In response to detecting that the distance between the center point of any window currently displayed and the central axis is greater than the first distance, it is determined that the triggering operation for the currently displayed window meets the preset condition, and the automatic arrangement mode is turned off.

[0014] In some implementations, arranging the windows based on a user's control operation on the currently displayed window includes:

[0015] In the presence of any two overlapping windows, in response to at least one of a first size in a first direction and a second size in a second direction of the overlapping area being smaller than a second distance, the windows are moved toward the smaller of the first size and the second size and tiled, wherein the first direction is perpendicular to the second direction.

[0016] In some implementations, arranging the windows based on a user's control operation on the currently displayed window includes:

[0017] When the first window completely covers the second window, a third distance between each edge of the second window and its adjacent edge of the first window is detected, and the second window is moved in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window.

[0018] In some embodiments, when the first window completely covers the second window, detecting a third distance between each edge of the second window and an edge of the first window adjacent thereto, and moving the second window in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window, comprises:

[0019] When the first window completely covers the second window, detecting a fourth distance between each edge of the first window and an adjacent edge of the display interface, and a third distance between each edge of the second window and an adjacent edge of the first window;

[0020] When the fourth distance in the direction of the smallest third distance is smaller than the preset edge distance, the fourth distance in the direction of the second smallest third distance is compared with the preset edge distance until the target fourth distance is greater than or equal to the preset edge distance, the second window is moved in the direction of the target fourth distance, and the edge of the second window not covered by the first window is at a distance from the edge of the first window equal to the preset edge distance.

[0021] In a second aspect, an embodiment of the present disclosure provides a window layout control device, comprising:

[0022] a mode control module configured to, in an automatic arrangement mode, turn off the automatic arrangement mode in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, wherein the automatic arrangement mode refers to a control mode for automatically laying out each window based on an automatic arrangement rule;

[0023] The window arrangement module is configured to arrange the windows based on a user's control operation on the currently displayed windows.

[0024] In some embodiments, the window arrangement module is configured to:

[0025] The currently displayed windows are arranged in sequence and centered in the display direction, and the center point of each window is located on the central axis of the display interface.

[0026] In some embodiments, the mode control module is configured to:

[0027] In response to detecting that the total size of all currently displayed windows in the display direction is larger than the display interface size, determining that the trigger operation for the currently displayed window meets the preset condition, the automatic arrangement mode is turned off.

[0028] In some embodiments, the mode control module is configured to:

[0029] In response to detecting that the distance between the center point of any window currently displayed and the central axis is greater than the first distance, it is determined that the triggering operation for the currently displayed window meets the preset condition, and the automatic arrangement mode is turned off.

[0030] In some embodiments, the window arrangement module is configured to:

[0031] In the presence of any two overlapping windows, in response to at least one of a first size in a first direction and a second size in a second direction of the overlapping area being smaller than a second distance, the windows are moved toward the smaller of the first size and the second size and tiled, wherein the first direction is perpendicular to the second direction.

[0032] In some embodiments, the window arrangement module is configured to:

[0033] When the first window completely covers the second window, a third distance between each edge of the second window and its adjacent edge of the first window is detected, and the second window is moved in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window.

[0034] In some embodiments, the window arrangement module is configured to:

[0035] When the first window completely covers the second window, detecting a fourth distance between each edge of the first window and an adjacent edge of the display interface, and a third distance between each edge of the second window and an adjacent edge of the first window;

[0036] When the fourth distance in the direction of the smallest third distance is smaller than the preset edge distance, the fourth distance in the direction of the second smallest third distance is compared with the preset edge distance until the target fourth distance is greater than or equal to the preset edge distance, the second window is moved in the direction of the target fourth distance, and the edge of the second window not covered by the first window is at a distance from the edge of the first window equal to the preset edge distance.

[0037] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0038] Processor; and

[0039] A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any embodiment of the first aspect.

[0040] In a fourth aspect, an embodiment of the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any embodiment of the first aspect.

[0041] The window layout control method of the embodiment of the present disclosure includes, in the automatic arrangement mode, in response to detecting that the trigger operation for the currently displayed window meets the preset condition, closing the automatic arrangement mode, and arranging the window based on the user's control operation for the currently displayed window. In the embodiment of the present disclosure, the automatic arrangement mode can be used to realize the automatic arrangement of multiple windows, thereby reducing the cost of arranging windows during use by the user, so that the user can focus on their own tasks and improve the user's work efficiency, and by detecting the user's trigger operation for the window to identify the user's intention, so that when the user wants to freely arrange the window layout, the automatic arrangement mode is closed, the user's demand for freely adjusting the window layout is met, and automation and freedom are taken into account. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0043] Figure 1a It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0044] Figure 1b It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0045] Figure 2 It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0046] Figure 3 It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0047] Figure 4 It is a flowchart of a window layout control method in some implementation modes of the present disclosure.

[0048] Figure 5 It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0049] Figure 6 It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0050] Figure 7a It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0051] Figure 7b It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0052] Figure 8 It is a flowchart of a window layout control method in some implementation modes of the present disclosure.

[0053] Figure 9a It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0054] Figure 9b It is a schematic diagram of the principle of the window layout control method in some implementation modes of the present disclosure.

[0055] Fig.10 It is a structural block diagram of a window layout control device in some implementation modes of the present disclosure.

[0056] Fig.11 It is a structural block diagram of an electronic device in some embodiments of the present disclosure. DETAILED DESCRIPTION

[0057] The technical solution of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described implementation is a part of the implementation of the present disclosure, rather than all the implementations. Based on the implementation in the present disclosure, all other implementations obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. In addition, the technical features involved in the different implementations of the present disclosure described below can be combined with each other as long as they do not conflict with each other.

[0058] In recent years, with the increase in the functions of electronic devices, a desktop mode similar to the multi-window mode of a computer has appeared on mobile touch-screen devices, that is, a multi-window mode with multiple floating windows rather than full-screen windows as the main feature on the display interface of the mobile terminal.

[0059] Taking a tablet computer as an example, since a tablet computer provides a larger screen than a mobile phone, users can use the tablet computer to display multiple task windows at the same time to improve work or study efficiency. For example, a user can open a video application window and a note application window at the same time, and take notes while watching a video; another example is that a user can open a communication application window and a video application window at the same time, and chat while watching a video, etc.

[0060] In order to improve the user experience, major manufacturers will optimize the layout of the multi-window mode of tablet computers to make it more suitable for user scenarios. At present, the layout of the multi-window mode of mobile terminals is mainly automatically arranged according to the arrangement method specified by the system. Through this automatic processing method, the cost of arranging windows during use is reduced, so that users can focus on their own tasks.

[0061] However, actual experience has found that this automatic window arrangement method has many inconveniences. For example, some devices can only arrange windows in a fixed layout, such as dividing the screen according to the number of windows. The user's operation to adjust the window size is also relatively limited. For example, it can only adjust the size in a single direction, or only adjust a few fixed sizes. For example, every time the user moves a window or opens / deletes a window, the system recalculates the position and size of all windows and rearranges them. The window moves unnecessarily, which greatly affects the user's work progress. For example, in some segmented scenarios where users have requirements for window layout, the automatic layout method cannot be laid out in the way the user actually wants, which greatly affects the user experience.

[0062] Based on the above-mentioned defects, the embodiments of the present disclosure provide a window layout control method, device, electronic device and storage medium, which aim to optimize the multi-window arrangement method, subdivide different multi-window layout scenarios, identify user intentions through window trigger operations, and turn off the automatic arrangement mode when the user wants to freely arrange the window layout, thereby meeting the user's needs to freely adjust the window layout, taking into account both automation and freedom.

[0063] Figure 1a and Figure 1b The application scenario of the window layout control method disclosed in the present invention is shown below. Figure 1a and Figure 1b Describe the application scenario.

[0064] exist Figure 1a and Figure 1b In the example scenario, the electronic device takes a tablet computer 10 as an example. The appearance of the tablet computer 10 is a rectangular structure, which includes two parallel long sides and two parallel short sides. Therefore, the tablet computer 10 generally has two usage modes: horizontal screen and vertical screen. The manufacturer of the tablet computer 10 will also optimize the horizontal screen and vertical screen usage modes respectively. Figure 1a FIG. 4 shows a schematic diagram of a horizontal screen usage scenario of the tablet computer 10. Figure 1b , a schematic diagram of a vertical screen usage scenario of a tablet computer 10 is shown. The window layout control method of the embodiment of the present disclosure can be applied to both horizontal and vertical screen usage modes.

[0065] When a user is using a tablet computer, in the multi-window mode, multiple windows can be displayed simultaneously on the display interface of the tablet computer 10, for example Figure 1a In the horizontal screen usage scenario of the example, the display interface currently displays three windows, namely window 11, window 12 and window 13.

[0066] In the disclosed embodiment, in the default mode, the automatic arrangement mode is used for the layout of multiple windows. The automatic arrangement mode means that the system will automatically arrange the windows on the current display interface based on pre-set automatic arrangement rules, and the user can only participate in a small number of window adjustment operations.

[0067] For example Figure 2 A schematic diagram showing the process of adding windows in the automatic arrangement mode is shown in FIG. Figure 2 As shown in (a), when there is only one window on the display interface, the window will be automatically centered, that is, the center point of the window coincides with the center point of the screen display interface.

[0068] See also Figure 2As shown in (b), after adding a new window, the two windows will be arranged in a tiled manner in the display direction. The display direction is the direction of the screen, that is, horizontal and vertical. The new window can be added from the right side of the display interface. At the same time, the two windows are arranged in the center vertically, that is, the center points of the two windows are located on the central axis, which is Figure 1a The dotted line a shown, the central axis a represents the center line of the display interface.

[0069] Continue to see Figure 2 As shown in (c), after adding another window, the new window can also be added from the right side of the display interface, and the three windows are arranged horizontally, and the center points of the three windows are also located on the central axis a.

[0070] Figure 2 The following only shows the scene of the automatic window arrangement mode when the screen is horizontal. The automatic window arrangement rules are the same when the screen is vertical. The only difference is that the windows are arranged according to Figure 1b The central axis b shown is arranged vertically, which can be understood by those skilled in the art and will not be elaborated in this disclosure.

[0071] In the above automatic layout mode, users can move, resize, close windows, etc. Figure 3 Provide explanation.

[0072] like Figure 3 As shown in (a), the user can move the displayed window. The specific operation is as follows: As shown in FIG. 1, the user can click the operation bar above the window and then drag the window, for example Figure 3 As shown in (a), the user drags the rightmost window to the leftmost side and lets go, and then the system automatically rearranges the positions of all windows, and the rightmost window is moved to the leftmost side.

[0073] like Figure 3 As shown in (b), the user can adjust the size of the displayed window. The specific operation is as follows: As shown in FIG. 1, the user can click the adjustment button in the lower right corner of the window and then slide the screen to adjust the window size arbitrarily, for example Figure 3 As shown in (b), the user adjusts the size of the middle window and then lets go, and the system automatically rearranges the positions of all the adjusted windows, and the middle window is adjusted to the size the user wants.

[0074] like Figure 3 As shown in (c), the user can close the displayed window by long pressing the window and then sliding it upwards, for example Figure 3 As shown in (b), after the user swipes up to close the middle window, the system automatically rearranges the positions of the remaining two windows and the middle window is closed.

[0075] It is worth noting that in the traditional multi-window mode, users are often not supported to freely adjust the window size. For example, in the horizontal screen multi-window mode, some devices only allow users to adjust the horizontal size of the window, but not the vertical size; in the vertical screen multi-window mode, users are only allowed to adjust the vertical size of the window, but not the horizontal size. For another example, some devices only support several fixed sizes of size adjustment, and users can only choose one size to adjust the window, and cannot adjust the window size arbitrarily.

[0076] In the embodiments of the present disclosure, combined with the above Figure 3 As can be seen from the example, in the automatic layout mode, the user can freely adjust the size of each window, and the system will rearrange the layout according to the adjusted windows to improve user convenience.

[0077] It should be noted that in the above automatic arrangement mode, although the user can control the windows to a certain extent, the window layout is essentially carried out according to certain system rules. For example, all windows are always arranged in a tiled manner along the central axis a. The user can only move the order in which the windows are tiled, and cannot move the windows at will according to the position they want. Moreover, since the windows need to be tiled, once the display window fills the display interface, if you want to open a new window, you need to remove or shrink the original display window, and the user's freedom to adjust the window layout is limited.

[0078] Based on the automatic arrangement mode in the above embodiments, the window layout control method provided in the embodiments of the present disclosure can automatically detect the user's intention. When the user needs to freely arrange the window layout, the automatic arrangement mode is turned off, and the user can freely adjust the window layout. Figure 4 Provide explanation.

[0079] like Figure 4 As shown, in some embodiments, the window layout control method of the present disclosure example includes:

[0080] S410: In the automatic arrangement mode, in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, closing the automatic arrangement mode.

[0081] S420: Arrange windows based on a user's control operation on a currently displayed window.

[0082] In the disclosed embodiment, in the automatic arrangement mode, the windows are arranged based on the automatic arrangement rules, that is, the windows are always arranged flatly along the central axis on the display interface. After the automatic arrangement mode is turned off, the position and size of the windows can be adjusted arbitrarily on the display interface, that is, the windows can overlap each other, or partially move out of the display interface, and the size of the windows can also be freely adjusted by the user.

[0083] In some implementations, in the automatic arrangement mode, it is necessary to detect a trigger operation of the user on the window, and determine whether the automatic arrangement mode needs to be turned off by identifying the trigger operation.

[0084] It is understood that the user's trigger operation on the window can be, for example, Figure 3 In this case, there is no need to turn off the automatic arrangement mode for operations such as moving, adjusting the size, and closing the window shown. Therefore, it is necessary to set corresponding preset conditions for the triggering operation of turning off the automatic arrangement mode. When the triggering operation meets the corresponding preset conditions, it can be determined that the user wants to freely adjust the window layout, thereby turning off the automatic arrangement mode.

[0085] In the embodiment of the present disclosure, by detecting the user triggering operation and identifying the user intention, to determine whether the user needs to turn off the automatic arrangement mode, the following two aspects can be considered:

[0086] 1) Whether the total size of all windows currently displayed on the display interface has exceeded the size of the display interface.

[0087] For example, if the user increases the size of a window or adds a new window, causing the display area of ​​all windows to exceed the area of ​​the entire display interface, the display windows can no longer be tiled according to the automatic layout rules, and it can be determined that the automatic layout mode needs to be turned off.

[0088] 2) The distance that the center point of a certain window deviates from the central axis is greater than the first distance.

[0089] For example, when a user drags a window to a corner of the display interface, and the center point of the window is offset from the central axis by more than a first distance, it means that the user wants to move the window to the target position and no longer wants to arrange it on the central axis according to the automatic arrangement rules. It can be determined that the automatic arrangement mode needs to be turned off.

[0090] Based on the above two implementation modes, they are described below respectively.

[0091] In some implementations, the process of detecting whether the triggering operation on the window satisfies a preset condition includes:

[0092] In response to detecting that a total size of all currently displayed windows in a display direction is larger than a display interface size, it is determined that a trigger operation for the currently displayed window meets a preset condition.

[0093] For example Figure 5 In the example, a total of three windows are displayed on the display interface, and then the user clicks on the middle window to adjust the size. After the user releases the click, the sizes of the three windows in the display direction (i.e., horizontal direction) can be calculated, as well as the sum of the spacing and edge distances to obtain the total size of the three windows in the horizontal direction, and then the total size is compared with the display interface size.

[0094] If the total size is less than or equal to the display interface size, it means that the current display interface can tile all windows, so there is no need to turn off the automatic layout mode. Figure 3 Just process the scene shown in (b).

[0095] If the total size is larger than the display interface size, e.g. Figure 5 In the example, this indicates that the current display interface is unable to support the tiled display of three windows. At this time, it can be determined that the triggering operation of the user adjusting the window size meets the preset conditions, thereby turning off the automatic arrangement mode.

[0096] In some other implementations, the process of detecting whether the triggering operation on the window satisfies a preset condition includes:

[0097] In response to detecting that the distance between the center point of any window currently displayed and the central axis is greater than the first distance, it is determined that the trigger operation for the currently displayed window meets the preset condition, and the automatic arrangement mode is turned off.

[0098] For example Figure 6 In the example, the display interface displays a total of 3 windows, and then the user drags the middle window to move it. After the user releases it, the distance d between the center point O of the middle window and the central axis is then compared with the first distance. The first distance refers to a preset critical value, and the specific value of the first distance can be selected according to the application scenario requirements, and the present disclosure does not limit this.

[0099] If the distance d is less than or equal to the first distance, it means that this may be a normal deviation in the process of the user dragging the window, and the above Figure 3 In the scenario shown in (a), the display windows are rearranged using the automatic arrangement mode.

[0100] If the distance d is greater than the first distance, it means that the user may want to drag the window to the desired position, such as the edge of the screen. At this time, it can be determined that the user's trigger operation to adjust the window size meets the preset conditions, thereby turning off the automatic arrangement mode.

[0101] After turning off the automatic layout mode, users can freely adjust the position and size of each window, such as Figure 5 In the example, the middle window can cover the upper layer of the two side windows and partially overlap with the two side windows; for example Figure 6 In the example, the middle window can be moved to the bottom edge of the screen, and some windows can be moved out of the screen. Of course, the user can also perform more layout operations on the windows, and the present disclosure does not limit this.

[0102] From the above, it can be seen that in the embodiments of the present disclosure, the automatic arrangement mode can be used to realize the automatic arrangement of multiple windows, thereby reducing the cost of arranging windows during use, so that users can focus on their own tasks and improve user work efficiency. In addition, the user's intention is identified by detecting the user's trigger operation on the window, so that when the user wants to freely arrange the window layout, the automatic arrangement mode is turned off, thereby meeting the user's need to freely adjust the window layout, taking into account both automation and freedom.

[0103] In the embodiments of the present disclosure, further optimization can be made for the window layout when the automatic arrangement mode is turned off, so that a better user experience can be obtained when the user freely adjusts the window. For example, in some embodiments, the following layout rules can be set for the non-automatic arrangement mode:

[0104] 1) When the windows overlap slightly, tile the two windows.

[0105] For example Figure 7a In the example, the user moves two windows so that the two windows partially overlap. In this case, the first size x of the overlapping area in the first direction (horizontal) and the second size y in the second direction (vertical) can be calculated respectively.

[0106] Then, the first size x and the second size y are respectively compared with a preset second distance, and the second distance may be a preset value, the value of which may be selected according to the specific scene requirements, and the present disclosure does not limit this. For example, in one example, the second distance may be 30dp.

[0107] It can be understood that if the first size x and the second size y are both greater than or equal to the second distance, it means that the overlapping area of ​​the two windows is very large. In this case, it is only necessary to maintain the overlapping layout of the two windows.

[0108] If at least one of the first size x and the second size y is smaller than the second distance, it means that the two windows have little overlap in at least one direction. In this case, the two windows can be completely tiled without overlapping, so they need to be tiled and rearranged.

[0109] For example, in an example, Figure 7aAs shown, the first size x is smaller than the second distance, and the second size y is larger than the second distance. In this case, the window can be moved toward the smaller direction of the first size x and the second size y. For example, in this example, the window can be moved horizontally so that the two tiles are arranged and no longer overlap.

[0110] It is worth noting that in Figure 7a In the example, the relative moving distance of the two windows only needs to satisfy (x+Δx), where Δx represents the preset spacing between the two windows. The preset spacing can be preset. For example, in this example, the layout of the windows after moving can be as follows: Figure 7b As shown, in Figure 7b In the example, the horizontal distance between the two windows is the preset distance Δx.

[0111] Similarly, if the first size x is greater than the second distance, and the second size y is less than the second distance, the principle is the same as above, and only two windows need to be tiled in the vertical direction to avoid overlapping. If both the first size x and the second size y are less than the second distance, the principle is the same as above, and only two windows need to be tiled in the direction of the smaller one of the first size x and the second size y to avoid overlapping. Those skilled in the art will undoubtedly understand, and the disclosure will not elaborate on this.

[0112] It can be seen from the above that in the embodiments of the present disclosure, by tiling overlapping windows, unnecessary overlapping layouts can be avoided, making the window layout more reasonable, and improving the user's perception and usage experience.

[0113] 2) When one window completely covers another window, the covered window is displayed with its edges exposed.

[0114] Taking the first window and the second window as an example, when the first window completely covers the second window, since the second window is completely located below the first window, the second window will not be visible and it will be difficult for the user to click to switch the second window. Therefore, the second window needs to be displayed with an exposed edge.

[0115] In some embodiments, when the first window completely covers the second window, the third distance between each edge of the second window and its adjacent edge of the first window can be detected, and the second window can be moved in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window.

[0116] In short, when the first window completely covers the second window, the second window is exposed on the side close to it. Figure 8 The implementation process is described.

[0117] like Figure 8As shown, in some embodiments, the window layout control method of the present disclosure example includes:

[0118] S810: When the first window completely covers the second window, detect a fourth distance between each edge of the first window and an adjacent edge of the display interface, and a third distance between each edge of the second window and an adjacent edge of the first window.

[0119] S820. When the fourth distance in the direction of the smallest third distance is smaller than the preset edge distance, compare the fourth distance in the direction of the second smallest third distance with the preset edge distance until the target fourth distance is greater than or equal to the preset edge distance, move the second window toward the target fourth distance, and the distance between the edge of the second window not covered by the first window and the edge of the first window is equal to the preset edge distance.

[0120] Combination Figure 9a As shown, the solid outer frame in the figure is the first window, and the dotted inner frame is the second window. It can be seen that the second window is completely covered by the first window in the lower layer, so that the user cannot see the second window and it is difficult to click on the second window in the lower layer.

[0121] In the embodiment of the present disclosure, a fourth distance m between each edge of the first window and its adjacent edge of the display interface can be detected. For example, the distance between the left edge of the first window and the left edge of the display interface is m1, the distance between the right edge and the right edge of the display interface is m2, the distance between the upper edge and the upper edge of the display interface is m3, and the distance between the lower edge and the lower edge of the display interface is m4.

[0122] At the same time, detect the third distance n between each edge of the second window and the adjacent edge of the first window, for example, the distance between the left edge of the second window and the left edge of the first window is n1, the distance between the right edge of the second window and the right edge of the first window is n2, the distance between the upper edge of the second window and the upper edge of the first window is n3, and the distance between the lower edge of the second window and the lower edge of the first window is n4.

[0123] Based on the aforementioned edge exposure principle, the side to which the second window is closer has the edge exposure, so we can directly compare the sizes of n1 to n4 and select the smallest third distance. The direction of the smallest third distance is the edge exposure direction. Figure 9a In the example, the third distance n1 is the smallest, so it can be determined that the second window is exposed on the left side.

[0124] It is worth noting that, since the exposed edge of the second window needs to occupy a certain space, it is necessary to ensure that the size of the fourth distance between the first window and the edge of the display interface meets the size required for the exposed edge of the second window.

[0125] For example, in one example, combining Figure 9aAs shown, assuming that the third distance n4 is determined to be the smallest, then the fourth distance m4 on the same side is compared with the preset edge distance, and the preset edge distance is the exposed edge size of the second window. For example, if the fourth distance m4 is smaller than the preset edge distance, it means that the lower side space is not enough for the exposed edge size of the second window, and then the second smallest third distance needs to be determined.

[0126] Assuming that the second smallest third distance is determined to be n1, the fourth distance m1 on the same side can be compared with the preset edge distance. And so on, until the fourth distance on a certain side is greater than or equal to the preset edge distance, the edge can be exposed on that side. Of course, if the fourth distances in the four directions are all less than the preset edge distance, the edge exposure operation is no longer performed.

[0127] For example, the edge exposure operation method is to move the second window toward the side where the edge needs to be exposed until the edge of the second window that is not covered by the first window is at a distance equal to the preset edge distance from the edge of the first window. Figure 9a In this example, it is determined that the third distance n1 on the left side is the smallest, and the fourth distance m1 on the left side is greater than the preset edge distance, so that the edge can be exposed on the left side. The effect after the edge is exposed is as follows: Figure 9b As shown, the distance C between the left edge of the second window not covered by the first window and the left edge of the first window is the size of the preset edge distance.

[0128] It can be seen from the above that in the embodiments of the present disclosure, by performing border-revealing processing on the completely covered window, the situation where the window is completely covered and the user cannot view and operate it is avoided, thereby improving the user's control over the window.

[0129] In some embodiments, the present disclosure provides a window layout control device, such as Fig.10 As shown, the device comprises:

[0130] The mode control module 100 is configured to, in the automatic arrangement mode, in response to detecting that a trigger operation for a currently displayed window satisfies a preset condition, turn off the automatic arrangement mode, wherein the automatic arrangement mode refers to a control mode for automatically laying out each window based on an automatic arrangement rule;

[0131] The window arrangement module 200 is configured to arrange the windows based on the user's control operation on the currently displayed windows.

[0132] In some embodiments, the window arrangement module 200 is configured as follows:

[0133] The currently displayed windows are arranged in sequence and centered in the display direction, and the center point of each window is located on the central axis of the display interface.

[0134] In some implementations, the mode control module 100 is configured to:

[0135] In response to detecting that the total size of all currently displayed windows in the display direction is larger than the display interface size, determining that the trigger operation for the currently displayed window meets the preset condition, the automatic arrangement mode is turned off.

[0136] In some implementations, the mode control module 100 is configured to:

[0137] In response to detecting that the distance between the center point of any window currently displayed and the central axis is greater than the first distance, it is determined that the triggering operation for the currently displayed window meets the preset condition, and the automatic arrangement mode is turned off.

[0138] In some embodiments, the window arrangement module 200 is configured as follows:

[0139] In the presence of any two overlapping windows, in response to at least one of a first size in a first direction and a second size in a second direction of the overlapping area being smaller than a second distance, the windows are moved toward the smaller of the first size and the second size and tiled, wherein the first direction is perpendicular to the second direction.

[0140] In some embodiments, the window arrangement module 200 is configured as follows:

[0141] When the first window completely covers the second window, a third distance between each edge of the second window and its adjacent edge of the first window is detected, and the second window is moved in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window.

[0142] In some embodiments, the window arrangement module 200 is configured as follows:

[0143] When the first window completely covers the second window, detecting a fourth distance between each edge of the first window and an adjacent edge of the display interface, and a third distance between each edge of the second window and an adjacent edge of the first window;

[0144] When the fourth distance in the direction of the smallest third distance is smaller than the preset edge distance, the fourth distance in the direction of the second smallest third distance is compared with the preset edge distance until the target fourth distance is greater than or equal to the preset edge distance, the second window is moved in the direction of the target fourth distance, and the edge of the second window not covered by the first window is at a distance from the edge of the first window equal to the preset edge distance.

[0145] From the above, it can be seen that in the embodiments of the present disclosure, the automatic arrangement mode can be used to realize the automatic arrangement of multiple windows, thereby reducing the cost of arranging windows during use, so that users can focus on their own tasks and improve user work efficiency. In addition, the user's intention is identified by detecting the user's trigger operation on the window, so that when the user wants to freely arrange the window layout, the automatic arrangement mode is turned off to meet the user's needs to freely adjust the window layout, taking into account automation and freedom. By tiling overlapping windows, unnecessary overlapping layouts can be avoided, making the window layout more reasonable, and improving the user's perception and usage experience. By exposing the edges of completely covered windows, it is avoided that the window is completely covered and the user cannot view and operate it, thereby improving the user's control over the window.

[0146] In some embodiments, the present disclosure provides an electronic device, including:

[0147] Processor; and

[0148] A memory stores computer instructions, wherein the computer instructions are used to enable a processor to execute the method described in any of the above embodiments.

[0149] In some embodiments, the present disclosure provides a storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in any of the above embodiments.

[0150] Fig.11 The electronic device structure in some embodiments of the present disclosure is shown in FIG. Fig.11 Electronic devices according to some embodiments of the present disclosure are described.

[0151] Reference Fig.11 , the electronic device 1800 may include one or more of the following components: a processing component 1802 , a memory 1804 , a power component 1806 , a multimedia component 1808 , an audio component 1810 , an input / output (I / O) interface 1812 , a sensor component 1816 , and a communication component 1818 .

[0152] The processing component 1802 generally controls the overall operation of the electronic device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions. In addition, the processing component 1802 may include one or more modules to facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 may include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802. For another example, the processing component 1802 may read executable instructions from a memory to implement electronic device related functions.

[0153] The memory 1804 is configured to store various types of data to support operations on the electronic device 1800. Examples of such data include instructions for any application or method operating on the electronic device 1800, contact data, phone book data, messages, pictures, videos, etc. The memory 1804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0154] The power supply component 1806 provides power to the various components of the electronic device 1800. The power supply component 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1800.

[0155] The multimedia component 1808 includes a display screen that provides an output interface between the electronic device 1800 and the user. In some embodiments, the multimedia component 1808 includes a front camera and / or a rear camera. When the electronic device 1800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0156] The audio component 1810 is configured to output and / or input audio signals. For example, the audio component 1810 includes a microphone (MIC), and when the electronic device 1800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1804 or sent via the communication component 1818. In some embodiments, the audio component 1810 also includes a speaker for outputting audio signals.

[0157] I / O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0158] The sensor assembly 1816 includes one or more sensors for providing various aspects of status assessment for the electronic device 1800. For example, the sensor assembly 1816 can detect the open / closed state of the electronic device 1800, the relative positioning of components, such as the display and keypad of the electronic device 1800, and the sensor assembly 1816 can also detect the position change of the electronic device 1800 or a component of the electronic device 1800, the presence or absence of user contact with the electronic device 1800, the orientation or acceleration / deceleration of the electronic device 1800, and the temperature change of the electronic device 1800. The sensor assembly 1816 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1816 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1816 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0159] The communication component 1818 is configured to facilitate wired or wireless communication between the electronic device 1800 and other devices. The electronic device 1800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 1818 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1818 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0160] In an exemplary embodiment, the electronic device 1800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0161] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the embodiments. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. The obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A window layout control method, characterized in that: include: In the automatic arrangement mode, in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, the automatic arrangement mode is turned off, wherein the automatic arrangement mode refers to a control mode for automatically laying out each window based on an automatic arrangement rule; The windows are arranged based on a user's control operation on the currently displayed windows.

2. The method according to claim 1, characterized in that In the automatic layout mode, the process of automatically laying out each window based on the automatic layout rule includes: The currently displayed windows are arranged in sequence and centered in the display direction, and the center point of each window is located on the central axis of the display interface.

3. The method according to claim 2, characterized in that In response to detecting that the triggering operation on the currently displayed window meets a preset condition, closing the automatic arrangement mode includes: In response to detecting that the total size of all currently displayed windows in the display direction is larger than the display interface size, determining that the trigger operation for the currently displayed window meets the preset condition, the automatic arrangement mode is turned off.

4. The method according to claim 2 or 3, characterized in that: In response to detecting that the triggering operation on the currently displayed window meets a preset condition, closing the automatic arrangement mode includes: In response to detecting that the distance between the center point of any window currently displayed and the central axis is greater than the first distance, it is determined that the triggering operation for the currently displayed window meets the preset condition, and the automatic arrangement mode is turned off.

5. The method according to claim 1, characterized in that The arranging the windows based on the user's control operation on the currently displayed window includes: In the presence of any two overlapping windows, in response to at least one of a first size in a first direction and a second size in a second direction of the overlapping area being smaller than a second distance, the windows are moved toward the smaller of the first size and the second size and tiled, wherein the first direction is perpendicular to the second direction.

6. The method according to claim 1, characterized in that The arranging the windows based on the user's control operation on the currently displayed window includes: When the first window completely covers the second window, a third distance between each edge of the second window and its adjacent edge of the first window is detected, and the second window is moved in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window.

7. The method according to claim 6, characterized in that In the case where the first window completely covers the second window, detecting a third distance between each edge of the second window and an edge of the first window adjacent thereto, and moving the second window in a direction where the third distance is minimum so that at least one edge of the second window is not covered by the first window, comprises: When the first window completely covers the second window, detecting a fourth distance between each edge of the first window and an adjacent edge of the display interface, and a third distance between each edge of the second window and an adjacent edge of the first window; When the fourth distance in the direction of the smallest third distance is smaller than the preset edge distance, the fourth distance in the direction of the second smallest third distance is compared with the preset edge distance until the target fourth distance is greater than or equal to the preset edge distance, the second window is moved in the direction of the target fourth distance, and the edge of the second window not covered by the first window is at a distance from the edge of the first window equal to the preset edge distance.

8. A window layout control device, characterized in that: include: a mode control module configured to, in an automatic arrangement mode, turn off the automatic arrangement mode in response to detecting that a trigger operation on a currently displayed window satisfies a preset condition, wherein the automatic arrangement mode refers to a control mode for automatically laying out each window based on an automatic arrangement rule; The window arrangement module is configured to arrange the windows based on a user's control operation on the currently displayed windows.

9. An electronic device, characterized in that: include: processor; and A memory storing computer instructions, wherein the computer instructions are used to enable a processor to execute the method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: Computer instructions are stored, and the computer instructions are used to make a computer execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Function menu selecting method and device

    CN103412712A

  • Method for processing screen display window and mobile terminal

    CN104503682A

  • Auto-grouping of application windows

    CN105210030A

  • Method for quickly switching application, mobile terminal, computer readable storage medium

    CN107203305A

  • Method and device for displaying application interface and storage medium

    CN111399720A