CN108089902B - The detection method of split screen display available state calculates equipment and computer storage medium - Google Patents

The detection method of split screen display available state calculates equipment and computer storage medium Download PDF

Info

Publication number
CN108089902B
CN108089902B CN201711321598.4A CN201711321598A CN108089902B CN 108089902 B CN108089902 B CN 108089902B CN 201711321598 A CN201711321598 A CN 201711321598A CN 108089902 B CN108089902 B CN 108089902B
Authority
CN
China
Prior art keywords
current goal
application widget
goal application
split screen
preset threshold
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
CN201711321598.4A
Other languages
Chinese (zh)
Other versions
CN108089902A (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201711321598.4A priority Critical patent/CN108089902B/en
Publication of CN108089902A publication Critical patent/CN108089902A/en
Application granted granted Critical
Publication of CN108089902B publication Critical patent/CN108089902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of detection method of split screen display available state, calculate equipment and computer storage medium, wherein method includes:Determine whether current goal application widget is in split screen state;If so, determining position of the current goal application widget in terminal screen according to the coordinate of current goal application widget;Using self-defined call back function, current goal application widget is in the position of split screen state and the current goal application widget in terminal screen and is notified as readjustment value to target application.Using this programme, the position that target application window is located in screen can be specifically determined;And, split screen state convenient for target application according to target application and the location information in terminal screen, corresponding adjustment is made to Show Styles, the function etc. of target application, to meet the demand with different Show Styles or function when target application is in different split screen positions, to improve user experience.

Description

The detection method of split screen display available state calculates equipment and computer storage medium
Technical field
The present invention relates to terminal field of display technology, and in particular to a kind of detection method of split screen display available state is calculated and set Standby and computer storage medium.
Background technique
With the continuous development of science and technology, terminal device is from the display mode for only supporting single application window, gradually It is evolved into the display mode that can be supported multiple application widgets in screen in the form of split screen while show.For example, in same terminal It, can be in upper split screen display available video playback window, in lower split screen display available e-book reading window in screen;Alternatively, in transverse screen state Under, at left split screen display available short message receiving-transmitting interface, in right split screen display available web page browsing interface.
The efficiency that user handles task greatly improved in the generation of split screen display mode in terminal device, for example, user Video and transmitting-receiving short message can be watched simultaneously in same terminal screen, to improve user experience, and then by users Favor.
However, supporting the application in the terminal device of split screen at present, it can not know that it is located at end panel under split screen state Specific location in curtain, it is even more impossible to according to applying the location information in terminal screen to make corresponding adjustment, so as to cause answering Occur to show when being located at the different location in terminal screen under split screen state or function etc. is not adapted to, is greatly reduced User experience.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind It states the detection method of the split screen display available state of problem, calculate equipment and computer storage medium.
According to an aspect of the invention, there is provided a kind of detection method of split screen display available state, including:
Determine whether current goal application widget is in split screen state;
If so, determining the current goal application widget in terminal screen according to the coordinate of current goal application widget Position;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application Position of the window in terminal screen is notified as readjustment value to target application.
According to another aspect of the present invention, provide a kind of calculating equipment, the calculating equipment be used for, wherein Calculating equipment includes:Processor, memory, communication interface and communication bus, the processor, the memory and the communication Interface completes mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor Operation:
Determine whether current goal application widget is in split screen state;
If so, determining the current goal application widget in terminal screen according to the coordinate of current goal application widget Position;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application Position of the window in terminal screen is notified as readjustment value to target application.
According to a further aspect of the invention, a kind of computer storage medium is provided, in the computer storage medium It is stored with an at least executable instruction, for making processor execute following operation the executable instruction:
Determine whether current goal application widget is in split screen state;
If so, determining the current goal application widget in terminal screen according to the coordinate of current goal application widget Position;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application Position of the window in terminal screen is notified as readjustment value to target application.
The detection method of the split screen display available state provided according to the present invention calculates equipment and computer storage medium, first Determine whether current goal application widget is in split screen state;If so, determining institute according to the coordinate of current goal application widget State position of the current goal application widget in terminal screen;Self-defined call back function is finally utilized, by current goal application window Mouth is notified as readjustment value to target in the position of split screen state and the current goal application widget in terminal screen Using.Using this programme, the position that target application window is located in screen can be specifically determined;Also, it is convenient for target application root Split screen state according to target application and the location information in terminal screen make Show Styles, the function etc. of target application Corresponding adjustment, to meet the need with different Show Styles or function when target application is in different split screen positions It asks, and then improves user experience;Also, screen provided by the invention shows that the detection method of state is simple and easy, easy to implement, just The split screen state for rapidly knowing target application in target application and the location information in terminal screen.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the process signal of the detection method of the split screen display available state provided according to an embodiment of the present invention Figure;
Fig. 2 a shows a kind of terminal screen schematic diagram of split screen display available state of the present invention;
Fig. 2 b shows the terminal screen schematic diagram of another split screen display available state of the invention;
Fig. 3 shows the process signal of the detection method of the split screen display available state provided according to a further embodiment of the invention Figure;
Fig. 4 shows the process signal of the detection method for the split screen display available state that another embodiment provides according to the present invention Figure;
Fig. 5 shows the process signal of the detection method for the split screen display available state that further embodiment provides according to the present invention Figure;
Fig. 6 shows a kind of structural schematic diagram of the calculating equipment provided according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the process signal of the detection method of the split screen display available state provided according to an embodiment of the present invention Figure.As shown in Figure 1, this method includes:
Step S110, determines whether current goal application widget is in split screen state, if so, thening follow the steps S120;It is no Then, this method terminates.
Wherein, target application can be one, or multiple.When target application is multiple, determine respectively current Whether each target application window is in split screen state.The present invention is not construed as limiting the type etc. of target application, target application tool Body is to have the application for knowing demand to split screen state and split screen position.
Specifically, those skilled in the art can determine whether current goal application widget is in point according to practical business situation Screen state, for example, in 7.0 system above of Android, it can be by monitoring call back function onMultiWindowModeChanged's Return value, determines whether current goal application widget is in split screen state.If it is determined that current goal application widget is in split screen shape State thens follow the steps S120;If it is determined that current goal application widget is not in split screen state, then this method terminates.
Step S120 determines current goal application widget in terminal screen according to the coordinate of current goal application widget Position.
Specifically, the coordinate of current goal application widget is obtained, the coordinate according to the current goal application widget of acquisition is true Position of the settled preceding target application window in terminal screen.
Optionally, the coordinate of target application window can be the coordinate of preset in target application window, default by this The coordinate of point determines position of the current goal application widget in terminal screen.For example, as shown in Figure 2 a, when application 1 is target In application, the coordinate using top left side vertex in 1 can be obtained, since the vertex and terminal screen distance from top are equal to status bar Height (be less than preset height threshold value), it is determined that using 1 terminal screen upper split screen.Similarly, as shown in Figure 2 b, it can obtain Using the coordinate on top left side vertex in 1, and further determine that the position using 1 in screen.
Optionally, the coordinate of target application window can be the coordinate that side is preset in target application window, be preset by this The coordinate on side determines position of the current goal application widget in terminal screen.For example, being preset when application 1 is target application Side can be to apply 1 top edge in Fig. 2 a, according to the top edge, coordinate can determine the position using 1 in screen.
Current goal application widget is in split screen state and current mesh using self-defined call back function by step S130 Position of the application widget in terminal screen is marked to notify as readjustment value to target application.
Specifically, self-defined call back function can be set in the present embodiment, and the current goal determined according to step S110 is answered With the current goal application widget that window is in the information of split screen state and is determined according to step S120 in terminal screen Location information is notified in the form of adjusting back value to target application.Wherein, self-defined call back function can be one in this step, then There are two readjustment values for call back function tool, and one is the information that current goal application widget is in split screen state, secondly being current Location information of the target application window in terminal screen.
The detection method of the split screen display available state provided according to the present invention, it is first determined whether current goal application widget is located In split screen state;If so, determining the current goal application widget in end panel according to the coordinate of current goal application widget Position in curtain;Finally utilize self-defined call back function, by current goal application widget be in split screen state and it is described currently Position of the target application window in terminal screen is notified as readjustment value to target application.It, can specifically really using this programme The application widget that sets the goal is located at the position in screen;Also, convenient for target application according to the split screen state of target application and at end The location information in screen is held, corresponding adjustment is made to Show Styles, the function etc. of target application, to meet target application Demand with different Show Styles or function when in different split screen positions, and then improve user experience;Also, this hair The detection method of the split screen display available state of bright offer is simple and easy, easy to implement, rapidly knows that target is answered convenient for target application Split screen state and the location information in terminal screen.
Fig. 3 shows the process signal of the detection method of the split screen display available state provided according to a further embodiment of the invention Figure.As shown in figure 3, this method includes:
Step S310, the readjustment value of preset monitored system call back function are true according to the readjustment value of predetermined system call back function Whether settled preceding target application window is in split screen state, if so, thening follow the steps S320;Otherwise, this method terminates.
Wherein, corresponding system call back function is provided in many terminal systems, when entering or exit span mode When, the system call back function can be executed, is answered so that current goal can be quickly determined according to the readjustment value of the system call back function Split screen state whether is in window.It optionally, can be pre- by the monitoring after listening to the readjustment value of predetermined system call back function If the readjustment value of system call back function is transferred to self-defined call back function.
It for example, include onMultiWindowModeChanged system readjustment in 7.0 system above of Android Function executes onMultiWindowModeChanged system call back function, and adjusted back when system enters span mode Value.Wherein, readjustment value T indicates to be in split screen state, and readjustment value F expression is not in split screen state.Therefore, start in target application After operation, the readjustment value by monitoring onMultiWindowModeChanged call back function can quickly determine current goal Whether application widget is in split screen state.
If it is determined that current goal application widget is in split screen state, S320 is thened follow the steps;If it is determined that current goal application Window is not in split screen state, then this method terminates.
The ordinate of orthogonal axes of the top edge of current goal application widget is compared by step S320 with the first preset threshold, Or be compared the ordinate of orthogonal axes of the left edge of current goal application widget with the second preset threshold, it is true according to comparison result Position of the settled preceding target application window in terminal screen.
Specifically, in one embodiment (i.e. embodiment one), by the vertical of the top edge of current goal application widget Axial coordinate is compared with the first preset threshold, if the ordinate of orthogonal axes is less than or equal to the first preset threshold, it is determined that current mesh Application widget is marked in the upper split screen of terminal screen;If ordinate of orthogonal axes is greater than the first preset threshold, it is determined that current goal application window Lower split screen of the mouth in terminal screen.Optionally, the first preset threshold is the presupposition multiple of status bar height, for example, first is default Threshold value can be 2 times or 1.5 times etc. of status bar height.For example, as shown in Figure 2 a, screen is in vertical screen state, coordinate The top of screen left end vertex when origin is terminal screen vertical screen display, width direction when horizontal axis is terminal screen vertical screen display are indulged Short transverse when axis is terminal screen vertical screen display.Target application is using 1, and presetting side is using 1 top edge L1.If first is pre- If threshold value is 2 times of status bar height, wherein status bar height is 50, then the first preset threshold is 100, when the longitudinal axis of L1 is sat Be designated as 60, i.e., less than the first preset threshold when, it is determined that upper split screen of the current goal application widget in terminal screen.
(embodiment two) in another embodiment, by the ordinate of orthogonal axes of the left edge of current goal application widget with Second preset threshold is compared, if ordinate of orthogonal axes is less than or equal to the second preset threshold, it is determined that current goal application widget In the left split screen of terminal screen;If ordinate of orthogonal axes is greater than the second preset threshold, it is determined that current goal application widget is in end panel The right split screen of curtain.For example, as shown in Figure 2 b, screen is in transverse screen state, when coordinate origin is terminal screen vertical screen display The top of screen left end vertex, width direction when horizontal axis is terminal screen vertical screen display are high when the longitudinal axis is terminal screen vertical screen display Spend direction.Target application is using 1, and presetting side is using 1 left edge L2.If the second preset threshold is 60, when the longitudinal axis of L2 is sat It is designated as 0, i.e., less than the second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen.
Optionally, can predefine terminal screen is vertical screen display mode or transverse screen display mode.When determining terminal screen When for vertical screen display mode, can be used above embodiment one determine target application be in terminal screen upper split screen or lower point Screen;When determining terminal screen is transverse screen display mode, above embodiment two can be used and determine that target application is in end panel The left split screen or right split screen of curtain.
Current goal application widget is in split screen state and current mesh using self-defined call back function by step S330 Position of the application widget in terminal screen is marked to notify as readjustment value to target application.
Specifically, settable self-defined call back function (is such as arranged in the present embodiment OnCustomMultiWindowChanged), the current goal application widget determined according to step S310 is in split screen state Information and location information of the current goal application widget in terminal screen that is determined according to step S320 to adjust back value Form is notified to target application.Wherein, self-defined call back function can be one in this step, then there are two call back function tools Readjustment value, one are the information that current goal application widget is in split screen state, secondly being current goal application widget in terminal Location information in screen.
The detection method of the split screen display available state provided according to the present invention passes through the readjustment of preset monitored system call back function Value, determines whether current goal application widget is in split screen state according to the readjustment value of predetermined system call back function, so as to fast Determine whether target application window is in split screen state fastly;And further by the vertical of the top edge of current goal application widget Axial coordinate is compared with the first preset threshold, or the ordinate of orthogonal axes of the left edge of current goal application widget is pre- with second If threshold value is compared, position of the current goal application widget in terminal screen is determined, so as to accurately know target application Specific location of the window in terminal screen;Finally, current goal application widget is in split screen state and the current mesh It marks position of the application widget in terminal screen to notify as readjustment value to target application, consequently facilitating target application is according to target The split screen state of application and the location information in terminal screen make accordingly Show Styles, the function etc. of target application Adjustment, to meet the demand with different Show Styles or function when target application is in different split screen positions, in turn Improve user experience;Also, screen provided by the invention shows that the detection method of state is simple and easy, easy to implement, is convenient for target Using the split screen state and the location information in terminal screen for rapidly knowing target application.
Fig. 4 shows the process signal of the detection method for the split screen display available state that another embodiment provides according to the present invention Figure.As shown in figure 4, this method includes:
Step S410 monitors the acquisition focus event of current goal application widget;When listening to current goal application widget Acquisition focus event occur when, call predetermined system function return value, current goal application widget is determined according to return value Whether split screen state is in.If so, thening follow the steps S420, otherwise, this method terminates.
Before the starting of target application window, if having been set to span mode in system, after target application starting just Split screen state is presented, but in the case where the starting, that is, split screen, the predetermined system function as described in step S310 is not carried out. Can then be monitored in the present embodiment current goal application widget acquisition focus event (as shown in Figure 2 a, when click apply 1 window, Selected state is presented using 1 window, then occurs using the acquisition focus event of 1 window);When listening to current goal application widget Acquisition focus event occur when, call predetermined system function return value, current goal application widget is determined according to return value Whether split screen state is in.
For example, can OnWindowFocusChanged function in monitoring system, when listening to When OnWindowFocusChanged function executes and (shows that the acquisition focus event of current goal application widget occurs), call IsInMultiWindowMode function determines whether current goal application widget is in split screen state according to return value.If so, S420 is thened follow the steps, otherwise, this method terminates.
The ordinate of orthogonal axes of the top edge of current goal application widget is compared by step S420 with the first preset threshold, Or be compared the ordinate of orthogonal axes of the left edge of current goal application widget with the second preset threshold, it is true according to comparison result Position of the settled preceding target application window in terminal screen.
Wherein it is determined that the specific implementation method of position of the current goal application widget in terminal screen can refer to such as Fig. 3 Elaboration in illustrated embodiment in step S320, this will not be repeated here.
Current goal application widget is in split screen state and described worked as using self-defined call back function by step S430 Position of the preceding target application window in terminal screen is notified as readjustment value to target application.
The detection method of the split screen display available state provided according to the present invention, by the acquisition for monitoring current goal application widget Focus event;When the acquisition focus event for listening to current goal application widget occurs, the return of predetermined system function is called Value, determines whether current goal application widget is in split screen state according to return value, thus when target application starting is split screen Know the split screen state of target application;And it is further that the ordinate of orthogonal axes of the top edge of current goal application widget is pre- with first If threshold value is compared, or the ordinate of orthogonal axes of the left edge of current goal application widget and the second preset threshold are compared Compared with position of the current goal application widget in terminal screen being determined, so as to accurately know target application window in end panel Specific location in curtain;Finally, current goal application widget is in split screen state and the current goal application widget exists Position in terminal screen is notified as readjustment value to target application, consequently facilitating split screen shape of the target application according to target application State and the location information in terminal screen make corresponding adjustment to Show Styles, the function etc. of target application, to meet Demand with different Show Styles or function when target application is in different split screen positions, and then improve user experience; Also, screen provided by the invention shows that the detection method of state is simple and easy, easy to implement, rapidly knows convenient for target application The split screen state of target application and the location information in terminal screen.
Fig. 5 shows the process signal of the detection method for the split screen display available state that further embodiment provides according to the present invention Figure.As shown in figure 5, this method includes:
Step S510 monitors the layout change event of current goal application widget;When listening to current goal application widget Layout change event occur when, obtain current goal application widget window area;By the window side of preceding target application window Product is compared with the interfacial area of terminal screen, determines whether current goal application widget is in split screen shape according to comparison result State, if so, thening follow the steps S520;Otherwise, this method terminates.
When not including that would know that whether target application is in the system call back function of split screen state in system, due to working as When target application is in split screen state, the layout of window can occur to change accordingly, then current goal can be monitored in this step The layout change event of application widget, when the layout change event for listening to current goal application widget occurs, according to target The window area of application widget judges whether target application window is in split screen state.
Specifically, judging whether target application window is in split screen state according to the window area of target application window When, the window area of current goal application widget is obtained first, by the window area of preceding target application window and terminal screen Interfacial area is compared, and determines whether current goal application widget is in split screen state according to comparison result.
For example, listener can be added in the activity component of target application, occurred when target application is laid out When variation, OnGlobalLayout function can be adjusted back, then the window area of current goal application widget is further obtained, if currently When area accounts for 2/3rds of the interfacial area of terminal screen, it is determined that be in split screen state, and can further determine that the split screen State is three/2 panes mode.
The ordinate of orthogonal axes of the top edge of current goal application widget is compared by step S520 with the first preset threshold, Or be compared the ordinate of orthogonal axes of the left edge of current goal application widget with the second preset threshold, it is true according to comparison result Position of the settled preceding target application window in terminal screen.
Wherein it is determined that the specific implementation method of position of the current goal application widget in terminal screen can refer to such as Fig. 3 Elaboration in illustrated embodiment in step S320, this will not be repeated here.
Current goal application widget is in split screen state and current mesh using self-defined call back function by step S530 Position of the application widget in terminal screen is marked to notify as readjustment value to target application.
The detection method of the split screen display available state provided according to the present invention, by the layout for monitoring current goal application widget Change events;When the layout change event for listening to current goal application widget occurs, current goal application widget is obtained Window area;The window area of preceding target application window is compared with the interfacial area of terminal screen, according to comparison result Determine whether current goal application widget is in split screen state, so as in systems not comprising would know that whether target application is located When the system call back function of split screen state, the split screen state of target application is known;By the top edge of current goal application widget Ordinate of orthogonal axes be compared with the first preset threshold, or by the ordinate of orthogonal axes of the left edge of current goal application widget and the Two preset thresholds are compared, and position of the current goal application widget in terminal screen are determined, so as to accurately know target Specific location of the application widget in terminal screen;Finally, current goal application widget is in split screen state and described is worked as Position of the preceding target application window in terminal screen notify as readjustment value to target application, consequently facilitating target application according to The split screen state of target application and the location information in terminal screen make phase to Show Styles, the function etc. of target application The adjustment answered, thus meet the demand with different Show Styles or function when target application is in different split screen positions, And then improve user experience;Also, screen provided by the invention shows that the detection method of state is simple and easy, easy to implement, is convenient for The split screen state and the location information in terminal screen that target application rapidly knows target application.
A kind of nonvolatile computer storage media is provided according to embodiments of the present invention, and the computer storage medium is deposited An at least executable instruction is contained, which can be performed the method in above-mentioned any means embodiment.
Executable instruction specifically can be used for so that processor executes following operation:
Determine whether current goal application widget is in split screen state;
If so, determining the current goal application widget in terminal screen according to the coordinate of current goal application widget Position;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application Position of the window in terminal screen is notified as readjustment value to target application.
In a kind of optional embodiment, executable instruction specifically can be used for so that processor executes following operation:
The ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, if the longitudinal axis Coordinate is less than or equal to first preset threshold, it is determined that upper split screen of the current goal application widget in terminal screen; If the ordinate of orthogonal axes is greater than first preset threshold, it is determined that lower point in terminal screen of the current goal application widget Screen;
In a kind of optional embodiment, first preset threshold is the presupposition multiple of status bar height.
In a kind of optional embodiment, executable instruction specifically can be used for so that processor executes following operation:
The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, if the longitudinal axis Coordinate is less than or equal to second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen; If the ordinate of orthogonal axes is greater than second preset threshold, it is determined that the current goal application widget is on the right side of terminal screen point Screen.
In a kind of optional embodiment, executable instruction specifically can be used for so that processor executes following operation:
The readjustment value of preset monitored system call back function determines current according to the readjustment value of the predetermined system call back function Whether target application window is in split screen state.
In a kind of optional embodiment, executable instruction specifically can be used for so that processor executes following operation:
Monitor the acquisition focus event of current goal application widget;
When the acquisition focus event for listening to current goal application widget occurs, the return of predetermined system function is called Value, determines whether current goal application widget is in split screen state according to return value.
In a kind of optional embodiment, executable instruction specifically can be used for so that processor executes following operation:
Monitor the layout change event of current goal application widget;
When the layout change event for listening to current goal application widget occurs, the window of current goal application widget is obtained Open area;
The window area of preceding target application window is compared with the interfacial area of terminal screen, it is true according to comparison result Whether settled preceding target application window is in split screen state.
Fig. 6 shows a kind of structural schematic diagram of the calculating equipment provided according to an embodiment of the present invention, present invention tool Body embodiment does not limit the specific implementation for calculating equipment.
As shown in fig. 6, the calculating equipment may include:Processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:Processor 602, communication interface 604 and memory 606 complete mutual lead to by communication bus 608 Letter.Communication interface 604, for being communicated with the network element of other equipment such as client or other servers etc..Processor 602 is used In executing program 610, the correlation step in above method embodiment can be specifically executed.
Program 610 specifically can be used for so that processor 602 executes following operation:
Determine whether current goal application widget is in split screen state;
If so, determining the current goal application widget in terminal screen according to the coordinate of current goal application widget Position;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application Position of the window in terminal screen is notified as readjustment value to target application.
In a kind of optional embodiment, program 610 specifically can be used for so that processor 602 executes following operation:
The ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, if the longitudinal axis Coordinate is less than or equal to first preset threshold, it is determined that upper split screen of the current goal application widget in terminal screen; If the ordinate of orthogonal axes is greater than first preset threshold, it is determined that lower point in terminal screen of the current goal application widget Screen.
In a kind of optional embodiment, first preset threshold is the presupposition multiple of status bar height.
In a kind of optional embodiment, program 610 specifically can be used for so that processor 602 executes following operation:
The ordinate of orthogonal axes in the left side of current goal application widget is compared with the second preset threshold, if the longitudinal axis is sat Mark is less than or equal to second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen;If The ordinate of orthogonal axes is greater than second preset threshold, it is determined that the current goal application widget is on the right side of terminal screen point Screen.
In a kind of optional embodiment, program 610 specifically can be used for so that processor 602 executes following operation:
The readjustment value of preset monitored system call back function determines current according to the readjustment value of the predetermined system call back function Whether target application window is in split screen state.
In a kind of optional embodiment, program 610 specifically can be used for so that processor 602 executes following operation:
Monitor the acquisition focus event of current goal application widget;
When the acquisition focus event for listening to current goal application widget occurs, the return of predetermined system function is called Value, determines whether current goal application widget is in split screen state according to return value.
In a kind of optional embodiment, program 610 specifically can be used for so that processor 602 executes following operation:
Monitor the layout change event of current goal application widget;
When the layout change event for listening to current goal application widget occurs, the window of current goal application widget is obtained Open area;
The window area of preceding target application window is compared with the interfacial area of terminal screen, it is true according to comparison result Whether settled preceding target application window is in split screen state.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention:It is i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (21)

1. a kind of detection method of split screen display available state, including:
Determine whether current goal application widget is in split screen state;
If so, the ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, or will The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, according to comparison result determination Position of the current goal application widget in terminal screen;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application widget Position in terminal screen is notified as readjustment value to target application.
2. according to the method described in claim 1, wherein, the ordinate of orthogonal axes of the top edge by current goal application widget with First preset threshold is compared, or by the ordinate of orthogonal axes of the left edge of current goal application widget and the second preset threshold into Row compares, and determines that position of the current goal application widget in terminal screen further comprises according to comparison result:
The ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, if the ordinate of orthogonal axes Less than or equal to first preset threshold, it is determined that upper split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than first preset threshold, it is determined that lower split screen of the current goal application widget in terminal screen.
3. according to the method described in claim 2, wherein, first preset threshold is the presupposition multiple of status bar height.
4. according to the method described in claim 1, wherein, the ordinate of orthogonal axes of the top edge by current goal application widget with First preset threshold is compared, or by the ordinate of orthogonal axes of the left edge of current goal application widget and the second preset threshold into Row compares, and determines that position of the current goal application widget in terminal screen further comprises according to comparison result:
The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, if the ordinate of orthogonal axes Less than or equal to second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than second preset threshold, it is determined that right split screen of the current goal application widget in terminal screen.
5. method according to any of claims 1-4, wherein whether the determining current goal application widget is in Split screen state further comprises:
The readjustment value of preset monitored system call back function determines current goal according to the readjustment value of the predetermined system call back function Whether application widget is in split screen state.
6. method according to any of claims 1-4, wherein whether the determining current goal application widget is in Split screen state further comprises:
Monitor the acquisition focus event of current goal application widget;
When the acquisition focus event for listening to current goal application widget occurs, the return value of predetermined system function, root are called Determine whether current goal application widget is in split screen state according to return value.
7. method according to any of claims 1-4, wherein whether the determining current goal application widget is in Split screen state further comprises:
Monitor the layout change event of current goal application widget;
When the layout change event for listening to current goal application widget occurs, the window side of current goal application widget is obtained Product;
The window area of current goal application widget is compared with the interfacial area of terminal screen, is determined according to comparison result Whether current goal application widget is in split screen state.
8. a kind of calculating equipment, the calculating equipment include:Processor, memory, communication interface and communication bus, the processing Device, the memory and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
Determine whether current goal application widget is in split screen state;
If so, the ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, or will The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, according to comparison result determination Position of the current goal application widget in terminal screen;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application widget Position in terminal screen is notified as readjustment value to target application.
9. calculating equipment according to claim 8, wherein the executable instruction further execute the processor with Lower operation:
The ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, if the ordinate of orthogonal axes Less than or equal to first preset threshold, it is determined that upper split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than first preset threshold, it is determined that lower split screen of the current goal application widget in terminal screen.
10. calculating equipment according to claim 9, wherein first preset threshold is default times of status bar height Number.
11. calculating equipment according to claim 8, wherein the executable instruction further executes the processor It operates below:
The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, if the ordinate of orthogonal axes Less than or equal to second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than second preset threshold, it is determined that right split screen of the current goal application widget in terminal screen.
12. the calculating equipment according to any one of claim 8-11, wherein the executable instruction further makes described Processor executes following operation:
The readjustment value of preset monitored system call back function determines current goal according to the readjustment value of the predetermined system call back function Whether application widget is in split screen state.
13. the calculating equipment according to any one of claim 8-11, wherein the executable instruction further makes described Processor executes following operation:
Monitor the acquisition focus event of current goal application widget;
When the acquisition focus event for listening to current goal application widget occurs, the return value of predetermined system function, root are called Determine whether current goal application widget is in split screen state according to return value.
14. the calculating equipment according to any one of claim 8-11, wherein the executable instruction further makes described Processor executes following operation:
Monitor the layout change event of current goal application widget;
When the layout change event for listening to current goal application widget occurs, the window side of current goal application widget is obtained Product;
The window area of current goal application widget is compared with the interfacial area of terminal screen, is determined according to comparison result Whether current goal application widget is in split screen state.
15. a kind of computer storage medium, it is stored with an at least executable instruction in the computer storage medium, it is described to hold Row instruction makes processor execute following operation:
Determine whether current goal application widget is in split screen state;
If so, the ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, or will The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, according to comparison result determination Position of the current goal application widget in terminal screen;
Using self-defined call back function, current goal application widget is in split screen state and the current goal application widget Position in terminal screen is notified as readjustment value to target application.
16. computer storage medium according to claim 15, wherein the executable instruction further makes the processing Device executes following operation:
The ordinate of orthogonal axes of the top edge of current goal application widget is compared with the first preset threshold, if the ordinate of orthogonal axes Less than or equal to first preset threshold, it is determined that upper split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than first preset threshold, it is determined that lower split screen of the current goal application widget in terminal screen.
17. computer storage medium according to claim 16, wherein first preset threshold is status bar height Presupposition multiple.
18. computer storage medium according to claim 15, wherein the executable instruction further makes the processing Device executes following operation:
The ordinate of orthogonal axes of the left edge of current goal application widget is compared with the second preset threshold, if the ordinate of orthogonal axes Less than or equal to second preset threshold, it is determined that left split screen of the current goal application widget in terminal screen;If institute Ordinate of orthogonal axes is stated greater than second preset threshold, it is determined that right split screen of the current goal application widget in terminal screen.
19. computer storage medium described in any one of 5-18 according to claim 1, wherein the executable instruction is into one Step makes the processor execute following operation:
The readjustment value of preset monitored system call back function determines current goal according to the readjustment value of the predetermined system call back function Whether application widget is in split screen state.
20. computer storage medium described in any one of 5-18 according to claim 1, wherein the executable instruction is into one Step makes the processor execute following operation:
Monitor the acquisition focus event of current goal application widget;
When the acquisition focus event for listening to current goal application widget occurs, the return value of predetermined system function, root are called Determine whether current goal application widget is in split screen state according to return value.
21. computer storage medium described in any one of 5-18 according to claim 1, wherein the executable instruction is into one Step makes the processor execute following operation:
Monitor the layout change event of current goal application widget;
When the layout change event for listening to current goal application widget occurs, the window side of current goal application widget is obtained Product;
The window area of current goal application widget is compared with the interfacial area of terminal screen, is determined according to comparison result Whether current goal application widget is in split screen state.
CN201711321598.4A 2017-12-12 2017-12-12 The detection method of split screen display available state calculates equipment and computer storage medium Active CN108089902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711321598.4A CN108089902B (en) 2017-12-12 2017-12-12 The detection method of split screen display available state calculates equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711321598.4A CN108089902B (en) 2017-12-12 2017-12-12 The detection method of split screen display available state calculates equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN108089902A CN108089902A (en) 2018-05-29
CN108089902B true CN108089902B (en) 2018-11-27

Family

ID=62175103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711321598.4A Active CN108089902B (en) 2017-12-12 2017-12-12 The detection method of split screen display available state calculates equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN108089902B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542748B (en) * 2018-11-26 2023-08-01 北京时光荏苒科技有限公司 Method, device, equipment and storage medium for determining view browsing times
CN111158819B (en) * 2019-12-25 2024-02-20 广州华多网络科技有限公司 Interface state determining method, device, equipment and storage medium
CN116540918B (en) * 2023-06-30 2023-12-01 深圳市欧度利方科技有限公司 Panel computer split screen control system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016018794A1 (en) * 2014-07-31 2016-02-04 Microsoft Technology Licensing, Llc Adaptive sizing and positioning of application windows
CN105988662A (en) * 2015-03-06 2016-10-05 阿里巴巴集团控股有限公司 Display method and system for multi-application window on mobile terminal
CN106662964A (en) * 2014-07-31 2017-05-10 微软技术许可有限责任公司 Dynamic joint dividers for application windows

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365117B (en) * 2008-09-18 2010-12-29 中兴通讯股份有限公司 Method for customized screen splitting mode
US20150100914A1 (en) * 2013-10-04 2015-04-09 Samsung Electronics Co., Ltd. Gestures for multiple window operation
CN103605524B (en) * 2013-11-26 2017-10-31 广东欧珀移动通信有限公司 A kind of method and device in mobile terminal split screen operation program
CN106598429A (en) * 2016-11-29 2017-04-26 北京小米移动软件有限公司 Method and device for adjusting window of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016018794A1 (en) * 2014-07-31 2016-02-04 Microsoft Technology Licensing, Llc Adaptive sizing and positioning of application windows
CN106662964A (en) * 2014-07-31 2017-05-10 微软技术许可有限责任公司 Dynamic joint dividers for application windows
CN105988662A (en) * 2015-03-06 2016-10-05 阿里巴巴集团控股有限公司 Display method and system for multi-application window on mobile terminal

Also Published As

Publication number Publication date
CN108089902A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108089902B (en) The detection method of split screen display available state calculates equipment and computer storage medium
CN108803968B (en) The Multiview linkage method of user's display interface calculates equipment and storage medium
JP2007249312A (en) Field equipment management device and method
CN105554544A (en) Data processing method and system
CN111324270A (en) Image processing method, assembly, electronic device and storage medium
CN104731473A (en) Operation response method and device based on icons
CN107391914B (en) Parameter display method, device and equipment
CN106708508B (en) A kind of interface data processing method and device
CN105808190A (en) Display screen display method and terminal equipment
CN112947805A (en) Icon sorting method and device
EP2853968A1 (en) An alarm management system and a method therefor
CN106201258A (en) A kind of information processing method and electronic equipment
CN116084131A (en) Washing machine control method and device, washing machine and storage medium thereof
CN106951147A (en) Method and device is transferred in one kind application
CN109739453B (en) Splicing wall resolution ratio automatic configuration method and related equipment
CN105653151B (en) Digital pathological section Zoom method and device
CN104363394B (en) The treating method and apparatus of the multimedia resource of video wall
CN106127026A (en) Authority configuring method and device
CN106302046A (en) Control method for remote controller and device
CN106095445B (en) Installation method, device and the terminal of driver
CN105988405B (en) A kind of control method and monitoring module exporting branch
CN106055370B (en) Drive programe installation method, device and terminal
CN110659096A (en) Method, device, system and storage medium for displaying network topological graph
CN108206784B (en) Network topology generation method and device for smart home
CN104516728A (en) Method and device for setting default button

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220627

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.