Display device and floating window adjusting method

By responding to the floating window adjustment instruction on the display device, the display area of ​​the second suspended window does not intersect with the adjustment area of ​​the first suspended window, the problem of the floating window being covered is solved, and the adaptive adjustment and non-overlapping display of multiple suspended windows are realized.

CN119835475APending Publication Date: 2025-04-15HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311323158.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2025-04-15

Smart Images

  • Figure CN119835475A_ABST
    Figure CN119835475A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a floating window adjustment method, and the method can respond to a window adjustment instruction of a first floating window, determine a first window area according to the window adjustment instruction, and obtain a window display area of a second floating window, the second floating window is a floating window except the first floating window in the user interface. If the first window area and the window display area intersect, a second window area of a second floating window is calculated, and the second window area is used for representing the window display area which is not intersected with the first window area. And finally, displaying the first floating window in the first window area, and displaying the second floating window in the second window area. According to the method, when one floating window executes window adjustment, other floating windows can be subjected to self-adaptive adjustment, and non-overlapping display of the multiple floating windows is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a floating window adjustment method. Background Art

[0002] Display devices refer to terminal devices that can output specific display images, which can be terminal devices such as smart TVs, communication terminals, smart advertising screens, projectors, etc. Taking smart TVs as an example, smart TVs are based on Internet application technology, have open operating systems and chips, have open application platforms, can realize two-way human-computer interaction functions, and are TV products that integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users.

[0003] The display device can have the function of applying floating windows, breaking through the display limitations of the original technology, realizing screen sharing of multiple applications, allowing users to interact with multiple applications at the same time on the same screen display, broadening the user's usage range and improving the user experience. During the interaction process, users can also enlarge, reduce, move, and perform other operations on the floating window of the application based on their needs. However, when multiple floating windows are displayed on the same screen, the position / size adjustment of a floating window will cause other floating windows to be covered, and thus cannot be displayed completely. For example, when a floating window is started, the newly triggered floating window will be displayed superimposed in a certain area. For another example, adjusting one of the floating windows will cause other floating windows to be covered. Summary of the invention

[0004] The present application provides a display device and a floating window adjustment method to solve the problem of overlapping display of multiple floating windows.

[0005] In a first aspect, some embodiments of the present application provide a display device, comprising: a display and a controller. The display is configured to display a user interface, wherein the user interface includes a floating window; and the controller is configured to execute the following program steps:

[0006] Presenting at least two floating windows on the display;

[0007] In response to a window adjustment instruction of the first floating window, acquiring a first window area indicated in the window adjustment instruction;

[0008] Acquire a window display area of ​​a second floating window, where the second floating window is a floating window in the user interface other than the first floating window;

[0009] If the first window area intersects with the window display area, calculating a second window area of ​​the second floating window, where the second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area;

[0010] The display is controlled to display the first floating window in the first window area, and to display the second floating window in the second window area.

[0011] In a second aspect, the present application further provides a floating window adjustment method, comprising:

[0012] Presenting at least two floating windows on the display;

[0013] In response to a window adjustment instruction of the first floating window, acquiring a first window area indicated in the window adjustment instruction;

[0014] Acquire a window display area of ​​a second floating window, where the second floating window is a floating window other than the first floating window in the user interface of the display;

[0015] If the first window area intersects with the window display area, calculating a second window area of ​​the second floating window, where the second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area;

[0016] The display is controlled to display the first floating window in the first window area, and to display the second floating window in the second window area.

[0017] It can be seen from the above technical solutions that the display device and floating window adjustment method provided by the present application can respond to the window adjustment instruction of the first floating window, determine the first window area according to the window adjustment instruction, and obtain the window display area of ​​the second floating window, wherein the second floating window is a floating window other than the first floating window in the user interface. If the first window area and the window display area intersect, the second window area of ​​the second floating window is calculated, wherein the second window area is used to represent the window display area that does not intersect with the first window area. Finally, the first floating window is displayed in the first window area, and the second floating window is displayed in the second window area. The method can adaptively adjust other floating windows when a floating window performs window adjustment, so as to realize non-overlapping display of multiple floating windows. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0020] Figure 2 A schematic diagram of the hardware configuration of a control device provided in some embodiments of the present application;

[0021] Figure 3 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;

[0022] Figure 4 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;

[0023] Figure 5 A schematic diagram of a floating window interface provided in some embodiments of the present application;

[0024] Figure 6 A schematic diagram of scaling a floating window provided in some embodiments of the present application;

[0025] Figure 7 A schematic diagram of adjusting a floating window to cause overlapping display of floating windows provided in some embodiments of the present application;

[0026] Figure 8 A schematic diagram of a floating window being displayed in superposition when a newly triggered floating window is displayed provided in some embodiments of the present application;

[0027] Fig. 9 A schematic diagram of a process for adaptively adjusting multiple floating windows provided in some embodiments of the present application;

[0028] Fig.10 A schematic diagram of an interactive area of ​​a floating window provided in some embodiments of the present application;

[0029] Fig.11 A schematic diagram of the distance between the center points of the floating windows provided in some embodiments of the present application;

[0030] Fig.12 A schematic diagram of a process for adaptively adjusting two floating windows provided in some embodiments of the present application;

[0031] Fig.13A schematic diagram of a process for adaptively adjusting three floating windows provided in some embodiments of the present application;

[0032] Fig.14 A schematic diagram of a flow chart of adjusting a second window area of ​​a window in a second window set provided in some embodiments of the present application;

[0033] Fig.15 A schematic diagram of a display process of adaptively adjusting a floating window when it is activated provided in some embodiments of the present application;

[0034] Fig.16 Schematic diagram of a marking unit grid provided for some embodiments of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0036] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0037] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0038] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0039] The terminal device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 3This is a specific implementation of the terminal device of the present application.

[0040] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a terminal device and a control device according to an embodiment. Figure 1 As shown, the user can operate the terminal device 200 through the smart device 300 or the control apparatus 100 .

[0041] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the terminal device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the terminal device 200 is controlled wirelessly or wired. The user can input user commands through buttons on the remote controller, voice input, control panel input, etc. to control the terminal device 200.

[0042] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the terminal device 200. For example, the terminal device 200 is controlled using an application running on the smart device.

[0043] In some embodiments, the terminal device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0044] In some embodiments, the terminal device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the terminal device 200, or the user's voice command control can be received through a voice control device set outside the terminal device 200.

[0045] In some embodiments, the terminal device 200 also communicates data with the server 400. The terminal device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the terminal device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0046] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the terminal device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the terminal device 200.

[0047] like Figure 3 As shown, the terminal device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a communication device interface.

[0048] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.

[0049] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.

[0050] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0051] In some embodiments, the display device 200 may also support touch interaction, that is, a touch interaction module may be provided on the display device 200, and the touch interaction module may be a built-in module or an external module. For example, in order to implement touch interaction operations, a touch panel (TP) may be provided on the display 260 of the display device 200, and the touch panel may receive touch signals input by fingers, contacts, styluses, etc., and execute touch interaction responses according to a pre-set interaction strategy. Of course, the display device 200 may also be a touch-integrated screen.

[0052] For another example, the display device 200 can also be connected to a touch interaction device (such as an air mouse) to detect the touch signal input by the user through the touch interaction device to simulate a touch event, and send the touch event to the display device 200, so that the display device 200 can complete different touch interaction operations according to the interaction strategy preset in the operating system.

[0053] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The terminal device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.

[0054] The communication device interface can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.).

[0055] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0056] The device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0057] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0058] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0059] The controller 250 controls the operation of the terminal device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the terminal device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.

[0060] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory, RAM), a ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.

[0061] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0062] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0063] like Figure 4 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0064] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0065] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0066] like Figure 4As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.

[0067] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).

[0068] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0069] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0070] Based on the above-mentioned display device 200, a specific screen can be presented. For example, a playback screen, a control interface, and other application interfaces. According to the developer or operator of the application, the application installed on the display device 200 may include various forms, such as system applications, third-party applications, etc. The applications installed on the display device 200 can also be divided into multiple types according to the functions that the application can achieve, such as video applications, reading applications, game applications, etc. When the application list is displayed in the display 260, the user can select one of the applications and control the display device 200 to run the application to achieve the function of the application.

[0071] In some embodiments, the display device 200 has a floating window function and supports multi-window display. Multiple applications can be displayed on the screen in the form of floating windows, so that multiple applications can be displayed on the same screen, which broadens the user's usage range and improves the user experience. Figure 5 As shown, the left side of the user interface displayed by the display device 200 displays floating windows corresponding to application A and application B, so that the user can interact with application A and application B.

[0072] In addition, the startup logic of the floating window in the display device 200 is to start and display by switching from full screen to floating window, that is, the application is started in full screen mode and the application interface is displayed in full screen. When the floating small window instruction is received, the full screen mode of the application is switched to the floating window mode to form a floating window displayed on the screen. After the display device 200 receives the floating small window instruction, in response to the instruction, it detects whether the FreeForm function is turned on. The FreeForm function refers to the multi-window display function in the display device 200 system. If not turned on, turn on the function. When the FreeForm function is turned on and available, the small window size and window coordinates indicated in the floating small window instruction are obtained, and a floating window (ActivityOption) is constructed according to the small window size and window coordinates. After the floating window is constructed, the small window floating window is started.

[0073] In some embodiments, the floating window includes two exit modes. The first mode is when the user inputs an exit command of the floating window to the display device 200, in response to the exit command, the display device 200 can cancel the display of the floating window and control the application corresponding to the floating window to exit. The second mode is that in response to the exit command, the display device 200 can switch from the floating window mode to the full screen mode and return the floating window to full screen display.

[0074] In some embodiments, for a floating window, a user can adjust the window based on needs, for example, by zooming in, zooming out, moving, etc. The user can control the display device 200 to perform corresponding window adjustment operations through specific interactive actions. Figure 6As shown, it is a schematic diagram of scaling the floating window provided by an embodiment of the present application. A touch screen (Touch Panel, TP) is provided on the display 260 of the display device 200 to serve as a touch display. The user presses and keeps the finger in contact with the top corner position of the floating window on the display 260 with a finger, so that the display device 200 detects a touch press event (ACTI ON_DOWN), and in response to the touch press event, controls the display 260 to display the window adjustment interface, that is, the user interface in which the border of the floating window is highlighted. The user then keeps the finger in contact with the display 260 and moves outward or inward, so that the display device 200 detects a touch move event (ACTION_MOVE), and in response to the touch move event, the floating window is enlarged or reduced. When the user's finger leaves the display 260, the display device 200 detects a touch lift event (ACTION_UP), and in response to the touch lift event, the enlarged or reduced floating window is displayed.

[0075] In addition, in order to improve the user experience, a window limit threshold may be set. When the user keeps the finger in contact with the display 260 and moves outward, the display device 200 may detect the window size of the floating window, and directly perform the full-screen operation of the window when the window size exceeds the window limit threshold. For example, the default window size of the floating window when it is started is 35% of the display area of ​​the display 260 screen. When the user controls the display device 200 to perform the window enlargement operation of the floating window through a specific interactive action, the display device 200 detects the window size of the floating window, and when the window size is enlarged to be greater than 350% of the default window size, the window is performed in full screen, and the display 260 is controlled to display the floating window in full screen.

[0076] Before the window is transformed into full screen, the window status may be displayed at the bottom of the user interface displayed on the display 260 to remind the user that the floating window is about to enter full screen.

[0077] However, due to the display range limitation of the screen of the display device 200, when multiple floating windows are displayed on the screen of the display device 200, the position / size adjustment of a floating window may cause the floating window to cover other floating windows, thereby causing the multiple floating windows to be unable to be displayed completely.

[0078] For example, when multiple floating windows are displayed, one of the floating windows is adjusted so that the adjusted floating window covers the other floating windows. Figure 5 Taking the user interface shown in FIG. 1 as an example, the user inputs a window adjustment instruction to the display device 200 through a specific interactive action to enlarge the floating window of application A, so that the user interface appears as follows: Figure 7 In the interface effect shown, the enlarged floating window of application A covers the floating window of application B.

[0079] For another example, when a floating window is activated, the newly triggered floating window will be displayed on a certain floating window, resulting in a phenomenon in which multiple floating windows are displayed in an overlapping manner in the user interface. Figure 5 As an example, the user inputs a start command of application C, and the application interface of application C is displayed in full screen. When a floating small window command indicating that the full screen mode is switched to the floating window mode is received, the floating window of application C is displayed. The floating window of application C may be displayed on the floating window of application A and the floating window of application B, so that the user interface appears as follows: Figure 8 The interface effect shown.

[0080] Obviously, the above displays all require the user to manually shift or scale the covered floating window to achieve staggered display.

[0081] In order to solve the problem of floating windows being covered, some embodiments of the present application also provide a floating window adjustment method, which is applied to the display device 200, and is used to adaptively scale and / or position-switch the floating window to achieve non-overlapping display of multiple floating windows. Among them, the display device 200 that can apply the floating window adjustment method includes: a display 260 and a controller 250. Among them, the display 260 is configured to display a user interface, and the user interface includes a floating window, and the controller 250 is configured to execute the above-mentioned floating window adjustment method, including adaptive adjustment of multiple floating windows and adaptive adjustment when the floating window is started. Fig. 9 As shown, Fig. 9 The following is a flow chart of adaptive adjustment of multiple floating windows in an embodiment of the present application, which specifically includes the following contents:

[0082] S100: In response to a window adjustment instruction of a first floating window, determine a first window area according to the window adjustment instruction.

[0083] For adaptive adjustment of multiple floating windows, the display device 200 can control the display 260 to present at least two floating windows, by monitoring the floating windows displayed in the user interface. When a floating window performs window adjustment operations such as scaling and moving, it is determined whether the window display area after the window adjustment operation intersects (overlaps) with the window display areas of other floating windows. If so, the other floating windows are scaled and / or moved to achieve non-overlapping display of multiple floating windows.

[0084] Therefore, in order to make multiple floating windows fully displayed on the screen of the display device 200. The display device 200 can receive a window adjustment instruction of the first floating window input by the user during use, and in response to the window adjustment instruction, determine the first window area according to the window adjustment instruction, and judge whether the second floating window needs to be adjusted according to the first window area, and the second window area to which the second floating window should be adjusted when adjusting. Among them, the first floating window is a floating window that has been displayed in the user interface of the display device 200. The second floating window is a floating window other than the first floating window in the user interface of the display device 200. The first window area is the window display area after the first floating window is adjusted according to the window adjustment instruction, and the second window area is used to represent the window display area that does not intersect with the first window area.

[0085] In some embodiments, the display device 200 can obtain the floating window list through a database interface, wherein the floating window list includes the currently displayed floating windows and related information thereof, and the related information includes but is not limited to the application name, task identifier (taskid) and area coordinates.

[0086] For example, the display device 200 can query the application task list (task list) currently in the floating state, i.e., the floating window list, through the database interface "freepip_task_list_info" of the system global configuration (Settings.Global). The number of items in the floating window list can represent the number of floating windows displayed by the display device 200, and each item includes the application name, task identifier (taskid), and area coordinates of the current floating window. That is, the display device 200 can obtain the window display area, coordinates, and other information of the floating window from the floating window list for adaptive adjustment of the floating window.

[0087] In some embodiments, the display device 200 can detect the window operation of the window adjustment instruction, wherein the window operation includes a move operation, a zoom-in operation, and a zoom-out operation. If the window operation is a move operation or a zoom-in operation, it means that the second floating window needs to be adjusted, and then the subsequent step of determining the first window area according to the window adjustment instruction is performed. If the window operation is a zoom-out operation, it means that the second floating window does not need to be adjusted, and then the first floating window is displayed in the first window area according to the window adjustment instruction.

[0088] That is, the display device 200 monitors the floating window, and when it is monitored that the first floating window is a zoom-out operation, the second floating window is not processed. When it is monitored that the first floating window is a zoom-in operation or a move operation, the second window area of ​​the second floating window is further calculated.

[0089] For the detection of window operation, the display device 200 can pre-set the interactive area for the first floating window, including the floating window scaling area and the floating window moving area. In response to the window adjustment instruction of the first floating window, the display device 200 can detect the starting coordinates in the window adjustment instruction, and determine the window operation of the window adjustment instruction according to the positional relationship between the starting coordinates and the interactive area of ​​the first floating window. If the starting coordinates are located in the preset floating window scaling area, the window operation of the window adjustment instruction is determined to be a scaling operation. If the starting coordinates are located in the preset floating window moving area, the window operation of the window adjustment instruction is determined to be a moving operation.

[0090] For example, Fig.10 As shown, it is a schematic diagram of the interactive area of ​​the floating window provided in an embodiment of the present application. The rectangular area on the upper side of the floating window is the floating window moving area, and the rectangular frame on the outside is the floating window scaling area. For a display device 200 that supports touch function, when the user presses the screen of the display 260 with a finger, the display device 200 can monitor the touch pressing event (MotionEvent.ACTION_DOWN) and record the starting coordinates of the current touch point Point(x, y) = event.getX(), event.getY(). After that, the display device 200 will continue to track the position of the touch point, and when the user's finger leaves the screen of the display 260, a touch event ends. During the entire interaction, the display device 200 system distributes the MotionEvent object to the onTouchEvent() function, including relevant information for each interaction. For example, "MotionEvent.ACTION_DOW N" means that the first touch point is pressed, "MotionEvent.ACTION_UP" means that the last touch point leaves, and "MotionEvent.ACTION_MOVE" means that the touch point moves.

[0091] The display device 200 uses the relevant information provided by the MotionEvent object to determine whether a specific interactive action has occurred. Figure 8 The touch start coordinates are input in the interface shown, and the current window operation is determined according to the interactive area of ​​the floating window. When the touch start coordinates are within the floating window zoom area, the window operation is determined to be the floating window zoom operation. When the touch start coordinates are within the floating window move area, the window operation is determined to be the floating window move operation.

[0092] For the determination of window scaling, the display device 200 may detect the starting coordinates and the real-time coordinates in the window adjustment instruction, and obtain the center coordinates of the first floating window. A first distance between the center coordinates and the starting coordinates is calculated, and a second distance between the center coordinates and the real-time coordinates is calculated. If the first distance is less than the second distance, the window operation of the mark window adjustment instruction is a zoom-in operation. If the first distance is greater than the second distance, the window operation of the mark window adjustment instruction is a zoom-out operation.

[0093] For example, taking the above touch event as an example, the display device 200 can obtain the updated touch coordinates UpdatePoint(x1, y1), that is, the real-time coordinates, based on the "MotionEvent.ACTION_MOVE" callback, and obtain the center coordinates CenterPoint(x0, y0) based on the current window display area of ​​the first floating window.

[0094] Based on the Pythagorean theorem, the distances between the center coordinate CenterPoint(x0, y0) and the starting coordinate Point(x, y) and the updated touch coordinate UpdatePoint(x1, y1) are calculated according to the following formulas:

[0095] d1=Math.sqrt[(x-x0)*(x-x0)+(y-y0)*(y-y0)];

[0096] d2=Math.sqrt[(x1-x0)*(x1-x0)+(y1-y0)*(y1-y0)];

[0097] Wherein, Math.sqrt() represents a function that returns the square root of a number, d1 represents the first distance, and d2 represents the second distance. If d1<d2, that is, d2-d1>0, it is a zoom-in operation. If d1>d2, that is, d2-d1<0, it is a zoom-out operation. Thus, the display device 200 performs the zoom window operation until a touch release event (MotionEvent.ACTION_UP) is received, and the instruction ends.

[0098] In addition, for the operation of scaling the window, the display device 200 can calculate the updated window boundary (mWindowDragBounds) when the floating window is dragged, and update the updated window boundary to the floating window list (Task list) through the resizeTask() method. Then, based on the floating window list control, the size and position of the image interface (surface) corresponding to the floating window are adjusted, and SurfaceFlinger is notified for update, where SurfaceFlinger is a system service in the display device 200 responsible for managing and drawing screen images.

[0099] The first window area is determined according to the window adjustment instruction. The display device 200 can calculate the offset of the floating window based on the starting coordinate Point of the user's finger touch and the touch coordinate UpdatePoint after the finger slide is updated. Based on the offset, the floating window can be scaled or moved, and the new display position of the floating window, i.e., the first window area, can be calculated.

[0100] S200: Acquire a window display area of ​​a second floating window.

[0101] After obtaining the first window area indicated in the window adjustment instruction, the display device 200 can obtain the window display area of ​​the second floating window, and determine whether the first window area of ​​the first floating window intersects with the window display area of ​​the second floating window. If they do not intersect, it means that the first floating window after the window adjustment operation is performed does not overlap with the second floating window, and the second floating window is not processed. If they intersect, it means that the first floating window after the window adjustment operation is performed overlaps with the second floating window, and the second floating window needs to be adjusted to achieve non-overlapping display of multiple floating windows.

[0102] It should be noted that the present application embodiment does not specifically limit the method for determining whether floating windows intersect, and those skilled in the art may adjust it according to actual conditions. For example, it is possible to detect whether two floating windows intersect based on a basic coordinate algorithm (window four corner coordinate information), or to use the Separating Axis Theorem to detect whether two floating windows intersect.

[0103] S300: If the first window area and the window display area intersect, calculate a second window area of ​​the second floating window.

[0104] The second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area.

[0105] In some embodiments, the second window area includes the window center coordinates and / or the window size, that is, when the first window area and the window display area intersect, the display device 200 can adjust the window center coordinates or the window size ratio of the second floating window until the first floating window and the second floating window do not intersect. When adjusting the second floating window, the position movement strategy is used first, and the position movement strategy refers to adjusting the overall coordinate information of the second floating window. When the position movement strategy cannot meet the non-intersection rule, the window reduction strategy is used, and the window reduction strategy refers to the position of the window center point remains unchanged and the window width and height are reduced.

[0106] Therefore, the display device 200 can calculate the positional relationship between the first window area and the window display area, and the positional relationship includes intersection and non-intersection. If the positional relationship is intersection, the window display area is moved to obtain the second window area when the positional relationship is non-intersection. When the second window area is not obtained, the window display area is reduced according to a preset reduction ratio, and then the second window area when the positional relationship is non-intersection is obtained based on the reduced window display area.

[0107] In addition, in order to ensure the display clarity of the floating window, a window reduction threshold can be set, which is the minimum window size of the window display area. If the window size of the reduced window display area is smaller than the window reduction threshold, the second floating window will not be processed. For example, the window reduction threshold is 30%, that is, the minimum window size of the window display area shall not be less than 30% of the window size of the initial window display area.

[0108] In some embodiments, in order to improve the efficiency of window change execution, it can be determined whether to adjust the second floating window according to the change in the distance between the center points of the two floating windows. The display device 200 can obtain the reference coordinates of the first floating window, the center coordinates of the first window area, and the center coordinates of the second floating window. The first relative distance between the reference coordinates of the first floating window and the center coordinates of the second floating window is calculated, and the second relative distance between the center coordinates of the first window area and the center coordinates of the second floating window is calculated. Among them, the reference coordinates are the center coordinates of the first floating window.

[0109] If the first relative distance is less than or equal to the second relative distance, it means that the first floating window is far away from the second floating window after the window adjustment operation is performed, and the second floating window is not adjusted, and the first floating window is adjusted to the first window area according to the window adjustment instruction. If the first relative distance is greater than the second relative distance, it means that the first floating window is close to the second floating window after the window adjustment operation is performed, and the step of calculating the second window area of ​​the second floating window is performed.

[0110] For example, Fig.11 As shown, it is a schematic diagram of the distance between the center points of the floating windows provided in an embodiment of the present application. Based on the center coordinates of the first floating window before the move / zoom operation and the center coordinates of the second floating window, the first relative distance dis1 is calculated by the Pythagorean theorem. After the first floating window performs the move / zoom operation, its center coordinates and the center coordinates of the second floating window are obtained, and the second relative distance dis2 is calculated. If dis2≥dis1, it means that the changed first floating window is far away from the second floating window, and the second floating window is not adjusted. Otherwise, based on the intersection algorithm, the second window area of ​​the second floating window is calculated.

[0111] S400: Displaying a first floating window in a first window area, and displaying a second floating window in a second window area.

[0112] After calculating the second window area of ​​the second floating window, the display device 200 can display the first floating window adjustment in the first window area, and display the second floating window in the second window area to complete the adaptive adjustment of the floating window. For example, the calculated second window area is the area value Rect(leftNew, topNew, rightNew, bottomNew), and the area value is used as the input parameter of the window adjustment (setLaunchBounds) to complete the adjustment of the display position of the second floating window.

[0113] For example, Fig.12 As shown, it is a schematic diagram of the process of adaptive adjustment of two floating windows provided in an embodiment of the present application. The display device 200 obtains the floating window list through the database interface, and reads the area coordinates, window sizes and center coordinate points of the two floating windows respectively. The display device 200 monitors the touch operation and the window changes of the floating windows to detect whether there is a window adjustment instruction. When the window adjustment instruction of one of the floating windows is monitored, it is counted as the first window. The other floating window is counted as the second window.

[0114] Detect the window operation of the window adjustment instruction. If the window operation is a zoom-out operation, end the adaptive adjustment step. If it is a move operation or a zoom-in operation, obtain the window position information of the first window adjusted according to the window adjustment instruction, that is, the first window area. Then, based on the intersection algorithm, calculate the position relationship between the adjusted first window and the second window. If the position relationship is an intersection, calculate the second window area of ​​the second window, including the window center coordinates and / or the window size ratio, until the two windows do not intersect. Finally, use the second window area as the input parameter for window adjustment, and adjust the display position of the second floating window according to the second window area to complete the adaptive adjustment of the floating window.

[0115] For example, Fig.13 As shown, it is a schematic diagram of the process of adaptive adjustment of three floating windows provided in an embodiment of the present application. The display device 200 obtains the floating window list through the database interface, and reads the area coordinates, window sizes and center coordinate points of the three floating windows respectively. The display device 200 monitors the touch operation and the window changes of the floating windows to detect whether there is a window adjustment instruction. When the window adjustment instruction of one of the floating windows is monitored, it is counted as the first window. The other two floating windows are counted as the second window set, which are respectively recorded as window A and window B.

[0116] Detect the window operation of the window adjustment instruction. If the window operation is a zoom-out operation, end the adaptive adjustment step. If it is a move operation or a zoom-in operation, obtain the window position information of the first window adjusted according to the window adjustment instruction, that is, the first window area. Then, based on the intersection algorithm, calculate the position relationship between the adjusted first window and the window in the second window set. If the position relationship is an intersection, calculate the second window area of ​​window A and window B in the second window set. During the adjustment process, it is necessary to ensure that window A and window B do not intersect at the same time.

[0117] Specifically, during adjustment, window A and window B in the second window set are traversed, and intersection judgments are made with the first window respectively to implement the non-overlapping strategy. Fig.14 As shown, first, based on the center coordinates of the first window before adjustment and the center coordinates of window A, the relative distance dis1A between the two windows is calculated by the Pythagorean theorem. After obtaining the first window area of ​​the adjusted first window, based on the adjusted first window, its center coordinates and the center coordinates of window A are obtained to calculate the relative distance newDis1A between the two windows. If newDis1A≥dis1A, it means that the relative distance between the adjusted first window and window A remains unchanged or moves away, and window A is not adjusted. Otherwise, based on the intersection algorithm, the second window area of ​​window A is calculated.

[0118] Similarly, based on the above logic algorithm, the relative distance dis1B between the center coordinates of the first window before adjustment and the center coordinates of window B is calculated. Then the relative distance newDis1B between the center coordinates of the first window after adjustment and the center coordinates of window B is calculated. If newDis1B≥dis1B, it means that the relative distance between the adjusted first window and window B remains unchanged or moves away, and window B is not adjusted. Otherwise, the second window area of ​​window B is calculated based on the intersection algorithm.

[0119] During the adjustment process, it is also necessary to make window A and window B non-intersecting. Calculate the center coordinate distance disAB of window A and window B before adjustment. Then, based on the second window area of ​​the adjusted window A and window B, calculate the center coordinate distance newDisAB of the two. If newDisAB≥disAB, it means that the relative distance between the adjusted window A and window B remains unchanged or is far away, and no adjustment is made. If newDisAB<disAB, it means that the distance between the adjusted window A and window B is close, then determine whether the two intersect based on the intersection algorithm. If the two intersect, adjust the window with the larger distance change to achieve the window position adjustment of the second window concentration until the two do not intersect.

[0120] Finally, the second window areas of window A and window B obtained based on the above steps are respectively used as input parameters for window adjustment to complete the adaptive adjustment of the floating window.

[0121] The above examples are adaptive adjustment of two floating windows and adaptive adjustment of three floating windows. The adaptive adjustment of multiple floating windows involves multiple window display modes such as double windows and triple windows. In actual application scenarios, multi-window display scenarios with four windows or more are rarely used. Therefore, the display device 200 can only perform adaptive adjustment of floating windows for window display scenarios with double windows and triple windows. That is, the display device 200 can obtain the floating window list through the database interface. If the number of floating windows in the floating window list is 2 or 3, the automatic adjustment of the floating windows in the above example is performed. If the number of floating windows in the floating window list is not 2 and not 3, the automatic adjustment of the floating windows is not performed.

[0122] The above embodiment is an adaptive adjustment of multiple floating windows. The floating window adjustment method provided in the embodiment of the present application also includes an adaptive adjustment when the floating window is started. For the adaptive adjustment when the floating window is started, the display device 200 can filter and screen the current display area of ​​the user interface displayed by the display 260 in response to the startup instruction of the new floating window, calculate the target display area, the target display area is the floating window area that does not overlap with the displayed area, and create a new floating window according to the target display area. For example, the area value Rect(leftNew, topNew, rightNew, bottomNew) of the target display area is calculated as the input parameter of the window adjustment (setLaunchBounds), that is, ActivityOptions.setLaunchBounds(new Rect(leftNew, topNew, rightNew, bottomNew)), to complete the window display area setting of the new floating window.

[0123] like Fig.15 As shown, Fig.15 The flowchart of adaptive adjustment when the floating window is started in the embodiment of the present application is as follows: the display device 200 responds to the start instruction of the new floating window and obtains the floating window list through the database interface. The window coordinates of the displayed floating window are read in the floating window list, and the displayed area is calculated according to the window coordinates. The displayed area is the area where the displayed floating window is displayed. Then the screen display area of ​​the display 260 is obtained, and the displayed area in the screen display area is removed to obtain the undisplayed area.

[0124] After calculating the undisplayed area, the target display area can be located in the undisplayed area based on the floating window area, and a new floating window can be created according to the target display area. The floating window area is the application display area of ​​the new floating window. For example, if the display aspect ratio of the application corresponding to the new floating window is 640 / 360, the aspect ratio of the floating window area is 640 / 360. In order to better meet the personalized needs of users, the floating window area can also be pre-set according to user needs.

[0125] In some embodiments, Fig.15 As shown, after the display device 200 obtains the floating window list, the number of windows of the displayed floating window can be read in the floating window list. If the number of windows is 0, that is, the floating window list is empty, it means that there is no floating window currently displayed, and a new floating window can be created according to the preset default area. If the number of windows is not 0, it means that there is a floating window currently displayed, then based on the current number of floating windows and their corresponding window display areas, the displayed area can be removed in the screen display area of ​​the display 260, and the target display area can be calculated in the remaining undisplayed area.

[0126] When the floating window list is empty, in order to improve the display effect, a new floating window can be displayed in the center area of ​​the screen of the display 260, that is, the preset default area is the center area of ​​the screen of the display 260. The default area can be calculated according to the size of the screen display area of ​​the display 260 and the size of the floating window area.

[0127] For example, if the display aspect ratio of the application corresponding to the new floating window is 640 / 360, the height of the default area can be the height of the screen display size of the display 260, and the width of the default area can be obtained by conversion according to the aspect ratio. That is, the area value (left, top, right, bottom) of the default area can be calculated according to the following formula:

[0128] left=screenWidth / 2-freeformWidth / 2;

[0129] top=screenHeight / 2-freeformHeight / 2;

[0130] right=screenWidth / 2+freeformWidth / 2;

[0131] bottom=screenHeight / 2+freeformHeight / 2;

[0132] Among them, freeformWidth and freeformHeight represent the height and width of the floating window area, which are 640 and 360 respectively. screenWidth and screenHeight represent the height and width of the screen display area.

[0133] In some embodiments, when locating the target display area in the undisplayed area based on the floating window area, the display device 200 can divide the screen display area into multiple unit grids, traverse the multiple unit grids, determine the inclusion relationship between each unit grid and the displayed area, mark the unit grid outside the displayed area with a first identification grid, and mark the unit grid in the displayed area with a second identification grid. Locate the target display area in the undisplayed area based on the floating window area. The target display area is the display area when all the unit grids covered by the floating window area are the first identification grids.

[0134] For example, Fig.16 As shown, Fig.16 This is a schematic diagram of marking unit grids in an embodiment of the present application. The display device 200 currently displays two floating windows, namely floating window 1 and floating window 2. When triggering the startup of a new floating window, the display device 200 constructs a rectangle based on the screen width and height of the display 260, and divides the rectangle into multiple unit grids. Traverse all unit grids, determine the inclusion relationship between each unit grid and the window display area corresponding to floating window 1 and floating window 2, and if the unit grid is outside the window display area corresponding to floating window 1 and floating window 2, it is marked as 1. If the unit grid is within the window display area corresponding to floating window 1 or floating window 2, it is marked as 0. Use the floating window area as a sliding window to slide in the area composed of 1, and traverse the area composed of 1 in turn. When the area covered by the floating window area is marked as 1, it is marked as the target display area, and its starting coordinates are recorded as the starting coordinates of the new floating window.

[0135] In some embodiments, in order to make the display area of ​​the floating window more compatible with the human visual mechanism, the display device 200 sets a screen center point expansion mechanism for the display 260 when locating the target display area. That is, when locating multiple target display areas, the target display area with the screen center of the display 260 as the expansion baseline is preferentially selected.

[0136] Therefore, the display device 200 can obtain the center point coordinates of the target display area and the center point coordinates of the screen display area, calculate the center distance between the center point coordinates of the target display area and the center point coordinates of the screen display area, determine the adapted display area according to the center distance, and create a new floating window in the adapted display area. The adapted display area is the target display area whose center distance is less than the preset center threshold.

[0137] The display device 200 can also obtain a target display area list, which includes multiple located target display areas. The target display areas in the target display area list are traversed to calculate the center point coordinates of each target display area. The center distance between the center point coordinates of each target display area and the center point coordinates of the screen display area is calculated. The target display area with the smallest center distance, that is, the target display area closest to the center of the display 260 screen, is selected as the adaptation display area.

[0138] It should be noted that the embodiment of the present application does not specifically limit the calculation method of the center distance, and those skilled in the art can adjust it according to actual conditions. For example, the distance between two points is calculated based on the Euclidean distance formula.

[0139] In some embodiments, when the display device 200 fails to locate the target display area, that is, when the target display area list is empty, the floating window area can be scaled according to a preset ratio, and the target display area can be located in the undisplayed area based on the scaled floating window area. In other words, when the target display area is not located, the height and width of the floating window area can be adjusted to reduce the display size ratio, and then the target display area list is obtained according to the above method for locating the target display area, and the adaptive display area is selected.

[0140] In addition, in order to ensure the display clarity of the floating window, a window limit value can be set. The window limit value is the minimum window size of the floating window area. If the window size of the reduced floating window area is smaller than the window limit value, a new floating window is created according to the preset default area. For example, the window limit value is 30%, that is, the minimum window size of the floating window area shall not be less than 30% of the initial floating window area size. If it is less than the window limit value, the content of the floating window will not be displayed clearly, which is not conducive to user use.

[0141] Based on the above floating window adjustment method, some embodiments of the present application further provide a display device 200, including: a display 260 and a controller 250. The display 260 is configured to display a user interface, wherein the user interface includes a floating window; and the controller 250 is configured to execute the following program steps:

[0142] S100: In response to a window adjustment instruction of a first floating window, determine a first window area according to the window adjustment instruction.

[0143] S200: Acquire a window display area of ​​a second floating window.

[0144] The second floating window is a floating window other than the first floating window in the user interface.

[0145] S300: If the first window area and the window display area intersect, calculate a second window area of ​​the second floating window.

[0146] The second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area.

[0147] S400: Displaying a first floating window in a first window area, and displaying a second floating window in a second window area.

[0148] It can be seen from the above technical solutions that the display device and floating window adjustment method provided in the above embodiments can respond to the window adjustment instruction of the first floating window, determine the first window area according to the window adjustment instruction, and obtain the window display area of ​​the second floating window, wherein the second floating window is a floating window other than the first floating window in the user interface. If the first window area and the window display area intersect, the second window area of ​​the second floating window is calculated, wherein the second window area is used to represent the window display area that does not intersect with the first window area. Finally, the first floating window is displayed in the first window area, and the second floating window is displayed in the second window area. The method can adaptively adjust other floating windows when a floating window performs window adjustment, so as to realize non-overlapping display of multiple floating windows.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0150] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: A display configured to display a user interface, wherein the user interface includes a floating window; The controller is configured as: Presenting at least two floating windows on the display; In response to a window adjustment instruction for the first floating window, determining a first window area according to the window adjustment instruction; Acquire a window display area of ​​a second floating window, where the second floating window is a floating window in the user interface other than the first floating window; If the first window area intersects with the window display area, calculating a second window area of ​​the second floating window, where the second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area; The display is controlled to display the first floating window in the first window area, and to display the second floating window in the second window area.

2. The display device according to claim 1, characterized in that The controller is also configured to: In response to a start instruction of a new floating window, a floating window list is obtained through a database interface; Reading the window coordinates of the displayed floating window in the floating window list, and calculating the displayed area according to the window coordinates, wherein the displayed area is the area where the displayed floating window is displayed; Acquire the screen display area of ​​the display; Removing the displayed area in the screen display area to obtain a non-displayed area; Locating a target display area in the non-display area based on a floating window area, the floating window area being an application display area of ​​the new floating window; The new floating window is created according to the target display area.

3. The display device according to claim 2, characterized in that The controller is also configured to: Dividing the screen display area into a plurality of unit grids; Marking the unit grids outside the displayed area with a first identification grid, and marking the unit grids within the displayed area with a second identification grid; The target display area is located in the non-display area based on the floating window area, and the target display area is a display area when all unit grids covered by the floating window area are the first identification grids.

4. The display device according to claim 2, characterized in that The controller is also configured to: Obtaining the center point coordinates of the target display area and the center point coordinates of the screen display area; Calculating the center distance between the center point coordinates of the target display area and the center point coordinates of the screen display area; Determine an adapted display area according to the center distance, the adapted display area being a target display area whose center distance is less than a preset center threshold; The new floating window is created in the adapted display area.

5. The display device according to claim 2, characterized in that The controller is also configured to: When the target display area is not located, scaling the floating window area according to a preset ratio; The target display area is located in the non-display area based on the scaled floating window area.

6. The display device according to claim 1, characterized in that The controller is also configured to: Detecting a window operation of the window adjustment instruction, wherein the window operation includes a move operation, a zoom-in operation, and a zoom-out operation; If the window operation is a moving operation or a zooming operation, executing a step of determining a first window area according to the window adjustment instruction; If the window operation is a zoom-out operation, the first floating window is adjusted to the first window area.

7. The display device according to claim 6, characterized in that The controller is also configured to: Detecting the starting coordinates and real-time coordinates in the window adjustment instruction; Obtaining the center coordinates of the first floating window; Calculating a first distance between the center coordinate and the starting coordinate, and calculating a second distance between the center coordinate and the real-time coordinate; If the first distance is smaller than the second distance, marking the window operation of the window adjustment instruction as a zoom-in operation; If the first distance is greater than the second distance, the window operation of the window adjustment instruction is marked as a zoom-out operation.

8. The display device according to claim 1, characterized in that The controller is also configured to: Acquire the reference coordinates of the first floating window, the center coordinates of the first window area, and the center coordinates of the second floating window; Calculating a first relative distance between the reference coordinates of the first floating window and the center coordinates of the second floating window, and calculating a second relative distance between the center coordinates of the first window area and the center coordinates of the second floating window; If the first relative distance is less than or equal to the second relative distance, adjusting the first floating window to the first window area; If the first relative distance is greater than the second relative distance, a step of calculating a second window area of ​​the second floating window is performed.

9. The display device according to claim 1, characterized in that: The controller is also configured to: Calculating a positional relationship between the first window area and the window display area, wherein the positional relationship includes intersection and non-intersection; Moving the window display area to obtain a second window area when the position relationship is non-intersecting; When the second window area is not obtained, reducing the window display area according to a preset reduction ratio; A second window area when the positional relationship is non-intersecting is acquired based on the reduced window display area.

10. A floating window adjustment method, characterized in that: include: Presenting at least two floating windows on the display; In response to a window adjustment instruction of the first floating window, determining a first window area according to the window adjustment instruction; Acquire a window display area of ​​a second floating window, where the second floating window is a floating window other than the first floating window in the user interface of the display; If the first window area intersects with the window display area, calculating a second window area of ​​the second floating window, where the second window area is used to represent a window display area that does not intersect with the first window area, and the second window area is calculated based on the positional relationship between the first window area and the window display area; The display is controlled to display the first floating window in the first window area, and to display the second floating window in the second window area.