WO2023066196A1 - 悬浮窗口显示方法、装置、电子设备和可读存储介质 - Google Patents

悬浮窗口显示方法、装置、电子设备和可读存储介质 Download PDF

Info

Publication number
WO2023066196A1
WO2023066196A1 PCT/CN2022/125664 CN2022125664W WO2023066196A1 WO 2023066196 A1 WO2023066196 A1 WO 2023066196A1 CN 2022125664 W CN2022125664 W CN 2022125664W WO 2023066196 A1 WO2023066196 A1 WO 2023066196A1
Authority
WO
WIPO (PCT)
Prior art keywords
floating window
length
stretching
screen
target
Prior art date
Application number
PCT/CN2022/125664
Other languages
English (en)
French (fr)
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
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023066196A1 publication Critical patent/WO2023066196A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application belongs to the technical field of terminals, and in particular relates to a floating window display method, device, electronic equipment and readable storage medium.
  • an electronic device may use a floating window to display an interface.
  • the electronic device can superimpose and display the floating window on the currently displayed interface through the user's input, so that the user can simultaneously view the currently displayed interface of the electronic device and the floating window. window to view or use the interface.
  • the floating window since the floating window is superimposed and displayed on the currently displayed interface by the electronic device, the floating window will block a part of the interface currently displayed by the electronic device, which may cause the electronic device to use the floating window.
  • the display effect is poor.
  • the purpose of the embodiments of the present application is to provide a floating window display method, device, electronic equipment and readable storage medium, which can solve the problem of poor display effect when the electronic equipment adopts floating window display.
  • the embodiment of the present application provides a floating window display method, the method is applied to an electronic device with a retractable screen, and the method includes: when the target screen displays the target interface, receiving the user's hovering window on the target interface The first input of the window; in response to the first input, stretch the flexible screen, cancel the display of the floating window on the target interface, and display the floating window in the stretched area of the flexible screen.
  • the embodiment of the present application provides a floating window display device, the device has a retractable screen, and the device includes a display module, a receiving module and an extending module; the receiving module is used to display the target interface on the target screen of the display module In this case, the first input of the user to the floating window on the target interface is received; the stretching module is used to extend the retractable screen in response to the first input received by the receiving module; the display module is also used to cancel the floating window on the target interface Display, and display the floating window in the stretch area of the stretch screen.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor When realizing the steps of the method as in the first aspect.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method in the first aspect.
  • the user when the target screen displays the target interface, the user’s first input to the floating window on the target interface can be received; and in response to the first input, the stretchable screen can be stretched, and the floating window on the target interface can be canceled display on the screen, and display a floating window in the stretched area of the stretchable screen.
  • the electronic device can stretch the retractable screen through the user's input to the floating window on the target interface when the target screen displays the target interface, and can cancel the display of the floating window on the target interface, and
  • the extended area of the retractable screen displays the floating window, that is, the user can trigger the electronic device to display the target interface and the floating window on different screens of the retractable screen through input, so that the floating window will not block any area in the target interface, so the electronic device can be improved.
  • FIG. 1 is a schematic diagram of a floating window display method provided by an embodiment of the present application
  • FIG. 2 is one of the interface schematic diagrams of the application of the floating window display method provided by the embodiment of the present application
  • Fig. 3 is the second schematic diagram of the application interface of the floating window display method provided by the embodiment of the present application.
  • Fig. 4 is the third schematic diagram of the application interface of the floating window display method provided by the embodiment of the present application.
  • Fig. 5 is the fourth schematic diagram of the application interface of the floating window display method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a floating window display device provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.
  • logos in the embodiments of the present application are used to indicate text, symbols, images, etc. of information, and controls or other containers may be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.
  • the method for displaying a floating window provided in the embodiment of the present application may be applied to a scenario where a user requires an electronic device with a retractable screen to use a floating window to display content.
  • interface 0 an interface
  • the main screen of the electronic device such as the target in the embodiment of this application screen
  • the currently displayed interface is interface 1 (such as the target interface in the embodiment of this application)
  • the floating window is displayed on interface 1 and interface 0 is displayed in the floating window
  • the electronic device can pass an input from the user (such as the target interface in this application)
  • the first input in the example) Stretch the telescopic screen, cancel the display of the floating window on interface 1, and display the floating window in the stretched area of the telescopic screen of the electronic device, so that the electronic device can display the interface separately in different screens 0 and interface 1, so that the user can view or use the interface 0 and the interface 1 at the same time, so that the display effect when the electronic device is displayed in a floating window can be improved.
  • an embodiment of the present application provides a method for displaying a floating window, which can be applied to an electronic device with a retractable screen, and the method can include the following steps 101 and 102 .
  • an electronic device with a retractable screen is used as an example to illustrate the method.
  • Step 101 When the target screen displays a target interface, the electronic device receives a user's first input to a floating window on the target interface.
  • Step 102 the electronic device stretches the stretchable screen in response to the first input, cancels the display of the floating window on the target interface, and displays the floating window in the stretched area of the stretchable screen.
  • the stretchable screen may be a rigid screen or a flexible screen.
  • the stretchable screen is a rigid screen as an example, at least a part of the stretchable screen can protrude out of the housing of the electronic device, and of course, at least a part of the area can also be retracted into the housing of the electronic device.
  • the stretchable screen may specifically be a scroll screen that can shrink or stretch around a scroll in the electronic device.
  • the target interface may be any interface, for example, the target interface may be a desktop or an interface in an application program.
  • the target screen may be a part of the display area (1) of the retractable screen; or, the target screen and the retractable screen are two different screens (2) in the electronic device, which may be specified according to actual use requirements Hence, the embodiment of this application is not limited.
  • the target screen is different from the above stretching area.
  • the stretching area may be an area in the stretchable screen other than the target screen and visible to the user after the electronic device receives the user's first input. In other words, the stretching area is invisible to the user until the electronic device receives the user's first input.
  • the target screen may be a screen that is always completely visible to the user in the above-mentioned electronic device.
  • the electronic device may display the floating window in the stretched area according to the second ratio, where the second ratio may include any of the following: The first ratio, the aspect ratio of the stretched area of the stretchable screen.
  • the length of the stretching region in the stretching direction can be determined according to actual use requirements, and is not limited in the embodiment of the present application.
  • the floating window may be a window of any size, and the floating window may be used to display any possible content, for example, an interface or an image may be displayed in the floating window.
  • the user may trigger the movement of the display position of the floating window and/or adjust the display size of the floating window through the input of the floating window.
  • each floating window may correspond to an interface; or, each floating window may correspond to an application program.
  • the electronic device displays a floating window 20 on the target interface when the target screen displays the target interface, and if the electronic device receives an input from the user on the floating window 20 ( That is, the first input), then as shown in (c) in Figure 2, the electronic device can stretch the telescopic screen, and cancel the display of the floating window 20 on the target interface, and display the floating window 20 in the stretching area 22 of the telescopic screen, That is, the electronic device can move the floating window from the target interface to the stretching area of the stretchable screen based on the user's input, so that the floating window can prevent the content in the target interface from being blocked, thereby satisfying the user's needs.
  • the first input can be input in any possible form such as the user’s floating window input, touch input, or voice input, which can be determined according to actual usage requirements, and is not limited in the embodiment of the present application. .
  • the first input may be the user's drag input on the floating window (a possible implementation), or the first input may be the user's input on the target control in the floating window ( Another possible implementation).
  • step 102 may specifically be implemented through the following step 102a.
  • Step 102a When the floating window exceeds the boundary of the target screen, the electronic device responds to the first input, stretches the telescoping screen along the stretching direction by a first length, cancels the display of the floating window on the target interface, and The stretch area displays a floating window.
  • the first length may be the same as the length of the floating window on the target interface beyond the boundary of the target screen, and the length of the floating window in the stretching area in the stretching direction is the same as the first length.
  • the user can drag the floating window to the boundary of the target screen.
  • the electronic device can confirm that the user needs to display the floating window in the stretched area of the stretchable screen, so that the electronic device
  • the device can stretch the stretchable screen, cancel the display of the floating window on the target interface, and display the floating window in the stretched area of the stretchable screen.
  • the electronic device when the user drags the floating window, if the boundary of the floating window does not exceed the boundary of the target screen, the electronic device can confirm that the user needs to adjust the display position of the floating window on the target screen; if the floating window If the boundary of the target screen is exceeded, the electronic device can confirm that the user needs to display the target screen and the floating window in different regions.
  • the user can drag the floating window in any direction on the target screen.
  • the stretchable screen can be stretched in multiple directions, then when the user drags the floating window beyond the boundary of the target screen, the electronic device can move in the direction corresponding to the direction in which the user drags the floating window Stretch the telescoping screen.
  • the stretchable screen can extend in four directions: up, down, left and right, then: if the user drags the floating window to the right in the target screen beyond the boundary of the target screen, the electronic device can stretch the stretchable screen to the right; If the user drags the floating window to the left on the target screen beyond the boundary of the target screen, the electronic device can stretch the telescopic screen to the left; if the user drags the floating window upward on the target screen beyond the boundary of the target screen, the electronic device can move upward Stretch the retractable screen; if the user drags the floating window downward on the target screen beyond the boundary of the target screen, the electronic device can stretch the retractable screen downward.
  • the electronic device can stretch the telescopic screen when the boundary of the floating window exceeds the boundary of the target screen; or, the electronic device can stretch the telescopic screen when the boundary of the floating window exceeds the boundary of the target screen by a preset length , so as to avoid misuse.
  • the above-mentioned preset length may be preset by the system, or may be set by the user according to actual usage requirements.
  • the user can set the preset length to be 1/2 of the length of the floating window in the stretching direction of the stretching screen (namely the first direction described below), 1/4 of the length of the floating window in the stretching direction of the stretching screen, etc. possible length.
  • the electronic device may determine the first length based on the length of the floating window in the target interface in the moving/dragging direction.
  • the electronic device can determine that the first length is 1 cm.
  • the electronic device displays the target interface in the screen 21 (i.e. the target screen), and displays the floating window 20 on the target interface, as shown in (b) in Figure 2 ), when the user drags the floating window 20 to the right on the screen 21 and makes the boundary of the floating window 20 exceed the boundary of the screen 21 by 1 cm (that is, the first length), as shown in (c) in FIG.
  • the device can stretch the stretchable screen to the right by 1cm, cancel the display of the floating window 20 on the target interface, and display the floating window 20 in the stretching area 22, and the length of the floating window 20 in the stretching area 22 in the stretching direction of the stretching screen
  • it is convenient for users to view or use the content in the target interface and the floating window at the same time, on the other hand, it can avoid misuse, and on the other hand, it can prevent the floating window from blocking the content in the target interface.
  • This application is an example, because the electronic device can stretch the telescopic screen to the same length as the length of the floating window beyond the screen boundary when the floating window on an interface exceeds the boundary of the screen displaying the interface, and the floating window only Displayed in the stretched area of the stretchable screen, and the length of the floating window in the stretched area in the stretching direction is the same as the length of the stretched area in the stretching direction, that is, the electronic device can display the target interface and the floating window on different parts of the electronic device. screen/different screen areas, so the flexibility of displaying floating windows on electronic devices can be improved.
  • the above-mentioned floating window may include at least one first control, and each first control may correspond to a stretching mode of the telescoping screen, and the above-mentioned target control may be one of the at least one first control Control, the method for stretching the telescopic screen by the electronic device in the above step 102 can be specifically implemented through the following step 102b.
  • Step 102b the electronic device stretches the telescoping screen according to the target stretching mode corresponding to the target control.
  • the target stretching manner may include at least one of the following: a target stretching direction (1), and a target stretching length (2).
  • the target control in the first control may be a control corresponding to the stretching direction of the stretchable screen.
  • the target control in the first control may be a control corresponding to the stretching length of the stretchable screen.
  • the electronic device may respond to the first input and stretch the telescopic screen according to the target stretching direction corresponding to the target control. , and cancel the display of the floating window on the target interface, and display the floating window in the stretch area of the stretch screen.
  • the electronic device can respond to the first input, stretch the flexible screen according to the stretching length corresponding to the target control, and cancel the display of the floating window on the target interface, and display the floating window in the stretching area of the flexible screen .
  • the stretching direction of the telescopic screen is the target stretching direction
  • the stretching length (ie, the length of extension) of the telescoping screen is the target stretching length.
  • the target stretching length is less than or equal to the maximum stretching length of the stretchable screen in the stretching direction.
  • the floating window 30 includes at least one first control, which are respectively control 31, control 32 and control 34, wherein the extension direction corresponding to control 31 is leftward direction, the extension direction corresponding to the control 32 is the direction to the right, and the control 34 corresponds to the maximum extension length of the telescoping screen. Then, if the target control is the control 31, then the electronic device receives the user's input to the control 31 (i.e.
  • the electronic device can control the stretching screen to the left, and cancel the display of the floating window 30 on the target interface, and display the floating window in the stretching area 35 to the left of the stretching screen 30; if the target control is the control 32, after the electronic device receives the user's input to the control 32 (that is, the first input), as shown in (c) in Figure 3, the electronic device can control the stretchable screen to extend to the right, And cancel the display of the floating window 30 on the target interface, and display the floating window 30 in the stretch area 36 to the right of the flexible screen; - input), as shown in FIG.
  • the electronic device can control the stretchable screen to fully stretch, cancel the display of the floating window 30 on the target interface, and display the floating window 30 in full screen in the stretched area.
  • the electronic device can control the stretchable screen to stretch in different stretching modes through the user's input of different target controls, so as to display the floating window in the stretching area that meets the user's needs.
  • This application is an example, because the electronic device can control the stretching screen to stretch the stretching screen according to the stretching direction or stretching length corresponding to the control through the user's input to the control of a stretching method corresponding to the stretching screen in the floating window, so that the electronic device The floating window can be displayed in different stretching areas, so the flexibility of stretching the stretchable screen of the electronic device can be further improved.
  • the electronic device can determine the stretching length of the stretchable screen in different ways.
  • the method for stretching the stretchable screen by the electronic device in step 102 above can be specifically implemented through the following step A or step B.
  • Step A the electronic device stretches the telescopic screen to a second length along the stretching direction.
  • the second length may be the same as the length of the floating window on the target interface in the stretching direction, and the length of the floating window in the stretching area in the stretching direction is the same as the second length.
  • the electronic device may determine the second length based on the length of the floating window in the target interface in the moving/dragging direction.
  • the electronic device may determine that the second length is 3 cm. If the electronic device receives an input from the user on the floating window (ie first input), the electronic device can stretch the stretchable screen by 3 cm along the first direction, and display the floating window in the stretching area, and the length of the floating window in the stretching area in the first direction is also 3 cm.
  • the electronic device can extend the stretchable screen by the same length in the stretching direction according to the length of the floating window in the stretching direction, and only display the floating window in the stretching area of the stretchable screen in the original size, whereby, the ways of stretching the stretchable screen of the electronic device can be enriched.
  • Step B When the third length is greater than the fourth length of the stretchable screen in the stretching direction, the electronic device stretches the stretchable screen by a fourth length along the stretching direction.
  • the third length may be the above-mentioned first length or the second length.
  • the fourth length is the maximum stretching length of the stretchable screen, and the length of the floating window in the stretching area in the stretching direction is the same as the fourth length.
  • the third length as the second length as an example, assuming that the maximum extension length of the stretchable screen of the electronic device is 2cm (ie, the fourth length), the length of the floating window displayed on the target interface in the first direction is 3cm (i.e. the second length), if the electronic device receives the user’s input on the floating window (i.e. the first input), the electronic device can extend the telescopic screen by 2cm in the first direction and display the floating window in the extended area , and the length of the floating window in the stretched area in the first direction is 2 cm.
  • the length of the screen on which the target interface is displayed is greater than the maximum length that the stretchable screen can stretch, or the length of the floating window in the stretching direction
  • the stretchable screen can be stretched along the stretching direction to the maximum length that the stretchable screen can stretch, and the length of the floating window in the stretching area in the stretching direction is the same as the maximum length, so that Further enrich the ways of stretching the stretchable screen of electronic equipment.
  • the number of floating windows on the above-mentioned target interface may be multiple, and the above-mentioned first input may include input to at least two floating windows in the above-mentioned target interface.
  • the electronic device The method of stretching the telescopic screen can be specifically realized through the following step C.
  • Step C the electronic device stretches the telescopic screen to a fifth length along the stretching direction.
  • the fifth length may be a maximum length of at least two floating windows in the extending direction.
  • the above-mentioned multiple floating windows may be arranged and displayed in the stretching area along the stretching direction perpendicular to the stretching screen.
  • the electronic device can extend the stretchable screen by 3cm along the first direction (i.e. the fifth length), and arrange it in the stretching area along the direction perpendicular to the stretching direction of the stretchable screen Display floating window X and floating window Y.
  • the electronic device can stretch the telescopic screen along the stretching direction according to the lengths of multiple floating windows in the stretching direction, the maximum length among the lengths of the multiple floating windows in the stretching direction can be ensured. All can be displayed in the stretch area with good effect for users to view or use.
  • the method for the electronic device to display the floating window in the stretched area of the stretchable screen in step 102 above may specifically be implemented through the following step 102c.
  • Step 102c the electronic device displays a floating window in the stretched area according to the size of the stretched area.
  • the electronic device may adjust the display size of the floating window in full screen according to the display size of the stretched area, so as to improve the display effect of the electronic device displaying the floating window in full screen.
  • the electronic device can display the floating window in the stretching area of the stretchable screen according to the size of the stretching area, it is convenient for the user to better view the content displayed in the floating window, so the display of the floating window on the electronic device can be enriched display effect.
  • the electronic device can display the target interface on the target screen
  • the user can extend the telescopic screen through the user's input to the floating window on the target interface, and can cancel the floating window.
  • the display on the target interface, and the floating window is displayed in the extension area of the telescopic screen, that is, the user can trigger the electronic device to display the target interface and the floating window on different screens of the telescopic screen through input, so that the floating window will not block the target interface any area in the , so that the display effect when the electronic device is displayed in a floating window can be improved.
  • the floating window display method provided in the embodiment of the present application may further include the following steps 103 and 104.
  • Step 103 the electronic device receives a second input from the user.
  • Step 104 the electronic device adjusts the length of the stretching area in the stretching direction in response to the second input, and adjusts the display size of the floating window based on the adjusted length of the stretching area in the stretching direction.
  • the second input can be input in any possible form, such as touch input, voice input, or drag input on the retractable screen, which can be determined according to actual usage requirements, and is not limited in this embodiment of the application. .
  • the second input may be a user's click input on a control in the electronic device for triggering the stretching of the retractable screen.
  • the electronic device may adjust the display size of the floating window with the original aspect ratio of the floating window based on the adjusted length of the stretching area in the stretching direction.
  • the electronic device uses the user's input (that is, the second input) to make the stretching area in the stretching direction If the length in the direction is adjusted from 2cm to 1cm, the electronic device can adjust the length of the suspension window in the stretching direction to 1cm, and adjust the length of the suspension window in the direction perpendicular to the stretching direction to 0.5cm, that is, the electronic device
  • the device may adjust the display size of the floating window based on the adjusted length of the stretching area in the stretching direction, so as to ensure the display effect of the floating window when the stretching area changes.
  • the electronic device can adjust the length of the stretching area in the stretching direction through user input, and can adapt and adjust the display size of the floating window displayed in the stretching area based on the length, so that the floating window can be kept The original display effect to enhance the user experience.
  • the user can trigger the electronic device to increase or decrease the length of the floating window in the stretching direction of the stretching screen by inputting, and increase or decrease the length of the floating window simultaneously. Increase or decrease the length of the stretch area in that stretch direction.
  • the floating window display method provided in the embodiment of the present application may further include the following steps 105 and 106.
  • Step 105 the electronic device receives a third input from the user on the floating window.
  • Step 106 the electronic device retracts the retractable screen in response to the third input, and displays a floating window on the target interface or displays a floating logo of the floating window on the target interface.
  • the third input can be the user’s floating input to the floating window, touch input or voice input, or any other possible form of input. limited.
  • the third input may be a user's click input on a control in the electronic device for triggering the contraction of the retractable screen.
  • the floating logo can be any form of logo that can indicate the floating window, for example, the floating logo can be the icon of the application program corresponding to the interface displayed in the floating window, or the floating logo can be an indicator The text identification of the content displayed in the floating window, etc.
  • the electronic device can cancel the display of the floating window 30 in the stretch area 36, and as shown in FIG.
  • the floating logo 50 of the floating window 30 is displayed on the top.
  • the user can trigger the electronic device to retract the retractable screen through the input of the floating window, and display the floating window or the floating logo of the floating window on the target interface of the target screen, so as to facilitate the further operation of the user , so the flexibility of displaying the floating window of the electronic device can be further enriched.
  • the floating window display method provided in the embodiment of the present application may be executed by a floating window display device, or a control module in the floating window display device for executing the floating window display method.
  • the method for displaying the floating window performed by the floating window display device is taken as an example to illustrate the floating window display device provided in the embodiment of the present application.
  • an embodiment of the present application provides a floating window display device 60 with a retractable screen.
  • the floating window display device 60 may include: a display module 61 , a receiving module 62 and an extension module 63 .
  • the receiving module 62 may be configured to receive the user's first input to the floating window on the target interface when the display module 61 displays the target interface on the target screen.
  • the stretching module 63 may be configured to stretch the retractable screen in response to the first input received by the receiving module 62 .
  • the display module 61 can also be used to cancel the display of the floating window on the target interface, and display the floating window in the stretched area of the stretchable screen.
  • the stretching module 63 may specifically be configured to stretch the stretchable screen by a first length along the stretching direction in response to the first input received by the receiving module 62 when the floating window exceeds the boundary of the target screen.
  • the display module 61 can specifically be used to cancel the display of the floating window on the target interface, and display the floating window in the stretched area of the telescopic screen; wherein, the first length is the same as the length of the floating window on the target interface beyond the boundary of the target screen, The length of the floating window in the stretching area in the stretching direction is the same as the first length.
  • the floating window may include at least one first control, each first control may correspond to a stretching mode of the telescoping screen, and the first input may be the user's input to the target control in the at least one control .
  • the stretching module 63 can be specifically configured to stretch the telescoping screen according to the target stretching mode corresponding to the target control; wherein, the target stretching mode can include at least one of the following: target stretching direction, target stretching length.
  • the stretching module 63 can specifically be used to stretch the stretchable screen to a second length along the stretching direction, and the second length is the same as the length of the floating window on the target interface in the stretching direction; wherein, in the stretching area The length of the floating window in the stretching direction is the same as the second length.
  • the stretching module 63 can specifically be used to stretch the stretchable screen to a fourth length along the stretching direction when the third length is greater than the fourth length of the stretchable screen in the stretching direction, and the third length is The first length or the second length; wherein, the fourth length is the maximum stretching length of the stretchable screen, and the length of the floating window in the stretching area in the stretching direction is the same as the fourth length.
  • the first input includes input to at least two floating windows on the target interface.
  • the stretching module 63 can be specifically configured to stretch the telescopic screen to a fifth length along the stretching direction, and the fifth length is the maximum length of at least two floating windows in the stretching direction.
  • the floating window display device 60 may further include an adjustment module.
  • the receiving module 62 may also be configured to receive a second input from the user after the display module 61 displays the floating window in the extended area of the retractable screen.
  • the adjusting module may be configured to adjust the length of the stretching area in the stretching direction in response to the second input received by the receiving module 62, and adjust the display size of the floating window based on the adjusted length of the stretching area in the stretching direction.
  • the display module 61 may specifically be configured to display the floating window in the stretch area according to the size of the stretch area.
  • the receiving module 62 may also be configured to receive a third input from the user on the floating window after the display module 61 displays the floating window in the extended area of the retractable screen.
  • the stretching module 63 may also be configured to retract the retractable screen in response to the third input received by the receiving module 62 .
  • the display module 61 can also be used to display a floating window on the target interface or display a floating logo of the floating window on the target interface.
  • the floating window display device since the floating window display device can display the target interface on the target screen, the retractable screen can be extended by the user's input to the floating window on the target interface, and the floating window can be canceled.
  • the floating window is displayed on the target interface, and the floating window is displayed in the stretched area of the telescopic screen, that is, the user can trigger the floating window display device to display the target interface and the floating window on different screens of the telescopic screen through input, thereby floating
  • the window does not block any area in the target interface, so the display effect when the floating window display device adopts the floating window display can be improved.
  • the device for displaying the floating window in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic equipment can be server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage Network Attached Storage, NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for displaying the floating window in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the floating window display device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 5 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides an electronic device 200, including a processor 202, a memory 201, and a program or instruction stored in the memory 201 and operable on the processor 202.
  • the program or instruction is processed When executed by the device 202, each process of the above embodiment of the floating window display method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device with a retractable screen implementing an embodiment of the present application.
  • the electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 1010 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the user input unit 1007 may be configured to receive a first input from the user on the floating window on the target interface when the display unit 1006 displays the target interface on the target screen.
  • the processor 1010 may be configured to stretch the retractable screen in response to the first input received by the user input unit 1007 .
  • the display unit 1006 can also be used to cancel the display of the floating window on the target interface, and display the floating window in the stretched area of the stretchable screen.
  • the processor 1010 may specifically be configured to, in the case that the floating window exceeds the boundary of the target screen, respond to the first input received by the user input unit 1007, and extend the stretchable screen by a first length along the stretching direction.
  • the display unit 1006 can specifically be used to cancel the display of the floating window on the target interface, and display the floating window in the extended area of the stretchable screen; wherein, the first length is the same as the length of the floating window on the target interface beyond the boundary of the target screen, The length of the floating window in the stretching area in the stretching direction is the same as the first length.
  • the floating window may include at least one first control, each first control may correspond to a stretching mode of the telescoping screen, and the first input may be the user's input to the target control in the at least one control .
  • the processor 1010 may specifically be configured to stretch the telescoping screen according to a target stretching mode corresponding to the target control; wherein, the target stretching mode may include at least one of the following: a target stretching direction and a target stretching length.
  • the processor 1010 may be specifically configured to extend the stretchable screen along the stretching direction by a second length, and the second length is the same as the length of the floating window on the target interface in the stretching direction; wherein, in the stretching area The length of the floating window in the stretching direction is the same as the second length.
  • the processor 1010 may specifically be configured to extend the stretchable screen along the stretching direction by a fourth length when the third length is greater than a fourth length in the stretching direction of the stretchable screen, and the third length is The first length or the second length; wherein, the fourth length is the maximum stretching length of the stretchable screen, and the length of the floating window in the stretching area in the stretching direction is the same as the fourth length.
  • the first input includes input to at least two floating windows on the target interface.
  • the processor 1010 may specifically be configured to extend the stretchable screen along the stretching direction by a fifth length, where the fifth length is a maximum length of at least two floating windows in the stretching direction.
  • the user input unit 1007 may also be configured to receive a second input from the user after the display unit 1006 displays the floating window in the extended area of the retractable screen.
  • the processor 1010 is further configured to adjust the length of the stretching area in the stretching direction in response to the second input received by the user input unit 1007, and adjust the display size of the floating window based on the adjusted length of the stretching area in the stretching direction.
  • the display unit 1006 may specifically be configured to display the floating window in the stretching area according to the size of the stretching area.
  • the user input unit 1007 may also be configured to receive a third input from the user on the floating window after the display unit 1006 displays the floating window in the extended area of the retractable screen.
  • the processor 1010 may also be configured to retract the retractable screen in response to a third input received by the user input unit 1007 .
  • the display unit 1006 may also be configured to display a floating window on the target interface or display a floating logo of the floating window on the target interface.
  • the electronic device since the electronic device can display the target interface on the target screen, the user can extend the retractable screen through the user's input to the floating window on the target interface, and can cancel the floating window on the target interface.
  • the display on the interface, and the floating window is displayed in the stretching area of the stretchable screen, that is, the user can trigger the electronic device to display the target interface and the floating window on different screens of the stretchable screen through input, so that the floating window will not block the target interface. Any area, so the display effect when the electronic device is displayed in a floating window can be improved.
  • the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072 .
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • the memory 1009 can be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • Processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 1010 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above embodiment of the method for displaying a floating window can be realized, and can achieve the same To avoid repetition, the technical effects will not be repeated here.
  • the above-mentioned processor is the processor in the electronic device in the above-mentioned embodiment.
  • the above-mentioned readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and realize the various processes of the above-mentioned floating window display method embodiment, and can achieve The same technical effects are not repeated here to avoid repetition.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

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

Abstract

本申请公开了一种悬浮窗口显示方法、装置、电子设备和可读存储介质,属于终端技术领域。该方法应用于具有伸缩屏的电子设备,该方法包括:在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入;响应于第一输入,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。

Description

悬浮窗口显示方法、装置、电子设备和可读存储介质
相关申请的交叉引用
本申请主张在2021年10月18日在中国提交的中国专利申请号202111211539.8的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于终端技术领域,具体涉及一种悬浮窗口显示方法、装置、电子设备和可读存储介质。
背景技术
随着通信技术的发展,电子设备的功能越来越丰富。例如,电子设备可以采用悬浮窗口显示一个界面。
目前,当用户需求电子设备采用一个悬浮窗口显示一个界面时,电子设备可以通过用户的输入在当前显示的界面上叠加显示该悬浮窗口,从而使用户可以同时对电子设备当前显示的界面和该悬浮窗口中的界面进行查看或使用。
然而,按照上述方法,由于悬浮窗口是由电子设备叠加显示在当前显示的界面上的,从而悬浮窗口会遮挡电子设备当前显示的界面中的部分区域,因此可能导致电子设备采用悬浮窗口显示时的显示效果较差。
发明内容
本申请实施例的目的是提供一种悬浮窗口显示方法、装置、电子设备和可读存储介质,能够解决电子设备采用悬浮窗口显示时的显示效果较差的问题。
第一方面,本申请实施例提供了一种悬浮窗口显示方法,该方法应用于具有伸缩屏的电子设备,该方法包括:在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入;响应于第一输入,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
第二方面,本申请实施例提供了一种悬浮窗口显示装置,该装置具有伸缩屏,该装置包括显示模块、接收模块和伸展模块;接收模块,用于在显示模块在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入;伸展模块,用于响应于接收模块接收的第一输入,伸展伸缩屏;显示模块,还用于取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,所述程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程 序或指令,所述程序或指令被处理器执行时实现如第一方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。
在本申请实施例中,可以在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入;并响应于第一输入,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。通过该方案,由于电子设备可以在目标屏显示目标界面的情况下,通过用户对该目标界面上的悬浮窗口的输入伸展伸缩屏,并可以取消该悬浮窗口在该目标界面上的显示,且在该伸缩屏的伸展区域显示该悬浮窗口,即用户可以通过输入触发电子设备在伸缩屏的不同屏幕分别显示目标界面和悬浮窗口,从而悬浮窗口不会遮挡目标界面中的任何区域,因此可以提高电子设备采用悬浮窗口显示时的显示效果。
附图说明
图1为本申请实施例提供的悬浮窗口显示方法的示意图;
图2为本申请实施例提供的悬浮窗口显示方法应用的界面示意图之一;
图3为本申请实施例提供的悬浮窗口显示方法应用的界面示意图之二;
图4为本申请实施例提供的悬浮窗口显示方法应用的界面示意图之三;
图5为本申请实施例提供的悬浮窗口显示方法应用的界面示意图之四;
图6为本申请实施例提供的悬浮窗口显示装置的示意图;
图7为本申请实施例提供的电子设备的示意图;
图8为本申请实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
需要说明的是,本申请实施例中的标识用于指示信息的文字、符号、图像等,可以以控件或者其他容器作为显示信息的载体,包括但不限于文字标识、符号标识、图像标识。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的悬浮窗口显示方法、装置、电子设备和可读存储介质进行详细地说明。
本申请实施例提供的悬浮窗口显示方法可以应用于用户需求具有伸缩屏的电子设备采用悬浮窗口显示内容的场景中。
示例性地,以用户需求具有伸缩屏的电子设备采用一个悬浮窗口显示一个应用程序中的一个界面(以下称为界面0)为例,假设电子设备的主屏幕(例如本申请实施例中的目标屏)当前显示的界面为界面1(例如本申请实施例中的目标界面),悬浮窗口显示在界面1上且悬浮窗口中显示界面0,那么电子设备可以通过用户的一个输入(例如本申请实施例中的第一输入)伸展伸缩屏,并取消该悬浮窗口在界面1上的显示,且在电子设备的伸缩屏的伸展区域显示该悬浮窗口,从而电子设备可以在不同的屏幕中分别显示界面0和界面1,以方便用户同时对界面0和界面1进行查看或使用,因此可以提高电子设备采用悬浮窗口显示时的显示效果。
结合图1,本申请实施例提供一种悬浮窗口显示方法,该方法可以应用于具有伸缩屏的电子设备,该方法可以包括下述的步骤101和步骤102。下面以具有伸缩屏的电子设备执行该方法为例进行示例性地说明。
步骤101、电子设备在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入。
步骤102、电子设备响应于第一输入,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
可选地,本申请实施例中,伸缩屏可以为刚性屏或柔性屏。
例如,以伸缩屏为刚性屏为例,伸缩屏的至少部分区域可以伸出电子设备的壳体外,当然该至少部分区域也可以缩回至电子设备的壳体内部。
又例如,以伸缩屏为柔性屏为例,上述伸缩屏具体可以为能够绕电子设备中的卷轴收缩或伸展的卷轴屏。
可选地,本申请实施例中,目标界面可以为任意一个界面,例如,目标界面可以为桌面或应用程序中的界面等。
可选地,本申请实施例中,目标屏可以为伸缩屏的一部分显示区域(1);或者,目标屏和伸缩屏为电子设备中的两个不同屏(2),具体可以根据实际使用需求确定,本申请实施例不作限定。
可以理解,在上述(1)中,目标屏与上述伸展区域不同。具体的,该伸展区域可以为伸缩屏中除目标屏之外,且在电子设备接收用户的第一输入之后对用户可见的区域。换句话说,在电子设备接收用户的第一输入之前,伸缩区域对用户不可见。
本申请实施例中,目标屏可以为上述电子设备中始终对用户完全可见的屏。
可选地,本申请实施例中,假设悬浮窗口的默认长宽比为第一比例,那么电子设备可以按照第二比例在伸展区域显示悬浮窗口,其中,第二比例可以包括以下任一项:第一比例,伸缩屏的伸展区域的长宽比。
本申请实施例中,伸缩区域在伸展方向上的长度可以根据实际使用需求确定,本 申请实施例不作限定。
可选地,本申请实施例中,悬浮窗口可以为任意尺寸的窗口,悬浮窗口可以用于显示任意可能的内容,例如悬浮窗口中可以显示一个界面或一张图像。
可以理解,本申请实施例中,用户可以通过悬浮窗口的输入,触发移动悬浮窗口的显示位置和/或调整悬浮窗口的显示尺寸。
可选地,本申请实施例中,每个悬浮窗口可以对应一个界面;或者,每个悬浮窗口可以对应一个应用程序。
例如,以每个悬浮窗口对应一个应用程序为例,假设一个应用程序与一个悬浮窗口对应,且电子设备可以在该悬浮窗口中显示该应用程序的界面a,那么用户可以通过对该悬浮窗口的输入,触发电子设备在该悬浮窗口中显示该应用程序的界面b。
下面结合附图对本申请实施例提供的悬浮窗口显示方法进行示例性地说明。
示例性地,如图2中的(a)所示,电子设备在目标屏显示目标界面的情况下,在目标界面上显示悬浮窗口20,若电子设备接收到用户在悬浮窗口20上的输入(即第一输入),则如图2中的(c)所示,电子设备可以伸展伸缩屏,且取消悬浮窗口20在目标界面上的显示,并在伸缩屏的伸展区域22显示悬浮窗口20,即电子设备可以基于用户的输入,将悬浮窗口从目标界面移动至伸缩屏的伸展区域,如此可以避免悬浮窗口遮挡目标界面中的内容,从而满足用户的使用需求。
可选地,本申请实施例中,第一输入可以为用户对悬浮窗口的悬浮输入、触控输入或语音输入等任意可能形式的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
可选地,本申请实施例中,第一输入可以为用户对悬浮窗口的拖动输入(一种可能的实现方式),或者,第一输入可以为用户对悬浮窗口中的目标控件的输入(另一种可能的实现方式)。
下面结合附图分别对上述一种可能的实现方式和另一种可能的实现方式进行详细说明。
可选地,本申请实施例中,上述步骤102具体可以通过下述的步骤102a实现。
步骤102a、电子设备在悬浮窗口超出目标屏的边界的情况下,响应于第一输入,将伸缩屏沿伸展方向伸展第一长度,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
可选地,本申请实施例中,第一长度可以与目标界面上的悬浮窗口超出目标屏的边界的长度相同,伸展区域中的悬浮窗口在伸展方向上的长度与第一长度相同。
本申请实施例中,用户可以将悬浮窗口向目标屏的边界拖动,当悬浮窗口的边界超出目标屏的边界时,电子设备可以确认用户需求在伸缩屏的伸展区域中显示悬浮窗口,从而电子设备可以伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
可以理解,本申请实施例中,当用户拖动悬浮窗口时,若悬浮窗口的边界未超出目标屏的边界,则电子设备可以确认用户需求调整悬浮窗口在目标屏中的显示位置;若悬浮窗口超出目标屏的边界,则电子设备可以确认用户需求分区域显示目标屏和悬浮窗口。
可选地,本申请实施例中,用户可以在目标屏中沿任意方向拖动悬浮窗口。
可选地,本申请实施例中,假设伸缩屏可以沿多个方向伸展,那么在用户拖动悬浮窗口超出目标屏的边界的情况下,电子设备可以沿用户拖动悬浮窗口的方向对应的方向伸展伸缩屏。
例如,假设伸缩屏可以沿上、下、左和右四个方向伸出,那么:若用户在目标屏中向右拖动悬浮窗口超出目标屏的边界,则电子设备可以向右伸展伸缩屏;若用户在目标屏中向左拖动悬浮窗口超出目标屏的边界,则电子设备可以向左伸展伸缩屏;若用户在目标屏中向上拖动悬浮窗口超出目标屏的边界,则电子设备可以向上伸展伸缩屏;若用户在目标屏中向下拖动悬浮窗口超出目标屏的边界,则电子设备可以向下伸展伸缩屏。
需要说明的是,上述上、下、左和右均是以电子设备的目标屏朝向用户时,该目标屏上显示目标界面为例进行示意的。
可选地,本申请实施例中,电子设备可以在悬浮窗口的边界超出目标屏的边界即伸展伸缩屏;或者,电子设备可以在悬浮窗口的边界超出目标屏的边界预设长度时伸展伸缩屏,从而可以避免误操作。
可选地,本申请实施例中,上述预设长度可以为系统预设的,也可以为用户根据实际使用需求设置的。
例如,用户可以设置预设长度为悬浮窗口在伸缩屏的伸展方向(即下述的第一方向)上的长度的1/2、悬浮窗口在伸缩屏的伸展方向的长度的1/4等任意可能的长度。
可选地,本申请实施例中,电子设备可以基于目标界面中的悬浮窗口在移动/拖动方向上的长度,确定上述第一长度。
例如,假设电子设备在接收第一输入前,显示在目标界面上的悬浮窗口在第一方向上的长度为4cm,那么用户可以沿第一方向拖动悬浮窗口,若悬浮窗口的边界超出目标屏的边界后,目标界面中的悬浮窗口在第一方向上的长度为3cm,则电子设备可以确定第一长度为1cm。
下面结合附图对本申请实施例提供的悬浮窗口显示方法进行示例性地描述。
示例性地,假设伸缩屏的伸展方向为向右的方向,悬浮窗口在伸缩屏的伸展方向上的长度的2cm,用户设置的预设长度为悬浮窗口在伸缩屏的伸展方向上的长度的1/2,即1cm,如图2中的(a)所示,电子设备将目标界面显示在屏幕21(即目标屏)中,且在目标界面上显示悬浮窗口20,如图2中的(b)所示,当用户在屏幕21上向右拖动悬浮窗口20且使悬浮窗口20的边界超出屏幕21的边界1cm(即第一长度)时, 如图2中的(c)所示,电子设备可以将伸缩屏向右伸展1cm,且取消悬浮窗口20在目标界面上的显示,并在伸展区域22显示悬浮窗口20,且伸展区域22中的悬浮窗口20在伸缩屏的伸展方向上的长度的1cm,从而一方面可以方便用户同时对目标界面和悬浮窗口中的内容进行查看或使用,另一方面可以避免误操作,又一方面可以避免悬浮窗口遮挡目标界面中的内容。
本申请是实例中,由于电子设备可以在一个界面上的悬浮窗口超出显示该界面的屏幕的边界时,将伸缩屏伸展与该悬浮窗口超出屏幕边界的长度相同的长度,并将该悬浮窗口仅显示在伸缩屏的伸展区域,且该伸展区域中的悬浮窗口在伸展方向上的长度与伸展区域在伸展方向上的长度相同,即电子设备可以将目标界面和悬浮窗口分别显示在电子设备的不同屏/不同屏幕区域,因此可以提高电子设备显示悬浮窗口的灵活性。
可选地,本申请实施例中,上述悬浮窗口中可以包括至少一个第一控件,每个第一控件可以对应伸缩屏的一种伸展方式,上述目标控件可以为该至少一个第一控件中的控件,上述步骤102中电子设备伸展伸缩屏的方法具体可以通过下述的步骤102b实现。
步骤102b、电子设备按照目标控件对应的目标伸展方式,伸展伸缩屏。
可选地,本申请实施例中,目标伸展方式可以包括以下至少一项:目标伸展方向(1)、目标伸展长度(2)。
可选地,本申请实施例中,在上述(1)的情况下,第一控件中的目标控件可以为对应伸缩屏的伸展方向的控件。在上述(2)的情况下,第一控件中的目标控件可以为对应伸缩屏的伸展长度的控件。
可选地,本申请实施例中,电子设备接收到用户对目标控件的输入之后,在上述(1)中,电子设备可以响应于第一输入,按照目标控件对应的目标伸展方向,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域中显示悬浮窗口。在上述(2)中,电子设备可以响应于第一输入,按照目标控件对应的伸展长度,伸展伸缩屏,且取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域中显示悬浮窗口。可以看出,在上述(1)中,伸缩屏的伸展方向为目标伸展方向,在上述(2)中,伸缩屏的伸展长度(即伸出的长度)为目标伸展长度。可选地,本申请实施例中,在上述(2)中,目标伸展长度小于或等于伸缩屏在伸展方向上的最大伸展长度。
下面结合附图对本申请实施例提供的悬浮窗口显示方法进行示例性地描述。
示例性地,如图3中的(a)所示,假设悬浮窗口30中包括至少一个第一控件,分别为控件31、控件32和控件34,其中,控件31对应的伸展方向为向左的方向,控件32对应的伸展方向为向右的方向,控件34对应伸缩屏的最大伸展长度,那么,若目标控件为控件31,则电子设备在接收到用户对控件31的输入(即第一输入)之后,如图3中的(b)所示,电子设备可以控制伸缩屏向左伸展,且取消悬浮窗口30在目 标界面上的显示,并在伸缩屏向左的伸展区域35中显示悬浮窗口30;若目标控件为控件32,则电子设备在接收到用户对控件32的输入(即第一输入)之后,如图3中的(c)所示,电子设备可以控制伸缩屏向右伸展,且取消悬浮窗口30在目标界面上的显示,并在伸缩屏向右的伸展区域36中显示悬浮窗口30;若目标控件为控件34,则电子设备在接收到用户对控件34的输入(即第一输入)之后,如图4所示,电子设备可以控制伸缩屏完全伸展,且取消悬浮窗口30在目标界面上的显示,并在伸展区域中全屏显示悬浮窗口30。如此电子设备可以通过用户对不同的目标控件的输入,控制伸缩屏按照不同的伸展方式伸展,以将悬浮窗口显示在符合用户需求的伸展区域中。
本申请是实例中,由于电子设备可以通过用户对悬浮窗口中的对应伸缩屏的一种伸展方式的控件的输入,控制伸缩屏按照该控件对应的伸展方向或伸展长度伸展伸缩屏,从而电子设备可以在不同的伸展区域显示悬浮窗口,因此可以进一步提高电子设备伸展伸缩屏的灵活性。
可选地,本申请实施例中,电子设备可以通过不同的方式确定伸缩屏的伸展长度,上述步骤102中电子设备伸展伸缩屏的方法具体可以通过下述的步骤A或步骤B实现。
步骤A、电子设备将伸缩屏沿伸展方向伸展第二长度。
可选地,本申请实施例中,第二长度可以与目标界面上的悬浮窗口在伸展方向上的长度相同,伸展区域中的悬浮窗口在伸展方向上的长度与第二长度相同。
可选地,本申请实施例中,电子设备可以基于目标界面中的悬浮窗口在移动/拖动方向上的长度,确定第二长度。
下面对本申请实施例提供的悬浮窗口显示方法进行示例性地说明。
示例性地,假设电子设备显示在目标界面上的悬浮窗口在第一方向上的长度为3cm,那么电子设备可以确定第二长度为3cm,若电子设备接收到用户对该悬浮窗口的输入(即第一输入),则电子设备可以将伸缩屏沿第一方向伸展3cm,并在伸展区域中显示该悬浮窗口,且伸展区域中的该悬浮窗口在第一方向上的长度也为3cm。
本申请实施例中,由于电子设备可以根据悬浮窗口在伸展方向上的长度,将伸缩屏沿伸展方向也伸展相同的长度,并将该悬浮窗口以原始尺寸仅显示在伸缩屏的伸展区域中,从而可以丰富电子设备伸展伸缩屏的方式。
步骤B、电子设备在第三长度大于伸缩屏在伸展方向上的第四长度的情况下,将伸缩屏沿伸展方向伸展第四长度。
可选地,本申请实施例中,第三长度可以为上述第一长度或第二长度。
本申请实施例中,第四长度为伸缩屏的最大伸展长度,伸展区域中的悬浮窗口在伸展方向上的长度与第四长度相同。
下面对本申请实施例提供的悬浮窗口显示方法进行示例性地说明。
示例性地,以第三长度为第二长度为例,假设电子设备的伸缩屏的最大伸展长度为2cm(即第四长度),显示在目标界面上的悬浮窗口在第一方向上的长度为3cm(即 第二长度),若电子设备接收到用户对该悬浮窗口的输入(即第一输入),则电子设备可以将伸缩屏沿第一方向伸展2cm,并在伸展区域中显示该悬浮窗口,且伸展区域中的该悬浮窗口在第一方向上的长度为2cm。
本申请实施例中,由于电子设备在用户沿伸展方向拖动目标界面中的悬浮窗口超出显示该目标界面的屏幕的长度大于伸缩屏可以伸展的最大长度,或该悬浮窗口在该伸展方向上的长度大于伸缩屏可以伸展的最大长度时,可以将伸缩屏沿该伸展方向伸展伸缩屏可以伸展的最大长度,并且伸展区域中的悬浮窗口在该伸展方向上的长度与该最大长度相同,从而可以进一步丰富电子设备伸展伸缩屏的方式。
可选地,本申请实施例中,上述目标界面上的悬浮窗口的数量可以为多个,上述第一输入可以包括对上述目标界面中的至少两个悬浮窗口的输入,上述步骤102中电子设备伸展伸缩屏的方法具体可以通过下述的步骤C实现。
步骤C、电子设备将伸缩屏沿伸展方向伸展第五长度。
本申请实施例中,第五长度可以为至少两个悬浮窗口在伸展方向上的最大长度。
可选地,本申请实施例中,电子设备在将伸缩屏沿伸展方向伸展第五长度后,上述多个悬浮窗口可以沿垂直于伸缩屏的伸展方向排布显示在伸展区域中。
下面对本申请实施例提供的悬浮窗口显示方法进行示例性地说明。
示例性地,假设目标界面上显示悬浮窗口X和悬浮窗口Y,悬浮窗口X在第一方向上的长度为3cm,悬浮窗口Y在第一方向上的长度为2cm,若电子设备接收到用户对悬浮窗口X和悬浮窗口Y的输入(即第一输入),电子设备可以将伸缩屏沿第一方向伸展3cm(即第五长度),并在伸展区域中沿垂直于伸缩屏的伸展方向排布显示悬浮窗口X和悬浮窗口Y。
本申请实施例中,由于电子设备可以根据多个悬浮窗口在伸展方向上长度,将伸缩屏沿伸展方向伸展该多个悬浮窗口在伸展方向上长度中的最大长度,从而可以确保每个悬浮窗口均能以较好的效果显示在伸展区域中,以供用户查看或使用。
可选地,本申请实施例中,上述步骤102中电子设备在伸缩屏的伸展区域显示悬浮窗口的方法具体可以通过下述的步骤102c实现。
步骤102c、电子设备按照伸展区域的尺寸,在伸展区域显示悬浮窗口。
可选地,本申请实施例中,电子设备可以根据伸展区域的显示尺寸相应调整悬浮窗口全屏显示的显示尺寸,以提高电子设备全屏显示悬浮窗口的显示效果。
本申请实施例中,由于电子设备可以按照伸展区域的尺寸将悬浮窗口显示在伸缩屏的伸展区域中,从而可以方便用户更好地查看悬浮窗口中显示的内容,因此可以丰富电子设备显示悬浮窗口的显示效果。
在本申请实施例提供的悬浮窗口显示方法中,由于电子设备可以在目标屏显示目标界面的情况下,通过用户对该目标界面上的悬浮窗口的输入伸展伸缩屏,并可以取消该悬浮窗口在该目标界面上的显示,且在该伸缩屏的伸展区域显示该悬浮窗口,即 用户可以通过输入触发电子设备在伸缩屏的不同屏幕分别显示目标界面和悬浮窗口,从而悬浮窗口不会遮挡目标界面中的任何区域,因此可以提高电子设备采用悬浮窗口显示时的显示效果。
可选地,本申请实施例中,在上述步骤102之后本申请实施例提供的悬浮窗口显示方法还可以包括下述的步骤103和步骤104。
步骤103、电子设备接收用户的第二输入。
步骤104、电子设备响应于第二输入,调整伸展区域在伸展方向上的长度,并基于调整后的伸展区域在伸展方向上的长度调整悬浮窗口的显示尺寸。
可选地,本申请实施例中,第二输入可以为触控输入、语音输入或对伸缩屏的拖动输入等任意可能形式的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
例如,以第二输入为触控输入为例,第二输入可以为用户对电子设备中用于触发伸缩屏伸展的控件的点击输入。
可选地,本申请实施例中,电子设备可以基于调整后的伸展区域在伸展方向上的长度,以悬浮窗口的原始长宽比调整悬浮窗口的显示尺寸。
例如,假设伸展区域中显示的悬浮窗口在伸展方向上的长度为2cm,在垂直于伸展方向的方向上的长度为1cm,若电子设备通过用户的输入(即第二输入)将伸展区域在伸展方向上的长度从2cm调整为1cm,则电子设备可以将该悬浮窗口在伸展方向上的长度调整为1cm,并将该悬浮窗口在垂直于伸展方向的方向上的长度调整为0.5cm,即电子设备可以基于调整后的伸展区域在伸展方向上的长度调整悬浮窗口的显示尺寸,从而可以在伸展区域改变时确保悬浮窗口的显示效果。
本申请实施例中,由于电子设备可以通过用户的输入调整伸展区域在伸展方向上的长度,并可以基于该长度适配调整显示在伸展区域中的悬浮窗口的显示尺寸,从而可以保持该悬浮窗口的原有显示效果,以提升用户的使用体验。
可选地,本申请实施例中,在电子设备在伸缩屏的伸展区域显示悬浮窗口之后,用户可以通过输入触发电子设备增大或缩小悬浮窗口在伸缩屏的伸展方向上的长度,并同步增大或缩小伸展区域在该伸展方向上的长度。
可以理解,当伸展区域在该伸展方向上的长度等于最大伸展长度后,若用户继续触发增大悬浮窗口在该伸展方向上的长度,则电子设备确认放大输入无效。
可选地,本申请实施例中,在上述步骤102之后本申请实施例提供的悬浮窗口显示方法还可以包括下述的步骤105和步骤106。
步骤105、电子设备接收用户对悬浮窗口的第三输入。
步骤106、电子设备响应于第三输入,缩回伸缩屏,并在目标界面上显示悬浮窗口或在目标界面上显示悬浮窗口的悬浮标识。
可选地,本申请实施例中,第三输入可以为用户对悬浮窗口的悬浮输入、触控输 入或语音输入或等任意可能形式的输入,具体可以根据实际使用需求确定,本申请实施例不作限定。
例如,以第三输入为触控输入为例,第三输入可以为用户对电子设备中用于触发伸缩屏收缩的控件的点击输入。
可选地,本申请实施例中,悬浮标识可以为能够指示悬浮窗口的任意形式的标识,例如,悬浮标识可以为悬浮窗口中显示的界面对应的应用程序的图标,或者,悬浮标识可以为指示悬浮窗口中显示的内容的文字标识等。
下面结合附图对本申请实施例提供的悬浮窗口显示方法进行示例性地描述。
示例性地,如图3中的(c)所示,电子设备在伸缩屏的伸展区域36中显示悬浮窗口30,且悬浮窗口30中包括用于触发伸缩屏收缩的控件33,那么,若电子设备接收到用户对悬浮窗口中30的控件33的点击输入,则电子设备可以取消在伸展区域36中显示悬浮窗口30,并如图5所示,电子设备可以缩回伸缩屏,并在目标界面上显示悬浮窗口30的悬浮标识50。
本申请实施例中,由于用户可以通过对悬浮窗口的输入,触发电子设备缩回伸缩屏,并在目标屏的目标界面上显示该悬浮窗口或该悬浮窗口的悬浮标识,以方便用户的进一步操作,因此可以进一步丰富电子设备显示悬浮窗口的灵活性。
需要说明的是,本申请实施例提供的悬浮窗口显示方法,执行主体可以为悬浮窗口显示装置,或者该悬浮窗口显示装置中的用于执行悬浮窗口显示方法的控制模块。本申请实施例中以悬浮窗口显示装置执行悬浮窗口显示方法为例,说明本申请实施例提供的悬浮窗口显示装置。
结合图6,本申请实施例提供一种悬浮窗口显示装置60,悬浮窗口显示装置60具有伸缩屏,该悬浮窗口显示装置60可以包括:显示模块61、接收模块62和伸展模块63。接收模块62,可以用于在显示模块61在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入。伸展模块63,可以用于响应于接收模块62接收的第一输入,伸展伸缩屏。显示模块61,还可以用于取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
一种可能的实现方式中,伸展模块63,具体可以用于在悬浮窗口超出目标屏的边界的情况下,响应于接收模块62接收的第一输入,将伸缩屏沿伸展方向伸展第一长度。显示模块61,具体可以用于取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口;其中,第一长度与目标界面上的悬浮窗口超出目标屏的边界的长度相同,伸展区域中的悬浮窗口在伸展方向上的长度与第一长度相同。
一种可能的实现方式中,悬浮窗口中可以包括至少一个第一控件,每个第一控件可以对应伸缩屏的一种伸展方式,第一输入可以为用户对至少一个控件中的目标控件的输入。伸展模块63,具体可以用于按照目标控件对应的目标伸展方式,伸展伸缩屏;其中,目标伸展方式可以包括以下至少一项:目标伸展方向、目标伸展长度。
一种可能的实现方式中,伸展模块63,具体可以用于将伸缩屏沿伸展方向伸展第二长度,第二长度与目标界面上的悬浮窗口在伸展方向上的长度相同;其中,伸展区域中的悬浮窗口在伸展方向上的长度与第二长度相同。
一种可能的实现方式中,伸展模块63,具体可以用于在第三长度大于伸缩屏在伸展方向上的第四长度的情况下,将伸缩屏沿伸展方向伸展第四长度,第三长度为第一长度或第二长度;其中,第四长度为伸缩屏的最大伸展长度,伸展区域中的悬浮窗口在伸展方向上的长度与第四长度相同。
一种可能的实现方式中,目标界面上的悬浮窗口的数量为多个,第一输入包括对目标界面中的至少两个悬浮窗口的输入。伸展模块63,具体可以用于将伸缩屏沿伸展方向伸展第五长度,第五长度为至少两个悬浮窗口在伸展方向上的最大长度。
一种可能的实现方式中,上述悬浮窗口显示装置60还可以包括调整模块。接收模块62,还可以用于在显示模块61在伸缩屏的伸展区域显示悬浮窗口之后,接收用户的第二输入。调整模块,可以用于响应于接收模块62接收的第二输入,调整伸展区域在伸展方向上的长度,并基于调整后的伸展区域在伸展方向上的长度调整悬浮窗口的显示尺寸。
一种可能的实现方式中,显示模块61,具体可以用于按照所述伸展区域的尺寸,在所述伸展区域显示所述悬浮窗口。
一种可能的实现方式中,接收模块62,还可以用于在显示模块61在伸缩屏的伸展区域显示悬浮窗口之后,接收用户对悬浮窗口的第三输入。伸展模块63,还可以用于响应于接收模块62接收的第三输入,缩回所述伸缩屏。显示模块61,还可以用于在目标界面上显示悬浮窗口或在目标界面上显示悬浮窗口的悬浮标识。
在本申请实施例提供的悬浮窗口显示装置中,由于该悬浮窗口显示装置可以在目标屏显示目标界面的情况下,通过用户对该目标界面上的悬浮窗口的输入伸展伸缩屏,并可以取消该悬浮窗口在该目标界面上的显示,且在该伸缩屏的伸展区域显示该悬浮窗口,即用户可以通过输入触发该悬浮窗口显示装置在伸缩屏的不同屏幕分别显示目标界面和悬浮窗口,从而悬浮窗口不会遮挡目标界面中的任何区域,因此可以提高悬浮窗口显示装置采用悬浮窗口显示时的显示效果。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
本申请实施例中的悬浮窗口显示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer, PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的悬浮窗口显示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的悬浮窗口显示装置能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。
如图7所示,本申请实施例还提供一种电子设备200,包括处理器202,存储器201,存储在存储器201上并可在处理器202上运行的程序或指令,该程序或指令被处理器202执行时实现上述悬浮窗口显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种具有伸缩屏的电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元1007,可以用于在显示单元1006在目标屏显示目标界面的情况下,接收用户对目标界面上的悬浮窗口的第一输入。处理器1010,可以用于响应于用户输入单元1007接收的第一输入,伸展伸缩屏。显示单元1006,还可以用于取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口。
一种可能的实现方式中,处理器1010,具体可以用于在悬浮窗口超出目标屏的边界的情况下,响应于用户输入单元1007接收的第一输入,将伸缩屏沿伸展方向伸展第一长度。显示单元1006,具体可以用于取消悬浮窗口在目标界面上的显示,并在伸缩屏的伸展区域显示悬浮窗口;其中,第一长度与目标界面上的悬浮窗口超出目标屏的边界的长度相同,伸展区域中的悬浮窗口在伸展方向上的长度与第一长度相同。
一种可能的实现方式中,悬浮窗口中可以包括至少一个第一控件,每个第一控件可以对应伸缩屏的一种伸展方式,第一输入可以为用户对至少一个控件中的目标控件的输入。处理器1010,具体可以用于按照目标控件对应的目标伸展方式,伸展伸缩屏;其中,目标伸展方式可以包括以下至少一项:目标伸展方向、目标伸展长度。
一种可能的实现方式中,处理器1010,具体可以用于将伸缩屏沿伸展方向伸展第 二长度,第二长度与目标界面上的悬浮窗口在伸展方向上的长度相同;其中,伸展区域中的悬浮窗口在伸展方向上的长度与第二长度相同。
一种可能的实现方式中,处理器1010,具体可以用于在第三长度大于伸缩屏在伸展方向上的第四长度的情况下,将伸缩屏沿伸展方向伸展第四长度,第三长度为第一长度或第二长度;其中,第四长度为伸缩屏的最大伸展长度,伸展区域中的悬浮窗口在伸展方向上的长度与第四长度相同。
一种可能的实现方式中,目标界面上的悬浮窗口的数量为多个,第一输入包括对目标界面中的至少两个悬浮窗口的输入。处理器1010,具体可以用于将伸缩屏沿伸展方向伸展第五长度,第五长度为至少两个悬浮窗口在伸展方向上的最大长度。
一种可能的实现方式中,用户输入单元1007,还可以用于在显示单元1006在伸缩屏的伸展区域显示悬浮窗口之后,接收用户的第二输入。处理器1010,还可以用于响应于用户输入单元1007接收的第二输入,调整伸展区域在伸展方向上的长度,并基于调整后的伸展区域在伸展方向上的长度调整悬浮窗口的显示尺寸。
一种可能的实现方式中,显示单元1006,具体可以用于按照所述伸展区域的尺寸,在所述伸展区域显示所述悬浮窗口。
一种可能的实现方式中,用户输入单元1007,还可以用于在显示单元1006在伸缩屏的伸展区域显示悬浮窗口之后,接收用户对悬浮窗口的第三输入。处理器1010,还可以用于响应于用户输入单元1007接收的第三输入,缩回所述伸缩屏。显示单元1006,还可以用于在目标界面上显示悬浮窗口或在目标界面上显示悬浮窗口的悬浮标识。
在本申请实施例提供的电子设备中,由于电子设备可以在目标屏显示目标界面的情况下,通过用户对该目标界面上的悬浮窗口的输入伸展伸缩屏,并可以取消该悬浮窗口在该目标界面上的显示,且在该伸缩屏的伸展区域显示该悬浮窗口,即用户可以通过输入触发电子设备在伸缩屏的不同屏幕分别显示目标界面和悬浮窗口,从而悬浮窗口不会遮挡目标界面中的任何区域,因此可以提高电子设备采用悬浮窗口显示时的显示效果。
本实施例中各种实现方式具有的有益效果具体可以参见上述方法实施例中相应实现方式所具有的有益效果,为避免重复,此处不再赘述。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比 如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述悬浮窗口显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,上述处理器为上述实施例中的电子设备中的处理器。上述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述悬浮窗口显示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技 术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (23)

  1. 一种悬浮窗口显示方法,所述方法包括:
    电子设备在目标屏显示目标界面的情况下,接收用户对所述目标界面上的悬浮窗口的第一输入,所述电子设备具有伸缩屏;
    所述电子设备响应于所述第一输入,伸展所述伸缩屏,且取消所述悬浮窗口在所述目标界面上的显示,并在所述伸缩屏的伸展区域显示所述悬浮窗口。
  2. 根据权利要求1所述的方法,其中,所述电子设备响应于所述第一输入,伸展所述伸缩屏,且取消所述悬浮窗口在所述目标界面上的显示,并在所述伸缩屏的所述伸展区域显示所述悬浮窗口,包括:
    所述电子设备在所述悬浮窗口超出所述目标屏的边界的情况下,响应于所述第一输入,将所述伸缩屏沿伸展方向伸展第一长度,且取消所述悬浮窗口在所述目标界面上的显示,并在所述伸缩屏的所述伸展区域显示所述悬浮窗口;
    其中,所述第一长度与所述目标界面上的所述悬浮窗口超出所述目标屏的边界的长度相同,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第一长度相同。
  3. 根据权利要求1所述的方法,其中,所述悬浮窗口中包括至少一个第一控件,每个第一控件对应所述伸缩屏的一种伸展方式,所述第一输入为用户对所述至少一个控件中的目标控件的输入;
    所述伸展所述伸缩屏,包括:
    按照所述目标控件对应的目标伸展方式,伸展所述伸缩屏;
    其中,所述目标伸展方式包括以下至少一项:目标伸展方向、目标伸展长度。
  4. 根据权利要求1所述的方法,其中,所述伸展所述伸缩屏,包括:
    将所述伸缩屏沿伸展方向伸展第二长度,所述第二长度与所述目标界面上的所述悬浮窗口在所述伸展方向上的长度相同;
    其中,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第二长度相同。
  5. 根据权利要求2或4所述的方法,其中,所述伸展所述伸缩屏,包括:
    在第三长度大于所述伸缩屏在所述伸展方向上的第四长度的情况下,将所述伸缩屏沿所述伸展方向伸展所述第四长度,所述第三长度为所述第一长度或所述第二长度;
    其中,所述第四长度为所述伸缩屏的最大伸展长度,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第四长度相同。
  6. 根据权利要求1至3中任一项所述的方法,其中,所述目标界面上的悬浮窗口的数量为多个,所述第一输入包括对所述目标界面中的至少两个悬浮窗口的输入;
    所述伸展所述伸缩屏,包括:
    将所述伸缩屏沿伸展方向伸展第五长度,所述第五长度为所述至少两个悬浮窗口在所述伸展方向上的最大长度。
  7. 根据权利要求1所述的方法,其中,所述在所述伸缩屏的伸展区域显示所述悬 浮窗口之后,所述方法还包括:
    所述电子设备接收用户的第二输入;
    所述电子设备响应于所述第二输入,调整所述伸展区域在所述伸展方向上的长度,并基于调整后的所述伸展区域在所述伸展方向上的长度调整所述悬浮窗口的显示尺寸。
  8. 根据权利要求1至3中任一项所述的方法,其中,所述在所述伸缩屏的所述伸展区域显示所述悬浮窗口,包括:
    按照所述伸展区域的尺寸,在所述伸展区域显示所述悬浮窗口。
  9. 根据权利要求1至4中任一项所述的方法,其中,所述在所述伸缩屏的伸展区域显示所述悬浮窗口之后,所述方法还包括:
    所述电子设备接收用户对所述悬浮窗口的第三输入;
    所述电子设备响应于所述第三输入,缩回所述伸缩屏,并在所述目标界面上显示所述悬浮窗口或在所述目标界面上显示所述悬浮窗口的悬浮标识。
  10. 一种悬浮窗口显示装置,所述装置具有伸缩屏,所述装置包括显示模块、接收模块和伸展模块;
    所述接收模块,用于在所述显示模块在目标屏显示目标界面的情况下,接收用户对所述目标界面上的悬浮窗口的第一输入;
    所述伸展模块,用于响应于所述接收模块接收的所述第一输入,伸展所述伸缩屏;
    所述显示模块,还用于取消所述悬浮窗口在所述目标界面上的显示,并在所述伸缩屏的伸展区域显示悬浮窗口。
  11. 根据权利要求10所述的装置,其中,
    所述伸展模块,具体用于在所述悬浮窗口超出所述目标屏的边界的情况下,响应于所述接收模块接收的所述第一输入,将所述伸缩屏沿伸展方向伸展第一长度;
    所述显示模块,具体用于取消所述悬浮窗口在所述目标界面上的显示,并在所述伸缩屏的所述伸展区域显示所述悬浮窗口;
    其中,所述第一长度与所述目标界面上的所述悬浮窗口超出所述目标屏的边界的长度相同,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第一长度相同。
  12. 根据权利要求10所述的装置,其中,所述悬浮窗口中包括至少一个第一控件,每个第一控件对应所述伸缩屏的一种伸展方式,所述第一输入为用户对所述至少一个控件中的目标控件的输入;
    所述伸展模块,具体用于按照所述目标控件对应的目标伸展方式,伸展所述伸缩屏;
    其中,所述目标伸展方式包括以下至少一项:目标伸展方向、目标伸展长度。
  13. 根据权利要求10所述的装置,其中,
    所述伸展模块,具体用于将所述伸缩屏沿伸展方向伸展第二长度,所述第二长度 与所述目标界面上的所述悬浮窗口在所述伸展方向上的长度相同;
    其中,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第二长度相同。
  14. 根据权利要求11或13所述的装置,其中,
    所述伸展模块,具体用于在第三长度大于所述伸缩屏在所述伸展方向上的第四长度的情况下,将所述伸缩屏沿所述伸展方向伸展所述第四长度,所述第三长度为所述第一长度或所述第二长度;
    其中,所述第四长度为所述伸缩屏的最大伸展长度,所述伸展区域中的悬浮窗口在所述伸展方向上的长度与所述第四长度相同。
  15. 根据权利要求10至12中任一项所述的装置,其中,所述目标界面上的悬浮窗口的数量为多个,所述第一输入包括对所述目标界面中的至少两个悬浮窗口的输入;
    所述伸展模块,具体用于将所述伸缩屏沿伸展方向伸展第五长度,所述第五长度为所述至少两个悬浮窗口在所述伸展方向上的最大长度。
  16. 根据权利要求10所述的装置,其中,所述装置还包括调整模块;
    所述接收模块,还用于在所述显示模块在所述伸缩屏的所述伸展区域显示所述悬浮窗口之后,接收用户的第二输入;
    所述调整模块,用于响应于所述接收模块接收的所述第二输入,调整所述伸展区域在所述伸展方向上的长度,并基于调整后的所述伸展区域在所述伸展方向上的长度调整所述悬浮窗口的显示尺寸。
  17. 根据权利要求10至12中任一项所述的装置,其中,
    所述显示模块,具体用于按照所述伸展区域的尺寸,在所述伸展区域显示所述悬浮窗口。
  18. 根据权利要求10至13中任一项所述的装置,其中,
    所述接收模块,还用于在所述显示模块在所述伸缩屏的所述伸展区域显示所述悬浮窗口之后,接收用户对所述悬浮窗口的第三输入;
    所述伸展模块,还用于响应于所述接收模块接收的所述第三输入,缩回所述伸缩屏;
    所述显示模块,还用于在所述目标界面上显示所述悬浮窗口或在所述目标界面上显示所述悬浮窗口的悬浮标识。
  19. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至9中任一项所述的悬浮窗口显示方法的步骤。
  20. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至9中任一项所述的悬浮窗口显示方法的步骤。
  21. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至9中任一项所述的悬浮窗口显示方法。
  22. 一种电子设备,包括电子设备被配置成用于执行如权利要求1至9中任一项所述的悬浮窗口显示方法。
  23. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至9中任一项所述的悬浮窗口显示方法。
PCT/CN2022/125664 2021-10-18 2022-10-17 悬浮窗口显示方法、装置、电子设备和可读存储介质 WO2023066196A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111211539.8A CN114064170A (zh) 2021-10-18 2021-10-18 悬浮窗口显示方法、装置、电子设备和可读存储介质
CN202111211539.8 2021-10-18

Publications (1)

Publication Number Publication Date
WO2023066196A1 true WO2023066196A1 (zh) 2023-04-27

Family

ID=80235046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/125664 WO2023066196A1 (zh) 2021-10-18 2022-10-17 悬浮窗口显示方法、装置、电子设备和可读存储介质

Country Status (2)

Country Link
CN (1) CN114064170A (zh)
WO (1) WO2023066196A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114064170A (zh) * 2021-10-18 2022-02-18 维沃移动通信有限公司 悬浮窗口显示方法、装置、电子设备和可读存储介质
CN116781808A (zh) * 2022-03-11 2023-09-19 华为技术有限公司 一种显示方法及电子设备
CN115033333B (zh) * 2022-07-19 2022-12-16 荣耀终端有限公司 一种悬浮窗显示方法、电子设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070080918A (ko) * 2006-02-09 2007-08-14 삼성전자주식회사 휴대단말의 디지털 이미지 표시방법 및 장치
CN111104086A (zh) * 2019-11-19 2020-05-05 维沃移动通信有限公司 一种显示方法及电子设备
CN111414143A (zh) * 2020-03-17 2020-07-14 维沃移动通信有限公司 显示控制方法、电子设备及介质
CN112596644A (zh) * 2020-12-18 2021-04-02 维沃移动通信有限公司 显示方法、装置和电子设备
CN114064170A (zh) * 2021-10-18 2022-02-18 维沃移动通信有限公司 悬浮窗口显示方法、装置、电子设备和可读存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8369893B2 (en) * 2010-12-31 2013-02-05 Motorola Mobility Llc Method and system for adapting mobile device to accommodate external display
KR101721046B1 (ko) * 2012-04-08 2017-03-29 삼성전자주식회사 디스플레이 장치 및 그에 대한 제어 방법
CN106648779B (zh) * 2016-12-26 2018-05-11 竞技世界(北京)网络技术有限公司 一种智能终端悬浮窗权限设置方法
CN107508974B (zh) * 2017-08-10 2020-03-17 努比亚技术有限公司 一种界面显示方法、移动终端以及计算机可读存储介质
WO2019072178A1 (zh) * 2017-10-09 2019-04-18 华为技术有限公司 一种通知处理方法及电子设备
CN109782998B (zh) * 2019-01-29 2022-10-14 维沃移动通信(深圳)有限公司 显示屏控制方法及移动终端
CN116723266A (zh) * 2019-07-31 2023-09-08 华为技术有限公司 一种悬浮窗口的管理方法及相关装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070080918A (ko) * 2006-02-09 2007-08-14 삼성전자주식회사 휴대단말의 디지털 이미지 표시방법 및 장치
CN111104086A (zh) * 2019-11-19 2020-05-05 维沃移动通信有限公司 一种显示方法及电子设备
CN111414143A (zh) * 2020-03-17 2020-07-14 维沃移动通信有限公司 显示控制方法、电子设备及介质
CN112596644A (zh) * 2020-12-18 2021-04-02 维沃移动通信有限公司 显示方法、装置和电子设备
CN114064170A (zh) * 2021-10-18 2022-02-18 维沃移动通信有限公司 悬浮窗口显示方法、装置、电子设备和可读存储介质

