Window interaction method, electronic device, storage medium and computer program product

CN116456020BActive Publication Date: 2024-10-01HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210114778.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-01-10
Filing Date
2022-01-30
Publication Date
2024-10-01
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

It is difficult for electronic devices to reasonably adjust the display of floating windows when users perform split-screen operations, which affects the user experience.

Method used

Provide a window interaction method, adjust the window size and status through the sliding bar, realize the non-modal display of the floating window, flexibly adjust the width and position of the floating window according to user operations, support the detection of screen flipping and folding screen to optimize the floating window show.

Benefits of technology

It enhances the user experience of using floating windows, provides flexible display methods to meet different needs, and improves users' efficiency in using parallel horizons and application split screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116456020B_ABST
    Figure CN116456020B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a window interaction method and an electronic device, which are applied to an electronic device, wherein the electronic device includes a first display screen, and the method includes: the electronic device displays a first interface using the first display screen; in response to a first operation on the first window or the second window, the electronic device displays a second interface; wherein the second interface includes a first floating window, a first window, a second window, and a first sliding bar; the width of the first floating window is less than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies a first state. In this way, the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 10, 2022, with application number 202210023810.3 and application name “Window Interaction Method and Electronic Device”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a window interaction method and an electronic device. Background Art

[0003] With the popularization and development of the Internet, people's functional requirements for electronic devices are becoming more and more diverse. For example, in order to meet users' needs for multiple functions, many electronic devices can support the display of floating windows of electronic devices. For example, a user can trigger the display of a floating window corresponding to a translation function by copying a text to be translated, and the user can also view the translated content through the floating window corresponding to the translation function.

[0004] However, when the user splits the display interface, it is difficult for the electronic device to adjust the display of the floating window according to the user's demand for splitting the interface, thereby affecting the user's experience. Summary of the invention

[0005] The embodiments of the present application provide a window interaction method and an electronic device, so that the electronic device can reasonably display a floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.

[0006] In a first aspect, an embodiment of the present application provides a window interaction method, which is applied to an electronic device, wherein the electronic device includes a first display screen, and the method includes: the electronic device displays a first interface using the first display screen; wherein the first interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window; the content displayed in the first window and the content displayed in the second window both belong to a first application; in response to a first operation on the first window or the second window, the electronic device displays a second interface; wherein the second interface includes a first floating window, a first window, a second window, and a first sliding bar; the width of the first floating window is less than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies a first state. In this way, the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.

[0007] In a possible implementation, the second interface also includes a first area, and the first area is an area of ​​the second interface other than the first floating window, and the method further includes: in response to a second operation on the first area, the electronic device displays a third interface; the third interface includes a second floating window, and the second floating window satisfies a second state; the second state is different from or the same as the first state. In this way, the electronic device can implement a non-modal floating window, and enhance the user experience of using the floating window.

[0008] In a possible implementation manner, the second operation includes: an operation of sliding the first sliding bar to the first area in the second interface.

[0009] In a possible implementation manner, the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.

[0010] In a possible implementation, the method further includes: in response to a third operation on the electronic device, the electronic device displays a fourth interface; wherein the fourth interface includes a third floating window; the width of the third floating window is less than the height of the first display screen, and the third floating window satisfies the first state. In this way, the electronic device can flip the floating window according to the screen flipping, thereby improving the user experience of using the floating window.

[0011] In a possible implementation, when the second interface is an interface of the electronic device in a portrait state, the fourth interface is an interface of the electronic device in a landscape state.

[0012] In one possible implementation, the electronic device also includes a second display screen, and the method also includes: in response to a fourth operation on the electronic device, the electronic device displays a fifth interface using the second display screen; wherein the fifth interface includes a fourth floating window and the second window; and the width of the fourth floating window is the same as the width of the second display screen.

[0013] In a possible implementation, in response to the fourth operation on the electronic device, the electronic device uses the second display screen to display the fifth interface, including: in response to the fourth operation on the electronic device, the electronic device obtains first data; the first data includes folding angle data; the folding angle data is obtained based on the hinge sensor detection; when the electronic device determines that the folding angle data meets the first preset condition, the electronic device uses the second display screen to display the fifth interface. In this way, the electronic device can switch the floating window in the inner and outer display screens according to the detected folding angle.

[0014] In a possible implementation, before the electronic device displays the first interface using the first display screen, the method further includes: when the preset function of the first application is turned on, the electronic device displays the sixth interface using the first display screen; the content displayed in the sixth interface belongs to the first application; the electronic device displays the first interface using the first display screen, including: in response to the fifth operation on the sixth interface, the electronic device displays the first interface using the first display screen. In this way, the electronic device can conveniently open the parallel horizon.

[0015] In a possible implementation, in response to a first operation on a first window or a second window, the electronic device displays a second interface, including: in response to the first operation on the first window or the second window, the electronic device displays a seventh interface; the seventh interface includes a first text; in response to the operation on the first text, the electronic device displays a first control; the first control includes a copy option and a translation option; in response to the operation on the copy option, the electronic device displays a floating ball control; in response to the operation on the floating ball control, the electronic device displays the second interface. In this way, the electronic device can conveniently open the floating window according to the user's copy operation.

[0016] In a possible implementation, the electronic device uses the first display screen to display the first interface, including: the electronic device uses the first display screen to display the eighth interface; the eighth interface includes the second text; in response to the operation of the second text, the electronic device displays the second control; the second control includes a copy option and a translation option; in response to the operation of the translation option, the electronic device uses the first display screen to display the first interface. In this way, the electronic device can conveniently open the floating window according to the user's translation operation.

[0017] In a possible implementation, a window interaction method is applied to an electronic device, the electronic device includes a first display screen, and the method includes: the electronic device uses the first display screen to display a first interface; wherein the first interface includes a first window and a second window, the content displayed in the first window belongs to a first application, and the content displayed in the second window belongs to a second application; in response to a first operation on the first window, the electronic device displays a first floating window in the first window; the first floating window is a non-modal dialog box, and the first floating window satisfies a first state; in response to a second operation on the second window, the electronic device displays a second floating window in the second window; the second floating window is a non-modal dialog box, and the second floating window satisfies the first state. In this way, the electronic device can realize flexible display of floating windows in a split-screen window.

[0018] In a possible implementation, the first window also includes a first area, which is an area of ​​the first window other than the first floating window, and the method further includes: in response to a third operation on the first area, the electronic device displays a third interface; the third interface includes: a third floating window in the first window, and a second floating window in the second window; the third floating window satisfies a second state; the second state is different from or the same as the first state. In this way, each floating window in the split-screen window can be non-modal, which increases the user experience of using the floating window.

[0019] In a possible implementation, the second window also includes a second area, which is an area of ​​the second window other than the second floating window, and the method further includes: in response to a fourth operation on the second area, the electronic device displays a fourth interface; the fourth interface includes: the first floating window in the first window, and the fourth floating window in the second window; the fourth floating window satisfies the second state; the second state is different from or the same as the first state. In this way, each floating window in the split-screen window can be non-modal, which increases the user experience of using the floating window.

[0020] In a possible implementation manner, the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.

[0021] In a possible implementation, the width of the first floating window is half of the width of the first display screen; and the width of the second floating window is half of the width of the first display screen.

[0022] In a possible implementation, the method further includes: in response to a fifth operation on the electronic device, the electronic device displays a fifth interface; wherein the fifth interface includes a fifth floating window in the first window and a sixth floating window in the second window, the fifth floating window satisfies the first state, and the sixth floating window satisfies the first state. In this way, the floating windows in the split-screen window can be flexibly displayed according to the user's flipping operation.

[0023] In a possible implementation, in response to a fifth operation on the electronic device, the electronic device displays a fifth interface, including: in response to the fifth operation on the electronic device, the electronic device acquires first data; the first data includes angular acceleration data; the angular acceleration data is obtained based on detection by a gyroscope sensor; when the electronic device determines that the angular acceleration data meets a first preset condition, the electronic device displays the fifth interface. In this way, the electronic device can flexibly display the screen according to the detected angular acceleration data.

[0024] In a possible implementation, the width of the fifth floating window is half of the height of the first display screen; and the width of the sixth floating window is half of the height of the first display screen.

[0025] In one possible implementation, the first interface also includes a first sliding bar for adjusting the size of the first window and the size of the second window, and the method also includes: in response to the operation of sliding the first sliding bar to the third area, the electronic device displays a sixth interface; wherein the sixth interface includes a seventh floating window in the third window and an eighth floating window in the fourth window, the width of the third window is smaller than the width of the fourth window, and the width of the seventh floating window is smaller than the width of the eighth floating window; or, in response to the operation of sliding the first sliding bar to the fourth area, the electronic device displays a seventh interface; wherein the seventh interface includes a first floating ball control in the fifth window and a ninth floating window in the sixth window, the width of the fifth window is smaller than the width of the sixth window, and the width of the ninth floating window is smaller than the width of the sixth window; or, in response to the operation of sliding the first sliding bar to the fifth area, the electronic device displays an eighth interface; wherein the eighth interface includes an eighth floating window, and the width of the eighth floating window is smaller than the width of the first display screen.

[0026] In a possible implementation, in response to the operation of sliding the first sliding bar to the fourth area, after the electronic device displays the seventh interface, the method further includes: in response to the operation of sliding the first sliding bar to the sixth area, the electronic device displays the ninth interface; wherein the ninth interface includes the first floating ball control in the seventh window and the second floating ball control in the eighth window; the width of the seventh window is greater than the width of the eighth window; or, in response to the operation of sliding the first sliding bar to the seventh area, the electronic device displays the tenth interface; wherein the tenth interface includes the ninth floating window; the width of the ninth floating window is less than the width of the first display screen. In this way, the floating window in the split-screen window can be flexibly displayed according to the user's operation.

[0027] In a possible implementation, after the electronic device displays the ninth interface in response to the operation of sliding the first sliding bar to the sixth area, the method further includes: in response to the operation of sliding the first sliding bar to the eighth area, the electronic device displays the eleventh interface; wherein the eleventh interface includes the second floating ball control. In this way, the floating window in the split-screen window can be flexibly displayed according to the user's operation.

[0028] In a possible implementation, the electronic device further includes a second display screen, and the method further includes: in response to a sixth operation on the electronic device, the electronic device displays a twelfth interface using the second display screen; wherein the twelfth interface includes a ninth window and a tenth window, and the width of the ninth window and the width of the tenth window are both the same as the width of the second display screen. In this way, the electronic device can flexibly display floating windows on multiple screens according to the folding of the folding screen by the user.

[0029] In a possible implementation, in response to the sixth operation on the electronic device, the electronic device uses the second display screen to display the twelfth interface, including: in response to the sixth operation on the electronic device, the electronic device obtains second data; the second data includes folding angle data; the folding angle data is obtained based on hinge sensor detection; when the electronic device determines that the folding angle data meets the second preset condition, the electronic device uses the second display screen to display the twelfth interface. In this way, the electronic device can detect the folding screen angle and determine the display of multiple display screens of the electronic device according to the folding angle.

[0030] In a possible implementation, a window interaction method is applied to an electronic device, the electronic device includes a first display screen, and the method includes: when a preset function of a first application is not turned on, in response to an operation of turning on the first application, the electronic device uses the first display screen to display a first interface; in response to a first operation on the first interface, the electronic device displays a second interface; the second interface includes a first floating window; the width of the first floating window is less than the width of the first display screen; in response to turning on the preset function of the first application and opening the first application, the electronic device displays the first interface; in response to the first operation on the first interface, the electronic device displays a third interface; the third interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window, the second window includes a first floating ball control corresponding to the first floating window, and the content displayed in the first window and the content displayed in the second window both belong to the first application; in response to a second operation on the first floating ball control, the electronic device displays a fourth interface; the fourth interface includes a first floating window, a first window, a second window, and a first sliding bar; the width of the first floating window is less than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state. In this way, the electronic device can realize the display of a floating window in an interface using a parallel horizon.

[0031] In a second aspect, an embodiment of the present application provides a window interaction device, which is applied to an electronic device, wherein the electronic device includes a first display screen, and the method includes: a display unit, which is used to display a first interface using the first display screen; wherein the first interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window; the content displayed in the first window and the content displayed in the second window both belong to a first application; in response to a first operation on the first window or the second window, the display unit is also used to display a second interface; wherein the second interface includes a first floating window, a first window, a second window, and a first sliding bar; the width of the first floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state.

[0032] In one possible implementation, the second interface also includes a first area, which is an area in the second interface excluding the first floating window. In response to a second operation on the first area, the display unit is also used to display a third interface; the third interface includes a second floating window, and the second floating window satisfies a second state; the second state is different from or the same as the first state.

[0033] In a possible implementation manner, the second operation includes: an operation of sliding the first sliding bar to the first area in the second interface.

[0034] In a possible implementation manner, the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.

[0035] In one possible implementation, in response to a third operation on the electronic device, the display unit is used to display a fourth interface; wherein the fourth interface includes a third floating window; the width of the third floating window is less than the height of the first display screen, and the third floating window satisfies the first state.

[0036] In a possible implementation, when the second interface is an interface of the electronic device in a portrait state, the fourth interface is an interface of the electronic device in a landscape state.

[0037] In one possible implementation, the electronic device also includes a second display screen, and in response to a fourth operation on the electronic device, a display unit is used to display a fifth interface using the second display screen; wherein the fifth interface includes a fourth floating window and a second window; and a width of the fourth floating window is the same as a width of the second display screen.

[0038] In one possible implementation, in response to a fourth operation on the electronic device, the processing unit is used to obtain first data; the first data includes folding angle data; the folding angle data is obtained based on detection by a hinge sensor; when the electronic device determines that the folding angle data meets a first preset condition, the display unit is used to display a fifth interface using a second display screen.

[0039] In one possible implementation, when a preset function of a first application is turned on, the display unit is used to display a sixth interface using a first display screen; the content displayed in the sixth interface belongs to the first application; in response to a fifth operation on the sixth interface, the display unit is used to display the first interface using the first display screen.

[0040] In one possible implementation, in response to a first operation on a first window or a second window, a display unit is used to display a seventh interface; the seventh interface includes a first text; in response to an operation on the first text, the display unit is used to display a first control; the first control includes a copy option and a translation option; in response to an operation on the copy option, the display unit is used to display a floating ball control; in response to the operation on the floating ball control, the electronic device displays a second interface.

[0041] In one possible implementation, the display unit is used to display an eighth interface using a first display screen; the eighth interface includes a second text; in response to an operation on the second text, the display unit is used to display a second control; the second control includes a copy option and a translation option; in response to an operation on the translation option, the display unit is used to display the first interface using the first display screen.

[0042] In one possible implementation, the method is applied to an electronic device, the electronic device includes a first display screen, and the method includes a display unit, which is used to display a first interface using the first display screen; wherein the first interface includes a first window and a second window, the content displayed in the first window belongs to the first application, and the content displayed in the second window belongs to the second application; in response to a first operation on the first window, the display unit is used to display a first floating window in the first window; the first floating window is a non-modal dialog box, and the first floating window satisfies a first state; in response to a second operation on the second window, the display unit is used to display a second floating window in the second window; the second floating window is a non-modal dialog box, and the second floating window satisfies the first state.

[0043] In a possible implementation, the first window also includes a first area, which is the area of ​​the first window excluding the first floating window. In response to a third operation on the first area, the display unit is used to display a third interface; the third interface includes: a third floating window in the first window, and a second floating window in the second window; the third floating window satisfies the second state; the second state is different from or the same as the first state.

[0044] In a possible implementation, the second window also includes a second area, and the second area is the area of ​​the second window excluding the second floating window. In response to a fourth operation on the second area, the display unit is used to display a fourth interface; the fourth interface includes: the first floating window in the first window, and the fourth floating window in the second window; the fourth floating window satisfies the second state; the second state is different from or the same as the first state.

[0045] In a possible implementation manner, the first state includes any one of a half-screen state, a full-screen state, or a bottom state; and the second state includes a bottom state.

[0046] In a possible implementation, the width of the first floating window is half of the width of the first display screen; and the width of the second floating window is half of the width of the first display screen.

[0047] In one possible implementation, in response to a fifth operation on the electronic device, a display unit is used to display a fifth interface; wherein the fifth interface includes a fifth floating window in the first window and a sixth floating window in the second window, the fifth floating window satisfies the first state, and the sixth floating window satisfies the first state.

[0048] In one possible implementation, in response to a fifth operation on the electronic device, a processing unit is used to obtain first data; the first data includes angular acceleration data; the angular acceleration data is obtained based on detection by a gyroscope sensor; when the electronic device determines that the angular acceleration data meets a first preset condition, a display unit is used to display a fifth interface.

[0049] In a possible implementation, the width of the fifth floating window is half of the height of the first display screen; and the width of the sixth floating window is half of the height of the first display screen.

[0050] In one possible implementation, the first interface also includes a first sliding bar for adjusting the size of the first window and the size of the second window. In response to the operation of sliding the first sliding bar to the third area, the display unit is used to display the sixth interface; wherein the sixth interface includes a seventh floating window in the third window and an eighth floating window in the fourth window, the width of the third window is smaller than the width of the fourth window, and the width of the seventh floating window is smaller than the width of the eighth floating window; or, in response to the operation of sliding the first sliding bar to the fourth area, the display unit is used to display the seventh interface; wherein the seventh interface includes a first floating ball control in the fifth window and a ninth floating window in the sixth window, the width of the fifth window is smaller than the width of the sixth window, and the width of the ninth floating window is smaller than the width of the sixth window; or, in response to the operation of sliding the first sliding bar to the fifth area, the display unit is used to display the eighth interface; wherein the eighth interface includes an eighth floating window, and the width of the eighth floating window is smaller than the width of the first display screen.

[0051] In one possible implementation, in response to the operation of sliding the first sliding rod to the sixth area, the display unit is used to display a ninth interface; wherein the ninth interface includes the first floating ball control in the seventh window and the second floating ball control in the eighth window; the width of the seventh window is greater than the width of the eighth window; or, in response to the operation of sliding the first sliding rod to the seventh area, the display unit is used to display the tenth interface; wherein the tenth interface includes a ninth floating window; the width of the ninth floating window is less than the width of the first display screen.

[0052] In a possible implementation, in response to the operation of sliding the first sliding rod to the eighth area, the display unit is used to display an eleventh interface; wherein the eleventh interface includes a second floating ball control.

[0053] In one possible implementation, the electronic device also includes a second display screen, and in response to a sixth operation on the electronic device, a display unit is used to display a twelfth interface using the second display screen; wherein the twelfth interface includes a ninth window and a tenth window, and the width of the ninth window and the width of the tenth window are both the same as the width of the second display screen.

[0054] In one possible implementation, in response to a sixth operation on the electronic device, the processing unit is used to obtain second data; the second data includes folding angle data; the folding angle data is obtained based on detection by a hinge sensor; when the electronic device determines that the folding angle data meets a second preset condition, the display unit is used to display a twelfth interface using a second display screen.

[0055] In a possible implementation, the electronic device includes a first display screen, and the method includes: when a preset function of a first application is not turned on, in response to an operation of turning on the first application, a display unit is used to display a first interface using the first display screen; in response to a first operation on the first interface, the display unit is used to display a second interface; the second interface includes a first floating window; the width of the first floating window is less than the width of the first display screen; in response to the operation of turning on the preset function of the first application and opening the first application, the display unit is used to display the first interface; in response to the first operation on the first interface, the display unit is used to display a third interface; the third interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window, the second window includes a first floating ball control corresponding to the first floating window, and the content displayed in the first window and the content displayed in the second window both belong to the first application; in response to a second operation on the first floating ball control, the display unit is used to display a fourth interface; the fourth interface includes a first floating window, a first window, a second window, and a first sliding bar; the width of the first floating window is less than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies the first state.

[0056] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0057] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any one of the methods of the first aspect.

[0058] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.

[0059] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is run on a computer, it enables the computer to execute any method of the first aspect.

[0060] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0061] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0063] Figure 2 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application;

[0064] Figure 3 A schematic diagram of the structure of a window manager provided in an embodiment of the present application;

[0065] Figure 4 A schematic diagram of the structure of a foldable screen mobile phone provided in an embodiment of the present application;

[0066] Figure 5 A schematic diagram of an interface for displaying a floating window provided in an embodiment of the present application;

[0067] Figure 6 A schematic diagram of another interface for displaying a floating window under a parallel field of view provided in an embodiment of the present application;

[0068] Figure 7A schematic diagram of an interface for displaying a floating window in a vertical screen state provided in an embodiment of the present application;

[0069] Figure 8 A schematic diagram of an interface for flipping the screen of a foldable screen mobile phone provided in an embodiment of the present application;

[0070] Fig. 9 A non-modal interface schematic diagram provided for an embodiment of the present application;

[0071] Fig.10 A schematic diagram of an interface for adjusting the size of a window in a parallel view provided in an embodiment of the present application;

[0072] Fig.11 A schematic diagram of an interface for switching screens of a foldable screen mobile phone provided in an embodiment of the present application;

[0073] Fig.12 A schematic diagram of an application split-screen display interface provided in an embodiment of the present application;

[0074] Fig.13 A schematic diagram of an interface for opening a floating window by applying split-screen display provided in an embodiment of the present application;

[0075] Fig.14 A schematic diagram of another interface for displaying a floating window in a vertical screen state provided in an embodiment of the present application;

[0076] Fig.15 A schematic diagram of another interface for flipping the screen of a foldable screen mobile phone provided in an embodiment of the present application;

[0077] Fig.16 A schematic diagram of another non-modal interface provided in an embodiment of the present application;

[0078] Fig.17 A schematic diagram of an interface for adjusting the window size in an application split-screen display interface provided in an embodiment of the present application;

[0079] Fig.18 A schematic diagram of another interface for adjusting the window size in an application split-screen display interface provided in an embodiment of the present application;

[0080] Fig.19 A schematic diagram of another screen switching interface of a folding screen mobile phone provided in an embodiment of the present application;

[0081] Fig. 20 A flowchart of a window interaction method provided in an embodiment of the present application;

[0082] Fig.21 A flowchart of another window interaction method provided in an embodiment of the present application;

[0083] Fig. 22 A schematic diagram of the structure of a window interaction device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0084] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0085] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0086] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0087] With the diversification of electronic device functional requirements, more electronic devices can support parallel view function or application split screen display function. The parallel view function can be understood as displaying different contents of the same application in two windows of the same interface; the application split screen display function can be understood as displaying the contents of different applications in two windows of the same interface.

[0088] Normally, electronic devices cannot support users to open floating windows in the interface corresponding to parallel horizons (or application split screens). In addition, when the electronic device receives an operation from the user to switch from the portrait screen state to the landscape screen state, it cannot automatically flip the floating window opened in the interface corresponding to the parallel horizons (or application split screens); and the floating window is modal, which can be understood as the user cannot touch or click the area outside the floating window when the floating window exists.

[0089] In view of this, the embodiment of the present application provides a window interaction method and an electronic device, so that the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window. The above-mentioned electronic device can also be called a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The electronic device can be a mobile phone with a window display function, a folding screen mobile phone, a smart TV, a wearable device, a tablet, a computer with a wireless transceiver function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the electronic device.

[0090] For example, Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0091] like Figure 1As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a hinge sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, and the like.

[0092] In the embodiment of the present application, the hinge sensor can be used to detect the folding angle of the electronic device, and the gyroscope sensor is used to detect the horizontal or vertical screen flipping state of the electronic device.

[0093] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0094] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, the processor 110 is used to execute the ambient light detection method in the embodiment of the present application.

[0095] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0096] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0097] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0098] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may be an organic light-emitting diode (OLED). In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0099] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0100] For example, Figure 2 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application.

[0101] like Figure 2 As shown, the electronic device can divide the Android system into five layers, namely, application layer (applications), application framework layer (application framework), Android runtime (Android runtime) and system library, hardware abstract layer (hardware abstract layer, HAL, not shown in the figure) and kernel layer (kernel).

[0102] The application layer may include a series of application packages. For example, the application layer may include: settings, calendar, map, alarm clock and other applications (applications may be referred to as applications for short), and the present application embodiment does not impose any restrictions on this.

[0103] In the embodiment of the present application, the application layer may also include a context awareness module, a business logic processing module, a business presentation module, etc. The context awareness module, the business logic processing module, and the business presentation module may be independent APPs, or may be integrated in different APPs, or may be integrated in the same APP, which is not limited in the present application.

[0104] Among them, the context awareness module, which is resident or runs in a low-power form, has the ability to perceive external facts or environments. The context awareness module can detect related events and obtain the status of events from other applications in the application layer or the application framework layer or the system layer or the kernel layer through an API (application programming interface), such as detecting Bluetooth connections, network connections, monitoring user text messages, custom timers, etc. In an embodiment of the present application, the main function of the context awareness module is to monitor whether there is a copy event in the clipboard. When the clipboard is monitored to have a copy event, the copy event is notified to the business logic processing module. The context awareness module can also be used to obtain the source application (APP) of the cut content in the clipboard, that is, the application package name. In other words, the clipboard content recognizes that the cut content is copied from a specific application through the context awareness module. In addition, the context awareness module can also detect whether there is an operation to exit the current page. When the operation to exit the current page is detected, the business logic processing module is notified.

[0105] The business logic processing module (such as: computing engine) has business logic processing capabilities, which is used to implement the display and disappearance logic of various suspended balls or suspended windows. For example, the business logic processing module receives the copy event triggered by the user and the clipboard content sent by the context awareness module, and determines whether the translation conditions are met, thereby determining whether to display the suspended ball. The business logic processing module can also determine whether to display the suspended window and display the translation result in the suspended window based on the user-triggered click on the suspended ball event and the translation result content obtained from the third-party server. In addition, the business logic processing module can also be used to determine whether to display or disappear the suspended ball or suspended window on the electronic device based on the event of the suspended ball or suspended window disappearing triggered by the user.

[0106] In addition, the business logic processing module can also identify copied text or text extracted by OCR technology. For example, it can identify that the text is at least one of the following types: schedule, link to be shared, Taobao password, website, etc. For another example, it can also identify the language of the text.

[0107] The business presentation module (such as: YOYO suggestion) is used to display or disappear the floating ball or floating window on the screen of the mobile phone. For example, the business presentation module receives the command to display the floating ball or floating window sent by the business logic processing module, and notifies the window manager to display the floating ball or floating window on the electronic device. At the same time, the business presentation module can also present the text copied by the user and its corresponding translation results in the floating window. In addition, the business presentation module can also notify the window manager to display or disappear the floating ball or floating window on the electronic device according to the event of the disappearance of the floating ball or floating window triggered by the user.

[0108] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, a clipboard manager, etc., and the embodiments of the present application do not impose any restrictions on this.

[0109] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0110] The Clipboard Manager is used to manage the Clipboard. The Clipboard is a temporary storage area for temporarily storing exchange information.

[0111] The activity manager is used to manage the life cycle of each application and the navigation fallback function. It is responsible for creating the Android main thread and maintaining the life cycle of each application.

[0112] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0113] 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.

[0114] 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.

[0115] like Figure 2As shown, the system library may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), etc.

[0116] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0117] like Figure 2 As shown, the kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0118] For example, Figure 3 A schematic diagram of the structure of a window manager provided in an embodiment of the present application.

[0119] like Figure 3 As shown, the window manager may include: application windows, child windows (not shown) and system windows.

[0120] The application window corresponds to the application window of a certain application, such as the application window of a reading application, which is used to display the content within the reading application, the application window of a translation application, which is used to display the content within the translation application, and the application window of a memo application, which is used to display the content within the memo application. The interface of each application is composed of activities, and activities are composed of views. Views are the form of existence of windows, and windows are the carriers of views. When an activity is started, the application process is notified, and any activity belongs to the application process. In other words, for example, the reading application corresponds to an activity, and the memo application corresponds to another activity because it is a different application from the reading application. The default window type for all activities is the base window (TYPE_BASE_APPLICATION), that is, all other types of application windows will appear on top of the base window.

[0121] The child window is attached to the parent window, that is, it cannot exist independently and needs to rely on an application, such as an application input method window, an application prompt box window, etc. When the parent window is invisible, the child window is also invisible.

[0122] System windows are different from application windows and do not need corresponding activities. Unlike child windows, they do not need parent windows. System windows do not belong to any application. They are created by the system and belong only to the system itself. They often require permission to be created, such as shutdown dialog windows, status bar windows, search bar windows, input method windows, warning dialog boxes, system volume bars, etc.

[0123] It should be noted that the level of the system window is generally higher than that of the application window and sub-window.

[0124] Continue to combine Figure 3 As shown, in the embodiment of the present application, a floating ball and a floating window are set in the system window. From the above analysis, it can be seen that the floating ball and the floating window are system windows and cannot be set in the application window.

[0125] The essence of floating windows and floating balls is to hand over a view to a window manager for management. Due to the underlying system limitations of Android, the z-axis range of application windows is 1 to 99, the range of sub-windows is 1001 to 1999, and the range of system windows is (2000 to 2999). Therefore, floating windows and floating balls can only be implemented within the system window range. If you want to pop up a custom system-level window, you need to apply for permissions dynamically. The Z-axis is the concept of the Android window hierarchy. The larger the Z-axis, the more the window is at the top level.

[0126] Furthermore, since the interface of each application in the application is composed of various activities and any activity belongs to the application process, the floating ball and floating window set in the system window do not have the function of activity. In order to obtain the floating ball and floating window to obtain the effect similar to the activity in the application window, that is, to display content and based on the user's sliding operation on the floating ball and floating window, it is necessary to set up sliding operations, sliding conflicts, etc. in the system window, and judge the focus of the response window according to the user's click and other operations. The specific description is expanded according to the following content for greater clarity.

[0127] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0128] In the embodiments of the present application, the electronic device is a folding screen mobile phone as an example for illustration, and this example does not constitute a limitation on the embodiments of the present application. Figure 4 A schematic diagram of the structure of a foldable screen mobile phone provided in an embodiment of the present application.

[0129] like Figure 4As shown, the foldable screen mobile phone includes an inner screen and an outer screen. When the foldable screen mobile phone is in a folded state (or understood as a folding angle between 0 degrees and 70 degrees, etc.), the foldable screen mobile phone can use the outer screen to display an interface including a floating window, or when the foldable screen mobile phone is in an unfolded state (or understood as a folding angle between 70 degrees and 180 degrees, etc.), the foldable screen mobile phone can use the inner screen to display an interface including a floating window. Among them, the folding angle of the foldable screen mobile phone when it is in a folded state or in an unfolded state is only an example and cannot be a limitation on the embodiments of the present application.

[0130] It will be understood that the embodiment of the present application will take the display of the inner screen of a foldable screen mobile phone as an example to illustrate the window interaction method, and this example does not constitute a limitation on the embodiment of the present application.

[0131] It is understandable that in the embodiment of the present application, a floating window display is performed in a parallel view (or referred to as scene 1, such as Figure 5-Figure 9 Corresponding embodiments) and floating window display in application split screen (or referred to as scenario 2, such as Figure 10-12 Taking the corresponding embodiments) as an example, the specific implementation of the window interaction method is illustrated respectively.

[0132] Scenario 1: A foldable screen mobile phone displays a floating window in a parallel field of view.

[0133] In scenario one, the foldable screen mobile phone can support two types of floating window displays in the parallel vision function: method 1, the foldable screen mobile phone supports triggering the floating window in the interface corresponding to the parallel vision of the application; or, method 2, the foldable screen mobile phone supports opening the parallel vision of the application after triggering the floating window.

[0134] Method 1: Folding screen mobile phones support triggering floating windows in the parallel view interface of the application.

[0135] In an embodiment of the present application, the foldable screen mobile phone can use the parallel field of view function to display applications, and based on the user's operation, the foldable screen mobile phone can display a floating window in the interface corresponding to the parallel field of view.

