WO2023131314A9 - 窗口交互方法和电子设备 - Google Patents

窗口交互方法和电子设备 Download PDF

Info

Publication number
WO2023131314A9
WO2023131314A9 PCT/CN2023/071086 CN2023071086W WO2023131314A9 WO 2023131314 A9 WO2023131314 A9 WO 2023131314A9 CN 2023071086 W CN2023071086 W CN 2023071086W WO 2023131314 A9 WO2023131314 A9 WO 2023131314A9
Authority
WO
WIPO (PCT)
Prior art keywords
window
floating ball
electronic device
floating
display
Prior art date
Application number
PCT/CN2023/071086
Other languages
English (en)
French (fr)
Other versions
WO2023131314A1 (zh
Inventor
闫超杰
刘俊丰
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210114776.0A external-priority patent/CN116456018A/zh
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023131314A1 publication Critical patent/WO2023131314A1/zh
Publication of WO2023131314A9 publication Critical patent/WO2023131314A9/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Definitions

  • the present application relates to the field of terminal technology, and in particular, to a window interaction method and electronic device.
  • Embodiments of the present application provide a window interaction method and an electronic device, so that when multiple windows overlap, the electronic device can set an appropriate display mode for the window to avoid conflicts between multiple windows, thereby enabling the user to use the windows normally. .
  • embodiments of the present application provide a window interaction method, applied to an electronic device.
  • the method includes: the electronic device displays a first interface of a first application; the first interface includes a first floating ball control; in response to the first In the first operation in the interface, the electronic device displays the first floating window; when the position of the first floating window does not overlap with the position of the first floating ball control, the electronic device continues to display the first floating ball control and the first floating window.
  • the electronic device can set an appropriate display mode for the windows to avoid conflicts between multiple windows, thereby enabling the user to use the windows normally.
  • the method further includes: when the position of the first floating window overlaps the position of the first floating ball control, the electronic device cancels display of the first floating ball control. In this way, the electronic device can avoid conflicts between multiple windows by canceling the display of the floating ball when the positions of multiple windows overlap.
  • the method further includes: in response to the operation of canceling the display of the first floating window, the electronic device cancels the display of the floating window; the electronic device determines the time from canceling the display of the first floating ball control to canceling the display of the first floating window. Duration; when the duration does not exceed the first time threshold, the electronic device displays the first floating ball control. In this way, users can avoid displaying the floating window for a long time when they need to display the floating ball later.
  • the first floating window includes a control for opening the second application
  • the method further includes: in response to operating the control for opening the second application, the electronic device displays a second interface;
  • the second interface includes a second floating window corresponding to the second application. In this way, the user can also open the second application by triggering the second floating window when he needs to use the second application.
  • the position of the first floating window and the position of the first floating ball control do not overlap, including: the position of the first floating window and the position of the first floating ball control are respectively located on both sides of the screen of the electronic device. side.
  • the position of the first floating window does not overlap with the position of the first floating ball control, including: the position of the first floating window and the position of the first floating ball control are both located on the same screen of the electronic device. side, and the position of the first floating ball control does not overlap with the position of the first area corresponding to the first floating window; the first area includes the first floating window.
  • the electronic device can set the position of the floating window and the floating ball according to its own needs to avoid conflicts.
  • the size of the first area is related to the number of application controls included in the first floating window.
  • the electronic device in response to the first operation in the first interface, displays the first floating window, including: in response to the first operation in the first interface, when the electronic device determines the first operation When the location is outside the second area corresponding to the first floating ball control, the electronic device displays the first floating window; the second area includes the first floating ball control.
  • the method further includes: in response to the second operation in the first interface, when the electronic device determines that the location of the second operation is within the second area, the electronic device continues to display the first floating ball. controls. In this way, users can trigger the floating window farther away from the floating ball when they need to trigger it according to their own needs, thereby increasing the experience of using the floating window and the floating ball.
  • the electronic device displays the first interface of the first application, including: the electronic device displays the third interface of the first application; the third interface includes the first text; responding to the third interface of the first text
  • the electronic device displays the first control; the first control includes a copy option and a translation option; in response to the fourth operation of the copy option, the electronic device displays a third floating ball control; when the electronic device fails to operate within the first time threshold.
  • the electronic device cancels display of the third floating ball control and displays the first interface of the first application. In this way, users can easily call up the floating ball by copying text.
  • embodiments of the present application provide a window interaction method and a display unit for displaying a first interface of a first application; the first interface includes a first floating ball control; in response to a first click in the first interface Operation: the display unit is used to display the first floating window; when the position of the first floating window does not overlap with the position of the first floating ball control, the display unit is used to continue to display the first floating ball control and the first floating window.
  • the processing unit when the position of the first floating window overlaps the position of the first floating ball control, the processing unit is configured to cancel display of the first floating ball control.
  • the processing unit in response to the operation of canceling the display of the first floating window, is used to cancel the display of the floating window; the processing unit is also used to determine whether to cancel the display of the first floating ball control and to cancel the display of the first floating ball control.
  • the duration of the floating window when the duration does not exceed the first time threshold, the display unit is used to display the first floating ball control.
  • the first floating window includes a control for opening the second application, and in response to the operation of the control for opening the second application, the display unit is configured to display the second interface;
  • the second interface includes a second floating window corresponding to the second application.
  • the position of the first floating window and the position of the first floating ball control do not overlap, including: the position of the first floating window and the position of the first floating ball control are respectively located on both sides of the screen of the electronic device. side.
  • the position of the first floating window does not overlap with the position of the first floating ball control, including: the position of the first floating window and the position of the first floating ball control are both located on the same screen of the electronic device. side, and the position of the first floating ball control does not overlap with the position of the first area corresponding to the first floating window; the first area includes the first floating window.
  • the size of the first area is related to the number of application controls included in the first floating window.
  • the display unit in response to the first operation in the first interface, when the electronic device determines that the location of the first operation is outside the second area corresponding to the first floating ball control, the display unit is configured to The first floating window is displayed; the second area includes the first floating ball control.
  • the display unit in response to the second operation in the first interface, when the electronic device determines that the location of the second operation is within the second area, the display unit is configured to continue to display the first floating ball control. .
  • the display unit is configured to display a third interface of the first application; the third interface includes the first text; in response to the third operation on the first text, the display unit is configured to display the third interface of the first application.
  • the operation processing unit of the three floating ball control is used to cancel the display of the third floating ball control and display the first interface of the first application.
  • the second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • inventions of the present application provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to execute any method of the first aspect.
  • the third aspect and any implementation manner of the third aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the third aspect and any implementation manner of the third aspect please refer to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • inventions of the present application provide a computer program product.
  • the computer program product includes a computer program that, when run on a computer, causes the computer to execute any method of the first aspect.
  • the fourth aspect and any implementation manner of the fourth aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the fourth aspect and any implementation manner of the fourth aspect please refer to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory that is not packaged with the processor.
  • Figure 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the software architecture of the electronic device provided by the embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a window manager provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of an interface for displaying a suspended ball provided by an embodiment of the present application.
  • Figure 5 is a schematic interface diagram of same-side window interaction provided in the embodiment of the present application.
  • Figure 6 is a schematic interface diagram of another same-side window interaction provided in the embodiment of the present application.
  • Figure 7 is a schematic diagram of an interface for interacting with different side windows provided in the embodiment of the present application.
  • Figure 8 is a schematic diagram of a conflict area provided by an embodiment of the present application.
  • Figure 9 is a schematic diagram of an interface for canceling the display of smart multi-windows provided by an embodiment of the present application.
  • Figure 10 is a schematic diagram of an area where smart multi-windows cannot be triggered according to an embodiment of the present application
  • Figure 11 is a schematic flowchart of a window interaction method provided by an embodiment of the present application.
  • Figure 12 is a schematic flow chart of another window interaction method provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of a window interaction device provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects.
  • the first value and the second value are only used to distinguish different values, and their order is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not limit the number and execution order.
  • At least one refers to one or more, and “plurality” refers to two or more.
  • “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an “or” relationship.
  • “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • At least one of a, b, or c can represent: 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.
  • the locations of the multiple windows may overlap in the interface, causing multiple windows to conflict during display.
  • the multiple windows are suspended balls and smart multi-windows respectively.
  • This example does not constitute a limitation on the embodiments of the present application.
  • the position of the floating ball may be different from the smart multi-window. The positions overlap, so that the electronic device can overlap and display the floating ball and the smart multi-window, and the floating ball can be displayed on top of the smart multi-window in a semi-transparent form.
  • embodiments of the present application provide a window interaction method, so that when multiple windows overlap, the electronic device can set an appropriate display mode for the window to avoid conflicts between multiple windows, thereby achieving normal user interaction with the windows. use.
  • the above-mentioned electronic equipment can also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT), etc.
  • Electronic devices can be mobile phones with window display functions, smart TVs, wearable devices, tablets, computers with wireless transceiver functions, virtual reality (VR) electronic devices, augmented reality (AR) Electronic equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid, Wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form used by the electronic device.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • 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, and a battery 142.
  • Antenna 1 antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an angle chain 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, etc. .
  • the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic equipment.
  • the electronic device may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the processor 110 is configured to execute the ambient light detection method in the embodiment of the present application.
  • the controller can be the nerve center and command center of the electronic device.
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • the electronic device implements display functions through the GPU, display screen 194, and application processor.
  • the GPU is an image processing microprocessor connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use organic light-emitting diode (OLED).
  • OLED organic light-emitting diode
  • the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • Software systems of electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture.
  • the embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
  • FIG. 2 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application.
  • electronic devices 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 abstraction layer ( hardware abstract layer (HAL, not shown in the figure) and kernel layer.
  • application layer applications
  • application framework layer application framework
  • Android runtime Android runtime
  • system library hardware abstraction layer
  • hardware abstract layer HAL, not shown in the figure
  • kernel layer kernel layer
  • the application layer can include a series of application packages.
  • the application layer may include applications such as settings, calendars, maps, and alarm clocks (applications may be referred to as applications for short), and this embodiment of the present application does not impose any limitation on this.
  • the application layer may also include a situation awareness module, a business logic processing module, a business presentation module, etc.
  • the situation awareness module, business logic processing module and business presentation module can be independent APPs, or can be integrated in different APPs, or can be integrated in the same APP, which is not limited by this application.
  • the situation awareness module runs permanently or in a low-power mode and has the ability to perceive external facts or environment.
  • the situation awareness module can detect related events and obtain the status of events from other applications or application framework layers or system layers or kernel layers in the application layer through APIs (application programming interfaces), such as detecting Bluetooth connections, network connections, and monitoring users. SMS, custom timers, etc.
  • APIs application programming interfaces
  • the main function of the context awareness module is to monitor whether there is a copy event on the clipboard. When a copy event is detected on the clipboard, it notifies the business logic processing module of the copy event.
  • 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.
  • APP source application
  • the clipboard content recognizes that the cut content is copied from a specific application through the context awareness module.
  • the situation awareness module can also detect whether there is an operation to exit the current page. When an operation to exit the current page is detected, the business logic processing module is notified.
  • the business logic processing module (such as the calculation engine) has business logic processing capabilities and is used to realize the display and disappearance logic of various floating balls or floating windows. For example, the business logic processing module receives the copy event triggered by the user and the clipboard content sent by the situation awareness module, determines whether the translation conditions are met, and thereby determines whether to display the floating ball. The business logic processing module can also determine whether to display the floating window and display the translation results in the floating window based on the click event of the floating ball triggered by the user and the content of the translation result 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 floating ball or floating window on the electronic device based on the disappearance event of the floating ball or floating window triggered by the user.
  • the business logic processing module can also identify copied text or text extracted by OCR technology. For example, it can be identified that the text is at least one of the types of schedule, link to be shared, Taobao password, website address, etc. For another example, the language of the text can also be identified.
  • the business presentation module can include YOYO suggestion management module and smart multi-window management module.
  • YOYO proposes a management module to display or disappear the floating ball or floating window on the screen of the mobile phone.
  • the business presentation module receives a command to display a 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.
  • the YOYO suggestion management module can also present the text copied by the user and its corresponding translation results in the floating window.
  • YOYO recommends that the management module can also notify the window manager to display or disappear the floating ball or floating window on the electronic device based on the event triggered by the user that the floating ball is displayed or the floating window disappears.
  • the smart multi-window management module is used to notify the window manager to display or disappear the smart multi-window on the electronic device according to the display or disappearance of the smart multi-window event triggered by the user.
  • the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, etc., an activity manager, a clipboard manager, etc. This embodiment of the present application does not do this. Any restrictions.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Clipboard manager is used to manage the clipboard.
  • the clipboard is a temporary storage area used to temporarily store exchange information.
  • the activity manager is used to manage the life cycle of each application and the navigation rollback function. It is responsible for the creation of Android's main thread and the maintenance of the life cycle of each application.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • the system library can include multiple functional modules.
  • surface manager surface manager
  • media libraries Media Libraries
  • 3D graphics processing libraries for example: OpenGL ES
  • 2D graphics engines for example: SGL
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • FIG. 3 is a schematic structural diagram of a window manager provided by an embodiment of the present application.
  • the window manager may include: application windows, sub-windows (not shown) and system windows.
  • 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 in the reading application, or the application window of a translation application, which is used to display the content of the translation application, or the memo application.
  • the application window is used to display the content within the Notes application.
  • the interface of each application is composed of activities, and activities are composed of views. View is the existence form of the window, and the window is the carrier of the view.
  • the application process is notified that any activity belongs to the application process. That is to say, for example, the reading application corresponds to one 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 above the base window.
  • the child window is attached to the parent window, that is, it cannot exist independently and needs to rely on an application, such as application input method window, application prompt box window, etc.
  • an application such as application input method window, application prompt box window, etc.
  • the child window is also invisible.
  • the system window is different from the application window and does not need to correspond to the Activity. Unlike child windows, there is no need for a parent window.
  • the system window does not belong to any application. It is created by the system and belongs only to the system itself. It often requires declaring permissions to create, such as shutdown dialog window, status bar window, search bar window, input method window, warning dialog box, and system volume bar. wait.
  • a floating ball and a floating window are provided in the system window. It can be seen from the above analysis that the floating ball and floating window are system windows and cannot be set in the application window.
  • 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 the application window is 1 ⁇ 99, the range of the sub-window is 1001 ⁇ 1999, and the system window is (2000 ⁇ 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 dynamically apply for permissions.
  • the Z-axis is the concept of the hierarchy of Android windows. The larger the Z-axis, the window is at the top.
  • the floating ball and floating window set in the system window do not have the function of activity.
  • additional sliding operations, sliding conflicts, etc. need to be set inside the system window, and Determine the focus of the response window based on the user's click and other operations. The details will be more clear based on the following descriptions.
  • the electronic device is a mobile phone
  • the multiple windows are: floating ball and smart multi-window as an example to illustrate the window interaction method provided by the embodiment of this application. This example does not constitute an embodiment of this application. restrictions.
  • FIG. 4 is a schematic diagram of an interface for displaying a suspended ball provided by an embodiment of the present application.
  • the setting interface of the mobile phone may be provided with an option switch such as "copy-triggered translation".
  • an option switch such as "copy-triggered translation”.
  • 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
  • the translation function can be triggered and the floating ball corresponding to the translation function can be displayed; further, when the user triggers the floating ball, the translation result can be displayed.
  • the mobile phone When the mobile phone receives the operation of the user to open a news page in the news application, the mobile phone can display an interface as shown in (a) in Figure 4, and a paragraph of English can be displayed in the interface.
  • the mobile phone can pop up the option bar 401.
  • the option bar 401 can include, for example, copy, and Search and other operation options.
  • the mobile phone when the mobile phone receives the user's operation to trigger the "copy” option in the option bar 401 corresponding to the word "patent", the mobile phone can recognize the user's intention and display the following: The interface shown in (b) in Figure 4.
  • the interface may include a floating ball logo 402.
  • the floating ball logo 402 may be used to indicate that the mobile phone is recognizing the user's intention, and the user's intention recognized by the mobile phone may be translation. . It can be understood that during the recognition process of the mobile phone, the user's intention can be recognized without the user's operation. For example, the user does not need to click on any content on the page in (b) in Figure 4.
  • the mobile phone when the mobile phone recognizes that the user's intention is to translate the word "patent", it can display an interface as shown in (c) in Figure 4.
  • the interface can include: a floating ball 403 in a first state, the first The floating ball 403 in one state is used to provide the user with an entrance to display the translation results.
  • the mobile phone when the mobile phone does not receive the user's trigger for the floating ball 403 in the first state within the preset time, the mobile phone can determine that the user does not need to perform a translation operation at this time. , and the interface shown in (d) in Figure 4 is displayed. As shown in (d) of Figure 4, the interface may include the suspended ball 404 in the second state.
  • the preset time may be 5 seconds or other values, which is not limited in the embodiments of the present application.
  • the floating ball 404 in the second state in the interface shown in (d) of Figure 4 can be displayed on the edge of the right screen of the mobile phone by default, and the floating window in the second state can be displayed according to the user's
  • the drag operation is displayed at other positions on the edge of the mobile phone, which is not limited in the embodiments of the present application.
  • the mobile phone can realize the second state shown in (d) in Figure 4 according to the user's copy operation. Suspended ball.
  • suspended ball in the second state will be simply referred to as a suspended ball for description below.
  • the mobile phone can adjust the above-mentioned floating ball and the smart multi-window based on the embodiment corresponding to Figure 5 Conflict situations are displayed.
  • FIG. 5 is a schematic interface diagram of same-side window interaction provided in the embodiment of the present application.
  • the mobile phone can display as shown in Figure 5
  • the interface may include: a floating ball 501 and a logo 502.
  • the logo 502 is used to indicate that the mobile phone is about to display smart multi-windows.
  • the mobile phone when the mobile phone receives the user's continuous inward sliding operation, the mobile phone can determine that the position of the floating ball 501 overlaps with the position of the smart multi-window, and display The interface shown in (c) in Figure 5.
  • the interface may include: a smart multi-window 503.
  • the smart multi-window 503 may include: an email application control 504, a memo application control, a video application control, Controls for gallery applications, controls for adding or deleting applications in smart multi-windows, etc.
  • the mobile phone can cancel the display of the floating ball 501 and display the smart multi-window 503.
  • the mobile phone when the mobile phone receives the user's operation to trigger the control 504 of the email application in the smart multi-window 503, the mobile phone can display ((c) in Figure 5 d) interface shown.
  • the interface may include: a floating window 505 corresponding to the mail application.
  • the floating window 505 may display one or more of the following: for displaying the floating window 505 in full screen.
  • Control a control for displaying the floating window 505 in the form of a floating ball, a control for closing the floating window 505, a drag bar for moving the floating window 505, a text mark for the inbox, and a search bar for searching emails , and the email sent by the shopping network on January 18, 2022, or the email sent by Patent on January 10, 2022, etc.
  • the mobile phone when the mobile phone receives the user's control to trigger the application in the smart multi-window 503, the mobile phone can cancel the display of the floating ball 501 and the smart multi-window 503.
  • the mobile phone when the user opens the floating ball and triggers the smart multi-window, the mobile phone can display the smart multi-window. If the position of the floating ball overlaps the position of the smart multi-window, the mobile phone cancels the suspension. The display of the ball avoids the conflict between the floating ball and the smart multi-window, allowing users to achieve normal use of the smart multi-window.
  • the mobile phone can use the corresponding embodiment of FIG. 6 to monitor the above-mentioned floating ball and the smart multi-window. Display without conflicting windows.
  • FIG. 6 is a schematic interface diagram of another same-side window interaction provided in the embodiment of the present application.
  • the mobile phone can display the interface shown in (b) in Figure 6.
  • the interface may include: a floating ball 601 and a logo 602.
  • the logo 602 is used to indicate that the mobile phone is about to display smart multi-windows.
  • the mobile phone when the mobile phone receives the user's continuous inward sliding operation, the mobile phone can determine that the position of the floating ball 601 and the position of the smart multi-window will not overlap. And the interface shown in (c) in Figure 6 is displayed. As shown in (c) of Figure 6, the interface may include: a floating ball 601 and a smart multi-window 603. For the content that can be displayed in the smart multi-window 603, please refer to the description of the smart multi-window 503 in the corresponding embodiment of FIG. 5, which will not be described again here.
  • the mobile phone when the user triggers the smart multi-window while opening the floating ball, the mobile phone can display the smart multi-window. If the position of the floating ball does not overlap with the position of the smart multi-window, the mobile phone can Displaying the floating ball allows users to achieve normal use of the floating ball and smart multi-windows.
  • FIG. 7 is a schematic diagram of an interface for interacting with different side windows provided in the embodiment of the present application.
  • the mobile phone when the mobile phone receives the user's operation of sliding inward along the right edge of the mobile phone, the mobile phone can display as shown in Figure 7
  • the logo 702 is used to indicate that the mobile phone is about to display smart multi-windows.
  • the mobile phone when the mobile phone receives the user's continuous inward sliding operation, the mobile phone can determine that the position of the floating ball 701 and the position of the smart multi-window will not overlap. And the interface shown in (c) in Figure 7 is displayed. As shown in (c) of Figure 7, the interface may include: a floating ball 701 and a smart multi-window 703.
  • the content that can be displayed in the smart multi-window 703 please refer to the description of the smart multi-window 503 in the corresponding embodiment of FIG. 5, which will not be described again here.
  • the mobile phone when the user triggers the smart multi-window while opening the floating ball, the mobile phone can display the smart multi-window. If the position of the floating ball does not overlap with the position of the smart multi-window, the mobile phone can Displaying the floating ball allows users to achieve normal use of smart multi-windows and floating balls.
  • the conflict area between the floating window and the smart multi-window can refer to the description in the embodiment corresponding to FIG. 8 .
  • FIG. 8 is a schematic diagram of a first conflict area provided by an embodiment of the present application.
  • the mobile phone can determine The floating ball 801 does not overlap with the smart multi-window, so the mobile phone can display the smart multi-window 802 and the floating ball 801 at the same time.
  • the mobile phone can display the floating ball 801 and the smart multi-window 802 at the same time.
  • the area where the dotted frame shown in (a) in Figure 8 is located can be the area corresponding to when the mobile phone takes 10 pixels on each of the upper and lower sides of the smart multi-window 802.
  • the mobile phone when the mobile phone receives that the user adds an application to the smart multi-window 802, for example, through the smart multi-window 802 for adding an application to the smart multi-window 802, Control 803 for adding or deleting applications.
  • the mobile phone can display an interface as shown in (b) in Figure 8.
  • the interface shown in (b) in Figure 8 can include smart multi-functions. Window 804.
  • the area where the dotted box shown in (b) of Figure 8 is located is also called the first The conflict area
  • the area where the dotted frame shown in (b) of Figure 8 is located can be the area corresponding to when the mobile phone takes 10 pixels on each of the upper and lower sides of the smart multi-window 804.
  • the mobile phone can At the same time, a floating ball 801 located on the left edge of the mobile phone is displayed, and a smart multi-window 804 located on the right edge of the mobile phone is displayed.
  • the size and location of the smart multi-window can be related to the number of applications in the smart multi-window.
  • the location of the smart multi-window can be as shown in Figure 8
  • the first conflict area with the suspended ball 801 may be a certain area around the smart multi-window 802, for example, it may be the area where the dotted box shown in (a) in Figure 8 is located.
  • the location of the smart multi-windows may be the area where the smart multi-windows 802 shown in (b) of Figure 8 are located.
  • the first conflict area with the suspended ball 801 may be a certain area around the smart multi-window 804, for example, it may be the area where the dotted box shown in (b) of Figure 8 is located.
  • the mobile phone in the case where the mobile phone displays the smart multi-window due to the conflict between the floating ball and the smart multi-window and cancels the display of the floating ball, when the mobile phone receives When the user triggers other areas except the smart multi-window, the mobile phone can cancel the display of the smart multi-window, and determine whether to display the floating ball based on the time from when the floating ball is canceled to the smart multi-window.
  • FIG. 9 is a schematic diagram of an interface for canceling the display of smart multi-windows provided by an embodiment of the present application.
  • the mobile phone displays the smart multi-window and the mobile phone cancels the display of the floating ball.
  • the mobile phone displays the interface shown in (a) in Figure 9
  • the mobile phone receives the user triggering the
  • the mobile phone can cancel the display of the smart multi-window, and the mobile phone can calculate the time from the suspension ball canceling the display to the smart multi-window canceling the display.
  • the mobile phone when the mobile phone determines that the time between the cancellation of the display of the floating ball and the cancellation of the display of the smart multi-window exceeds the time threshold, the mobile phone cancels the display of the floating ball while canceling the display of the smart multi-window.
  • the mobile phone can cancel the display of the floating ball as shown in Figure 9
  • the interface shown in (a) is switched to the interface shown in (b) in Figure 9 . It can be understood that when the time from the suspension ball being canceled to the smart multi-window canceling the display exceeds the time threshold, it can be understood that the user no longer needs to use the floating ball, so the mobile phone can cancel the display of the floating ball.
  • the mobile phone when the mobile phone determines that the time from the suspension ball to the smart multi-window cancellation does not exceed the time threshold, the mobile phone can display the floating ball and cancel the smart multi-window display.
  • the mobile phone can use (a in Figure 9 ) is switched to the interface shown in (c) of FIG. 9 , which includes a suspended ball.
  • the user can avoid the long-term display of the smart multi-window when the user needs to display the floating ball.
  • cancel the display of floating ball When displaying smart multi-window, cancel the display of floating ball.
  • FIG. 10 is a schematic diagram of an area where smart multi-windows cannot be triggered according to an embodiment of the present application.
  • the mobile phone when the mobile phone receives that the user is in a certain area around the floating ball 1001 (the dotted area shown in (a) of Figure 10, or (in the second conflict area), when sliding inward along the edge of the mobile phone screen, the mobile phone can display an interface as shown in (b) in Figure 10.
  • the interface shown in (b) in Figure 10 can include Suspended ball 1001.
  • the mobile phone when the mobile phone receives the user's triggering operation of sliding inward along the edge of the mobile phone screen within the dotted line area shown in (a) in Figure 10, the mobile phone can default the triggering operation within the dotted line area to The user's trigger operation on the floating ball 1001.
  • the mobile phone when the mobile phone receives the user's operation of sliding inward along the edge of the mobile phone screen outside a certain area around the floating ball 1001, the mobile phone can display an interface as shown in (c) in Figure 10, which is (c) in Figure 10.
  • the interface shown in c) may include smart multi-window 1002.
  • the mobile phone when the mobile phone receives the user's triggering operation of sliding inward along the edge of the mobile phone screen outside the dotted line area shown in (a) of Figure 10, the mobile phone can perform corresponding functions according to the triggering operation.
  • the smart multi-window when the user needs to display the smart multi-window, the smart multi-window can be triggered outside the second conflict area corresponding to the floating ball to avoid the second conflict area due to The overlap with the position when smart multi-window is triggered causes the mobile phone to be unable to display smart multi-window.
  • FIG. 11 is a schematic flowchart of a window interaction method provided by an embodiment of the present application.
  • the software architecture of the electronic device may include multiple layers, such as an application layer, an application framework layer, etc.; the application layer may include a business presentation module, and the application framework layer may A window manager may be included; the service presentation module may include: a YOYO suggestion management module for managing the display of the floating ball, and a smart multi-window management module for managing the display of smart multi-windows.
  • the window interaction method may include the following steps:
  • the user triggers a copy event.
  • the copy event may be an event that copies the text to be translated and triggers the display of the floating ball corresponding to the translation function.
  • YOYO suggests that the management module sends a message instructing the display of the floating ball to the window manager.
  • YOYO recommends that the management module calls the display to display the floating ball.
  • the user triggers an event to display smart multi-windows.
  • the event of displaying smart multi-windows can trigger an event of smart multi-window display by the user sliding inward along the edge of the screen.
  • the window manager In response to the user triggering an event for displaying smart multi-windows, the window manager sends a message for instructing display of smart multi-windows to the smart multi-window management module.
  • the smart multi-window management module calls the display to display the smart multi-window.
  • the smart multi-window management module sends the location information of the smart multi-window to the YOYO suggestion management module.
  • the smart multi-window management module when it receives a message sent by the window manager for displaying smart multi-windows, it can obtain the location information of the smart multi-windows and send the location information of the smart multi-windows to YOYO suggestion management module.
  • the position information of the smart multi-window can be: a set of coordinate points corresponding to the location of the smart multi-window.
  • YOYO recommends that the management module determines whether the smart multi-window conflicts with the floating ball based on the position information of the smart multi-window and the position information of the floating ball.
  • the electronic device when the YOYO suggestion management module determines that the smart multi-window does not conflict with the floating ball based on the position information of the smart multi-window and the position information of the floating ball, the electronic device maintains the display of the floating ball in the step shown in S1103. , and maintain the smart multi-window in the step shown in S1106; or, when the YOYO suggestion management module determines that the smart multi-window conflicts with the floating ball based on the position information of the smart multi-window and the position information of the floating ball, the module in the electronic device The steps shown in S1109-S1111 can be performed.
  • the management module can obtain the position information of the floating ball.
  • the position information of the floating ball can be: a set of coordinate points corresponding to the position of the floating ball.
  • YOYO suggests that the management module can obtain the position information of the smart multi-window and extend it by 10 pixels along the upper and lower sides of the smart multi-window to obtain the extended position information of the smart multi-window.
  • the position information of the smart multi-window can be: a set of coordinate points where the extended smart multi-window is located.
  • YOYO suggests that the management module determines the set of coordinate points where the extended smart multi-window is located, and whether the set of coordinate points corresponding to the location of the suspended ball is duplicated.
  • the management module determines that there is duplication between the two sets of coordinate points coordinate point, it can be determined that the smart multi-window conflicts with the floating ball; or, when the YOYO suggestion management module determines whether there are duplicate coordinate points between the two coordinate point sets, it can be determined that the smart multi-window does not conflict with the floating ball.
  • the window manager when the user adjusts the number of applications in the smart multi-window, causing the location information of the smart multi-window to change, in response to the user's operation of adjusting the number of applications in the smart multi-window, the window manager can send a request to the smart multi-window.
  • the management module sends a message for updating the smart multi-window, and then the smart multi-window management module can re-acquire the current location information of the smart multi-window, and send the updated location information to the YOYO suggestion management module, so that the YOYO suggestion management module can re-acquire the location information of the current smart multi-window. Execute the steps shown in S1108.
  • the YOYO suggestion management module sends a message to the window manager to instruct the user to cancel the display of the floating ball.
  • the window manager sends a message instructing to cancel the display of the floating ball to the YOYO suggestion management module.
  • the mobile phone when the mobile phone displays the smart multi-window due to the conflict between the floating ball and the smart multi-window and cancels the display of the floating ball, when the mobile phone receives When the user triggers an area other than the smart multi-window, the mobile phone can cancel the display of the smart multi-window, and determine whether to display the floating ball based on the time from when the floating ball is canceled to the smart multi-window.
  • S1111, YOYO suggests that the management module starts the timer when canceling the display of the floating ball.
  • the event of canceling the display of the smart multi-window can be a user's trigger operation for areas other than the smart multi-window, etc. This is not limited in the embodiments of the present application.
  • the window manager sends a message to the smart multi-window management module for instructing to cancel the display of the smart multi-window.
  • the smart multi-window management module sends a message instructing to cancel the display of the smart multi-window to the YOYO suggestion management module.
  • YOYO recommends that the management module determines whether to display the floating ball based on the time from when the floating ball is canceled to when the smart multi-window is canceled.
  • the YOYO suggestion management module determines that the time between the cancellation of the display of the floating ball and the cancellation of the display of the smart multi-window does not exceed the time threshold, the YOYO suggestion determines to display the floating ball, and then the module in the electronic device can execute S1116-S1118. Steps; or, when the YOYO suggestion management module determines that the time between the cancellation of the display of the floating ball and the cancellation of the display of the smart multi-window exceeds the time threshold, the YOYO suggestion management module determines to cancel the display of the floating ball, and then the YOYO suggestion management module can perform the steps shown in S1119.
  • the YOYO suggestion management module sends a message to the window manager to instruct the display of the floating ball.
  • the window manager sends a message instructing the display of the floating ball to the YOYO suggestion management module.
  • YOYO recommends that the management module calls the display to display the floating ball.
  • YOYO suggests that the management module sends a message to the window manager to instruct the user to cancel the display of the floating ball.
  • the electronic device can avoid conflicts between multiple windows when the positions of the floating ball and the smart multi-window overlap, thereby enabling users to use the windows normally.
  • the YOYO suggestion management module can also determine whether to display the floating ball or the smart multi-window based on the location information where the user triggers the event and the location information of the floating ball.
  • FIG. 12 is a schematic flowchart of another window interaction method provided by an embodiment of the present application.
  • the window interaction method may include the following steps:
  • the trigger event can trigger an event for the user to display the smart multi-window, or it can also trigger an event for the user to move the floating ball, etc.
  • the window manager In response to the user triggering the event, the window manager sends the location information of the triggering event to the YOYO suggestion management module.
  • the location information of the trigger event may be a set of coordinate points corresponding to the trigger event.
  • YOYO recommends that the management module determines whether to display the floating ball or the smart multi-window based on the position information of the floating ball and the location information of the trigger event.
  • the module in the electronic device when the YOYO suggestion management module determines to continue to display the floating ball based on the location information of the floating ball and the location information where the display event is triggered, the module in the electronic device can perform the steps shown in S1204-S1207; or, When the YOYO suggestion management module determines not to continue to display the floating ball based on the location information of the floating ball and the location information where the display event is triggered, the module in the electronic device can perform the steps shown in S1208-S1210.
  • the position information of the floating ball may be: a set of coordinate points corresponding to the position of the floating ball.
  • YOYO suggests that the management module can obtain the position information of the floating ball and extend it 10 pixels outward along the edge of the floating ball to obtain the position information of the extended floating ball.
  • the extended position information of the floating ball It can be: a collection of coordinate points where the extended floating ball is located.
  • the YOYO suggestion management module determines the set of coordinate points where the extended floating ball is located, and whether the set of coordinate points corresponding to the trigger event is repeated. When the YOYO suggestion management module determines that there are duplicate coordinate points between the two sets of coordinate points, , it can be determined that the user triggered the floating ball; or, when the YOYO suggestion management module determines whether there are duplicate coordinate points between the two coordinate point sets, it can be determined that the user triggered the smart multi-window.
  • the YOYO suggestion management module sends a message to the window manager to instruct the display of the floating ball.
  • the window manager updates the floating ball and obtains the updated floating ball.
  • the window management The device can update the position of the suspended ball and get the updated suspended ball.
  • the window manager sends a message for instructing the display of the updated floating ball to the YOYO suggestion management module.
  • YOYO recommends that the management module calls the display to display the updated floating ball.
  • the YOYO suggestion management module sends a message to the window manager indicating that the YOYO suggestion management module has not processed the trigger event.
  • the YOYO suggestion management module determines not to continue to display the floating ball based on the position information of the floating ball and the position information of the triggering display event in S1203, then the YOYO suggestion management module can report that the YOYO suggestion management module has not processed the trigger event. message is sent to the window manager. S1209. The window manager sends a message for instructing display of smart multi-windows to the smart multi-window management module.
  • the window manager may determine that the trigger event needs to be processed by other modules, such as by wisdom.
  • the multi-window management module performs processing, so the window manager can send a message for instructing display of the smart multi-window to the smart multi-window management module.
  • the smart multi-window management module calls the display to display the smart multi-window.
  • users can trigger at a position far away from the floating ball when they need to display the smart multi-window according to their own needs.
  • trigger at a position closer to the floating ball which improves the user experience.
  • FIG. 13 is a schematic structural diagram of a window interaction device provided by an embodiment of the present application.
  • the window interaction device 130 can be used in communication equipment, circuits, hardware components or chips.
  • the window interaction device includes: a display unit 1301, a processing unit 1302 and a communication unit 1303.
  • the display unit 1301 is used to support the step of exiting the display executed by the resource allocation method
  • the processing unit 1302 is used to support the step of information processing performed by the window interactive device
  • the communication unit 1303 is used to support the data sending and data receiving executed by the resource allocation method. step.
  • the communication unit 1303 may be an input or output interface, a pin or a circuit, etc.
  • the window interaction device may also include: a storage unit 1304.
  • the processing unit 1302, the communication unit 1303, and the storage unit 1304 are connected through lines.
  • the storage unit 1304 may include one or more memories, which may be devices used to store programs or data in one or more devices or circuits.
  • the storage unit 1304 may exist independently and be connected to the processing unit 1302 of the window interaction device through a communication line.
  • the storage unit 1304 may also be integrated with the processing unit 1302.
  • the storage unit 1304 may store computer execution instructions for the method in the terminal device, so that the processing unit 1302 executes the method in the above embodiment.
  • the storage unit 1304 may be a register, cache, RAM, etc., and the storage unit 1304 may be integrated with the processing unit 1302.
  • the storage unit 1304 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, and the storage unit 1304 may be independent from the processing unit 1302.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • a wired link e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium can be Any available media that a computer can store or is a data storage device such as a server, data center, or other integrated server that includes one or more available media.
  • available media may include magnetic media (eg, floppy disks, hard disks, or tapes), optical media (eg, Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (for example, solid state disk (solid state disk, SSD)), etc.
  • Computer-readable media may include computer storage media and communication media and may include any medium that can transfer a computer program from one place to another.
  • the storage media can be any target media that can be accessed by the computer.
  • the computer-readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk memory or other disk storage device.
  • any connection line is also properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave
  • Disk and optical disk include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Reproduce data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种窗口交互方法和电子设备,应用于电子设备,方法包括:电子设备显示第一应用的第一界面;第一界面中包括第一悬浮球控件;响应于在第一界面中的第一操作,电子设备显示第一悬浮窗;当第一悬浮窗的位置与第一悬浮球控件的位置不重叠时,电子设备继续显示第一悬浮球控件以及第一悬浮窗。这样,使得电子设备可以在多个窗口发生位置重叠时,为窗口设置合适的显示方式,避免多个窗口发生冲突,进而实现用户对于窗口的正常使用。

Description

窗口交互方法和电子设备
本申请要求于2022年1月10日提交中国专利局、申请号为202210023812.2、申请名称为“窗口交互方法及电子设备”的中国专利申请的优先权,以及要求于2022年01月30日提交中国专利局、申请号为202210114776.0、申请名称为“窗口交互方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种窗口交互方法和电子设备。
背景技术
随着互联网的普及和发展,人们对于电子设备的功能需求也越发多样化。例如,为了满足用户对于多个功能的使用需求,较多电子设备可以支持多个窗口在同一界面中显示。例如,用户可以通过复制待翻译文本触发翻译功能对应的悬浮球的显示,并且,用户也可以通过沿屏幕侧边边缘向内滑动触发智慧多窗(或称停靠(dock)栏、侧边固定栏等)的显示。
通常情况下,当用户在悬浮球显示的过程中,触发智慧多窗时,由于悬浮球所在位置与智慧多窗所在位置重叠,使得悬浮球与智慧多窗发生冲突,进而影响用户对于悬浮球或智慧多窗的正常使用。
发明内容
本申请实施例提供一种窗口交互方法和电子设备,使得电子设备可以在多个窗口发生位置重叠时,为窗口设置合适的显示方式,避免多个窗口发生冲突,进而实现用户对于窗口的正常使用。
第一方面,本申请实施例提供一种窗口交互方法,应用于电子设备,方法包括:电子设备显示第一应用的第一界面;第一界面中包括第一悬浮球控件;响应于在第一界面中的第一操作,电子设备显示第一悬浮窗;当第一悬浮窗的位置与第一悬浮球控件的位置不重叠时,电子设备继续显示第一悬浮球控件以及第一悬浮窗。这样,使得电子设备可以在多个窗口发生位置重叠时,为窗口设置合适的显示方式,避免多个窗口发生冲突,进而实现用户对于窗口的正常使用。
在一种可能的实现方式中,方法还包括:当第一悬浮窗的位置与第一悬浮球控件的位置重叠时,电子设备取消显示第一悬浮球控件。这样,使得电子设备可以在多个窗口发生位置重叠时,通过取消悬浮球显示的方法避免多个窗口发生冲突。
在一种可能的实现方式中,方法还包括:响应于取消显示第一悬浮窗的操作,电子设备取消显示悬浮窗;电子设备确定由取消显示第一悬浮球控件到取消显示第一悬浮窗的时长;当时长未超过第一时间阈值时,电子设备显示第一悬浮球控件。这样,用户可以在需要后续显示悬浮球时,避免长时间显示悬浮窗。
在一种可能的实现方式中,第一悬浮窗中包括用于开启第二应用的控件,方法还 包括:响应于对用于开启第二应用的控件的操作,电子设备显示第二界面;第二界面中包括第二应用对应的第二悬浮窗。这样,用户也可以在需要使用第二应用时,通过触发第二悬浮窗开启第二应用。
在一种可能的实现方式中,第一悬浮窗的位置与第一悬浮球控件的位置不重叠,包括:第一悬浮窗的位置与第一悬浮球控件的位置分别位于电子设备的屏幕的两侧。
在一种可能的实现方式中,第一悬浮窗的位置与第一悬浮球控件的位置不重叠,包括:第一悬浮窗的位置与第一悬浮球控件的位置均位于电子设备的屏幕的同一侧,且第一悬浮球控件的位置与第一悬浮窗对应的第一区域的位置不重叠;第一区域中包含第一悬浮窗。这样,电子设备可以根据自身需求对悬浮窗以及悬浮球的位置进行设置,避免发生冲突。
在一种可能的实现方式中,第一区域的大小与第一悬浮窗中包括的应用控件的数量相关。
在一种可能的实现方式中,响应于在第一界面中的第一操作,电子设备显示第一悬浮窗,包括:响应于在第一界面中的第一操作,当电子设备确定第一操作所在的位置在第一悬浮球控件对应的第二区域外时,电子设备显示第一悬浮窗;第二区域中包括第一悬浮球控件。这样,用户可以根据自身需求在需要对悬浮窗进行触发时,距离悬浮球远一些进行触发,增加使用悬浮窗以及悬浮球的体验。
在一种可能的实现方式中,方法还包括:响应于在第一界面中的第二操作,当电子设备确定第二操作所在的位置在第二区域内时,电子设备继续显示第一悬浮球控件。这样,用户可以根据自身需求在需要对悬浮窗进行触发时,距离悬浮球远一些进行触发,增加使用悬浮窗以及悬浮球的体验。
在一种可能的实现方式中,电子设备显示第一应用的第一界面,包括:电子设备显示第一应用的第三界面;第三界面中包括第一文本;响应于对第一文本的第三操作,电子设备显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的第四操作,电子设备显示第三悬浮球控件;当电子设备在第一时间阈值内未接收到针对第三悬浮球控件的操作时,电子设备取消显示第三悬浮球控件,且显示第一应用的第一界面。这样,用户可以便捷的通过复制文字的方式调出悬浮球。
第二方面,本申请实施例提供一种窗口交互方法,显示单元,用于显示第一应用的第一界面;第一界面中包括第一悬浮球控件;响应于在第一界面中的第一操作,显示单元,用于显示第一悬浮窗;当第一悬浮窗的位置与第一悬浮球控件的位置不重叠时,显示单元,用于继续显示第一悬浮球控件以及第一悬浮窗。
在一种可能的实现方式中,当第一悬浮窗的位置与第一悬浮球控件的位置重叠时,处理单元,用于取消显示第一悬浮球控件。
在一种可能的实现方式中,响应于取消显示第一悬浮窗的操作,处理单元,用于取消显示悬浮窗;处理单元,还用于确定由取消显示第一悬浮球控件到取消显示第一悬浮窗的时长;当时长未超过第一时间阈值时,显示单元,用于显示第一悬浮球控件。
在一种可能的实现方式中,第一悬浮窗中包括用于开启第二应用的控件,所响应于对用于开启第二应用的控件的操作,显示单元,用于显示第二界面;第二界面中包括第二应用对应的第二悬浮窗。
在一种可能的实现方式中,第一悬浮窗的位置与第一悬浮球控件的位置不重叠,包括:第一悬浮窗的位置与第一悬浮球控件的位置分别位于电子设备的屏幕的两侧。
在一种可能的实现方式中,第一悬浮窗的位置与第一悬浮球控件的位置不重叠,包括:第一悬浮窗的位置与第一悬浮球控件的位置均位于电子设备的屏幕的同一侧,且第一悬浮球控件的位置与第一悬浮窗对应的第一区域的位置不重叠;第一区域中包含第一悬浮窗。
在一种可能的实现方式中,第一区域的大小与第一悬浮窗中包括的应用控件的数量相关。
在一种可能的实现方式中,响应于在第一界面中的第一操作,当电子设备确定第一操作所在的位置在第一悬浮球控件对应的第二区域外时,显示单元,用于显示第一悬浮窗;第二区域中包括第一悬浮球控件。
在一种可能的实现方式中,响应于在第一界面中的第二操作,当电子设备确定第二操作所在的位置在第二区域内时,显示单元,用于继续显示第一悬浮球控件。
在一种可能的实现方式中,显示单元,用于显示第一应用的第三界面;第三界面中包括第一文本;响应于对第一文本的第三操作,显示单元,用于显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的第四操作,显示单元,用于显示第三悬浮球控件;当电子设备在第一时间阈值内未接收到针对第三悬浮球控件的操作时处理单元,用于取消显示第三悬浮球控件,且显示第一应用的第一界面。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第三方面以及第三方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第三方面以及第三方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第四方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第四方面以及第四方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第四方面以及第四方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的电子设备的软件架构示意图;
图3为本申请实施例提供的一种窗口管理器的结构示意图;
图4为本申请实施例提供的一种显示悬浮球的界面示意图;
图5为本申请实施例中提供的一种同侧窗口交互的界面示意图;
图6为本申请实施例中提供的另一种同侧窗口交互的界面示意图;
图7为本申请实施例中提供的一种不同侧窗口交互的界面示意图;
图8为本申请实施例提供的一种冲突区域的示意图;
图9为本申请实施例提供的一种取消显示智慧多窗的界面示意图;
图10为本申请实施例提供的一种无法触发智慧多窗的区域示意图;
图11为本申请实施例提供的一种窗口交互方法的流程示意图;
图12为本申请实施例提供的另一种窗口交互方法的流程示意图;
图13为本申请实施例提供的一种窗口交互装置的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。
当用户在同一界面中打开多个窗口时,该多个窗口所在的位置可能在界面中发生重叠,使得多个窗口在显示的过程中发生冲突。
示例性的,以该多个窗口分别为悬浮球以及智慧多窗为例进行示例说明,该示例并不构成对本申请实施例的限定。例如,当用户通过复制待翻译文本触发翻译功能对应的悬浮球的显示的情况下,通过屏幕右侧边缘向内滑动触发智慧多窗的显示时,由于悬浮球所在的位置可能与智慧多窗所在的位置发生重叠,使得电子设备可以重叠显示悬浮球以及智慧多窗,且悬浮球可以以半透明的形式覆盖显示在智慧多窗的上方。
然而,在上述悬浮球覆盖显示在智慧多窗所在区域的界面中,若用户想要触发智慧多窗中的某一应用控件,且该应用控件被悬浮球所覆盖时,则用户无法实现对于该应用控件 的正常触发。
有鉴于此,本申请实施例提供一种窗口交互方法,使得电子设备可以在多个窗口发生位置重叠时,为窗口设置合适的显示方式,避免多个窗口发生冲突,进而实现用户对于窗口的正常使用。
上述电子设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。电子设备可以为具有窗口显示功能的手机(mobile phone)、智能电视、穿戴式设备、平板、带无线收发功能的电脑、虚拟现实(virtual reality,VR)电子设备、增强现实(augmented reality,AR)电子设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对电子设备所采用的具体技术和具体设备形态不做限定。
示例性的,图1为本申请实施例提供的一种电子设备的结构示意图。
如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,角链传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,触摸传感器180K,环境光传感器180L等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。例如,处理器110用于执行本申请实施例中的环境光的检测方法。
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理 的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用有机发光二极管(organic light-emitting diode,OLED)。在一些实施例中,电子设备可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。
示例性的,图2为本申请实施例提供的电子设备的软件架构示意图。
如图2所示,电子设备可以将Android系统分为五层,分别为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Android runtime)和系统库、硬件抽象层(hardware abstract layer,HAL,图中未示出)以及内核层(kernel)。
其中,应用程序层可以包括一系列应用程序包。例如,应用程序层可以包括设置、日历、地图以及闹钟等应用程序(应用程序可以简称为应用),本申请实施例对此不做任何限制。
本申请实施例中,应用程序层还可以包括情景感知模块、业务逻辑处理模块和业务呈现模块等。情景感知模块、业务逻辑处理模块和业务呈现模块可以是独立的APP,或者可以分别集成在不同的APP中,或者可以集成在同一个APP中,本申请不做限定。
其中,情境感知模块,常驻运行或以低功耗形式运行,具有感知外部事实或者环境的能力。情境感知模块可以通过API(应用程序接口)从应用程序层的其他应用程序或应用程序框架层或系统层或内核层来检测相关事件和获取事件的状态,比如检测蓝牙连接、网络连接、监测用户短信、定制定时器等。在本申请实施例中,情境感知模块主要作用是监听剪贴板是否有复制事件,当监听到剪贴板有复制事件,将复制事件通知给业务逻辑处理模块。情境感知模块还可以用于获取剪切板中的剪切内容的来源应用(APP),即应用包名。也就是说,剪切板内容通过情境感知模块识别该剪切的内容是从某个具体的应用中复制的。另外,情境感知模块还可以检测是否有退出当前页面的操作,当检测到退出当前页面的操作,通知业务逻辑处理模块。
业务逻辑处理模块(如:计算引擎)具有业务逻辑处理能力,用于实现各种悬浮球或悬浮窗的展示,消失的逻辑。例如,业务逻辑处理模块接收到用户触发的复制事件及情境感知模块发送的剪切板内容,判断是否满足翻译条件,从而判断是否显示悬浮球。业务逻辑处理模块还可以根据用户触发的点击悬浮球事件以及从第三方服务器获取的翻译结果内容,判断是否显示悬浮窗并将翻译结果显示在悬浮窗内。另外,业务逻辑处理模块还可以用于根据用户触发的悬浮球或悬浮窗消失的事件,判断是否将电子设备上的悬浮球或悬浮窗展示或者消失。
此外,业务逻辑处理模块还可以识别复制文本或者OCR技术提取的文本。例如可以识别出文本为日程、待分享链接、淘宝口令、网址等类型中的至少一种。又例如还可以识别出文本的语种。
业务呈现模块可以包括YOYO建议管理模块以及智慧多窗管理模块。其中,YOYO建议管理模块,用于将悬浮球或悬浮窗显示或者消失在手机的屏幕上。例如,业务呈现模块接收到业务逻辑处理模块发送的显示悬浮球或悬浮窗的命令,通知窗口管理器将该悬浮 球或悬浮窗显示在电子设备上。同时,YOYO建议管理模块还可以在悬浮窗内呈现用户复制的文本及其对应的翻译结果。另外,YOYO建议管理模块还可以用户根据用户触发的悬浮球显示或悬浮窗消失的事件,通知窗口管理器将电子设备上的悬浮球或悬浮窗展示或者消失。智慧多窗管理模块用于根据用户触发的智慧多窗的显示或智慧多窗消失的事件,通知窗口管理器将电子设备上的智慧多窗展示或者消失。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器等,活动管理器,剪贴板管理器等,本申请实施例对此不做任何限制。
窗口管理器用于管理窗口程序,窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
剪贴板管理器用于对剪贴板进行管理。剪贴板是用于临时存放交换信息的临时存储区域。
活动管理器用于管理各个应用程序的生命周期以及导航回退功能,负责Android的主线程创建,各个应用程序的生命周期的维护。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
如图2所示,系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
如图2所示,内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
示例性的,图3为本申请实施例提供的一种窗口管理器的结构示意图。
如图3所示,窗口管理器中可以包括:应用窗口,子窗口(未示出)及系统窗口。
应用窗口对应于某个应用的应用窗口,例如某个阅读应用的应用窗口,用于显示阅读应用内的内容,又例如翻译应用的应用窗口,用于显示翻译应用内的内容,又例如备忘录应用的应用窗口,用于显示备忘录应用内的内容。每个应用的界面由一个个activity组成,而activity又由view组成,view是窗口的存在形式,窗口是view的载体。当启动activity时,通知应用进程,任何activity都隶属于应用进程。也就是说,例如阅读应用对应一个activity,备忘录应用由于与阅读应用是不同的应用,因而对应另一个activity。所有activity默认的窗口类型是基窗口(TYPE_BASE_APPLICATION),即所有其他类型的应用窗口将出现在基窗口上层。
子窗口依附于父窗口,即不能独立存在,需要依赖一个应用,如应用输入法窗口、应用提示框窗口等。当父窗口不可见时,子窗口也不可见。
系统窗口与应用窗口不同,不需要对应Activity。与子窗口不同,不需要有父窗口。系统窗口不属于任何一个应用,由系统来创建,只属于系统本身,往往需要声明权限才能创建,例如关机对话框窗口,状态栏窗口、搜索条窗口、输入法窗口、警告对话框、系统音量条等。
需要说明的是,系统窗口的层级一般高于应用窗口及子窗口。
继续结合图3所示,本申请的实施例中,系统窗口中设置有悬浮球及悬浮窗。由上述分析可知,悬浮球及悬浮窗为系统窗口,无法设置于应用窗口中。
悬浮窗及悬浮球的本质是将一个view交个窗口管理器管理,由于安卓底层的系统限制,应用窗口z轴范围是1~99,子窗口的范围是1001~1999,系统窗口是(2000~2999),因而,悬浮窗及悬浮球只能在系统窗口范围中实现,如果要弹出自定义系统级窗口需要动态申请权限。Z轴是安卓窗口的层级的概念,Z轴越大的窗口越居于顶层。
进一步地,由于应用程序中每个应用的界面由各activity组成且任何activity都隶属于应用进程,因而在系统窗口设置的悬浮球及悬浮窗不具备activity的功能。为了获得悬浮球及悬浮窗可以获得类似于应用窗口内的activity的效果,即显示内容及基于用户在悬浮球及悬浮窗滑动的操作,需要额外在系统窗口内部设置滑动操作、滑动冲突等,以及根据用户的点击等操作,判断响应窗口的焦点等。具体根据以下内容的表述展开而更加清晰。
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。
本申请实施例中,以电子设备为手机,多个窗口分别为:悬浮球以及智慧多窗为例,对本申请实施例提供的窗口交互方法进行示例说明,该示例并不构成为本申请实施例的限定。
可以理解的是,在电子设备执行窗口交互之前,用户可以通过复制翻译文本触发翻译功能对应的悬浮球。示例性的,图4为本申请实施例提供的一种显示悬浮球的界面示意图。
示例性的,在手机的设置界面中可以设置有例如“复制触发翻译”的选项开关,在用户选择开启该复制触发翻译的功能的情况下,当用户复制非系统默认语言的文字时,电子设备可以触发翻译功能,显示翻译功能对应的悬浮球;进一步的,当用户触发该悬浮球时,可以显示翻译结果。
当手机接收到用户打开新闻应用中的某个新闻页面的操作时,手机可以显示如图4中的(a)所示的界面,该界面中可以显示为一段英文。在如图4中的(a)所示的需要翻译的场景下,当手机接收到用户选中“patent”单词的操作时,手机可以弹出选项栏401,该选项栏401中可以包括如复制、以及搜索等操作选项。
在如图4中的(a)所示的界面中,当手机接收到用户触发该“patent”单词对应的选项栏401中的“复制”选项的操作时,手机可以识别用户意图,并显示如图4中的(b)所示的界面。如图4中的(b)所示的界面,该界面中可以包括悬浮球标识402, 该悬浮球标识402可以用于指示手机正在识别用户的意图,且手机识别到的用户的意图可以为翻译。可以理解的是,在手机进行识别的过程中,无需用户的操作,例如无需用户点击如图4中的(b)中页面的任何内容,便可以识别到用户的意图。
进一步的,手机可以在识别到用户的意图为翻译“patent”单词时,显示如图4中的(c)所示的界面,该界面中可以包括:处于第一状态的悬浮球403,该第一状态的悬浮球403用于向用户提供显示翻译结果的入口。
在如图4中的(c)所示的界面中,当手机在预设时间内未接收到用户对于第一状态的悬浮球403的触发时,则手机可以确定用户此时不需要执行翻译操作,并显示如图4中的(d)所示的界面。如图4中的(d)所示的界面,该界面中可以包括处于第二状态的悬浮球404。其中,该预设时间可以为5秒或其他数值,本申请实施例中对此不做限定。
可以理解的是,如图4中的(d)所示的界面中的第二状态的悬浮球404,可以默认显示在手机右侧屏幕的边缘,且该第二状态的悬浮窗可以根据用户的拖拽操作,显示在手机边缘的其他位置上,本申请实施例中对此不做限定。
基于图4中的(a)所示的界面-图4中的(d)所示的界面,手机可以实现根据用户的复制操作调出如图4中的(d)所示的第二状态的悬浮球。
可以理解的是,后文将该第二状态的悬浮球简称为悬浮球进行说明。
在如图4对应的实施例中手机调出悬浮球,或理解为手机调出任一窗口的情况下,手机也可以通过用户打开智慧多窗等操作调出另一窗口。后续将以悬浮球以及智慧多窗介绍本申请实施例中描述的窗口交互方法(如图5、图6、以及图7分别对应的实施例)。
可以理解的是,当悬浮球与智慧多窗位于同侧,且悬浮球所在的位置与智慧多窗所在的位置重叠时,则手机可以基于图5对应的实施例对上述悬浮球以及智慧多窗发生冲突的情况进行显示。
示例性的,图5为本申请实施例中提供的一种同侧窗口交互的界面示意图。
在如图5中的(a)所示的悬浮球501显示在手机右侧边缘的情况下,当手机接收到用户沿手机右侧边缘向内侧滑动的操作时,手机可以显示如图5中的(b)所示的界面。如图5中的(b)所示的界面,该界面中可以包括:悬浮球501以及标识502,该标识502用于指示手机即将显示智慧多窗。
在如图5中的(b)所示的界面中,当手机在接收到用户持续向内滑动的操作时,手机可以确定悬浮球501所在的位置与智慧多窗所在的位置发生重叠,并显示图5中的(c)所示的界面。如图5中的(c)所示的界面,该界面中可以包括:智慧多窗503,该智慧多窗503中可以包括:电子邮件应用的控件504、备忘录应用的控件、视频应用的控件、图库应用的控件、以及用于在智慧多窗中增加或删减应用的控件等。
可以理解的是,由于悬浮球501所在的位置,与智慧多窗所在的位置发生重叠,使得手机可以取消显示悬浮球501,并显示智慧多窗503。
进一步的,在如图5中的(c)所示的界面中,当手机接收到用户触发该智慧多窗503中的电子邮件应用的控件504的操作时,手机可以显示如图5中的(d)所示的界面。如图5中的(d)所示的界面,该界面中可以包括:邮件应用对应的悬浮窗505,该悬浮窗 505中可以显示下述一种或多种:用于全屏显示悬浮窗505的控件、用于以悬浮球形式显示该悬浮窗505的控件、用于关闭悬浮窗505的控件、用于移动悬浮窗505的拖动杆、收件箱的文字标识、用于搜索邮件的搜索栏、以及购物网于2022-1-18发送的电子邮件、或Patent于2022-1-10发送的电子邮件等。
可以理解的是,在手机接收到用户触发智慧多窗503中的应用的控件时,手机可以取消显示悬浮球501以及智慧多窗503。
基于图5对应的实施例,当用户在打开悬浮球的情况下,触发智慧多窗时,手机可以显示智慧多窗,若悬浮球所在的位置与智慧多窗所在的位置重叠,则手机取消悬浮球的显示,避免悬浮球与智慧多窗的冲突,使得用户可以实现对于智慧多窗的正常使用。
可以理解的是,当悬浮球与智慧多窗位于同侧,且悬浮球所在的位置与智慧多窗所在的位置不重叠时,则手机可以基于图6对应的实施例对上述悬浮球以及智慧多窗不冲突的情况进行显示。
示例性的,图6为本申请实施例中提供的另一种同侧窗口交互的界面示意图。
在如图6中的(a)所示的悬浮球601显示在手机右侧边缘且靠近手机上沿的情况下,当手机接收到用户沿手机右侧边缘且靠近手机中间部分向内侧滑动的操作时,手机可以显示如图6中的(b)所示的界面。如图6中的(b)所示的界面,该界面中可以包括:悬浮球601以及标识602,该标识602用于指示手机即将显示智慧多窗。
在如图6中的(b)所示的界面中,当手机在接收到用户持续向内滑动的操作时,手机可以确定悬浮球601所在的位置与智慧多窗所在的位置不会发生重叠,并显示图6中的(c)所示的界面。如图6中的(c)所示的界面,该界面中可以包括:悬浮球601、以及智慧多窗603。其中,该智慧多窗603中可以显示的内容可以参见图5对应的实施例中的智慧多窗503中的描述,在此不再赘述。
可以理解的是,由于悬浮球601所在的位置靠近手机的上侧,与触发智慧多窗603时,该智慧多窗603所在的位置不发生重叠,使得手机可以同时显示智慧多窗603以及悬浮球601。
基于图6对应的实施例,当用户在打开悬浮球的情况下,触发智慧多窗时,则手机可以显示智慧多窗,若悬浮球所在的位置与智慧多窗所在的位置不重叠,手机可以显示悬浮球,使得用户可以实现对于悬浮球以及智慧多窗的正常使用。
可以理解的是,当悬浮球与智慧多窗位于不同侧,则悬浮球所在的位置与智慧多窗所在不重叠,手机可以基于图7对应的实施例对上述悬浮球以及智慧多窗不冲突的情况进行显示。
示例性的,图7为本申请实施例中提供的一种不同侧窗口交互的界面示意图。
在如图7中的(a)所示的悬浮球701显示在手机左侧边缘的情况下,当手机接收到用户沿手机右侧边缘向内侧滑动的操作时,手机可以显示如图7中的(b)所示的界面。如图7中的(b)所示的界面,该界面中可以包括:悬浮球701以及标识702,该标识702用于指示手机即将显示智慧多窗。
在如图7中的(b)所示的界面中,当手机在接收到用户持续向内滑动的操作时,手 机可以确定悬浮球701所在的位置与智慧多窗所在的位置不会发生重叠,并显示图7中的(c)所示的界面。如图7中的(c)所示的界面,该界面中可以包括:悬浮球701、以及智慧多窗703。其中,该智慧多窗703中可以显示的内容可以参见图5对应的实施例中的智慧多窗503中的描述,在此不再赘述。
可以理解的是,由于悬浮球701所在的位置位于手机左侧边缘,与用户在手机右侧边缘触发智慧多窗703时,该智慧多窗703所在的位置不发生重叠,使得手机可以同时显示智慧多窗703以及悬浮球701。
基于图7对应的实施例,当用户在打开悬浮球的情况下,触发智慧多窗时,则手机可以显示智慧多窗,若悬浮球所在的位置与智慧多窗所在的位置不重叠,手机可以显示悬浮球,使得用户可以实现对于智慧多窗以及悬浮球的正常使用。
可以理解的是,基于上述图5至图7对应的实施例中的描述,悬浮窗与智慧多窗的冲突区域可以参见图8对应的实施例中的描述。
示例性的,图8为本申请实施例提供的一种第一冲突区域的示意图。
在如图8中的(a)所示的悬浮球801显示在手机右侧边缘且靠近手机上沿的情况下,当手机接收到用户沿手机右侧边缘向内侧滑动的操作时,手机可以确定悬浮球801与智慧多窗不发生重叠,进而手机可以同时显示智慧多窗802以及悬浮球801。
可以理解的是,如图8中的(a)所示的界面中,悬浮球801与智慧多窗802周围的一定区域(如图8中的(a)所示的虚线框所在的区域,或称为第一冲突区域)不发生重叠,因此手机可以同时显示悬浮球801以及智慧多窗802。其中,该图8中的(a)所示的虚线框所在的区域可以为,手机在智慧多窗802的上侧以及下侧各取10个像素点时对应的区域。
可能的实现方式中,在如图8中的(a)所示的界面中,当手机接收到用户在该智慧多窗802中增加应用,例如通过智慧多窗802中的用于在智慧多窗中增加或删减应用的控件803,增加音乐应用的操作时,手机可以显示如图8中的(b)所示的界面,该图8中的(b)所示的界面中可以包括智慧多窗804。
可以理解的是,由于图8中的(b)所示的界面中的智慧多窗804周围的一定区域(如图8中的(b)所示的虚线框所在的区域,或称为第一冲突区域),与图8中的(a)所示的悬浮球801所在的位置发生重叠,使得手机在显示智慧多窗804的时候可以取消显示悬浮球801。其中,该图8中的(b)所示的虚线框所在的区域可以为,手机在智慧多窗804的上侧以及下侧各取10个像素点时对应的区域。
可能的实现方式中,若悬浮球801位于手机左侧边缘,则在手机接收到用户于手机右侧边缘向内滑动的操作时,由于悬浮球801与智慧多窗804不产生冲突,使得手机可以同时显示位于手机左侧边缘的悬浮球801,以及显示位于手机右侧边缘的智慧多窗804。
可能的实现方式中,该智慧多窗的大小以及位置可以与智慧多窗中的应用的数量相关,例如当该智慧多窗中的数量为4个时,智慧多窗所在的位置可以为图8中的(a)所示的智慧多窗802所在的区域。在此场景中,与悬浮球801冲突的第一冲突区域可以为智慧多窗802周围的一定区域,例如可以为图8中的(a)所示的虚线框所在的区域。
或者,当该智慧多窗中的数量为5个时,智慧多窗所在的位置可以为图8中的(b) 所示的智慧多窗802所在的区域。在此场景中,与悬浮球801冲突的第一冲突区域可以为智慧多窗804周围的一定区域,例如可以为图8中的(b)所示的虚线框所在的区域。
基于图8对应的实施例中的第一冲突区域的描述,使得用户可以在需要显示悬浮球时,将悬浮球移动到距离智慧多窗较远,或者移动到与智慧多窗所在侧相反的一侧区域,避免由于悬浮球与智慧多窗的冲突,造成手机取消显示悬浮球的情况。
可以理解的是,基于上述图5至图7对应的实施例中的描述,在由于悬浮球与智慧多窗的冲突,导致手机显示智慧多窗且手机取消显示悬浮球的情况下,当手机接收到用户触发除智慧多窗以外的其他区域时,手机可以取消显示智慧多窗,并根据悬浮球取消显示到智慧多窗取消显示的时间,确定是否显示悬浮球。
示例性的,图9为本申请实施例提供的一种取消显示智慧多窗的界面示意图。
在由于悬浮球与智慧多窗的冲突,导致手机显示智慧多窗且手机取消显示悬浮球,例如手机显示如图9中的(a)所示的界面的情况下,当手机接收到用户触发该界面中的除智慧多窗以外的区域时,手机可以取消显示智慧多窗,并且手机可以计算由悬浮球取消显示到智慧多窗取消显示的时长。
一种实现中,当手机确定由悬浮球取消显示到智慧多窗取消显示的时长超过时间阈值时,手机在取消显示智慧多窗的同时,取消悬浮球的显示,例如手机可以由图9中的(a)所示的界面切换至如图9中的(b)所示的界面。可以理解的是,当由悬浮球取消显示到智慧多窗取消显示的时长超过时间阈值时,可以理解为用户已经不需要使用悬浮球,因此手机可以取消悬浮球的显示。
另一种实现中,当手机确定由悬浮球取消显示到智慧多窗取消显示的时长未超过时间阈值时,手机可以显示悬浮球并且取消显示智慧多窗,例如手机可以由图9中的(a)所示的界面切换至如图9中的(c)所示的界面,该图9中的(c)所示的界面中包括悬浮球。
基于图9对应的实施例中的悬浮球取消显示到智慧多窗取消显示的时长的描述,使得用户可以在需要显示悬浮球时,避免由于长时间显示智慧多窗,造成手机在接收到用户取消显示智慧多窗时,取消显示悬浮球的情况。
可能的实现方式中,在上述图5-图7对应的实施例的基础上,当手机接收到用户在悬浮球周围的一定区域通过沿屏幕边缘向内滑动触发智慧多窗时,则手机无法显示智慧多窗。
示例性的,图10为本申请实施例提供的一种无法触发智慧多窗的区域示意图。
在如图10中的(a)所示的显示悬浮球1001的情况下,当手机接收到用户在悬浮球1001周围的一定区域(如图10中的(a)所示的虚线区域,或称为第二冲突区域)内,沿手机屏幕边缘向内滑动的操作时,手机可以显示如图10中的(b)所示的界面,该图10中的(b)所示的界面中可以包括悬浮球1001。
可以理解的是,当手机接收到用户在图10中的(a)所示的虚线区域内部,触发沿手机屏幕边缘向内滑动的操作时,手机都可以将该虚线区域内部的触发操作默认为用户针对该悬浮球1001的触发操作。
或者,当手机接收到用户在悬浮球1001周围的一定区域外侧,沿手机屏幕边缘向内滑动的操作时,手机可以显示如图10中的(c)所示的界面,该图10中的(c)所示的界 面中可以包括智慧多窗1002。
可以理解的是,当手机接收到用户在图10中的(a)所示的虚线区域外部,触发沿手机屏幕边缘向内滑动的操作时,手机则可以根据该触发操作执行相应的功能。
基于图10对应的实施例中的第二冲突区域的描述,使得用户可以在需要显示智慧多窗时,在悬浮球所对应的第二冲突区域的外侧触发智慧多窗,避免由于第二冲突区域与触发智慧多窗时的位置的重叠,导致手机无法显示智慧多窗的情况。
示例性的,图11为本申请实施例提供的一种窗口交互方法的流程示意图。在图11对应的实施例中,电子设备的软件架构中可以包括多个层,例如应用程序层、以及应用程序框架层等;该应用程序层中可以包括业务呈现模块,该应用程序框架层中可以包括窗口管理器;该业务呈现模块中可以包括:用于管理悬浮球的显示的YOYO建议管理模块,以及用于管理智慧多窗的显示的智慧多窗管理模块。
如图11所示,窗口交互方法可以包括如下步骤:
S1101、用户触发复制事件。
其中,该复制事件可以为复制待翻译文本触发翻译功能对应的悬浮球的显示的事件。
S1102、响应于用户触发复制事件,YOYO建议管理模块向窗口管理器发送用于指示显示悬浮球的消息。
S1103、YOYO建议管理模块调用显示器显示悬浮球。
S1104、用户触发显示智慧多窗的事件。
其中,该显示智慧多窗的事件可以为用户通过沿屏幕边缘向内滑动的操作触发智慧多窗显示的事件。
S1105、响应于用户触发显示智慧多窗的事件,窗口管理器向智慧多窗管理模块发送用于指示显示智慧多窗的消息。
S1106、智慧多窗管理模块调用显示器显示智慧多窗。
S1107、智慧多窗管理模块向YOYO建议管理模块发送智慧多窗的位置信息。
示例性的,智慧多窗管理模块在接收到窗口管理器发送的用于显示智慧多窗的消息时,可以获取智慧多窗的位置信息,并将该智慧多窗的位置信息发送至YOYO建议管理模块。其中,该智慧多窗的位置信息可以为:智慧多窗所在位置对应的坐标点集合。
S1108、YOYO建议管理模块根据智慧多窗的位置信息以及悬浮球的位置信息,判断智慧多窗与悬浮球是否冲突。
本申请实施例中,当YOYO建议管理模块根据智慧多窗的位置信息以及悬浮球的位置信息,确定智慧多窗与悬浮球不冲突时,电子设备保持S1103所示的步骤中的悬浮球的显示,以及保持S1106所示的步骤中的智慧多窗;或者,当YOYO建议管理模块根据智慧多窗的位置信息以及悬浮球的位置信息,确定智慧多窗与悬浮球冲突时,电子设备中的模块可以执行S1109-S1111所示的步骤。
其中,YOYO建议管理模块可以获取悬浮球的位置信息,该悬浮球的位置信息可以为:悬浮球所在位置对应的坐标点集合。
可能的实现方式中,YOYO建议管理模块可以获取智慧多窗的位置信息,并沿智慧多窗的上下两侧各延伸10个像素点,得到延伸后的智慧多窗的位置信息,该延伸后的智慧 多窗的位置信息可以为:延伸后的智慧多窗所在位置的坐标点集合。
进一步的,YOYO建议管理模块确定延伸后的智慧多窗所在位置的坐标点集合,与悬浮球所在位置对应的坐标点集合是否有重复,当YOYO建议管理模块确定两个坐标点集合之间有重复坐标点时,则可以确定智慧多窗与悬浮球冲突;或者,当YOYO建议管理模块确定两个坐标点集合之间有没有重复坐标点时,则可以确定智慧多窗与悬浮球不冲突。
可以理解的是,该延伸后的智慧多窗所在位置可以参见图8中的(a)所示的虚线区域,且该延伸的像素点的个数可以为其他数值,本申请实施例中对此不做限定。
可以理解的是,智慧多窗与悬浮球发生冲突的场景可以参见图5对应的实施例;智慧多窗与悬浮球不发生冲突的场景可以参见图6以及图7对应的实施例;在此不再赘述。
可能的实现方式中,当用户调整智慧多窗中的应用数量,使得智慧多窗的位置信息发生变化时,响应于用户调整智慧多窗中的应用数量的操作,窗口管理器可以向智慧多窗管理模块发送用于更新智慧多窗的消息,进而智慧多窗管理模块可以重新获取当前智慧多窗的位置信息,并将更新后的位置信息发送至YOYO建议管理模块,使得YOYO建议管理模块可以重新执行S1108所示的步骤。
S1109、YOYO建议管理模块向窗口管理器发送用于指示取消显示悬浮球的消息。
S1110、窗口管理器向YOYO建议管理模块发送用于指示取消显示悬浮球的消息。
可能的实现方式中,在上述S1101-S1110所示的步骤的基础上,在由于悬浮球与智慧多窗的冲突,导致手机显示智慧多窗且手机取消显示悬浮球的情况下,当手机接收到用户触发除智慧多窗以外的其他区域时,手机可以取消显示智慧多窗,并根据悬浮球取消显示到智慧多窗取消显示的时间,确定是否显示悬浮球。
示例性的,S1111、YOYO建议管理模块在取消显示悬浮球时启动计时器。
S1112、用户触发取消显示智慧多窗的事件。
其中,该取消显示智慧多窗的事件可以为用户针对除智慧多窗以外的区域的触发操作等,本申请实施例中对此不做限定。
S1113、窗口管理器向智慧多窗管理模块发送用于指示取消显示智慧多窗的消息。
S1114、智慧多窗管理模块向YOYO建议管理模块发送用于指示取消显示智慧多窗的消息。
S1115、YOYO建议管理模块根据悬浮球取消显示到智慧多窗取消显示的时长,确定是否显示悬浮球。
本申请实施例中,当YOYO建议管理模块确定悬浮球取消显示到智慧多窗取消显示的时长未超过时间阈值时,YOYO建议确定显示悬浮球,进而电子设备中的模块可以执行S1116-S1118所示的步骤;或者,当YOYO建议管理模块确定悬浮球取消显示到智慧多窗取消显示的时长超过时间阈值时,YOYO建议确定取消显示悬浮球,进而YOYO建议管理模块可以执行S1119所示的步骤。
S1116、YOYO建议管理模块向窗口管理器发送用于指示显示悬浮球的消息。
S1117、窗口管理器向YOYO建议管理模块发送用于指示显示悬浮球的消息。
S1118、YOYO建议管理模块调用显示器显示悬浮球。
S1119、YOYO建议管理模块向窗口管理器发送用于指示取消显示悬浮球的消息。
基于此,使得电子设备可以在悬浮球以及智慧多窗发生位置重叠时,避免多个窗口发 生冲突,进而实现用户对于窗口的正常使用。
可能的实现方式中,在图11对应的实施例的基础上,YOYO建议管理模块也可以根据用户触发事件所在的位置信息以及悬浮球的位置信息,确定显示悬浮球还是智慧多窗。示例性的,图12为本申请实施例提供的另一种窗口交互方法的流程示意图。
如图12所示,该窗口交互方法可以包括如下步骤:
S1201、用户触发事件。
其中,该触发事件可以为用户触发显示智慧多窗的事件,或者,也可以为用户触发悬浮球移动的事件等。
S1202、响应于用户触发事件,窗口管理器向YOYO建议管理模块发送触发事件所在的位置信息。
其中,该触发事件所在的位置信息可以为触发事件对应的坐标点集合。
S1203、YOYO建议管理模块根据悬浮球的位置信息以及触发事件所在的位置信息,确定显示悬浮球还是智慧多窗。
本申请实施例中,当YOYO建议管理模块根据悬浮球的位置信息以及触发显示事件所在的位置信息,确定继续显示悬浮球时,电子设备中的模块可以执行S1204-S1207所示的步骤;或者,当YOYO建议管理模块根据悬浮球的位置信息以及触发显示事件所在的位置信息,确定不继续显示悬浮球时,电子设备中的模块可以执行S1208-S1210所示的步骤。
其中,悬浮球的位置信息可以为:悬浮球所在位置对应的坐标点集合。
可能的实现方式中,YOYO建议管理模块可以获取悬浮球的位置信息,并沿悬浮球边缘向外延伸10个像素点,得到延伸后的悬浮球的位置信息,该延伸后的悬浮球的位置信息可以为:延伸后的悬浮球所在位置的坐标点集合。
进一步的,YOYO建议管理模块确定延伸后的悬浮球所在位置的坐标点集合,与触发事件对应的坐标点集合是否有重复,当YOYO建议管理模块确定两个坐标点集合之间有重复坐标点时,则可以确定用户触发悬浮球;或者,当YOYO建议管理模块确定两个坐标点集合之间有没有重复坐标点时,则可以确定用户触发智慧多窗。
可以理解的是,该延伸后的悬浮球所在位置可以参见图10中的(a)所示的虚线区域,且该延伸的像素点的个数可以为其他数值,本申请实施例中对此不做限定。
S1204、YOYO建议管理模块向窗口管理器发送用于指示显示悬浮球的消息。
S1205、窗口管理器更新悬浮球,得到更新后的悬浮球。
其中,当YOYO建议管理模块在S1203中根据悬浮球的位置信息以及触发显示事件所在的位置信息,确定继续显示悬浮球时,则用户触发事件可以理解为针对悬浮球的移动事件,因此,窗口管理器可以更新悬浮球的位置,并得到更新后的悬浮球。
S1206、窗口管理器向YOYO建议管理模块发送用于指示显示更新后的悬浮球的消息。
S1207、YOYO建议管理模块调用显示器显示更新后的悬浮球。
S1208、YOYO建议管理模块向窗口管理器发送用于指示YOYO建议管理模块未对触发事件进行处理的消息。
其中,当YOYO建议管理模块在S1203中根据悬浮球的位置信息以及触发显示事件所在的位置信息,确定不继续显示悬浮球时,则YOYO建议管理模块可以将YOYO建议管 理模块未对触发事件进行处理的消息发送至窗口管理器。S1209、窗口管理器向智慧多窗管理模块发送用于指示显示智慧多窗的消息。
示例性的,在窗口管理器接收到YOYO建议管理模块发送的用于指示YOYO建议管理模块未对触发事件进行处理的消息时,窗口管理器可以确定触发事件需要由其他模块进行处理,例如由智慧多窗管理模块进行处理,因此窗口管理器可以向智慧多窗管理模块发送用于指示显示智慧多窗的消息。
S1210、智慧多窗管理模块调用显示器显示智慧多窗。
基于此,使得用户可以根据自身需求在需要显示智慧多窗时,在距离悬浮球较远的位置处进行触发,在需要显示悬浮球时,在距离悬浮球较近的位置处进行触发,提高用户使用悬浮球以及智慧多窗的使用体验。
可以理解的是,本申请实施例提供的界面仅作为一种示例,并不能够成对本申请实施例的进一步限定。
示例性的,图13为本申请实施例提供的一种窗口交互装置的结构示意图。
如图13所示,窗口交互装置130可以用于通信设备、电路、硬件组件或者芯片中,该窗口交互装置包括:显示单元1301、处理单元1302以及通信单元1303。其中,显示单元1301用于支持退出资源分配方法执行的显示的步骤;处理单元1302用于支持窗口交互装置执行信息处理的步骤;通信单元1303用于支持资源分配方法执行的数据发送以及数据接收的步骤。
在一种可能的实施例中,通信单元1303可以是输入或者输出接口、管脚或者电路等。
在一种可能的实施例中,窗口交互装置还可以包括:存储单元1304。处理单元1302、通信单元1303、以及存储单元1304通过线路相连。
存储单元1304可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。
存储单元1304可以独立存在,通过通信线路与窗口交互装置具有的处理单元1302相连。存储单元1304也可以和处理单元1302集成在一起。
存储单元1304可以存储终端设备中的方法的计算机执行指令,以使处理单元1302执行上述实施例中的方法。
存储单元1304可以是寄存器、缓存或者RAM等,存储单元1304可以和处理单元1302集成在一起。存储单元1304可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元1304可以与处理单元1302相独立。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站 站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (13)

  1. 一种窗口交互方法,其特征在于,应用于电子设备,所述方法包括:
    所述电子设备显示第一应用的第一界面;所述第一界面中包括第一悬浮球控件;
    响应于在所述第一界面中的第一操作,所述电子设备显示第一悬浮窗;
    当所述第一悬浮窗的位置与所述第一悬浮球控件的位置不重叠时,所述电子设备继续显示所述第一悬浮球控件以及所述第一悬浮窗。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述第一悬浮窗的位置与所述第一悬浮球控件的位置重叠时,所述电子设备取消显示所述第一悬浮球控件。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    响应于取消显示所述第一悬浮窗的操作,所述电子设备取消显示所述悬浮窗;
    所述电子设备确定由取消显示所述第一悬浮球控件到取消显示所述第一悬浮窗的时长;
    当所述时长未超过第一时间阈值时,所述电子设备显示所述第一悬浮球控件。
  4. 根据权利要求2所述的方法,其特征在于,所述第一悬浮窗中包括用于开启第二应用的控件,所述方法还包括:
    响应于对所述用于开启第二应用的控件的操作,所述电子设备显示第二界面;所述第二界面中包括所述第二应用对应的第二悬浮窗。
  5. 根据权利要求1所述的方法,其特征在于,所述第一悬浮窗的位置与所述第一悬浮球控件的位置不重叠,包括:所述第一悬浮窗的位置与所述第一悬浮球控件的位置分别位于所述电子设备的屏幕的两侧。
  6. 根据权利要求1所述的方法,其特征在于,所述第一悬浮窗的位置与所述第一悬浮球控件的位置不重叠,包括:所述第一悬浮窗的位置与所述第一悬浮球控件的位置均位于所述电子设备的屏幕的同一侧,且所述第一悬浮球控件的位置与所述第一悬浮窗对应的第一区域的位置不重叠;所述第一区域中包含所述第一悬浮窗。
  7. 根据权利要求6所述的方法,其特征在于,所述第一区域的大小与所述第一悬浮窗中包括的应用控件的数量相关。
  8. 根据权利要求1所述的方法,其特征在于,所述响应于在所述第一界面中的第一操作,所述电子设备显示第一悬浮窗,包括:
    响应于在所述第一界面中的所述第一操作,当所述电子设备确定所述第一操作所在的位置在所述第一悬浮球控件对应的第二区域外时,所述电子设备显示所述第一悬浮窗;所述第二区域中包括所述第一悬浮球控件。
  9. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    响应于在所述第一界面中的第二操作,当所述电子设备确定所述第二操作所在的位置在所述第二区域内时,所述电子设备继续显示所述第一悬浮球控件。
  10. 根据权利要求1所述的方法,其特征在于,所述电子设备显示第一应用的第一界面,包括:
    所述电子设备显示所述第一应用的第三界面;所述第三界面中包括第一文本;
    响应于对所述第一文本的第三操作,所述电子设备显示第一控件;所述第一控件 中包括复制选项以及翻译选项;
    响应于对所述复制选项的第四操作,所述电子设备显示第三悬浮球控件;
    当所述电子设备在第一时间阈值内未接收到针对所述第三悬浮球控件的操作时,所述电子设备取消显示所述第三悬浮球控件,且显示所述第一应用的第一界面。
  11. 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行权利要求1-10中任一项所述的方法。
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-10中任一项所述的方法。
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-10中任一项所述的方法。
PCT/CN2023/071086 2022-01-10 2023-01-06 窗口交互方法和电子设备 WO2023131314A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210023812.2 2022-01-10
CN202210023812 2022-01-10
CN202210114776.0A CN116456018A (zh) 2022-01-10 2022-01-30 窗口交互方法和电子设备
CN202210114776.0 2022-01-30

Publications (2)

Publication Number Publication Date
WO2023131314A1 WO2023131314A1 (zh) 2023-07-13
WO2023131314A9 true WO2023131314A9 (zh) 2023-10-26

Family

ID=87073266

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/071086 WO2023131314A1 (zh) 2022-01-10 2023-01-06 窗口交互方法和电子设备

Country Status (1)

Country Link
WO (1) WO2023131314A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117979040A (zh) * 2024-01-06 2024-05-03 珠海视熙科技有限公司 一种直播控制系统及直播设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808095A (zh) * 2015-07-08 2016-07-27 维沃移动通信有限公司 一种终端的应用界面的显示方法及终端
CN106941000A (zh) * 2017-03-21 2017-07-11 百度在线网络技术(北京)有限公司 基于人工智能的语音交互方法和装置
CN107153541B (zh) * 2017-04-20 2020-07-03 北京小米移动软件有限公司 浏览交互处理方法及装置
CN108897795A (zh) * 2018-06-12 2018-11-27 广东小天才科技有限公司 一种基于家教机的搜索方法及家教机
CN111854789B (zh) * 2019-05-31 2022-06-03 北京嘀嘀无限科技发展有限公司 一种导航显示方法和系统

Also Published As

Publication number Publication date
WO2023131314A1 (zh) 2023-07-13

Similar Documents

Publication Publication Date Title
US11803451B2 (en) Application exception recovery
WO2021120914A1 (zh) 一种界面元素的显示方法及电子设备
WO2021244443A1 (zh) 分屏显示方法、电子设备及计算机可读存储介质
US20200057541A1 (en) Dynamically generated task shortcuts for user interactions with operating system user interface elements
CN115297200A (zh) 一种具有折叠屏的设备的触控方法与折叠屏设备
CN111597000A (zh) 一种小窗口管理方法及终端
US11450034B2 (en) Techniques for enabling multiple mutually untrusted applications to concurrently generate augmented reality presentations
CN113268212A (zh) 投屏方法、装置、存储介质及电子设备
US20180196584A1 (en) Execution of multiple applications on a device
WO2023131314A9 (zh) 窗口交互方法和电子设备
CN114020652B (zh) 一种应用程序的管理方法及电子设备
EP4170476A1 (en) Translation method and electronic device
WO2022166713A1 (zh) 电子设备及其应用的显示方法和介质
WO2024061032A1 (zh) 窗口显示方法和相关装置
WO2023221946A1 (zh) 一种信息的中转方法及电子设备
WO2023131312A9 (zh) 窗口交互方法和电子设备
WO2023131313A9 (zh) 窗口交互方法和电子设备
CN116456018A (zh) 窗口交互方法和电子设备
US20240361897A1 (en) Window interaction method and electronic device
CN112578988A (zh) 移动终端及其显示界面的更新方法
CN114461312A (zh) 切换应用及应用中任务的方法、电子设备
CN116456020B (zh) 窗口交互方法、电子设备、存储介质和计算机程序产品
CN116456019B (zh) 窗口交互方法、电子设备、计算机可读存储介质及程序产品
CN117492609B (zh) 一种显示方法、可读存储介质、程序产品及电子设备
WO2023165225A9 (zh) 多任务场景下的悬浮球处理方法和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23737176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE