Method, device, equipment and medium for controlling signal source display window on Android side

By obtaining and calculating the vertex coordinates of the signal source display window and the grid subcomponent, dynamically adjusting the window size to achieve fit with the chunked display area, solving the problem of inconsistent size of the signal source display window and improving display efficiency and effect.

CN117492677BActive Publication Date: 2025-08-01ZEN-AI TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311429381.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-08-01
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

In the existing Android mobile terminal or Android computer terminal interface, the size of the signal source display window is not fixed and cannot be fully consistent with the chunked display area, resulting in low display efficiency and affecting the display effect.

Method used

By obtaining the vertex coordinates of the rectangular object of the original signal source display window and the grid subcomponent, in response to external triggering operations, the vertex coordinates of the signal source display window are calculated to determine its corresponding grid subcomponent, so that the signal source display window border is fitted with the grid subcomponent border, and the window size is dynamically adjusted.

Benefits of technology

It realizes the complete fit between the signal source display window and the chunked display area, improves the display efficiency and effect, avoids the lag of window adjustments, and ensures the smoothness of display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117492677B_ABST
    Figure CN117492677B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of window display, and provides a method, apparatus, device and medium for controlling a signal source display window on the Android side. The method includes: obtaining a first rectangular object corresponding to the original signal source display window, and obtaining a second rectangular object corresponding to the grid sub-component; in response to an external trigger operation on the original signal source display window, determining at least one grid sub-component corresponding to the first signal source display window based on the positional relationship between the vertex coordinates corresponding to the first rectangular object and the second rectangular object, so that the border of the first signal source display window fits the border of at least one grid sub-component. The present invention can automatically adjust the original signal source display window so that it completely fits the border of at least one grid sub-component, thereby improving the display efficiency and display effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of window display, and particularly to a method, device, equipment and medium for controlling a signal source display window on the Android side. Background Art

[0002] The interfaces of existing Android mobile terminals or Android computer terminals can display and control multiple signal sources. It is necessary to divide the interface into multiple regions, with each region having a display window, and different signal sources can be displayed in each window. In related technologies, the sizes of the display windows of each signal source are not fixed and unique, and cannot exactly match the corresponding regions. It is necessary to manually adjust the size of the window in each region to make the window fit the entire region, which not only has low efficiency but also affects the display effect. Summary of the Invention

[0003] The present invention provides a method, device, equipment and medium for controlling a signal source display window on the Android side, so as to solve the defect that the window does not match the size of the divided display region on the screen in the traditional window display control method, which affects the display efficiency and display effect.

[0004] The present invention provides a method for controlling a signal source display window on the Android side, including:

[0005] Obtaining a first rectangular object corresponding to the original signal source display window, where the attributes of the first rectangular object include the first vertex coordinates and the second vertex coordinates in the diagonal direction of the original signal source display window;

[0006] Obtaining a second rectangular object corresponding to the grid sub-component, where the attributes of the second rectangular object include the third vertex coordinates and the fourth vertex coordinates in the diagonal direction of the grid sub-component, and the Android side display interface is divided into at least two grid sub-components;

[0007] In response to an external trigger operation on the original signal source display window, comparing the first vertex coordinates with the third vertex coordinates to determine the fifth vertex coordinates of the first signal source display window, and comparing the second vertex coordinates with the fourth vertex coordinates to determine the sixth vertex coordinates of the first signal source display window;

[0008] Determining at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, so that the border of the first signal source display window fits the border of the at least one grid sub-component.

[0009] Optionally, the method includes: adding a position modifier in the element spacer in the combinable interface, performing a closure callback on the position modifier to call the boundary function of the layout coordinates in the parent, and obtaining the first rectangular object and obtaining the second rectangular object according to the boundary function in the parent.

[0010] Optionally, the method includes: after obtaining the first rectangular object, caching the first rectangular object as the first set of data; after obtaining the second rectangular object, caching the second rectangular object as the second set of data; correspondingly, when responding to the external trigger operation, reading at least one first rectangular object in the first set of data and reading at least one second rectangular object in the second set of data.

[0011] Optionally, the diagonal direction is the diagonal direction from the upper left to the lower right. Correspondingly, the comparing the first vertex coordinate with the third vertex coordinate to determine the fifth vertex coordinate of the first signal source display window, and comparing the second vertex coordinate with the fourth vertex coordinate to determine the sixth vertex coordinate of the first signal source display window includes:

[0012] Traversing the third vertex coordinates located above the upper left of the first vertex coordinate, and using the third vertex coordinate closest to the first vertex coordinate as the fifth vertex coordinate;

[0013] Traversing the fourth vertex coordinates located below the lower right of the second vertex coordinate, and using the fourth vertex coordinate closest to the second vertex coordinate as the sixth vertex coordinate.

[0014] Optionally, the traversing the third vertex coordinates located above the upper left of the first vertex coordinate, and using the third vertex coordinate closest to the first vertex coordinate as the fifth vertex coordinate includes:

[0015] Starting from the upper left vertex of the first grid sub-component at the upper left corner of the display interface, sequentially traversing the upper left vertex coordinates of the grid sub-components horizontally and vertically, that is, the third vertex coordinates, until the abscissa value of the third vertex coordinate is greater than the abscissa value of the first vertex coordinate, and the ordinate value of the third vertex coordinate is less than the ordinate value of the first vertex coordinate, ending the traversal, and using the third vertex coordinate whose abscissa value is less than the abscissa value of the first vertex coordinate and whose ordinate value is greater than the ordinate value of the first vertex coordinate as the fifth vertex coordinate.

[0016] Optionally, the traversing the third vertex coordinates located above the upper left of the first vertex coordinate, and using the third vertex coordinate closest to the first vertex coordinate as the fifth vertex coordinate includes:

[0017] Starting from the upper left vertex of the first grid sub-component at the lower right corner of the display interface, traverse the upper left vertex coordinates of the grid sub-components, that is, the third vertex coordinates, horizontally and vertically in sequence, until the abscissa value of the third vertex coordinates is less than the abscissa value of the first vertex coordinates, and the ordinate value of the third vertex coordinates is greater than the ordinate value of the first vertex coordinates, then end the traversal. Take the third vertex coordinates whose abscissa value is less than the abscissa value of the first vertex coordinates and whose ordinate value is greater than the ordinate value of the first vertex coordinates, which are traversed first, as the fifth vertex coordinates.

[0018] Optionally, traversing the fourth vertex coordinates located below the right of the second vertex coordinates, and taking the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates, includes:

[0019] Starting from the lower right vertex of the second grid sub-component at the lower right corner of the display interface, traverse the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence, until the abscissa value of the fourth vertex coordinates is less than the abscissa value of the second vertex coordinates, and the ordinate value of the fourth vertex coordinates is greater than the ordinate value of the second vertex coordinates, then end the traversal. Take the fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates, which are obtained from the last traversal, as the sixth vertex coordinates.

[0020] Optionally, traversing the fourth vertex coordinates located below the right of the second vertex coordinates, and taking the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates, includes:

[0021] Starting from the lower right vertex of the second grid sub-component at the upper left corner of the display interface, traverse the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence, until the abscissa value of the lower right vertex coordinates is less than the abscissa value of the second vertex coordinates, and the ordinate value of the lower right vertex is greater than the ordinate value of the second vertex coordinates, then end the traversal. Take the fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates, which are obtained from the first traversal, as the sixth vertex coordinates.

[0022] Optionally, determining at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, includes:

[0023] Construct a new rectangular object according to the fifth vertex coordinates and the sixth vertex coordinates, and set the new rectangular object to the first signal source display window through a position offset modifier and a size modifier.

[0024] Optionally, the external trigger operation on the original signal source display window includes one of a double-click operation, a long-press operation, or a single-click operation on the original signal source display window.

[0025] Optionally, before obtaining the second rectangular object corresponding to the grid sub-component, the method further includes:

[0026] Receiving an interface grid layout instruction, the interface grid layout instruction including line segment features and line segment intersection features representing a grid layout pattern;

[0027] Determining first drawing parameters of border line segments based on the interface size of the display interface, the border line segments corresponding to the horizontal border line and the vertical border line of the display interface;

[0028] Determining second drawing parameters of dividing line segments based on the interface size, the line segment intersection features, and the line segment features, the dividing line segments equally dividing the interface horizontally or vertically;

[0029] Drawing the border line segments according to the first drawing parameters;

[0030] Calculating the size of the grid sub-components according to the second drawing parameters and drawing the dividing line segments.

[0031] The present invention provides a signal source display window control device for an Android terminal, which includes:

[0032] A first rectangular object obtaining module, configured to obtain a first rectangular object corresponding to an original signal source display window, the attributes of the first rectangular object including first vertex coordinates and second vertex coordinates in the diagonal direction of the original signal source display window;

[0033] A second rectangular object obtaining module, configured to obtain a second rectangular object corresponding to a grid sub-component, the attributes of the second rectangular object including third vertex coordinates and fourth vertex coordinates in the diagonal direction of the grid sub-component, and the Android terminal display interface being divided into at least two grid sub-components;

[0034] A vertex coordinate calculation module, configured to, in response to an external trigger operation on the original signal source display window, compare the first vertex coordinates with the third vertex coordinates to determine fifth vertex coordinates of a first signal source display window, and compare the second vertex coordinates with the fourth vertex coordinates to determine sixth vertex coordinates of the first signal source display window;

[0035] A border fitting module, configured to determine at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, so that the border of the first signal source display window fits the border of the at least one grid sub-component.

[0036] The present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the signal source display window control method for the Android side described above is implemented.

[0037] The present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the signal source display window control method for the Android side described above is implemented.

[0038] The signal source display window control method, device, equipment, and medium for the Android side provided by the present invention respond to an external trigger operation on the original signal source display window, determine the display area of the signal source display window according to the position of the original signal source display window on the screen and the position of one or more grid sub-components on the screen, and fill the signal source display window into the display area. The present invention can dynamically adjust the size of the signal source display window without reconstructing the signal source display window, so that each outer border of the signal source display window completely fits the segmented display area (i.e., one or more grid sub-components). In addition, the technical solution of the present invention can adjust the size of the signal source display window at one time, making the display picture in the signal source display window smooth and not stuck, thereby improving the display efficiency and display effect. Description of the Drawings

[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0040] Figure 1 is a schematic flowchart of the signal source display window control method for the Android side provided by the present invention;

[0041] Figure 2 is a schematic diagram of the positional relationship between the original signal source display window and the grid sub-components;

[0042] Figure 3 is a schematic diagram for determining the vertices of the display area of the first signal source display window provided by the present invention;

[0043] Figure 4 is a schematic diagram of the original signal source display window spanning multiple grid sub-components provided by the present invention;

[0044] Figure 5 corresponds to Figure 4 is a schematic diagram of the first signal source display window;

[0045] Figure 6 It is a schematic diagram of the original signal source display window provided by the present invention located within a grid sub-component;

[0046] Figure 7 It corresponds to Figure 6 A schematic diagram of the first signal source display window;

[0047] Figure 8 It is a schematic flowchart of the grid sub-component layout of the display interface before obtaining the second rectangular object corresponding to the grid sub-component provided by the present invention;

[0048] Figure 9 It is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed implementation manners

[0049] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without making creative efforts based on the embodiments in the present invention belong to the scope of protection of the present invention.

[0050] In the present invention, for each direction mentioned in the text, for example, up, down, left, right, upper left, lower left, upper right, lower right, lower right diagonal, lower left diagonal, it refers to the corresponding directions of up, down, left, right, upper left, lower left, upper right, lower right, lower right diagonal, lower left diagonal of the interface seen by the user's naked eyes with the Android terminal standing upright on the plane and being normally displayed as a reference. Horizontal, row, horizontal, etc. refer to the direction parallel to the horizontal plane with the Android terminal standing upright on the plane and being normally displayed as a reference. Vertical, longitudinal, column, etc. refer to the direction perpendicular to the horizontal plane with the Android terminal standing upright on the plane and being normally displayed as a reference.

[0051] The present invention provides a method for controlling a signal source display window for an Android terminal, as Figure 1 shown, including:

[0052] Step 11. Obtain a first rectangular object corresponding to the original signal source display window, and the attributes of the first rectangular object include the first vertex coordinates and the second vertex coordinates in the diagonal direction of the original signal source display window;

[0053] Step 12. Obtain a second rectangular object corresponding to the grid sub-component, and the attributes of the second rectangular object include the third vertex coordinates and the fourth vertex coordinates in the diagonal direction of the grid sub-component. The Android terminal display interface is divided into at least two grid sub-components;

[0054] Step 13. In response to an external trigger operation on the original signal source display window, compare the first vertex coordinates with the third vertex coordinates to determine the fifth vertex coordinates of the first signal source display window, and compare the second vertex coordinates with the fourth vertex coordinates to determine the sixth vertex coordinates of the first signal source display window;

[0055] Step 14. Determine at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, so that the border of the first signal source display window fits the border of at least one grid sub-component.

[0056] In the above signal source display window control method for the Android side, in response to a trigger operation on the original signal source display window, according to the position of the original signal source display window expressed by the vertex coordinates in the diagonal direction and the position of one or more grid sub-components in the screen (i.e., the Android side display interface), determine the display area of the signal source display window, and fill the signal source display window into the display area. The present invention can completely and quickly fit the signal source window with the segmented display area (i.e., one or more grid sub-components), thereby improving the display efficiency and display effect.

[0057] The above method can be used as an additional display function for the Android side. When the user performs an external trigger operation, call this additional function to automatically execute each step in the above method through the program. The program will perform intelligent fitting according to the relationship between the position of the original signal source display window and the position of the grid sub-components.

[0058] Generally speaking, the intelligent fitting is to magnify the original signal source display window, and the magnified size is related to the position of the original signal source display window and the position of the grid sub-components. There are two cases for the relationship between the position of the original signal source display window and the position of the grid sub-components, as Figure 2 shown. The first case is that the original signal source display window spans multiple grid sub-components (see the cross-region window in Figure 2 ), and the second case is that the original signal source display window is within one grid sub-component (see the same-region window in Figure 2 ).

[0059] It is particularly worth noting that, in the first case, the first signal source display window formed after magnifying the original signal source display window includes at least the plurality of grid sub-components; specifically, the left border of the first signal source display window will coincide with the leftmost border of the overall plurality of grid sub-components (the overall grid sub-component formed after splicing the plurality of grid sub-components); the right border of the first signal source display window will coincide with the rightmost border of the overall plurality of grid sub-components (the overall grid sub-component formed after splicing the plurality of grid sub-components); the upper border of the first signal source display window will coincide with the top border of the overall plurality of grid sub-components (the overall grid sub-component formed after splicing the plurality of grid sub-components); the lower border of the first signal source display window will coincide with the bottom border of the overall plurality of grid sub-components (the overall grid sub-component formed after splicing the plurality of grid sub-components). In the second case, the upper border of the first signal source display window formed after magnifying the original signal source display window will coincide with the top border of the one grid sub-component; the lower border of the first signal source display window formed after magnifying the original signal source display window will coincide with the bottom border of the one grid sub-component; the left border of the first signal source display window formed after magnifying the original signal source display window will coincide with the left border of the one grid sub-component; the right border of the first signal source display window formed after magnifying the original signal source display window will coincide with the right border of the one grid sub-component. The leftmost, rightmost, topmost, bottommost, top, bottom, upper, lower, left, and right mentioned above are from the perspective of the user facing the Android display interface.

[0060] The Android operating system includes a composable interface (Compose component). By adding a position offset modifier (Modifier.offset modifier), a size modifier (Modifier.size modifier), a position modifier (Modifier.onGloballyPositioned modifier), etc. to the element spacer (Spacer component) in the composable interface (Compose component), the width and / or height of the grid sub-components in the Android-side display interface can be dynamically set and adjusted using the above modifiers. In this way, the technical solution of the present invention can be implemented on Android screens of any size.

[0061] The present invention can dynamically adjust the size of the signal source display window without reconstructing the signal source display window, making the outer borders of the signal source display window fully fit the block display area (i.e., one or more grid sub-components). Moreover, the technical solution of the present invention can adjust the size of the signal source display window at one time, making the display picture in the signal source display window smooth and not stuck, thereby improving the display efficiency and display effect.

[0062] The Android operating system includes a composable interface (Compose component). The above method further includes: adding a position modifier (Modifier.onGloballyPositioned modifier) to the element spacer (Spacer component) in the composable interface (Compose component), and by means of the closure callback of the position modifier (Modifier.onGloballyPositioned modifier), calling the boundary function (boundsInParent function) in the parent of the layout coordinate (LayoutCoordinates, a class) tool, and obtaining a first rectangular object corresponding to the original signal source display window and a second rectangular object corresponding to the grid sub-component according to the boundary function (boundsInParent function) in the parent. By adding a position modifier (Modifier.onGloballyPositioned modifier) to the element spacer (Spacer component), the present invention obtains the coordinate information of the original signal source display window and the coordinate information of the grid sub-component during the execution of the above method by using the position modifier (Modifier.onGloballyPositioned modifier), and the software development cost is low.

[0063] As a specific implementation manner, the present invention calls the boundary function (boundsInParent function) in the parent of the layout coordinate (LayoutCoordinates, a class) tool by means of the closure callback of the position modifier (Modifier.onGloballyPositioned modifier), and obtains the coordinate positions of the views (i.e., the grid sub-component and the original signal source display window) relative to the Android display interface according to the boundary function (boundsInParent function) in the parent. Specifically, each time the above closure callback is executed, the boundary function (boundsInParent function) in the parent will return a rectangular object (Rect), which has a top left vertex property (topLeft property) and a bottom right vertex property (bottomRight property). Among them, the top left vertex property (topLeft property) represents the coordinates of the top left vertex of the view; the bottom right vertex property (bottomRight property) represents the coordinates of the bottom right vertex of the view. The two coordinate points are connected to form the diagonal of the rectangular object.

[0064] Specifically, the above-mentioned closure callback process can be cyclically executed for each original signal source display window and each grid sub-component, so as to obtain the first rectangular object of each original signal source display window and the second rectangular object of each grid sub-component. The first rectangular object has two attributes, namely the top-left vertex attribute (topLeft attribute) and the bottom-right vertex attribute (bottomRight attribute), which respectively represent the top-left vertex coordinates and the bottom-right vertex coordinates of the original signal source display window. The two coordinate points are connected to form the diagonal of the first rectangular object. The second rectangular object also has two attributes, namely the top-left vertex attribute (topLeft attribute) and the bottom-right vertex attribute (bottomRight attribute), which respectively represent the top-left vertex coordinates and the bottom-right vertex coordinates of the grid sub-component. The two coordinate points are connected to form the diagonal of the second rectangular object.

[0065] Furthermore, the method includes: after obtaining the first rectangular object corresponding to the original signal source display window, caching the first rectangular object. Specifically, in the case where there are multiple original signal source display windows, the program will cache multiple first rectangular objects corresponding to the number of the above-mentioned original signal source display windows in the memory as the first set of data; after obtaining the second rectangular object corresponding to the grid sub-component, caching the second rectangular object. Specifically, in the case where there are multiple grid sub-components, the program will cache multiple second rectangular objects corresponding to the number of the above-mentioned grid sub-components in the memory as the second set of data; correspondingly, when responding to the external trigger operation, at least one first rectangular object in the group is read out from the first set of data, and at least one second rectangular object in the group is read out from the second set of data. By the above technical means of first caching and then reading out the first rectangular object and the second rectangular object, the data calculation amount for the intelligent fitting of the original signal source display window and the grid sub-component based on the external trigger operation each time can be greatly reduced, thereby reducing the occupation of processing resources.

[0066] As a first specific implementation manner, the diagonal direction is the diagonal direction from the top left to the bottom right. Correspondingly, the first vertex coordinate and the third vertex coordinate are compared to determine the fifth vertex coordinate of the first signal source display window, and the second vertex coordinate and the fourth vertex coordinate are compared to determine the sixth vertex coordinate of the first signal source display window, as Figure 3As shown, it includes: traversing the third vertex coordinates located in the upper left of the first vertex coordinates, and taking the third vertex coordinates closest to the first vertex coordinates as the fifth vertex coordinates; traversing the fourth vertex coordinates located in the lower right of the second vertex coordinates, and taking the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates. Through this implementation, when the Android terminal detects the external trigger operation, first take out the first rectangular object of the original signal source display window being operated from the memory cache, and compare it with the second rectangular objects of each grid sub-component to find the third vertex coordinates with the smallest distance value in the upper left direction from the first vertex coordinates and the fourth vertex coordinates with the smallest distance value in the lower right direction from the second vertex coordinates, so as to determine the final size to be adjusted for the original signal source display window being operated, enlarge the original signal source display window to this size, fill the signal source played in the original signal source display window into the enlarged and adjusted first signal source display window and play the signal source.

[0067] Further, taking the lower left corner of the Android terminal display interface as the origin of the coordinate axis, with the origin coordinates being (0, 0), the present invention conducts distance value comparison based on the coordinates of each vertex on the above coordinate axis. Taking the determination of the third vertex with the smallest distance value from the first vertex as an example, in the calculation process of finding the third vertex coordinates with the smallest distance value in the upper left direction from the first vertex coordinates, it is divided into two steps: The first step (determining all vertices that meet the conditions), screen out the vertex coordinates located in the upper left of the first vertex coordinates. The specific calculation method can be to compare the coordinate values of the first vertex coordinates with the vertex coordinates in its upper left. The vertex in the upper left of the first vertex coordinates obtained after comparison needs to satisfy that the abscissa value of this vertex is less than the abscissa value of the first vertex, and the ordinate value of the vertex in the upper left of the first vertex coordinates is greater than the ordinate value of the first vertex; The second step (determining the third vertex), calculate the distance value between each vertex located in the upper left of the first vertex coordinates and the first vertex, compare the calculated distance values, and determine the vertex located in the upper left of the first vertex coordinates corresponding to the smallest distance value as the third vertex. The distance value between the vertex located in the upper left of the first vertex coordinates and the first vertex is calculated according to

[0068] Formula calculation, where X represents the abscissa value of the vertex, and the subscript of X represents the specific corresponding vertex; Y represents the ordinate value of the vertex, and the subscript of Y represents the specific corresponding vertex. Similarly, taking the determination of the fourth vertex as the vertex with the minimum distance value from the second vertex as an example, in the calculation process of comparing and obtaining the coordinates of the fourth vertex with the minimum distance value in the lower right direction of the coordinates of the second vertex, it is also divided into two steps: The first step (determining all vertices that meet the conditions) is to screen out the coordinates of each vertex located in the lower right of the coordinates of the second vertex. The specific calculation method can be to compare the coordinate values of the coordinates of the second vertex with those of the vertices in its lower right. The vertex in the lower right of the coordinates of the second vertex obtained after comparison needs to satisfy that the abscissa value of this vertex is greater than the abscissa value of the second vertex, and the ordinate value of the vertex in the lower right of the coordinates of the second vertex is less than the ordinate value of the second vertex; The second step (determining the fourth vertex) is to calculate the distance value between each vertex located in the lower right of the coordinates of the second vertex and the second vertex, compare the calculated distance values, and determine the vertex located in the lower right of the coordinates of the second vertex corresponding to the minimum distance value as the fourth vertex. The distance value between the vertex located in the lower right of the coordinates of the second vertex and the second vertex is calculated according to

[0069]

[0070] Formula calculation, where X represents the abscissa value of the vertex, and the subscript of X represents the specific corresponding vertex; Y represents the ordinate value of the vertex, and the subscript of Y represents the specific corresponding vertex. Therefore, in the present invention, the calculation process for determining the required grid sub-components is simple and has a small amount of calculation. It is not only easy to implement but also occupies less processing resources.

[0071] External trigger operations include: one of the double-click operation, long-press operation, or single-click operation by the user on the touch display screen of the Android terminal for the original signal source display window. Or, one of the double-click operation, long-press operation, or single-click operation by the user on the original signal source display window through a keyboard or mouse device.

[0072] As the second specific implementation manner, the diagonal direction is the diagonal direction from the upper right to the lower left. Correspondingly, the comparison of the coordinates of the first vertex and the third vertex to determine the coordinates of the fifth vertex of the first signal source display window, and the comparison of the coordinates of the second vertex and the fourth vertex to determine the coordinates of the sixth vertex of the first signal source display window include: traversing the coordinates of the third vertex above the upper right of the coordinates of the first vertex, and taking the coordinates of the third vertex closest to the coordinates of the first vertex as the coordinates of the fifth vertex; traversing the coordinates of the fourth vertex below the lower left of the coordinates of the second vertex, and taking the coordinates of the fourth vertex closest to the coordinates of the second vertex as the coordinates of the sixth vertex.

[0073] The first specific implementation mode described above has the same concept as the second specific implementation mode, except for the diagonal direction, and the technical effects are the same. Taking the first specific implementation mode as an example, the traversal process will be specifically described below:

[0074] In the process of determining the coordinates of the fifth vertex, as a technical implementation method, starting from the upper left vertex of the first grid sub-component at the upper left corner of the display interface, traverse the upper left vertex coordinates of the grid sub-components horizontally and vertically in sequence, that is, the coordinates of the third vertex, until the abscissa value of the third vertex coordinate starts to be greater than the abscissa value of the first vertex coordinate, and the ordinate value of the third vertex coordinate starts to be less than the ordinate value of the first vertex coordinate, then end the traversal, and use the third vertex coordinate whose abscissa value is less than the abscissa value of the first vertex coordinate and whose ordinate value is greater than the ordinate value of the first vertex coordinate, which is the last one traversed, as the coordinates of the fifth vertex.

[0075] In the above traversal process, compare the third vertex coordinate with the first vertex coordinate. If the abscissa value of the third vertex coordinate is less than the abscissa value of the first vertex coordinate, and the ordinate value of the third vertex coordinate is greater than the ordinate value of the first vertex coordinate, as a situation, the third vertex coordinate traversed in the first round like this can be used as the coordinates of the fifth vertex. At this time, the distance between the fifth vertex coordinate and the first vertex coordinate is the farthest. In this way, starting from the upper left corner of the display interface for traversal, it can be known that the upper left vertex coordinates of the grid sub-components traversed in the first round must be the farthest from the first vertex. In this case, the third vertex coordinate with the farthest distance value from the first vertex coordinate can be determined, that is, the left side of the original signal source display window can be enlarged to the leftmost border of the Android display interface. As another situation, the third vertex coordinate traversed in the last round like this can also be used as the coordinates of the fifth vertex. At this time, the distance between the fifth vertex coordinate and the first vertex coordinate is the closest. Through this implementation mode, the original signal source display window is automatically enlarged to the display area of at least one sub-grid component that is closest.

[0076] As another technical implementation method, starting from the upper left vertex of the first grid sub-component at the lower right corner of the display interface, traverse the upper left vertex coordinates of the grid sub-components horizontally and vertically in sequence, that is, the coordinates of the third vertex, until the abscissa value of the third vertex coordinate is less than the abscissa value of the first vertex coordinate, and the ordinate value of the third vertex coordinate is greater than the ordinate value of the first vertex coordinate, then end the traversal, and use the third vertex coordinate whose abscissa value is less than the abscissa value of the first vertex coordinate and whose ordinate value is greater than the ordinate value of the first vertex coordinate, which is the first one traversed, as the coordinates of the fifth vertex. This technical implementation method has the same concept as the previous implementation method and belongs to different replaceable technical implementation methods with similar technical effects.

[0077] As a technical implementation, traversing the fourth vertex coordinates located in the lower right of the second vertex coordinates and using the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates includes: starting from the lower right vertex of the second grid sub-component at the lower right corner of the display interface, traversing the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence until the abscissa value of the fourth vertex coordinates starts to be less than the abscissa value of the second vertex coordinates and the ordinate value of the fourth vertex coordinates starts to be greater than the ordinate value of the second vertex coordinates, then ending the traversal, and using the fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates obtained in the last traversal as the sixth vertex coordinates. Through the above technical means, starting from the lower right corner of the display interface for traversal, it can be known that the lower right vertex coordinates of the grid sub-component traversed at the beginning must be the farthest from the second vertex. Through this implementation method, the fourth vertex coordinates with the farthest distance value from the second vertex coordinates can be determined, that is, the right side of the original signal source display window can be enlarged to the rightmost border of the Android display interface; the fourth vertex coordinates traversed in the last round are the fourth vertex coordinates with the closest distance value from the second vertex coordinates, and the original signal source display window can be enlarged to the display area composed of one or more closest grid sub-components.

[0078] As another technical implementation, traversing the fourth vertex coordinates located in the lower right of the second vertex coordinates and using the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates includes: starting from the lower right vertex of the second grid sub-component at the upper left corner of the display interface, traversing the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence until the abscissa value of the lower right vertex coordinates is less than the abscissa value of the second vertex coordinates and the ordinate value of the lower right vertex is greater than the ordinate value of the second vertex coordinates, then ending the traversal, and using the fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates obtained in the first traversal as the sixth vertex coordinates. Through the above technical solution, starting from the upper left corner of the display interface for traversal, it can be known that the lower right vertex coordinates of the grid sub-component traversed at the beginning must be the closest to the second vertex. Through this implementation method, the fourth vertex coordinates with the closest distance value from the second vertex coordinates can be determined, that is, the right side of the original signal source display window can be enlarged to the rightmost border corresponding to this grid sub-component.

[0079] As a specific implementation, the entire process of determining the coordinates of the fifth vertex and the sixth vertex includes: The first step: Determine the coordinate value of the upper left vertex of the original signal source display window to be adjusted, that is, the first vertex coordinate. Starting from the upper left vertex of the grid sub-component at the upper left corner of the display interface, traverse the second rectangular object of the aforementioned cached grid sub-components in the lower right direction, and sequentially search vertically for the vertex coordinates located above the upper left of the first vertex, and compare the vertex coordinates located above the upper left of the first vertex with the first vertex coordinate until a vertex that meets the preset distance condition is traversed, and use this vertex as the third vertex coordinate, and the third vertex coordinate is used as the fifth vertex coordinate. The second step: Determine the coordinate value of the lower right vertex of the original signal source display window to be adjusted, that is, the second vertex coordinate. Starting from the lower right vertex of the grid sub-component at the lower right corner of the display interface, traverse the second rectangular object of the aforementioned cached grid sub-components in the upper left direction, and sequentially search vertically for the vertex coordinates located below the lower right of the second vertex, and compare the vertex coordinates located below the lower right of the second vertex with the second vertex coordinate until a vertex that meets the preset distance condition is traversed, and use this vertex as the fourth vertex coordinate, and the fourth vertex coordinate is used as the sixth vertex coordinate.

[0080] Determine at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinate and the sixth vertex coordinate, so that the border of the first signal source display window fits the border of at least one grid sub-component. As a specific implementation, the process of determining at least one grid sub-component corresponding to the first signal source display window specifically includes: After both the fifth vertex coordinate and the sixth vertex coordinate are determined, construct a new rectangular object, and set the new rectangular object to the first signal source display window through the position offset modifier (Modifier.offset modifier) and the size modifier (Modifier.size modifier) to complete the fitting operation. Since this solution starts from the upper left vertex of the grid sub-component and sequentially searches vertically in the lower right oblique direction, as Figure 3 shown, when finding three distances 1, 2, and 3 in the upper left direction of the first vertex, that is, finding multiple upper left vertices, use the last one 3 because the last one 3 is the closest to the window; when finding multiple lower right vertices 1 and 2, use the first lower right vertex 1 because the first lower right vertex 1 is the closest to the original signal source display window.

[0081] As a specific example, as Figure 4 shown, the original signal source display window straddles three grid sub-components. By executing the signal source display window control method for the Android side proposed by the present invention, when an external trigger operation is performed on the original signal source display window, then the display area of the first signal source display window formed after magnifying the original signal source display window exactly fits the area of the three grid sub-components, as Figure 5 shown. As Figure 6As shown, the original signal source display window is located within a grid sub-component. By executing the signal source display window control method for the Android side proposed in the present invention, when an external triggering operation is performed on the original signal source display window, the display area of the first signal source display window formed after magnifying the original signal source display window exactly fits the area of a grid sub-component, as Figure 7 shown.

[0082] As Figure 8 shown, as a more optimal implementation manner, before obtaining the second rectangular object corresponding to the grid sub-component, the method further includes:

[0083] 81. Receiving an interface grid layout instruction, the interface grid layout instruction including line segment features and line segment intersection features representing the grid layout mode;

[0084] 82. Determining first drawing parameters of the border line segments based on the interface size, the border line segments corresponding to the horizontal and vertical border lines of the Android side display interface;

[0085] 83. Determining second drawing parameters of the dividing line segments based on the interface size, the line segment intersection features, and the line segment features, the dividing line segments equally dividing the interface horizontally or vertically;

[0086] 84. Drawing the border line segments according to the first drawing parameters;

[0087] 85. Calculating the size of the grid sub-component according to the second drawing parameters and drawing the dividing line segments.

[0088] The grid layout mode of the interface can be visually presented in the form of an interface grid drawing template for the user to view and select. The interface grid drawing template corresponds to the configuration information of the dividing line segments and the configuration information of the line segment intersections. Thus, when the user only needs to select the desired interface grid drawing template, the Android side can automatically obtain the corresponding configuration information of the dividing line segments and the configuration information of the line segment intersections, and automatically perform the drawing of the interface grid. Through the above implementation manner, the interface grid layout can be flexibly changed, so that the same original signal source display window has different display effects under different interface grid layouts. The border lines and dividing line segments of the interface grid sub-components are used to achieve the visual separation and operational separation of each interface grid sub-component.

[0089] The present invention uses different grid sub-components to display different signal source display windows in the display area, or multiple grid sub-components can form a display area to display the signal source display window triggered by the user operation. Multiple signal source display windows can be displayed on the Android interface. In addition to being able to adjust the display of one window, the display of multiple windows can also be adjusted simultaneously; when adjusting the display of multiple windows, the multiple windows can be adjacent to each other, or partially overlapped. The content at the partially overlapped part only displays the content of one window, and the content of other windows is covered; according to the operation on the window, two windows can be combined for display (for example, one window displays "he" on the left, and the other window displays "kou" on the right, and they are combined to display "he"). Through the external trigger operation of the signal source display window, the present invention can be flexibly and intelligently filled into the display area corresponding to at least one grid sub-component on the Android interface, so as to flexibly realize the fitting of the signal source display window and at least one grid sub-component.

[0090] The present invention provides a signal source display window control device for the Android side, which includes:

[0091] A first rectangular object acquisition module, configured to acquire a first rectangular object corresponding to the original signal source display window, and the attributes of the first rectangular object include the first vertex coordinates and the second vertex coordinates in the diagonal direction of the original signal source display window;

[0092] A second rectangular object acquisition module, configured to acquire a second rectangular object corresponding to the grid sub-component, and the attributes of the second rectangular object include the third vertex coordinates and the fourth vertex coordinates in the diagonal direction of the grid sub-component. The Android side display interface is divided into at least two grid sub-components;

[0093] A vertex coordinate calculation module, configured to, in response to an external trigger operation on the original signal source display window, compare the first vertex coordinates with the third vertex coordinates to determine the fifth vertex coordinates of the first signal source display window, and compare the second vertex coordinates with the fourth vertex coordinates to determine the sixth vertex coordinates of the first signal source display window;

[0094] A border fitting module, configured to determine at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, so that the border of the first signal source display window fits the border of at least one grid sub-component.

[0095] The above device corresponds to the signal source display window control method for the Android side described above, belongs to the functional module architecture, and can implement the method steps in each embodiment of the above method, which will not be elaborated here.

[0096] In an embodiment of the present invention, an electronic device including a signal source display window control device for the Android side includes terminal devices such as Android mobile phones, Android iPads, and Android computers. The technical solution of the present invention is particularly applicable to the case where there are multiple windows in one interface, and each window is used to display a signal source, which can be a video, a picture, a video recording, etc. The signal source is the content collected by the Android side from other terminals. The function of the border line segments and the segmentation line segments that make up the interface grid sub-component is to achieve visual separation and operational separation of different signal sources. Without the border line segments and the segmentation line segments, it will be impossible to see the boundaries of each sub-window (i.e., the grid sub-component) on the Android interface, resulting in the user being unable to perform effective multi-window operations.

[0097] The present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the signal source display window control method for the Android side described above.

[0098] Figure 9 An entity structure diagram of an electronic device is exemplified, as Figure 9 shown. The electronic device may include: a processor 910, a communication interface 920, a memory 930, and a communication bus 940. Among them, the processor 910, the communication interface 920, and the memory 930 complete communication with each other through the communication bus 940. The processor 910 can call the logical instructions in the memory 930 to execute the signal source display window control method for the Android side.

[0099] In an embodiment of the present invention, the communication interface communicates with the outside through a communication network. The communication network essentially aims to cover wired or wireless network connections implemented through necessary firmware or software such as switches and routers, and also covers wired or wireless network connections implemented through intermediaries such as some servers or other computers. For the sake of simplifying the description and highlighting the inventive points, the description of routers / switches is sometimes omitted when describing network connections. In the present invention, the networks involved may include Wi-fi networks, Bluetooth networks, personal area networks (PAN), local area networks (LAN), wide area networks (WAN), IEEE 802.1x, intranets, the Internet, extranets, and combinations thereof. The network may also include digital cellular telephone networks, which may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), cdmaOne, CDMA2000, Evolution-Data Optimized (EV-DO), Enhanced Data Rate for GSM Evolution (EDGE), Universal Mobile Telecommunications System (UMTS), Digital Enhanced Cordless Telecommunications (DECT), Digital AMPS (IS-136 / TDMA), Integrated Digital Enhanced Network (iDEN), WiMAX, LTE, LTE-Advanced, Mobile Broadband Wireless Access (MBWA), IEEE 802.20.

[0100] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

[0101] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disks, optical discs, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for controlling a signal source display window on the Android side, characterized in that, Including: Obtain a first rectangular object corresponding to the original signal source display window, and the attributes of the first rectangular object include the first vertex coordinates and the second vertex coordinates in the diagonal direction of the original signal source display window; Obtain a second rectangular object corresponding to the grid sub-component, and the attributes of the second rectangular object include the third vertex coordinates and the fourth vertex coordinates in the diagonal direction of the grid sub-component. The Android-side display interface is divided into at least two grid sub-components; In response to an external trigger operation on the original signal source display window, compare the first vertex coordinates with the third vertex coordinates to determine the fifth vertex coordinates of the first signal source display window, and compare the second vertex coordinates with the fourth vertex coordinates to determine the sixth vertex coordinates of the first signal source display window; Determine at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates, so that the border of the first signal source display window fits the border of the at least one grid sub-component; The method includes: adding a position modifier in an element spacer in a composable interface, performing a closure callback on the position modifier to call a boundary function of layout coordinates in a parent, and obtaining the first rectangular object and obtaining the second rectangular object according to the boundary function in the parent; For each original signal source display window and each grid sub-component, loop to execute the above closure callback process to obtain the first rectangular object of each original signal source display window and obtain the second rectangular object of each grid sub-component; The method includes: after obtaining the first rectangular object, caching the first rectangular object as a first set of data; after obtaining the second rectangular object, caching the second rectangular object as a second set of data; correspondingly, when responding to the external trigger operation, reading at least one first rectangular object in the group in the first set of data and reading at least one second rectangular object in the group in the second set of data.

2. The signal source display window control method for the Android side according to claim 1, wherein The diagonal direction is the diagonal direction from the upper left to the lower right. Correspondingly, the comparing the first vertex coordinates with the third vertex coordinates to determine the fifth vertex coordinates of the first signal source display window, and comparing the second vertex coordinates with the fourth vertex coordinates to determine the sixth vertex coordinates of the first signal source display window includes: Traverse the third vertex coordinates located above the upper left of the first vertex coordinates, and use the third vertex coordinates closest to the first vertex coordinates as the fifth vertex coordinates; Traverse the fourth vertex coordinates located below the lower right of the second vertex coordinates, and use the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates.

3. The signal source display window control method for the Android side according to claim 2, characterized in that, The traversing the third vertex coordinates located above the upper left of the first vertex coordinates and using the third vertex coordinates closest to the first vertex coordinates as the fifth vertex coordinates includes: Starting from the upper left vertex of the first grid sub-component at the upper left corner of the display interface, traverse the upper left vertex coordinates of the grid sub-components, that is, the third vertex coordinates, horizontally and vertically in sequence until the abscissa value of the third vertex coordinates is greater than the abscissa value of the first vertex coordinates, and the ordinate value of the third vertex coordinates is less than the ordinate value of the first vertex coordinates, then end the traversal. Take the third vertex coordinates whose abscissa value is less than the abscissa value of the first vertex coordinates and whose ordinate value is greater than the ordinate value of the first vertex coordinates, which are the last ones traversed, as the fifth vertex coordinates.

