Picture screen switching method and device, electronic equipment and storage medium

By creating the first and second interactive windows on the vehicle machine, the screen content is gradually moved from the first screen to the second screen, solving the problem of high memory resource consumption in the prior art, and achieving a more efficient screen-cutting effect.

CN119806358AActive Publication Date: 2025-04-11GUANGZHOU SIX CIRCLE TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510278801.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-11
Publication Date
2025-04-11
Estimated Expiration
2045-03-11

AI Technical Summary

Technical Problem

In the existing automotive-computer interaction technology, screen-cut between screens is achieved by creating a virtual screen, resulting in excessive memory resource consumption.

Method used

By displaying the first interactive interface of the target application on the first screen and in response to the screen-slicing operation of the screen, a first interactive window is created. Then, according to the user's operation, the screen content is gradually moved from the first interactive window to the second interactive window until the second interactive interface is fully displayed.

Benefits of technology

The effect of gradually moving the screen content from the first screen to the second screen is achieved, and there is no need to create a virtual screen compared to the prior art, thereby reducing memory resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806358A_ABST
    Figure CN119806358A_ABST
Patent Text Reader

Abstract

The invention relates to a picture screen switching method and device, electronic equipment and a storage medium. The method comprises the steps that a first interaction interface of a target application is displayed on a first screen; displaying a first interaction window on the first screen in response to the picture screen switching operation; obtaining the position of the first interaction window on the first screen in response to the movement operation on the first interaction window; when the position meets a first preset condition, displaying a second interaction window on a second screen, and gradually moving the picture content from the first interaction window to the second interaction window according to the position; when the position meets the second preset condition, the first interaction window, the second interaction window and the first interaction interface are removed, the second interaction interface is displayed on the second screen, compared with the prior art, a virtual screen does not need to be created, and therefore memory resource consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-computer interaction technology, and in particular to a screen switching method, device, electronic equipment and storage medium. Background Art

[0002] With the development of vehicle computer technology, there are more and more screens on the vehicle computer, and the demand for interaction between the screens is also increasing. For example, moving the application screen on one screen to another screen.

[0003] In the related art, a virtual screen technology is used to move an application screen on one screen to another screen. However, this technology consumes a large amount of memory resources. Summary of the invention

[0004] Based on this, an object of the present invention is to provide a screen switching method, device, electronic device and storage medium, which have the advantage of low memory resource consumption.

[0005] According to a first aspect of an embodiment of the present application, a screen switching method is provided, comprising the following steps: Displaying a first interactive interface of the target application on the first screen; the first interactive interface displays screen content; In response to the screen switching operation, a first interactive window is displayed on the first screen; the first interactive window is located on the first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed on the first interactive interface; In response to a move operation on the first interactive window, obtaining a position of the first interactive window on the first screen; When the position meets the first preset condition, displaying the second interactive window on the second screen, and gradually moving the screen content from the first interactive window to the second interactive window according to the position; When the position meets the second preset condition, the first interaction window, the second interaction window and the first interaction interface are removed, and the second interaction interface is displayed on the second screen; the second interaction interface displays the screen content.

[0006] According to a second aspect of an embodiment of the present application, a screen switching device is provided, including: A first interactive interface display module, used to display a first interactive interface of a target application on a first screen; the first interactive interface displays screen content; A first interactive window display module, configured to display a first interactive window on a first screen in response to a screen switching operation; the first interactive window is located on a first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed on the first interactive interface; A position acquisition module, configured to acquire a position of the first interactive window on the first screen in response to a move operation on the first interactive window; A window moving module, used for displaying a second interactive window on the second screen when the position meets a first preset condition, and gradually moving the screen content from the first interactive window to the second interactive window according to the position; The second interactive interface display module is used to remove the first interactive window, the second interactive window and the first interactive interface when the position meets the second preset condition, and display the second interactive interface on the second screen; the second interactive interface displays the screen content.

[0007] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing any one of the above-mentioned screen switching methods.

[0008] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the screen switching method as described above is implemented.

[0009] The embodiment of the present application is as follows: the first interactive interface of the target application is displayed on the first screen; the first interactive interface displays screen content; in response to the screen switching operation, the first interactive window is displayed on the first screen; the first interactive window is located on the first interactive interface, and the screen content displayed by the first interactive window is consistent with the screen content displayed by the first interactive interface; in response to the move operation of the first interactive window, the position of the first interactive window on the first screen is obtained; when the position meets the first preset condition, the second interactive window is displayed on the second screen, and the screen content is gradually moved from the first interactive window to the second interactive window according to the position; when the position meets the second preset condition, the first interactive window, the second interactive window and the first interactive interface are removed, and the second interactive interface is displayed on the second screen; the second interactive interface displays screen content. The present application realizes that the screen content on the first interactive interface is gradually moved from the first screen to the second screen through the first interactive window on the first screen and the second interactive window on the second screen. Compared with the prior art, there is no need to create a virtual screen, thereby reducing memory resource consumption.

[0010] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0011] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram of a flow chart of a screen switching method provided by an embodiment of the present application; Figure 2 A structural block diagram of a screen switching device provided by an embodiment of the present application; Figure 3 A schematic block diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0013] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0014] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0015] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0016] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.

[0017] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0018] The inventors found in the process of implementing the present invention that in the prior art, a virtual screen is created, and the stack of applications on screen A is switched to the virtual screen, and then window 1 and window 2 are created in screen A and screen B respectively, the screen content of the virtual screen is mapped to window 1 and window 2, and window 1 and window 2 are moved. When the condition for switching the screen content from screen A to screen B is met, the stack of applications is switched from the virtual screen to screen B. Since the virtual screen needs to be created, memory resources are consumed greatly.

[0019] To this end, the present application uses a first interactive window on the first screen and a second interactive window on the second screen to realize that the screen content on the first interactive interface is gradually moved from the first screen to the second screen. When the screen content moves to the second screen, the application stack of the target application is switched from the first screen to the second screen. Compared with the prior art, there is no need to create a virtual screen, thereby reducing memory resource consumption.

[0020] See also Figure 1 , which is a flow chart of a screen switching method provided by an embodiment of the present application. The present application embodiment provides a screen switching method, comprising the following steps: S10: Displaying a first interactive interface of a target application on a first screen; the first interactive interface displays screen content.

[0021] Among them, the executor of the screen switching method of the present application is a screen switching device, and the screen switching device includes but is not limited to vehicle equipment, computers, tablets, and mobile phones.

[0022] Among them, the first screen is the display screen on the car computer, including but not limited to the central control screen, the co-pilot screen and the rear seat screen.

[0023] Among them, the target application is the application that the user is operating on the vehicle computer.

[0024] The first interactive interface is an application interface of the target application, including but not limited to a main interface and a sub-interface.

[0025] In an embodiment of the present application, a user interacts with a target application on a central control screen, and a first interactive interface is displayed.

[0026] S20: In response to the screen switching operation, a first interactive window is displayed on the first screen; the first interactive window is located on the first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed on the first interactive interface.

[0027] Among them, the screen switching operation includes but is not limited to a three-finger press operation, a two-finger click operation, and a long press operation. The screen switching operation is used to trigger the switching of the application screen.

[0028] The first interactive window covers the first interactive interface, the size of the first interactive window is the same as the size of the first interactive interface, and the first interactive window displays the screen content of the first interactive interface in real time.

[0029] In an embodiment of the present application, in response to a three-finger operation on the first screen by the user, the first screen enters a screen switching mode, a first interactive window is created on the first screen, and the screen content of the first interactive interface is obtained, and the screen content is rendered to the first interactive window. Specifically, the screen content of the first interactive interface can be obtained through the surfaceflinger service of the Android system, and the screen content of the first interactive interface is sent to the OpenGL rendering engine, and the OpenGL rendering engine renders the screen content of the first interactive interface to the first interactive window. Among them, the surfaceflinger service is a display synthesis system service in the Android operating system, which can be used to synthesize and display screen content.

