CN112612405B - Window display method, device, equipment and computer readable storage medium - Google Patents

Window display method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112612405B
CN112612405B CN202011580207.2A CN202011580207A CN112612405B CN 112612405 B CN112612405 B CN 112612405B CN 202011580207 A CN202011580207 A CN 202011580207A CN 112612405 B CN112612405 B CN 112612405B
Authority
CN
China
Prior art keywords
application
window
target
display position
target application
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.)
Active
Application number
CN202011580207.2A
Other languages
Chinese (zh)
Other versions
CN112612405A (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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202011580207.2A priority Critical patent/CN112612405B/en
Publication of CN112612405A publication Critical patent/CN112612405A/en
Application granted granted Critical
Publication of CN112612405B publication Critical patent/CN112612405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

The application discloses a window display method, a window display device, window display equipment and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring screen segmentation information, wherein the screen segmentation information is used for indicating that a screen of the electronic equipment is segmented into a plurality of target areas; determining the positions of the target number of areas based on the screen size and the screen segmentation information of the electronic equipment; determining a window display range of the target application based on the application identifier of the target application, wherein the window display range is used for indicating the number of areas occupied by the window of the target application; determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of areas, wherein the area corresponding to the display position of the target application is an unoccupied area; and displaying the window of the target application at the display position of the target application. The display position of the target application determined by the method is more accurate, and the window of the target application is displayed on the display position, so that the display effect of the window of the target application is better.

Description

Window display method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a window display method, device and equipment and a computer readable storage medium.
Background
With the continuous development of computer technology, electronic devices such as smart phones, tablet computers, and vehicle-mounted terminals gradually play an indispensable role in daily life of people. With the development trend of the market, the screen of the electronic device is designed to be larger, and how to quickly and accurately determine the window display position of the application in the electronic device is more urgent.
In the related art, when a user wants to simultaneously display two or more application windows on a screen of an electronic device, a window of a later-opened application may block a window of a previous-opened application, that is, the window of the later-opened application may be suspended above the window of the previous-opened application. For example, when a chat page is opened while watching a video, a window corresponding to the chat page may block a window corresponding to the video.
However, in the window display method, the window of the application opened later may block the window of the application opened earlier, so that the display position of the window of the application determined is not accurate enough, and the display effect of the window of the application opened earlier is poor, thereby affecting the use experience of the user.
Disclosure of Invention
The embodiment of the application provides a window display method, a window display device, window display equipment and a computer readable storage medium, which can be used for solving the problems in the related art. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a window display method, where the method includes:
acquiring screen segmentation information, wherein the screen segmentation information is used for indicating that a screen of the electronic equipment is segmented into a plurality of target areas;
determining the positions of the target plurality of areas based on the screen size of the electronic equipment and the screen segmentation information;
determining a window display range of a target application based on an application identifier of the target application, wherein the window display range is used for indicating the number of areas occupied by a window of the target application;
determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of areas, wherein the area corresponding to the display position of the target application is an unoccupied area;
and displaying the window of the target application at the display position of the target application.
In one possible implementation manner, the determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of areas includes:
Traversing the target areas based on the window display range of the target application, and determining the target area corresponding to the target application;
determining a display position of the target application based on the target area and the positions of the target areas.
In a possible implementation manner, the traversing the target number of regions based on the window display range of the target application to determine the target region corresponding to the target application includes:
traversing the target number of regions based on the window display range of the target application, and determining the region which is not added with the target mark and meets the window display range as the target region corresponding to the target application, wherein the target mark is used for indicating that the region is occupied.
In one possible implementation manner, after the displaying the window of the target application at the display position of the target application, the method further includes:
receiving a window exchange instruction, wherein the window exchange instruction carries an application identifier of a first application;
determining a display position of the first application based on the application identification of the first application;
swapping the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
In one possible implementation manner, the swapping, based on the display position of the first application and the display position of the target application, the window of the first application and the window of the target application includes:
and responding to the display position of the first application and the display position of the target application are on the same page, and the size of the display position of the first application is consistent with that of the display position of the target application, and exchanging the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
In one possible implementation manner, the swapping, based on the display position of the first application and the display position of the target application, the window of the first application and the window of the target application includes:
responding to the situation that the display position of the first application and the display position of the target application are on the same page, and the size of the display position of the first application is smaller than that of the display position of the target application, adjusting the display position of the first application to obtain the adjusted display position of the first application, wherein the size of the adjusted display position of the first application is consistent with that of the display position of the target application;
And exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In one possible implementation manner, the swapping, based on the adjusted display position of the first application and the display position of the target application, a window of the first application and a window of the target application includes:
in response to that the adjusted display position of the first application and the display position of the target application do not overlap and the adjusted display position of the first application and the display positions of other applications do not overlap, exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application;
responding to the display position of the first application after adjustment and the display position of a second application to overlap, moving a window of the second application to obtain the display position of the second application after adjustment, wherein the display position of the second application after adjustment and the display position of the first application after adjustment do not overlap; and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In one possible implementation, the method further includes:
and in response to the display position of the first application and the display position of the target application not being in the same page, displaying a notification message for notifying that the window of the first application and the window of the target application cannot be exchanged.
In another aspect, an embodiment of the present application provides a window display device, where the window display device includes:
the acquisition module is used for acquiring screen segmentation information which is used for indicating that the screen of the electronic equipment is segmented into a plurality of target areas;
a determining module, configured to determine positions of the plurality of target regions based on a screen size of the electronic device and the screen segmentation information;
the determining module is further configured to determine a window display range of the target application based on an application identifier of the target application, where the window display range is used to indicate the number of areas occupied by the window of the target application;
the determining module is further configured to determine a display position of the target application based on the window display range of the target application and the positions of the plurality of target regions, where a region corresponding to the display position of the target application is an unoccupied region;
And the display module is used for displaying the window of the target application at the display position of the target application.
In a possible implementation manner, the determining module is configured to traverse the target number of regions based on a window display range of the target application, and determine a target region corresponding to the target application;
determining a display position of the target application based on the target area and the positions of the target plurality of areas.
In a possible implementation manner, the determining module is configured to traverse the target number of regions based on a window display range of the target application, and determine a region, to which a target mark is not added and which satisfies the window display range, as a target region corresponding to the target application, where the target mark is used to indicate that the region is occupied.
In one possible implementation, the apparatus further includes:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a window exchange instruction, and the window exchange instruction carries an application identifier of a first application;
the determining module is used for determining the display position of the first application based on the application identification of the first application;
the device further comprises:
And the exchange module is used for exchanging the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
In a possible implementation manner, the swapping module is configured to swap the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application in response to that the display position of the first application and the display position of the target application are on the same page and that a size of the display position of the first application and a size of the display position of the target application are consistent.
In a possible implementation manner, the swapping module is configured to, in response to that the display position of the first application and the display position of the target application are on the same page and the size of the display position of the first application is smaller than the size of the display position of the target application, adjust the display position of the first application to obtain an adjusted display position of the first application, where the size of the adjusted display position of the first application is consistent with the size of the display position of the target application;
and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In one possible implementation manner, the swapping module is configured to swap the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application in response to that there is no overlap between the adjusted display position of the first application and the display position of the target application and there is no overlap between the adjusted display position of the first application and the display positions of other applications;
responding to the display position of the first application after adjustment and the display position of a second application to overlap, moving a window of the second application to obtain the display position of the second application after adjustment, wherein the display position of the second application after adjustment and the display position of the first application after adjustment do not overlap; and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In a possible implementation manner, the display module is configured to display a notification message in response to that the display position of the first application and the display position of the target application are not on the same page, where the notification message is used to notify that the window of the first application and the window of the target application cannot be exchanged.
On the other hand, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor, so as to implement any one of the foregoing window display methods.
In another aspect, a computer-readable storage medium is provided, where at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement any of the above-mentioned window display methods.
In another aspect, a computer program or a computer program product is provided, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor to implement any one of the above window display methods.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
according to the technical scheme, the screen of the electronic equipment is divided into the multiple regions, the display position of the target application is determined based on the window display range and the multiple regions of the target application, the regions corresponding to the determined display position are unoccupied regions, the determined display position of the target application is accurate, windows of other applications cannot be shielded when the window of the target application is displayed at the display position of the target application, the display effect of the window of the target application is good, and better use experience is brought to a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a window display method according to an embodiment of the present application;
FIG. 2 is a flowchart of a window displaying method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a screen division of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a determination of the location of various regions provided by embodiments of the present application;
FIG. 5 is a schematic diagram illustrating a display position of a target application according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a window swap according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a window swap according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a window swap provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of a window switching apparatus according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a window display method provided in an embodiment of the present application, and as shown in fig. 1, the implementation environment includes: an electronic device 101.
The electronic device 101 may be at least one of a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a vehicle-mounted terminal, and a laptop computer. The electronic device 101 is configured to execute the window display method provided in the embodiment of the present application.
The electronic device 101 may be generally referred to as one of a plurality of electronic devices, and the embodiment is only illustrated by the electronic device 101. Those skilled in the art will appreciate that the number of electronic devices 101 described above may be greater or fewer. For example, the number of the electronic devices 101 may be only one, or the number of the electronic devices 101 may be tens or hundreds, or more, and the number of the electronic devices and the device types are not limited in the embodiment of the present application.
Based on the foregoing implementation environment, an embodiment of the present application provides a window display method, which may be executed by the electronic device 101 in fig. 1, taking a flowchart of the window display method provided in the embodiment of the present application shown in fig. 2 as an example. As shown in fig. 2, the method includes the following steps 201 to 205:
in step 201, screen division information indicating that a screen of an electronic device is divided into a target number of regions is acquired.
In a possible implementation manner, the electronic device is any electronic device with a screen, such as an electronic device like a smart phone, a tablet computer, and a vehicle-mounted terminal, and the type of the electronic device is not limited in the embodiment of the present application.
In one possible implementation manner, the screen splitting information is preset by the target user and stored in the electronic device, and the screen splitting information is used for splitting the screen of the electronic device into N rows and M columns, wherein N is an integer greater than or equal to 1, and M is an integer greater than or equal to 1. The electronic equipment acquires the screen segmentation information and segments the screen of the electronic equipment into a plurality of target areas based on the screen segmentation information. The target number is related to screen segmentation information of the electronic equipment, and is N M.
Illustratively, the screen division information is 4 × 6, that is, the screen of the electronic device is divided into 4 rows and 6 columns, and of course, the screen division information may also be in other forms, which is not limited in this embodiment of the present application. Fig. 3 is a schematic diagram illustrating a screen division of an electronic device according to an embodiment of the present disclosure. In fig. 3, the screen of the electronic device is divided into 4 rows and 6 columns, and 24 regions in total.
In step 202, the positions of the target number of regions are determined based on the screen size and screen segmentation information of the electronic device.
In a possible implementation manner, the screen size of the electronic device includes a height of a screen of the electronic device and a width of the screen, where the height of the screen of the electronic device and the width of the screen may be the number of pixels occupied by the height of the screen and the number of pixels occupied by the width of the screen, for example, the screen size of the electronic device is 1600 × 2400, the height of the screen of the electronic device is 1600, the width of the screen of the electronic device is 2400, that is, the number of pixels occupied by the height of the screen of the electronic device is 1600, and the number of pixels occupied by the width of the electronic device is 2400. Of course, the height of the screen of the electronic device and the width of the screen may also be distances, for example, the screen size of the electronic device is 4 × 6, the height of the screen of the electronic device is 4 centimeters, and the width of the screen is 6 centimeters.
In a possible implementation manner, the electronic device stores a screen size of the electronic device, the electronic device obtains the screen size of the electronic device by calling a setting application in the electronic device, and the position of each region is determined based on the screen size of the electronic device and the screen segmentation information in step 201.
Fig. 4 is a schematic diagram illustrating determination of positions of respective areas according to an embodiment of the present application, in fig. 4, a screen size of the electronic device is 1600 × 2400, screen division information of the electronic device is 4 × 6, and a position of each area in a screen of the electronic device is shown in table one below.
Watch 1
Figure BDA0002865803940000081
Figure BDA0002865803940000091
In the first table, the front numerals in the parentheses are numerals corresponding to the abscissa, and the rear numerals are numerals corresponding to the ordinate. The positions of the area 1 are (0, 0) to (400 ), the positions of the area 2 are (400, 0) to (800, 400), the positions of the area 3 are (800, 0) to (1200, 400), and the positions of the other areas are shown in the table one, which is not described herein again.
In the first table, the start position is the coordinate position of the upper left point of the area, and the end position is the coordinate position of the lower right point of the area. For example, the coordinates of the upper left corner of the area 14 in table one are (400,800), and the coordinates of the lower right corner are (800,1200), and the area 14 can be determined by these two coordinates.
In step 203, the window display range of the target application is determined based on the application identification of the target application.
The application identifier of the target application is an application name of the target application, or any other identifier that can represent the target application, which is not limited in this embodiment of the present application. The window display range is used for indicating the number of areas occupied by the window of the target application.
In one possible implementation manner, the format of the window display range of the target application is a × B, where a represents that the windows of the target application occupy a row a, B represents that the windows of the target application occupy a column B, and the number of the areas occupied by the windows of the target application is a × B. Of course, a may also represent that the window of the target application occupies column a, and B represents that the window of the target application occupies row B, and the number of areas occupied by the window of the target application is still a × B. Wherein A and B are integers of 1 or more.
In a possible implementation manner, the electronic device receives a window display request of a target user, where the window display request carries an application identifier of a target application. The electronic device stores the window display range of each application and the corresponding relation between the application identifier and the window display range of each application. As shown in the following table two, a list of correspondence between application identifiers and window display ranges of respective applications provided in the embodiments of the present application is provided.
Watch 2
Figure BDA0002865803940000092
Figure BDA0002865803940000101
In the above table two, when the application identifier is identifier 1, the corresponding window display range is 3 × 1, that is, the window of the application identified as identifier 1 occupies 3 rows and 1 columns, and the number of occupied areas is 3; when the application identifier is identifier 2, the display range of the corresponding window is 4 x 2, that is, the window of the application with the application identifier of identifier 2 occupies 4 rows and 2 columns, and the number of occupied areas is 8; when the application identifier is other, the corresponding window display range is as shown in table two above, which is not described herein again.
In a possible implementation manner, the electronic device analyzes the window display request to obtain an application identifier of the target application carried in the window display request, and determines a window display range of the target application in a corresponding relationship between the application identifier of each application and the window display range based on the application identifier of the target application. For example, the application identifier of the target application carried in the window display request is identifier 1, and based on the correspondence between the application identifier and the table two, it is determined that the window display range of the target application is 3 × 1, that is, the window of the target application occupies 3 rows and 1 columns and occupies 3 areas.
In a possible implementation manner, in response to that the window display range of each application and the corresponding relationship between the application identifier and the window display range of each application are not stored in the electronic device, when the window display range of each application and the corresponding relationship between the application identifier and the window display range of each application are stored in the server, after receiving a window display request, the electronic device generates an acquisition request based on the application identifier of a target application, where the acquisition request carries the application identifier of the target application, and is used for acquiring the window display range of the target application. The electronic equipment sends the acquisition request to the server, the server receives the acquisition request and analyzes the acquisition request to obtain the application identifier of the target application, the server determines the window display range of the target application in the corresponding relation between the application identifier of each application and the window display range based on the application identifier of the target application, and the server sends the window display range of the target application to the electronic equipment, namely the electronic equipment acquires the window display range of the target application. Therefore, the window display range of each application and the corresponding relation between the application identifier and the window display range of each application do not need to be stored in the electronic equipment, and the storage space of the electronic equipment can be saved.
It should be noted that, the correspondence between the application identifier of each application and the window display range stored in the server is consistent with the correspondence between the application identifier of each application and the window display range stored in the electronic device, and details are not repeated here.
It should be noted that the size of the window display range of each application is determined by the operator of each application, and the electronic device or the server simply obtains the window display range of each application from the operator of each application and stores the window display range of each application.
In step 204, the display position of the target application is determined based on the window display range of the target application and the positions of the target plurality of regions.
In one possible implementation, the area corresponding to the display position of the target application is an unoccupied area. Determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of regions comprises: traversing a plurality of target areas based on the window display range of the target application, and determining a target area corresponding to the target application; and determining the display position of the target application based on the target area and the positions of the target areas.
Illustratively, based on the window display range of the target application, traversing several target areas, and determining the target area corresponding to the target application, the process is as follows: traversing the target areas based on the window display range of the target application, determining the areas which are not added with the target marks and meet the window display range as the target areas corresponding to the target application, wherein the target marks are used for indicating that the areas are occupied. The traversal sequence is performed according to a preset traversal sequence, the traversal sequence is from top to bottom, and then from left to right, or other sequences, and the traversal sequence is not limited in the embodiment of the present application.
In a possible implementation manner, when the display position of the target application is determined based on the positions of the target area and the target number of areas, at least one area included in the target area is determined, and the position of the at least one area is determined based on the positions of the target number of areas, so that the position corresponding to the target area is determined, where the position is the display position of the target application.
Fig. 5 is a schematic diagram illustrating a display position of a target application according to an embodiment of the present application, where in fig. 5, a window display range of the target application is 3 × 1, a grid region is a display position of the target application, the grid region includes a region 4, a region 10, and a region 16, and the display positions of the target application are determined to be (1200, 0) to (1600, 1200) based on the positions of the region 4, the region 10, and the region 16, and the regions 4, 10, and 16.
In step 205, a window of the target application is displayed at a display position of the target application.
In one possible implementation, based on the display position of the target application determined in step 204, the window of the target application is displayed at the display position. That is, the window of the application identified by the application identifier 1 is displayed at the display positions (1200, 0) to (1600, 1200).
In a possible implementation manner, after the window of the target application is displayed at the display position of the target application, that means that the area corresponding to the display position of the target application is occupied, a target mark needs to be added to the area corresponding to the display position of the target application to prevent other applications from occupying the area corresponding to the display position of the target application. I.e. adding target marks to area 4, area 10 and area 16. The target mark may be any mark, which is not limited in the embodiments of the present application. Illustratively, the target mark adds a value to the zone, the value indicating that the zone is occupied.
In one possible implementation manner, after the window of the target application is displayed at the display position of the target application, the display position of the target application may be further adjusted, and the adjustment process is as follows: receiving a window exchange instruction, wherein the window exchange instruction carries an application identifier of a first application, and determining the display position of the first application based on the application identifier of the first application; the window of the first application and the window of the target application are swapped based on the display position of the first application and the display position of the target application.
In a possible implementation manner, after the electronic device determines the display position of each application, the electronic device stores the application identifier of each application and the correspondence between the display positions in the storage space, so as to obtain the display position of the application based on the application identifier later.
In one possible implementation, there are two cases in which the window of the first application and the window of the target application are swapped based on the display position of the first application and the display position of the target application.
Case one, the window of the first application and the window of the target application may be directly swapped.
In one possible implementation manner, in response to that the display position of the first application and the display position of the target application are on the same page, and the size of the display position of the first application and the size of the display position of the target application are consistent, it is determined that the window of the first application and the window of the target application can be directly exchanged. And exchanging the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application. That is, the window of the first application is moved to the display position of the target application, and the window of the target application is moved to the display position of the first application.
Fig. 6 is a schematic diagram of a window exchange provided in an embodiment of the present application, in the (1) diagram of fig. 6, the display position of the target application corresponds to regions 4, 10 and 16, the display position of the first application corresponds to regions 1, 7 and 13, since the display position of the target application and the display position of the first application are on the same page, and the size of the display position of the target application and the size of the display position of the first application are consistent, the window of the first application is directly moved to the display position of the target application, and the window of the target application is moved to the display position of the first application, so as to obtain diagram (2) of fig. 6, that is, after the swapping, the areas corresponding to the display positions of the target application are area 1, area 7 and area 13, and the areas corresponding to the display positions of the first application are area 4, area 10 and area 16.
Case two, the window of the first application and the window of the target application may not be directly swapped.
In one possible implementation, it is determined that the window of the first application and the window of the target application cannot be directly swapped in response to the display position of the first application and the display position of the target application being on the same page and the size of the display position of the first application and the size of the display position of the target application not being consistent.
In one possible implementation manner, when the size of the display position of the first application is smaller than the size of the display position of the target application, the size of the display position of the first application is adjusted to obtain the size of the adjusted display position of the first application, and the size of the adjusted display position of the first application is consistent with the size of the display position of the target application. And exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
Illustratively, swapping the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application includes: and in response to the first application adjusted display position and the target application display position not overlapping and the first application adjusted display position and other application display positions not overlapping, exchanging the window of the first application and the window of the target application based on the first application adjusted display position and the target application display position.
Fig. 7 is a schematic diagram of another window exchange provided in the embodiment of the present application, in a diagram (1) of fig. 7, a window of a target application and a window of a first application are displayed, where a display position of the target application includes a region 4, a region 5, a region 10, a region 11, a region 16, and a region 17, and a display position of the first application includes a region 1, a region 7, and a region 13. Since the size of the display position of the first application is smaller than that of the display position of the target application, the size of the display position of the first application is adjusted to obtain the size of the adjusted display position of the first application, and the adjusted display position includes a region 1, a region 2, a region 7, a region 8, a region 13, and a region 14, that is, a diagram (2) in fig. 7, a window of the first application is moved to the display position of the target application, and a window of the target application is moved to the adjusted display position of the first application, that is, a diagram (3) in fig. 7, so that window exchange between the first application and the target application can be completed.
In one possible implementation manner, in response to that the display position of the first application after adjustment and the display position of the second application are overlapped, the window of the second application is moved to obtain the display position of the second application after adjustment, and the display position of the second application after adjustment and the display position of the first application after adjustment are not overlapped; and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
Fig. 8 is a schematic diagram illustrating another window exchange provided in the embodiment of the present application, in which fig. 8(1) shows a window of a target application, a window of a first application, and a window of a second application, where display positions of the target application include an area 4, an area 5, an area 10, an area 11, an area 16, and an area 17; the display position of the first application includes area 1, area 7, and area 13; the display position of the second application includes area 2, area 8, and area 14. Since the adjusted display position of the first application overlaps with the display position of the second application, the window of the second application is moved to obtain the adjusted display position of the second application, as shown in (2) of fig. 8, that is, the adjusted display position of the second application is region 3, region 9, and region 15, at this time, the adjusted display position of the first application does not overlap with the adjusted display position of the second application, the window of the first application is moved to the display position of the target application, and the window of the target application is moved to the adjusted display position of the first application, that is, the adjusted display position of the first application is shown in (3) of fig. 8, so that the window exchange between the first application and the target application can be completed.
In one possible implementation, in response to that the display position of the first application and the display position of the target application are not on the same page, it is indicated that the window of the first application and the window of the target application cannot be swapped, and therefore, a notification message for notifying that the window of the first application and the window of the target application cannot be swapped is displayed. The content of the notification message may be "the display position of the first application and the display position of the target application are not on the same page, and therefore cannot be exchanged", or the content of the notification message may be other, which is not limited in this embodiment of the present application.
In one possible implementation manner, in response to the existence of a third application (such as wallpaper of the electronic device) needing full-screen display in the electronic device, the electronic device binds an application identifier of the third application and an application identifier of the target application, in response to receiving a display request of the third application, displays a window of the third application in full-screen mode, and displays the window of the target application in a stacking mode at a fixed position below the window of the third application, wherein the fixed position is a display position of the target application. When exiting the third application, the window of the target application is displayed uppermost.
According to the method, the screen of the electronic equipment is divided into the plurality of areas, the display position of the target application is determined based on the window display range and the plurality of areas of the target application, the area corresponding to the determined display position is an unoccupied area, so that the determined display position of the target application is accurate, the window of the target application is displayed at the display position of the target application without being shielded by the windows of other applications, the display effect of the window of the target application is better, and better use experience is provided for a user.
Fig. 9 is a schematic structural diagram of a window display device according to an embodiment of the present application, and as shown in fig. 9, the window display device includes:
an obtaining module 901, configured to obtain screen segmentation information, where the screen segmentation information is used to indicate that a screen of the electronic device is segmented into a plurality of target regions;
a determining module 902, configured to determine positions of the plurality of target regions based on the screen size of the electronic device and the screen segmentation information;
the determining module 902 is further configured to determine, based on the application identifier of the target application, a window display range of the target application, where the window display range is used to indicate the number of areas occupied by the window of the target application;
The determining module 902 is further configured to determine the display position of the target application based on the window display range of the target application and the positions of the plurality of target areas, where an area corresponding to the display position of the target application is an unoccupied area;
and a display module 903, configured to display the window of the target application at the display position of the target application.
In a possible implementation manner, the determining module 902 is configured to traverse the plurality of target regions based on the window display range of the target application, and determine a target region corresponding to the target application;
and determining the display position of the target application based on the target area and the positions of the target areas.
In a possible implementation manner, the determining module 902 is configured to traverse the target number of regions based on the window display range of the target application, and determine a region that is not added with a target mark and satisfies the window display range as a target region corresponding to the target application, where the target mark is used to indicate that the region is occupied.
In one possible implementation, the apparatus further includes:
the receiving module is used for receiving a window exchange instruction, and the window exchange instruction carries an application identifier of a first application;
The determining module 902 is configured to determine a display position of the first application based on the application identifier of the first application;
the device also includes:
and the exchange module is used for exchanging the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
In a possible implementation manner, the swapping module is configured to swap the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application in response to that the display position of the first application and the display position of the target application are on the same page and that a size of the display position of the first application and a size of the display position of the target application are consistent.
In a possible implementation manner, the swapping module is configured to adjust the display position of the first application to obtain an adjusted display position of the first application in response to that the display position of the first application and the display position of the target application are on the same page and the size of the display position of the first application is smaller than the size of the display position of the target application, where the size of the adjusted display position of the first application is consistent with the size of the display position of the target application;
And exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In one possible implementation manner, the swapping module is configured to swap the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application in response to that there is no overlap between the adjusted display position of the first application and the display position of the target application and there is no overlap between the adjusted display position of the first application and the display positions of other applications;
responding to the display position of the first application after adjustment and the display position of the second application to overlap, moving the window of the second application to obtain the display position of the second application after adjustment, wherein the display position of the second application after adjustment and the display position of the first application after adjustment do not overlap; and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
In a possible implementation manner, the display module 903 is configured to display a notification message in response to that the display position of the first application and the display position of the target application are not on the same page, where the notification message is used to notify that the window of the first application and the window of the target application cannot be exchanged.
The device divides the screen of the electronic equipment into a plurality of areas, determines the display position of the target application based on the window display range and the areas of the target application, and the areas corresponding to the determined display position are unoccupied areas, so that the determined display position of the target application is accurate, and the windows of other applications cannot be shielded when the window of the target application is displayed at the display position of the target application, so that the display effect of the window of the target application is better, and better use experience is provided for a user.
It should be understood that, when the apparatus provided in fig. 9 implements its functions, it is only illustrated by the division of the functional modules, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, which are not described herein again.
Fig. 10 shows a block diagram of an electronic device 1000 according to an exemplary embodiment of the present application. The electronic device 1000 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The electronic device 1000 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, the electronic device 1000 includes: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement a window display method provided by method embodiments herein.
In some embodiments, the electronic device 1000 may further include: a peripheral interface 1003 and at least one peripheral. The processor 1001, memory 1002 and peripheral interface 1003 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, display screen 1005, camera assembly 1006, audio circuitry 1007, positioning assembly 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to capture touch signals on or over the surface of the display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this point, the display screen 1005 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 1005 may be one, disposed on the front panel of the electronic device 1000; in other embodiments, the display screens 1005 may be at least two, respectively disposed on different surfaces of the electronic device 1000 or in a folded design; in other embodiments, the display 1005 may be a flexible display, disposed on a curved surface or on a folded surface of the electronic device 1000. Even more, the display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the electronic device 1000. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1007 may also include a headphone jack.
The positioning component 1008 is used to locate a current geographic Location of the electronic device 1000 to implement navigation or LBS (Location Based Service). The Positioning component 1008 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1009 is used to supply power to various components in the electronic device 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1000 also includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic apparatus 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the electronic device 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the electronic device 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1013 may be disposed on a side bezel of the electronic device 1000 and/or on a lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on a side frame of the electronic device 1000, a user's holding signal of the electronic device 1000 can be detected, and the processor 1001 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed at a lower layer of the display screen 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1005. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the user according to the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1014 may be disposed on the front, back, or side of the electronic device 1000. When a physical button or vendor Logo is provided on the electronic device 1000, the fingerprint sensor 1014 may be integrated with the physical button or vendor Logo.
Optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
A proximity sensor 1016, also known as a distance sensor, is typically disposed on the front panel of the electronic device 1000. The proximity sensor 1016 is used to capture the distance between the user and the front of the electronic device 1000. In one embodiment, the processor 1001 controls the display screen 1005 to switch from the bright screen state to the dark screen state when the proximity sensor 1016 detects that the distance between the user and the front surface of the electronic device 1000 gradually decreases; when the proximity sensor 1016 detects that the distance between the user and the front of the electronic device 1000 gradually becomes larger, the display screen 1005 is controlled by the processor 1001 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 10 is not limiting of the electronic device 1000 and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, there is also provided a computer readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement any of the above-described window display methods.
Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program or a computer program product having at least one computer instruction stored therein, the at least one computer instruction being loaded and executed by a processor to implement any of the above-described window display methods.
It should be understood that reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A window display method is applied to electronic equipment, and the method comprises the following steps:
acquiring screen segmentation information, wherein the screen segmentation information is used for indicating that a screen of the electronic equipment is segmented into a plurality of target areas;
determining the positions of the target plurality of areas based on the screen size of the electronic equipment and the screen segmentation information;
determining a window display range of a target application based on an application identifier of the target application, wherein the window display range is used for indicating the number of areas occupied by a window of the target application;
determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of areas, wherein the area corresponding to the display position of the target application is an unoccupied area;
displaying a window of the target application at a display position of the target application;
Responding to the fact that a third application needing full-screen display exists in the electronic equipment, the electronic equipment binds an application identifier of the third application and an application identifier of the target application, responding to the fact that a display request of the third application is received, displaying a window of the third application in a full-screen mode, and displaying the window of the target application in a stacking mode at a fixed position below the window of the third application, wherein the fixed position is a display position of the target application.
2. The method according to claim 1, wherein the determining the display position of the target application based on the window display range of the target application and the positions of the target plurality of regions comprises:
traversing the target areas based on the window display range of the target application, and determining the target area corresponding to the target application;
determining a display position of the target application based on the target area and the positions of the target plurality of areas.
3. The method of claim 2, wherein traversing the target number of regions based on the window display range of the target application to determine the target region corresponding to the target application comprises:
Traversing the target number of regions based on the window display range of the target application, and determining the region which is not added with the target mark and meets the window display range as the target region corresponding to the target application, wherein the target mark is used for indicating that the region is occupied.
4. The method according to any one of claims 1 to 3, wherein after displaying the window of the target application at the display position of the target application, the method further comprises:
receiving a window exchange instruction, wherein the window exchange instruction carries an application identifier of a first application;
determining a display position of the first application based on the application identification of the first application;
swapping the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
5. The method of claim 4, wherein the swapping the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application comprises:
and in response to that the display position of the first application and the display position of the target application are on the same page and the size of the display position of the first application and the size of the display position of the target application are consistent, exchanging the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application.
6. The method of claim 4, wherein swapping the window of the first application and the window of the target application based on the display position of the first application and the display position of the target application comprises:
responding to the situation that the display position of the first application and the display position of the target application are on the same page, and the size of the display position of the first application is smaller than that of the display position of the target application, adjusting the display position of the first application to obtain the adjusted display position of the first application, wherein the size of the adjusted display position of the first application is consistent with that of the display position of the target application;
and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
7. The method of claim 6, wherein swapping the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application comprises:
in response to that the adjusted display position of the first application and the display position of the target application do not overlap and the adjusted display position of the first application and the display positions of other applications do not overlap, swapping a window of the first application and a window of the target application based on the adjusted display position of the first application and the display position of the target application;
Responding to the display position of the first application after adjustment and the display position of a second application to overlap, moving a window of the second application to obtain the display position of the second application after adjustment, wherein the display position of the second application after adjustment and the display position of the first application after adjustment do not overlap; and exchanging the window of the first application and the window of the target application based on the adjusted display position of the first application and the display position of the target application.
8. The method of claim 4, further comprising:
and in response to the display position of the first application and the display position of the target application not being in the same page, displaying a notification message for notifying that the window of the first application and the window of the target application cannot be exchanged.
9. A window display apparatus, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring screen segmentation information which is used for indicating that a screen of the electronic equipment is segmented into a plurality of target areas;
a determining module, configured to determine positions of the plurality of target regions based on a screen size of the electronic device and the screen segmentation information;
The determining module is further configured to determine a window display range of a target application based on an application identifier of the target application, where the window display range is used to indicate the number of areas occupied by a window of the target application;
the determining module is further configured to determine a display position of the target application based on the window display range of the target application and the positions of the plurality of target regions, where a region corresponding to the display position of the target application is an unoccupied region;
the display module is used for displaying the window of the target application at the display position of the target application;
the display module is further configured to respond to that a third application needing full-screen display exists in the electronic device, bind an application identifier of the third application and an application identifier of the target application, respond to a received display request of the third application, display a window of the third application in a full-screen manner, and display the window of the target application in a stacked manner at a fixed position below the window of the third application, where the fixed position is a display position of the target application.
10. An electronic device, comprising a processor and a memory, wherein at least one program code is stored in the memory, and wherein the at least one program code is loaded and executed by the processor to implement the window display method according to any one of claims 1 to 8.
11. A computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement the window display method of any one of claims 1 to 8.
CN202011580207.2A 2020-12-28 2020-12-28 Window display method, device, equipment and computer readable storage medium Active CN112612405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011580207.2A CN112612405B (en) 2020-12-28 2020-12-28 Window display method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011580207.2A CN112612405B (en) 2020-12-28 2020-12-28 Window display method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112612405A CN112612405A (en) 2021-04-06
CN112612405B true CN112612405B (en) 2022-05-24

Family

ID=75248279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011580207.2A Active CN112612405B (en) 2020-12-28 2020-12-28 Window display method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112612405B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114741016B (en) * 2022-05-19 2022-09-16 京东方科技集团股份有限公司 Operation method, device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128192A (en) * 1995-10-26 1997-05-16 Brother Ind Ltd Multi-screen display controller
CN102955647A (en) * 2011-08-22 2013-03-06 联想(北京)有限公司 Display method and display device
CN104571826A (en) * 2015-01-26 2015-04-29 香港应用科技研究院有限公司 Method, device and system for managing multiple windows on screens of multiple users
CN109165075A (en) * 2018-10-11 2019-01-08 Oppo广东移动通信有限公司 Application display method, device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2662761B1 (en) * 2012-05-11 2020-07-01 Samsung Electronics Co., Ltd Multiple display window providing apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128192A (en) * 1995-10-26 1997-05-16 Brother Ind Ltd Multi-screen display controller
CN102955647A (en) * 2011-08-22 2013-03-06 联想(北京)有限公司 Display method and display device
CN104571826A (en) * 2015-01-26 2015-04-29 香港应用科技研究院有限公司 Method, device and system for managing multiple windows on screens of multiple users
CN109165075A (en) * 2018-10-11 2019-01-08 Oppo广东移动通信有限公司 Application display method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112612405A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN108449641B (en) Method, device, computer equipment and storage medium for playing media stream
CN110308956B (en) Application interface display method and device and mobile terminal
CN109862412B (en) Method and device for video co-shooting and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN111708479B (en) Touch operation response method and device, terminal and storage medium
CN112230908A (en) Method and device for aligning components, electronic equipment and storage medium
CN110941375A (en) Method and device for locally amplifying image and storage medium
CN112565806A (en) Virtual gift presenting method, device, computer equipment and medium
CN111385525B (en) Video monitoring method, device, terminal and system
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN109783176B (en) Page switching method and device
CN112396076A (en) License plate image generation method and device and computer storage medium
CN112825040A (en) User interface display method, device, equipment and storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN110992268B (en) Background setting method, device, terminal and storage medium
CN111158575B (en) Method, device and equipment for terminal to execute processing and storage medium
CN112612405B (en) Window display method, device, equipment and computer readable storage medium
CN114594885A (en) Application icon management method, device and equipment and computer readable storage medium
CN111369434B (en) Method, device, equipment and storage medium for generating spliced video covers
CN108881715B (en) Starting method and device of shooting mode, terminal and storage medium
CN112202966B (en) Communication information notification method and device and computer readable storage medium
CN111163262B (en) Method, device and system for controlling mobile terminal
CN113052408B (en) Method and device for community aggregation
CN109725820B (en) Method and device for acquiring list items
CN110134393B (en) Method and device for processing operation signal

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