4. The signal source display window control method for the Android side according to claim 2, wherein, The traversal of the third vertex coordinates located above the upper left of the first vertex coordinates, and taking the third vertex coordinates closest to the first vertex coordinates as the fifth vertex coordinates, includes: Starting from the upper left vertex of the first grid sub-component at the lower right corner of the display interface, traverse the upper left vertex coordinates of the grid sub-components, that is, the third vertex coordinates, horizontally and vertically in sequence until the abscissa value of the third vertex coordinates is less than the abscissa value of the first vertex coordinates, and the ordinate value of the third vertex coordinates is greater than the ordinate value of the first vertex coordinates, then end the traversal. Take the first traversed third vertex coordinates whose abscissa value is less than the abscissa value of the first vertex coordinates and whose ordinate value is greater than the ordinate value of the first vertex coordinates as the fifth vertex coordinates.

5. The signal source display window control method for the Android side according to claim 3 or 4, characterized in that, The traversal of the fourth vertex coordinates located below the lower right of the second vertex coordinates, and taking the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates, includes: Starting from the lower right vertex of the second grid sub-component at the lower right corner of the display interface, traverse the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence until the abscissa value of the fourth vertex coordinates is less than the abscissa value of the second vertex coordinates, and the ordinate value of the fourth vertex coordinates is greater than the ordinate value of the second vertex coordinates, then end the traversal. Take the last traversed fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates as the sixth vertex coordinates.

6. The method for controlling the signal source display window for the Android side according to claim 3 or 4, characterized in that, The traversal of the fourth vertex coordinates located below the lower right of the second vertex coordinates, and taking the fourth vertex coordinates closest to the second vertex coordinates as the sixth vertex coordinates, includes: Starting from the lower right vertex of the second grid sub-component at the upper left corner of the display interface, traverse the lower right vertex coordinates of the grid sub-components, that is, the fourth vertex coordinates, horizontally and vertically in sequence until the abscissa value of the lower right vertex coordinates is less than the abscissa value of the second vertex coordinates, and the ordinate value of the lower right vertex coordinates is greater than the ordinate value of the second vertex coordinates, then end the traversal. Take the first traversed fourth vertex coordinates whose abscissa value is greater than the abscissa value of the second vertex coordinates and whose ordinate value is less than the ordinate value of the second vertex coordinates as the sixth vertex coordinates.

7. The signal source display window control method for the Android side according to claim 1, characterized in that, The determination of at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinates and the sixth vertex coordinates includes: Construct a new rectangular object according to the fifth vertex coordinate and the sixth vertex coordinate, and set the new rectangular object to the first signal source display window through a position offset modifier and a size modifier.

8. The signal source display window control method for the Android side according to claim 1, wherein The external trigger operation on the original signal source display window includes one of a double-click operation, a long-press operation, or a single-click operation on the original signal source display window.

9. The signal source display window control method for the Android side according to claim 1, characterized in that, Before the method obtains the second rectangular object corresponding to the grid sub-component, it further includes: Receiving an interface grid layout instruction, the interface grid layout instruction includes a line segment feature and a line segment intersection point feature representing a grid layout mode; Determine the first drawing parameter of the border line segment based on the interface size of the display interface, the border line segment corresponding to the horizontal border line and the vertical border line of the display interface; Determine the second drawing parameter of the segmentation line segment based on the interface size, the line segment intersection point feature, and the line segment feature, the segmentation line segment equally divides the interface horizontally or vertically; Draw the border line segment according to the first drawing parameter; Calculate the size of the grid sub-component according to the second drawing parameter and draw the segmentation line segment.

10. A signal source display window control device for Android, characterized in that, It includes: A first rectangular object acquisition module for acquiring a first rectangular object corresponding to an original signal source display window, the attributes of the first rectangular object including the first vertex coordinate and the second vertex coordinate in the diagonal direction of the original signal source display window; A second rectangular object acquisition module for acquiring a second rectangular object corresponding to a grid sub-component, the attributes of the second rectangular object including the third vertex coordinate and the fourth vertex coordinate in the diagonal direction of the grid sub-component, and the Android-side display interface is divided into at least two grid sub-components; A vertex coordinate calculation module for, in response to an external trigger operation on the original signal source display window, comparing the first vertex coordinate with the third vertex coordinate to determine the fifth vertex coordinate of the first signal source display window, and comparing the second vertex coordinate with the fourth vertex coordinate to determine the sixth vertex coordinate of the first signal source display window; A border fitting module for determining at least one grid sub-component corresponding to the first signal source display window according to the fifth vertex coordinate and the sixth vertex coordinate, so that the border of the first signal source display window fits the border of the at least one grid sub-component; The device is further configured to: add a position modifier in an element spacer in a composable interface, perform a closure callback on the position modifier to call a boundary function of layout coordinates in a parent, and obtain the first rectangular object and obtain the second rectangular object according to the boundary function in the parent; Loop through the above closure callback process for each original signal source display window and each grid sub-component to obtain the first rectangular object of each original signal source display window and obtain the second rectangular object of each grid sub-component; After obtaining the first rectangular object, cache the first rectangular object as the first set of data; after obtaining the second rectangular object, cache the second rectangular object as the second set of data; correspondingly, when responding to the external trigger operation, read at least one first rectangular object within the group from the first set of data, and read at least one second rectangular object within the group from the second set of data.

11. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the signal source display window control method for the Android side as described in any one of claims 1 to 9.

12. A non-transitory computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the signal source display window control method for the Android side as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Control method and system of Android system network view

    CN106648708A

  • Operation method and device, electronic equipment and computer readable storage medium

    CN114741016A