[go: up one dir, main page]

CN111638818A - Window position adjustment method, device and electronic device - Google Patents

Window position adjustment method, device and electronic device Download PDF

Info

Publication number
CN111638818A
CN111638818A CN202010358461.1A CN202010358461A CN111638818A CN 111638818 A CN111638818 A CN 111638818A CN 202010358461 A CN202010358461 A CN 202010358461A CN 111638818 A CN111638818 A CN 111638818A
Authority
CN
China
Prior art keywords
area
target
position information
thumbnail window
screen
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010358461.1A
Other languages
Chinese (zh)
Other versions
CN111638818B (en
Inventor
余立付
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010358461.1A priority Critical patent/CN111638818B/en
Publication of CN111638818A publication Critical patent/CN111638818A/en
Application granted granted Critical
Publication of CN111638818B publication Critical patent/CN111638818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

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

Abstract

The application discloses a window position adjusting method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: the method comprises the steps of receiving a first input of a user to a target control, responding to the first input, obtaining first position information of a thumbnail window of a first application program on a screen and second position information of each target object currently displayed on the screen, obtaining a first intersection ratio of each target object in at least one target object and the thumbnail window according to the first position information and the second position information, moving the thumbnail window to the first target area under the condition that the first intersection ratio is larger than zero and the first target area exists in a residual area on the screen according to the second position information, wherein the residual area is an area on the screen except for an object area corresponding to the target object, and the size of the first target area is larger than or equal to that of the thumbnail window and the second intersection ratio of the first target area and each target object is equal to zero. And avoiding the target object from being blocked by the thumbnail window.

Description

窗口位置调整方法、装置及电子设备Window position adjustment method, device and electronic device

技术领域technical field

本申请属于通信技术领域,具体涉及一种窗口位置调整方法、装置及电子设备。The present application belongs to the field of communication technologies, and in particular relates to a window position adjustment method, device and electronic device.

背景技术Background technique

随着电子设备以及移动通信技术的快速发展,电子设备的应用也越来越广泛,用户经常使用电子设备上安装的聊天软件在全屏模式下视频聊天,在聊天过程中可能需要通过后台键回到浏览器应用程序,以通过浏览器查询信息。或者在聊天过程中需要点击起始键(Home键)回到电子设备的桌面,以点击桌面上的应用程序的图标,从而进入应用程序执行其他事务,例如通过点击地图应用程序查询地图信息,通过点击购物应用程序进行网购等事务。With the rapid development of electronic devices and mobile communication technologies, the applications of electronic devices are becoming more and more extensive. Users often use chat software installed on electronic devices to chat in full screen mode. During the chat, they may need to use the background key to return to Browser application to query information through the browser. Or during the chat, you need to click the home key (Home key) to return to the desktop of the electronic device to click the icon of the application on the desktop, so as to enter the application to perform other tasks, such as querying map information by clicking the map application, Click on the shopping app to do things like online shopping.

在实现本申请过程中,发明人发现现有技术中至少存在如下问题:用户通过按起始键回到桌面或者通过按后台键回到浏览器应用程序等情况下,此时聊天软件的悬浮缩略窗口显示在屏幕的预设位置(例如显示在右上角),造成悬浮缩略窗口遮挡屏幕上的目标对象的问题,目标对象例如包括桌面上显示的应用程序的图标或者浏览器的网页中的信息等。In the process of realizing this application, the inventor found that there are at least the following problems in the prior art: when the user returns to the desktop by pressing the start key or returns to the browser application by pressing the The thumbnail window is displayed in a preset position of the screen (for example, displayed in the upper right corner), causing the floating thumbnail window to block the target object on the screen, such as the icon of the application displayed on the desktop or the icon in the web page of the browser. information, etc.

申请内容Application content

本申请实施例的目的是提供一种窗口位置调整方法、装置及电子设备,能够解决用户通过按起始按键(Home键)回到桌面或者通过按后台按键回到浏览器应用程序等情况下,此时聊天软件的悬浮缩略窗口显示在屏幕的预设位置(例如显示在右上角),造成悬浮缩略窗口遮挡屏幕上的目标对象的问题。The purpose of the embodiments of the present application is to provide a window position adjustment method, device, and electronic device, which can solve the problem that when the user returns to the desktop by pressing the home key (Home key) or returns to the browser application by pressing the background key, etc. At this time, the floating thumbnail window of the chat software is displayed at a preset position of the screen (for example, displayed in the upper right corner), which causes the problem that the floating thumbnail window blocks the target object on the screen.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种窗口位置调整方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for adjusting a window position, and the method includes:

接收用户对目标控件的第一输入;receiving the first input from the user to the target control;

响应所述第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及所述屏幕上当前显示的每个目标对象的第二位置信息;In response to the first input, obtain the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen;

根据所述第一位置信息和所述第二位置信息,获得至少一个目标对象中的每个所述目标对象与所述缩略窗口的第一交并比;obtaining, according to the first position information and the second position information, a first intersection ratio between each of the at least one target object and the thumbnail window;

在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述屏幕上的剩余区域中存在第一目标区域的情况下,移动所述缩略窗口至所述第一目标区域,其中,所述剩余区域为所述屏幕上除所述目标对象对应的对象区域之外的区域,所述第一目标区域的尺寸大于或等于所述缩略窗口的尺寸,所述第一目标区域与每个所述目标对象的第二交并比等于零。In the case that at least one of the first intersection ratios is greater than zero, and according to each of the second position information, it is determined that there is a first target area in the remaining areas on the screen, moving the thumbnail window to the desired location. the first target area, wherein the remaining area is an area on the screen other than the object area corresponding to the target object, and the size of the first target area is greater than or equal to the size of the thumbnail window, The second intersection ratio of the first target area and each of the target objects is equal to zero.

第二方面,本申请实施例提供了一种窗口位置调整装置,包括;In a second aspect, an embodiment of the present application provides a window position adjustment device, including:

接收模块,用于接收用户对目标控件的第一输入;a receiving module for receiving the first input of the user to the target control;

第一获得模块,用于响应所述第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及所述屏幕上当前显示的每个目标对象的第二位置信息;a first obtaining module, configured to obtain, in response to the first input, the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen;

第二获得模块,用于根据所述第一位置信息和所述第二位置信息,获得至少一个目标对象中的每个所述目标对象与所述缩略窗口的第一交并比;a second obtaining module, configured to obtain a first intersection ratio between each of the at least one target object and the thumbnail window according to the first position information and the second position information;

确定模块,用于在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述屏幕上的剩余区域中存在第一目标区域的情况下,移动所述缩略窗口至所述第一目标区域,其中,所述剩余区域为所述屏幕上除所述目标对象对应的对象区域之外的区域,所述第一目标区域的尺寸大于或等于所述缩略窗口的尺寸,所述第一目标区域与每个所述目标对象的第二交并比等于零。a determining module, configured to move the said screen when at least one of said first intersection ratios is greater than zero and it is determined according to each of said second position information that there is a first target area in the remaining area on the screen The window is abbreviated to the first target area, wherein the remaining area is an area on the screen other than the target area corresponding to the target object, and the size of the first target area is greater than or equal to the thumbnail Depending on the size of the window, the second intersection ratio of the first target area and each of the target objects is equal to zero.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an 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 configured to run a program or an instruction, and implement the first aspect the method described.

在本申请实施例中,本实施例提供的缩略窗口位置调整方法,通过接收用户对目标控件的第一输入,响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息,根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个所述目标对象与缩略窗口的第一交并比,在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。由于剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零,因此,第一目标区域不会与当前屏幕上显示的任何一个目标对象有交叠,即移动缩略窗口至第一目标区域后,缩略窗口不会遮挡当前屏幕上显示的任何一个目标对象。因此,解决了现有技术中的悬浮缩略窗口遮挡屏幕上的目标对象的问题。In the embodiment of the present application, the method for adjusting the position of a thumbnail window provided by this embodiment obtains the first position on the screen of the thumbnail window of the first application program by receiving the first input from the user to the target control and responding to the first input. The position information and the second position information of each target object currently displayed on the screen, according to the first position information and the second position information, obtain the first position information of each of the at least one target object and the thumbnail window. cross-merging ratio, when at least one first crossing-merging ratio is greater than zero and it is determined according to each second position information that there is a first target area in the remaining area on the screen, move the thumbnail window to the first target area, The remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero . Since the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero, Therefore, the first target area will not overlap with any target object displayed on the current screen, that is, after moving the thumbnail window to the first target area, the thumbnail window will not block any target object displayed on the current screen. Therefore, the problem that the floating thumbnail window in the prior art blocks the target object on the screen is solved.

附图说明Description of drawings

图1是本申请实施例中提供的一种窗口位置调整方法的步骤流程图;1 is a flow chart of steps of a method for adjusting a window position provided in an embodiment of the present application;

图2是本申请实施例提供的全屏模式下的视频界面示意图;2 is a schematic diagram of a video interface in a full-screen mode provided by an embodiment of the present application;

图3是本申请实施例提供的一种现有技术中展示缩略窗口的界面示意图;3 is a schematic diagram of an interface showing a thumbnail window in a prior art provided by an embodiment of the present application;

图4是本申请实施例中提供的一种缩略窗口显示的界面示意图;4 is a schematic interface diagram of a thumbnail window display provided in an embodiment of the present application;

图5是本申请实施例中提供的另一种缩略窗口位置调整方法的步骤流程图;5 is a flowchart of steps of another method for adjusting the position of a thumbnail window provided in an embodiment of the present application;

图6是本申请实施例提供的一种缩略窗口透明显示的界面示意图;6 is a schematic diagram of an interface for transparent display of a thumbnail window provided by an embodiment of the present application;

图7是本申请实施例中提供的又一种窗口位置调整方法的步骤流程图;7 is a flowchart of steps of another method for adjusting window position provided in the embodiment of the present application;

图8是本申请实施例中提供的窗口位置调整装置的结构示意图;8 is a schematic structural diagram of a window position adjustment device provided in an embodiment of the present application;

图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的窗口位置调整方法进行详细地说明。The method for adjusting the window position provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

参照图1,图1是本申请实施例中提供的一种窗口位置调整方法的步骤流程图,该方法可以包括如下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of steps of a window position adjustment method provided in an embodiment of the present application, and the method may include the following steps:

步骤101、接收用户对目标控件的第一输入。Step 101: Receive a first input from a user to a target control.

步骤102、响应于第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息。Step 102: In response to the first input, obtain first position information on the screen of the thumbnail window of the first application and second position information of each target object currently displayed on the screen.

其中,目标控件可以为起始键或者为后台键。第一输入例如为用户点击起始键或后台键的操作,例如,用户使用电子设备上安装的聊天软件(例如微信)在全屏模式下进行视频聊天,例如参照图2,图2是本申请实施例提供的全屏模式下的视频界面示意图。在聊天过程中可能需要通过后台键回到浏览器应用程序,以通过浏览器查询信息,例如查询天气预报、新闻等信息。或者在聊天过程中需要点击起始键回到电子设备的桌面,以点击桌面上的应用程序的图标,从而进入应用程序执行其他事务,例如通过点击地图应用程序查询地图信息,通过点击购物应用程序进行网购等事务。Wherein, the target control can be a start key or a background key. The first input is, for example, the operation of the user clicking the start key or the background key. For example, the user uses the chat software (such as WeChat) installed on the electronic device to conduct video chat in full-screen mode. For example, referring to FIG. 2, FIG. The example provides a schematic diagram of the video interface in full-screen mode. During the chat, you may need to go back to the browser application through the background key to query information through the browser, such as querying weather forecast, news and other information. Or during the chat, you need to click the start button to return to the desktop of the electronic device to click the icon of the application on the desktop, so as to enter the application to perform other transactions, such as querying map information by clicking the map application, and clicking the shopping application. conduct online shopping, etc.

响应于用户对目标控件的第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息,第一应用程序例如为微信或QQ等聊天程序。缩略窗口为用户使用第一应用程序进行视频聊天时的全屏窗口的缩略图。第一位置信息为与第一应用程序对应的预设位置信息,例如预设位置信息为屏幕的右上角,第一位置信息可以包括缩略窗口在屏幕上的左上角的坐标和右下角的坐标,或者第一位置信息为缩略窗口在屏幕上的中心点的坐标、以及缩略窗口的宽和高。下面以第一位置信息为缩略窗口在屏幕上的左上角的坐标和右下角的坐标为例进行介绍。In response to the user's first input to the target control, the first position information of the thumbnail window of the first application program on the screen is obtained, for example, the first application program is a chat program such as WeChat or QQ. The thumbnail window is a thumbnail of a full-screen window when the user uses the first application for video chat. The first location information is preset location information corresponding to the first application, for example, the preset location information is the upper right corner of the screen, and the first location information may include the coordinates of the upper left corner and the lower right corner of the thumbnail window on the screen , or the first position information is the coordinates of the center point of the thumbnail window on the screen, and the width and height of the thumbnail window. The following description is given by taking the first position information as the coordinates of the upper left corner and the coordinates of the lower right corner of the thumbnail window on the screen as an example.

需要说明的是,用户对目标控件进行操作后,电子设备可以获得屏幕上当前显示的每个目标对象的第二位置信息。其中,目标对象可以为电子设备上的安装的应用的图标,或者目标对象为网页上显示的文字和图片中的至少一种。例如,用户点击起始键后,可以获得屏幕上当前显示的每个应用程序的图标的第二位置信息。第二位置信息可以包括图标在屏幕上的左上角的坐标和右上角的坐标。其中,需要说明的是,用户点击起始键后,如果左右滑动桌面,则屏幕上当前显示的每个目标对象为滑动桌面后屏幕上显示的每个图标。如果用户点击起始键后,未左右滑动桌面,则屏幕上当前显示的每个目标对象可以为主桌面上的图标。It should be noted that, after the user operates the target control, the electronic device can obtain the second position information of each target object currently displayed on the screen. The target object may be an icon of an application installed on the electronic device, or the target object may be at least one of text and pictures displayed on a web page. For example, after the user clicks the start key, the second position information of the icon of each application program currently displayed on the screen can be obtained. The second location information may include the coordinates of the upper left corner and the upper right corner of the icon on the screen. It should be noted that, after the user clicks the start button, if the user slides the desktop left and right, each target object currently displayed on the screen is each icon displayed on the screen after sliding the desktop. If the user does not slide the desktop left or right after clicking the start button, each target object currently displayed on the screen can be an icon on the main desktop.

步骤103、根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个目标对象与缩略窗口的第一交并比。Step 103: Obtain a first intersection ratio between each target object in the at least one target object and the thumbnail window according to the first position information and the second position information.

例如,根据第一位置信息和图标1的第二位置信息,可以获得图标1与缩略窗口的第一交并比1。可以计算图标1在屏幕上占用的区域面积A1与缩略窗口在屏幕上与第一位置信息对应的区域面积B1的交集1、以及计算区域面积A1与区域面积B1的并集1,则第一交并比1等于交集1与并集1的比值。以图标1的第二位置信息包括的左上角的坐标为(cx1,cy1)、右下角的坐标为(cx2,cy2),第一位置信息包括的左上角坐标为(gx1,gy1)、右下角坐标为(gx2,gy2)为例介绍如何获得第一交并比1。先获得交集1对应的左上角的坐标和右下角的坐标,交集1对应的左上角坐标为(xmin,ymin),xmin等于cx1与gx1中的最大值,ymin等于cy1与gy1中的最大值;交集1对应的右下角坐标为(xmax,ymax),xmax等于cx2与gx2中的最小值,ymax等于cy2与gy2中的最小值。根据交集1对应的左上角的坐标和右下角的坐标计算交集1的面积。区域面积A1与区域面积B1之和再减去交集1的面积,即可获得并集1的面积,交集1的面积与并集1的面积的比值即为第一交并比1。For example, according to the first position information and the second position information of the icon 1, a first intersection ratio of 1 between the icon 1 and the thumbnail window can be obtained. It is possible to calculate the intersection 1 of the area area A1 occupied by the icon 1 on the screen and the area area B1 corresponding to the first position information of the thumbnail window on the screen, and calculate the union 1 of the area area A1 and the area area B1, then the first The intersection and union ratio of 1 is equal to the ratio of intersection 1 and union 1. The coordinates of the upper left corner included in the second position information of icon 1 are (cx1, cy1), the coordinates of the lower right corner are (cx2, cy2), and the coordinates of the upper left corner included in the first position information are (gx1, gy1), the lower right corner The coordinates are (gx2, gy2) as an example to introduce how to obtain the first intersection and union ratio 1. First obtain the coordinates of the upper left corner and the lower right corner corresponding to intersection 1. The upper left corner coordinate corresponding to intersection 1 is (xmin, ymin), xmin is equal to the maximum value between cx1 and gx1, and ymin is equal to cy1 and gy1. The maximum value; The coordinate of the lower right corner corresponding to intersection 1 is (xmax, ymax), where xmax is equal to the minimum of cx2 and gx2, and ymax is equal to the minimum of cy2 and gy2. Calculate the area of intersection 1 according to the coordinates of the upper left corner and the coordinates of the lower right corner corresponding to intersection 1. The area of the union 1 can be obtained by subtracting the area of the intersection 1 from the sum of the area area A1 and the area area B1, and the ratio of the area of the intersection 1 to the area of the union 1 is the first intersection ratio 1.

需要说明的是,可以依次计算屏幕上当前显示的图标与缩略窗口的第一交并比。例如屏幕上当前显示的第一行图标包括图标1、图标2和图标3,屏幕上当前显示的第二行图标包括图标4、图标5和图标6,第三行图标包括图标7,可以计算图标1、图标2、图标3、图标4、图标5、图标6和图标7分别与缩略窗口的第一交并比。如果某个图标与缩略窗口的第一交并比等于零,则表示该图标与缩略窗口无交叠,无交叠的情况下,缩略窗口不会遮挡该图标。如果某个图标与缩略窗口的第一交并比不等于零,则表示该图标与缩略窗口有交叠,有交叠的情况下,缩略窗口会遮挡该图标。It should be noted that, the first intersection ratio between the icon currently displayed on the screen and the thumbnail window may be calculated sequentially. For example, the first row of icons currently displayed on the screen includes Icon 1, Icon 2 and Icon 3, the second row of icons currently displayed on the screen includes Icon 4, Icon 5 and Icon 6, and the third row of icons includes Icon 7, you can calculate the icon 1. The icon 2, the icon 3, the icon 4, the icon 5, the icon 6 and the icon 7 are respectively compared with the first intersection of the thumbnail window. If the first intersection ratio of an icon and the thumbnail window is equal to zero, it means that the icon does not overlap with the thumbnail window. In the case of no overlap, the thumbnail window will not block the icon. If the first intersection ratio of an icon and the thumbnail window is not equal to zero, it means that the icon overlaps with the thumbnail window. If there is an overlap, the thumbnail window will block the icon.

步骤104、在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。Step 104: Move the thumbnail window to the first target area under the condition that at least one of the first intersection ratios is greater than zero, and according to each second position information, it is determined that there is a first target area in the remaining area on the screen, wherein: , the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is zero.

现有技术中,如果用户点击起始键后,会导致缩略窗口遮挡应用程序的图标。例如参照图3,图3是本申请实施例提供的一种现有技术中展示缩略窗口的界面示意图。例如,微信视频的缩略窗口301的初始化位置在屏幕的右上角,即现有技术中用户在图2所示的全屏模式下如果点击起始键,则可以显示如图3所示的界面,图3中的缩略窗口会遮挡位于屏幕的右上角位置的图标。In the prior art, if the user clicks the start key, the thumbnail window will block the icon of the application. For example, referring to FIG. 3 , FIG. 3 is a schematic diagram of an interface for displaying a thumbnail window in the prior art provided by an embodiment of the present application. For example, the initialization position of the thumbnail window 301 of the WeChat video is at the upper right corner of the screen, that is, in the prior art, if the user clicks the start button in the full-screen mode shown in FIG. 2, the interface shown in FIG. 3 can be displayed, The thumbnail window in Figure 3 obscures the icon located at the upper right corner of the screen.

而本申请实施例中,在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域。由于剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零,因此,第一目标区域不会与当前屏幕上显示的任何一个目标对象有交叠,即移动缩略窗口至第一目标区域后,缩略窗口不会遮挡当前屏幕上显示的任何一个目标对象。其中,第一目标区域的尺寸大于或等于缩略窗口的尺寸指第一目标区域的宽度大于或等于缩略窗口的宽度、且第一目标区域的高度大于或等于缩略窗口的高度。However, in this embodiment of the present application, when at least one of the first intersection ratios is greater than zero, and it is determined according to each second position information that there is a first target area in the remaining area on the screen, the thumbnail window is moved to the first target area. target area. Since the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero, Therefore, the first target area will not overlap with any target object displayed on the current screen, that is, after moving the thumbnail window to the first target area, the thumbnail window will not block any target object displayed on the current screen. The size of the first target area is greater than or equal to the size of the thumbnail window means that the width of the first target area is greater than or equal to the width of the thumbnail window, and the height of the first target area is greater than or equal to the height of the thumbnail window.

其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域。例如参照图4,图4是本申请实施例中提供的一种缩略窗口显示的界面示意图。目标对象对应的对象区域包括图4中的区域401和区域402。将屏幕上的整个区域中的区域401和区域402去除后的其他区域作为剩余区域。The remaining area is an area on the screen other than the object area corresponding to the target object. For example, referring to FIG. 4 , FIG. 4 is a schematic interface diagram of a thumbnail window display provided in an embodiment of the present application. The object area corresponding to the target object includes the area 401 and the area 402 in FIG. 4 . The other regions after the region 401 and the region 402 are removed from the entire region on the screen are used as remaining regions.

需要说明的是,可以根据如下三种方式确定第一目标区域,并移动缩略窗口至第一目标区域:It should be noted that the first target area can be determined according to the following three methods, and the thumbnail window can be moved to the first target area:

方式一:在剩余区域的宽度大于等于缩略窗口的宽度、且剩余区域的高度大于等于缩略窗口的高度的情况下,且根据每个第二位置信息,确定剩余区域与每个目标对象的第二交并比等于零的情况下,将剩余区域作为第一目标区域(即此种情况下,第一目标区域的尺寸大于或等于缩略窗口的尺寸,也即剩余区域中存在第一目标区域),并移动缩略窗口至第一目标区域。此种情况下,移动缩略窗口至第一目标区域时,可以以第一目标区域的中心点为参考,移动缩略窗口,直至缩略窗口在屏幕上的中心点与第一目标区域的中心点重合为止。Mode 1: When the width of the remaining area is greater than or equal to the width of the thumbnail window, and the height of the remaining area is greater than or equal to the height of the thumbnail window, and according to each second position information, determine the relationship between the remaining area and each target object. When the second intersection ratio is equal to zero, the remaining area is used as the first target area (that is, in this case, the size of the first target area is greater than or equal to the size of the thumbnail window, that is, there is a first target area in the remaining area. ), and move the thumbnail window to the first target area. In this case, when moving the thumbnail window to the first target area, you can use the center point of the first target area as a reference to move the thumbnail window until the center point of the thumbnail window on the screen and the center of the first target area. until the points overlap.

方式二:在剩余区域的宽度大于等于缩略窗口的宽度、且剩余区域的高度大于等于缩略窗口的高度的情况下,依次以剩余区域中的一个像素点为中心、确定区域尺寸等于缩略窗口的尺寸的区域为候选区域;计算候选区域与每个目标对象的第二交并比,在候选区域与每个目标对象的第二交并比等于零的情况下,将候选区域作为第一目标区域(即此种情况下,存在第一目标区域,且第一目标区域的尺寸等于缩略窗口的尺寸),并移动缩略窗口至第一目标区域。移动缩略窗口至第一目标区域时,仍然可以以第一目标区域的中心点为参考,移动缩略窗口,直至缩略窗口在屏幕上的中心点与第一目标区域的中心点重合为止。Method 2: When the width of the remaining area is greater than or equal to the width of the thumbnail window, and the height of the remaining area is greater than or equal to the height of the thumbnail window, take a pixel in the remaining area as the center, and determine that the area size is equal to the thumbnail The area of the size of the window is the candidate area; the second intersection ratio between the candidate area and each target object is calculated, and when the second intersection ratio between the candidate area and each target object is equal to zero, the candidate area is used as the first target. area (that is, in this case, there is a first target area, and the size of the first target area is equal to the size of the thumbnail window), and the thumbnail window is moved to the first target area. When moving the thumbnail window to the first target area, the center point of the first target area can still be used as a reference to move the thumbnail window until the center point of the thumbnail window on the screen coincides with the center point of the first target area.

方式三:方式三与方式二类似,方式三与方式二的区别在于方式三中确定的候选区域的区域尺寸大于缩略窗口的尺寸。例如,缩略窗口的尺寸为a×b时,可以以(a+预设数值)×(b+预设数值)的尺寸确定候选区域。Mode 3: Mode 3 is similar to Mode 2, and the difference between Mode 3 and Mode 2 is that the area size of the candidate region determined in Mode 3 is larger than the size of the thumbnail window. For example, when the size of the thumbnail window is a×b, the candidate region may be determined with a size of (a+preset value)×(b+preset value).

移动缩略窗口至第一目标区域后,缩略窗口不会遮挡应用程序的图标。例如,如图4所示,缩略窗口403不会遮挡应用程序的图标。After moving the thumbnail window to the first target area, the thumbnail window will not block the icon of the application. For example, as shown in FIG. 4, the thumbnail window 403 does not block the icon of the application.

需要说明的是,用户点击后台键与用户点击起始键的区别在于:屏幕上显示的目标对象不同。用户点击后台键后,屏幕上显示的目标对象包括网页中的文字和/或图片,在网页中同时包括文字和图片的情况下,将每个文字作为一个目标对象、以及将每个图片作为一个目标对象;在网页中只包括文字的情况下,将每个文字作为一个目标对象;在网页中只包括图片的情况下,将每个图片作为一个目标对象。其余计算第一交并比、以及在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域的过程与上述用户点击起始键时,将应用程序的图标作为目标对象时,移动缩略窗口至第一目标区域的过程类似,此处不再赘述。It should be noted that the difference between the user clicking the background key and the user clicking the start key is that the target objects displayed on the screen are different. After the user clicks the background button, the target objects displayed on the screen include text and/or pictures in the web page. In the case that the web page includes both text and pictures, each text is regarded as a target object, and each picture is regarded as a target object. Target object; in the case that only text is included in the webpage, each text is taken as a target object; in the case that only pictures are included in the webpage, each picture is taken as a target object. The rest calculates the first cross-union ratio, and moves the thumbnail window to a condition where at least one first cross-union ratio is greater than zero and it is determined according to each second position information that the first target area exists in the remaining area on the screen. The process of the first target area is similar to the process of moving the thumbnail window to the first target area when the user clicks the start button and the application icon is used as the target object, and will not be repeated here.

本实施例提供的缩略窗口位置调整方法,通过响应于用户对目标控件的第一输入,获得第一应用程序的缩略窗口在屏幕上对应的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息,根据第一位置信息和第二位置信息,获得至少一个目标对象与缩略窗口的第一交并比,在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。由于剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零,因此,第一目标区域不会与当前屏幕上显示的任何一个目标对象有交叠,即移动缩略窗口至第一目标区域后,缩略窗口不会遮挡当前屏幕上显示的任何一个目标对象。因此,解决了现有技术中的悬浮缩略窗口遮挡屏幕上的目标对象的问题。In the method for adjusting the position of a thumbnail window provided by this embodiment, by responding to the user's first input to the target control, the first position information corresponding to the thumbnail window of the first application program on the screen and the information of each position currently displayed on the screen are obtained. The second position information of each target object, according to the first position information and the second position information, obtain the first intersection ratio of at least one target object and the thumbnail window, when the at least one first intersection ratio is greater than zero, and according to each piece of second position information, and if it is determined that there is a first target area in the remaining area on the screen, move the thumbnail window to the first target area, where the remaining area is an area on the screen other than the object area corresponding to the target object , the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero. Since the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero, Therefore, the first target area will not overlap with any target object displayed on the current screen, that is, after moving the thumbnail window to the first target area, the thumbnail window will not block any target object displayed on the current screen. Therefore, the problem that the floating thumbnail window in the prior art blocks the target object on the screen is solved.

参照图5,图5是本申请实施例中提供的另一种缩略窗口位置调整方法的步骤流程图。本实例中以在目标控件为起始键的情况下,目标对象为第二应用程序的图标为例进行介绍,该方法包括如下步骤:Referring to FIG. 5 , FIG. 5 is a flowchart of steps of another method for adjusting the position of a thumbnail window provided in an embodiment of the present application. In this example, when the target control is the starting key, the target object is the icon of the second application as an example, and the method includes the following steps:

步骤501、接收用户对目标控件的第一输入。Step 501: Receive a first input from a user to a target control.

步骤502、响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息。Step 502: In response to the first input, obtain the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen.

步骤503、根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个目标对象与缩略窗口的第一交并比。Step 503: Obtain a first intersection ratio between each target object in the at least one target object and the thumbnail window according to the first position information and the second position information.

步骤504、在屏幕上不存在剩余区域的情况下,或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率。Step 504: In the case where there is no remaining area on the screen, or when at least one of the first intersection ratios is greater than zero, and according to each second position information, it is determined that there is no first target area in the remaining area, according to The usage frequency of each second application is obtained from the historical behavior data of the user within a preset time period before the current moment.

其中,在屏幕上不存在剩余区域的情况下,即屏幕上布满了应用程序的图标。在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,即在剩余区域的宽度小于缩略窗口的宽度的情况下,或者在剩余区域的高度小于缩略窗口的高度的情况下,可以根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率。例如,某个用户在当前时刻20点通过微信进行视频聊天,此时点击了起始键,则当前时刻之前的预设时长内用户的历史行为数据包括:20点之前该用户的一周(即预设时长为一周)内的历史行为数据。或者,当前时刻之前的预设时长内用户的历史行为数据包括:上述一周内的每天20点前的历史行为数据。历史行为数据可以为该用户在预设时长内使用的每个第二应用程序的次数,从而可以根据历史行为数据,获得每个第二应用程序的使用频率。Among them, in the case that there is no remaining area on the screen, that is, the screen is covered with icons of applications. In the case that at least one first intersection ratio is greater than zero, and it is determined according to each second position information that there is no first target area in the remaining area, that is, in the case that the width of the remaining area is smaller than the width of the thumbnail window, Or when the height of the remaining area is smaller than the height of the thumbnail window, the usage frequency of each second application may be obtained according to the user's historical behavior data within a preset time period before the current moment. For example, if a user conducts a video chat through WeChat at 20:00 at the current moment, and clicks the start button at this time, the user's historical behavior data within the preset time period before the current moment includes: the user's week before 20:00 (i.e. Set the period to be one week) of historical behavior data. Or, the historical behavior data of the user within a preset time period before the current moment includes: the historical behavior data before 20:00 every day in the above-mentioned week. The historical behavior data may be the number of times the user uses each second application within a preset time period, so that the usage frequency of each second application may be obtained according to the historical behavior data.

步骤505、从每个第二应用程序的使用频率中确定使用频率最小的应用程序。Step 505: Determine the application with the least frequency of use from the frequency of use of each second application.

步骤506、移动缩略窗口至使用频率最小的应用程序的图标对应的第二目标区域,并将缩略窗口以第一预设透明度显示在第二目标区域。Step 506: Move the thumbnail window to the second target area corresponding to the icon of the application program that is least frequently used, and display the thumbnail window in the second target area with the first preset transparency.

例如,参照图6,图6是本申请实施例提供的一种缩略窗口透明显示的界面示意图。如果根据步骤504确定出天气应用程序为使用频率最小的应用程序,则移动缩略窗口601至天气应用程序的图标对应的第二目标区域,具体的,可以以天气应用程序的图标的中心点为参考,移动缩略窗口,直至缩略窗口601在屏幕上的中心点与天气应用程序的图标的中心点重合为止,并将缩略窗口601以第一预设透明度显示在第二目标区域。For example, referring to FIG. 6 , FIG. 6 is a schematic interface diagram of transparent display of a thumbnail window provided by an embodiment of the present application. If it is determined according to step 504 that the weather application is an application with the least frequency of use, move the thumbnail window 601 to the second target area corresponding to the icon of the weather application. Specifically, the center point of the icon of the weather application may be For reference, move the thumbnail window until the center point of the thumbnail window 601 on the screen coincides with the center point of the icon of the weather application, and display the thumbnail window 601 in the second target area with the first preset transparency.

本实施例提供的缩略窗口位置调整方法,通过在屏幕上不存在剩余区域的情况下,或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率,从每个第二应用程序的使用频率中确定使用频率最小的应用程序,移动缩略窗口至使用频率最小的应用程序的图标对应的第二目标区域,并将缩略窗口以第一预设透明度显示在第二目标区域,实现在在屏幕上不存在剩余区域的情况下或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,透明显示缩略窗口,且缩略窗口所处的位置为用户使用频率最小的应用程序的图标对应的位置,从而不但降低了缩略窗口遮挡的图标的信息,而且避免缩略窗口处于用户经常使用的应用程序的图标所处的位置。In the method for adjusting the position of the thumbnail window provided in this embodiment, when there is no remaining area on the screen, or when at least one first intersection ratio is greater than zero, and according to each second position information, it is determined that there is no remaining area in the remaining area. In the presence of the first target area, the usage frequency of each second application is obtained according to the user's historical behavior data within a preset time period before the current moment, and the usage frequency is determined from the usage frequency of each second application The smallest application, move the thumbnail window to the second target area corresponding to the icon of the application that is used the least frequently, and display the thumbnail window in the second target area with the first preset transparency, so that it does not exist on the screen In the case of the remaining area or when at least one first intersection ratio is greater than zero, and it is determined according to each second position information that there is no first target area in the remaining area, the thumbnail window is transparently displayed, and the thumbnail window is displayed. The location is the location corresponding to the icon of the application program that is least frequently used by the user, thereby not only reducing the information of the icon blocked by the thumbnail window, but also preventing the thumbnail window from being located at the location where the icon of the application program frequently used by the user is located.

需要说明的是,在屏幕上不存在剩余区域的情况下或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,也可以随机选取一个图标,将缩略窗口透明显示在选取的图标对应的区域。It should be noted that, when there is no remaining area on the screen or when at least one first intersection ratio is greater than zero, and it is determined according to each second position information that there is no first target area in the remaining area, You can also randomly select an icon to transparently display the thumbnail window in the area corresponding to the selected icon.

参照图7,图7是本申请实施例中提供的又一种窗口位置调整方法的步骤流程图,本实施例中以在目标控件为后台键的情况下,目标对象为文字和/或图片为例进行介绍,该方法包括如下步骤:Referring to FIG. 7, FIG. 7 is a flowchart of steps of another method for adjusting window position provided in the embodiment of the present application. In this embodiment, when the target control is a background key, the target object is text and/or a picture is For example, the method includes the following steps:

步骤701、接收用户对目标控件的第一输入。Step 701: Receive a first input from a user to a target control.

步骤702、响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息。Step 702: In response to the first input, obtain the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen.

本步骤中可以通过光学字符识别(OCR,Optical Character Recognition)模型识别文字的第二位置信息,从而获得到屏幕上当前显示的文字的第二位置信息。网页上的图片的第二位置信息是预设的,因此,当屏幕上当前显示有网页中的图片时,可以获得到图片的第二位置信息。In this step, the second position information of the text may be recognized by an optical character recognition (OCR, Optical Character Recognition) model, so as to obtain the second position information of the text currently displayed on the screen. The second position information of the picture on the webpage is preset, therefore, when the picture in the webpage is currently displayed on the screen, the second position information of the picture can be obtained.

步骤703、根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个目标对象与缩略窗口的第一交并比。Step 703: Obtain a first intersection ratio between each target object in the at least one target object and the thumbnail window according to the first position information and the second position information.

步骤704、在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据每个候选区域覆盖的目标对象对应的对象区域的面积,从每个面积中确定最小面积。Step 704: In the case where at least one first intersection ratio is greater than zero and it is determined according to each second position information that there is no first target area in the remaining area, according to the object area corresponding to the target object covered by each candidate area areas, determine the smallest area from each area.

其中,每个候选区域为以剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于缩略窗口的尺寸的区域。Wherein, each candidate area is an area centered on each pixel in the remaining area, and the determined area size is greater than or equal to the size of the thumbnail window.

其中,对于文字作为目标对象时,目标对象对应的对象区域即文字的尺寸,对象区域的尺寸可以根据文字的第二位置信息确定。如果某个候选区域覆盖10个文字,则该候选区域覆盖的目标对象对应的对象区域的尺寸等于该10个文字分别对应的对象区域的尺寸之和。Wherein, when the text is used as the target object, the target area corresponding to the target object is the size of the text, and the size of the target area can be determined according to the second position information of the text. If a certain candidate area covers 10 characters, the size of the object area corresponding to the target object covered by the candidate area is equal to the sum of the sizes of the object areas corresponding to the 10 characters respectively.

需要说明的是,如果剩余区域为分辨率为10×10像素的区域,则共有100个像素点,若候选区域的尺寸等于缩略窗口的尺寸(即候选区域的宽度等于缩略窗口的宽度,候选区域的高度等于缩略窗口的高度)。则以100个像素点中的处于第i行第j列的像素点为中心,将确定的等于缩略窗口的尺寸的区域作为候选区域,其中,i大于等于1且小于等于10,j大于等于1且小于等于10,共可以确定100个候选区域,并根据100个候选区域中的每个候选区域覆盖的目标对象对应的对象区域的面积,从每个面积中确定最小面积。It should be noted that if the remaining area is an area with a resolution of 10×10 pixels, there are 100 pixels in total. If the size of the candidate area is equal to the size of the thumbnail window (that is, the width of the candidate area is equal to the width of the thumbnail window, The height of the candidate region is equal to the height of the thumbnail window). Then take the pixel in the i-th row and the j-th column as the center, and take the determined area equal to the size of the thumbnail window as the candidate area, where i is greater than or equal to 1 and less than or equal to 10, and j is greater than or equal to 1 and less than or equal to 10, a total of 100 candidate areas can be determined, and the minimum area is determined from each area according to the area of the object area corresponding to the target object covered by each of the 100 candidate areas.

步骤705、移动缩略窗口至最小面积对应的候选区域,并将缩略窗口以第二预设透明度显示在最小面积对应的候选区域。Step 705: Move the thumbnail window to the candidate area corresponding to the smallest area, and display the thumbnail window in the candidate area corresponding to the smallest area with the second preset transparency.

本实施例提供的缩略窗口位置调整方法,以剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于缩略窗口的尺寸的区域为候选区域,计算每个候选区域覆盖的目标对象对应的对象区域的面积,从每个面积中确定最小面积,移动缩略窗口至最小面积对应的候选区域,并将缩略窗口以第二预设透明度显示在最小面积对应的候选区域,从而使缩略窗口在屏幕上显示时,较大程度的降低覆盖的目标对象的面积,即较大程度的降低缩略窗口在屏幕上显示时遮挡的文字和/或图片。In the method for adjusting the position of the thumbnail window provided in this embodiment, the target area covered by each candidate area is calculated by taking each pixel in the remaining area as the center and the area with the determined area size greater than or equal to the size of the thumbnail window as the candidate area. The area of the object area corresponding to the object, determine the smallest area from each area, move the thumbnail window to the candidate area corresponding to the smallest area, and display the thumbnail window in the candidate area corresponding to the smallest area with the second preset transparency, thus When the thumbnail window is displayed on the screen, the area of the covered target object is greatly reduced, that is, the text and/or picture occluded when the thumbnail window is displayed on the screen is greatly reduced.

可选的,在目标控件为后台键的情况下,目标对象为文字和/或图片时,还可以包括如下步骤:Optionally, when the target control is a background key, and when the target object is a text and/or a picture, the following steps may also be included:

在屏幕上不存在剩余区域的情况下,将缩略窗口以第三预设透明度显示在第一位置信息对应的区域。In the case that there is no remaining area on the screen, the thumbnail window is displayed in the area corresponding to the first position information with the third preset transparency.

需要说明的是,第一预设透明度、第二预设透明度和第三预设透明度可以相同,也可以不相同,本申请对此不进行限制。It should be noted that the first preset transparency, the second preset transparency, and the third preset transparency may be the same or different, which is not limited in this application.

可选的,还可以包括如下步骤:Optionally, the following steps may also be included:

在每个目标对象与缩略窗口的第一交并比均等于零的情况下,将缩略窗口显示在第一位置信息对应的区域。Under the condition that the first intersection ratio of each target object and the thumbnail window is equal to zero, the thumbnail window is displayed in the area corresponding to the first position information.

由于所有的目标对象与缩略窗口的第一交并比等于零,即缩略窗口处于第一位置信息对应的位置时,缩略窗口不会遮挡当前屏幕上显示的目标对象,此种情况下,可以直接将缩略窗口显示在第一位置信息对应的区域。第一位置信息对应的区域可以为根据第一位置信息包括的左上角的坐标和右下角的坐标围成的矩形框确定。Since the first intersection ratio of all target objects and the thumbnail window is equal to zero, that is, when the thumbnail window is at the position corresponding to the first position information, the thumbnail window will not block the target object currently displayed on the screen. The abbreviated window can be directly displayed in the area corresponding to the first location information. The area corresponding to the first position information may be determined according to a rectangular frame enclosed by the coordinates of the upper left corner and the coordinates of the lower right corner included in the first position information.

需要说明的是,本申请实施例提供的窗口位置调整方法,执行主体可以为窗口位置调整装置,或者该窗口位置调整装置中的用于执行加载窗口位置调整方法的控制模块。本申请实施例中以窗口位置调整装置执行加载窗口位置调整方法为例,说明本申请实施例提供的窗口位置调整方法。It should be noted that, in the window position adjustment method provided by the embodiments of the present application, the execution subject may be a window position adjustment apparatus, or a control module in the window position adjustment apparatus for executing the loading window position adjustment method. In the embodiment of the present application, the method for adjusting the position of the window that is executed by the window position adjusting device is used as an example to describe the method for adjusting the position of the window provided by the embodiment of the present application.

参照图8,图8是本申请实施例中提供的窗口位置调整装置的结构示意图,该窗口位置调装置800包括:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a window position adjustment device provided in an embodiment of the present application. The window position adjustment device 800 includes:

接收模块810,用于接收用户对目标控件的第一输入;a receiving module 810, configured to receive the first input of the user to the target control;

第一获得模块820,用于响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息;The first obtaining module 820 is configured to obtain the first position information on the screen of the thumbnail window of the first application program and the second position information of each target object currently displayed on the screen in response to the first input;

第二获得模块830,用于根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个所述目标对象与缩略窗口的第一交并比;The second obtaining module 830 is configured to obtain, according to the first position information and the second position information, a first intersection ratio between each of the at least one target object and the thumbnail window;

确定模块840,用于在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。The determining module 840 is configured to move the thumbnail window to the first target under the condition that at least one first intersection ratio is greater than zero and it is determined according to each second position information that there is a first target area in the remaining area on the screen area, where the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the first target area intersects with the second area of each target object. ratio equals zero.

本实施例提供的缩略窗口位置调整装置,通过接收用户对目标控件的第一输入,响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息,根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个所述目标对象与缩略窗口的第一交并比,在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。由于剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零,因此,第一目标区域不会与当前屏幕上显示的任何一个目标对象有交叠,即移动缩略窗口至第一目标区域后,缩略窗口不会遮挡当前屏幕上显示的任何一个目标对象。因此,解决了现有技术中的悬浮缩略窗口遮挡屏幕上的目标对象的问题。The apparatus for adjusting the position of the thumbnail window provided in this embodiment obtains the first position information of the thumbnail window of the first application program on the screen and the current on the screen by receiving the first input of the user to the target control and responding to the first input. The displayed second position information of each target object, according to the first position information and the second position information, obtain the first intersection ratio of each said target object in the at least one target object and the thumbnail window, in at least one When the first cross-union ratio is greater than zero, and it is determined according to each second position information that there is a first target area in the remaining area on the screen, move the thumbnail window to the first target area, where the remaining area is on the screen. For areas other than the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero. Since the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero, Therefore, the first target area will not overlap with any target object displayed on the current screen, that is, after moving the thumbnail window to the first target area, the thumbnail window will not block any target object displayed on the current screen. Therefore, the problem that the floating thumbnail window in the prior art blocks the target object on the screen is solved.

可选的,在目标控件为起始键的情况下,目标对象为第二应用程序的图标,确定模块840,还用于在屏幕上不存在剩余区域的情况下,或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率;Optionally, in the case where the target control is the start key, and the target object is the icon of the second application, the determining module 840 is also used for the case where there is no remaining area on the screen, or when at least one first interaction The sum ratio is greater than zero, and when it is determined that there is no first target area in the remaining area according to each second location information, obtain each second application according to the user's historical behavior data within a preset time period before the current moment the frequency of use of the program;

从每个第二应用程序的使用频率中确定使用频率最小的应用程序;Determine the application with the least frequency of use from the frequency of use of each second application;

移动缩略窗口至使用频率最小的应用程序的图标对应的第二目标区域,并将缩略窗口以第一预设透明度显示在第二目标区域。The thumbnail window is moved to the second target area corresponding to the icon of the application program that is least frequently used, and the thumbnail window is displayed in the second target area with the first preset transparency.

可选的,在目标控件为后台键的情况下,目标对象为文字和/或图片,Optionally, when the target control is a background key, the target object is text and/or picture,

确定模块840,还用于在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据每个候选区域覆盖的目标对象对应的对象区域的面积,从每个面积中确定最小面积,其中,每个候选区域为以剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于缩略窗口的尺寸的区域;The determining module 840 is further configured to, when at least one first intersection ratio is greater than zero, and according to each second position information, determine that there is no first target area in the remaining area, according to the target object covered by each candidate area The area of the corresponding object area, the minimum area is determined from each area, wherein each candidate area is centered on each pixel in the remaining area, and the determined area size is greater than or equal to the size of the thumbnail window.

移动缩略窗口至最小面积对应的候选区域,并将缩略窗口以第二预设透明度显示在最小面积对应的候选区域。Move the thumbnail window to the candidate area corresponding to the smallest area, and display the thumbnail window in the candidate area corresponding to the smallest area with the second preset transparency.

可选的,在目标控件为后台键的情况下,目标对象为文字和/或图片,Optionally, when the target control is a background key, the target object is text and/or picture,

确定模块840,还用于在屏幕上不存在剩余区域的情况下,将缩略窗口以第三预设透明度显示在第一位置信息对应的区域。The determining module 840 is further configured to display the thumbnail window in the area corresponding to the first position information with a third preset transparency in the case that there is no remaining area on the screen.

可选的,确定模块840,还用于在每个目标对象与缩略窗口的第一交并比均等于零的情况下,将缩略窗口显示在第一位置信息对应的区域。Optionally, the determining module 840 is further configured to display the abbreviated window in the area corresponding to the first position information when the first intersection ratio of each target object and the thumbnail window is equal to zero.

本申请实施例中的窗口位置调整装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The window position adjustment device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. This application Examples are not specifically limited.

本申请实施例中的窗口位置调整装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The window position adjustment device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的窗口位置调整装置能够实现图1、图5和图7的方法实施例中窗口位置调整装置实现的各个过程,为避免重复,这里不再赘述。The window position adjustment apparatus provided in the embodiment of the present application can implement the various processes implemented by the window position adjustment apparatus in the method embodiments of FIG. 1 , FIG. 5 , and FIG. 7 . To avoid repetition, details are not described here.

可选的,本申请实施例还提供一种电子设备,包括处理器910,存储器909,存储在存储器909上并可在处理器910上运行的程序或指令,该程序或指令被处理器910执行时实现上述窗口位置调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor 910, a memory 909, a program or instruction stored in the memory 909 and executable on the processor 910, and the program or instruction is executed by the processor 910. Each process of the above-mentioned embodiment of the method for adjusting the window position can be realized at the same time, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.

需要注意的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

图9为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906用户输入单元907、接口单元908、存储器909、以及处理器910等部件。The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components .

本领域技术人员可以理解,电子设备900还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图x中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 910 through a power management system, so that the power management system can manage charging, discharging, and power management. consumption management and other functions. The structure of the electronic device shown in Figure x does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .

其中,射频单元901用于接收用户对目标控件的第一输入。Wherein, the radio frequency unit 901 is configured to receive the first input of the user to the target control.

处理器910,用于响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息;The processor 910 is configured to, in response to the first input, obtain first position information on the screen of the thumbnail window of the first application and second position information of each target object currently displayed on the screen;

根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个目标对象与缩略窗口的第一交并比;obtaining, according to the first position information and the second position information, a first intersection ratio between each target object in the at least one target object and the thumbnail window;

在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。In the case where at least one of the first intersection ratios is greater than zero, and it is determined according to each second position information that there is a first target area in the remaining area on the screen, move the thumbnail window to the first target area, wherein the remaining area is is an area on the screen other than the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero.

通过接收用户对目标控件的第一输入,响应第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及屏幕上当前显示的每个目标对象的第二位置信息,根据第一位置信息和第二位置信息,获得至少一个目标对象中的每个目标对象与缩略窗口的第一交并比,在至少一个第一交并比大于零、且根据每个第二位置信息,确定屏幕上的剩余区域中存在第一目标区域的情况下,移动缩略窗口至第一目标区域,其中,剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零。由于剩余区域为屏幕上除目标对象对应的对象区域之外的区域,第一目标区域的尺寸大于或等于缩略窗口的尺寸,第一目标区域与每个目标对象的第二交并比等于零,因此,第一目标区域不会与当前屏幕上显示的任何一个目标对象有交叠,即移动缩略窗口至第一目标区域后,缩略窗口不会遮挡当前屏幕上显示的任何一个目标对象。因此,解决了现有技术中的悬浮缩略窗口遮挡屏幕上的目标对象的问题。By receiving the first input of the user to the target control, and responding to the first input, the first position information of the thumbnail window of the first application program on the screen and the second position information of each target object currently displayed on the screen are obtained, According to the first position information and the second position information, a first intersection ratio of each target object in the at least one target object and the thumbnail window is obtained, where the at least one first intersection ratio is greater than zero, and according to each second position information, when it is determined that there is a first target area in the remaining area on the screen, move the thumbnail window to the first target area, where the remaining area is the area on the screen other than the object area corresponding to the target object, and the first The size of the target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero. Since the remaining area is the area on the screen except the object area corresponding to the target object, the size of the first target area is greater than or equal to the size of the thumbnail window, and the second intersection ratio between the first target area and each target object is equal to zero, Therefore, the first target area will not overlap with any target object displayed on the current screen, that is, after moving the thumbnail window to the first target area, the thumbnail window will not block any target object displayed on the current screen. Therefore, the problem that the floating thumbnail window in the prior art blocks the target object on the screen is solved.

在目标控件为起始键的情况下,目标对象为第二应用程序的图标,处理器910,还用于在屏幕上不存在剩余区域的情况下,或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率;In the case that the target control is the start key, and the target object is the icon of the second application, the processor 910 is further configured to, in the case that there is no remaining area on the screen, or when at least one first intersection ratio is greater than zero , and according to each second location information, when it is determined that there is no first target area in the remaining area, obtain the frequency of use of each second application program according to the user's historical behavior data within a preset time period before the current moment ;

从每个第二应用程序的使用频率中确定使用频率最小的应用程序;Determine the application with the least frequency of use from the frequency of use of each second application;

移动缩略窗口至使用频率最小的应用程序的图标对应的第二目标区域,并将缩略窗口透明显示在第二目标区域Move the thumbnail window to the second target area corresponding to the icon of the application that is least frequently used, and transparently display the thumbnail window in the second target area

通过在屏幕上不存在剩余区域的情况下或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据在当前时刻之前的预设时长内用户的历史行为数据,获得每个第二应用程序的使用频率,从每个第二应用程序的使用频率中确定使用频率最小的应用程序,移动缩略窗口至使用频率最小的应用程序的图标对应的第二目标区域,并将缩略窗口以第一预设透明度显示在第二目标区域,实现在在屏幕上不存在剩余区域的情况下或在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,透明显示缩略窗口,且缩略窗口所处的位置为用户使用频率最小的应用程序的图标对应的位置,从而不但降低了缩略窗口遮挡的图标的信息,而且避免缩略窗口处于用户经常使用的应用程序的图标所处的位置。In the case that there is no remaining area on the screen or at least one first intersection ratio is greater than zero, and according to each second position information, it is determined that there is no first target area in the remaining area, according to the current moment. Obtain the usage frequency of each second application from the user's historical behavior data in the previous preset time period, determine the application with the least frequency from the usage frequency of each second application, and move the thumbnail window to the least frequently used application The second target area corresponding to the icon of the application program, and the thumbnail window is displayed in the second target area with the first preset transparency, so as to realize that there is no remaining area on the screen or at least one first intersection When the ratio is greater than zero and it is determined that there is no first target area in the remaining area according to each second location information, the thumbnail window is transparently displayed, and the location of the thumbnail window is the location of the application that the user uses the least frequently. The position corresponding to the icon not only reduces the information of the icon blocked by the thumbnail window, but also prevents the thumbnail window from being located at the position where the icon of the application program frequently used by the user is located.

在目标控件为后台键的情况下,目标对象为文字和/或图片,处理器910,还用于在至少一个第一交并比大于零、且根据每个第二位置信息,确定剩余区域中未存在第一目标区域的情况下,根据每个候选区域覆盖的目标对象对应的对象区域的面积,从每个面积中确定最小面积,其中,每个候选区域为以剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于缩略窗口的尺寸的区域;In the case where the target control is a background key, and the target object is a text and/or a picture, the processor 910 is further configured to determine the remaining area when at least one first intersection ratio is greater than zero and according to each second position information In the case where there is no first target area, the minimum area is determined from each area according to the area of the target area corresponding to the target object covered by each candidate area, wherein each candidate area is based on each pixel in the remaining area. The point is the center and the size of the determined area is greater than or equal to the size of the thumbnail window;

移动缩略窗口至最小面积对应的候选区域,并将缩略窗口以第二预设透明度显示在最小面积对应的候选区域。Move the thumbnail window to the candidate area corresponding to the smallest area, and display the thumbnail window in the candidate area corresponding to the smallest area with the second preset transparency.

在目标控件为后台键的情况下,目标对象为文字和/或图片,处理器910,还用于在屏幕上不存在剩余区域的情况下,将缩略窗口以第三预设透明度显示在第一位置信息对应的区域。In the case where the target control is a background key, and the target object is a text and/or a picture, the processor 910 is further configured to display the thumbnail window with a third preset transparency on the screen when there is no remaining area on the screen. A region corresponding to the location information.

处理器910,还用于在每个目标对象与缩略窗口的第一交并比均等于零的情况下,将缩略窗口显示在第一位置信息对应的区域。The processor 910 is further configured to display the thumbnail window in the area corresponding to the first position information under the condition that the first intersection ratio of each target object and the thumbnail window is equal to zero.

本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述窗口位置调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for adjusting the window position can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here.

其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The 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.

本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述窗口位置调整方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement each process of the above-mentioned window position adjustment method embodiment, and can achieve the same In order to avoid repetition, the technical effect will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, 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 some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (11)

1.一种窗口位置调整方法,其特征在于,所述方法包括:1. a window position adjustment method, it is characterised in that the method comprises: 接收用户对目标控件的第一输入;receiving the first input from the user to the target control; 响应所述第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及所述屏幕上当前显示的每个目标对象的第二位置信息;In response to the first input, obtain the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen; 根据所述第一位置信息和所述第二位置信息,获得至少一个目标对象中的每个所述目标对象与所述缩略窗口的第一交并比;obtaining, according to the first position information and the second position information, a first intersection ratio between each of the at least one target object and the thumbnail window; 在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述屏幕上的剩余区域中存在第一目标区域的情况下,移动所述缩略窗口至所述第一目标区域,其中,所述剩余区域为所述屏幕上除所述目标对象对应的对象区域之外的区域,所述第一目标区域的尺寸大于或等于所述缩略窗口的尺寸,所述第一目标区域与每个所述目标对象的第二交并比等于零。In the case that at least one of the first intersection ratios is greater than zero, and according to each of the second position information, it is determined that there is a first target area in the remaining areas on the screen, moving the thumbnail window to the desired location. the first target area, wherein the remaining area is an area on the screen other than the object area corresponding to the target object, and the size of the first target area is greater than or equal to the size of the thumbnail window, The second intersection ratio of the first target area and each of the target objects is equal to zero. 2.根据权利要求1所述的方法,其特征在于,在所述目标控件为起始键的情况下,所述目标对象为第二应用程序的图标,所述方法还包括:2. The method according to claim 1, wherein, when the target control is a start key, the target object is an icon of a second application, and the method further comprises: 在所述屏幕上不存在所述剩余区域的情况下,或在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述剩余区域中未存在所述第一目标区域的情况下,根据在当前时刻之前的预设时长内所述用户的历史行为数据,获得每个所述第二应用程序的使用频率;In the case where the remaining area does not exist on the screen, or when at least one of the first intersection ratios is greater than zero, and according to each of the second position information, it is determined that the remaining area does not exist in the remaining area. In the case of the first target area, obtain the usage frequency of each of the second applications according to the user's historical behavior data within a preset time period before the current moment; 从每个所述第二应用程序的使用频率中确定使用频率最小的应用程序;Determine the application with the least frequency of use from the frequency of use of each of the second applications; 移动所述缩略窗口至所述使用频率最小的应用程序的图标对应的第二目标区域,并将所述缩略窗口以第一预设透明度显示在所述第二目标区域。The thumbnail window is moved to a second target area corresponding to the icon of the least frequently used application, and the thumbnail window is displayed in the second target area with a first preset transparency. 3.根据权利要求1所述的方法,其特征在于,在所述目标控件为后台键的情况下,所述目标对象为文字和/或图片,所述方法还包括:3. The method according to claim 1, wherein, when the target control is a background key, the target object is a text and/or a picture, and the method further comprises: 在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述剩余区域中未存在所述第一目标区域的情况下,根据每个候选区域覆盖的所述目标对象对应的对象区域的面积,从每个所述面积中确定最小面积,其中,所述每个候选区域为以所述剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于所述缩略窗口的尺寸的区域;In the case that at least one of the first intersection ratios is greater than zero, and it is determined according to each of the second position information that the first target area does not exist in the remaining areas, according to all the areas covered by each candidate area The area of the object area corresponding to the target object, and the minimum area is determined from each of the areas, wherein the each candidate area is centered on each pixel in the remaining area, and the determined area size is greater than or an area equal to the size of the thumbnail window; 移动所述缩略窗口至所述最小面积对应的候选区域,并将所述缩略窗口以第二预设透明度显示在所述最小面积对应的候选区域。The thumbnail window is moved to the candidate area corresponding to the minimum area, and the thumbnail window is displayed in the candidate area corresponding to the minimum area with a second preset transparency. 4.根据权利要求1所述的方法,其特征在于,在所述目标控件为后台键的情况下,所述目标对象为文字和/或图片,所述方法还包括:4. The method according to claim 1, wherein, when the target control is a background key, the target object is a text and/or a picture, and the method further comprises: 在所述屏幕上不存在所述剩余区域的情况下,将所述缩略窗口以第三预设透明度显示在所述第一位置信息对应的区域。In the case that the remaining area does not exist on the screen, the thumbnail window is displayed in the area corresponding to the first position information with a third preset transparency. 5.根据权利要求1所述的方法,其特征在于,还包括:5. The method of claim 1, further comprising: 在每个所述目标对象与所述缩略窗口的第一交并比均等于零的情况下,将所述缩略窗口显示在所述第一位置信息对应的区域。Under the condition that the first intersection ratio of each target object and the thumbnail window is equal to zero, the thumbnail window is displayed in the area corresponding to the first position information. 6.一种窗口位置调整装置,其特征在于,包括:6. A window position adjustment device, characterized in that, comprising: 接收模块,用于接收用户对目标控件的第一输入;a receiving module for receiving the first input of the user to the target control; 第一获得模块,用于响应所述第一输入,获得第一应用程序的缩略窗口在屏幕上的第一位置信息、以及所述屏幕上当前显示的每个目标对象的第二位置信息;a first obtaining module, configured to obtain, in response to the first input, the first position information on the screen of the thumbnail window of the first application and the second position information of each target object currently displayed on the screen; 第二获得模块,用于根据所述第一位置信息和所述第二位置信息,获得至少一个目标对象中的每个所述目标对象与所述缩略窗口的第一交并比;a second obtaining module, configured to obtain a first intersection ratio between each of the at least one target object and the thumbnail window according to the first position information and the second position information; 确定模块,用于在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述屏幕上的剩余区域中存在第一目标区域的情况下,移动所述缩略窗口至所述第一目标区域,其中,所述剩余区域为所述屏幕上除所述目标对象对应的对象区域之外的区域,所述第一目标区域的尺寸大于或等于所述缩略窗口的尺寸,所述第一目标区域与每个所述目标对象的第二交并比等于零。a determining module, configured to move the said first target area under the condition that at least one of the first intersection ratios is greater than zero and it is determined according to each of the second position information that there is a first target area in the remaining area on the screen The window is abbreviated to the first target area, wherein the remaining area is an area on the screen other than the target area corresponding to the target object, and the size of the first target area is greater than or equal to the thumbnail Depending on the size of the window, the second intersection ratio of the first target area and each of the target objects is equal to zero. 7.根据权利要求6所述的装置,其特征在于,在所述目标控件为起始键的情况下,所述目标对象为第二应用程序的图标,7. The device according to claim 6, wherein, when the target control is a start key, the target object is an icon of a second application, 所述确定模块,还用于在所述屏幕上不存在所述剩余区域的情况下,或在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述剩余区域中未存在所述第一目标区域的情况下,根据在当前时刻之前的预设时长内所述用户的历史行为数据,获得每个所述第二应用程序的使用频率;The determining module is further configured to, in the case where the remaining area does not exist on the screen, or when at least one of the first cross-union ratios is greater than zero, and according to each of the second position information, determine the In the case that the first target area does not exist in the remaining area, obtain the usage frequency of each of the second application programs according to the historical behavior data of the user within a preset time period before the current moment; 从每个所述第二应用程序的使用频率中确定使用频率最小的应用程序;Determine the application with the least frequency of use from the frequency of use of each of the second applications; 移动所述缩略窗口至所述使用频率最小的应用程序的图标对应的第二目标区域,并将所述缩略窗口以第一预设透明度显示在所述第二目标区域。The thumbnail window is moved to a second target area corresponding to the icon of the least frequently used application, and the thumbnail window is displayed in the second target area with a first preset transparency. 8.根据权利要求6所述的装置,其特征在于,在所述目标控件为后台键的情况下,所述目标对象为文字和/或图片,8. The device according to claim 6, wherein, when the target control is a background key, the target object is a text and/or a picture, 所述确定模块,还用于在至少一个所述第一交并比大于零、且根据每个所述第二位置信息,确定所述剩余区域中未存在所述第一目标区域的情况下,根据每个候选区域覆盖的所述目标对象对应的对象区域的面积,从每个所述面积中确定最小面积,其中,所述每个候选区域为以所述剩余区域中的每个像素点为中心、确定的区域尺寸大于或等于所述缩略窗口的尺寸的区域;The determining module is further configured to, when at least one of the first intersection ratios is greater than zero and it is determined according to each of the second position information that the first target area does not exist in the remaining area, According to the area of the object area corresponding to the target object covered by each candidate area, a minimum area is determined from each of the areas, wherein each candidate area is based on each pixel in the remaining area as the center, the determined area size is greater than or equal to the size of the thumbnail window; 移动所述缩略窗口至所述最小面积对应的候选区域,并将所述缩略窗口以第二预设透明度显示在所述最小面积对应的候选区域。The thumbnail window is moved to the candidate area corresponding to the minimum area, and the thumbnail window is displayed in the candidate area corresponding to the minimum area with a second preset transparency. 9.根据权利要求6所述的装置,其特征在于,在所述目标控件为后台键的情况下,所述目标对象为文字和/或图片,9. The device according to claim 6, wherein, when the target control is a background key, the target object is a text and/or a picture, 所述确定模块,还用于在所述屏幕上不存在所述剩余区域的情况下,将所述缩略窗口以第三预设透明度显示在所述第一位置信息对应的区域。The determining module is further configured to display the thumbnail window in a region corresponding to the first position information with a third preset transparency when the remaining region does not exist on the screen. 10.根据权利要求6所述的装置,其特征在于,10. The device of claim 6, wherein: 所述确定模块,还用于在每个所述目标对象与所述缩略窗口的第一交并比均等于零的情况下,将所述缩略窗口显示在所述第一位置信息对应的区域。The determining module is further configured to display the thumbnail window in the area corresponding to the first position information when the first intersection ratio of each target object and the thumbnail window is equal to zero . 11.一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5所述的窗口位置调整方法的步骤。11. An electronic device, characterized in that it comprises a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the window position adjustment method according to claims 1-5.
CN202010358461.1A 2020-04-29 2020-04-29 Window position adjustment method, device and electronic device Active CN111638818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010358461.1A CN111638818B (en) 2020-04-29 2020-04-29 Window position adjustment method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010358461.1A CN111638818B (en) 2020-04-29 2020-04-29 Window position adjustment method, device and electronic device

Publications (2)

Publication Number Publication Date
CN111638818A true CN111638818A (en) 2020-09-08
CN111638818B CN111638818B (en) 2022-05-10

Family

ID=72328797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010358461.1A Active CN111638818B (en) 2020-04-29 2020-04-29 Window position adjustment method, device and electronic device

Country Status (1)

Country Link
CN (1) CN111638818B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112675535A (en) * 2020-12-24 2021-04-20 咪咕互动娱乐有限公司 Display interface adjusting method and device, network equipment and storage medium
CN113176841A (en) * 2021-04-27 2021-07-27 维沃移动通信有限公司 Floating window display method and device, electronic equipment and readable storage medium
CN113709386A (en) * 2021-03-19 2021-11-26 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer equipment and computer readable storage medium
CN114253433A (en) * 2020-09-24 2022-03-29 荣耀终端有限公司 A dynamic element control method, electronic device and computer-readable storage medium
CN119025196A (en) * 2023-05-25 2024-11-26 网易(杭州)网络有限公司 Control adjustment method, device and electronic device
CN120335694A (en) * 2024-01-10 2025-07-18 荣耀终端股份有限公司 Device interconnection interaction method, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102109944A (en) * 2009-12-23 2011-06-29 联想(北京)有限公司 Window management method, device thereof and computer
JP2017204099A (en) * 2016-05-10 2017-11-16 株式会社ジャストシステム Information processing apparatus, information processing method, and information processing program
CN109375983A (en) * 2018-12-20 2019-02-22 广东金赋科技股份有限公司 The method of input method window adjust automatically in terminal
CN110362373A (en) * 2019-06-29 2019-10-22 华为技术有限公司 A method for controlling a small window on a screen and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102109944A (en) * 2009-12-23 2011-06-29 联想(北京)有限公司 Window management method, device thereof and computer
JP2017204099A (en) * 2016-05-10 2017-11-16 株式会社ジャストシステム Information processing apparatus, information processing method, and information processing program
CN109375983A (en) * 2018-12-20 2019-02-22 广东金赋科技股份有限公司 The method of input method window adjust automatically in terminal
CN110362373A (en) * 2019-06-29 2019-10-22 华为技术有限公司 A method for controlling a small window on a screen and related equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253433A (en) * 2020-09-24 2022-03-29 荣耀终端有限公司 A dynamic element control method, electronic device and computer-readable storage medium
WO2022062949A1 (en) * 2020-09-24 2022-03-31 荣耀终端有限公司 Dynamic element control method, electronic device and computer-readable storage medium
US12073070B2 (en) 2020-09-24 2024-08-27 Honor Device Co., Ltd. Dynamic element control method, electronic device, and computer readable storage medium
CN112675535A (en) * 2020-12-24 2021-04-20 咪咕互动娱乐有限公司 Display interface adjusting method and device, network equipment and storage medium
CN113709386A (en) * 2021-03-19 2021-11-26 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer equipment and computer readable storage medium
CN113176841A (en) * 2021-04-27 2021-07-27 维沃移动通信有限公司 Floating window display method and device, electronic equipment and readable storage medium
CN119025196A (en) * 2023-05-25 2024-11-26 网易(杭州)网络有限公司 Control adjustment method, device and electronic device
CN120335694A (en) * 2024-01-10 2025-07-18 荣耀终端股份有限公司 Device interconnection interaction method, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN111638818B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN111638818A (en) Window position adjustment method, device and electronic device
CN112988006B (en) Display method, device, electronic device and storage medium
US10228835B2 (en) Method for displaying information, and terminal equipment
CN112306607B (en) Screenshot method and device, electronic device and readable storage medium
WO2023061280A1 (en) Application program display method and apparatus, and electronic device
CN111813308B (en) Interface processing method and device, electronic equipment and storage medium
WO2022194003A1 (en) Screen capture method and apparatus, electronic device, and readable storage medium
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
WO2023005828A1 (en) Message display method and apparatus, and electronic device
WO2023025121A1 (en) Display method and apparatus, electronic device, and readable storage medium
CN113986076B (en) Icon display control method, device, electronic device and storage medium
CN113835577B (en) Display method, device, electronic device and storage medium
WO2022242515A1 (en) Interface display method and apparatus
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN112765500A (en) Information searching method and device
CN105988700B (en) Terminal screen display method and device
WO2023030114A1 (en) Interface display method and apparatus
CN114416269A (en) Interface display method and display device
CN111796746B (en) Volume adjustment method, volume adjustment device and electronic equipment
CN114222355A (en) Terminal power saving display method and device and electronic equipment
WO2022068725A1 (en) Navigation gesture setting method and apparatus, and electronic device
CN113282204A (en) Icon control method and icon control device
US20230334740A1 (en) Image display method, apparatus, and electronic device
CN111638828A (en) Interface display method and device
CN114416264B (en) Message display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant