Interaction method, electronic equipment and computer readable storage medium
By positioning windows on the left or right side of the display interface based on interactive operation location, the device addresses the inconvenience of large screen operation, enhancing user experience and efficiency.
Patent Information
- Application Number
- CN202310661085.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
Existing electronic devices with large display screens face challenges in conveniently displaying windows, leading to a poor user experience due to inconvenient operation.
The electronic device determines the position of an interactive operation on the display interface and displays the corresponding window on the left or right side based on this position, ensuring it is easily accessible for the user.
This approach enhances user convenience and experience by positioning windows optimally, allowing easier interaction and improving display efficiency.
Smart Images

Figure CN119088253A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and in particular, relates to an interaction method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Existing electronic devices are generally provided with a touch display screen, and users can perform interactive operations in the touch display screen to interact with the electronic device to use the electronic device. When an interactive operation in the touch display screen is detected, the electronic device can display a corresponding window in the display interface in response to the interactive operation. The user can continue to operate the content in the window to interact. However, in some cases, such as in an electronic device with a large display screen, the window displayed by the electronic device is not convenient for the user to operate, resulting in a poor user experience. Summary of the invention
[0003] The embodiments of the present application provide an interaction method, an electronic device, and a computer-readable storage medium, which can solve the problem in the prior art that the window displayed by the electronic device is inconvenient for the user to operate, resulting in a poor user experience.
[0004] In a first aspect, an embodiment of the present application provides an interaction method, which is applied to an electronic device. The method may include:
[0005] The electronic device displays a first control in a display interface;
[0006] The electronic device detects an interactive operation on the first control;
[0007] The electronic device determines a first position of the interactive operation in the display interface;
[0008] When the first position is located on the left side of the display interface, the electronic device displays a first window on the left side of the display interface, and the content displayed in the first window is the content in response to the interactive operation;
[0009] When the first position is located on the right side of the display interface, the electronic device displays the first window on the right side of the display interface.
[0010] In the above-mentioned interaction method, the electronic device can display a first control in the display interface, and when an interaction operation acting on the first control is detected, the electronic device can determine the first position of the interaction operation in the display interface. When the first position is the position on the left side of the display interface, the electronic device can display the first window on the left side of the display interface; when the first position is the position on the right side of the display interface, the electronic device can display the first window on the right side of the display interface. The content displayed in the first window is the content in response to the interaction operation. That is, when the electronic device detects an interaction operation on the first control, it can display the first window on the left or right side of the display interface according to the first position of the interaction operation in the display interface, so that the first window is located in a position in the display interface that is convenient for the user to operate, thereby facilitating the user to continue to interact according to the first window, improving the convenience of operation, and enhancing the user experience.
[0011] Optionally, the length of the first control is greater than or equal to a preset length.
[0012] In the interactive method provided by the implementation, the first control may be a large control with a large operation area. That is, in a large control scenario, the electronic device may display the first window on the left or right side of the display interface according to the first position of the interactive operation in the display interface, so that the first window is located at a position in the display interface that is convenient for the user to operate, thereby facilitating the user to continue to interact according to the first window and improving the user experience.
[0013] Exemplarily, the electronic device can determine whether the first control is a large control with a large operating area according to the width of the first control. Specifically, when the width of the first control is greater than or equal to a preset width, the electronic device can determine that the first control is a large control with a large operating area.
[0014] Exemplarily, the electronic device can determine whether the first control is a large control with a large operating area according to the height of the first control. Specifically, when the height of the first control is greater than or equal to a preset height, the electronic device can determine that the first control is a large control with a large operating area.
[0015] In a possible implementation manner of the first aspect, the electronic device displays the first window on the left side of the display interface, which may include:
[0016] The electronic device displays the first window at a first preset position on the left side of the display interface.
[0017] In the interactive method provided by the implementation, when the first window is displayed on the left side of the display interface, the electronic device can display the first window at a first preset position on the left side. It should be understood that the first preset position can be set by default by the electronic device. For example, the electronic device can set the first preset position by default to any position in the comfortable operation area on the left side of the display interface, so as to display the first window in the comfortable operation area on the left side of the display interface, thereby facilitating the user to operate the first window and improving the user experience.
[0018] It is understandable that the comfortable operation area refers to an area in the display interface where the user can operate more conveniently. The comfortable operation area can be determined according to an existing determination method.
[0019] Optionally, the electronic device displays the first window at a first preset position on the left side of the display interface, which may include:
[0020] When the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, the electronic device updates the first preset position and displays the first window at the updated first preset position so that the left edge of the first window does not exceed the left edge of the display interface.
[0021] In the interactive method provided by the implementation, when the first window is displayed at the first preset position, the electronic device can determine whether the left edge of the first window will exceed the left edge of the display interface according to the size of the first window and the left edge of the display interface. When the left edge of the first window will exceed the left edge of the display interface, the electronic device can update the first preset position and display the first window at the updated first preset position. For example, the electronic device can move the first preset position to the right to move the first window to the right so that the left edge of the first window does not exceed the left edge of the display interface, so that the first window can be fully displayed in the display interface, thereby improving the display effect.
[0022] Similarly, the electronic device displays the first window on the right side of the display interface, which may include:
[0023] The electronic device displays the first window at a second preset position on the right side of the display interface.
[0024] In the interactive method provided by the implementation, when the first window is displayed on the right side of the display interface, the electronic device can display the first window at the second preset position on the right side. It should be understood that the second preset position can be set by default by the electronic device. For example, the electronic device can set the second preset position by default to any position in the comfortable operation area on the right side of the display interface, so as to display the first window in the comfortable operation area on the right side of the display interface, thereby facilitating the user to operate the first window and improving the user experience.
[0025] Optionally, the electronic device displays the first window at a second preset position on the right side of the display interface, which may include:
[0026] When the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, the electronic device updates the second preset position and displays the first window at the updated second preset position so that the right edge of the first window does not exceed the right edge of the display interface.
[0027] In the interactive method provided by the implementation, when the first window is displayed at the second preset position, the electronic device can determine whether the right edge of the first window will exceed the right edge of the display interface according to the size of the first window and the right edge of the display interface. When the right edge of the first window will exceed the right edge of the display interface, the electronic device can update the second preset position and display the first window at the updated second preset position. For example, the electronic device can move the second preset position to the left to move the first window to the left so that the right edge of the first window does not exceed the right edge of the display interface, so that the first window can be fully displayed in the display interface, improving the display effect.
[0028] In another possible implementation manner of the first aspect, the electronic device displays the first window on the left side of the display interface, which may include:
[0029] The electronic device displays the first window on the left side of the display interface according to the size of the first window and the left edge of the display interface, and the left edge of the first window does not exceed the left edge of the display interface.
[0030] In the interactive method provided by the implementation, when the first position of the interactive operation in the display interface is the position on the left side of the display interface, the electronic device can directly display the first window on the left side of the display interface according to the size of the first window and the left edge of the display interface. When the first window is displayed on the left side of the display interface, the left edge of the first window does not exceed the left edge of the display interface. For example, the left edge of the first window and the left edge of the display interface can be separated by a preset distance, so that the first window can be fully displayed in the display interface, improving the display effect, and ensuring the easy accessibility of the first window, which is convenient for user operation.
[0031] Similarly, the electronic device displays the first window on the right side of the display interface, which may include:
[0032] The electronic device displays the first window on the right side of the display interface according to the size of the first window and the right side edge of the display interface, and the right side edge of the first window does not exceed the right side edge of the display interface.
[0033] In the interactive method provided by the implementation, when the first position of the interactive operation in the display interface is the position on the right side of the display interface, the electronic device can directly display the first window on the right side of the display interface according to the size of the first window and the right edge of the display interface. When the first window is displayed on the right side of the display interface, the right edge of the first window does not exceed the right edge of the display interface. For example, the right edge of the first window and the right edge of the display interface can be separated by a preset distance, so that the first window can be completely displayed in the display interface, improving the display effect, and ensuring the easy accessibility of the first window, which is convenient for user operation.
[0034] In another possible implementation manner of the first aspect, the electronic device displays the first window on the left side of the display interface, which may include:
[0035] The electronic device displays the first window on the left side of the display interface based on the first position, the size of the first window, and the left edge of the display interface, and the position of the first window on the left side of the display interface is determined based on the first position, or the left edge of the first window does not exceed the left edge of the display interface.
[0036] In the interaction method provided by this implementation, when the first position of the interactive operation in the display interface is the position on the left side of the display interface, the electronic device can display the first window on the left side of the display interface according to the first position, the size of the first window and the left edge of the electronic device, so that the first window is located on the left side of the display interface and close to the position where the user performs the interactive operation, thereby ensuring the tracking of the first window, reducing the user's line of sight jumping, facilitating the user to operate the first window, and improving the user experience.
[0037] Among them, when the first window is displayed on the left side of the display interface according to the first position, the size of the first window and the left edge of the electronic device, the electronic device can determine the display position of the first window on the left side of the display interface according to the first position. When it is determined that the first window displayed at the display position will exceed the left edge of the display interface according to the size of the first window and the left edge of the display interface, the electronic device can update the display position according to the left edge of the first window and the left edge of the display interface, and display the first window at the updated display position so that the left edge of the first window does not exceed the left edge of the display interface.
[0038] Similarly, the electronic device displays the first window on the right side of the display interface, which may include:
[0039] The electronic device displays the first window on the right side of the display interface based on the first position, the size of the first window, and the right edge of the display interface, and the position of the first window on the right side of the display interface is determined based on the first position, or the right edge of the first window does not exceed the right edge of the display interface.
[0040] In the interaction method provided by this implementation, when the first position of the interactive operation in the display interface is the position on the right side of the display interface, the electronic device can display the first window on the right side of the display interface according to the first position, the size of the first window and the right edge of the electronic device, so that the first window is located on the right side of the display interface and close to the position where the user performs the interactive operation, thereby ensuring the tracking of the first window, reducing the user's line of sight jumping, facilitating the user to operate the first window, and improving the user experience.
[0041] Among them, when the first window is displayed on the right side of the display interface according to the first position, the size of the first window and the right edge of the electronic device, the electronic device can determine the display position of the first window on the right side of the display interface according to the first position. When it is determined that the first window displayed at the display position will exceed the right edge of the display interface according to the size of the first window and the right edge of the display interface, the electronic device can update the display position according to the right edge of the first window and the right edge of the display interface, and display the first window at the updated display position so that the right edge of the first window does not exceed the left edge of the display interface.
[0042] In one example, the electronic device displays the first window on the left side of the display interface, which may include:
[0043] When the first window can be fully displayed above the first control in the display interface, the electronic device displays the first window on the left side of the display interface and above the first control; or,
[0044] When the first window cannot be completely displayed above the first control in the display interface, the electronic device displays the first window on the left side of the display interface and below the first control.
[0045] In another example, the electronic device displays the first window on the right side of the display interface, which may include:
[0046] When the first window can be fully displayed above the first control in the display interface, the electronic device displays the first window on the right side of the display interface and above the first control; or,
[0047] When the first window cannot be completely displayed above the first control in the display interface, the electronic device displays the first window on the right side of the display interface and below the first control.
[0048] In the interaction method provided by this implementation, after detecting an interactive operation acting on the first control, the electronic device may still display the first control in the display interface. At this time, in order to avoid the first window blocking the first control, improve the display effect of the interface, and enhance the user experience, the electronic device can also display the first window according to the upper edge or lower edge of the first control when displaying the first window on the left or right side of the display interface.
[0049] Exemplarily, when the first window can be completely displayed above the first control in the display interface, for example, when the distance between the upper edge of the first control and the upper edge of the display interface is greater than or equal to the height of the first window, it indicates that the first window can be completely displayed above the first control. At this time, the electronic device can display the first window from bottom to top above the first control. In other words, when the first control is close to the lower edge of the display interface, the electronic device can display the first window from the top of the first control upwards.
[0050] For example, when it is determined to display the first window on the left side of the display interface, the electronic device can display the first window on the left side of the display interface, from the top of the first control upwards. When it is determined to display the first window on the right side of the display interface, the electronic device can display the first window on the right side of the display interface, from the top of the first control upwards.
[0051] Optionally, when the first window is displayed from bottom to top on top of the first control, a preset distance may be provided between the lower edge of the first window and the upper edge of the first control to ensure accessibility of the first window, thereby facilitating user operation and improving user experience.
[0052] Exemplarily, when the first window cannot be fully displayed above the first control in the display interface, for example, when the distance between the upper edge of the first control and the upper edge of the display interface is less than the height of the first window, it indicates that the first window cannot be fully displayed above the first control. At this time, the electronic device can display the first window from top to bottom below the first control. That is, when the first control is close to the upper edge of the display interface, the electronic device can display the first window from the bottom of the first control to the bottom.
[0053] For example, when it is determined to display the first window on the left side of the display interface, the electronic device can display the first window on the left side of the display interface, from the bottom of the first control downward. When it is determined to display the first window on the right side of the display interface, the electronic device can display the first window on the right side of the display interface, from the bottom of the first control downward.
[0054] Optionally, when the first window is displayed from top to bottom at the bottom of the first control, a preset distance may be provided between the upper edge of the first window and the lower edge of the first control to ensure accessibility of the first window, thereby facilitating user operation and improving user experience.
[0055] Exemplarily, after detecting an interactive operation acting on a first control, the display interface of the electronic device may no longer display the first control. At this time, the electronic device may display the first window on the left or right side of the display interface according to the first position of the interactive operation in the display interface.
[0056] For example, when the first position is located on the left side of the display interface, the electronic device can display the first window in the comfortable operation area on the left side of the display interface according to the size of the first window and the left edge of the display interface. Alternatively, the electronic device can display the first window in the comfortable operation area on the left side of the display interface according to the first position, the size of the first window and the left edge of the display interface, and the displayed first window is close to the first position, so as to reduce the user's line of sight jumping and facilitate the user to operate the first window.
[0057] Similarly, when the first position is on the right side of the display interface, the electronic device can display the first window in the comfortable operation area on the right side of the display interface according to the size of the first window and the right edge of the display interface. Alternatively, the electronic device can display the first window in the comfortable operation area on the right side of the display interface according to the first position, the size of the first window and the right edge of the display interface, and the displayed first window is close to the first position, so as to reduce the user's line of sight jumping and facilitate the user to operate the first window.
[0058] In a possible implementation of the first aspect, the display interface includes a left display area and a right display area in a left-right split screen;
[0059] After the electronic device determines the first position of the interactive operation in the display interface, the method may further include:
[0060] When the first position is located in the left display area, the electronic device determines that the first position is located on the left side of the display interface;
[0061] When the first position is located in the right display area, the electronic device determines that the first position is located on the right side of the display interface.
[0062] In the interactive method provided by the implementation, when the display interface includes a left display area and a right display area of a left-right split screen, since the left display area is the area on the left side of the display interface and the right display area is the area on the right side of the display interface, when the first position is any position in the left display area, the electronic device can determine that the first position is on the left side of the display interface, and can display the first window on the left side of the display interface. When the first position is any position in the right display area, the electronic device can determine that the first position is on the right side of the display interface, and can display the first window on the right side of the display interface, so as to improve display efficiency and enhance user experience.
[0063] For example, the first control A corresponding to application A may be displayed in the left display area, and the first control B corresponding to application B may be displayed in the right display area. When the user performs an interactive operation on the first control A, such as performing an interactive operation at any position of the first control A, the electronic device may directly determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface, and may display the first window A corresponding to the first control A on the left side of the display interface. When the user performs an interactive operation on the first control B, such as performing an interactive operation at any position of the first control B, the electronic device may determine that the first position of the interactive operation in the display interface is the position on the right side of the display interface, and may display the first window B corresponding to the first control B on the right side of the display interface.
[0064] Exemplarily, the left display area may also include a first left display area and a second left display area in a split screen. The first left display area may display a first control A corresponding to application A, and the second left display area may display a first control C corresponding to application C.
[0065] When the user performs an interactive operation on the first control A, the electronic device can determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface. At this time, the electronic device can display the first window A corresponding to the first control A on the left side of the display interface. When the user performs an interactive operation on the first control C, the electronic device can also determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface. At this time, the electronic device can display the first window C corresponding to the first control C on the left side of the display interface.
[0066] Optionally, the electronic device may display the first window A and the first window C in the same display area. For example, the first window A and the first window C may be displayed in the first left display area, or the first window A and the first window C may be displayed in the second left display area. That is, when the user performs an interactive operation on the first control A, the electronic device may display the first window A in the first left display area. When the user performs an interactive operation on the first control C, the electronic device may also display the first window C in the first left display area. Alternatively, when the user performs an interactive operation on the first control A, the electronic device may display the first window A in the second left display area. When the user performs an interactive operation on the first control C, the electronic device may also display the first window C in the second left display area.
[0067] In another example, the electronic device may display the first window A and the first window C in different display areas. For example, the electronic device may display the first window A in the first left display area, and may display the first window C in the second left display area.
[0068] In another possible implementation of the first aspect, the display interface includes an upper display area and a lower display area in a split screen;
[0069] After the electronic device determines the first position of the interactive operation in the display interface, the method may further include:
[0070] When the first position is located on the left side of the upper display area or the left side of the lower display area, the electronic device determines that the first position is located on the left side of the display interface;
[0071] When the first position is located on the right side of the upper display area or the right side of the lower display area, the electronic device determines that the first position is located on the right side of the display interface.
[0072] In the interaction method provided by this implementation, when the display interface includes an upper display area and a lower display area that are split into upper and lower screens, since the upper display area and the lower display area both include an area on the left side and an area on the right side of the display interface, when the first position is located in the upper display area or the lower display area, the electronic device needs to determine whether the first position is located on the left side or the right side of the display interface, so as to determine whether to display the first window on the left side or the right side of the display interface.
[0073] For example, the first control A corresponding to application A may be displayed in the upper display area, and the first control B corresponding to application B may be displayed in the lower display area. When the user performs an interactive operation on the first control A, the electronic device may determine the first position of the interactive operation in the display interface. When the first position is a position on the left side of the display interface, the electronic device may display a first window A corresponding to the first control A on the left side of the display interface. When the first position is a position on the right side of the display interface, the electronic device may display a first window A corresponding to the first control A on the right side of the display interface.
[0074] Similarly, when the user performs an interactive operation on the first control B, the electronic device can determine the first position of the interactive operation in the display interface. When the first position is the position on the left side of the display interface, the electronic device can display the first window B corresponding to the first control B on the left side of the display interface. When the first position is the position on the right side of the display interface, the electronic device can display the first window B corresponding to the first control B on the right side of the display interface.
[0075] In one example, the electronic device may display the first window A and the first window B in the same area. For example, the first window A and the first window B may be displayed in the upper display area, or the first window A and the first window B may be displayed in the lower display area. That is, when the user performs an interactive operation on the first control A, the electronic device may display the first window A on the left or right side of the upper display area. When the user performs an interactive operation on the first control B, the electronic device may also display the first window B on the left or right side of the upper display area.
[0076] Alternatively, when the user performs an interactive operation on the first control A, the electronic device may display the first window A on the left or right side of the lower display area. When the user performs an interactive operation on the first control B, the electronic device may also display the first window B on the left or right side of the lower display area.
[0077] In another example, the electronic device can display the first window A and the first window B in different areas. For example, the electronic device can display the first window A on the left or right side of the upper display area, and display the first window B on the left or right side of the lower display area.
[0078] In a second aspect, an embodiment of the present application provides an interaction method, which is applied to an electronic device. The method may include:
[0079] The electronic device displays a first control in a display interface;
[0080] The electronic device detects an interactive operation on the first control;
[0081] The electronic device determines whether the interaction operation is performed by the left hand or the right hand;
[0082] When it is determined that the left hand performs the interactive operation, the electronic device displays a first window on the left side of the first control, and the content displayed in the first window is the content in response to the interactive operation;
[0083] When it is determined that the right hand performs the interactive operation, the electronic device displays the first window on the right side of the first control.
[0084] In the above-mentioned interaction method, the electronic device can display the first control in the display interface, and when an interaction operation acting on the first control is detected, the electronic device can determine whether the interaction operation is performed by the left hand or the right hand. When the interaction operation is performed by the left hand, the electronic device can display the first window on the left side of the first control; when the interaction operation is performed by the right hand, the electronic device can display the first window on the right side of the first control. The content displayed in the first window is the content in response to the interaction operation. That is, when the electronic device detects an interaction operation on the first control, it can display the first window according to the left / right hand performing the interaction operation, so that the displayed first window is closer to the hand of the user performing the interaction operation, thereby facilitating the user to continue to operate the first window with the left / right hand, thereby improving the user experience.
[0085] Optionally, the length of the first control is less than a preset length.
[0086] In the interactive method provided by this implementation, the first control may be a small control with a small operation area. That is, in a small control scenario, the electronic device may display the first window on the left or right side of the first control according to whether the interactive operation is performed by the left hand or the right hand, so that the first window is located closer to the hand of the user performing the interactive operation, thereby facilitating the user to continue to interact according to the first window and improving the user experience.
[0087] Exemplarily, the electronic device may determine whether the first control is a small control with a small operation area according to the width of the first control. Specifically, when the width of the first control is less than a preset width, the electronic device may determine that the first control is a small control with a small operation area.
[0088] Exemplarily, the electronic device can determine whether the first control is a small control with a small operating area according to the height of the first control. Specifically, when the height of the first control is less than a preset height, the electronic device can determine that the first control is a small control with a small operating area.
[0089] In a possible implementation manner of the second aspect, the electronic device displaying the first window on the left side of the first control may include:
[0090] The electronic device displays the first window at a first preset position on the left side of the first control.
[0091] It should be understood that the first preset position can be specifically determined according to the actual scenario. For example, the electronic device can set any position in the comfortable operation area on the left side of the first control as the first preset position by default. For example, the electronic device can set the first preset position by default as a position on the left side of the first control that is a preset distance away from the first control, and so on.
[0092] Exemplarily, the electronic device displays the first window at a first preset position on the left side of the first control, which may include:
[0093] When the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, the electronic device updates the first preset position to obtain a third preset position, and displays the first window at the third preset position so that the left edge of the first window does not exceed the left edge of the display interface.
[0094] In the interactive method provided by the implementation, when the first window is displayed at the first preset position, the electronic device can determine whether the left edge of the first window will exceed the left edge of the display interface according to the size of the first window and the left edge of the display interface. When the left edge of the first window will exceed the left edge of the display interface, the electronic device can update the first preset position, obtain a third preset position, and display the first window at the third preset position. For example, the electronic device can move the first preset position to the right to move the first window to the right, so that the left edge of the first window does not exceed the left edge of the display interface, so that the first window can be fully displayed in the display interface, improving the display effect.
[0095] Optionally, the electronic device displaying the first window at the third preset position may include:
[0096] When the first window is displayed at the third preset position and there is an overlapping area between the first window and the first control, the electronic device updates the third preset position and displays the first window at the updated third preset position so that there is no overlapping area between the first window and the first control.
[0097] In the interactive method provided by the implementation, after detecting an interactive operation acting on the first control, the electronic device may still display the first control in the display interface. At this time, after updating the first preset position and obtaining the third preset position, the electronic device may also determine whether the first window will block the first control when the first window is displayed at the third preset position. When the first window will block the first control, the electronic device may update the third preset position, for example, according to the upper edge or lower edge of the first control, the third preset position may be moved up or down, so that there is no overlapping area between the first window displayed at the updated third preset position and the first control, thereby avoiding the first window blocking the first control, improving the display effect of the interface, and enhancing the user experience.
[0098] In another possible implementation manner of the second aspect, the electronic device displays the first window on the right side of the first control, including:
[0099] The electronic device displays the first window at a second preset position on the right side of the first control.
[0100] It should be understood that the second preset position can be specifically determined according to the actual scenario. For example, the electronic device can set any position in the comfortable operation area on the right side of the first control as the second preset position by default. For example, the electronic device can set the second preset position by default as a position on the right side of the first control that is a preset distance away from the first control, and so on.
[0101] Exemplarily, the electronic device displays the first window at a second preset position on the right side of the first control, which may include:
[0102] When the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, the electronic device updates the second preset position to obtain a fourth preset position, and displays the first window at the fourth preset position so that the right edge of the first window does not exceed the right edge of the display interface.
[0103] In the interactive method provided by the implementation, when the first window is displayed at the second preset position, the electronic device can determine whether the right edge of the first window will exceed the right edge of the display interface according to the size of the first window and the right edge of the display interface. When the right edge of the first window will exceed the right edge of the display interface, the electronic device can update the second preset position to obtain a fourth preset position, and display the first window at the fourth preset position. For example, the electronic device can move the first preset position to the left to move the first window to the left so that the right edge of the first window does not exceed the right edge of the display interface, so that the first window can be fully displayed in the display interface, thereby improving the display effect.
[0104] Optionally, the electronic device displaying the first window at the fourth preset position may include:
[0105] When the first window is displayed at the fourth preset position and there is an overlapping area between the first window and the first control, the electronic device updates the fourth preset position and displays the first window at the updated fourth preset position so that there is no overlapping area between the first window and the first control.
[0106] In the interactive method provided by the implementation, after detecting an interactive operation acting on the first control, the electronic device may still display the first control in the display interface. At this time, after updating the second preset position and obtaining the fourth preset position, the electronic device may also determine whether the first window will block the first control when the first window is displayed at the fourth preset position. When the first window will block the first control, the electronic device may update the fourth preset position, for example, according to the upper edge or lower edge of the first control, the fourth preset position may be moved up or down, so that there is no overlapping area between the first window displayed at the updated fourth preset position and the first control, thereby avoiding the first window blocking the first control, improving the display effect of the interface, and enhancing the user experience.
[0107] In one example, when the hand performing the interactive operation is the user's left hand, the electronic device can directly display the first window on the left side of the first control according to the size of the first window and the left edge of the first control. When the hand performing the interactive operation is the user's right hand, the electronic device can directly display the first window on the right side of the first control according to the size of the first window and the right edge of the first control. When the first window is displayed on the left side of the first control, the left edge of the first window does not exceed the left edge of the display interface, and the right edge of the first window and the left edge of the first control can be spaced by a preset distance. When the first window is displayed on the right side of the first control, the right edge of the first window does not exceed the right edge of the display interface, and the left edge of the first window and the right edge of the first control can be spaced by a preset distance to facilitate user operation and improve user experience.
[0108] In a possible implementation manner of the second aspect, the first window is a window that gradually becomes larger;
[0109] The electronic device displays the first window on the left side of the first control, which may include:
[0110] The electronic device displays the first window at a first preset position on the left side of the first control, and controls the first window to gradually increase in size toward the left side of the first control.
[0111] In another possible implementation manner of the second aspect, the first window is a window that gradually becomes larger;
[0112] The electronic device displaying the first window on the right side of the first control may include:
[0113] The electronic device displays the first window at a second preset position on the right side of the first control, and controls the first window to gradually increase in size toward the right side of the first control.
[0114] In the interactive method provided by the implementation, the electronic device can display the first window in an animated manner. For example, the first window can be displayed in a gradually enlarged manner. When the first window is displayed in a gradually enlarged manner, the electronic device can gradually enlarge the first window to the left or right according to the first window being on the left or right side of the first control, so that the direction of the animated effect change of the first window is the same as the direction of the first window display, which can reduce the user's line of sight jump and improve the user experience.
[0115] It should be understood that when the first window is displayed in a gradually enlarged manner, when it is determined that the first window is displayed on the left side of the first control, the electronic device can determine the initial position of the first window on the left side of the first control, and display the initial first window at the initial position. After displaying the initial first window, the electronic device can control the first window to gradually increase in the direction of the left side of the first control. Among them, the initial position of the first window on the left side of the first control can be specifically determined according to actual conditions. For example, the initial position of the first window on the left side of the first control can be the first preset position determined above.
[0116] Similarly, when it is determined to display the first window on the right side of the first control, the electronic device can determine the initial position of the first window on the right side of the first control, and display the initial first window at the initial position. After displaying the initial first window, the electronic device can control the first window to gradually increase in the direction of the right side of the first control. The initial position of the first window on the right side of the first control can be specifically determined according to actual conditions. For example, the initial position of the first window on the right side of the first control can be the second preset position determined above.
[0117] Optionally, when displaying the first window in a gradually enlarged manner, the electronic device may determine a natural viewing area in the display interface, and gradually enlarge the first window according to the natural viewing area. The first window finally displayed in the display interface does not exceed the natural viewing area. For example, the final length of the first window is less than or equal to the length of the natural viewing area, and the final height of the first window is less than or equal to the height of the natural viewing area.
[0118] In a third aspect, an embodiment of the present application provides an interactive device, which is applied to an electronic device. The device may include:
[0119] A control display module, used to display a first control in a display interface;
[0120] An operation detection module, used to detect an interactive operation on the first control;
[0121] A first position determination module, used to determine a first position of the interactive operation in the display interface;
[0122] a first window display module, configured to display a first window on the left side of the display interface when the first position is located on the left side of the display interface, wherein the content displayed in the first window is content in response to the interactive operation;
[0123] The second window display module is used to display the first window on the right side of the display interface when the first position is located on the right side of the display interface.
[0124] Optionally, the length of the first control is greater than or equal to a preset length.
[0125] In a possible implementation manner of the third aspect, the first window display module is specifically configured to display the first window at a first preset position on the left side of the display interface.
[0126] Optionally, the first window display module is also used to, when the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, the electronic device updates the first preset position and displays the first window at the updated first preset position so that the left edge of the first window does not exceed the left edge of the display interface.
[0127] Similarly, the second window display module is specifically configured to display the first window at a second preset position on the right side of the display interface.
[0128] Optionally, the second window display module is also used to, when the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, the electronic device updates the second preset position and displays the first window at the updated second preset position so that the right edge of the first window does not exceed the right edge of the display interface.
[0129] In another possible implementation of the third aspect, the first window display module is further used to display the first window on the left side of the display interface according to the size of the first window and the left edge of the display interface, and the left edge of the first window does not exceed the left edge of the display interface.
[0130] Similarly, the second window display module is also used to display the first window on the right side of the display interface according to the size of the first window and the right edge of the display interface, and the right edge of the first window does not exceed the right edge of the display interface.
[0131] In another possible implementation of the third aspect, the first window display module is further used to display the first window on the left side of the display interface based on the first position, the size of the first window, and the left edge of the display interface, and the position of the first window on the left side of the display interface is determined based on the first position, or the left edge of the first window does not exceed the left edge of the display interface.
[0132] Similarly, the second window display module is also used to display the first window on the right side of the display interface based on the first position, the size of the first window, and the right edge of the display interface. The position of the first window on the right side of the display interface is determined based on the first position, or the right edge of the first window does not exceed the right edge of the display interface.
[0133] In one example, the first window display module is further configured to display the first window on the left side of the display interface and above the first control when the first window can be fully displayed above the first control in the display interface; or
[0134] When the first window cannot be completely displayed above the first control in the display interface, the first window is displayed on the left side of the display interface and below the first control.
[0135] In another example, the second window display module is further configured to display the first window on the right side of the display interface and above the first control when the first window can be fully displayed above the first control in the display interface; or
[0136] When the first window cannot be completely displayed above the first control in the display interface, the first window is displayed on the right side of the display interface and below the first control.
[0137] In a possible implementation manner of the third aspect, the display interface includes a left display area and a right display area in a left-right split screen;
[0138] The device may also include:
[0139] a first area determination module, configured to determine that the first position is located on the left side of the display interface when the first position is located in the left display area;
[0140] The second area determination module is used to determine that the first position is located on the right side of the display interface when the first position is located in the right display area.
[0141] In another possible implementation manner of the third aspect, the display interface includes an upper display area and a lower display area in a split screen;
[0142] The device may also include:
[0143] a third area determination module, configured to determine that the first position is located on the left side of the display interface when the first position is located on the left side of the upper display area or the left side of the lower display area;
[0144] The fourth area determination module is used to determine that the first position is located on the right side of the display interface when the first position is located on the right side of the upper display area or the right side of the lower display area.
[0145] In a fourth aspect, an embodiment of the present application provides an interactive device, which is applied to an electronic device. The device may include:
[0146] A control display module, used to display a first control in a display interface;
[0147] An operation detection module, used to detect an interactive operation on the first control;
[0148] An operation determination module, used to determine whether the interactive operation is performed by the left hand or the right hand;
[0149] A first window display module, configured to display a first window on the left side of the first control when it is determined that the left hand performs the interactive operation, wherein the content displayed in the first window is the content in response to the interactive operation;
[0150] The second window display module is used to display the first window on the right side of the first control when it is determined that the right hand performs the interactive operation.
[0151] Optionally, the length of the first control is less than a preset length.
[0152] In a possible implementation manner of the fourth aspect, the first window display module is specifically configured to display the first window at a first preset position on the left side of the first control.
[0153] Exemplarily, the first window display module is also used to update the first preset position to obtain a third preset position when the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, and display the first window at the third preset position so that the left edge of the first window does not exceed the left edge of the display interface.
[0154] Optionally, the first window display module is also used to update the third preset position when the first window is displayed at the third preset position and there is an overlapping area between the first window and the first control, and display the first window at the updated third preset position so that there is no overlapping area between the first window and the first control.
[0155] In another possible implementation manner of the fourth aspect, the second window display module is specifically configured to display the first window at a second preset position on the right side of the first control.
[0156] Exemplarily, the second window display module is also used to update the second preset position to obtain a fourth preset position when the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, and display the first window at the fourth preset position so that the right edge of the first window does not exceed the right edge of the display interface.
[0157] Optionally, the second window display module is also used to update the fourth preset position when the first window is displayed at the fourth preset position and there is an overlapping area between the first window and the first control, and display the first window at the updated fourth preset position so that there is no overlapping area between the first window and the first control.
[0158] In a possible implementation manner of the fourth aspect, the first window is a window that gradually becomes larger;
[0159] The first window display module is further used to display the first window at a first preset position on the left side of the first control, and control the first window to gradually increase in size toward the left side of the first control.
[0160] In another possible implementation manner of the fourth aspect, the first window is a window that gradually becomes larger;
[0161] The second window display module is further used to display the first window at a second preset position on the right side of the first control, and control the first window to gradually increase in size toward the right side of the first control.
[0162] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the interaction method described in any one of the first aspects above, or implements the interaction method described in any one of the second aspects above.
[0163] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer implements the interaction method described in any one of the first aspects above, or implements the interaction method described in any one of the second aspects above.
[0164] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the interaction method described in any one of the first aspects, or to execute the interaction method described in any one of the second aspects.
[0165] It can be understood that the beneficial effects of the third to seventh aspects mentioned above can be found in the relevant descriptions in the first or second aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0166] Figure 1 and Figure 2 A schematic diagram of an application scenario of an interactive method is provided;
[0167] Figure 3 is a schematic diagram of the structure of an electronic device to which the interactive method provided in an embodiment of the present application is applicable;
[0168] Figure 4 is a schematic diagram of a software architecture to which the interactive method provided in the embodiment of the present application is applicable;
[0169] Figure 5 It is a flowchart of an interactive method provided in Example 1 of the present application;
[0170] Figure 6 and Figure 7 This is an example of an application scenario provided in Example 1 of this application. Figure 1 ;
[0171] Figure 8 and Fig. 9 This is an example of an application scenario provided in Example 1 of this application. Figure 2 ;
[0172] Fig.10 This is an example of an application scenario provided in Example 1 of this application. Figure 3 ;
[0173] Fig.11 This is an example of an application scenario provided in Example 1 of this application. Figure 4 ;
[0174] Fig.12 This is an example of an application scenario provided in Example 1 of this application. Figure 5 ;
[0175] Fig.13 and Fig.14 This is an example of an application scenario provided in Example 1 of this application. Figure 6 ;
[0176] Fig.15 This is an example of an application scenario provided in Example 1 of this application. Figure 7 ;
[0177] Fig.16 It is a flowchart of an interactive method provided in Embodiment 2 of the present application;
[0178] Fig.17 This is an example of an application scenario provided in Example 2 of this application. Figure 1 ;
[0179] Fig.18 This is an example of an application scenario provided in Example 2 of this application. Figure 2 ;
[0180] Fig.19 This is an example of an application scenario provided in Example 2 of this application. Figure 3 . DETAILED DESCRIPTION
[0181] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0182] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0183] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0184] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0185] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0186] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.
[0187] The steps involved in the interactive method provided in the embodiments of the present application are only examples, and not all steps are steps that must be executed, or not all information or messages are required. They can be increased or decreased as needed during use. The same step or steps or messages with the same function in different embodiments of the present application can be referenced and learned from each other.
[0188] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art will appreciate that, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0189] Electronic devices are generally provided with a touch display screen, and users can perform interactive operations in the touch display screen, such as touching the controls displayed in the display interface, to interact with the electronic device. When an interactive operation in the touch display screen is detected, the electronic device can respond to the interactive operation and display a corresponding window in the display interface to display the content of the response interactive operation through the window. The user can continue to operate the content in the window for further interaction. However, in some cases, such as in electronic devices with large display screens, the windows displayed by the electronic device in the display interface are not convenient for users to operate, resulting in a poor user experience.
[0190] It should be understood that the control can be an input box, a search box, an application icon, a pop-up window, or a floating ball, etc., which can trigger the window to display content. The content displayed in the window can be further interacted with by the user. For example, the content displayed in the window may include a corresponding button. The user can touch the button in the window to perform further interaction.
[0191] For example, see Figure 1 and Figure 2 , Figure 1 and Figure 2 A schematic diagram of an application scenario of an interaction method is shown.
[0192] like Figure 1 As shown in (a) of FIG. 1 , the electronic device may display an application interface 100 of a certain application (eg, a short message application) in the display interface. The application interface 100 may include an input box 101 and may also include a short message "The weather is very good recently, let's go out together on the weekend?". Figure 1 As shown in (a) of FIG. 1 , when the user long presses any position in the input box 101, the electronic device can display the window 102 at the upper left of the input box 101. Figure 1 As shown in (b) of FIG. 1 , a scan text button, a line break button, etc. may be displayed in the window 102 . When the user wants to input content by scanning text, the user may click the scan text button in the window 102 .
[0193] This way of displaying the window in the upper left corner of the input box 101 may make it inconvenient for the user to operate the content in the window. For example, when the user displays the window 102 by long pressing the position on the right side of the input box 101, if the user wants to click the scan text button in the window 102, the user needs to move the hand and jump the line of sight, that is, the hand needs to be moved to the upper left corner of the input box 101, and the line of sight needs to be shifted to the upper left corner of the input box 101, which is inconvenient to operate and the user experience is poor. For electronic devices with large display screens, this inconvenience will be more obvious.
[0194] like Figure 2As shown in (a), the electronic device can display one or more controls in the display interface, for example, icons of applications such as clock, calendar, gallery, memo, music, weather, settings, camera, address book, phone, message, email, browser and video.
[0195] When the user long presses the music app icon, Figure 2 As shown in (b) of FIG. 1 , the electronic device may display window 201 directly above the icon of the music application. Alternatively, Figure 2 As shown in (c) in FIG. 1 , the electronic device may display a window 201 at the upper left of the icon of the music application. The window 201 may display a play local music button, a continue play button, and a search button. When the user wants to play local music, the user may click the play local music button in the window 201. When the user wants to continue playing the music, the user may click the continue play button. When the user wants to search for a song, the user may click the search button.
[0196] This way of displaying the window just above or in the upper left of the application icon may make it inconvenient for the user to operate the content in the window. For example, when the user wants to operate the content in the window with his left hand, the user may not be able to reach the content in the window just above or in the upper left of the application icon, resulting in the user being unable to operate with his left hand, resulting in a poor user experience. For electronic devices with large display screens, this inconvenience will be more obvious.
[0197] In order to solve the above problems, the embodiments of the present application provide an interactive method, an electronic device and a computer-readable storage medium. In the method, the electronic device can display a first control in a display interface. When an interactive operation acting on the first control is detected, the electronic device can determine the first position of the interactive operation in the display interface. When the first position is located on the left side of the display interface, the electronic device displays the first window on the left side of the display interface. When the first position is located on the right side of the display interface, the electronic device displays the first window on the right side of the display interface. Wherein, the content displayed in the first window is the content in response to the interactive operation. That is, in the embodiment of the present application, when an interactive operation on the first control is detected, the electronic device can display the first window on the left or right side of the display interface according to the first position of the interactive operation in the display interface, so that the first window is located in a position in the display interface that is convenient for the user to operate, so that the user can operate the first window conveniently, improve the convenience of operation, and enhance the user experience, with strong ease of use and practicality.
[0198] Alternatively, the electronic device may display the first control in the display interface. When an interactive operation acting on the first control is detected, the electronic device may determine the hand performing the interactive operation. When the hand performing the interactive operation is the user's left hand, the electronic device may display the first window on the left side of the first control. When the hand performing the interactive operation is the user's right hand, the electronic device may display the first window on the right side of the first control. Among them, the content displayed in the first window is the content in response to the interactive operation. That is, in an embodiment of the present application, when an interactive operation on the first control is detected, the electronic device may display the first window on the left or right side of the first control according to the hand of the user performing the interactive operation, so that the first window is located in the display interface at a position closer to the user's hand, which is convenient for the user to operate the first window, improve the convenience of operation, enhance the user experience, and have strong ease of use and practicality.
[0199] In the embodiments of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a desktop computer, or other electronic device with a touch display screen. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.
[0200] The following first introduces the electronic device involved in the embodiment of the present application. Figure 3 , Figure 3 A schematic structural diagram of an electronic device 300 is shown.
[0201] The electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, an antenna 1, an antenna 2, a mobile communication module 340, a wireless communication module 350, an audio module 360, a speaker 360A, a receiver 360B, a microphone 360C, an earphone interface 360D, a sensor module 370, a camera 380, and a display screen 390, etc. Among them, the sensor module 370 may include a pressure sensor 370A, a gyroscope sensor 370B, an acceleration sensor 370C, a distance sensor 370D, a fingerprint sensor 370E, a touch sensor 370F, etc.
[0202] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0203] The processor 310 may include one or more processing units, for example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0204] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0205] The processor 310 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may store instructions or data that the processor 310 has just used or cyclically used. If the processor 310 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
[0206] In some embodiments, the processor 310 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0207] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 310 may include multiple groups of I2C buses. The processor 310 may be coupled to the touch sensor 370F, the camera 380, etc. through different I2C bus interfaces. For example, the processor 310 may be coupled to the touch sensor 370F through the I2C interface, so that the processor 310 communicates with the touch sensor 370F through the I2C bus interface to realize the touch function of the electronic device 300.
[0208] The I2S interface can be used for audio communication. In some embodiments, the processor 310 can include multiple groups of I2S buses. The processor 310 can be coupled to the audio module 360 via the I2S bus to achieve communication between the processor 310 and the audio module 360. In some embodiments, the audio module 360 can transmit an audio signal to the wireless communication module 350 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0209] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 360 and the wireless communication module 350 can be coupled via a PCM bus interface. In some embodiments, the audio module 360 can also transmit audio signals to the wireless communication module 350 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0210] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 310 and the wireless communication module 350. For example, the processor 310 communicates with the Bluetooth module in the wireless communication module 350 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 360 can transmit an audio signal to the wireless communication module 350 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0211] The MIPI interface can be used to connect the processor 310 with peripheral devices such as the display screen 390 and the camera 380. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 310 and the camera 380 communicate via the CSI interface to implement the shooting function of the electronic device 300. The processor 310 and the display screen 390 communicate via the DSI interface to implement the display function of the electronic device 300.
[0212] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 310 with the camera 380, the display 390, the wireless communication module 350, the audio module 360, the sensor module 370, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0213] The USB interface 330 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 330 can be used to transmit data between the electronic device 300 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0214] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0215] The wireless communication function of the electronic device 300 can be implemented through the antenna 1, the antenna 2, the mobile communication module 340, the wireless communication module 350, the modem processor and the baseband processor.
[0216] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0217] The mobile communication module 340 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 300. The mobile communication module 340 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 340 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 340 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 340 can be set in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 340 can be set in the same device as at least some of the modules of the processor 310.
[0218] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 360A, a receiver 360B, etc.), or displays an image or video through a display screen 390. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 310 and be set in the same device as the mobile communication module 340 or other functional modules.
[0219] The wireless communication module 350 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 300. The wireless communication module 350 can be one or more devices integrating at least one communication processing module. The wireless communication module 350 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 310. The wireless communication module 350 can also receive the signal to be sent from the processor 310, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0220] In some embodiments, the antenna 1 of the electronic device 300 is coupled to the mobile communication module 340, and the antenna 2 is coupled to the wireless communication module 350, so that the electronic device 300 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (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, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0221] The electronic device 300 implements the display function through a GPU, a display screen 390, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 390 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs, which execute program instructions to generate or change display information.
[0222] The display screen 390 is used to display images, videos, etc. The display screen 390 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 300 may include 1 or N display screens 390, where N is a positive integer greater than 1.
[0223] The electronic device 300 can realize the shooting function through an ISP, a camera 380, a video codec, a GPU, a display screen 390, and an application processor.
[0224] The ISP is used to process the data fed back by the camera 380. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 380.
[0225] The camera 380 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 300 may include 1 or N cameras 380, where N is a positive integer greater than 1.
[0226] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 300 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0227] Video codecs are used to compress or decompress digital videos. The electronic device 300 may support one or more video codecs. Thus, the electronic device 300 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0228] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 300 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0229] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 300. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0230] The internal memory 321 can be used to store computer executable program codes, which include instructions. The internal memory 321 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 300 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 310 executes various functional applications and data processing of the electronic device 300 by running instructions stored in the internal memory 321, and / or instructions stored in a memory provided in the processor.
[0231] The electronic device 300 can implement audio functions such as music playing and recording through the audio module 360, the speaker 360A, the receiver 360B, the microphone 360C, the headphone jack 360D, and the application processor.
[0232] The audio module 360 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 360 can also be used to encode and decode audio signals. In some embodiments, the audio module 360 can be arranged in the processor 310, or some functional modules of the audio module 360 can be arranged in the processor 310.
[0233] The speaker 360A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 300 can listen to music or listen to a hands-free call through the speaker 360A.
[0234] The receiver 360B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 300 receives a call or voice message, the voice can be received by placing the receiver 360B close to the human ear.
[0235] Microphone 360C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 360C to input the sound signal into the microphone 360C. The electronic device 300 can be provided with at least one microphone 360C. In other embodiments, the electronic device 300 can be provided with two microphones 360C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 300 can also be provided with three, four or more microphones 360C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0236] The earphone interface 360D is used to connect a wired earphone and can be a USB interface 330 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0237] The pressure sensor 370A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 370A can be set on the display screen 390. There are many types of pressure sensors 370A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 370A, the capacitance between the electrodes changes. The electronic device 300 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 390, the electronic device 300 detects the touch operation intensity according to the pressure sensor 370A. The electronic device 300 can also calculate the touch position according to the detection signal of the pressure sensor 370A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0238] The gyro sensor 370B can be used to determine the motion posture of the electronic device 300. In some embodiments, the angular velocity of the electronic device 300 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 370B. The gyro sensor 370B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 370B detects the angle of the electronic device 300 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 300 through reverse movement to achieve anti-shake. The gyro sensor 370B can also be used for navigation and somatosensory game scenes.
[0239] The acceleration sensor 370C can detect the magnitude of the acceleration of the electronic device 300 in all directions (generally three axes). When the electronic device 300 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0240] The distance sensor 370D is used to measure the distance. The electronic device 300 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 300 can use the distance sensor 370D to measure the distance to achieve fast focusing.
[0241] The fingerprint sensor 370E is used to collect fingerprints. The electronic device 300 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0242] The touch sensor 370F is also called a "touch control device". The touch sensor 370F can be set on the display screen 390, and the touch sensor 370F and the display screen 390 form a touch screen, also called a "touch control screen". The touch sensor 370F is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 390. In other embodiments, the touch sensor 370F can also be set on the surface of the electronic device 300, which is different from the position of the display screen 390.
[0243] The software system of the electronic device 300 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the electronic device 300 may adopt an Android operating system (OS), a Harmony OS, or an IOS with a layered architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to exemplify the software structure of the electronic device 300.
[0244] Figure 4 It is a software structure block diagram of the electronic device 300 according to an embodiment of the present application.
[0245] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0246] The application layer can include a series of application packages.
[0247] like Figure 4 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0248] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0249] like Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0250] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0251] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0252] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0253] The phone manager is used to provide communication functions of the electronic device 300, such as management of call status (including connecting, hanging up, etc.).
[0254] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0255] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0256] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0257] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0258] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0259] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0260] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0261] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0262] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0263] A 2D graphics engine is a drawing engine for 2D drawings.
[0264] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0265] [Example 1]
[0266] The following will describe in detail an interaction method provided in Example 1 of the present application in combination with the accompanying drawings and specific application scenarios.
[0267] See also Figure 5 , Figure 5 FIG. 1 shows a schematic flow chart of an interaction method provided in Example 1 of the present application. Figure 5 As shown, the method may include:
[0268] S501: The electronic device displays a first control in a display interface.
[0269] S502: The electronic device detects an interactive operation on a first control.
[0270] S503: The electronic device determines a first position of the interactive operation in the display interface.
[0271] S504: When the first position is located on the left side of the display interface, the electronic device displays a first window on the left side of the display interface, and the content displayed in the first window is content in response to the interactive operation.
[0272] S505: When the first position is located on the right side of the display interface, the electronic device displays a first window on the right side of the display interface.
[0273] In this embodiment, the electronic device can display a first control in the display interface, and when an interactive operation acting on the first control is detected, the electronic device can determine the first position of the interactive operation in the display interface. When the first position is the position on the left side of the display interface, the electronic device can display the first window on the left side of the display interface; when the first position is the position on the right side of the display interface, the electronic device can display the first window on the right side of the display interface. The content displayed in the first window is the content in response to the interactive operation. That is, when the electronic device detects an interactive operation on the first control, it can display the first window on the left or right side of the display interface according to the first position of the interactive operation in the display interface, so that the first window is located in a position in the display interface that is convenient for the user to operate, thereby facilitating the user to continue to interact according to the first window, improving the convenience of operation, and enhancing the user experience.
[0274] Exemplarily, the first control may be a large control with a large operation area. The operation area refers to an area in the first control where a user can perform interactive operations to trigger the window display. For example, the first control may be an input box or a search box with a large operation area.
[0275] In one example, the electronic device may determine whether the first control is a large control with a large operating area according to the width (also referred to as the length) of the first control.
[0276] Optionally, when the width of the first control is greater than or equal to a preset width, the electronic device may determine that the first control is a large control with a larger operating area. When the width of the first control is less than the preset width, the electronic device may determine that the first control is a small control with a smaller operating area.
[0277] It should be noted that the width of the first control may refer to the size of the first control in the horizontal direction. The width of the first control and the preset width may be expressed by the number of pixels or by physical size. For example, the preset width may be 1920 pixels, and the width of the first control may be 1000 pixels. For example, the preset width may be 15 centimeters, and the width of the first control may be 10 centimeters, and so on.
[0278] Similarly, the height of the first control may refer to the size of the first control in the vertical direction. The height of the first control and the preset height may be represented by the number of pixels or by physical size. For example, the preset height may be 1080 pixels, and the height of the first control may be 300 pixels. For example, the preset height may be 10 centimeters, and the height of the first control may be 4 centimeters, and so on.
[0279] Optionally, the preset width can be determined according to the display mode of the electronic device, and the width or height of the electronic device. Among them, the width of the electronic device may refer to the width of the display screen in the electronic device when the electronic device is in portrait mode, that is, the width of the electronic device may refer to the size of the display screen in the horizontal direction when the electronic device is in portrait mode. The height of the electronic device may refer to the height of the display screen in the electronic device when the electronic device is in portrait mode, that is, the height of the electronic device may refer to the size of the display screen in the vertical direction when the electronic device is in portrait mode. Alternatively, the width of the electronic device may also refer to the width of the display screen in the electronic device when the electronic device is in landscape mode, that is, the width of the electronic device may refer to the size of the display screen in the horizontal direction when the electronic device is in landscape mode. The height of the electronic device may refer to the height of the display screen in the electronic device when the electronic device is in landscape mode, that is, the height of the electronic device may refer to the size of the display screen in the vertical direction when the electronic device is in landscape mode.
[0280] The following will be explained illustratively by taking the example that the width of the electronic device refers to the width of the display screen in the electronic device when the electronic device is in portrait mode, and the height of the electronic device refers to the height of the display screen in the electronic device when the electronic device is in portrait mode.
[0281] Exemplarily, when the electronic device is in portrait mode, the preset width may be determined according to the width of the electronic device (ie, the width of a display screen in the electronic device).
[0282] For example, when the electronic device is in portrait mode, the preset width may be half the width of the display screen. That is, when the width of the first control is greater than or equal to half the width of the display screen, the electronic device may determine that the first control is a large control with a larger operating area. When the width of the first control is less than half the width of the display screen, the electronic device may determine that the first control is a small control with a smaller operating area.
[0283] Exemplarily, when the electronic device is in landscape mode, the preset width may be determined according to the height of the electronic device (ie, the height of the display screen in the electronic device).
[0284] For example, when the electronic device is in landscape mode, the preset width may be 1 / 3 of the height of the display screen. That is, when the width of the first control is greater than or equal to 1 / 3 of the height of the display screen, the electronic device may determine that the first control is a large control with a larger operating area. When the width of the first control is less than 1 / 3 of the height of the display screen, the electronic device may determine that the first control is a small control with a smaller operating area.
[0285] It should be noted that the preset width described above may be half the width of the display screen of the electronic device, and the preset height may be 1 / 3 the height of the display screen of the electronic device, etc. These are merely exemplary explanations and should not be construed as limitations on this embodiment.
[0286] In another example, the electronic device may determine whether the first control is a large control with a large operating area according to the height of the first control.
[0287] Optionally, when the height of the first control is greater than or equal to a preset height, the electronic device may determine that the first control is a large control with a larger operating area. When the height of the first control is less than the preset height, the electronic device may determine that the first control is a small control with a smaller operating area.
[0288] Optionally, the preset height may be determined according to a display mode of the electronic device, and a height or width of the electronic device.
[0289] Exemplarily, when the electronic device is in portrait mode, the preset height may be determined according to the height of the electronic device (ie, the height of a display screen in the electronic device).
[0290] For example, when the electronic device is in portrait mode, the preset height may be half the height of the display screen. That is, when the height of the first control is greater than or equal to half the height of the display screen, the electronic device may determine that the first control is a large control with a larger operating area. When the height of the first control is less than half the height of the display screen, the electronic device may determine that the first control is a small control with a smaller operating area.
[0291] Exemplarily, when the electronic device is in landscape mode, the preset height may be determined according to the width of the electronic device (ie, the width of a display screen in the electronic device).
[0292] For example, when the electronic device is in landscape mode, the preset height may be 1 / 3 of the width of the display screen in the electronic device. That is, when the height of the first control is greater than or equal to 1 / 3 of the width of the display screen, the electronic device may determine that the first control is a large control with a larger operating area. When the height of the first control is less than 1 / 3 of the width of the display screen, the electronic device may determine that the first control is a small control with a smaller operating area.
[0293] In this embodiment, when the first control is a large control with a width greater than a preset width, when the electronic device detects an interactive operation on the first control, it can determine the first position of the interactive operation in the display interface. When the first position of the interactive operation in the display interface is a position on the left side of the display interface, the electronic device can display the first window on the left side of the display interface. When the first position of the interactive operation in the display interface is a position on the right side of the display interface, the electronic device can display the first window on the right side of the display interface, so that the first window is displayed at a position convenient for the user to operate, so that the user can operate the first window conveniently, improve the convenience of operation, and enhance the user experience.
[0294] It should be noted that when the first control is a large control whose height is greater than the preset height, when the electronic device detects an interactive operation on the first control, it can determine the first position of the interactive operation in the display interface. When the first position of the interactive operation in the display interface is a position on the upper side of the display interface, the electronic device can display the first window on the upper side of the display interface. When the first position of the interactive operation in the display interface is a position on the lower side of the display interface, the electronic device can display the first window on the lower side of the display interface.
[0295] The following will take the example of the large control being the width of the first control being greater than the preset width as an example to exemplify the interaction method provided by this embodiment. Wherein, the specific content of the large control being the height of the first control being greater than the preset height can refer to the content of the large control being the width of the first control being greater than the preset width.
[0296] It is understandable that the interactive operation may be any operation performed in the display interface, such as a long press operation, a click operation, a touch operation, or a slide operation. This embodiment does not impose any restrictions on the specific type of the interactive operation, which may be determined according to the actual scenario.
[0297] It should be noted that this embodiment does not impose any restrictions on the specific representation method of the first position of the interactive operation in the display interface, which can be determined according to actual conditions. For example, the first position of the interactive operation in the display interface can be represented by the coordinates of the center point of the interactive area. For example, the first position of the interactive operation in the display interface can be represented by the coordinates of multiple points (such as three or four vertices) of the interactive area, and so on.
[0298] The interactive area may be an area where the interactive operation acts on the display interface, or an area where the interactive operation acts on the first control, that is, the interactive area may be an area where the interactive operation acts on the display interface and overlaps with the first control.
[0299] Optionally, when the first position of the interactive operation in the display interface is represented by the coordinates of multiple points in the interactive area, the electronic device may determine whether the first position of the interactive operation in the display interface is located on the left or right side of the display interface based on the positions of the coordinates of the majority of points in the display interface.
[0300] For example, when the first position of the interactive operation in the display interface is represented by the coordinates of the three vertices of the interactive area, when the coordinates of two or three vertices are located on the left side of the display interface, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface; otherwise, the electronic device can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface.
[0301] For example, when the first position of the interactive operation in the display interface is represented by the coordinates of the four vertices of the interactive area, when the coordinates of three or four vertices are located on the left side of the display interface, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface. When the coordinates of three or four vertices are located on the right side of the display interface, the electronic device can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface. When the coordinates of two vertices are located on the left side of the display interface and the coordinates of two vertices are located on the right side of the display interface, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface, or can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface.
[0302] Optionally, when the first position of the interaction operation in the display interface is represented by the coordinates of multiple points in the interaction area, the electronic device may determine whether the first position of the interaction operation in the display interface is located on the left or right side of the display interface based on the area of the interaction area on the left side of the display interface (hereinafter the area of the interaction area on the left side of the display interface is referred to as area A) and the area of the interaction area on the right side of the display interface (hereinafter the area of the interaction area on the right side of the display interface is referred to as area B).
[0303] For example, when the coordinates of three or four vertices of the interactive area represent the first position of the interactive operation in the display interface, when area A is greater than area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface. When area A is less than area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface. When area A is equal to area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface, or can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface.
[0304] Optionally, when the first position of the interactive operation in the display interface is represented by the coordinates of multiple points in the interactive area, the electronic device can determine whether the first position of the interactive operation in the display interface is located on the left or right side of the display interface based on the positions of the coordinates of the majority of points in the display interface, area A and area B.
[0305] For example, when the coordinates of the four vertices of the interactive area represent the first position of the interactive operation in the display interface, when the coordinates of two vertices are located on the left side of the display interface and the coordinates of two vertices are located on the right side of the display interface, if area A is greater than area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left side of the display interface. If area A is less than area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the right side of the display interface. If area A is equal to area B, the electronic device can determine that the first position of the interactive operation in the display interface is located on the left or right side of the display interface.
[0306] In a possible implementation, when the first position of the interactive operation in the display interface is a position on the left side of the display interface, the electronic device may display the first window at a preset position on the left side of the display interface (hereinafter referred to as the first preset position). When the first position of the interactive operation in the display interface is located on the right side of the display interface, the electronic device may display the first window at a preset position on the right side of the display interface (hereinafter referred to as the second preset position).
[0307] Optionally, the first preset position and the second preset position may be set by default by the electronic device. It should be understood that the first preset position and the second preset position may be specifically determined according to the actual scenario. For example, the first preset position may be any position in the comfortable operating area on the left side of the display interface (hereinafter referred to as the comfortable operating area A), and the second preset position may be any position in the comfortable operating area on the right side of the display interface (hereinafter referred to as the comfortable operating area B). For example, the first preset position may be a position on the left side of the display interface at a certain distance from the left edge of the display interface, and the second preset position may be a position on the right side of the display interface at a certain distance from the right edge of the display interface.
[0308] It should be understood that the comfortable operation area refers to the area in the display interface where the user can operate more conveniently. The comfortable operation area A and the comfortable operation area B can be determined according to the existing determination method, and this embodiment does not impose any restrictions on this. For example, the electronic device can determine the comfortable operation area A according to the operation conditions in the left area of the display interface within a preset time. For example, the electronic device can determine the comfortable operation area B according to the operation conditions in the right area of the display interface within a preset time.
[0309] Exemplarily, when the first window is displayed at the first preset position, the electronic device can determine whether the left edge of the first window exceeds the left edge of the display interface according to the size of the first window and the left edge of the display interface. When the left edge of the first window exceeds the left edge of the display interface, the electronic device can move the first window to the right so that the first window can be fully displayed in the display interface to improve the display effect.
[0310] Similarly, when the first window is displayed at the second preset position, the electronic device can determine whether the right edge of the first window exceeds the right edge of the display interface according to the size of the first window and the right edge of the display interface. When the right edge of the first window exceeds the right edge of the display interface, the electronic device can move the first window to the left so that the first window can be fully displayed in the display interface to improve the display effect.
[0311] In another possible implementation, when the first position of the interactive operation in the display interface is the position on the left side of the display interface, the electronic device may display the first window on the left side of the display interface according to the size of the first window and the left edge of the display interface. When the first position of the interactive operation in the display interface is the position on the right side of the display interface, the electronic device may display the first window on the right side of the display interface according to the size of the first window and the right edge of the display interface. Wherein, when the first window is displayed on the left side of the display interface, the left edge of the first window does not exceed the left edge of the display interface, for example, the left edge of the first window and the left edge of the display interface may be spaced by a preset distance (hereinafter referred to as preset distance A), to ensure the accessibility of the first window and facilitate user operation. When the first window is displayed on the right side of the display interface, the right edge of the first window does not exceed the right edge of the display interface, for example, the right edge of the first window and the right edge of the display interface may be spaced by a preset distance (hereinafter referred to as preset distance B), to ensure the accessibility of the first window and facilitate user operation.
[0312] In another possible implementation, when the first position of the interactive operation in the display interface is the position on the left side of the display interface, the electronic device may display the first window on the left side of the display interface according to the first position, the size of the first window and the left edge of the electronic device, so that the first window is located on the left side of the display interface and close to the position where the user performs the interactive operation, ensuring the chirality of the first window, reducing the user's line of sight jumping, and facilitating the user to operate the first window. When the first position of the interactive operation in the display interface is the position on the right side of the display interface, the electronic device may display the first window on the right side of the display interface according to the first position, the size of the first window and the right edge of the electronic device, so that the first window is located on the right side of the display interface and close to the position where the user performs the interactive operation, ensuring the chirality of the first window, reducing the user's line of sight jumping, and facilitating the user to operate the first window.
[0313] Optionally, after detecting an interactive operation acting on the first control, the electronic device may still display the first control in the display interface. At this time, in order to avoid the first window blocking the first control, improve the display effect of the interface, and enhance the user experience, the electronic device can also display the first window according to the upper edge or lower edge of the first control when displaying the first window on the left or right side of the display interface.
[0314] In one example, when the distance between the lower edge of the first control and the lower edge of the display interface is less than the height of the first window, that is, when the bottom of the first control cannot fully display the first window, the first window can be located at the top of the first control and displayed from bottom to top. In other words, when the first control is close to the lower edge of the display interface, the electronic device can display the first window from the top of the first control upwards.
[0315] Optionally, when the first window is displayed from bottom to top at the top of the first control, a preset distance (hereinafter referred to as preset distance C) may be spaced between the lower edge of the first window and the upper edge of the first control to ensure accessibility of the first window and facilitate user operation.
[0316] In another example, when the distance between the upper edge of the first control and the upper edge of the display interface is less than the height of the first window, that is, when the top of the first control cannot fully display the first window, the first window can be located at the bottom of the first control and displayed from top to bottom. In other words, when the first control is close to the upper edge of the display interface, the electronic device can display the first window from the bottom of the first control to the bottom.
[0317] Optionally, when the first window is displayed from top to bottom at the bottom of the first control, a preset distance (hereinafter referred to as preset distance D) may be spaced between the upper edge of the first window and the lower edge of the first control to ensure accessibility of the first window and facilitate user operation.
[0318] It should be understood that the preset distance A, the preset distance B, the preset distance C and the preset distance D can be specifically determined according to the actual scenario, and this embodiment does not impose any limitation on this.
[0319] See also Figure 6 and Figure 7 , Figure 6 and Figure 7 The application scenario provided by the first embodiment of the present application is shown Figure 1 .
[0320] like Figure 6As shown in (a) of FIG. 1 , the electronic device may display an application interface of an application (e.g., a game application) in the display interface. An input box 601 may be displayed in the application interface, and the input box 601 may be located at the bottom of the display interface. When the user clicks the input box 601, the electronic device may display a first window 602 in the display interface. The first window 602 may include a text input button 603, a keyboard button 604, a voice input button 605, a delete button 606, and an enter button 607, etc.
[0321] like Figure 6 As shown in (a) of FIG. 6 , when the user clicks on the left side of the input box 601, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 602 on the left side of the display interface.
[0322] For example, Figure 6 As shown in (b) of FIG. 1 , the electronic device may display the first window 602 from bottom to top on the left side of the top of the input box 601 according to the size of the first window 602 and the left edge of the display interface, that is, display the first window 602 on the upper left side of the input box 601. A preset distance C may be spaced between the lower edge of the first window 602 and the upper edge of the input box 601, and a preset distance A may be spaced between the left edge of the first window 602 and the left edge of the display interface.
[0323] Or, if Figure 6 (c) shows that the electronic device can display the first window 602 at the upper left of the input box 601 and close to the first position according to the first position, the size of the first window 602 and the left edge of the display interface. The lower edge of the first window 602 and the upper edge of the input box 601 can be separated by a preset distance C.
[0324] like Figure 7 As shown in (a) of FIG. 6 , when the user clicks on the right side of the input box 601, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 602 on the right side of the display interface.
[0325] For example, Figure 7 As shown in (b) of FIG. 1 , the electronic device may display the first window 602 from bottom to top on the right side of the top of the input box 601 according to the size of the first window 602 and the right edge of the display interface, that is, display the first window 602 on the upper right side of the input box 601. A preset distance C may be spaced between the lower edge of the first window 602 and the upper edge of the input box 601, and a preset distance B may be spaced between the right edge of the first window 602 and the right edge of the display interface.
[0326] Or, if Figure 7 (c) shows that the electronic device can display the first window 602 at the upper right of the input box 601 and close to the first position according to the first position, the size of the first window 602 and the right edge of the display interface. The lower edge of the first window 602 and the upper edge of the input box 601 can be separated by a preset distance C.
[0327] See also Figure 8 and Fig. 9 , Figure 8 and Fig. 9 The application scenario provided by the first embodiment of the present application is shown Figure 2 .
[0328] like Figure 8 As shown in (a) of FIG. 1 , the electronic device may display an application interface of an application (e.g., a communication application) in the display interface. The application interface may include a search box 801, and the search box 801 may be located at the top of the display interface. When the user clicks the search box 801, the electronic device may display a first window 802 in the display interface. The first window 802 may include a scan text button, etc. Figure 8 As shown in (a), the application interface can also display searches for specified content (for example, Moments, official accounts, mini-programs, and video accounts) and recent searches (for example, AAAA, BBBB, CCCC, DDDD, EEEE, and FFFF), etc.
[0329] like Figure 8 As shown in (a) of FIG. 8 , when the user clicks on the left side of the search box 801, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 802 on the left side of the display interface.
[0330] For example, Figure 8 As shown in (b) of FIG. 1 , the electronic device may display the first window 802 from top to bottom on the left side of the bottom of the search box 801 according to the size of the first window 802 and the left edge of the display interface, that is, the first window 802 may be displayed at the lower left of the search box 801. The upper edge of the first window 802 may be spaced apart from the lower edge of the search box 801 by a preset distance D, and the left edge of the first window 802 may be spaced apart from the left edge of the display interface by a preset distance A.
[0331] Or, if Figure 8As shown in (c) of FIG. 1 , the electronic device may display the first window 802 from top to bottom on the left side of the bottom of the search box 801 according to the first position, the size of the first window 802 and the left edge of the display interface, that is, the first window 802 may be displayed at the lower left of the search box 801 and close to the first position. The upper edge of the first window 802 may be spaced apart from the lower edge of the search box 801 by a preset distance D.
[0332] like Fig. 9 As shown in (a) of FIG. 8 , when the user clicks on the right side of the search box 801, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 802 on the right side of the display interface.
[0333] For example, Fig. 9 As shown in (b), the electronic device can display the first window 802 from top to bottom on the right side of the bottom of the search box 801 according to the size of the first window 802 and the right edge of the display interface, that is, the first window 802 can be displayed at the lower right of the search box 801. The lower edge of the first window 802 and the lower edge of the search box 801 can be spaced apart by a preset distance D, and the right edge of the first window 802 and the right edge of the display interface can be spaced apart by a preset distance B.
[0334] Or, if Fig. 9 As shown in (c) in FIG. 1 , the electronic device can display the first window 802 from top to bottom on the right side of the bottom of the search box 801 according to the first position, the size of the first window 802 and the left edge of the display interface, that is, the first window 802 can be displayed at the lower right side of the search box 801 and close to the first position. The upper edge of the first window 802 and the lower edge of the search box 801 can be spaced apart by a preset distance D.
[0335] Optionally, after detecting an interactive operation acting on the first control, the display interface of the electronic device may no longer display the first control. At this time, the electronic device may display the first window on the left or right side of the display interface according to the first position of the interactive operation in the display interface.
[0336] For example, when the first position is located on the left side of the display interface, the electronic device may display the first window in the comfortable operation area A on the left side of the display interface according to the size of the first window and the left edge of the display interface. Alternatively, the electronic device may display the first window in the comfortable operation area A on the left side of the display interface according to the first position, the size of the first window and the left edge of the display interface, and the displayed first window is close to the first position, so as to reduce the user's line of sight jumping and facilitate the user to operate the first window.
[0337] Similarly, when the first position is located on the right side of the display interface, the electronic device can display the first window in the comfortable operation area B on the right side of the display interface according to the size of the first window and the right edge of the display interface. Alternatively, the electronic device can display the first window in the comfortable operation area B on the right side of the display interface according to the first position, the size of the first window and the right edge of the display interface, and the displayed first window is close to the first position, so as to reduce the user's line of sight jumping and facilitate the user to operate the first window.
[0338] See also Fig.10 , Fig.10 The application scenario provided by the first embodiment of the present application is shown Figure 3 .
[0339] like Fig.10 As shown in (a) in the figure, the electronic device can display the desktop in the display interface. When an application (such as application A) receives a message, the electronic device can display a pop-up window 1001 at the top of the desktop. When the user clicks the pop-up window 1001, the pop-up window 1001 may no longer be displayed in the display interface of the electronic device, and at the same time, the electronic device may display the first window 1002 in the display interface. Among them, the first window 1002 may display text content from TOM (for example, the weather is very good recently, what are you going to do on the weekend?), an input box 1003, an expression selection button 1004, and more options button 1005, etc.
[0340] like Fig.10 As shown in (a) of FIG. 1 , when the user clicks on the left side of the pop-up window 1001, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. Fig.10 As shown in (b) of FIG. 1 , the electronic device can, according to the first position, the size of the first window 1002 and the left edge of the display interface, in the comfortable operating area A (i.e. Fig.10 The first window 1002 is displayed in the area indicated by the dotted line in (b) of FIG. 1 ), the displayed first window 1002 is close to the first position, and the left edge of the first window 1002 is spaced from the left edge of the display interface by a preset distance A. At the same time, the pop-up window 1001 may no longer be displayed in the display interface of the electronic device.
[0341] like Fig.10 As shown in (c) in FIG. 1 , when the user clicks on the right side of the pop-up window 1001, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. Fig.10 As shown in (d) in FIG. 1 , the electronic device may, according to the first position, the size of the first window 1002 and the right edge of the display interface, display the first window 1002 in the comfortable operation area B (i.e. Fig.10The first window 1002 is displayed in the area indicated by the dotted line in (d) of FIG. 1 ), the displayed first window 1002 is close to the first position, and the right edge of the first window 1002 is separated from the right edge of the display interface by a preset distance B. At the same time, the pop-up window 1001 may no longer be displayed in the display interface of the electronic device.
[0342] In a possible implementation, the display interface may include a left display area and a right display area of a left-right split screen. A first control A corresponding to application A may be displayed in the left display area, and a first control B corresponding to application B may be displayed in the right display area.
[0343] When the user performs an interactive operation on the first control A, for example, performs an interactive operation at any position of the first control A, the electronic device can determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface. At this time, the electronic device can display the first window on the left side of the display interface.
[0344] When the user performs an interactive operation on the first control B, for example, performs an interactive operation at any position of the first control B, the electronic device can determine that the first position of the interactive operation in the display interface is the position on the right side of the display interface. At this time, the electronic device displays the first window on the right side of the display interface.
[0345] It should be noted that in the left and right split-screen scenario, the electronic device displays the specific content of the first window on the left or right side of the display interface. The specific content of the first window displayed on the left or right side of the display interface can refer to the aforementioned display of the content of the first window on the left or right side of the display interface. For the sake of simplicity, it will not be repeated here.
[0346] Exemplarily, the left display area may also include a first left display area and a second left display area in a split screen. The first left display area may display a first control A corresponding to application A, and the second left display area may display a first control C corresponding to application C.
[0347] When the user performs an interactive operation on the first control A, the electronic device can determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface. At this time, the electronic device can display the first window A corresponding to the first control A on the left side of the display interface. When the user performs an interactive operation on the first control C, the electronic device can also determine that the first position of the interactive operation in the display interface is the position on the left side of the display interface. At this time, the electronic device can display the first window C corresponding to the first control C on the left side of the display interface.
[0348] In one example, the electronic device may display the first window A and the first window C in the same display area. For example, the first window A and the first window C may be displayed in the first left display area, or the first window A and the first window C may be displayed in the second left display area. That is, when the user performs an interactive operation on the first control A, the electronic device may display the first window A in the first left display area. When the user performs an interactive operation on the first control C, the electronic device may also display the first window C in the first left display area. Alternatively, when the user performs an interactive operation on the first control A, the electronic device may display the first window A in the second left display area. When the user performs an interactive operation on the first control C, the electronic device may also display the first window C in the second left display area.
[0349] In another example, the electronic device may display the first window A and the first window C in different display areas. For example, the electronic device may display the first window A in the first left display area and display the first window C in the second left display area.
[0350] It is understandable that the electronic device displays the first window in the first left display area, or displays the specific content of the first window in the second left display area, and can refer to the aforementioned display of the content of the first window on the left side of the display interface. For the sake of simplicity, it will not be repeated here.
[0351] For example, the electronic device may display the first window at a preset position in the first left display area or a preset position in the second left display area. For example, the electronic device may display the first window in the first left display area or the second left display area according to the size of the first window, the left edge of the display interface, and the size of the first control A or the first control C. For example, the electronic device may display the first window in the first left display area or the second left display area according to the first position, the size of the first window, the left edge of the display interface, and the size of the first control A or the first control C.
[0352] Similarly, the right display area may also include a first right display area and a second right display area in which the screen is split up and down. The first right display area may display a first control B corresponding to application B, and the second right display area may display a first control D corresponding to application D.
[0353] When the user performs an interactive operation on the first control B or the first control D, the electronic device may determine that the first position of the interactive operation in the display interface is the position on the right side of the display interface. At this time, the electronic device may display the first window on the right side of the display interface. That is, the first window B corresponding to the first control B, or the first window D corresponding to the first control D, is displayed on the right side of the display interface.
[0354] See also Fig.11 , Fig.11 The application scenario provided by the embodiment of the present application is shown Figure 4 .
[0355] like Fig.11 As shown in (a) of FIG. 1 , the display interface of the electronic device may include a left display area 1101 and a right display area 1102 that are split into left and right screens. The left display area 1101 may display an application interface A of application A (e.g., a game application), and the right display area 1102 may display an application interface B of application B (e.g., a communication application).
[0356] like Fig.11 As shown in (a) of FIG. 1 , an input box 1103 may be displayed in the left display area 1101, and the input box 1103 may be located at the bottom of the display interface. When the user clicks the input box 1103, the electronic device may display a first window 1105 in the display interface. The first window 1105 may include a text input button, a keyboard button, a voice input button, a delete button, an enter button, and the like.
[0357] like Fig.11 As shown in (a) of FIG. 1 , a search box 1104 may be displayed in the right display area 1102, and the search box 1104 may be located at the top of the display interface. When the user clicks the search box 1104, the electronic device may display a first window 1106 in the display interface. The first window 1106 may include a scan text button, etc.
[0358] like Fig.11 As shown in (a) of FIG. 1 , when the user clicks any position of the input box 1103, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1105 on the left side of the display interface. For example, Fig.11 As shown in (b), the electronic device can display the first window 1105 at the upper left of the input box 1103 according to the size of the first window 1105 and the left edge of the display interface. A preset distance C can be spaced between the lower edge of the first window 1105 and the upper edge of the input box 1103, and a preset distance A can be spaced between the left edge of the first window 1105 and the left edge of the display interface.
[0359] like Fig.11 As shown in (c) of FIG. 1 , when the user clicks any position of the search box 1104, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 1106 on the right side of the display interface. For example, Fig.11As shown in (d) in FIG. 1 , the electronic device may display the first window 1106 at the lower right side of the search box 1104 according to the size of the first window 1106 and the right edge of the display interface. A preset distance D may be spaced between the upper edge of the first window 1106 and the lower edge of the search box 1104, and a preset distance B may be spaced between the right edge of the first window 1106 and the right edge of the display interface.
[0360] See also Fig.12 , Fig.12 The application scenario provided by the embodiment of the present application is shown Figure 5 .
[0361] like Fig.12 As shown in (a) of FIG. 1 , the display interface of the electronic device may include a left display area and a right display area 1202 in a left-right split screen, and the left display area may include a first left display area 1203 and a second left display area 1205 in a top-bottom split screen. Among them, the first left display area 1203 may display an application interface B of application B (e.g., a communication application), the second left display area 1205 may display an application interface C corresponding to application C (e.g., a text messaging application), and the right display area 1202 may display an application interface A of application A (e.g., a game application).
[0362] like Fig.12 As shown in (a) of FIG. 1 , a search box 1231 may be displayed in the first left display area 1203, and the search box 1231 may be located at the top of the first left display area 1203. An input box 1251 may be displayed in the second left display area 1205, and the input box 1251 may be located at the bottom of the second left display area 1205. When the user clicks the search box 1231, the electronic device may display a first window 1233 in the display interface. The first window 1233 may include a scan text button, etc. When the user clicks the input box 1251, the electronic device may display the first window 1253 in the display interface. The first window 1253 may also include a scan text button and a line break button, etc. An input box 1220 may be displayed in the right display area 1202, and the input box 1220 may be located at the bottom of the right display area 1202. When the user clicks the input box 1220, the electronic device may display the first window A corresponding to the application interface A in the display interface. The first window A may include a text input button, a keyboard button, a voice input button, a delete button, an enter button, and the like.
[0363] like Fig.12 As shown in (a) of FIG. 1 , when the user clicks any position in the input box 1251, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1253 on the left side of the display interface. For example, Fig.12As shown in (b), the electronic device can display the first window 1253 at the upper left of the input box 1251 according to the size of the first window 1253 and the left edge of the display interface. A preset distance C can be spaced between the lower edge of the first window 1253 and the upper edge of the input box 1251, and a preset distance A can be spaced between the left edge of the first window 1253 and the left edge of the display interface.
[0364] like Fig.12 As shown in (c) of FIG. 1 , when the user clicks any position in the search box 1231, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1233 on the left side of the display interface. For example, Fig.12 As shown in (d), the electronic device can display the first window 1233 in the upper left corner of the input box 1251 according to the size of the first window 1233 and the left edge of the display interface. The lower edge of the first window 1233 and the upper edge of the input box 1251 can be spaced apart by a preset distance C, and the left edge of the first window 1233 and the left edge of the display interface can be spaced apart by a preset distance A.
[0365] Or, if Fig.12 As shown in (e) in FIG. 1 , the electronic device may display the first window 1233 at the lower left of the search box 1231 according to the size of the first window 1233 and the left edge of the display interface. A preset distance D may be spaced between the upper edge of the first window 1233 and the lower edge of the search box 1231, and a preset distance A may be spaced between the left edge of the first window 1233 and the left edge of the display interface.
[0366] In another possible implementation, the display interface may include an upper display area and a lower display area of the upper and lower split screens. The upper display area may display a first control A corresponding to application A, and the lower display area may display a first control B corresponding to application B.
[0367] When the user performs an interactive operation on the first control A or the first control B, the electronic device can determine the first position of the interactive operation in the display interface. When the first position is the position on the left side of the display interface, the electronic device can display the first window on the left side of the display interface (i.e., the first window A corresponding to the first control A or the first window B corresponding to the first control B). When the first position is the position on the right side of the display interface, the electronic device can display the first window on the right side of the display interface (i.e., the first window A corresponding to the first control A or the first window B corresponding to the first control B).
[0368] In one example, the electronic device may display the first window A and the first window B in the same area. For example, the first window A and the first window B may be displayed in the upper display area, or the first window A and the first window B may be displayed in the lower display area. That is, when the user performs an interactive operation on the first control A, the electronic device may display the first window A on the left or right side of the upper display area. When the user performs an interactive operation on the first control B, the electronic device may also display the first window B on the left or right side of the upper display area.
[0369] Alternatively, when the user performs an interactive operation on the first control A, the electronic device may display the first window A on the left or right side of the lower display area. When the user performs an interactive operation on the first control C, the electronic device may also display the first window B on the left or right side of the lower display area.
[0370] In another example, the electronic device can display the first window A and the first window B in different areas. For example, the electronic device can display the first window A on the left or right side of the upper display area, and display the first window B on the left or right side of the lower display area.
[0371] It should be noted that in the top-bottom split-screen scenario, the electronic device displays the specific content of the first window on the left or right side of the display interface. The specific content of the first window displayed on the left or right side of the display interface can refer to the aforementioned display of the content of the first window on the left or right side of the display interface. For the sake of simplicity, it will not be repeated here.
[0372] Exemplarily, the upper display area may also include a first upper display area and a second upper display area of left-right split screen. The first upper display area may display a first control A corresponding to application A, and the second upper display area may display a first control C corresponding to application C.
[0373] When the user performs an interactive operation on the first control A, the electronic device can determine that the position of the interactive operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window on the left side of the display interface. When the user performs an interactive operation on the first control C, the electronic device can determine that the position of the interactive operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window on the right side of the display interface.
[0374] Similarly, the lower display area may also include a first lower display area and a second lower display area of the left-right split screen. The first lower display area may display a first control B corresponding to application B, and the second lower display area may display a first control D corresponding to application D.
[0375] When the user performs an interactive operation on the first control B, the electronic device can determine that the position of the interactive operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window on the left side of the display interface. When the user performs an interactive operation on the first control D, the electronic device can determine that the position of the interactive operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window on the right side of the display interface.
[0376] See also Fig.13 and Fig.14 , Fig.13 and Fig.14 The application scenario provided by the embodiment of the present application is shown Figure 6 .
[0377] like Fig.13 As shown in (a) of FIG. 1 , the display interface of the electronic device may include an upper display area 1301 and a lower display area 1302 that are split into upper and lower screens. The upper display area 1301 may display an application interface B of application B (e.g., a communication application), and the lower display area 1302 may display an application interface A of application A (e.g., a game application).
[0378] like Fig.13 As shown in (a) in the figure, a search box 1303 may be displayed in the upper display area 1301, and the search box 1303 may be located at the top of the display interface. When the user clicks the search box 1303, the electronic device may display a first window 1305 in the display interface. Among them, the first window 1305 may include a scan text button, etc. An input box 1304 may be displayed in the lower display area 1302, and the input box 1304 may be located at the bottom of the display interface. When the user clicks the input box 1304, the electronic device may display a first window 1306 in the display interface. The first window 1306 may include a text input button, a keyboard button, a voice input button, a delete button, and an enter button, etc.
[0379] like Fig.13 As shown in (a) of FIG. 1 , when the user clicks on the left side of the input box 1304, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1306 on the left side of the display interface. For example, Fig.13 As shown in (b) of FIG. 1 , the electronic device may display the first window 1306 at the upper left of the input box 1304 according to the size of the first window 1306 and the left edge of the display interface. A preset distance C may be spaced between the lower edge of the first window 1306 and the upper edge of the input box 1304, and a preset distance A may be spaced between the left edge of the first window 1306 and the left edge of the display interface.
[0380] like Fig.13As shown in (c) of FIG. 1 , when the user clicks on the right side of the input box 1304, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 1306 on the right side of the display interface. For example, Fig.13 As shown in (d) in FIG. 1 , the electronic device may display the first window 1306 at the upper right of the input box 1304 according to the size of the first window 1306 and the right edge of the display interface. A preset distance C may be spaced between the lower edge of the first window 1306 and the upper edge of the input box 1304, and a preset distance B may be spaced between the right edge of the first window 1306 and the right edge of the display interface.
[0381] like Fig.14 As shown in (a) of FIG. 1 , when the user clicks on the left side of the search box 1303, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1305 on the left side of the display interface. For example, Fig.14 As shown in (b), the electronic device can display the first window 1305 at the upper left of the input box 1304 according to the size of the first window 1305 and the left edge of the display interface. A preset distance C can be spaced between the lower edge of the first window 1305 and the upper edge of the input box 1304, and a preset distance A can be spaced between the left edge of the first window 1305 and the left edge of the display interface.
[0382] Or, if Fig.14 As shown in (c) in FIG. 1 , the electronic device may display the first window 1305 at the lower left of the search box 1303 according to the size of the first window 1305 and the left edge of the display interface. A preset distance D may be spaced between the upper edge of the first window 1305 and the lower edge of the search box 1303, and a preset distance A may be spaced between the left edge of the first window 1305 and the left edge of the display interface.
[0383] like Fig.14 As shown in (d) in FIG. 1 , when the user clicks on the right side of the search box 1303, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 1305 on the right side of the display interface. For example, Fig.14 As shown in (e) in FIG. 1 , the electronic device may display the first window 1305 at the upper right of the input box 1304 according to the size of the first window 1305 and the right edge of the display interface. A preset distance C may be spaced between the lower edge of the first window 1305 and the upper edge of the input box 1304, and a preset distance B may be spaced between the right edge of the first window 1305 and the right edge of the display interface.
[0384] Or, if Fig.14As shown in (f) in FIG. 1 , the electronic device may display the first window 1305 at the lower right side of the search box 1303 according to the size of the first window 1305 and the right edge of the display interface. A preset distance D may be spaced between the upper edge of the first window 1305 and the lower edge of the search box 1303, and a preset distance B may be spaced between the right edge of the first window 1305 and the right edge of the display interface.
[0385] See also Fig.15 , Fig.15 The application scenario provided by the embodiment of the present application is shown Figure 7 .
[0386] like Fig.15 As shown in (a) of FIG. 1 , the display interface of the electronic device may include an upper display area and a lower display area 1502 in a split screen, and the upper display area may include a first upper display area 1503 and a second upper display area 1505 in a split screen. Among them, the first upper display area 1503 may display an application interface B of application B (e.g., a communication application), the second upper display area 1505 may display an application interface C corresponding to application C (e.g., a text messaging application), and the lower display area 1502 may display an application interface A of application A (e.g., a game application).
[0387] like Fig.15 As shown in (a) of FIG. 1 , a search box 1531 may be displayed in the first upper display area 1503, and the search box 1531 may be located at the top of the first upper display area 1503. An input box 1551 may be displayed in the second upper display area 1505, and the input box 1551 may be located at the bottom of the second upper display area 1505. When the user clicks the search 1531, the electronic device may display a first window 1533 in the display interface. The first window 1533 may include a scan text button, etc. When the user clicks the input box 1551, the electronic device may display the first window 1553 in the display interface. The first window 1553 may also include a scan text button and a line break button, etc. An input box 1520 may be displayed in the lower display area 1502, and the input box 1520 may be located at the bottom of the lower display area 1502. When the user clicks the input box 1520, the electronic device may display a first window 1522 in the display interface. The first window 1522 may include a text input button, a keyboard button, a voice input button, a delete button, an enter button, and the like.
[0388] like Fig.15 As shown in (a) of FIG. 15 , when the user clicks any position in the search box 1531, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1533 on the left side of the display interface. For example, Fig.15As shown in (b), the electronic device can display the first window 1533 in the upper left corner of the input box 1520 according to the size of the first window 1533 and the left edge of the display interface. The lower edge of the first window 1533 and the upper edge of the input box 1520 can be spaced apart by a preset distance C, and the left edge of the first window 1533 and the left edge of the display interface can be spaced apart by a preset distance A.
[0389] Or, if Fig.15 As shown in (c), the electronic device can display the first window 1533 at the lower left corner of the search box 1531 according to the size of the first window 1533 and the left edge of the display interface. The upper edge of the first window 1533 and the lower edge of the search box 1531 can be spaced apart by a preset distance D, and the left edge of the first window 1533 and the left edge of the display interface can be spaced apart by a preset distance A.
[0390] like Fig.15 As shown in (d) in FIG. 1 , when the user clicks any position in the input box 1551, the electronic device can determine that the first position of the click operation in the display interface is located on the right side of the display interface. At this time, the electronic device can display the first window 1553 on the right side of the display interface. For example, Fig.15 As shown in (e) in FIG. 1 , the electronic device may display the first window 1553 at the upper right of the input box 1520 according to the size of the first window 1553 and the right edge of the display interface. A preset distance C may be spaced between the lower edge of the first window 1553 and the upper edge of the input box 1520, and a preset distance B may be spaced between the right edge of the first window 1553 and the right edge of the display interface.
[0391] Or, if Fig.15 As shown in (f) in FIG. 1 , the electronic device may display the first window 1553 at the upper right of the input box 1551 according to the size of the first window 1553 and the right edge of the display interface. A preset distance C may be spaced between the lower edge of the first window 1553 and the upper edge of the input box 1551, and a preset distance B may be spaced between the right edge of the first window 1553 and the right edge of the display interface.
[0392] like Fig.15 As shown in (g) of FIG. 1 , when the user clicks on the left side of the input box 1520, the electronic device can determine that the first position of the click operation in the display interface is located on the left side of the display interface. At this time, the electronic device can display the first window 1522 on the left side of the display interface. For example, Fig.15As shown in (h), the electronic device can display the first window 1522 at the upper left of the input box 1520 according to the size of the first window 1522 and the left edge of the display interface. A preset distance C can be spaced between the lower edge of the first window 1522 and the upper edge of the input box 1520, and a preset distance A can be spaced between the left edge of the first window 1522 and the left edge of the display interface.
[0393] [Example 2]
[0394] The following will describe in detail an interaction method provided in Example 2 of the present application in combination with the accompanying drawings and specific application scenarios.
[0395] See also Fig.16 , Fig.16 FIG. 1 is a schematic flow chart of an interaction method provided in Embodiment 2 of the present application. Fig.16 As shown, the method may include:
[0396] S1601: The electronic device displays a first control in a display interface.
[0397] S1602: The electronic device detects an interactive operation on a first control.
[0398] S1603: The electronic device determines the hand that performs the interactive operation.
[0399] S1604: When the hand performing the interactive operation is the user's left hand, the electronic device displays a first window on the left side of the first control, and the content displayed in the first window is the content in response to the interactive operation.
[0400] S1605: When the hand performing the interactive operation is the user's right hand, the electronic device displays the first window on the right side of the first control.
[0401] In this embodiment, the electronic device can display a first control in the display interface, and when an interactive operation acting on the first control is detected, the electronic device can determine the hand performing the interactive operation. When the hand performing the interactive operation is the user's left hand, the electronic device can display the first window on the left side of the first control; when the hand performing the interactive operation is the user's right hand, the electronic device can display the first window on the right side of the first control. The content displayed in the first window is the content in response to the interactive operation. That is, in this embodiment, when the electronic device detects an interactive operation on the first control, it can display the first window according to the left / right hand performing the interactive operation, so that the displayed first window is closer to the user's hand performing the interactive operation, thereby facilitating the user to continue to operate the first window with the left / right hand, thereby improving the user experience.
[0402] Exemplarily, the first control may be a small control with a smaller operating area. For example, the first control may be a control with a smaller operating area such as an application icon, a function button, or a floating ball. The method for determining the small control may refer to the specific content of determining the large control in the first embodiment, which will not be described in detail here.
[0403] It should be noted that this embodiment does not impose any restrictions on the identification method of the hand performing the interactive operation, which can be determined specifically according to actual conditions. For example, the electronic device can determine whether the hand performing the interactive operation is the user's left hand or the user's right hand based on one or more of the capacitive section and angle of the interactive operation in the display interface, the change of the gyroscope in the electronic device, and the hot zone position of the operation in the display interface.
[0404] In a possible implementation, when it is detected that the user performs an interactive operation with the left hand, the electronic device may display the first window at a preset position on the left side of the first control (hereinafter referred to as preset position A). When it is detected that the user performs an interactive operation with the right hand, the electronic device may display the first window at a preset position on the right side of the first control (hereinafter referred to as preset position B).
[0405] Among them, the preset position A and the preset position B can be set by default by the electronic device.
[0406] It should be understood that the present embodiment does not impose any restrictions on the specific positions of the preset position A and the preset position B, which can be specifically determined according to the actual scenario. For example, the electronic device can determine the comfortable operating area on the left side of the first control (hereinafter referred to as the comfortable operating area C) and the comfortable operating area on the right side of the first control (hereinafter referred to as the comfortable operating area D), and can set any position in the comfortable operating area C as the preset position A by default, and set any position in the comfortable operating area D as the preset position B by default. For example, the electronic device can set the preset position A by default to a position on the left side of the first control that is spaced from the first control by a preset distance (hereinafter referred to as the preset distance E), and set the preset position B by default to a position on the right side of the first control that is spaced from the first control by a preset distance (hereinafter referred to as the preset distance F), and so on.
[0407] In another possible implementation, when the hand performing the interactive operation is the user's left hand, the electronic device may display the first window on the left side of the first control according to the size of the first window and the left edge of the first control. When the hand performing the interactive operation is the user's right hand, the electronic device may display the first window on the right side of the first control according to the size of the first window and the right edge of the first control. When the first window is displayed on the left side of the first control, a preset distance (hereinafter referred to as preset distance G) may be spaced between the right edge of the first window and the left edge of the first control; when the first window is displayed on the right side of the first control, a preset distance (hereinafter referred to as preset distance H) may be spaced between the left edge of the first window and the right edge of the first control to facilitate user operation.
[0408] Exemplarily, when the first window is displayed on the left side of the first control, the electronic device can determine whether the left edge of the first window exceeds the left edge of the display interface according to the size of the first window. When the left edge of the first window exceeds the left edge of the display interface, the electronic device can move the first window to the right so that the first window can be fully displayed in the display interface, thereby improving the display effect of the first window.
[0409] For example, when the first window is displayed on the right side of the first control, the electronic device can determine whether the right edge of the first window exceeds the right edge of the display interface according to the size of the first window. When the right edge of the first window exceeds the left edge of the display interface, the electronic device can move the first window to the left so that the first window can be fully displayed in the display interface, thereby improving the display effect of the first window.
[0410] In one example, after detecting an interactive operation acting on the first control, the electronic device may still display the first control in the display interface. At this time, when the first window is moved to the right (or left), the electronic device may also determine whether the moved first window will block the first control. When the moved first window will block the first control, the electronic device may move the first window up or down according to the upper edge or lower edge of the first control to avoid the first window blocking the first control, thereby improving the display effect of the interface and enhancing the user experience.
[0411] Optionally, the electronic device may determine whether to move the first window up or down based on the size of the first window and the distance between the upper edge of the first control and the upper edge of the display interface (or the distance between the lower edge of the first control and the lower edge of the display interface).
[0412] Among them, when the distance between the upper edge of the first control and the upper edge of the display interface is less than the height of the first window, the electronic device can determine to move the first window downward. When the distance between the upper edge of the first control and the upper edge of the display interface is greater than or equal to the height of the first window, the electronic device can determine to move the first window upward.
[0413] Alternatively, when the distance between the lower edge of the first control and the lower edge of the display interface is less than the height of the first window, the electronic device may determine to move the first window upward. When the distance between the lower edge of the first control and the lower edge of the display interface is greater than or equal to the height of the first window, the electronic device may determine to move the first window downward.
[0414] It should be noted that when the distance between the upper edge of the first control and the upper edge of the display interface is greater than or equal to the height of the first window, and the distance between the lower edge of the first control and the lower edge of the display interface is greater than or equal to the height of the first window, the electronic device can determine to move the first window up or down.
[0415] It is understandable that, in order to facilitate the user to operate the first window, when the first window is moved upward, a preset distance may be spaced between the lower edge of the first window and the upper edge of the first control. Similarly, when the first window is moved downward, a preset distance may be spaced between the upper edge of the first window and the lower edge of the first control.
[0416] See also Fig.17 , Fig.17 The application scenario provided by the second embodiment of the present application is shown Figure 1 .
[0417] like Fig.17 As shown in (a) in FIG. 1 , the electronic device can display a desktop in the display interface. The desktop can display icons of applications such as clock, calendar, gallery, memo, music, weather, settings, camera, address book, phone, information, mail, browser, and video. When the user long presses the icon of the music application (hereinafter referred to as icon A for the convenience of description), the electronic device can display a first window 1701 in the display interface. Among them, the first window 1701 can display a play local music button, a continue play button, and a search button.
[0418] like Fig.17 As shown in (a) of FIG. 1 , when the user long presses icon A with his left hand, the electronic device can determine that the hand performing the interactive operation is the user's left hand. Fig.17 As shown in (b) in FIG. 8 , the electronic device can display the first window 1701 on the left side of icon A.
[0419] like Fig.17As shown in (c) in FIG. 1 , when the user long presses icon A with the right hand, the electronic device can determine that the hand performing the interactive operation is the user's right hand. Fig.17 As shown in (d) in FIG. 8 , the electronic device can display the first window 1701 on the right side of icon A.
[0420] See also Fig.18 , Fig.18 The application scenario provided by the second embodiment of the present application is shown Figure 2 .
[0421] like Fig.18 As shown in (a) in FIG. 1 , the electronic device can display a desktop in the display interface. The desktop can display icons of applications such as clock, calendar, gallery, memo, music, weather, settings, camera, address book, phone, information, mail, browser, and video. When the user long presses the icon of the music application (hereinafter referred to as icon A for the convenience of description), the electronic device can display a first window 1801 in the display interface. Among them, the first window 1801 can display a play local music button, a continue play button, and a search button.
[0422] like Fig.18 As shown in (a) of FIG. 1 , when the user long presses icon A with his left hand, the electronic device can determine that the hand performing the interactive operation is the user's left hand. Fig.18 As shown in (b) in FIG. 8 , the electronic device can display the first window 1801 on the left side of icon A.
[0423] When the first window 1801 is displayed on the left side of icon A, the electronic device can determine that the left edge of the first window 1801 will exceed the left edge of the display interface based on the size of the first window 1801 and the distance between the left edge of icon A and the left edge of the display interface, that is, it can be determined that the first window 1801 cannot be completely placed on the left side of icon A. At this time, the electronic device can move the first window 1801 to the right to move the first window 1801 to be completely located in the display interface, for example, moving it to the right as shown in FIG. Fig.18 As shown in (c) in .
[0424] When the first window 1801 is moved to the right, the electronic device can determine that the first window 1801 after moving to the right will block icon A based on the size of the first window 1801 and the distance between the left edge of the first control and the left edge of the display interface. At this time, the electronic device can determine that the first window 1801 cannot be completely placed below icon A based on the size of the first window and the distance between the upper edge of icon A and the upper edge of the display interface, or the distance between the lower edge of icon A and the lower edge of the display interface. Therefore, the electronic device can move the first window 1801 upwards, for example, to a position such as Fig.18That is, the first window 1801 finally displayed by the electronic device in the display interface can be as shown in (d) in FIG. Fig.18 As shown in (d) in .
[0425] In a possible implementation, the electronic device may display the first window in an animated manner, for example, by gradually enlarging the first window.
[0426] Optionally, when gradually enlarging the first window, the electronic device may determine a natural viewing area in the display interface, and gradually enlarge the first window according to the natural viewing area, wherein the first window finally displayed in the display interface does not exceed the natural viewing area.
[0427] Exemplarily, the electronic device may determine the length of the natural viewing area according to the distance between the user's eyes and the display interface and the preset angle A, and determine the height of the natural viewing area according to the distance between the user's eyes and the display interface and the preset angle B. Subsequently, the electronic device may determine the natural viewing area according to the position of the first control, and the length and height of the natural viewing area. The length of the first window in the horizontal direction is less than or equal to the length of the natural viewing area, and the height of the first window in the vertical direction is less than or equal to the height of the natural viewing area.
[0428] Specifically, the length of the natural viewing area may be L*tan A, and the height of the natural viewing area may be L*tan B. L is the distance between the user's eyes and the display interface.
[0429] Optionally, the distance L between the user's eyes and the display interface can be a default distance. For example, when the electronic device is a handheld electronic device (such as a mobile phone, tablet computer, etc.), the distance L can be set by default to any value such as 30 cm, 35 cm or 40 cm.
[0430] Optionally, the distance L between the user's eyes and the display interface may also be measured in real time by a distance sensor in the electronic device.
[0431] It should be noted that the preset angle A may be the horizontal angle of the user's eye line of sight, and the preset angle B may be the vertical angle of the user's eye line of sight. The preset angle A and the preset angle B may be specifically determined according to actual conditions, and this embodiment does not show any indication of this. For example, the preset angle A may be determined as 15° and the preset angle B may be determined as 10° according to actual scenarios.
[0432] Optionally, when the first window is displayed in a gradually enlarged manner, when it is determined that the first window is displayed on the left side of the first control, the electronic device may determine the initial position of the first window on the left side of the first control (hereinafter referred to as the initial position A), and display the initial first window at the initial position A. After displaying the initial first window, the electronic device may control the first window to gradually increase in size toward the left side of the first control. The final length of the first window is less than or equal to the length of the natural viewing area, and the final height of the first window is less than or equal to the height of the natural viewing area.
[0433] Alternatively, when the first window is displayed in a gradually enlarged manner, when it is determined to display the first window on the left side of the first control, the electronic device can determine the final size of the first window according to the natural viewing area, and determine the final position of the first window on the left side of the first control according to the final size of the first window (hereinafter referred to as the final position C), and display the initial first window at the final position C. After displaying the initial first window, the electronic device can control the first window to gradually increase in size around the first window. The final length of the first window is less than or equal to the length of the natural viewing area, and the final height of the first window is less than or equal to the height of the natural viewing area.
[0434] Similarly, when the first window is displayed in a gradually enlarged manner, when it is determined that the first window is displayed on the right side of the first control, the electronic device can determine the initial position of the first window on the right side of the first control (hereinafter referred to as the initial position B), and display the first window at the initial position B. After displaying the initial first window, the electronic device can control the first window to gradually increase in the direction toward the right side of the first control. The final length of the first window is less than or equal to the length of the natural viewing area, and the final height of the first window is less than or equal to the height of the natural viewing area.
[0435] Alternatively, when the first window is displayed in a gradually enlarged manner, when it is determined to display the first window on the right side of the first control, the electronic device can determine the final size of the first window according to the natural viewing area, and determine the final position of the first window on the right side of the first control according to the final size of the first window (hereinafter referred to as the final position D), and display the initial first window at the final position D. After displaying the initial first window, the electronic device can control the first window to gradually increase in size around the first window. The final length of the first window is less than or equal to the length of the natural viewing area, and the final height of the first window is less than or equal to the height of the natural viewing area.
[0436] It should be understood that the determination method of the initial position A, the initial position B, the final position C and the final position D can refer to the determination of the first preset position or the second preset position mentioned above, and will not be repeated here.
[0437] See also Fig.19 , Fig.19The application scenario provided by the second embodiment of the present application is shown Figure 4 This application scenario is exemplified by taking the example of displaying the first window in a gradually enlarged manner.
[0438] like Fig.19 As shown in (a) in FIG. 1 , the electronic device can display a desktop in the display interface. The desktop can display icons of applications such as clock, calendar, gallery, memo, music, weather, settings, camera, address book, phone, information, mail, browser, and video. When the user long presses the icon of the music application (hereinafter referred to as icon A for the convenience of description), the electronic device can display a first window 1901 in the display interface. Among them, the first window 1901 can display a play local music button, a continue play button, and a search button.
[0439] like Fig.19 As shown in (a) of FIG. 1 , when the user long presses icon A with his right hand, the electronic device can determine that the hand performing the interactive operation is the user's right hand. Fig.19 As shown in (b) in FIG. 1 , the electronic device can display an initial first window 1901 on the right side of icon A.
[0440] Then, if Fig.19 As shown in (c) of FIG. 1 , the electronic device can gradually enlarge the first window 1901 to the right of icon A. When gradually enlarging the first window to the right of icon A, the electronic device can determine the final length and height of the first window 1901 according to the natural viewing area, and the final length of the first window 1901 is less than or equal to the length of the natural viewing area, and the final height of the first window 1901 is less than or equal to the height of the natural viewing area. Finally, as Fig.19 As shown in (d) in FIG. 1 , the electronic device may display the first window 1901 according to the final length and height of the first window 1901 .
[0441] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0442] Corresponding to the interaction method described in the above embodiment, the embodiment of the present application further provides an interaction device, and each module of the device can correspond to each step of implementing the interaction method.
[0443] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0444] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0445] The present application also provides an electronic device, the electronic device comprising at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor, wherein when the processor executes the computer program, the electronic device implements the steps in any of the above-mentioned method embodiments. Exemplarily, the structure of the electronic device can be as follows: Figure 3 shown.
[0446] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer implements the steps in any of the above method embodiments.
[0447] An embodiment of the present application provides a computer program product. When the computer program product is executed on an electronic device, the electronic device implements the steps in any of the above method embodiments.
[0448] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, a computer-readable storage medium cannot be an electric carrier signal and a telecommunication signal.
[0449] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0450] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0451] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0452] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0453] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An interactive method, applied to an electronic device, characterized in that: The method comprises: The electronic device displays a first control in a display interface; The electronic device detects an interactive operation on the first control; The electronic device determines a first position of the interactive operation in the display interface; When the first position is located on the left side of the display interface, the electronic device displays a first window on the left side of the display interface, and the content displayed in the first window is the content in response to the interactive operation; When the first position is located on the right side of the display interface, the electronic device displays the first window on the right side of the display interface.
2. The method according to claim 1, characterized in that The length of the first control is greater than or equal to a preset length.
3. The method according to claim 1 or 2, characterized in that: The electronic device displays a first window on the left side of the display interface, including: The electronic device displays the first window at a first preset position on the left side of the display interface.
4. The method according to claim 3, characterized in that The electronic device displays the first window at a first preset position on the left side of the display interface, including: When the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, the electronic device updates the first preset position and displays the first window at the updated first preset position so that the left edge of the first window does not exceed the left edge of the display interface.
5. The method according to any one of claims 1 to 4, characterized in that The electronic device displays the first window on the right side of the display interface, including: The electronic device displays the first window at a second preset position on the right side of the display interface.
6. The method according to claim 5, characterized in that The electronic device displays the first window at a second preset position on the right side of the display interface, including: When the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, the electronic device updates the second preset position and displays the first window at the updated second preset position so that the right edge of the first window does not exceed the right edge of the display interface.
7. The method according to claim 1 or 2, characterized in that: The electronic device displays a first window on the left side of the display interface, including: The electronic device displays the first window on the left side of the display interface according to the size of the first window and the left edge of the display interface, and the left edge of the first window does not exceed the left edge of the display interface.
8. The method according to claim 1, 2 or 7, characterized in that: The electronic device displays the first window on the right side of the display interface, including: The electronic device displays the first window on the right side of the display interface according to the size of the first window and the right side edge of the display interface, and the right side edge of the first window does not exceed the right side edge of the display interface.
9. The method according to claim 1 or 2, characterized in that: The electronic device displays a first window on the left side of the display interface, including: The electronic device displays the first window on the left side of the display interface based on the first position, the size of the first window, and the left edge of the display interface, and the position of the first window on the left side of the display interface is determined based on the first position, or the left edge of the first window does not exceed the left edge of the display interface.
10. The method according to claim 1, 2 or 9, characterized in that: The electronic device displays the first window on the right side of the display interface, including: The electronic device displays the first window on the right side of the display interface based on the first position, the size of the first window, and the right edge of the display interface, and the position of the first window on the right side of the display interface is determined based on the first position, or the right edge of the first window does not exceed the right edge of the display interface.
11. The method according to any one of claims 1 to 10, characterized in that The electronic device displays a first window on the left side of the display interface, including: When the first window can be fully displayed above the first control in the display interface, the electronic device displays the first window on the left side of the display interface and above the first control; or, When the first window cannot be completely displayed above the first control in the display interface, the electronic device displays the first window on the left side of the display interface and below the first control.
12. The method according to any one of claims 1 to 11, characterized in that The electronic device displays the first window on the right side of the display interface, including: When the first window can be fully displayed above the first control in the display interface, the electronic device displays the first window on the right side of the display interface and above the first control; or, When the first window cannot be completely displayed above the first control in the display interface, the electronic device displays the first window on the right side of the display interface and below the first control.
13. The method according to any one of claims 1 to 12, characterized in that The display interface includes a left display area and a right display area of a left-right split screen; After the electronic device determines a first position of the interactive operation in the display interface, the method further includes: When the first position is located in the left display area, the electronic device determines that the first position is located on the left side of the display interface; When the first position is located in the right display area, the electronic device determines that the first position is located on the right side of the display interface.
14. The method according to any one of claims 1 to 12, characterized in that The display interface includes an upper display area and a lower display area in a split screen; After the electronic device determines a first position of the interactive operation in the display interface, the method further includes: When the first position is located on the left side of the upper display area or the left side of the lower display area, the electronic device determines that the first position is located on the left side of the display interface; When the first position is located on the right side of the upper display area or the right side of the lower display area, the electronic device determines that the first position is located on the right side of the display interface.
15. An interactive method, applied to an electronic device, characterized in that: The method comprises: The electronic device displays a first control in a display interface; The electronic device detects an interactive operation on the first control; The electronic device determines whether the interaction operation is performed by the left hand or the right hand; When it is determined that the left hand performs the interactive operation, the electronic device displays a first window on the left side of the first control, and the content displayed in the first window is the content in response to the interactive operation; When it is determined that the right hand performs the interactive operation, the electronic device displays the first window on the right side of the first control.
16. The method according to claim 15, characterized in that The length of the first control is smaller than a preset length.
17. The method according to claim 15 or 16, characterized in that The electronic device displays a first window on the left side of the first control, including: The electronic device displays the first window at a first preset position on the left side of the first control.
18. The method according to claim 17, characterized in that The electronic device displays the first window at a first preset position on the left side of the first control, including: When the first window is displayed at the first preset position and the left edge of the first window exceeds the left edge of the display interface, the electronic device updates the first preset position to obtain a third preset position, and displays the first window at the third preset position so that the left edge of the first window does not exceed the left edge of the display interface.
19. The method according to claim 18, characterized in that The electronic device displays the first window at the third preset position, including: When the first window is displayed at the third preset position and there is an overlapping area between the first window and the first control, the electronic device updates the third preset position and displays the first window at the updated third preset position so that there is no overlapping area between the first window and the first control.
20. The method according to any one of claims 15 to 19, characterized in that The electronic device displays the first window on the right side of the first control, including: The electronic device displays the first window at a second preset position on the right side of the first control.
21. The method according to claim 20, characterized in that The electronic device displays the first window at a second preset position on the right side of the first control, including: When the first window is displayed at the second preset position and the right edge of the first window exceeds the right edge of the display interface, the electronic device updates the second preset position to obtain a fourth preset position, and displays the first window at the fourth preset position so that the right edge of the first window does not exceed the right edge of the display interface.
22. The method according to claim 21, characterized in that The electronic device displays the first window at the fourth preset position, including: When the first window is displayed at the fourth preset position and there is an overlapping area between the first window and the first control, the electronic device updates the fourth preset position and displays the first window at the updated fourth preset position so that there is no overlapping area between the first window and the first control.
23. The method according to any one of claims 15 to 22, characterized in that The first window is a window that gradually becomes larger; The electronic device displays a first window on the left side of the first control, including: The electronic device displays the first window at a first preset position on the left side of the first control, and controls the first window to gradually increase in size toward the left side of the first control.
24. The method according to any one of claims 15 to 23, characterized in that The first window is a window that gradually becomes larger; The electronic device displays the first window on the right side of the first control, including: The electronic device displays the first window at a second preset position on the right side of the first control, and controls the first window to gradually increase in size toward the right side of the first control.
25. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the interaction method as claimed in any one of claims 1 to 14, or implements the interaction method as claimed in any one of claims 15 to 24.
26. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a computer, the computer is enabled to implement the interactive method according to any one of claims 1 to 14, or to implement the interactive method according to any one of claims 15 to 24.
27. A computer program product, characterized in that When the computer program product runs on an electronic device, the electronic device executes the interaction method according to any one of claims 1 to 14, or executes the interaction method according to any one of claims 15 to 24.
Citation Information
Cited By
Interaction method, electronic device and computer-readable storage medium
EP4708009A1
Interaction method, electronic device and computer-readable storage medium
WO2024250749A1