Also Published As

Publication number Publication date
CN114064170A (zh) 2022-02-18

Similar Documents

Publication Publication Date Title
CN110462556B (zh) 显示控制方法及装置
WO2023066196A1 (zh) 悬浮窗口显示方法、装置、电子设备和可读存储介质
CN109002243B (zh) 一种图像参数调节方法及终端设备
CN111026301B (zh) 一种显示方法及电子设备
CN110737374B (zh) 操作方法及电子设备
CN111459367B (zh) 一种显示方法及电子设备
WO2021136136A1 (zh) 截图方法及电子设备
CN111159983B (zh) 一种编辑方法及电子设备
US11733862B2 (en) Information display method and terminal
CN110209369B (zh) 一种界面显示方法及终端设备
CN111045591A (zh) 一种虚拟键盘的显示方法和电子设备
CN111050109B (zh) 电子设备控制方法及电子设备
US20130278518A1 (en) Controlling Method for Fixing a Scale Ratio of Browsing Image of Touch Device
WO2023143430A1 (zh) 信息显示方法及装置
CN110989896A (zh) 一种控制方法及电子设备
JP2023510620A (ja) 画像クロップ方法及び電子機器
CN109740312B (zh) 一种应用控制方法及终端设备
US20220083207A1 (en) Editing method and mobile terminal
CN113342295B (zh) 分屏方法及分屏装置
CN113703630A (zh) 界面显示方法和装置
WO2023045976A1 (zh) 对象切换方法、装置、电子设备和可读存储介质
WO2023066123A1 (zh) 终端省电显示方法、装置和电子设备
WO2023160443A1 (zh) 应用程序处理方法及装置
WO2023125155A1 (zh) 输入方法及输入装置
US20230097820A1 (en) Application control method and apparatus, and electronic device

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: 22882802

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE