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

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

Info

Publication number
WO2023131313A1
WO2023131313A1 PCT/CN2023/071085 CN2023071085W WO2023131313A1 WO 2023131313 A1 WO2023131313 A1 WO 2023131313A1 CN 2023071085 W CN2023071085 W CN 2023071085W WO 2023131313 A1 WO2023131313 A1 WO 2023131313A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
screen
floating window
electronic device
state
Prior art date
Application number
PCT/CN2023/071085
Other languages
English (en)
French (fr)
Other versions
WO2023131313A9 (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 CN202210114777.5A external-priority patent/CN116456019A/zh
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023131313A1 publication Critical patent/WO2023131313A1/zh
Publication of WO2023131313A9 publication Critical patent/WO2023131313A9/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
    • 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 technical field of terminals, in particular to a window interaction method and electronic equipment.
  • many electronic devices may support the display of the floating window of the electronic device.
  • the user can trigger the display of the floating window corresponding to the translation function by copying the text to be translated, and the user can also view the translation content through the floating window corresponding to the translation function.
  • the electronic device is a folding screen mobile phone
  • the folding screen mobile phone cannot adjust the display of the floating window according to the user's use requirements for any screen, thereby affecting the user's use. experience.
  • Embodiments of the present application provide a window interaction method and an electronic device, so that the electronic device can reasonably display the floating window on different pages or in different states of the electronic device, thereby enhancing user experience of using the floating window.
  • the embodiment of the present application provides a window interaction method, which is applied to an electronic device.
  • the electronic device includes a first display screen and a second display screen.
  • the second display screen is foldable.
  • the method includes: the electronic device uses the first display screen Displaying the first interface; wherein, the first interface includes a first floating window; the width of the first floating window is the same as the width of the first display screen, the first floating window satisfies the first state, and the first floating window is a modeless dialog frame; in response to the first operation on the electronic device, the electronic device uses the second display screen to display the second interface; wherein, the second interface includes a second floating window; the width of the second floating window is smaller than the width of the second display screen, and the second The second floating window satisfies the first state, and the second floating window is a non-modal dialog box.
  • the electronic device can reasonably display the floating window on different pages or in different states of the electronic device, thereby enhancing the user's experience of using the floating window.
  • the method further includes: in response to the second operation on the electronic device, the electronic device uses the second display screen to display a third interface; where the third interface includes a third floating window; the third floating window The width of is smaller than the height of the second display screen, and the third floating window satisfies the first state. In this way, the electronic device can enable the user to flip the floating window when flipping the screen.
  • the third interface is an interface of the electronic device in a landscape state.
  • the second interface further includes a first area, and the first area is an area in the second interface other than the second floating window
  • the method further includes: responding to a third operation on the first area , the electronic device displays a fourth interface; the fourth interface includes a fourth floating window, and the fourth floating window satisfies a second state; the second state is different from or the same as the first state.
  • the electronic device can realize the non-modality of the floating window, and enhance the user's experience of using the floating window.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; the second state includes a bottom state.
  • the method further includes: in response to a fourth operation on the electronic device, the electronic device uses the first display screen to display a fifth interface; wherein, The fifth interface includes a fifth floating window; the width of the fifth floating window is the same as the height of the first display screen. In this way, the electronic device can enable the user to flip the floating window when flipping the screen.
  • the fifth interface is an interface of the electronic device in a landscape state.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; when the first floating window is in a half-screen state, the fifth floating window is in a full-screen state; when the first When the floating window is in the bottom state, the fifth floating window is in the bottom state; when the first floating window is in the full-screen state, the fifth floating window is in the full-screen state.
  • the first interface further includes a second area, and the second area is an area in the first interface other than the first floating window.
  • the method It also includes: in response to the fifth operation on the second area, the electronic device displays a sixth interface; the sixth interface includes a sixth floating window, and the sixth floating window satisfies the second state; the second state is different or the same as the first state , the second state includes the bottom state. In this way, the electronic device can realize the non-modality of the floating window, and enhance the user's experience of using the floating window.
  • the electronic device uses the second display screen to display the second interface, including: in response to the first operation on the electronic device, the electronic device obtains the first data; The first data includes folding angle data; the folding angle data is detected based on the angle chain sensor; when the electronic device determines that the folding angle data meets the first preset condition, the electronic device uses the second display screen to display the second interface.
  • the electronic device executes a corresponding folding step according to the monitoring of the state of the electronic device, so as to realize the user's experience of the floating window in the process of folding the mobile phone.
  • the second floating window is displayed centrally at the bottom of the second display screen; the first floating window is displayed at the bottom of the first display screen.
  • the electronic device using the first display screen to display the first interface includes: the electronic device using the first display screen to display the seventh interface; the seventh interface includes the first text; responding to the first text
  • the electronic device displays the first control; the first control includes the copy option and the translation option; in response to the seventh operation on the copy option, the electronic device displays the floating ball control; in response to the eighth operation on the floating ball control , the electronic device uses the first display screen to display the first interface.
  • the electronic device can flexibly call out the floating window based on the user's copy operation.
  • the electronic device using the first display screen to display the first interface includes: the electronic device uses the first display screen to display the eighth interface; the eighth interface includes the second text; responding to the second text
  • the electronic device displays the second control; the second control includes a copy option and a translation option; in response to the tenth operation on the translation option, the electronic device uses the first display screen to display the first interface.
  • the electronic device can flexibly call out the floating window based on the user's translation operation.
  • the embodiment of the present application provides a window interaction device, which is applied to electronic equipment.
  • the electronic equipment includes a first display screen and a second display screen.
  • the second display screen is foldable.
  • the method includes: a display unit configured to use the first display screen A display screen displays a first interface; wherein, the first interface includes a first floating window; the width of the first floating window is the same as the width of the first display screen, the first floating window satisfies the first state, and the first floating window is not A modal dialog box; in response to the first operation on the electronic device, the display unit is configured to use the second display screen to display the second interface; wherein, the second interface includes a second floating window; the width of the second floating window is smaller than the second The width of the display screen, the second floating window satisfies the first state, and the second floating window is a non-modal dialog box.
  • the display unit in response to the second operation on the electronic device, is configured to use the second display screen to display a third interface; where the third interface includes a third floating window; the third floating window The width is smaller than the height of the second display screen, and the third floating window satisfies the first state.
  • the third interface is an interface of the electronic device in a landscape state.
  • the second interface further includes a first area, the first area is an area in the second interface other than the second floating window, and in response to the third operation on the first area, the display unit, It is used to display a fourth interface; the fourth interface includes a fourth floating window, and the fourth floating window satisfies the second state; the second state is different from or the same as the first state.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; the second state includes a bottom state.
  • the display unit in response to a fourth operation on the electronic device, is configured to use the first display screen to display a fifth interface; wherein, the fifth interface includes a fifth floating window; the fifth floating window The width of is the same as the height of the first display.
  • the fifth interface is an interface of the electronic device in a landscape state.
  • the first state includes any one of a half-screen state, a full-screen state, or a bottom state; when the first floating window is in a half-screen state, the fifth floating window is in a full-screen state; when the first When the floating window is in the bottom state, the fifth floating window is in the bottom state; when the first floating window is in the full-screen state, the fifth floating window is in the full-screen state.
  • the first interface further includes a second area, the second area is an area in the first interface other than the first floating window, and in response to the fifth operation on the second area, the display unit, It is used to display the sixth interface; the sixth interface includes the sixth floating window, and the sixth floating window satisfies the second state; the second state is different or the same as the first state, and the second state includes the bottom state.
  • the processing unit in response to a first operation on the electronic device, is configured to acquire first data; the first data includes folding angle data; the folding angle data is obtained based on the detection of an angle chain sensor; When the electronic device determines that the folding angle data satisfies the first preset condition, the display unit is configured to use the second display screen to display the second interface.
  • the second floating window is displayed centrally at the bottom of the second display screen; the first floating window is displayed at the bottom of the first display screen.
  • the display unit is configured to use the first display screen to display a seventh interface; the seventh interface includes the first text; in response to the sixth operation on the first text, the display unit is configured to display The first control; the first control includes a copy option and a translation option; in response to the seventh operation on the copy option, the display unit is used to display the floating ball control; in response to the eighth operation on the floating ball control, the display unit is used for displaying the first interface by using the first display screen.
  • the display unit is configured to use the first display screen to display the eighth interface; the eighth interface includes the second text; in response to the ninth operation on the second text, the display unit is configured to display The second control; the second control includes a copy option and a translation option; in response to a tenth operation on the translation option, the display unit is configured to use the first display screen to display the first interface.
  • the second aspect and any implementation manner of the second aspect correspond to the first aspect and any implementation manner of the first aspect respectively.
  • technical effects corresponding to the second aspect and any implementation manner of the second aspect reference may be made to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, and details are not repeated here.
  • an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when running on a computer, the computer executes the method of any one of the first aspect.
  • the third aspect and any implementation manner of the third aspect correspond to the first aspect and any implementation manner of the first aspect respectively.
  • the technical effects corresponding to the third aspect and any one of the implementation manners of the third aspect refer to the above-mentioned first aspect and the technical effects corresponding to any one of the implementation manners of the first aspect, which will not be repeated here.
  • an embodiment of the present application provides a computer program product, the computer program product includes a computer program, and when running on a computer, causes the computer to execute the method of any one of the first aspect.
  • the fourth aspect and any implementation manner of the fourth aspect correspond to the first aspect and any implementation manner of the first aspect respectively.
  • the technical effects corresponding to the fourth aspect and any one of the implementation manners of the fourth aspect refer to the above-mentioned first aspect and the technical effects corresponding to any one of the implementation manners of the first aspect, and details are not repeated here.
  • all or part of the program in the fifth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of the software architecture of the electronic device provided by the embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a window manager provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a folding screen mobile phone provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface displaying a floating window provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface displaying a floating window in a vertical screen state provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of an interface displaying a floating window in a horizontal screen state provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an interface of a folding screen mobile phone with an external screen flipped according to an embodiment of the present application
  • FIG. 9 is a schematic diagram of an interface flipping the outer screen of another folding screen mobile phone provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an interface flipping the outer screen of another folding screen mobile phone provided by the embodiment of the present application.
  • FIG. 11 is another schematic diagram of an interface displaying a floating window in a vertical screen state provided by an embodiment of the present application.
  • FIG. 12 is another schematic diagram of an interface displaying a floating window in a vertical screen state provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an interface of an internal screen flip of a folding screen mobile phone provided by an embodiment of the present application.
  • FIG. 14 is a schematic diagram of an interface of an unfolded and folded screen mobile phone provided by an embodiment of the present application.
  • Fig. 15 is a schematic interface diagram of another unfolded and folded screen mobile phone provided by the embodiment of the present application.
  • Fig. 16 is a schematic diagram of a non-modal interface provided by the embodiment of the present application.
  • Fig. 17 is another non-modal interface schematic diagram provided by the embodiment of the present application.
  • FIG. 18 is a schematic flow diagram of a window interaction provided by an embodiment of the present application.
  • FIG. 19 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 function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there can be three types of relationships, for example, A and/or B can indicate:
  • a and B may be singular or plural.
  • the character "/" generally indicates that the contextual objects are an "or” relationship.
  • "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • at least one item (piece) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b, c can be single or multiple.
  • more electronic devices can support the automatic rotation function of the screen. For example, when the electronic device receives the user's operation of switching from The vertical screen is switched to the horizontal screen to meet the user's needs for the automatic rotation function.
  • the interface of the electronic device includes a floating window, and the electronic device receives an operation from the user to switch from the vertical screen to the horizontal screen, the electronic device needs to reasonably adjust the floating window according to the size of the floating window and the size of the screen of the electronic device. display.
  • the interface of the electronic device includes a floating window
  • the electronic device includes multiple screens
  • the electronic device is a folding screen mobile phone
  • the folding screen mobile phone includes an inner screen and an outer screen
  • the inner screen and the outer screen since the inner screen and the outer screen
  • the different aspect ratios of different screens make it difficult to display the floating window reasonably according to the aspect ratio of the screen and the size of the floating window when the folding screen mobile phone receives the operation of flipping the screen by the user on any screen.
  • the folding screen mobile phone Normally, when the floating window is displayed on the inner screen of the folding screen mobile phone, and the folding screen mobile phone receives an operation from the user to switch from the portrait state to the landscape state, the folding screen mobile phone cannot automatically flip the floating window; and the The floating window is a modal dialog box.
  • the modal dialog box means that when it is displayed, the program will suspend execution until the modal dialog box is closed before continuing to perform other tasks in the program, such as clicking the OK, Cancel, Close button, etc. to close the dialog box .
  • an embodiment of the present application provides a window interaction method and an electronic device, so that the electronic device can reasonably display the floating window on different pages or in different states of the electronic device, thereby enhancing the user experience of using the floating window .
  • the aforementioned electronic device may also be called a terminal (terminal), user equipment (user equipment, UE), mobile station (mobile station, MS), mobile terminal (mobile terminal, MT) and so on.
  • the electronic device can be a mobile phone with a window display function, a folding screen mobile phone, a smart TV, a wearable device, a tablet, a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) electronic device, an augmented reality (augmented reality, AR) electronic equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, and smart grids Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • the embodiments of the present application do not limit the specific technology and specific device form adopted by the electronic device.
  • FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a 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 gyroscope 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 structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown in the illustrations, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), 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 processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. For example, the processor 110 is configured to execute the method for detecting ambient light in the embodiment of the present application.
  • the controller may be the nerve center and command center of the electronic equipment.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is 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 change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel may use an 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.
  • the software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the Android system with layered architecture is taken as an example to illustrate the software structure of the electronic device.
  • FIG. 2 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application.
  • electronic devices can divide the Android system into five layers, which are applications, application framework, Android runtime, system library, and hardware abstraction layer ( hardware abstract layer, HAL, not shown in the figure) and the kernel layer (kernel).
  • layers which are applications, application framework, Android runtime, system library, and hardware abstraction layer ( hardware abstract layer, HAL, not shown in the figure) and the kernel layer (kernel).
  • the electronic device may further include a hardware layer, and the hardware layer may include: a gyro sensor for detecting the flip state of the electronic device, an angle chain sensor for detecting the folding state of the electronic device, and the like.
  • the application program layer may include a series of application program packages.
  • the application program layer may include application programs such as setting, calendar, map, and alarm clock (application programs may be referred to as applications for short), which is not limited in this embodiment of the present application.
  • the application layer may further include a situation awareness module, a business logic processing module, a business presentation module, and the like.
  • the context awareness module, the business logic processing module and the business presentation module may be independent APPs, or may be integrated into different APPs, or may be integrated into the same APP, which is not limited in this application.
  • the situational awareness module operates permanently or with low power consumption, and has the ability to perceive external facts or environments.
  • the situational awareness module can detect related events and obtain the status of events from other applications in the application layer or application framework layer or system layer or kernel layer through API (Application Programming Interface), such as detecting Bluetooth connection, network connection, monitoring user SMS, custom timers, etc.
  • API Application Programming Interface
  • the main function of the context awareness module is to monitor whether there is a copy event on the clipboard, and when it detects that there is a copy event 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 clipped content in the clipboard, that is, the name of the application package.
  • APP source application
  • the content of the clipboard recognizes that the clipped 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, and notify the business logic processing module when an operation to exit the current page is detected.
  • the business logic processing module (such as: computing engine) has business logic processing capabilities, and is used to realize the logic of displaying and disappearing 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 context awareness module, and judges whether the translation condition is satisfied, thereby judging whether to display the floating ball. The business logic processing module can also judge whether to display the floating window and display the translation result in the floating window according to the click event of the floating ball triggered by the user and the content of the translation result obtained from the third-party server. Or, when the business logic processing module receives a translation event triggered by the user, it can obtain the content of the translation result from the third-party server, and judge whether to display the floating window and display the translation result in the floating window.
  • the business logic processing module receives a translation event triggered by the user, it can obtain the content of the translation result from the third-party server, and judge whether to display the floating window and display the translation result in the floating window.
  • the business logic processing module can also be used to determine whether to display or disappear the floating ball or the floating window on the electronic device according to the disappearance event of the floating ball or the 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 may be recognized that the text is at least one of types such as schedule, link to be shared, Taobao password, and URL. In another example, the language of the text can also be identified.
  • the service presentation module (such as YOYO suggestion) is used to display or disappear the floating ball or the floating window on the screen of the mobile phone.
  • the service presentation module receives a command to display a floating ball or a 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 service presentation module can also present the text copied by the user and its corresponding translation results in the floating window.
  • the service presentation module can also notify the window manager to display or disappear the floating ball or floating window on the electronic device according to the disappearance event of the floating ball or floating window triggered by the user.
  • the application framework layer may include a window manager, a device state management module, a view system, a resource manager, a notification manager, etc., an activity manager, a clipboard manager, etc., which are not discussed in this embodiment of the present application. Do not make any restrictions.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • the window management module may include: an external screen management module for managing external screen display, an internal screen management module for managing internal screen display, and the like.
  • the device state management module is used for monitoring the state of the electronic device, for example, monitoring the flipping state of the screen of the electronic device, or monitoring the folding state of the electronic device.
  • the clipboard manager is used to manage the clipboard.
  • the clipboard is a temporary storage area for temporarily storing exchanged information.
  • the activity manager is used to manage the life cycle of each application program and the navigation fallback function, and is responsible for creating the main thread of Android and maintaining the life cycle of each application program.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application 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 the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library may include multiple functional modules.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: 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 includes at least a display driver, a camera driver, an audio driver, and a 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 the translation application, which is used to display the content of the translation application, and is also an example of the memo application
  • the application window of is used to display the contents of the Notes application.
  • the interface of each application is composed of activities, and activities are composed of views, views are the existence forms of windows, and windows are the carriers of views.
  • 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 of all activities is the base window (TYPE_BASE_APPLICATION), that is, all other types of application windows will appear on top of the base window.
  • the child window is attached to the parent window, that is, it cannot exist independently, and needs to depend on an application, such as application input method window, application prompt window, etc.
  • an application such as application input method window, application prompt window, etc.
  • the parent window is invisible, 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 to have a parent window.
  • the system window does not belong to any application, it is created by the system and only belongs to the system itself, and often needs to declare permissions to create, such as shutdown dialog window, status bar window, search bar window, input method window, warning dialog box, system volume bar wait.
  • the hierarchy of the system window is generally higher than that of the application window and sub-windows.
  • a floating ball and a floating window are arranged in the system window. From the above analysis, it can be seen that the floating ball and the floating window are system windows and cannot be set in the application window.
  • the essence of the floating window and the floating ball is to hand over a view to a window manager for management.
  • the z-axis range of the application window is 1-99
  • the range of the sub-window is 1001-1999
  • the system window is (2000- 2999)
  • the floating window and the floating ball can only be implemented within the scope of the system window. If you want to pop up a custom system-level window, you need to dynamically apply for permission.
  • the Z-axis is the concept of the hierarchy of the Android window, and the window with a larger Z-axis is on the top layer.
  • the floating ball and floating window set in the system window do not have the function of activity.
  • the floating ball and floating window Similar to the activity in the application window, that is, display content and operations based on the user sliding on the floating ball and floating window, it is necessary to additionally set sliding operations and sliding conflicts in the system window, and According to the user's click and other operations, determine the focus of the response window, etc. Specifically, it will be clearer based on the expression of the following content.
  • an electronic device is taken as an example of a folding screen mobile phone for illustration, and this example does not constitute a limitation to the embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a folding-screen mobile phone provided by an embodiment of the present application.
  • the folding screen mobile phone includes an inner screen and an outer screen.
  • the folding screen mobile phone can use the outer screen to display the The interface of the floating window, or when the folding screen mobile phone is in the unfolded state (or understood as a folding angle between 70 degrees and 180 degrees, etc.), the folding screen mobile phone can use the inner screen to display the interface including the floating window.
  • folding angle of the folding-screen mobile phone when it is in the folded state or in the unfolded state is only an example, and cannot limit the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface displaying a floating ball provided in an embodiment of the present application. It can be understood that FIG. 5 is an example of using the outer screen of the folding screen mobile phone to trigger the floating window. The process of triggering the floating window on the inner screen of the folding screen mobile phone can refer to the embodiment corresponding to FIG. 5 , which will not be described in detail below.
  • an option switch such as "copy trigger translation” can be set.
  • the folding screen mobile phone can trigger the translation function, and display the floating ball corresponding to the translation function; further, when the user triggers the floating ball, the translation result can be displayed.
  • the folding screen mobile phone When the folding screen mobile phone receives an operation from the user to open a certain news page in the news application, the folding screen mobile phone may display an interface as shown in (a) in FIG. 5 , and the interface may be displayed as a paragraph of English.
  • the folding screen mobile phone can pop up an option bar 501, which can include Operation options such as copy, and translate.
  • the folding screen mobile phone when the folding screen mobile phone receives the user’s operation of triggering the “copy” option in the option bar 501 corresponding to the word “patent”, the folding screen mobile phone can recognize the user’s intention , and display the interface shown in (b) in FIG. 5 .
  • the interface may include a floating ball logo 502, which may be used to indicate that the folding screen mobile phone is recognizing the user's intention, and the user's intention recognized by the folding screen mobile phone Intents can be translated. It can be understood that during the identification process of the folding screen mobile phone, the user's intention can be recognized without the user's operation, for example, without the user clicking any content on the page in (b) in FIG. 5 .
  • the folding screen mobile phone When the folding screen mobile phone recognizes that the user's intention is to translate the word "patent", it displays an interface as shown in (c) in FIG. Provides an entry to display translation results.
  • the folding screen mobile phone may display the interface shown in (d) in FIG. 5 .
  • a floating window 504 can be displayed in the interface, and the translation result of "patent" can be displayed in the floating window 504 .
  • the translation results displayed in the floating window 504 include the English word "patent” copied by the user and the translation result of the Chinese definition of the word, namely "patent".
  • the content displayed in the floating window 504 also includes: controls for voice reading, controls for copying translation results, controls for switching translation languages, and the like.
  • the floating window 504 is the initial state of the floating window, that is, the default form displayed after the user clicks on the floating ball 503 is a half-screen state, occupying about half of the outer screen of a folding screen mobile phone.
  • the folding screen mobile phone may cancel the display of the floating ball 503, so as to achieve a better user experience.
  • the folding screen mobile phone in addition to opening the floating window 504 based on the interface shown in (a)-(d) in Figure 5 above, the folding screen mobile phone can also be based on the following convenient operation Open the floating window.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation to trigger the "translate” option in the option bar 501 corresponding to the word "patent", the folding screen mobile phone displays the In the interface shown in (d), for example, the floating window 504 can be called out in a folding screen mobile phone.
  • the method for opening the floating window of the folding screen mobile phone and the function corresponding to the floating window are not specifically limited.
  • FIG. 6 is a schematic diagram of an interface for displaying a floating window in a vertical screen state according to an embodiment of the present application.
  • the interface shown in (a) in FIG. 6 may be a floating window 601 in a half-screen state displayed on the outer screen of the folding screen mobile phone when the folding screen mobile phone is in a vertical screen state.
  • the floating window in the half-screen state occupies about half of the screen of the current application, and displays part of the translation result content.
  • the half-screen floating window can also be used as a default floating window as an example, that is, the first floating window displayed after the user copies text.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of tapping the floating window 601 and sliding down, the folding screen mobile phone can display the ( b) The interface shown.
  • the interface may be a floating window 602 in a bottom state displayed on the outer screen of the folding screen mobile phone when the folding screen mobile phone is in a vertical screen state.
  • the floating window in the bottom state is located at the bottom of the screen of the current application and does not display any translation result content, which is beneficial for the user to continue to access the content in the current application to improve user experience.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of touching the floating window 602 to slide upwards, and sliding to the upper edge of the external screen in the vertical screen state , the folding screen mobile phone may display an interface as shown in (c) in FIG. 6 .
  • the interface may be a floating window 603 in a full-screen state displayed on the outer screen of the folding screen mobile phone when the folding screen mobile phone is in a portrait state.
  • the floating window in the full-screen state can exemplarily occupy the entire screen of the current application, and its expansion is based on the user's drag operation, which is used to display more translation result content than the floating window in the half-screen state, so as to improve user experience .
  • the width of the floating window in the interface shown in (a) in FIG. 6 , the interface shown in (b) in FIG. 6 , and the interface shown in (c) in FIG. 6 is the same as The width of the outer screen is the same.
  • the folding screen mobile phone can also be based on other user operations.
  • the interface shown in (a) in FIG. 6 the interface shown in (b) in FIG. 6 , and the interface shown in (c) in FIG. 6 Switching is performed in the displayed interface, which is not specifically limited in this embodiment of the application.
  • FIG. 7 is a schematic diagram of an interface for displaying a floating window in a horizontal screen state according to an embodiment of the present application.
  • the interface may be a floating window 701 in a bottom state displayed on the outer screen of the folding screen mobile phone when the folding screen mobile phone is in a landscape state.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of touching the floating window 701 to slide up and slide to the top edge of the external screen in the landscape state , the folding screen mobile phone may display an interface as shown in (b) in FIG. 7 .
  • the interface may be a floating window 702 in a full-screen state displayed on the outer screen of the folding screen mobile phone when the folding screen mobile phone is in a landscape state.
  • the width of the floating window in the interface shown in (a) in FIG. 7 and the interface shown in (b) in FIG. 7 is consistent with the height of the outer screen.
  • the folding screen mobile phone can also switch between the interface shown in (a) in FIG. 7 and the interface shown in (b) in FIG. 7 based on other user operations.
  • This is not specifically limited.
  • the floating window can display different forms according to different operations of the user. In this way, different needs of users for the floating window displayed on the outer screen of the folding screen mobile phone are met, and the user's experience of using the floating window function in the folding screen mobile phone is improved.
  • the floating window displayed on the outer screen of the folding screen mobile phone can be flexibly adjusted according to the user's flipping requirements, thereby improving the user's experience of using the floating window function in the folding screen mobile phone.
  • the floating window in the outer screen of the folding screen mobile phone can be in the bottom state ( Figure 8 corresponds to the embodiment); or, when the user flips the screen when the floating window in the outer screen of the folding screen mobile phone is in a half-screen state, the floating window in the outer screen of the folding screen mobile phone can be in a full screen state ( Figure 9 corresponds to the embodiment); or, when the user flips the screen when the floating window in the outer screen of the folding screen mobile phone is in a full-screen state, the floating window in the outer screen of the folding screen mobile phone can be in a full-screen state (as shown in FIG. 10 corresponding embodiment
  • the floating window in the outer screen of the folding screen mobile phone can be at the bottom state.
  • FIG. 8 is a schematic diagram of an interface of an external screen flip of a folding screen mobile phone provided in an embodiment of the present application.
  • the floating window in the outer screen of the folding screen mobile phone is in the bottom state as shown in (a) in Figure 8
  • the folding screen mobile phone receives the user flipping the screen, for example, the user flips from the vertical screen state of the folding screen mobile phone
  • the folding screen mobile phone can display the interface shown in (b) in Figure 8.
  • the outer screen of the folding screen mobile phone The floating window in can be in the bottom state.
  • the floating window in the outer screen of the folding screen mobile phone may be in a full-screen state.
  • FIG. 9 is a schematic diagram of an interface for flipping the outer screen of another folding screen mobile phone provided in an embodiment of the present application.
  • the floating window in the outer screen of the folding screen mobile phone is in a half-screen state as shown in (a) in Figure 9, when the folding screen mobile phone receives the user’s flipping of the screen, for example, the user switches from the vertical screen state of the folding screen mobile phone
  • the folding screen mobile phone can display the interface shown in (b) in Figure 9.
  • the outer surface of the folding screen mobile phone The floating window in the screen can be in full screen state.
  • the floating window of the folding screen mobile phone in the horizontal screen state only has two states, namely the bottom state and the full screen state
  • the vertical screen state The half-screen floating window at the bottom can be switched to the full-screen floating window in the horizontal screen state, so that the folding screen mobile phone can meet the user's needs for using the floating window when switching screens.
  • the floating window in the outer screen of the folding screen mobile phone may be in a full-screen state.
  • FIG. 10 is a schematic diagram of an external screen flip interface of another folding screen mobile phone provided in an embodiment of the present application.
  • the floating window in the outer screen of the folding screen mobile phone is in full screen state as shown in (a) in Figure 10
  • the folding screen mobile phone receives the user flipping the screen, for example, the user flips from the vertical screen state of the folding screen mobile phone
  • the folding screen mobile phone can display the interface shown in (b) in Figure 10.
  • the outer screen of the folding screen mobile phone The floating window in can be in full screen state.
  • the display mode of the floating window in the inner screen of the foldable screen mobile phone can be compared to that shown in Fig. 8 (or FIG. 9 or FIG. 10 ) corresponding to the description in the embodiment, which will not be repeated here.
  • the inner screen of the folding screen mobile phone can also open the floating window based on the method described in the embodiment corresponding to FIG. 5 .
  • the inner screen of the folding screen mobile phone can present three floating window states according to the user's operation on the floating window.
  • FIG. 11 is a schematic diagram of another interface for displaying a floating window in a vertical screen state according to an embodiment of the present application.
  • the interface may be a floating window 1101 in a half-screen state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a portrait state.
  • the floating window 1101 in the half-screen state can be displayed in the center at the bottom of the screen, and there are certain blank areas on the left and right sides of the floating window 1101 and the inner screen of the folding screen mobile phone. It can be understood that due to the large size of the inner screen, the floating window displayed in the middle of the bottom of the screen may not affect the user's viewing of other content and meet the user's needs for the floating window.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of tapping the floating window 1101 and sliding down, the folding screen mobile phone can display the ( b) The interface shown.
  • the interface may be a floating window 1102 in a bottom state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a portrait state.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of touching the floating window 1102 to slide up, and slide to the upper edge of the inner screen in the portrait state , the folding screen mobile phone may display an interface as shown in (c) in FIG. 11 .
  • the interface may be a floating window 1103 in a full-screen state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a portrait state.
  • the width of the floating window in the interface shown in (a) in 11, the interface shown in (b) in 11, and the interface shown in (c) in Figure 11 is smaller than that of the inner screen width, and the floating windows are centered at the bottom of the screen.
  • the folding screen mobile phone can also be based on other user operations.
  • the interface shown in (a) in FIG. 11 the interface shown in (b) in FIG. 11 , and the interface shown in (c) in FIG. 11 Switching is performed in the displayed interface, which is not specifically limited in this embodiment of the application.
  • the inner screen of the folding screen mobile phone can also open the floating window based on the method described in the embodiment corresponding to FIG. 5 .
  • the inner screen of the folding screen mobile phone can present three floating window states according to the user's operation on the floating window.
  • FIG. 12 is a schematic diagram of another interface for displaying a floating window in a vertical screen state according to an embodiment of the present application.
  • the interface may be a floating window 1201 in a half-screen state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a landscape state.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of tapping the floating window 1201 and sliding down, the folding screen mobile phone can display ( b) The interface shown.
  • the interface may be a floating window 1202 in a bottom state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a landscape state.
  • the folding screen mobile phone when the folding screen mobile phone receives the user's operation of touching the floating window 1202 to slide up and slide to the top edge of the inner screen in the landscape state , the folding screen mobile phone may display an interface as shown in (c) in FIG. 12 .
  • the interface may be a floating window 1203 in a full-screen state displayed on the inner screen of the folding screen mobile phone when the folding screen mobile phone is in a landscape state.
  • the width of the floating window in the interface shown in (a) in 12, the interface shown in (b) in 12, and the interface shown in (c) in Figure 12 is smaller than that of the inner screen height, and the floating windows are centered at the bottom of the screen.
  • the folding screen mobile phone can also be based on other user operations.
  • the interface shown in (a) in FIG. 12 the interface shown in (b) in FIG. 12 , and the interface shown in (c) in FIG. 12 Switching is performed in the displayed interface, which is not specifically limited in this embodiment of the application.
  • the floating window can display different forms according to different operations of the user. In this way, the different needs of users for the floating window displayed on the inner screen of the folding screen mobile phone are met, and the user's experience of using the floating window function in the folding screen mobile phone is improved.
  • the floating window displayed on the inner screen of the folding screen mobile phone can be flexibly adjusted according to the user's flipping requirements, thereby improving the user's experience of using the floating window function in the folding screen mobile phone.
  • the folding screen mobile phone when the folding screen mobile phone is in the vertical screen state, when the user flips the screen while the floating window in the internal screen of the folding screen mobile phone is in a half-screen state, the floating window in the internal screen of the folding screen mobile phone can be in a half-screen state. Screen state (as shown in the embodiment corresponding to Figure 13).
  • FIG. 13 is a schematic diagram of an interface of an internal screen flip of a folding screen mobile phone provided in an embodiment of the present application.
  • the floating window in the inner screen of the folding screen mobile phone as shown in (a) in Figure 13 is in a half-screen state
  • the folding screen mobile phone receives the user’s flipping of the screen, for example, the user switches from the vertical screen state of the folding screen mobile phone
  • the inner screen of the folding screen mobile phone can display the interface shown in (b) in Figure 13.
  • the folding screen The floating window in the inner screen of the mobile phone may be in a half-screen state.
  • the state of the floating window will not be changed when the folding screen mobile phone flips the screen.
  • a folding screen mobile phone cannot switch the floating window in the inner screen from a half-screen state to a full-screen state according to the user's operation of flipping the screen.
  • the floating window in the inner screen of the folding screen mobile phone when the folding screen mobile phone receives the user flipping the screen, for example, the user flips from the vertical screen state of the folding screen mobile phone to the horizontal screen state of the folding screen mobile phone During the operation, the floating window in the inner screen of the folding screen mobile phone can be in the bottom state; or, when the floating window in the inner screen of the folding screen mobile phone is in the full screen state, when the folding screen mobile phone receives the user flipping the screen, for example When the user flips from the vertical screen state of the folding screen mobile phone to the horizontal screen state of the folding screen mobile phone, the floating window in the inner screen of the folding screen mobile phone can be in a full screen state.
  • the display mode of the floating window in the inner screen of the foldable screen mobile phone can be compared to that shown in Fig.
  • the description in the embodiment corresponding to 13 will not be repeated here.
  • the floating window displayed in the folding screen mobile phone can be flexibly displayed in different interfaces of the folding screen mobile phone according to the user's folding requirements for the folding screen mobile phone. Specifically, when the folding screen mobile phone is always in the vertical screen state, when the user unfolds the mobile phone when the floating window on the outer screen of the folding screen mobile phone is in a half-screen state, the floating window displayed on the inner screen of the folding screen mobile phone can It is in a half-screen state (as shown in the embodiment corresponding to Figure 14).
  • FIG. 14 is a schematic interface diagram of an unfolded and folded screen mobile phone provided by an embodiment of the present application.
  • the folding screen mobile phone shown in (a) in Figure 14 is always in the vertical screen state, and the floating window in the outer screen of the folding screen mobile phone is in the half-screen state, when the folding screen mobile phone receives the user unfolding the folding screen
  • the inner screen of the folding screen mobile phone can display the interface shown in (b) in Figure 14, and the floating window in the interface shown in (b) in Figure 14 can be in a half-screen state.
  • the folding screen mobile phone when the folding screen mobile phone is always in the vertical screen state, and the floating window in the outer screen of the folding screen mobile phone is in the bottom state, when the folding screen mobile phone receives the user's operation to unfold the folding screen mobile phone, the folding screen mobile phone's The floating window in the inner screen can be in the bottom state; or, when the folding screen mobile phone is always in the vertical screen state, and the floating window in the outer screen of the folding screen mobile phone is in the full screen state, when the folding screen mobile phone receives the user's unfolding and folding When operating a mobile phone with a folding screen, the floating window in the inner screen of the folding screen mobile phone can be in a full-screen state.
  • the floating window displayed in the folding screen mobile phone can be flexibly displayed in different interfaces of the folding screen mobile phone according to the user's folding requirements for the folding screen mobile phone and the rotation requirements for the screen. Specifically, when the folding screen mobile phone is in the horizontal screen state, and the user unfolds the mobile phone and rotates the screen when the floating window in the outer screen of the folding screen mobile phone is in the bottom state, the folding screen mobile phone is in a balanced state at this time, and the folding screen
  • the floating window displayed on the inner screen of the mobile phone may be in a half-screen state (as shown in the embodiment corresponding to FIG. 15 ).
  • FIG. 15 is a schematic interface diagram of another unfolded and folded screen mobile phone provided by the embodiment of the present application.
  • the folding screen mobile phone shown in (a) in Figure 15 is in the horizontal screen state, and the floating window in the outer screen of the folding screen mobile phone is in the bottom state, when the folding screen mobile phone receives the user unfolding the folding screen mobile phone, And when the user flips the screen, for example, when flipping from the horizontal screen state of the folding screen mobile phone to the vertical screen state of the folding screen mobile phone, the inner screen of the folding screen mobile phone can display the interface shown in (b) in Figure 15, The floating window in the interface shown in (b) of FIG. 15 may be in the bottom state.
  • the state of the floating window in the display screen of the folding screen mobile phone may not change.
  • the folding screen mobile phone cannot According to the user's operation of flipping the screen and folding (or unfolding) the mobile phone, the floating window in the outer screen is switched from a half-screen state to a full-screen state in the inner screen.
  • the floating window in the outer screen of the folding screen mobile phone can meet the non-modal (or called non-modal dialog box).
  • FIG. 16 is a schematic diagram of a non-modal interface provided by the embodiment of the present application. This non-modality can be understood as when the floating window exists, the user can touch or click the area outside the floating window.
  • the window attribute of the floating window is set to FLAG_NOT_TOUCH_MODAL, so in this mode, the system will pass the touch/click event outside the current window area to the underlying window, and the click event within the current window area will be processed by the current window.
  • the floating window when the floating window is in half-screen or full-screen state, set the window property of the floating window to FLAG_NOT_TOUCH_MODAL to control focus event processing; when the floating window is in the bottom state, set the window property of the floating window to FLAG_NOT_FOCUSABLE
  • the focus event is handed over to the original text of the current application for processing.
  • the current application is the reading application currently used by the current user in the implementation manner of this application.
  • FLAG_NOT_FOCUSABLE Indicates that the current window does not need to get the focus, nor does it need to receive various input events. This flag will enable FLAG_NOT_TOUCH_MODAL at the same time, and the final event will be directly passed to the specific focus window of the lower layer.
  • FLAG_NOT_TOUCH_MODAL Indicates that in this mode, the system will pass touch/click events outside the current window area to the underlying window, and click events within the current window area will be processed by the current window. This flag is very important. Generally speaking, this flag needs to be turned on, otherwise other windows will not be able to receive touch/click events.
  • the folding screen mobile phone can display the interface shown in (b) in Figure 16, and the floating window in the interface shown in (b) in Figure 16 can be at the bottom.
  • non-modal floating window allows users to browse and trigger areas other than the floating window without closing the floating window on the outer screen of the folding screen mobile phone, thereby improving user experience.
  • FIG. 17 is a schematic diagram of another non-modal interface provided by the embodiment of the present application.
  • the folding screen mobile phone can display the interface shown in (b) in Figure 17, and the floating window in the interface shown in (b) in Figure 17 can be at the bottom.
  • non-modal floating window enables users to browse and trigger areas other than the floating window without closing the floating window on the inner screen of the folding screen mobile phone, thereby improving user experience.
  • FIG. 18 is a schematic flowchart of window interaction provided by the 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, and a hardware layer, etc.; the application layer may include a service presentation module, and the application framework A window manager and a device status management module may be included in the layer; the window management module may include: an external screen management module for managing the external screen display, and an internal screen management module for managing the internal screen display; the hardware layer may Including gyro sensor and angle chain sensor.
  • the window interaction method may include the following steps:
  • the user triggers a translation event on the internal screen.
  • the translation event may be an event for copying the text to be translated and triggering the display of the floating window corresponding to the translation function.
  • the internal screen management module In response to the user triggering a translation event, the internal screen management module sends a message to the service presentation module for instructing to display a floating window on the internal screen.
  • the service presentation module invokes the display to display the floating window on the inner screen.
  • the user triggers a flip event on the inner screen.
  • the flipping event may be a flipping event of the user for the screen, for example, a flipping event when the electronic device is flipped from a portrait state to a landscape state, or a flip event when the electronic device is flipped from a landscape state to a portrait state.
  • the gyroscope sensor In response to the user triggering a flip event on the inner screen, the gyroscope sensor sends the angular acceleration data to the device state management module.
  • the angular acceleration data can be used to indicate the horizontal screen or vertical screen state of the electronic device.
  • the device state management module sends the angular acceleration data to the internal screen management module.
  • the internal screen management module updates the page according to the angular acceleration data and the floating window, and obtains the flipped page.
  • the internal screen management module when the internal screen management module determines based on the angular acceleration data that the current state of the vertical screen is flipped to the horizontal screen state, the internal screen management module can respond to the flip of the floating window, update the page, and obtain the flipped page. Wherein, the internal screen management module can update the page in the internal screen based on the description in the embodiment corresponding to FIG. 13 .
  • the internal screen management module sends a message for instructing to display the flipped page to the service presentation module.
  • the service presentation module invokes the display to display the flipped page.
  • the electronic device can realize reasonable display of the floating window according to the flipping of the user.
  • the external screen management module may update pages in the external screen based on the descriptions in the embodiments corresponding to FIG. 8 to FIG. 10 .
  • the electronic device can adjust The floating window is displayed reasonably, for details, refer to the steps shown in S1810-S1816.
  • the user triggers a folding event when the floating window is displayed on the inner screen.
  • the folding event can be an event when the user folds the inner screen (or understood as an event when the folding angle meets 0°-70°), or the folding event can also be an event when the user unfolds the inner screen (or understood as an event when the folding angle meets event at 70°-180°).
  • the angle chain sensor In response to the user triggering a folding event when the floating window is displayed on the inner screen, the angle chain sensor sends the folding angle data to the device status management module.
  • the device state management module determines whether to display the floating window on the inner screen or to display the floating window on the outer screen according to the folding angle.
  • the steps shown in S1813-S1816 may be executed.
  • the execution logic of the modules in the electronic device can be compared to the description in the steps shown in S1813-S1816 below, which will not be repeated hereafter .
  • the device state management module may determine to display a floating window on the external screen, and perform the steps shown in S1812; or, when the device state management module determines that the folded When the angle is 70°-180°, the device status management module may determine to continue displaying the floating window on the inner screen.
  • the device status management module sends a message for instructing to display a floating window on the external screen to the external screen management module.
  • the external screen management module updates the page to obtain the folded page.
  • the external screen management module may update the page in the external screen based on the description in the embodiment corresponding to FIG. 14 to obtain a folded page.
  • the external screen management module sends a message for instructing to display the folded page on the external screen to the service presentation module.
  • the service presentation module invokes the display to display the folded page on the external screen.
  • the module in the electronic device can first respond to the flipping event (such as the steps shown in S1804-S1809 ), and then respond to the folding event (steps shown in S1810-S1816); or, the module in the electronic device can also respond to the folding event first (steps shown in S1810-S1816) and then respond to the flipping event (such as the steps shown in S1804-S1809); or, the modules in the electronic device can also respond to the folding event and the flipping event simultaneously.
  • the flipping event such as the steps shown in S1804-S1809
  • the module in the electronic device can also respond to the folding event first (steps shown in S1810-S1816) and then respond to the flipping event (such as the steps shown in S1804-S1809)
  • the modules in the electronic device can also respond to the folding event and the flipping event simultaneously.
  • the electronic device can reasonably display the floating window on different pages or in different states of the electronic device, thereby enhancing the user's experience of using the floating window.
  • FIG. 19 is a schematic structural diagram of a window interaction device provided by an embodiment of the present application.
  • the window interaction device 190 may be used in a communication device, circuit, hardware component or chip, and the window interaction device includes: a display unit 1901 , a processing unit 1902 and a communication unit 1903 .
  • the display unit 1901 is used to support the step of exiting the display performed by the resource allocation method
  • the processing unit 1902 is used to support the step of information processing performed by the window interaction device
  • the communication unit 1903 is used to support the data transmission and data reception performed by the resource allocation method step.
  • the communication unit 1903 may be an input or output interface, a pin, or a circuit.
  • the window interaction apparatus may further include: a storage unit 1904 .
  • the processing unit 1902, the communication unit 1903, and the storage unit 1904 are connected through lines.
  • the storage unit 1904 may include one or more memories, and the memories may be devices used to store programs or data in one or more devices and circuits.
  • the storage unit 1904 may exist independently, and is connected to the processing unit 1902 of the window interaction device through a communication line.
  • the storage unit 1904 can also be integrated with the processing unit 1902 .
  • the storage unit 1904 may store computer execution instructions of the methods in the electronic device, so as to enable the processing unit 1902 to execute the methods in the foregoing embodiments.
  • the storage unit 1904 may be a register, a cache, or a RAM, etc., and the storage unit 1904 may be integrated with the processing unit 1902 .
  • the storage unit 1904 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1904 may be independent from the processing unit 1902.
  • the instructions stored in the memory for execution by the processor may be implemented in the form of computer program products.
  • 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 the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • 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.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include a 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 devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (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日提交中国专利局、申请号为202210023808.6、申请名称为“窗口交互方法及电子设备”的中国专利申请的优先权,以及要求于2022年01月30日提交中国专利局、申请号为202210114777.5、申请名称为“窗口交互方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种窗口交互方法和电子设备。
背景技术
随着互联网的普及和发展,人们对于电子设备的功能需求也越发多样化。例如,为了满足用户对于多个功能的使用需求,较多电子设备可以支持电子设备的悬浮窗的显示。例如,用户可以通过复制待翻译文本触发翻译功能对应的悬浮窗的显示,并且,用户也可以通过该翻译功能对应的悬浮窗查看翻译内容。
然而,当电子设备为折叠屏手机时,由于折叠屏手机的不同屏幕的尺寸有所不同,使得折叠屏手机无法根据用户针对任一屏的使用需求,对悬浮窗的显示进行调节,进而影响用户的使用体验。
发明内容
本申请实施例提供一种窗口交互方法和电子设备,使得电子设备可以实现在不同页面或不同电子设备的状态下,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
第一方面,本申请实施例提供一种窗口交互方法,应用于电子设备,电子设备包括第一显示屏以及第二显示屏,第二显示屏可折叠,方法包括:电子设备利用第一显示屏显示第一界面;其中,第一界面包括第一悬浮窗;第一悬浮窗的宽度与第一显示屏的宽度相同,第一悬浮窗满足第一状态,且第一悬浮窗为非模态对话框;响应于对电子设备的第一操作,电子设备利用第二显示屏显示第二界面;其中,第二界面包括第二悬浮窗;第二悬浮窗的宽度小于第二显示屏的宽度,第二悬浮窗满足第一状态,且第二悬浮窗为非模态对话框。这样,使得电子设备可以实现在不同页面或不同电子设备的状态下,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
在一种可能的实现方式中,方法还包括:响应于对电子设备的第二操作,电子设备利用第二显示屏显示第三界面;其中,第三界面包括第三悬浮窗;第三悬浮窗的宽度小于第二显示屏的高度,第三悬浮窗满足第一状态。这样,电子设备可以实现用户在对屏幕翻转时对悬浮窗的翻转。
在一种可能的实现方式中,当第二界面为电子设备在处于竖屏状态下的界面时,第三界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,第二界面中还包括第一区域,第一区域为第二界面中除第二悬浮窗以外的区域,方法还包括:响应于对第一区域的第三操作,电子设备显 示第四界面;第四界面中包括第四悬浮窗,第四悬浮窗满足第二状态;第二状态与第一状态不同或相同。这样,电子设备可以实现悬浮窗的非模态,增强用户使用悬浮窗的体验感。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;第二状态包括底部态。
在一种可能的实现方式中,电子设备利用第一显示屏显示第一界面之后,方法还包括:响应于对电子设备的第四操作,电子设备利用第一显示屏显示第五界面;其中,第五界面中包括第五悬浮窗;第五悬浮窗的宽度与第一显示屏的高度相同。这样,电子设备可以实现用户在对屏幕翻转时对悬浮窗的翻转。
在一种可能的实现方式中,当第一界面为电子设备在处于竖屏状态下的界面时,第五界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;当第一悬浮窗为半屏态时,第五悬浮窗为全屏态;当第一悬浮窗为底部态时,第五悬浮窗为底部态;当第一悬浮窗为全屏态时,第五悬浮窗为全屏态。
在一种可能的实现方式中,第一界面中还包括第二区域,第二区域为第一界面中除第一悬浮窗以外的区域,电子设备利用第一显示屏显示第一界面之后,方法还包括:响应于对第二区域的第五操作,电子设备显示第六界面;第六界面中包括第六悬浮窗,第六悬浮窗满足第二状态;第二状态与第一状态不同或相同,第二状态包括底部态。这样,电子设备可以实现悬浮窗的非模态,增强用户使用悬浮窗的体验感。
在一种可能的实现方式中,响应于对电子设备的第一操作,电子设备利用第二显示屏显示第二界面,包括:响应于对电子设备的第一操作,电子设备获取第一数据;第一数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第一预设条件时,电子设备利用第二显示屏显示第二界面。这样,使得电子设备根据对于电子设备的状态的监听,执行响应的折叠步骤,实现折叠手机过程中用户对于悬浮窗的体验感。
在一种可能的实现方式中,第二悬浮窗居中显示在第二显示屏的底部;第一悬浮窗显示在第一显示屏的底部。
在一种可能的实现方式中,电子设备利用第一显示屏显示第一界面,包括:电子设备利用第一显示屏显示第七界面;第七界面中包括第一文本;响应于对第一文本的第六操作,电子设备显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的第七操作,电子设备显示悬浮球控件;响应于对悬浮球控件的第八操作,电子设备利用第一显示屏显示第一界面。这样,使得电子设备可以基于用户的复制操作,灵活调出悬浮窗。
在一种可能的实现方式中,电子设备利用第一显示屏显示第一界面,包括:电子设备利用第一显示屏显示第八界面;第八界面中包括第二文本;响应于对第二文本的第九操作,电子设备显示第二控件;第二控件中包括复制选项以及翻译选项;响应于对翻译选项的第十操作,电子设备利用第一显示屏显示第一界面。这样,使得电子设备可以基于用户的翻译操作,灵活调出悬浮窗。
第二方面,本申请实施例提供一种窗口交互装置,应用于电子设备,电子设备包 括第一显示屏以及第二显示屏,第二显示屏可折叠,方法包括:显示单元,用于利用第一显示屏显示第一界面;其中,第一界面包括第一悬浮窗;第一悬浮窗的宽度与第一显示屏的宽度相同,第一悬浮窗满足第一状态,且第一悬浮窗为非模态对话框;响应于对电子设备的第一操作,显示单元,用于利用第二显示屏显示第二界面;其中,第二界面包括第二悬浮窗;第二悬浮窗的宽度小于第二显示屏的宽度,第二悬浮窗满足第一状态,且第二悬浮窗为非模态对话框。
在一种可能的实现方式中,响应于对电子设备的第二操作,显示单元,用于利用第二显示屏显示第三界面;其中,第三界面包括第三悬浮窗;第三悬浮窗的宽度小于第二显示屏的高度,第三悬浮窗满足第一状态。
在一种可能的实现方式中,当第二界面为电子设备在处于竖屏状态下的界面时,第三界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,第二界面中还包括第一区域,第一区域为第二界面中除第二悬浮窗以外的区域,响应于对第一区域的第三操作,显示单元,用于显示第四界面;第四界面中包括第四悬浮窗,第四悬浮窗满足第二状态;第二状态与第一状态不同或相同。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;第二状态包括底部态。
在一种可能的实现方式中,响应于对电子设备的第四操作,显示单元,用于利用第一显示屏显示第五界面;其中,第五界面中包括第五悬浮窗;第五悬浮窗的宽度与第一显示屏的高度相同。
在一种可能的实现方式中,当第一界面为电子设备在处于竖屏状态下的界面时,第五界面为电子设备处于横屏状态下的界面。
在一种可能的实现方式中,第一状态包括半屏态、全屏态或底部态中的任意一种;当第一悬浮窗为半屏态时,第五悬浮窗为全屏态;当第一悬浮窗为底部态时,第五悬浮窗为底部态;当第一悬浮窗为全屏态时,第五悬浮窗为全屏态。
在一种可能的实现方式中,第一界面中还包括第二区域,第二区域为第一界面中除第一悬浮窗以外的区域,响应于对第二区域的第五操作,显示单元,用于显示第六界面;第六界面中包括第六悬浮窗,第六悬浮窗满足第二状态;第二状态与第一状态不同或相同,第二状态包括底部态。
在一种可能的实现方式中,响应于对电子设备的第一操作,处理单元,用于获取第一数据;第一数据包括折叠角度数据;折叠角度数据是基于角链传感器检测得到的;在电子设备确定折叠角度数据满足第一预设条件时,显示单元,用于利用第二显示屏显示第二界面。
在一种可能的实现方式中,第二悬浮窗居中显示在第二显示屏的底部;第一悬浮窗显示在第一显示屏的底部。
在一种可能的实现方式中,显示单元,用于利用第一显示屏显示第七界面;第七界面中包括第一文本;响应于对第一文本的第六操作,显示单元,用于显示第一控件;第一控件中包括复制选项以及翻译选项;响应于对复制选项的第七操作,显示单元,用于显示悬浮球控件;响应于对悬浮球控件的第八操作,显示单元,用于利用第一显 示屏显示第一界面。
在一种可能的实现方式中,显示单元,用于利用第一显示屏显示第八界面;第八界面中包括第二文本;响应于对第二文本的第九操作,显示单元,用于显示第二控件;第二控件中包括复制选项以及翻译选项;响应于对翻译选项的第十操作,显示单元,用于利用第一显示屏显示第一界面。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第三方面以及第三方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第三方面以及第三方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第四方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行第一方面任一项的方法。
第四方面以及第四方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第四方面以及第四方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的电子设备的软件架构示意图;
图3为本申请实施例提供的一种窗口管理器的结构示意图;
图4为本申请实施例提供的一种折叠屏手机的结构示意图;
图5为本申请实施例提供的一种显示悬浮窗的界面示意图;
图6为本申请实施例提供的一种竖屏状态下的显示悬浮窗的界面示意图;
图7为本申请实施例提供的一种横屏状态下的显示悬浮窗的界面示意图;
图8为本申请实施例提供的一种折叠屏手机的外屏翻转的界面示意图;
图9为本申请实施例提供的另一种折叠屏手机的外屏翻转的界面示意图;
图10为本申请实施例提供的再一种折叠屏手机的外屏翻转的界面示意图;
图11为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图;
图12为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图;
图13为本申请实施例提供的一种折叠屏手机的内屏翻转的界面示意图;
图14为本申请实施例提供的一种展开折叠屏手机的界面示意图;
图15为本申请实施例提供的另一种展开折叠屏手机的界面示意图;
图16为本申请实施例提供的一种非模态的界面示意图;
图17为本申请实施例提供的另一种非模态的界面示意图;
图18为本申请实施例提供的一种窗口交互的流程示意图;
图19为本申请实施例提供的一种窗口交互装置的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,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建议),用于将悬浮球或悬浮窗显示或者消失在手机的屏幕上。例如,业务呈现模块接收到业务逻辑处理模块发送的显示悬浮球或悬浮窗的命令,通知窗口管理器将该悬浮球或悬浮窗显示在电子设备上。同时,业务呈现模块还可以在悬 浮窗内呈现用户复制的文本及其对应的翻译结果。另外,业务呈现模块还可以用户根据用户触发的悬浮球或悬浮窗消失的事件,通知窗口管理器将电子设备上的悬浮球或悬浮窗展示或者消失。
如图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所示,折叠屏手机包括内屏以及外屏,当折叠屏手机处于折叠状态(或理解为折叠角度满足0度-70度之间等)时,折叠屏手机可以利用外屏显示包括悬浮窗的界面,或者当折叠屏手机处于展开状态(或理解为折叠角度满足70度-180度之间等)时,折叠屏手机可以利用内屏显示包括悬浮窗的界面。
可以理解的是,折叠屏手机处于折叠状态或者处于展开状态时的折叠角度仅作为一种示例,并不能够成对本申请实施例的限定。
可以理解的是,在电子设备执行窗口交互之前,用户可以通过复制翻译文本触发翻译功能对应的悬浮窗。示例性的,图5为本申请实施例提供的一种显示悬浮球的界面示意图。可以理解的是,图5为利用折叠屏手机的外屏触发悬浮窗的示例,折叠屏手机的内屏触发悬浮窗的过程可以参见图5对应的实施例,后文将不再赘述。
示例性的,在折叠屏手机的设置界面中可以设置有例如“复制触发翻译”的选项 开关,在用户选择开启该复制触发翻译的功能的情况下,当用户复制非系统默认语言的文字时,折叠屏手机可以触发翻译功能,显示翻译功能对应的悬浮球;进一步的,当用户触发该悬浮球时,可以显示翻译结果。
当折叠屏手机接收到用户打开新闻应用中的某个新闻页面的操作时,折叠屏手机可以显示如图5中的(a)所示的界面,该界面中可以显示为一段英文。在如图5中的(a)所示的需要翻译的场景下,当折叠屏手机接收到用户选中“patent”单词的操作时,折叠屏手机可以弹出选项栏501,该选项栏501中可以包括如复制、以及翻译等操作选项。
在如图5中的(a)所示的界面中,当折叠屏手机接收到用户触发该“patent”单词对应的选项栏501中的“复制”选项的操作时,折叠屏手机可以识别用户意图,并显示如图5中的(b)所示的界面。如图5中的(b)所示的界面,该界面中可以包括悬浮球标识502,该悬浮球标识502可以用于指示折叠屏手机正在识别用户的意图,且折叠屏手机识别到的用户的意图可以为翻译。可以理解的是,在折叠屏手机进行识别的过程中,无需用户的操作,例如无需用户点击如图5中的(b)中页面的任何内容,便可以识别到用户的意图。
折叠屏手机可以在识别到用户的意图为翻译“patent”单词时,显示如图5中的(c)所示的界面,该界面中可以包括:悬浮球503,该悬浮球503用于向用户提供显示翻译结果的入口。
在如图5中的(c)所示的界面中,当折叠屏手机接收到用户触发该悬浮球503的操作时,折叠屏手机可以显示如图5中的(d)所示的界面。如图5中的(d)所示的界面中,该界面中可以显示悬浮窗504,并在悬浮窗504中展示“patent”的翻译结果。悬浮窗504显示的翻译结果包括用户复制的待查询的英文单词“patent”,以及该单词的中文释义的翻译结果,即“专利”。悬浮窗504中显示的内容还包括:用于语音朗读的控件、用于复制翻译结果的控件、用于切换翻译语种的控件等。
可以理解的是,悬浮窗504为悬浮窗的初始状态,即由用户点击悬浮球503后显示的默认形态为半屏态,大小约占据一半的折叠屏手机的外屏的一半屏幕。示例性的,由于悬浮窗504的显示,则折叠屏手机可以取消显示悬浮球503,以达到更好的用户体验。
可能的实现方式中,折叠屏手机除了可以基于上述图5中的(a)-图5中的(d)所示的界面,开启悬浮窗504外,折叠屏手机也可以基于下述操作便捷的开启悬浮窗。
在如图5中的(a)所示的界面中,当折叠屏手机接收到用户触发该“patent”单词对应的选项栏501中的“翻译”选项的操作时,折叠屏手机显示图5中的(d)所示的界面,例如折叠屏手机可以调出悬浮窗504。
可以理解的是,本申请实施例中对折叠屏手机开启悬浮窗的方法,以及该悬浮窗所对应的功能不做具体限定。
可能的实现方式中,在折叠屏手机的外屏显示悬浮窗,且折叠屏手机呈竖屏状态的情况下,折叠屏手机可以根据用户对于悬浮窗的操作呈现出三种悬浮窗状态。示例性的,图6为本申请实施例提供的一种竖屏状态下的显示悬浮窗的界面示意图。
如图6中的(a)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的 外屏显示呈现的处于半屏态下的悬浮窗601。其中,处于半屏态的悬浮窗占据当前应用的屏幕约一半左右的大小,显示部分翻译结果内容。半屏态的悬浮窗也可以示例性的作为默认的悬浮窗形态,即当用户复制文本后显示的第一个悬浮窗。
示例性的,在如图6中的(a)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗601并向下滑动的操作时,折叠屏手机可以显示如图6中的(b)所示的界面。
如图6中的(b)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的外屏显示呈现的处于底部态下的悬浮窗602。其中,处于底部态的悬浮窗位于当前应用的屏幕底部,不显示任何翻译结果内容,有利于用户继续访问当前应用内的内容,以提高用户体验。
示例性的,在如图6中的(b)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗602向上滑动,且滑动到竖屏状态下的外屏屏幕上沿的操作时,折叠屏手机可以显示如图6中的(c)所示的界面。
如图6中的(c)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的外屏显示呈现的处于全屏态下的悬浮窗603。其中,处于全屏态的悬浮窗可以示例性的占据整个当前应用的屏幕,其展开基于用户的拖动操作而展开,用于显示比半屏态悬浮窗更多的翻译结果内容,以提高用户体验。
可以理解的是,上述图6中的(a)所示的界面、图6中的(b)所示的界面、以及图6中的(c)所示的界面中的悬浮窗的宽度均与外屏的宽度一致。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图6中的(a)所示的界面、图6中的(b)所示的界面、以及图6中的(c)所示的界面中进行切换,本申请实施例中对此不做具体限定。
可能的实现方式中,在折叠屏手机的外屏显示悬浮窗,且折叠屏手机呈横屏状态的情况下,折叠屏手机可以根据用户对于悬浮窗的操作呈现出两种悬浮窗状态。示例性的,图7为本申请实施例提供的一种横屏状态下的显示悬浮窗的界面示意图。
如图7中的(a)所示的界面,该界面可以为折叠屏手机呈横屏状态时,折叠屏手机的外屏显示呈现的处于底部态下的悬浮窗701。
示例性的,在如图7中的(a)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗701向上滑动,且滑动到横屏状态下的外屏屏幕上沿的操作时,折叠屏手机可以显示如图7中的(b)所示的界面。
如图7中的(b)所示的界面,该界面可以为折叠屏手机呈横屏状态时,折叠屏手机的外屏显示呈现的处于全屏态下的悬浮窗702。
可以理解的是,上述图7中的(a)所示的界面、以及图7中的(b)所示的界面中的悬浮窗的宽度均与外屏的高度一致。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图7中的(a)所示的界面、以及图7中的(b)所示的界面中进行切换,本申请实施例中对此不做具体限定。
基于图6对应的实施例以及图7对应的实施例,使得悬浮窗可以根据用户的不同操作,展示不同的形态。这样,满足了用户对于折叠屏手机的外屏显示悬浮窗的不同需求,提高了用户使用折叠屏手机中的悬浮窗功能的体验感。
可能的实现方式中,折叠屏手机外屏中显示的悬浮窗可以根据用户的翻转需求灵活调整,进而提高用户使用折叠屏手机中的悬浮窗功能的体验感。具体的,折叠屏手机处于竖屏状态下,当用户在折叠屏手机的外屏中的悬浮窗处于底部态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于底部态(如图8对应的实施例);或者,当用户在折叠屏手机的外屏中的悬浮窗处于半屏态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于全屏态(如图9对应的实施例);或者,用户在折叠屏手机的外屏中的悬浮窗处于全屏态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于全屏态(如图10对应的实施例)。
一种实现中,折叠屏手机处于竖屏状态下,当用户在折叠屏手机的外屏中的悬浮窗处于底部态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于底部态。
示例性的,图8为本申请实施例提供的一种折叠屏手机的外屏翻转的界面示意图。在如图8中的(a)所示的折叠屏手机的外屏中的悬浮窗处于底部态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机可以显示如图8中的(b)所示的界面,该图8中的(b)所示的界面中,折叠屏手机的外屏中的悬浮窗可以处于底部态。
另一种实现中,当用户在折叠屏手机的外屏中的悬浮窗处于半屏态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于全屏态。
示例性的,图9为本申请实施例提供的另一种折叠屏手机的外屏翻转的界面示意图。在如图9中的(a)所示的折叠屏手机的外屏中的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机可以显示如图9中的(b)所示的界面,该图9中的(b)所示的界面中,折叠屏手机的外屏中的悬浮窗可以处于全屏态。
可以理解的是,由于处于横屏状态的折叠屏手机的悬浮窗只具有两种状态,即底部态以及全屏态,因此在处于竖屏状态的折叠屏手机切换到横屏状态时,竖屏状态下的半屏态悬浮窗可以切换至横屏状态下的全屏态悬浮窗,使得折叠屏手机可以满足用户在屏幕切换时对于悬浮窗的使用需求。
再一种实现中,当用户在折叠屏手机的外屏中的悬浮窗处于全屏态的情况下翻转屏幕时,折叠屏手机的外屏中的悬浮窗可以处于全屏态。
示例性的,图10为本申请实施例提供的再一种折叠屏手机的外屏翻转的界面示意图。在如图10中的(a)所示的折叠屏手机的外屏中的悬浮窗处于全屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机可以显示如图10中的(b)所示的界面,该图10中的(b)所示的界面中,折叠屏手机的外屏中的悬浮窗可以处于全屏态。
可以理解的是,当折叠屏接收到用户由折叠屏手机的横屏状态翻转到折叠屏手机的竖屏状态的操作时,其折叠屏手机的内屏中的悬浮窗的显示方式可以类比于图8(或图9或图10)对应的实施例中的描述,在此不再赘述。
可能的实现方式中,折叠屏手机内屏也可以基于图5对应的实施例中描述的方法开启悬浮窗。在折叠屏手机呈竖屏状态的情况下,折叠屏手机的内屏可以根据用户对于悬浮窗 的操作呈现出三种悬浮窗状态。示例性的,图11为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图。
如图11中的(a)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的内屏显示呈现的处于半屏态下的悬浮窗1101。其中,处于半屏态下的悬浮窗1101可以居中显示在屏幕的底部,且该悬浮窗1101与折叠屏手机内屏的左右两侧均留有一定空白区域。可以理解的是,由于内屏的尺寸较大,使得位于屏幕底部中间显示的悬浮窗,可以不影响用户对应其他内容的查看,并且满足用户对于悬浮窗的使用需求。
示例性的,在如图11中的(a)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗1101并向下滑动的操作时,折叠屏手机可以显示如图11中的(b)所示的界面。
如图11中的(b)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的内屏显示呈现的处于底部态下的悬浮窗1102。
示例性的,在如图11中的(b)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗1102向上滑动,且滑动到竖屏状态下的内屏屏幕的上沿的操作时,折叠屏手机可以显示如图11中的(c)所示的界面。
如图11中的(c)所示的界面,该界面可以为折叠屏手机呈竖屏状态时,折叠屏手机的内屏显示呈现的处于全屏态下的悬浮窗1103。
可以理解的是,上述11中的(a)所示的界面、11中的(b)所示的界面、以及图11中的(c)所示的界面中的悬浮窗的宽度均小于内屏的宽度,且悬浮窗均居中显示在屏幕的底部。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图11中的(a)所示的界面、图11中的(b)所示的界面、以及图11中的(c)所示的界面中进行切换,本申请实施例中对此不做具体限定。
可能的实现方式中,折叠屏手机内屏也可以基于图5对应的实施例中描述的方法开启悬浮窗。在折叠屏手机呈横屏状态的情况下,折叠屏手机的内屏可以根据用户对于悬浮窗的操作呈现出三种悬浮窗状态。示例性的,图12为本申请实施例提供的另一种竖屏状态下的显示悬浮窗的界面示意图。
如图12中的(a)所示的界面,该界面可以为折叠屏手机呈横屏状态时,折叠屏手机的内屏显示呈现的处于半屏态下的悬浮窗1201。
示例性的,在如图12中的(a)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗1201并向下滑动的操作时,折叠屏手机可以显示如图12中的(b)所示的界面。
如图12中的(b)所示的界面,该界面可以为折叠屏手机呈横屏状态时,折叠屏手机的内屏显示呈现的处于底部态下的悬浮窗1202。
示例性的,在如图12中的(b)所示的界面中,当折叠屏手机接收到用户轻触悬浮窗1202向上滑动,且滑动到横屏状态下的内屏屏幕的上沿的操作时,折叠屏手机可以显示如图12中的(c)所示的界面。
如图12中的(c)所示的界面,该界面可以为折叠屏手机呈横屏状态时,折叠屏手机的内屏显示呈现的处于全屏态下的悬浮窗1203。
可以理解的是,上述12中的(a)所示的界面、12中的(b)所示的界面、以及图12中的(c)所示的界面中的悬浮窗的宽度均小于内屏的高度,且悬浮窗均居中显示在屏幕的底部。
可以理解的是,折叠屏手机也可以基于其他用户操作,在上述图12中的(a)所示的界面、图12中的(b)所示的界面、以及图12中的(c)所示的界面中进行切换,本申请实施例中对此不做具体限定。
基于图11对应的实施例以及图12对应的实施例,使得悬浮窗可以根据用户的不同操作,展示不同的形态。这样,满足了用户对于折叠屏手机的内屏显示悬浮窗的不同需求,提高了用户使用折叠屏手机中的悬浮窗功能的体验感。
可能的实现方式中,折叠屏手机内屏中显示的悬浮窗可以根据用户的翻转需求灵活调整,进而提高用户使用折叠屏手机中的悬浮窗功能的体验感。具体的,在折叠屏手机处于竖屏状态下,当用户在折叠屏手机的内屏中的悬浮窗处于半屏态的情况下翻转屏幕时,折叠屏手机的内屏中的悬浮窗可以处于半屏态(如图13对应的实施例)。
示例性的,图13为本申请实施例提供的一种折叠屏手机的内屏翻转的界面示意图。在如图13中的(a)所示的折叠屏手机的内屏中的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机的内屏可以显示如图13中的(b)所示的界面,该图13中的(b)所示的界面中,折叠屏手机的内屏中的悬浮窗可以处于半屏态。
可以理解的是,由于折叠屏手机的内屏的面积较大,且内屏的宽度以及高度之间的差值较小,使得折叠屏手机在进行屏幕翻转时,不会改变悬浮窗的状态,例如折叠屏手机无法根据用户翻转屏幕的操作使得内屏中的悬浮窗由半屏态切换至全屏态等。
具体的,在折叠屏手机的内屏中的悬浮窗处于底部态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机的内屏中的悬浮窗可以处于底部态;或者,在折叠屏手机的内屏中的悬浮窗处于全屏态的情况下,当折叠屏手机接收到用户翻转屏幕,例如用户由折叠屏手机的竖屏状态翻转到折叠屏手机的横屏状态的操作时,折叠屏手机的内屏中的悬浮窗可以处于全屏态。
可以理解的是,当折叠屏接收到用户由折叠屏手机的横屏状态翻转到折叠屏手机的竖屏状态的操作时,其折叠屏手机的内屏中的悬浮窗的显示方式可以类比于图13对应的实施例中的描述,在此不再赘述。
可能的实现方式中,折叠屏手机中显示的悬浮窗可以根据用户对于折叠屏手机的折叠需求,灵活的显示在折叠屏手机的不同界面中。具体的,在折叠屏手机一直处于竖屏状态下,当用户在折叠屏手机的外屏中的悬浮窗处于半屏态的情况下展开手机时,折叠屏手机的内屏中显示的悬浮窗可以处于半屏态(如图14对应的实施例)。
示例性的,图14为本申请实施例提供的一种展开折叠屏手机的界面示意图。在如图14中的(a)所示的折叠屏手机一直处于竖屏状态,且折叠屏手机的外屏中的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户展开折叠屏手机的操作时,折叠屏手机的内屏可以显示图14中的(b)所示的界面,该图14中的(b)所示的界面中的悬浮窗可以处于 半屏态。
可以理解的是,在折叠屏手机的横竖屏状态不发生切换的情况下,即使折叠屏手机接收到用户展开手机或折叠手机的操作时,折叠屏手机的显示屏中的悬浮窗的状态不发生改变。
具体的,在折叠屏手机一直处于竖屏状态,且折叠屏手机的外屏中的悬浮窗处于底部态的情况下,当折叠屏手机接收到用户展开折叠屏手机的操作时,折叠屏手机的内屏中的悬浮窗可以处于底部态;或者,在折叠屏手机一直处于竖屏状态,且折叠屏手机的外屏中的悬浮窗处于全屏态的情况下,当折叠屏手机接收到用户展开折叠屏手机的操作时,折叠屏手机的内屏中的悬浮窗可以处于全屏态。
可能的实现方式中,折叠屏手机中显示的悬浮窗可以根据用户对于折叠屏手机的折叠需求以及对屏幕的旋转需求,灵活的显示在折叠屏手机的不同界面中。具体的,当折叠屏手机处于横屏状态,且用户在折叠屏手机的外屏中的悬浮窗处于底部态的情况下展开手机并旋转屏幕时,此时折叠屏手机处于平衡状态,且折叠屏手机的内屏中显示的悬浮窗可以处于半屏态(如图15对应的实施例)。
示例性的,图15为本申请实施例提供的另一种展开折叠屏手机的界面示意图。在如图15中的(a)所示的折叠屏手机处于横屏状态,且折叠屏手机的外屏中的悬浮窗处于底部态的情况下,当折叠屏手机接收到用户展开折叠屏手机,且用户翻转屏幕,例如用于由折叠屏手机的横屏状态翻转到折叠屏手机的竖屏状态的操作时,折叠屏手机的内屏可以显示如图15中的(b)所示的界面,该图15中的(b)所示的界面中的悬浮窗可以处于底部态。
可以理解的是,在折叠屏手机的横竖屏状态发生切换且折叠屏手机的折叠状态发生切换的情况下,折叠屏手机的显示屏中的悬浮窗的状态可以不发生改变,例如折叠屏手机无法根据用户翻转屏幕以及折叠(或展开)手机的操作使得外屏中的悬浮窗由半屏态切换至内屏中的全屏态等。
可能的实现方式中,折叠屏手机的外屏中的悬浮窗可以满足非模态(或称为非模态对话框)。示例性的,图16为本申请实施例提供的一种非模态的界面示意图。该非模态可以理解为在悬浮窗存在的情况下,用户可以触摸或点击悬浮窗以外的区域。
当非模态对话框显示时,允许转而执行程序中其他任务,而不用关闭这个对话框。此时,悬浮窗的窗口属性被设置为FLAG_NOT_TOUCH_MODAL,因而在此模式下,系统会将当前窗口区域以外的触摸/点击事件传递给底层的窗口,当前窗口区域以内的单击事件则当前窗口处理。
具体而言,在悬浮窗处于半屏态及全屏态时,将悬浮窗的窗口属性设置为FLAG_NOT_TOUCH_MODAL用以控制焦点事件处理;在悬浮窗处于底部态时,将悬浮窗的窗口属性设置为FLAG_NOT_FOCUSABLE用以把焦点事件交给当前应用的原文处理,当前应用即本申请实施方式中当前用户正在使用的阅读应用。
FLAG_NOT_FOCUSABLE:表示当前窗口不需要获取焦点,也不需要接收各种输入事件,此标记会同时启用FLAG_NOT_TOUCH_MODAL,最终事件会直接传递给下层的具体 焦点的窗口。
FLAG_NOT_TOUCH_MODAL:表示在此模式下,系统会将当前窗口区域以外的触摸/点击事件传递给底层的窗口,当前窗口区域以内的单击事件则当前窗口处理。这个标记很重要,一般来说都需要开启此标记,否则其他窗口将无法收到触摸/点击事件。
在如图16中的(a)所示的折叠屏手机的外屏中的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户触发悬浮窗以外的区域(如图16中的(a)所示的虚线框所在的区域)的操作时,折叠屏手机可以显示如图16中的(b)所示的界面,该图16中的(b)所示的界面中的悬浮窗可以处于底部态。
可以理解的是,非模态的悬浮窗使得用户可以实现在折叠屏手机的外屏不关闭悬浮窗的情况下,对除悬浮窗以外区域的浏览以及触发,提升用户的使用体验。
可能的实现方式中,折叠屏手机的内屏中的悬浮窗可以满足非模态。示例性的,图17为本申请实施例提供的另一种非模态的界面示意图。
在如图17中的(a)所示的折叠屏手机的内屏中的悬浮窗处于半屏态的情况下,当折叠屏手机接收到用户触发悬浮窗以外的区域(如图17中的(a)所示的虚线框所在的区域)的操作时,折叠屏手机可以显示如图17中的(b)所示的界面,该图17中的(b)所示的界面中的悬浮窗可以处于底部态。
可以理解的是,非模态的悬浮窗使得用户可以实现在折叠屏手机的内屏不关闭悬浮窗的情况下,对除悬浮窗以外区域的浏览以及触发,提升用户的使用体验。
示例性的,图18为本申请实施例提供的一种窗口交互的流程示意图。在图18对应的实施例中,电子设备的软件架构中可以包括多个层,例如应用程序层、应用程序框架层以及硬件层等;该应用程序层中可以包括业务呈现模块,该应用程序框架层中可以包括窗口管理器以及设备状态管理模块;该窗口管理模块中可以包括:用于管理外屏显示的外屏管理模块,用于管理内屏显示的内屏管理模块;该硬件层中可以包括陀螺仪传感器以及角链传感器。
如图18所示,窗口交互方法可以包括如下步骤:
S1801、用户在内屏中触发翻译事件。
其中,该翻译事件可以为复制待翻译文本触发翻译功能对应的悬浮窗的显示的事件。
S1802、响应于用户触发翻译事件,内屏管理模块向业务呈现模块发送用于指示在内屏中显示悬浮窗的消息。
S1803、业务呈现模块调用显示器在内屏中显示悬浮窗。
S1804、用户在内屏中触发翻转事件。
其中,该翻转事件可以为用户针对屏幕的翻转事件,例如电子设备的竖屏状态翻转为横屏状态时的翻转事件,或者由电子设备的横屏状态翻转为竖屏状态时的翻转事件。
S1805、响应于用户在内屏中触发翻转事件,陀螺仪传感器将角加速度数据发送至设备状态管理模块。
其中,该角加速度数据可以用于指示电子设备的横屏或竖屏状态。
S1806、设备状态管理模块将角加速度数据发送至内屏管理模块。
S1807、内屏管理模块根据角加速度数据以及悬浮窗更新页面,得到翻转后的页面。
示例性的,当内屏管理模块基于角加速度数据,确定当前由竖屏状态翻转至横屏状态时,则内屏管理模块可以对悬浮窗进行响应的翻转,更新页面,得到翻转后的页面。其中,内屏管理模块可以基于图13对应的实施例中的描述在内屏中进行页面更新。
S1808、内屏管理模块向业务呈现模块发送用于指示显示翻转后的页面的消息。
S1809、业务呈现模块调用显示器显示翻转后的页面。
基于S1804-S1809所示的步骤,电子设备可以实现根据用户的翻转对悬浮窗进行合理显示。
可以理解的是,当用户在外屏中触发翻转事件时,响应于用户在外屏中触发翻转事件,外屏中显示悬浮窗的方法可以类比于S1804-S1809所示的步骤,在此不再赘述。具体的,外屏管理模块可以基于图8-图10对应的实施例中的描述在外屏中进行页面更新。
可能的实现方式中,在上述S1801-S1809所示的步骤的基础上,当用户在内屏显示悬浮窗的情况下,折叠手机时,电子设备可以根据用户折叠手机时折叠角度的变化的情况对悬浮窗进行合理显示,具体可以参见S1810-S1816所示的步骤。
S1810、用户在内屏显示悬浮窗的情况下触发折叠事件。
其中,该折叠事件可以为用户折叠内屏的事件(或理解为折叠角度满足0度-70度时的事件),或者该折叠事件也可以为用户展开内屏的事件(或理解为折叠角度满足70度-180度时的事件)。
S1811、响应于用户在内屏显示悬浮窗的情况下触发折叠事件,角链传感器将折叠角度数据发送至设备状态管理模块。
S1812、设备状态管理模块根据折叠角度判断在内屏中显示悬浮窗还是在外屏中显示悬浮窗。
本申请实施例中,当设备状态管理模块根据折叠角度确定在外屏中显示悬浮窗时,则可以执行S1813-S1816所示的步骤。或者,当设备状态管理模块根据折叠角度确定在内屏中显示悬浮窗时,电子设备中的模块的执行逻辑可以类比于下述S1813-S1816所示的步骤中的描述,后文将不再赘述。
示例性的,当设备状态管理模块确定折叠角度0度-70度时,则设备状态管理模块可以确定在外屏中显示悬浮窗,并执行S1812所示的步骤;或者,当设备状态管理模块确定折叠角度70度-180度时,则设备状态管理模块可以确定继续在内屏中显示悬浮窗。
S1813、设备状态管理模块向外屏管理模块发送用于指示在外屏中显示悬浮窗的消息。
S1814、外屏管理模块更新页面,得到折叠后的页面。
示例性的,外屏管理模块可以基于图14对应的实施例中的描述在外屏中进行页面更新,得到折叠后的页面。
S1815、外屏管理模块向业务呈现模块发送用于指示在外屏中显示折叠后的页面的消息。
S1816、业务呈现模块调用显示器在外屏中显示折叠后的页面。
可能的实现方式中,当用户在内屏(或外屏)界面中几乎同时触发翻转事件以及折叠事件时,则电子设备中的模块可以先对翻转事件进行响应(如S1804-S1809所示的步骤),再对折叠事件进行响应(如S1810-S1816所示的步骤);或者,电子设备 中的模块也可以先对折叠事件进行响应(如S1810-S1816所示的步骤)再对翻转事件进行响应(如S1804-S1809所示的步骤);或者,电子设备中的模块也可以对折叠事件以及翻转事件进行同时响应。
基于S1801-S1816所示的步骤,使得电子设备可以实现在不同页面或不同电子设备的状态下,对悬浮窗进行合理的显示,进而增强用户使用悬浮窗的体验。
可以理解的是,本申请实施例提供的界面仅作为一种示例,并不能够成对本申请实施例的进一步限定。
示例性的,图19为本申请实施例提供的一种窗口交互装置的结构示意图。
如图19所示,窗口交互装置190可以用于通信设备、电路、硬件组件或者芯片中,该窗口交互装置包括:显示单元1901、处理单元1902以及通信单元1903。其中,显示单元1901用于支持退出资源分配方法执行的显示的步骤;处理单元1902用于支持窗口交互装置执行信息处理的步骤;通信单元1903用于支持资源分配方法执行的数据发送以及数据接收的步骤。
在一种可能的实施例中,通信单元1903可以是输入或者输出接口、管脚或者电路等。
在一种可能的实施例中,窗口交互装置还可以包括:存储单元1904。处理单元1902、通信单元1903、以及存储单元1904通过线路相连。
存储单元1904可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。
存储单元1904可以独立存在,通过通信线路与窗口交互装置具有的处理单元1902相连。存储单元1904也可以和处理单元1902集成在一起。
存储单元1904可以存储电子设备中的方法的计算机执行指令,以使处理单元1902执行上述实施例中的方法。
存储单元1904可以是寄存器、缓存或者RAM等,存储单元1904可以和处理单元1902集成在一起。存储单元1904可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元1904可以与处理单元1902相独立。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(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 (16)

  1. 一种窗口交互方法,其特征在于,应用于电子设备,所述电子设备包括第一显示屏以及第二显示屏,所述第二显示屏可折叠,所述方法包括:
    所述电子设备利用所述第一显示屏显示第一界面;其中,所述第一界面包括第一悬浮窗;所述第一悬浮窗的宽度与所述第一显示屏的宽度相同,所述第一悬浮窗满足第一状态,且所述第一悬浮窗为非模态对话框;
    响应于对所述电子设备的第一操作,所述电子设备利用所述第二显示屏显示第二界面;其中,所述第二界面包括第二悬浮窗;所述第二悬浮窗的宽度小于所述第二显示屏的宽度,所述第二悬浮窗满足所述第一状态,且所述第二悬浮窗为所述非模态对话框。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于对所述电子设备的第二操作,所述电子设备利用所述第二显示屏显示第三界面;其中,所述第三界面包括第三悬浮窗;所述第三悬浮窗的宽度小于所述第二显示屏的高度,所述第三悬浮窗满足所述第一状态。
  3. 根据权利要求2所述的方法,其特征在于,当所述第二界面为所述电子设备在处于竖屏状态下的界面时,所述第三界面为所述电子设备处于横屏状态下的界面。
  4. 根据权利要求1所述的方法,其特征在于,所述第二界面中还包括第一区域,所述第一区域为所述第二界面中除所述第二悬浮窗以外的区域,所述方法还包括:
    响应于对所述第一区域的第三操作,所述电子设备显示第四界面;所述第四界面中包括第四悬浮窗,所述第四悬浮窗满足第二状态;所述第二状态与所述第一状态不同或相同。
  5. 根据权利要求4所述的方法,其特征在于,所述第一状态包括半屏态、全屏态或底部态中的任意一种;所述第二状态包括所述底部态。
  6. 根据权利要求1所述的方法,其特征在于,所述电子设备利用所述第一显示屏显示第一界面之后,所述方法还包括:
    响应于对所述电子设备的第四操作,所述电子设备利用所述第一显示屏显示第五界面;其中,所述第五界面中包括第五悬浮窗;所述第五悬浮窗的宽度与所述第一显示屏的高度相同。
  7. 根据权利要求6所述的方法,其特征在于,当所述第一界面为所述电子设备在处于竖屏状态下的界面时,所述第五界面为所述电子设备处于横屏状态下的界面。
  8. 根据权利要求7所述的方法,其特征在于,所述第一状态包括半屏态、全屏态或底部态中的任意一种;当所述第一悬浮窗为半屏态时,所述第五悬浮窗为全屏态;当所述第一悬浮窗为底部态时,所述第五悬浮窗为底部态;当所述第一悬浮窗为全屏态时,所述第五悬浮窗为全屏态。
  9. 根据权利要求7所述的方法,其特征在于,所述第一界面中还包括第二区域,所述第二区域为所述第一界面中除所述第一悬浮窗以外的区域,所述电子设备利用所 述第一显示屏显示第一界面之后,所述方法还包括:
    响应于对所述第二区域的第五操作,所述电子设备显示第六界面;所述第六界面中包括第六悬浮窗,所述第六悬浮窗满足第二状态;所述第二状态与所述第一状态不同或相同,所述第二状态包括底部态。
  10. 根据权利要求1所述的方法,其特征在于,所述响应于对所述电子设备的第一操作,所述电子设备利用所述第二显示屏显示第二界面,包括:
    响应于对所述电子设备的第一操作,所述电子设备获取第一数据;所述第一数据包括折叠角度数据;所述折叠角度数据是基于角链传感器检测得到的;
    在所述电子设备确定所述折叠角度数据满足第一预设条件时,所述电子设备利用所述第二显示屏显示所述第二界面。
  11. 根据权利要求1所述的方法,其特征在于,所述第二悬浮窗居中显示在所述第二显示屏的底部;所述第一悬浮窗显示在所述第一显示屏的底部。
  12. 根据权利要求1所述的方法,其特征在于,所述电子设备利用所述第一显示屏显示第一界面,包括:
    所述电子设备利用所述第一显示屏显示第七界面;所述第七界面中包括第一文本;
    响应于对所述第一文本的第六操作,所述电子设备显示第一控件;所述第一控件中包括复制选项以及翻译选项;
    响应于对所述复制选项的第七操作,所述电子设备显示悬浮球控件;
    响应于对所述悬浮球控件的第八操作,所述电子设备利用所述第一显示屏显示所述第一界面。
  13. 根据权利要求1所述的方法,其特征在于,所述电子设备利用所述第一显示屏显示第一界面,包括:
    所述电子设备利用所述第一显示屏显示第八界面;所述第八界面中包括第二文本;
    响应于对所述第二文本的第九操作,所述电子设备显示第二控件;所述第二控件中包括复制选项以及翻译选项;
    响应于对所述翻译选项的第十操作,所述电子设备利用所述第一显示屏显示所述第一界面。
  14. 一种电子设备,其特征在于,所述电子设备包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发所述电子设备执行权利要求1-13中任一项所述的方法。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-13中任一项所述的方法。
  16. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行权利要求1-13中任一项所述的方法。
PCT/CN2023/071085 2022-01-10 2023-01-06 窗口交互方法和电子设备 WO2023131313A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210023808.6 2022-01-10
CN202210023808 2022-01-10
CN202210114777.5 2022-01-30
CN202210114777.5A CN116456019A (zh) 2022-01-10 2022-01-30 窗口交互方法和电子设备

Publications (2)

Publication Number Publication Date
WO2023131313A1 true WO2023131313A1 (zh) 2023-07-13
WO2023131313A9 WO2023131313A9 (zh) 2023-10-26

Family

ID=87073272

Family Applications (1)

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

Country Status (1)

Country Link
WO (1) WO2023131313A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145749A1 (en) * 2009-11-12 2011-06-16 Nokia Corporation Method and apparatus for user interface displays
CN106445345A (zh) * 2016-09-30 2017-02-22 北京金山安全软件有限公司 一种悬浮窗显示方法、装置及电子设备
CN107526494A (zh) * 2017-09-06 2017-12-29 北京小米移动软件有限公司 键盘显示方法、装置、终端及存储介质
CN110221739A (zh) * 2019-05-17 2019-09-10 北京搜狗科技发展有限公司 一种数据处理方法、装置和电子设备
CN110286972A (zh) * 2019-05-14 2019-09-27 华为技术有限公司 一种折叠屏显示应用的方法及电子设备
WO2020062294A1 (zh) * 2018-09-30 2020-04-02 华为技术有限公司 系统导航栏的显示控制方法、图形用户界面及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145749A1 (en) * 2009-11-12 2011-06-16 Nokia Corporation Method and apparatus for user interface displays
CN106445345A (zh) * 2016-09-30 2017-02-22 北京金山安全软件有限公司 一种悬浮窗显示方法、装置及电子设备
CN107526494A (zh) * 2017-09-06 2017-12-29 北京小米移动软件有限公司 键盘显示方法、装置、终端及存储介质
WO2020062294A1 (zh) * 2018-09-30 2020-04-02 华为技术有限公司 系统导航栏的显示控制方法、图形用户界面及电子设备
CN110286972A (zh) * 2019-05-14 2019-09-27 华为技术有限公司 一种折叠屏显示应用的方法及电子设备
CN110221739A (zh) * 2019-05-17 2019-09-10 北京搜狗科技发展有限公司 一种数据处理方法、装置和电子设备

Also Published As

Publication number Publication date
WO2023131313A9 (zh) 2023-10-26

Similar Documents

Publication Publication Date Title
WO2021227770A1 (zh) 应用窗口显示方法和电子设备
US11803451B2 (en) Application exception recovery
WO2021057830A1 (zh) 一种信息处理方法及电子设备
WO2021159922A1 (zh) 卡片显示方法、电子设备及计算机可读存储介质
WO2019114828A1 (zh) 用户界面显示方法、装置、设备及存储介质
WO2021129253A1 (zh) 显示多窗口的方法、电子设备和系统
US11853526B2 (en) Window display method, window switching method, electronic device, and system
WO2021254293A1 (zh) 一种显示通知的方法和终端
EP4170476A1 (en) Translation method and electronic device
US20230244508A1 (en) Application starting method and apparatus, and electronic device
KR20160073714A (ko) 전자 기기 및 이의 웹 페이지 디스플레이 방법
JP7476645B2 (ja) 携帯型情報端末及びプログラム
WO2023040666A1 (zh) 键盘显示方法、折叠屏设备和计算机可读存储介质
CN114997186B (zh) 翻译控件的控制方法及电子设备
WO2022052677A1 (zh) 界面显示方法及电子设备
WO2024109190A1 (zh) 应用界面显示方法、电子设备和存储介质
CN115562771A (zh) 应用窗口管理方法、电子设备和计算机可读取存储介质
WO2023131313A1 (zh) 窗口交互方法和电子设备
WO2023131312A1 (zh) 窗口交互方法和电子设备
WO2022218111A1 (zh) 应用界面的显示方法、装置、终端及存储介质
CN116456019A (zh) 窗口交互方法和电子设备
WO2023131314A1 (zh) 窗口交互方法和电子设备
CN116456020A (zh) 窗口交互方法和电子设备
WO2023030276A1 (zh) 一种显示方法、装置、设备及存储介质
WO2024061032A1 (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: 23737175

Country of ref document: EP

Kind code of ref document: A1