Search

EP-4351116-B1 - WINDOW INTERACTION METHOD AND ELECTRONIC DEVICE

EP4351116B1EP 4351116 B1EP4351116 B1EP 4351116B1EP-4351116-B1

Inventors

  • YAN, Chaojie
  • LIU, JUNFENG

Dates

Publication Date
20260506
Application Date
20230106

Claims (10)

  1. A window interaction method, applied to an electronic device, the electronic device comprises a first display screen, and the method comprises: displaying, by the electronic device, a first interface by using the first display screen, wherein the first interface comprises a first window (1001), a second window (1002), and a first slide bar configured to resize the first window and the second window; and content displayed in the first window (1001) and content displayed in the second window (1002) both belong to a first application; and displaying, by the electronic device, a second interface in response to a first operation on the first window (1001) or the second window (1002), wherein the second interface comprises a first floating window (1004), the first window (1001), the second window (1002), and the first slide bar (1003); and a width of the first floating window (1004) is less than that of the first display screen, and the first floating window (1004) satisfies a first state, wherein the second interface further comprises a first region, the first region is a region in the second interface other than the first floating window (1004), and the method further comprises: displaying, by the electronic device, a third interface in response to an operation of sliding the first slide bar (1003) in the first region in the second interface; the third interface comprises a second floating window, the second floating window satisfies a second state; and the second state is different from or the same as the first state, wherein the first state comprises any one of a half-screen state, a full-screen state, and a bottom state; and the second state is the bottom state.
  2. The method according to claim 1, further comprising: displaying, by the electronic device, a fourth interface in response to a third operation on the electronic device, wherein the fourth interface comprises a third floating window; and a width of the third floating window is less than that of the first display screen, and the third floating window satisfies the first state.
  3. The method according to claim 2, wherein the fourth interface is an interface of the electronic device in a landscape state when the second interface is an interface of the electronic device in a portrait state.
  4. The method according to claim 1, wherein the electronic device further comprises a second display screen, and the method further comprises: displaying, by the electronic device in response to a fourth operation on the electronic device, a fifth interface by using the second display screen, wherein the fifth interface comprises a fourth floating window (1104) and the second window; and a width of the fourth floating window (1104) is the same as that of the second display screen.
  5. The method according to claim 4, wherein the displaying, by the electronic device in response to a fourth operation on the electronic device, a fifth interface by using the second display screen comprises: obtaining, by the electronic device, first data in response to the fourth operation on the electronic device; the first data comprises folding-angle data; and displaying, by the electronic device, the fifth interface by using the second display screen when the electronic device determines that the folding-angle data satisfies a first preset condition.
  6. The method according to claim 1, wherein before the displaying, by the electronic device, a first interface by using the first display screen, the method further comprises: displaying, by the electronic device, a sixth interface by using the first display screen when a preset function of the first application is enabled; content displayed on the sixth interface belong to the first application; and the displaying, by the electronic device, a first interface by using the first display screen comprises: displaying, by the electronic device in response to a fifth operation on the sixth interface, the first interface by using the first display screen.
  7. The method according to claim 1, wherein the displaying, by the electronic device, a second interface in response to a first operation on the first window (501) or the second window (502) comprises: displaying, by the electronic device, a seventh interface in response to the first operation on the first window (501) or the second window (502) ; the seventh interface comprises a first text; displaying, by the electronic device, a first control in response to an operation on the first text; the first control comprises a copy option and a translation option; displaying, by the electronic device, a floating ball control in response to an operation on the copy option; and displaying, by the electronic device, the second interface in response to an operation on the floating ball control.
  8. The method according to claim 1, wherein the displaying, by the electronic device, a first interface by using the first display screen comprises: displaying, by the electronic device, an eighth interface by using the first display screen; the eighth interface comprises a second text; displaying, by the electronic device, a second control in response to an operation on the second text; the second control comprises a copy option and a translation option; and displaying, by the electronic device in response to an operation on the translation option, the first interface by using the first display screen.
  9. An electronic device, wherein the electronic device comprises a memory configured to store a computer program instruction and a processor (110) configured to execute the program instruction, wherein, when the computer program instruction is executed by the processor, the electronic device is triggered to perform the method according to any one of claims 1 to 8.
  10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and the computer program, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 8.

Description

This application claims priority to Chinese Patent Application No. 202210023810.3, filed with the China National Intellectual Property Administration on January 10, 2022 and entitled "WINDOW INTERACTION METHOD AND ELECTRONIC DEVICE", and Chinese Patent Application No. 202210114778.X, filed with the China National Intellectual Property Administration on January 30, 2022 and entitled "WINDOW INTERACTION METHOD AND ELECTRONIC DEVICE". TECHNICAL FIELD This application relates to the field of terminal technologies, and in particular, to a window interaction method and an electronic device. BACKGROUND With the popularization and development of the Internet, people's functional requirements for electronic devices are also becoming more and more diverse. For example, to meet a requirement of a user for using multiple functions, a larger number of electronic devices may support display of floating windows of the electronic devices. For example, the user may trigger display of a floating window corresponding to a translation function by copying a to-be-translated text, and the user may also view translation content through the floating window corresponding to the translation function. However, when the user screen-splits a display interface, it is difficult for the electronic device to adjust the display of the floating window according to a requirement of the user for screen-splitting the interface, thereby affecting user experience. US 2021/096675 A1 relates to UI optimization that enables an application window to be presented in a predictable location when an application is launched. In particular, the foldable computing device can receive a request to launch an application. The foldable computing device can then launch the application such that an application window displayed by the application is presented in the selected display region. WO 2021/227770 A1 relates to application window display method and electronic device, which can facilitate users to exit the split-screen state, and when the user needs to use multiple applications simultaneously again later, they can open them without switching applications or interrupting the current application task. CN 107 153 541 B relates to the field of computer technology, and in particular to a browsing interaction processing method and device. The method comprises: when a trigger operation on a floating marker displayed in a floating manner in a display interface of an electronic device is detected, displaying a floating menu corresponding to the floating marker, the floating menu comprising a translation menu item; when a trigger operation on the translation menu item is detected, obtaining a first text content selected in the display interface; and translating the first text content into text content in a target language. SUMMARY Embodiments of this application provide a window interaction method and an electronic device, so that the electronic device can appropriately display a floating window according to a requirement of a user for screen-splitting a display screen, thereby enhancing the user's experience of using the floating window. The invention is set out in the appended claims. In a first aspect, an embodiment of this application provides a window interaction method, applied to an electronic device, the electronic device includes a first display screen, and the method includes: The electronic device displays a first interface by using the first display screen; the first interface includes a first window, a second window, and a first slide bar configured to resize the first window and the second window; and content displayed in the first window and content displayed in the second window both belong to a first application; and the electronic device displays a second interface in response to a first operation on the first window or the second window; the second interface includes a first floating window, the first window, the second window, and the first slide bar; and a width of the first floating window is less than that of the first display screen, and the first floating window satisfies a first state. In this way, the electronic device can appropriately display a floating window according to a requirement of a user for screen-splitting a display screen, thereby enhancing the user's experience of using the floating window. The second interface further includes a first region, the first region is a region in the second interface other than the first floating window, and the method further includes: The electronic device displays a third interface in response to an operation of sliding the first slide bar in the first region in the second interface on the first region; the third interface includes a second floating window, the second floating window satisfies a second state; and the second state is different from or the same as the first state. In this way, the electronic device can realize non-modality of the floating window, thereby enhancing the user's exper