[0030] S30: In response to the moving operation on the first interactive window, obtaining a position of the first interactive window on the first screen.

[0031] In an embodiment of the present application, it is detected that the user drags the first interactive window on the first screen to move, and during the movement, the position of the first interactive window on the first screen is obtained in real time.

[0032] S40: When the position meets the first preset condition, display the second interactive window on the second screen, and gradually move the screen content from the first interactive window to the second interactive window according to the position.

[0033] The first preset condition refers to a trigger condition for the screen content to start switching.

[0034] The second screen is a display screen on the vehicle, including but not limited to a central control screen, a co-pilot screen, and a rear seat screen. The second screen is different from the first screen, and the second screen and the first screen share the same Android system. For example, the first screen is the central control screen, and the second screen is the co-pilot screen.

[0035] The second interactive window is used to display screen content together with the first interactive window.

[0036] In the embodiment of the present application, when the position of the first interactive window meets the first preset condition, the second interactive window is displayed on the co-pilot screen. During the movement of the first interactive window, the screen content of the first interactive window gradually moves out of the central control screen, and the moved-out screen content is gradually displayed in the second interactive window, so that the screen content presents an effect of continuous movement on the central control screen and the co-pilot screen.

[0037] S50: When the position meets the second preset condition, the first interaction window, the second interaction window and the first interaction interface are removed, and the second interaction interface is displayed on the second screen; the second interaction interface displays the screen content.

[0038] The second preset condition refers to the end condition of the screen switching of the picture content.

[0039] In the embodiment of the present application, when the position of the first interactive window meets the second preset condition, the first interactive window and the first interactive interface are removed from the hollow screen, and the second interactive window is removed from the co-pilot screen. After the second interactive window is removed, the second interactive interface is displayed on the co-pilot screen, and the screen content displayed on the second interactive interface is consistent with the screen content of the previous first interactive interface.

[0040] Applying the embodiment of the present application, by displaying the first interactive interface of the target application on the first screen; the first interactive interface displays screen content; in response to the screen switching operation, displaying the first interactive window on the first screen; the first interactive window is located on the first interactive interface, and the screen content displayed by the first interactive window is consistent with the screen content displayed by the first interactive interface; in response to the move operation of the first interactive window, the position of the first interactive window on the first screen is obtained; when the position meets the first preset condition, the second interactive window is displayed on the second screen, and according to the position, the screen content is gradually moved from the first interactive window to the second interactive window; when the position meets the second preset condition, the first interactive window, the second interactive window and the first interactive interface are removed, and the second interactive interface is displayed on the second screen; the second interactive interface displays screen content. The present application realizes that the screen content on the first interactive interface is gradually moved from the first screen to the second screen through the first interactive window on the first screen and the second interactive window on the second screen. Compared with the prior art, there is no need to create a virtual screen, thereby reducing memory resource consumption.

[0041] In one embodiment, before step S40, steps S401 to S403 are included, which are specifically as follows: S401: Determine, according to the position, a position change amount of the first interactive window during the moving process.

[0042] In an embodiment of the present application, the initial position and the position after the first interactive window are obtained, and the position change of the first interactive window can be determined according to the initial position and the position after the move. The initial position of the first interactive window is the position of the first interactive window when it is just moved.

[0043] S402: When the position change is greater than or equal to a first preset threshold, it is determined that a first preset condition is satisfied.

[0044] The first preset threshold value may be set according to actual needs. For example, the first preset threshold value is half of the width of the first screen.

[0045] In an embodiment of the present application, after the user opens the target application on the central control screen, the first interactive interface of the target application is displayed at a preset position. The preset position may be a position close to the left side of the central control screen. The user drags the first interactive window to the right. When the position change of the first interactive window is greater than or equal to half the width of the central control screen, it is determined that the first preset condition is met and the screen content switching begins.

[0046] S403: When the position change amount is less than the first preset threshold, determine that the first preset condition is not satisfied.

[0047] In the embodiment of the present application, when the position change of the first interactive window is less than half of the screen width of the central control screen, it is determined that the first preset condition is not met and the screen content is not switched.

[0048] The embodiment of the present application can automatically determine whether to switch the screen content by obtaining the position change of the first interactive window and comparing the position change with the first preset threshold.

[0049] In one embodiment, before step S40, steps S404 to S405 are included, which are specifically as follows: S404: When the moving position coincides with a preset screen edge of the first screen, it is determined that a first preset condition is satisfied.

[0050] The preset screen can be set according to actual needs. Specifically, the first screen includes four screen edges: upper side, lower side, left side, and right side, and the preset screen edge can be any one of the screen edges.

[0051] In an embodiment of the present application, the user drags the first interactive window to the right. When the position of the first interactive window coincides with the right screen edge of the first screen, it is determined that the first preset condition is met and screen switching begins.

[0052] S405: When the moving position does not coincide with the preset screen edge of the first screen, determining that the first preset condition is not satisfied.

[0053] In an embodiment of the present application, the user drags the first interactive window to the right. When the position of the first interactive window does not coincide with the right screen edge of the first screen, it is determined that the first preset condition is not met and the screen content is not switched.

[0054] The embodiment of the present application can automatically determine whether to switch the screen content by obtaining the position of the first interactive window and determining whether the position coincides with a preset screen edge of the first screen.

[0055] In one embodiment, step S40 includes step S41, which is specifically as follows: S41: adjusting the size of the first interaction window and the size of the second interaction window according to the position, so that the screen content displayed by the adjusted second interaction window and the screen content displayed by the adjusted first interaction window constitute the screen content of the first interaction window before adjustment.

[0056] In an embodiment of the present application, the position change amount of the first interactive window is determined according to the position of the first interactive window. According to the position change amount, the size adjustment amount of the first interactive window and the size adjustment amount of the second interactive window are determined. According to the size adjustment amount, the size of the first interactive window and the size of the second interactive window are adjusted. Among them, the first position and the second position of the first interactive window are obtained, and the position change amount of the first interactive window is determined according to the first position and the second position. The first position is the position of the first interactive window when the first preset condition is met, and the second position is the position of the first interactive window that meets the first preset condition and continues to move.

[0057] The embodiment of the present application synchronously adjusts the size of the first interactive window and the size of the second interactive window according to the position of the first interactive window, so that the screen content can be continuously moved from the first screen to the second screen.

[0058] In one embodiment, step S41 includes steps S411 to S412, which are specifically as follows: S411: Determine a moving direction of the first interactive window.

[0059] The moving directions of the first interactive window include left, right, up, down, upper left, lower left, upper right and lower right.

[0060] In an embodiment of the present application, multiple positions of the first interactive window during the movement process may be acquired, straight line fitting may be performed on the coordinates of the multiple positions, and the direction of the straight line may be determined as the moving direction of the first interactive window.

[0061] S412: When the first interactive window is in a state of being reduced in size according to its position, and when the second interactive window is in a state of being moved in a moving direction on the second screen, the size of the second interactive window is enlarged according to its position, so that the sum of the size of the reduced first interactive window and the size of the enlarged second interactive window is the size of the first interactive window before being reduced.

[0062] In an embodiment of the present application, when the first interactive window moves on the first screen in the moving direction, the first interactive window gradually moves out of the first screen. During the movement, the size of the first interactive window is reduced, so that the display area of ​​the first interactive window on the first screen gradually becomes smaller. At the same time, the second interactive window is synchronously moved on the second screen, and the size of the second interactive window is expanded, so that the display area of ​​the second interactive window on the second screen gradually becomes larger, and the screen content displayed in the second interactive window is the screen content of the first interactive window moving out of the first screen.

[0063] The embodiment of the present application ensures that the sum of the size of the reduced first interactive window and the size of the expanded second interactive window when the screen content is switched is the size of the first interactive window before reduction, by synchronously reducing the size of the first interactive window and expanding the size of the second interactive window. This makes the second interactive window appear to be the window portion of the first interactive window moved out of the first screen, and the movement of the screen content is more natural.

[0064] In one embodiment, the step of reducing the size of the first interactive window according to the position in step S412 includes steps S4121 to S4123, which are specifically as follows: S4121: Determine, according to the position, a position change amount of the first interactive window during the moving process.

[0065] In the embodiment of the present application, the first position and the second position of the first interactive window are obtained, and the second position is subtracted from the first position to obtain the position change of the first interactive window. The first position is the position of the first interactive window when the first preset condition is met, and the second position is the position of the first interactive window that meets the first preset condition and continues to move.

[0066] S4122: Obtain a first zoom ratio corresponding to the first interactive window according to a preset first mapping relationship between the position change amount and the zoom ratio.

[0067] In the first mapping relationship, one position change corresponds to a unique scaling ratio.

[0068] In an embodiment of the present application, according to the position change of the first interactive window and the first mapping relationship, a first scaling ratio corresponding to the first interactive window can be obtained. Specifically, the first scaling ratio is the ratio of the position change of the first interactive window to the initial size of the first interactive window. The initial size refers to the window width and window height of the first interactive window before the size changes.

[0069] S4123: Reduce the size of the first interactive window according to the first scaling ratio.

[0070] In an embodiment of the present application, the size change of the first interactive window is determined according to the first scaling ratio. According to the size change, the size of the first interactive window is reduced. Specifically, the first scaling ratio is multiplied by the initial size of the first interactive window to obtain the size change. The initial size of the first interactive window is subtracted from the size change to obtain the reduced size of the first interactive window.

[0071] The step of enlarging the size of the second interactive window according to the position in step S412 includes steps S4124-4125, which are specifically as follows: S4124: Obtain a second zoom ratio corresponding to the second interactive window according to a preset second mapping relationship between the position change amount and the zoom ratio.

[0072] In the second mapping relationship, one position change corresponds to a unique scaling ratio.

[0073] In an embodiment of the present application, according to the position change of the first interactive window and the second mapping relationship, the second scaling ratio corresponding to the first interactive window can be obtained. Specifically, the second scaling ratio is the ratio of the position change of the first interactive window to the initial size of the first interactive window. The initial size refers to the window width and window height of the first interactive window before the size changes.

[0074] S4125: Enlarging the size of the first interactive window according to the second zoom ratio.

[0075] In an embodiment of the present application, the size change amount of the second interactive window is determined according to the second scaling ratio. According to the size change amount, the size of the second interactive window is enlarged. Specifically, the second scaling ratio is multiplied by the initial size of the first interactive window to obtain the size change amount. The size change amount is used as the enlarged size of the second interactive window.

[0076] The embodiment of the present application scales the first interactive window and the second interactive window according to the first scaling ratio and the second scaling ratio, and can simultaneously reduce the size of the first interactive window and expand the size of the second interactive window, so that the screen content gradually moves from the first interactive window to the second interactive window.

[0077] In one embodiment, before step S50, steps S501 to S503 are included, which are specifically as follows: S501: Obtain a position change amount of a first interactive window during a moving process.

[0078] In an embodiment of the present application, the initial position and the position after the first interactive window are obtained, and the position change of the first interactive window can be determined according to the initial position and the position after the move. The initial position of the first interactive window is the position of the first interactive window when it is just moved.

[0079] S502: When the position change is greater than or equal to a second preset threshold, it is determined that a second preset condition is satisfied; and the second preset threshold is greater than the first preset threshold.

[0080] The second preset threshold can be set according to actual needs. For example, the second preset threshold is the sum of the first preset threshold and the size of the first interactive window.

[0081] In the embodiment of the present application, the user drags the first interactive window to move, and when the position of the first exchange window meets the first preset condition, the screen content switching starts. The user continues to drag the first interactive window to move, and when the first interactive window is completely moved out of the first screen, it is determined that the second preset condition is met, and the screen content switching stops.

[0082] S503: When the position change amount is less than the second preset threshold, it is determined that the second preset condition is not satisfied.

[0083] In the embodiment of the present application, when the first interactive window is not completely moved out of the first screen, it is determined that the second preset condition is not met, and the screen content continues to be switched.

[0084] The embodiment of the present application can automatically determine whether to stop switching screen content by obtaining the position change of the first interactive window and comparing the position change with the second preset threshold.

[0085] In one embodiment, the step of displaying the second interactive interface on the second screen in step S50 includes step S51, which is specifically as follows: S51: Acquire application data of a target application, send the application data to a second screen, so that the second screen creates a second interactive interface, renders the application data to the second interactive interface, and displays the second interactive interface.

[0086] In an embodiment of the present application, the surfaceflinger service is used to obtain application data of the target application, and the application data is sent to the screen management service of the second screen. After receiving the application data, the screen management service creates a second interactive interface, renders the application data to the second interactive interface, and displays the second interactive interface.

[0087] The embodiment of the present application can realize displaying the target application on the second screen by displaying the application data on the second interactive interface, thereby ensuring that the target application is switched from the first screen to the second screen.

[0088] In one embodiment, step S51 includes steps S511 to S512, which are specifically as follows: S511: Acquire an application stack of a target application running on the first screen.

[0089] Among them, the application stack (Activitystack) is a stack mechanism used to manage the application interaction interface (Activity) in the Android system. It follows the first-in-last-out principle, and the Android system always displays the Activity at the top of the stack.

[0090] In the embodiment of the present application, the application stack of the target application is obtained through the surfaceflinger service.

[0091] S512: Move the application stack to the top of the stack corresponding to the application running on the second screen so that the second screen creates a second interactive interface, obtain application data of the target application from the application stack, render the application data to the second interactive interface, and display the second interactive interface.

[0092] In an embodiment of the present application, the mobile stack service is called through the surfaceflinger service to move the application stack to the screen management class (displaycontent) of the second screen. The screen management class moves the application stack to the top of the stack corresponding to the application running on the second screen, so that the second interactive interface created on the second screen through the surfaceflinger service can be displayed at the top of the second screen.

[0093] The embodiment of the present application moves the application stack of the target application from the first screen to the second screen, thereby enabling the target application to be displayed on the second screen.

[0094] The following is an embodiment of the device of the present application, which can be used to execute the content of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the content of the method in the embodiment of the present application.

[0095] See also Figure 2 , which shows a schematic diagram of the structure of the screen switching device provided in an embodiment of the present application. The screen switching device 6 provided in an embodiment of the present application includes: A first interactive interface display module 61 is used to display a first interactive interface of a target application on a first screen; the first interactive interface displays screen content; A first interactive window display module 62 is used to display a first interactive window on the first screen in response to a screen switching operation; the first interactive window is located on the first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed on the first interactive interface; A position acquisition module 63, configured to acquire a position of the first interactive window on the first screen in response to a move operation on the first interactive window; The window moving module 64 is used to display the second interactive window on the second screen when the position meets the first preset condition, and gradually move the screen content from the first interactive window to the second interactive window according to the position; The second interaction interface display module 65 is used to remove the first interaction window, the second interaction window and the first interaction interface and display the second interaction interface on the second screen when the position meets the second preset condition; the second interaction interface displays the screen content.

[0096] Applying the embodiment of the present application, by displaying the first interactive interface of the target application on the first screen; the first interactive interface displays screen content; in response to the screen switching operation, displaying the first interactive window on the first screen; the first interactive window is located on the first interactive interface, and the screen content displayed by the first interactive window is consistent with the screen content displayed by the first interactive interface; in response to the move operation of the first interactive window, the position of the first interactive window on the first screen is obtained; when the position meets the first preset condition, the second interactive window is displayed on the second screen, and according to the position, the screen content is gradually moved from the first interactive window to the second interactive window; when the position meets the second preset condition, the first interactive window, the second interactive window and the first interactive interface are removed, and the second interactive interface is displayed on the second screen; the second interactive interface displays screen content. The present application realizes that the screen content on the first interactive interface is gradually moved from the first screen to the second screen through the first interactive window on the first screen and the second interactive window on the second screen. Compared with the prior art, there is no need to create a virtual screen, thereby reducing memory resource consumption.

[0097] The following is an embodiment of the device of the present application, which can be used to execute the content of the method in the embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the content of the method in the embodiment of the present application.

[0098] See also Figure 3 The present application also provides an electronic device 300, which may be a computer, a mobile phone, a tablet computer, a screen switching device, etc. In an exemplary embodiment of the present application, the electronic device 300 is a screen switching device, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, a user interface 304 and at least one communication bus 305.

[0099] The user interface 304 is mainly used to provide an input interface for the user and obtain data input by the user. Optionally, the user interface may also include a standard wired interface or a wireless interface.

[0100] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0101] The communication bus 305 is used to realize the connection and communication between these components.

[0102] Among them, the processor 301 may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Optionally, the processor can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor, but implemented separately through a chip.

[0103] Among them, the memory 302 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory includes a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, codes, code sets or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory may also be optionally at least one storage device located away from the aforementioned processor. As Figure 3 As shown, the memory as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application program.

[0104] The processor can be used to call the screen switching method application stored in the memory, and specifically execute the method steps of the above-mentioned embodiment. The specific execution process can refer to the specific description shown in the embodiment, which will not be repeated here.

[0105] The present application also provides a computer-readable storage medium on which a computer program is stored, and the instructions are suitable for being loaded by a processor and executing the method steps of the above-mentioned embodiment. The specific execution process can refer to the specific description shown in the embodiment, and will not be repeated here. The device where the storage medium is located can be a personal computer, a laptop computer, a smart phone, a tablet computer and other electronic devices.

[0106] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0108] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0110] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0111] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0112] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, tape storage, disk storage or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0113] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0114] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A screen switching method, characterized in that: The steps include: Displaying a first interactive interface of the target application on the first screen; the first interactive interface displays screen content; In response to the screen switching operation, displaying a first interactive window on the first screen; The first interactive window is located on the first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed in the first interactive interface; In response to a move operation on the first interactive window, acquiring a position of the first interactive window on the first screen; When the position satisfies a first preset condition, displaying a second interactive window on the second screen, and gradually moving the screen content from the first interactive window to the second interactive window according to the position; When the position meets the second preset condition, the first interaction window, the second interaction window and the first interaction interface are removed, and the second interaction interface is displayed on the second screen; the second interaction interface displays the screen content.

2. The screen switching method according to claim 1, characterized in that: The step of displaying the second interactive interface on the second screen includes: Acquire application data of the target application, send the application data to the second screen, so that the second screen creates the second interactive interface, renders the application data to the second interactive interface, and displays the second interactive interface.

3. The screen switching method according to claim 2, characterized in that: The step of acquiring application data of the target application, sending the application data to the second screen so that the second screen creates the second interactive interface, rendering the application data to the second interactive interface, and displaying the second interactive interface includes: Acquire an application stack of the target application running on the first screen; Move the application stack to the top of the stack corresponding to the application running on the second screen so that the second screen creates the second interactive interface, obtain application data of the target application from the application stack, render the application data to the second interactive interface, and display the second interactive interface.

4. The screen switching method according to claim 1, characterized in that: Before the step of displaying a second interactive window on the second screen when the position meets a first preset condition and gradually moving the screen content from the first interactive window to the second interactive window according to the position, the method includes: Determining, according to the position, an amount of position change of the first interactive window during the moving process; When the position change is greater than or equal to a first preset threshold, determining that the first preset condition is met; When the position change amount is less than a first preset threshold, it is determined that the first preset condition is not satisfied.

5. The screen switching method according to claim 1, characterized in that: Before the step of displaying a second interactive window on the second screen when the position meets a first preset condition and gradually moving the screen content from the first interactive window to the second interactive window according to the position, the method includes: When the moving position coincides with a preset screen edge of the first screen, determining that the first preset condition is satisfied; When the moving position does not coincide with a preset screen edge of the first screen, it is determined that the first preset condition is not satisfied.

6. The screen switching method according to claim 1, characterized in that: The step of displaying a second interactive window on the second screen when the position meets a first preset condition, and gradually moving the screen content from the first interactive window to the second interactive window according to the position, comprises: According to the position, the size of the first interactive window and the size of the second interactive window are adjusted so that the screen content displayed by the adjusted second interactive window and the screen content displayed by the adjusted first interactive window constitute the screen content of the first interactive window before adjustment.

7. The screen switching method according to claim 6, characterized in that: The step of adjusting the size of the first interactive window and the size of the second interactive window according to the position so that the screen content displayed by the adjusted second interactive window and the screen content displayed by the adjusted first interactive window constitute the screen content of the first interactive window before adjustment, includes: determining a moving direction of the first interactive window; When the first interactive window moves on the first screen according to the moving direction, the size of the first interactive window is reduced according to the position; when the second interactive window moves on the second screen according to the moving direction, the size of the second interactive window is expanded according to the position, so that the sum of the size of the reduced first interactive window and the size of the expanded second interactive window is the size of the first interactive window before reduction.

8. The screen switching method according to claim 7, characterized in that: The step of reducing the size of the first interactive window according to the position includes: Determining, according to the position, an amount of position change of the first interactive window during the moving process; Obtaining a first zoom ratio corresponding to the first interactive window according to a preset first mapping relationship between the position change amount and the zoom ratio; reducing the size of the first interactive window according to the first scaling ratio; The step of enlarging the size of the second interactive window according to the position includes: Obtaining a second zoom ratio corresponding to the second interactive window according to a preset second mapping relationship between the position change amount and the zoom ratio; According to the second scaling ratio, the size of the first interaction window is enlarged.

9. The screen switching method according to claim 4, characterized in that: Before the step of removing the first interactive window, the second interactive window, and the first interactive interface and displaying the second interactive interface on the second screen when the moving position satisfies the second preset condition, the method includes: Obtaining a position change amount of the first interactive window during the moving process; When the position change is greater than or equal to a second preset threshold, it is determined that the second preset condition is met; and the second preset threshold is greater than the first preset threshold; When the position change is less than a second preset threshold, it is determined that the second preset condition is not satisfied.

10. A screen switching device, characterized in that: include: A first interactive interface display module, used to display a first interactive interface of a target application on a first screen; The first interactive interface displays screen content; A first interactive window display module, configured to display a first interactive window on the first screen in response to a screen switching operation; The first interactive window is located on the first interactive interface, and the screen content displayed in the first interactive window is consistent with the screen content displayed in the first interactive interface; a position acquisition module, configured to acquire a position of the first interactive window on the first screen in response to a move operation on the first interactive window; A window moving module, configured to display a second interactive window on a second screen when the position satisfies a first preset condition, and gradually move the screen content from the first interactive window to the second interactive window according to the position; The second interaction interface display module is used to remove the first interaction window, the second interaction window and the first interaction interface when the position meets the second preset condition, and display the second interaction interface on the second screen; the second interaction interface displays the screen content.

11. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the screen switching method as described in any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the screen switching method as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Multi-screen display method, device, equipment and system, cabin body and storage medium

    CN110908625A

  • Method and device for traversing multiple screens of intelligent cockpit application program and electronic equipment

    CN112540716A

  • Interaction method among multiple screens of in-vehicle infotainment device, electronic equipment and vehicle

    CN116560558A

  • Multi-screen interaction method and device, equipment and storage medium

    CN118012368A

  • Secondary single screen mode activation through off-screen gesture area activation

    US20120188185A1