[0136] It is understandable that an option switch such as "Parallel Vision" can be set in the setting interface of a foldable screen mobile phone. When the user opens an application according to needs, such as the "Parallel Vision" option corresponding to a news application, the user can view two pages at the same time in the news application.

[0137] In the setting interface of a foldable screen mobile phone, an option switch such as "Copy triggers translation" can be set. When the user chooses to turn on the copy-triggered translation function, when the user copies text in a language other than the system default language, the electronic device can trigger the translation function and display a floating ball corresponding to the translation function; further, when the user triggers the floating ball, the translation result can be displayed.

[0138] For example, Figure 5 A schematic diagram of an interface for displaying a floating window in a parallel field of view provided in an embodiment of the present application. Figure 5 In the corresponding embodiment, an example of opening a floating window in a news application is taken for illustration.

[0139] When the "Parallel Vision" function corresponding to the news app is turned on, the foldable screen phone can display Figure 5 The interface shown in (a) in the figure can display the main page of the news application in full screen.

[0140] In such Figure 5 In the interface shown in (a), when the foldable screen mobile phone receives an operation of the user triggering any news, the foldable screen mobile phone can display Figure 5 The interface shown in (b) in the figure. Figure 5 In the interface shown in (b) of FIG. 1 , the main page 501 of the news application and the content page 502 of the news application can be displayed in left and right split screens. It can be understood that the Figure 5 The interface shown in (b) can be called the interface corresponding to the parallel view of the application.

[0141] In such Figure 5 In the scenario of displaying the interface corresponding to the parallel horizon shown in (b) of FIG. 5 , when the foldable screen mobile phone receives the operation of the user selecting the word "patent" on the content page 502, the foldable screen mobile phone can display the following Figure 5 The interface shown in (c) is shown in the figure. Figure 5 The interface shown in (c) may include an option bar 503, and the option bar 503 may include operation options such as copy and translate.

[0142] In such Figure 5 In the interface shown in (c) of FIG. 1 , when the foldable screen mobile phone receives the user's operation of triggering the "copy" option in the option bar 503 corresponding to the word "patent", the foldable screen mobile phone can recognize the user's intention and display the following Figure 5 The interface shown in (d) in the figure. Figure 5The interface shown in (d), which may include a floating ball icon 504. The floating ball icon 504 can be used to indicate that the folding screen mobile phone is recognizing the user's intention, and the intention recognized by the folding screen mobile phone can be translation. It can be understood that during the recognition process of the folding screen mobile phone, no user operation is required. For example, without the user clicking on any content of the page in Figure 5 (d), the user's intention can be recognized.

[0143] When the folding screen mobile phone recognizes that the user's intention is to translate the word "patent", it can display an interface as shown in Figure 5 (e). This interface may include: a floating ball 505, which is used to provide an entry for the user to display the translation result.

[0144] In the interface shown in Figure 5 (e), when the folding screen mobile phone receives an operation in which the user triggers the floating ball 505, the folding screen mobile phone can display an interface as shown in Figure 5 (f). In the interface shown in Figure 5 (f), a floating window 506 can be displayed in this interface, and the translation result of "patent" is shown in the floating window 506. The translation result shown in the floating window 506 includes the English word "patent" that the user copied for query, as well as the translation result of the Chinese interpretation of this word, that is, "patent". The content shown in the floating window 506 also includes: a control for voice reading, a control for copying the translation result, a control for switching the translation language, etc.

[0145] It can be understood that the floating window 506 can be centered and displayed at the bottom of the inner screen of the folding screen mobile phone, and there is a certain distance left between the floating window 506 and the left and right sides of the inner screen. The floating window 506 is the initial state of the floating window, that is, the default form shown after the user clicks the floating ball 505 is a semi-screen state. Exemplarily, due to the display of the floating window 506, the floating ball 505 can be cancelled to achieve a better user experience.

[0146] In possible implementation manners, in addition to being able to open the floating window 506 based on the interfaces shown in (a)- Figure 5 in the above Figure 5 (f), the folding screen mobile phone can also open the floating window conveniently based on the following operations.

[0147] In the interface shown in Figure 5 (c), when the folding screen mobile phone receives an operation in which the user triggers the "Translate" option in the option bar 503 corresponding to the word "patent", the folding screen mobile phone displays Figure 5In the interface shown in (f), for example, a foldable screen mobile phone can bring up a floating window 506.

[0148] It is understandable that when a user opens a floating window in the parallel vision interface of an application, the floating window can be displayed in the center at the bottom of the screen.

[0149] Method 2: Folding screen phones support opening the parallel view of the application after triggering the floating window.

[0150] In this embodiment of the present application, the user can Figure 6 In a corresponding embodiment, when the parallel vision of the application is not turned on, the content page of the application is opened and a floating window is triggered in the content page. Further, the user can turn on the parallel vision of the application from the settings, and open the main page and content page of the application, so that the foldable screen mobile phone can display the main page and content page in left and right split screen, and the content page can include a floating ball corresponding to the previously triggered floating window. The foldable screen mobile phone can display the floating window based on the user's triggering of the floating ball.

[0151] For example, Figure 6 This is another schematic diagram of an interface for displaying a floating window in a parallel view provided by an embodiment of the present application. Figure 6 In the corresponding embodiment, an example of opening a floating window in a news application is taken for illustration.

[0152] When the "Parallel Vision" function corresponding to the news app is not turned on, when the foldable screen mobile phone receives the user's operation to open the news app, the foldable screen mobile phone can display Figure 6 In the interface shown in (a), the main page of the news application can be displayed in full screen.

[0153] In such Figure 6 In the interface shown in (a), when the foldable screen mobile phone receives an operation of the user triggering any news, the foldable screen mobile phone can display Figure 6 In the interface shown in (b), the content page of the news application can be displayed in full screen.

[0154] Furthermore, in Figure 6 In the interface shown in (b) of FIG. 1 , when the folding screen mobile phone receives the floating window corresponding to the word "patent" triggered by the user, the interface may also include a floating window 601. It is understandable that the floating window 601 may be displayed in the center at the bottom of the inner screen of the folding screen mobile phone, and the floating window 601 is at a certain distance from the left and right sides of the inner screen. Figure 6 For the method of triggering the floating window display in the interface shown in (b) of FIG. Figure 5 (c)- Figure 5 The description of the interface shown in (f) will not be repeated here.

[0155] On a foldable phone, the display Figure 6 In the case of the floating window 601 shown in (b) of FIG. 1 , when the folding screen mobile phone receives an operation by the user to open the setting application from the background, turn on the parallel view function corresponding to the news application in the setting application, and receives an operation by the user to reopen the news application, the folding screen mobile phone can display Figure 6 In the interface shown in (c), the Figure 6 In the interface shown in (c) above, the main page of the news application can be displayed in full screen.

[0156] In such Figure 6 In the interface shown in (c), when the foldable screen mobile phone receives an operation of the user triggering any news, the foldable screen mobile phone can display Figure 6 The interface shown in (d) is shown in Figure 6 In the interface shown in (d) of FIG. 1 , the main page 602 of the news application and the content page 603 of the news application can be displayed in a left-right split screen, and the content page 603 can include a floating ball 604. The floating ball 604 can be another display form of the floating window displayed in the content page of the news application before the parallel view of the news application is turned on. For example, the floating ball 604 can be Figure 6 Another display form of the floating window 601 shown in (b) in FIG.

[0157] In such Figure 6 In the interface shown in (d), when the foldable screen mobile phone receives the user's operation of triggering the floating ball 604, the foldable screen mobile phone can display Figure 6 In the interface shown in (e), the Figure 6 The interface shown in (e) includes a floating window 605.

[0158] It is understandable that the floating window 605 can be displayed centered at the bottom of the inner screen of the folding screen mobile phone, and the floating window 605 has a certain distance from the left and right sides of the inner screen.

[0159] In possible implementations, Figure 5 or Figure 6 In the corresponding embodiment, the folding screen mobile phone can present three floating window states according to the user's operation on the floating window. For example, Figure 7 A schematic diagram of an interface for displaying a floating window in a vertical screen state provided in an embodiment of the present application.

[0160] like Figure 7The interface shown in (a) in the figure may include a floating window 701 in a half-screen state displayed in an application using parallel vision when the foldable screen mobile phone is in a vertical screen state. The floating window in the half-screen state occupies about half of the screen of the current application and displays part of the translation result content. The floating window in the half-screen state can also be used as a default floating window form, that is, the first floating window displayed after the user copies the text.

[0161] For example, in Figure 7 In the interface shown in (a) of FIG. 1 , when the folding screen mobile phone receives the operation of the user touching the floating window 701 and sliding down, the folding screen mobile phone can display the following Figure 7 The interface shown in (b).

[0162] like Figure 7 The interface shown in (b) in the figure may include a floating window 702 in a bottom state displayed in an application using parallel vision when the foldable screen mobile phone is in a vertical state. The floating window in the bottom state is centered at the bottom of the screen of the current application and does not display any translation result content, which is conducive to the user continuing to access the content in the current application to improve the user experience.

[0163] For example, in Figure 7 In the interface shown in (b) of FIG. 1 , when the folding screen mobile phone receives the operation that the user touches the floating window 702 to slide upward and slides to the upper edge of the screen, the folding screen mobile phone can display the following Figure 7 The interface shown in (c) in .

[0164] like Figure 7 The interface shown in (c) in FIG. 1 may include a floating window 703 in full screen mode displayed in an application using parallel vision when the foldable screen mobile phone is in portrait mode. The floating window in full screen mode may exemplarily occupy the middle of the entire screen of the current application, and its expansion is based on the user's dragging operation, and is used to display more translation result content than the floating window in half screen mode, so as to improve the user experience.

[0165] It is understandable that foldable screen mobile phones can also be based on other user operations. Figure 7 The interface shown in (a) Figure 7 The interface shown in (b) and Figure 7 Switching is performed in the interface shown in (c) in the figure, which is not specifically limited in the embodiments of the present application.

[0166] It is understandable that the above Figure 7 The interface shown in (a) Figure 7 The interface shown in (b) and Figure 7The floating windows displayed in the interface shown in (c) can all be centered at the bottom of the screen.

[0167] based on Figure 7 The corresponding embodiment enables the floating window to display different forms according to different operations of the user. In this way, the different needs of users for the floating window displayed in the application using parallel vision are met, and the user's experience of using the floating window function is improved.

[0168] In a possible implementation, the floating window displayed in an application using parallel vision can be flexibly adjusted according to the user's flipping needs, thereby improving the user's experience of using the floating window function in a foldable screen mobile phone. Specifically, when the foldable screen mobile phone is in portrait mode, when the user flips the screen while the floating window displayed in an application using parallel vision on the foldable screen mobile phone is in half-screen mode, the floating window in the foldable screen mobile phone can be in half-screen mode (such as Figure 8 corresponding embodiments).

[0169] For example, Figure 8 A schematic diagram of an interface for flipping a folding screen mobile phone screen provided in an embodiment of the present application. Figure 8 As shown in (a) of FIG. 1 , when the floating window displayed in the application of the foldable screen mobile phone using the parallel horizon is in the half-screen state, when the foldable screen mobile phone receives the user's screen flipping operation, for example, the user flips the foldable screen mobile phone from the vertical screen state to the horizontal screen state of the foldable screen mobile phone, the foldable screen mobile phone can display the following Figure 8 The interface shown in (b) in Figure 8 In the interface shown in (b), the floating window displayed in the foldable screen mobile phone can be in a half-screen state.

[0170] It can be understood that since the floating window of the foldable screen mobile phone in portrait state has three states, namely half-screen state, bottom state and full-screen state, and the width and height difference of the inner screen of the foldable screen mobile phone is small, the floating window of the foldable screen mobile phone in landscape state can also have three states, namely half-screen state, bottom state and full-screen state, so that the foldable screen mobile phone can flexibly adjust the floating window displayed in the application using parallel field of view according to the user's flipping needs.

[0171] Specifically, when a floating window displayed in an application using parallel vision on a foldable screen mobile phone is in a bottom state, when the foldable screen mobile phone receives an operation of flipping the screen by the user, for example, the user flips the screen from the portrait state of the foldable screen mobile phone to the landscape state of the foldable screen mobile phone, the floating window in the foldable screen mobile phone may be in a bottom state; or, when a floating window displayed in an application using parallel vision on a foldable screen mobile phone is in a full-screen state, when the foldable screen mobile phone receives an operation of flipping the screen by the user, for example, the user flips the screen from the portrait state of the foldable screen mobile phone to the landscape state of the foldable screen mobile phone, the floating window in the foldable screen mobile phone may be in a full-screen state.

[0172] In a possible implementation, the floating window displayed in the foldable screen mobile phone using the parallel view application can satisfy the non-modal (or called non-modal dialog box). Fig. 9 A non-modal interface diagram provided in an embodiment of the present application. The non-modal interface can be understood as a user being able to touch or click an area outside the floating window when the floating window exists.

[0173] In such Fig. 9 In the case where the floating window displayed in the foldable screen mobile phone using the parallel vision application is in a half-screen state, when the foldable screen mobile phone receives a user trigger to trigger an area outside the floating window (such as Fig. 9 When the dotted box in (a) is operated, the folding screen mobile phone can display the following Fig. 9 The interface shown in (b) in Fig. 9 The floating window in the interface shown in (b) can be in the bottom state.

[0174] It is understandable that the non-modal floating window allows users to browse and trigger areas other than the floating window without closing the floating window on the folding screen phone, thereby improving the user experience.

[0175] When a non-modal dialog box is displayed, you can execute other tasks in the program without closing the dialog box. At this time, the window attribute of the floating window is set to FLAG_NOT_TOUCH_MODAL, so in this mode, the system will pass touch / click events outside the current window area to the underlying window, and single click events within the current window area will be processed by the current window.

[0176] Specifically, when the floating window is in half-screen state and full-screen state, the window attribute of the floating window is set to FLAG_NOT_TOUCH_MODAL to control the focus event processing; when the floating window is in the bottom state, the window attribute of the floating window is set to FLAG_NOT_FOCUSABLE to hand over the focus event to the original text processing of the current application. The current application is the reading application currently being used by the user in the implementation mode of this application.

[0177] FLAG_NOT_FOCUSABLE: Indicates that the current window does not need to obtain the focus, nor does it need to receive various input events. This flag will also enable FLAG_NOT_TOUCH_MODAL, and the final event will be passed directly to the specific focus window of the lower layer.

[0178] FLAG_NOT_TOUCH_MODAL: In this mode, the system will pass touch / click events outside the current window area to the underlying window, and click events within the current window area will be processed by the current window. This flag is very important and generally needs to be turned on, otherwise other windows will not receive touch / click events.

[0179] In a possible implementation, when the foldable screen mobile phone receives an operation from the user to adjust the window size in the parallel horizon, the floating window displayed in the application of the foldable screen mobile phone using the parallel horizon can remain centered. Fig.10 A schematic diagram of an interface for adjusting the window size in a parallel field of view provided in an embodiment of the present application.

[0180] In such Fig.10 In the interface shown in (a), the interface may include: a main page 1001 (or window 1001) and a content page 1002 (or window 1002) displayed in a left and right split screen, a sliding bar 1003 for adjusting the window size may be provided in the middle of the main page 1001 and the content page 1002, and the interface may also include a floating window 1004 displayed in the center at the bottom of the inner screen of the folding screen.

[0181] In such Fig.10 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user touching the sliding bar 1003 and sliding to the left, the foldable screen mobile phone can display the following Fig.10 The interface shown in (b).

[0182] It is understandable that the Fig.10 The area (or width) of the main page 1005 in the interface shown in (b) is smaller than Fig.10 The area (or width) of the main page 1001 in the interface shown in (a) of FIG. Fig.10 The area (or width) of the content page 1006 in the interface shown in (b) is greater than Fig.10 The area (or width) of the content page 1002 in the interface shown in (a) of FIG. Fig.10 The folding screen 1007 in the interface shown in (b) is in the bottom state.

[0183] It is understandable that when a foldable screen mobile phone uses a floating window displayed in an application with parallel vision, the user adjusting the size of the window in the parallel vision will not affect the position of the floating window.

[0184] In a possible implementation, when the inner screen of a foldable phone uses a parallel field of view and displays a floating window, when the foldable phone receives an operation of the user folding the screen, for example, switching from the inner screen of the foldable phone to the outer screen of the foldable phone, the foldable phone can display the right window in the parallel field of view. Fig.11 A schematic diagram of an interface for switching screens on a foldable mobile phone provided in an embodiment of the present application.

[0185] In such Fig.11 In the case where the inner screen of the foldable screen mobile phone shown in (a) displays window 1101, window 1102 and floating window 1103, when the foldable screen mobile phone receives the user's operation of folding the mobile phone screen (or understanding that the folding screen angle meets 0 degrees-70 degrees), the foldable screen mobile phone can turn off the inner screen display and display the following on the outer screen: Fig.11 The interface shown in (b) can display the content in the window 1102 on the inner screen of the foldable screen mobile phone, as well as the floating window 1104.

[0186] Understandably, Fig.11 The floating window 1103 shown in (a) is in a half-screen state, and the floating window 1103 is centered at the bottom of the inner screen, and the width of the floating window 1104 is smaller than the width of the inner screen; Fig.11 The floating window shown in (b) is also in a half-screen state, and the floating window 1104 is displayed at the bottom of the inner screen, and the width of the floating window 1104 is equal to the width of the outer screen. It can be seen that the state of the floating window, such as the half-screen state of the floating window, does not change during the folding process of the folding screen mobile phone.

[0187] Scenario 2: A foldable phone displays a floating window in the application split-screen display interface.

[0188] In scenario 2, foldable screen phones can be based on Fig.12 The corresponding embodiment opens the application split screen and is based on Fig.13 The corresponding embodiments open floating windows in different applications respectively.

[0189] For example, Fig.12 A schematic diagram of an interface for a split-screen display of an application provided in an embodiment of the present application.

[0190] When the foldable screen mobile phone receives the user's operation to open the news application, the foldable screen mobile phone can display Fig.12 The interface shown in (a) in the figure can display the main page of the news application in full screen.

[0191] In such Fig.12 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user sliding inward along the right edge of the screen, the foldable screen mobile phone can display the following Fig.12 The interface shown in (b) in Fig.12 The interface shown in (b) may include a smart multi-window (or dock bar) 1201, and the smart multi-window 1201 may include: controls 1202 corresponding to the email application, controls corresponding to the memo application, controls corresponding to the video application, controls corresponding to the gallery application, and controls for adding or deleting applications in the smart multi-window.

[0192] In such Fig.12 In the interface shown in (b) of FIG. 1 , when the foldable screen mobile phone receives the operation of the user tapping the control 1202 corresponding to the email application in the smart multi-window 1201 and continuing to drag the control 1202 corresponding to the email application to the right area of ​​the screen, the foldable screen mobile phone can briefly display Fig.12 The interface shown in (c) in the figure is displayed, and then jumps to the interface shown in Fig.12 The interface shown in (d) in FIG. Fig.12 The interface shown in (c) may display icons of news applications and emails in a split screen display; Fig.12 In the interface shown in (d), the window corresponding to the news application and the window corresponding to the email application can be displayed in left and right split screens.

[0193] Furthermore, when the split-screen display of the application is turned on, the folding screen mobile phone can be based on Fig.13 The corresponding embodiments open floating windows in different applications respectively. Fig.13 A schematic diagram of an interface for opening a floating window by using a split-screen display provided in an embodiment of the present application.

[0194] In such Fig.13 In the case of opening the split-screen display of the application as shown in (a) in the figure, when the foldable screen mobile phone receives the operation of the user triggering the "translation" option in the option bar corresponding to the word "patent" in the window corresponding to the news application, the foldable screen mobile phone can display Fig.13 The interface shown in (b) in Fig.13 In the interface shown in (b) , a floating window 1301 may be displayed. The floating window 1301 may be displayed at the bottom of the window corresponding to the news application, and the width of the floating window 1301 is consistent with the width of the window corresponding to the news application.

[0195] It is understandable that, since the user has not yet triggered the floating window in the window corresponding to the email application at this time, the floating window may not be displayed in the floating window corresponding to the email application.

[0196] Similarly, in Fig.13 In the case where the floating window 1301 is displayed in the window corresponding to the news application shown in (c) in FIG. 1 , when the foldable screen mobile phone receives the operation of the user triggering the "translation" option in the option bar corresponding to the word "hello" in the window corresponding to the email application, the foldable screen mobile phone can display Fig.13 In the interface shown in (d), the Fig.13 The interface shown in (d) may display a floating window 1301 and a floating window 1302. The floating window 1302 may be displayed at the bottom of the window corresponding to the email application, and the width of the floating window 1302 is consistent with the width of the corresponding window of the news application.

[0197] It is understandable that when the floating window is turned on by default, the floating window in each window satisfies the half-screen state.

[0198] It is understandable that when the user opens a floating window in each window of the application split-screen display, the floating window can be displayed at the bottom of each window, and the width of the floating window is consistent with the width of the window where the application split-screen is located.

[0199] In possible implementations, Fig.14 In the corresponding embodiment, the folding screen mobile phone can present three floating window states in any window based on the user's operation on the floating window in any window.

[0200] For example, Fig.14 This is another interface diagram of displaying a floating window in a vertical screen state provided by an embodiment of the present application. Fig.14 In the corresponding embodiment, the three states of the floating window are displayed in the left window 1401 of the folding screen mobile phone as an example for explanation. The three states of the floating window can also be displayed in the right window 1402 of the folding screen mobile phone, which will not be repeated in the following text.

[0201] like Fig.14 The interface shown in (a) in the figure may include floating windows in a half-screen state that can be displayed in the interface of the application split screen display when the foldable screen mobile phone is in a vertical screen state, such as floating window 1403 in a half-screen state displayed in window 1401, and floating window 1404 in a half-screen state displayed in window 1402. Among them, any floating window in a half-screen state occupies about half of the size of the window where the current split screen application is located, and displays part of the translation result content. The floating window in a half-screen state can also be exemplarily used as the default floating window form, that is, the first floating window displayed after the user copies the text.

[0202] For example, in Fig.14In the interface shown in (a) of FIG. 1401 , when the folding screen mobile phone receives the operation of the user touching the floating window in the window 1401 and sliding down, the folding screen mobile phone can display the following Fig.14 The interface shown in (b).

[0203] like Fig.14 The interface shown in (b) in FIG. 1404 may include a floating window in a bottom state displayed in window 1401 when the foldable screen mobile phone is in a vertical screen state. At this time, since the user does not trigger the floating window in window 1402, the floating window in window 1402 may not change. The floating window in the bottom state is located at the bottom of the window where the current split-screen application is located, and does not display any translation result content, which is conducive to the user continuing to access the content in the current application to improve the user experience.

[0204] For example, in Fig.14 In the interface shown in (b) of FIG. 14 , when the folding screen mobile phone receives the operation of the user touching the floating window in window 1401 and sliding upward, and sliding to the upper edge of the screen in the vertical screen state, the folding screen mobile phone can display the following Fig.14 The interface shown in (c) in .

[0205] like Fig.14 The interface shown in (c) in the figure may include a floating window in full screen mode displayed in window 1401 when the foldable screen mobile phone is in portrait mode. At this time, since the user has not triggered the floating window in window 1402, the floating window in window 1402 may not change. The floating window in full screen mode may be displayed in the window where the current split screen application is located, and its expansion is based on the user's dragging operation, and is used to display more translation result content than the floating window in half screen mode, so as to improve the user experience.

[0206] It is understandable that foldable screen mobile phones can also be based on other user operations. Fig.14 The interface shown in (a) Fig.14 The interface shown in (b) and Fig.14 Switching is performed in the interface shown in (c) in the figure, which is not specifically limited in the embodiments of the present application.

[0207] It is understandable that the above Fig.14 The interface shown in (a) Fig.14 The interface shown in (b) and Fig.14 Each floating window displayed in the interface shown in (c) can be displayed at the bottom of the window where the split-screen application is located, and the width of the floating window is consistent with the width of the window where the split-screen application is located.

[0208] based on Fig.14The corresponding embodiment enables the floating window to display different forms according to different operations of the user. In this way, the different needs of the user for each floating window in the application split-screen display interface are met, and the user's experience of using the floating window function is improved.

[0209] In a possible implementation, each floating window in the application split-screen interface can be flexibly adjusted according to the user's flipping needs, thereby improving the user's experience of using the floating window function in the foldable screen mobile phone. Specifically, when the foldable screen mobile phone is in portrait mode, when the user flips the screen when the floating windows in each application split-screen in the foldable screen mobile phone are in half-screen mode, each floating window in the foldable screen mobile phone can be in half-screen mode (such as Fig.15 corresponding embodiments).

[0210] For example, Fig.15 This is another schematic diagram of the interface for flipping the screen of a folding screen mobile phone provided in an embodiment of the present application. Fig.15 As shown in (a) of FIG. 1 , when the floating windows in each application split screen of the foldable screen mobile phone are in a half-screen state, when the foldable screen mobile phone receives an operation of the user flipping the screen, for example, the user flips the foldable screen mobile phone from the vertical screen state to the horizontal screen state of the foldable screen mobile phone, the foldable screen mobile phone can display the following Fig.15 The interface shown in (b) in Fig.15 In the interface shown in (b), each floating window displayed in the foldable screen mobile phone can be in a half-screen state.

[0211] It is understandable that since the floating window in the folding screen mobile phone in portrait state has three states, namely half-screen state, bottom state and full-screen state, and the width and height difference of the inner screen of the folding screen mobile phone is small, the floating window of the folding screen mobile phone in landscape state can also have three states, namely half-screen state, bottom state and full-screen state, so that the folding screen mobile phone can flexibly adjust the floating windows displayed in the application split screen according to the user's flipping needs.

[0212] Specifically, when all floating windows displayed in the split-screen of each application on the foldable screen mobile phone are in the bottom state, when the foldable screen mobile phone receives an operation of flipping the screen by the user, for example, when the user flips the screen from the portrait state of the foldable screen mobile phone to the landscape state of the foldable screen mobile phone, all floating windows in the foldable screen mobile phone can be in the bottom state; or, when all floating windows displayed in the split-screen of each application on the foldable screen mobile phone are in the full-screen state, when the foldable screen mobile phone receives an operation of flipping the screen by the user, for example, when the user flips the screen from the portrait state of the foldable screen mobile phone to the landscape state of the foldable screen mobile phone, all floating windows in the foldable screen mobile phone can be in the full-screen state.

[0213] In a possible implementation, each floating window in the split screen of a foldable mobile phone application can satisfy the non-modal state. For example, Fig.16Another non-modal interface schematic diagram provided for an embodiment of the present application.

[0214] In such Fig.16 In the case where the floating windows (such as floating window 1601 and floating window 1602) displayed in each application split screen of the foldable screen mobile phone shown in (a) are in a half-screen state, when the foldable screen mobile phone receives a user triggering the area outside the floating window 1601 in the window corresponding to the news application (such as Fig.16 When the dotted box 1603 shown in (a) is operated, the folding screen mobile phone can display the following Fig.16 The interface shown in (b) in Fig.16 In the interface shown in (b), the floating window 1601 in the window corresponding to the news application can be in the bottom state, and the floating window 1602 in the window corresponding to the email application can be in the half-screen state.

[0215] Or, in Fig.16 In the case where the floating windows (such as floating window 1601 and floating window 1602) displayed in each application split screen of the foldable screen mobile phone shown in (a) are in a half-screen state, when the foldable screen mobile phone receives a user triggering the area outside the floating window 1602 in the window corresponding to the email application (such as Fig.16 When the dotted box 1604 shown in (a) is operated, the folding screen mobile phone can display the following Fig.16 In the interface shown in (c), the Fig.16 In the interface shown in (c), the floating window 1602 in the window corresponding to the email application can be in the bottom state, and the floating window 1601 in the window corresponding to the news application can be in the half-screen state.

[0216] It can be understood that each floating window in the application split-screen display interface satisfies non-modal state, and the non-modal floating window allows users to browse and trigger areas other than the floating window in each application split-screen window, thereby improving the user experience.

[0217] In a possible implementation, when the foldable screen mobile phone receives an operation from the user to adjust the window size in the application split-screen display interface, the floating window in each window can be adjusted according to the user operation. Fig.17 A schematic diagram of an interface for adjusting the window size in an application split-screen display interface provided in an embodiment of the present application.

[0218] In such Fig.17In the interface shown in (a), the interface may include: a window 1701 (or simply window 1701) corresponding to a news application located on the left side of the screen, a floating window 1704 in the window 1701, a window 1702 (or simply window 1702) corresponding to an email application located on the right side of the screen, a floating window 1705 in the window 1702, and a sliding bar 1703.

[0219] In one implementation, Fig.17 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user touching the sliding bar 1703 and sliding to the left (for example, sliding to the area where the dotted box 1706 is located), the foldable screen mobile phone can display the following Fig.17 The interface shown in (b) in the figure. Fig.17 The width of the floating window 1709 in the interface shown in (b) is less than Fig.17 The width of the floating window 1704 shown in (a) is Fig.17 In the interface shown in (b), the width of the floating window 1710 is greater than Fig.17 The width of the floating window 1705 shown in (a).

[0220] It is understandable that when users Fig.17 In the interface shown in (a), when the sliding bar 1703 is slightly slid to change the width of the left and right split-screen windows, since the width of the two split-screen windows changes slightly, each floating window in the two split-screen windows can be adjusted according to the change in the window width, and the foldable screen mobile phone can display the following Fig.17 The interface shown in (b).

[0221] In another implementation, Fig.17 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user touching the sliding bar 1703 and sliding to the left (for example, sliding to the area where the dotted box 1707 is located), the foldable screen mobile phone can display the following Fig.17 The interface shown in (c) is shown in the figure. Fig.17 In the interface shown in (c) , a floating ball 1711 may be displayed in the window 1701 , and a floating window 1712 may be displayed in the window 1702 . The floating window 1712 may be displayed centered at the bottom of the window 1702 .

[0222] It is understandable that when users Fig.17 In the interface shown in (a) of FIG. 1 , sliding the sliding bar 1703 to a certain area changes the width of the left and right split-screen windows, and makes the width of any window (for example Fig.17When the width of window 1701 shown in (c) in the figure is reduced to a certain width threshold, due to the large change in the widths of the two split-screen windows, the floating window in the window with reduced width can be replaced by a floating ball display, and the floating window in the window with increased width can be displayed in the center, avoiding affecting the user's viewing of the content in the floating window when the floating window is reduced to a certain width.

[0223] In another implementation, Fig.17 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user touching the sliding bar 1703 and sliding to the left (for example, sliding to the area where the dotted box 1708 is located), the foldable screen mobile phone can display the following Fig.17 The interface shown in (d) in the figure. Fig.17 A floating window 1713 may be displayed centered in the window 1702 in the interface shown in (d).

[0224] It is understandable that when users Fig.17 In the interface shown in (a) of FIG. 1 , when the sliding bar 1703 is slid to the left edge of the screen, it can be understood that the user no longer needs the content in the window 1701, so that the window 1702 can be opened as shown in FIG. Fig.17 The interface shown in (d) is displayed in full screen, and the floating window 1713 in the window 1702 can be displayed in the center at the bottom of the screen.

[0225] Understandably, Fig.17 The positions of the dotted frame 1706, the dotted frame 1707, and the dotted frame 1708 in the interface shown in (a) are only used as an example and are not specifically limited in the embodiments of the present application.

[0226] In possible implementations, Fig.17 Based on the interface shown in (c), when the foldable screen mobile phone receives an operation in which the user triggers the sliding bar and slides to the right to a certain area, a floating ball can be displayed in the application split-screen interface of the foldable screen mobile phone.

[0227] For example, Fig.18 A schematic diagram of another interface for adjusting the window size in an application split-screen display interface provided in an embodiment of the present application.

[0228] like Fig.18 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user touching the sliding bar 1703 and sliding to the right (for example, sliding to the area where the dotted box 1801 is located), the foldable screen mobile phone can display the following Fig.18 The interface shown in (b) in the figure. Fig.18The interface shown in (b) may include: a floating ball 1802 displayed in window 1702, and a floating ball 1711 displayed in window 1701. Fig.18 The content displayed in the interface shown in (a) is the same as Fig.17 The content displayed in the interface shown in (c) is consistent and will not be repeated here.

[0229] It is understandable that when users Fig.18 In the interface shown in (a) of FIG. 1 , when the sliding bar 1703 is slid to a certain area to change the width of the left and right split-screen windows, and the width of any window (for example Fig.18 When the width of window 1702 shown in (b) is reduced to a certain width threshold, due to the large change in the width of the two split-screen windows, the floating window in the window with the reduced width can be replaced with a floating ball display to avoid affecting the user's viewing of the content in the floating window when the floating window is reduced to a certain width.

[0230] Possible implementations include Fig.18 In the interface shown in (b) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user lightly touching the sliding bar 1703 and continuing to slide to the right (for example, sliding to the area where the dotted box 1803 is located), the foldable screen mobile phone can display the following Fig.18 The interface shown in (d) is shown in Fig.18 In the interface shown in (d), a window 1701 can be displayed in full screen, and the window 1701 includes a floating ball 1711.

[0231] Possible implementations include Fig.18 In the interface shown in (a) of FIG. 1 , when the foldable screen mobile phone receives an operation of the user adjusting the window size, for example, receiving an operation of the user lightly touching the sliding bar 1703 and continuing to slide to the left (for example, sliding to the area where the dotted box 1804 is located), the foldable screen mobile phone can display the following Fig.18 The interface shown in (c) is shown in the figure. Fig.18 In the interface shown in (c) , a window 1702 can be displayed in full screen, and the window 1702 includes a floating window 1713 .

[0232] Understandably, Fig.18 The dashed box 1801, the dashed box 1804, and Fig.18 The position of the dotted frame 1803 in (b) is only an example and is not specifically limited in the embodiments of the present application.

[0233] In a possible implementation, when the inner screen of a foldable phone uses a split-screen display function and a floating window is displayed in any split-screen window, when the foldable phone receives an operation of the user folding the screen, for example, switching from the inner screen of the foldable phone to the outer screen of the foldable phone, the foldable phone can display the window in the inner screen in an upper and lower split-screen on the outer screen. Fig.19 A schematic diagram of an interface for switching screens on another foldable screen mobile phone provided in an embodiment of the present application.

[0234] In such Fig.19 In the case where the inner screen of the foldable screen mobile phone shown in (a) displays window 1901, window 1902, floating window 1903 displayed in window 1901, and floating window 1904 displayed in window 1902, when the foldable screen mobile phone receives the user's operation of folding the mobile phone screen (or understanding that the folding screen angle meets 0 degrees-70 degrees), the foldable screen mobile phone can turn off the inner screen display and display the following on the outer screen Fig.19 In the interface shown in (b), window 1905 and window 1906 can be displayed in an upper and lower split screen.

[0235] It is understandable that due to the limited screen size of the external screen of the mobile phone, while supporting the upper and lower split-screen display windows, it is impossible to display the floating window.

[0236] For example, Fig. 20 A schematic diagram of a window interaction process provided by an embodiment of the present application. Fig. 20 In a corresponding embodiment, the software architecture of the electronic device may include multiple layers, such as an application layer and an application framework layer; the application layer may include a service presentation module, and the application framework layer may include a window manager.

[0237] like Fig. 20 As shown, the window interaction method based on the parallel horizon function may include the following steps:

[0238] S2001. When at least two windows in the same application are opened, a user triggers a translation event in any window.

[0239] The translation event may be an event that triggers the display of a floating window corresponding to a translation function of the text to be translated.

[0240] Exemplarily, when a user turns on the parallel vision function of an application in the settings application and opens at least two windows in the application based on the parallel vision function, such as opening the main page and content page of the application, the user can trigger a translation event in any window, such as the main page or the content page.

[0241] S2002: In response to a user triggering a translation event in any window, the window manager sends a message to the service presentation module for instructing to display a floating window.

[0242] S2003. The business presentation module calls the display to center the floating window at the bottom of the screen, and the floating window is in a half-screen state.

[0243] Among them, the floating window is non-modal.

[0244] It can be understood that, based on S2001-S2003, when the electronic device receives a signal from the user to open a floating window in an application using parallel vision, the floating window can be displayed in the center at the bottom of the screen.

[0245] In a possible implementation, when the electronic device receives an operation from the user to adjust the window size in an application using parallel vision, a module in the electronic device may display the floating window based on the steps shown in S2004-S2006 below.

[0246] S2004: The user triggers a window change event.

[0247] The window change event may be a sliding event of a user sliding a sliding bar between two windows in an application using parallel vision.

[0248] S2005. In response to a window change event triggered by a user, the window manager sends a message for instructing to display a floating window to a business presentation module.

[0249] S2006. The window manager updates the floating window to obtain an updated floating window.

[0250] It can be understood that the updated floating window can be a floating window in the bottom state.

[0251] S2007. The business presentation module calls the display to center the floating window at the bottom of the screen, and the updated floating window is in the bottom state.

[0252] It is understandable that, in the case where the electronic device uses a floating window displayed in an application of a parallel view, the user adjusting the size of the window in the parallel view will not affect the position of the floating window. Fig.10 The description in the corresponding embodiments will not be repeated here.

[0253] Based on this, the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.

[0254] For example, Fig.21A flowchart of another window interaction provided by an embodiment of the present application. Fig.21 In a corresponding embodiment, the software architecture of the electronic device may include multiple layers, such as an application layer and an application framework layer; the application layer may include a business presentation module, and the application framework layer may include a window manager; the business presentation module may include a first business presentation module for managing floating window A, and a second business presentation module for managing floating window B.

[0255] like Fig.21 As shown, the window interaction method based on the application split-screen display function may include the following steps:

[0256] S2101. When the application split-screen display is turned on, the user triggers a translation event in window A.

[0257] The translation event can be found in the description of step S2001, which will not be described again here.

[0258] S2102: In response to a user triggering a translation event in window A, the window manager sends a message to the first service presentation module for instructing to display floating window A in window A.

[0259] S2103. The first service presentation module calls the display to display floating window A in window A.

[0260] S2104: The user triggers a translation event in window B.

[0261] S2105 . In response to the user triggering a translation event in window B, the window manager sends a message to the second service presentation module for instructing to display floating window B in window B.

[0262] S2106. The second service presentation module calls the display to display floating window B in window B.

[0263] In a possible implementation, when the electronic device receives an operation from the user to adjust the window size in an interface where floating windows are displayed in all split-screen windows, the module in the electronic device can display each floating window in the split-screen window based on the steps shown in S2107-S2110 below.

[0264] S2107: The user triggers a window change event.

[0265] The window change event may be a sliding event of a user sliding a sliding bar between two windows in the application split-screen interface.

[0266] S2108. In response to the window change event, the window manager updates the display of floating window A in window A according to the window change, and updates the display of floating window B in window B.

[0267] For details, see Window Manager. Fig.17 The description in the corresponding embodiment updates the floating window displayed in the window. Among them, window A can be Fig.17 Window 1701 in the example, window B can be Fig.17 Window 1702 in.

[0268] In one implementation, Fig.17 As shown in (a) of FIG. 1 , when the user touches the sliding bar 1703 and slides it to the left (for example, sliding to the area where the dotted box 1706 is located), the window manager can refer to Fig.17 The interface shown in (b) updates the floating window.

[0269] In possible implementations, Fig.17 (b) (or Fig.18 Based on the interface shown in (a) in FIG. 1 , when the electronic device receives a user triggering the sliding bar and sliding it to the right to a certain area (such as Fig.18 When the operation is performed in the dotted box (a) 1801), the floating ball can be displayed in the application split screen interface of the electronic device. Fig.18 The interface shown in (b) updates the floating window.

[0270] Further, in Fig.18 Based on the interface shown in (b) in FIG. 1 , when the electronic device receives a user triggering the sliding bar and sliding it to the right to a certain area (such as Fig.18 When the operation of (b) dashed box 1803) is performed, the content in the right window of the electronic device can be cancelled in the application split screen interface of the electronic device, and the electronic device can display the content in the left window of the electronic device in full screen. Fig.18 The interface shown in (d) updates the floating window.

[0271] In possible implementations, Fig.17 (b) (or Fig.18 Based on the interface shown in (a) in FIG. 1 , when the electronic device receives a user triggering the sliding bar and sliding it to the left to a certain area (such as Fig.18 When the operation of (a) dashed box 1804) is performed, the content in the left window of the electronic device can be cancelled in the application split screen interface of the electronic device, and the electronic device can display the content in the right window of the electronic device in full screen. Fig.18 The interface shown in (c) updates the floating window.

[0272] In another implementation, Fig.17As shown in (a) of FIG. 1 , when the user touches the sliding bar 1703 and slides it to the left (for example, sliding to the area where the dotted box 1707 is located), the window manager can refer to Fig.17 The interface shown in (c) updates the floating window.

[0273] In another implementation, Fig.17 As shown in (a) of FIG. 1 , when the user touches the sliding bar 1703 and slides it to the left (for example, sliding to the area where the dotted box 1708 is located), the window manager can refer to Fig.17 The interface shown in (d) updates the floating window.

[0274] S2109. The window manager sends a message to the first service presentation module to instruct the updated floating window A to be displayed in window A, and sends a message to the second service presentation module to instruct the updated floating window B to be displayed in window B.

[0275] S2110. The first service presentation module calls the display to display the updated floating window A in window A, and the second service presentation module calls the display to display the updated floating window B in window B.

[0276] Based on this, the electronic device can reasonably display the floating window according to the user's split-screen requirements for the display screen, thereby enhancing the user's experience of using the floating window.

[0277] It should be understood that the interface provided in the embodiment of the present application is merely an example and cannot constitute a further limitation on the embodiment of the present application.

[0278] For example, Fig. 22 A schematic diagram of the structure of a window interaction device provided in an embodiment of the present application.

[0279] like Fig. 22 As shown, the window interaction device 220 can be used in a communication device, circuit, hardware component or chip, and the window interaction device includes: a display unit 2201, a processing unit 2202 and a communication unit 2203. Among them, the display unit 2201 is used to support the display step of exiting the resource allocation method; the processing unit 2202 is used to support the window interaction device to perform information processing steps; and the communication unit 2203 is used to support the data sending and data receiving steps of the resource allocation method.

[0280] In a possible embodiment, the communication unit 2203 may be an input or output interface, a pin or a circuit, etc.

[0281] In a possible embodiment, the window interaction device may further include: a storage unit 2204. The processing unit 2202, the communication unit 2203, and the storage unit 2204 are connected via a line.

[0282] The storage unit 2204 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.

[0283] The storage unit 2204 can exist independently and be connected to the processing unit 2202 of the window interaction device through a communication line. The storage unit 2204 can also be integrated with the processing unit 2202.

[0284] The storage unit 2204 may store computer-executable instructions of the method in the electronic device, so that the processing unit 2202 executes the method in the above embodiment.

[0285] The storage unit 2204 may be a register, a cache, or a RAM, etc. The storage unit 2204 may be integrated with the processing unit 2202. The storage unit 2204 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 2204 may be independent of the processing unit 2202.

[0286] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.

[0287] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0288] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.

[0289] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.

[0290] The above combinations should also be included in the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A window interaction method, characterized in that: Applied to an electronic device, the electronic device includes a first display screen, and the method includes: The electronic device displays a first interface using the first display screen; wherein the first interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window; the content displayed in the first window and the content displayed in the second window both belong to a first application; In response to a first operation on the first window or the second window, the electronic device displays a second interface; wherein the second interface includes a first floating window, the first window, the second window, and the first sliding bar; the width of the first floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies a first state; the first floating window is directly or indirectly triggered by the first operation.

2. The method according to claim 1, characterized in that The second interface also includes a first area, and the first area is an area of ​​the second interface excluding the first floating window. The method further includes: In response to a second operation on the first area, the electronic device displays a third interface; the third interface includes a second floating window, and the second floating window satisfies a second state; the second state is different from or the same as the first state.

3. The method according to claim 2, characterized in that The second operation includes: an operation of sliding the first sliding bar to a first area in the second interface.

4. The method according to claim 2 or 3, characterized in that: The first state includes any one of a half-screen state, a full-screen state or a bottom state; and the second state includes the bottom state.

5. The method according to claim 1, characterized in that The method further comprises: In response to a third operation on the electronic device, the electronic device displays a fourth interface; wherein the fourth interface includes a third floating window; the width of the third floating window is less than the height of the first display screen, and the third floating window satisfies the first state.

6. The method according to claim 5, characterized in that When the second interface is an interface of the electronic device in a portrait state, the fourth interface is an interface of the electronic device in a landscape state.

7. The method according to claim 1, characterized in that The electronic device further includes a second display screen, and the method further includes: In response to a fourth operation on the electronic device, the electronic device displays a fifth interface using the second display screen; wherein the fifth interface includes a fourth floating window and the second window; and a width of the fourth floating window is the same as a width of the second display screen.

8. The method according to claim 7, characterized in that In response to the fourth operation on the electronic device, the electronic device displays a fifth interface using the second display screen, including: In response to a fourth operation on the electronic device, the electronic device acquires first data; the first data includes folding angle data; the folding angle data is obtained based on detection by a hinge sensor; When the electronic device determines that the folding angle data meets the first preset condition, the electronic device displays the fifth interface using the second display screen.

9. The method according to claim 1, characterized in that: Before the electronic device displays the first interface using the first display screen, the method further includes: When the preset function of the first application is turned on, the electronic device displays a sixth interface using the first display screen; the content displayed in the sixth interface belongs to the first application; The electronic device displays the first interface using the first display screen, including: in response to a fifth operation on the sixth interface, the electronic device displays the first interface using the first display screen.

10. The method according to claim 1, characterized in that In response to a first operation on the first window or the second window, the electronic device displays a second interface, including: In response to a first operation on the first window or the second window, the electronic device displays a seventh interface; the seventh interface includes a first text; In response to an operation on the first text, the electronic device displays a first control; the first control includes a copy option and a translation option; In response to an operation on the copy option, the electronic device displays a floating ball control; In response to an operation on the floating ball control, the electronic device displays the second interface.

11. The method according to claim 1, characterized in that: The electronic device displays a second interface using the first display screen, including: The electronic device displays an eighth interface using the first display screen; the eighth interface includes a second text; In response to an operation on the second text, the electronic device displays a second control; the second control includes a copy option and a translation option; In response to an operation on the translation option, the electronic device displays the second interface using the first display screen.

12. A window interaction method, characterized in that: Applied to an electronic device, the electronic device includes a first display screen, and the method includes: The electronic device displays a first interface using the first display screen; wherein the first interface includes a first window and a second window, the content displayed in the first window belongs to a first application, and the content displayed in the second window belongs to a second application; In response to a first operation on the first window, the electronic device displays a first floating window in the first window; the first floating window is a non-modal dialog box, and the first floating window satisfies a first state; the first floating window is directly or indirectly triggered by the first operation; In response to a second operation on the second window, the electronic device displays a second floating window in the second window; the second floating window is a non-modal dialog box, and the second floating window satisfies the first state; the second floating window is directly or indirectly triggered by the second operation.

13. The method according to claim 12, characterized in that The first window also includes a first area, and the first area is an area of ​​the first window excluding the first floating window. The method further includes: In response to a third operation on the first area, the electronic device displays a third interface; the third interface includes: a third floating window in the first window, and the second floating window in the second window; the third floating window satisfies a second state; the second state is different from or the same as the first state.

14. The method according to claim 12, characterized in that The second window also includes a second area, and the second area is an area of ​​the second window excluding the second floating window. The method further includes: In response to a fourth operation on the second area, the electronic device displays a fourth interface; the fourth interface includes: the first floating window in the first window, and the fourth floating window in the second window; the fourth floating window satisfies the second state; the second state is different from or the same as the first state.

15. The method according to claim 13 or 14, characterized in that The first state includes any one of a half-screen state, a full-screen state or a bottom state; and the second state includes the bottom state.

16. The method according to claim 12, characterized in that The width of the first floating window is half of the width of the first display screen; the width of the second floating window is half of the width of the first display screen.

17. The method according to claim 12, characterized in that The method further comprises: In response to a fifth operation on the electronic device, the electronic device displays a fifth interface; wherein the fifth interface includes a fifth floating window in the first window and a sixth floating window in the second window, the fifth floating window satisfies the first state, and the sixth floating window satisfies the first state.

18. The method according to claim 17, characterized in that In response to the fifth operation on the electronic device, the electronic device displays a fifth interface, including: In response to a fifth operation on the electronic device, the electronic device acquires first data; the first data includes angular acceleration data; the angular acceleration data is obtained based on detection by a gyroscope sensor; When the electronic device determines that the angular acceleration data meets the first preset condition, the electronic device displays the fifth interface.

19. The method according to claim 17, characterized in that The width of the fifth floating window is half of the height of the first display screen; the width of the sixth floating window is half of the height of the first display screen.

20. The method according to claim 12, characterized in that The first interface also includes a first sliding bar for adjusting the size of the first window and the size of the second window. The method further includes: In response to the operation of sliding the first sliding bar to the third area, the electronic device displays a sixth interface; wherein the sixth interface includes a seventh floating window in the third window and an eighth floating window in the fourth window, the width of the third window is smaller than the width of the fourth window, and the width of the seventh floating window is smaller than the width of the eighth floating window; Alternatively, in response to an operation of sliding the first sliding bar to the fourth area, the electronic device displays a seventh interface; wherein the seventh interface includes a first floating ball control in the fifth window and a ninth floating window in the sixth window, the width of the fifth window is smaller than the width of the sixth window, and the width of the ninth floating window is smaller than the width of the sixth window; Alternatively, in response to the operation of sliding the first sliding rod to the fifth area, the electronic device displays an eighth interface; wherein the eighth interface includes an eighth floating window, and a width of the eighth floating window is smaller than a width of the first display screen.

21. The method according to claim 20, characterized in that After the electronic device displays a seventh interface in response to the operation of sliding the first sliding bar to the fourth area, the method further includes: In response to the operation of sliding the first sliding bar to the sixth area, the electronic device displays a ninth interface; wherein the ninth interface includes the first floating ball control in the seventh window and the second floating ball control in the eighth window; the width of the seventh window is greater than the width of the eighth window; Alternatively, in response to the operation of sliding the first sliding bar to the seventh area, the electronic device displays a tenth interface; wherein the tenth interface includes a ninth floating window; and a width of the ninth floating window is smaller than a width of the first display screen.

22. The method according to claim 21, characterized in that After the electronic device displays a ninth interface in response to the operation of sliding the first sliding bar to the sixth area, the method further includes: In response to the operation of sliding the first sliding rod to the eighth area, the electronic device displays an eleventh interface; wherein the eleventh interface includes the second floating ball control.

23. The method according to claim 12, characterized in that The electronic device further includes a second display screen, and the method further includes: In response to the sixth operation on the electronic device, the electronic device displays a twelfth interface using the second display screen; wherein the twelfth interface includes a ninth window and a tenth window, and the width of the ninth window and the width of the tenth window are both the same as the width of the second display screen.

24. The method according to claim 23, characterized in that In response to the sixth operation on the electronic device, the electronic device displays a twelfth interface using the second display screen, including: In response to a sixth operation on the electronic device, the electronic device acquires second data; the second data includes folding angle data; the folding angle data is obtained based on detection by a hinge sensor; When the electronic device determines that the folding angle data meets the second preset condition, the electronic device displays the twelfth interface using the second display screen.

25. A window interaction method, characterized in that: Applied to an electronic device, the electronic device includes a first display screen, and the method includes: In response to an operation of starting the first application when the preset function of the first application is not started, the electronic device displays a first interface using the first display screen; In response to a first operation on the first interface, the electronic device displays a second interface; the second interface includes a first floating window; the width of the first floating window is smaller than the width of the first display screen; In response to starting a preset function of the first application and opening the first application, the electronic device displays the first interface; In response to the first operation on the first interface, the electronic device displays a third interface; the third interface includes a first window, a second window, and a first sliding bar for adjusting the size of the first window and the size of the second window, the second window includes a first floating ball control corresponding to the first floating window, and the content displayed in the first window and the content displayed in the second window both belong to the first application; In response to a second operation on the first floating ball control, the electronic device displays a fourth interface; the fourth interface includes the first floating window, the first window, the second window, and the first sliding bar; the width of the first floating window is smaller than the width of the first display screen, the first floating window is a non-modal dialog box, and the first floating window satisfies a first state; the first floating window is directly or indirectly triggered by the first operation.

26. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any one of claims 1 to 11, or to execute the method described in any one of claims 12 to 24, or to execute the method described in claim 25.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method of any one of claims 1 to 11, or the method of any one of claims 12 to 24, or the method of claim 25.

28. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed on a computer, enables the computer to execute the method of any one of claims 1 to 11, or the method of any one of claims 12 to 24, or the method of claim 25.