Dual-screen display method and system thereof, and computer-readable storage medium
A dual-screen display and storage medium technology, applied in the direction of computing, digital output to display devices, instruments, etc., can solve the problem of not being able to display only some layers, and achieve the effect of avoiding the copying process and reducing resource consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0087] Please refer to figure 2 , Embodiment 1 of the present invention is: a dual-screen display method based on the Android system, which can display all or part of the layers of the second screen on a preset area on the first screen, including the following steps:
[0088] S1: Create a virtual screen on the preset area of the first screen; specifically, create a virtual screen through the createVirtualDisplay() interface or OverlayDisplay of the Android system, and then set the rendering target of the virtual screen to the preset in the first screen area.
[0089] S2: Determine whether there is a second screen, if yes, execute step S3, if not, execute step S4.
[0090] S3: Set the display stack of the virtual screen as the display stack of the second screen, and then execute step S5; further, if the display stack of the second screen changes, change the display stack of the virtual screen accordingly.
[0091] S4: Set the display stack of the virtual screen as the disp...
Embodiment 2
[0101] This embodiment is a specific application scenario of the foregoing embodiments.
[0102] Assume that screen A (first screen) is a song request screen, screen B (second screen) is a TV screen, and screen C (virtual screen) is a window displayed on song request screen A. The size of the window can be based on user needs Setting, the two application scenarios of this embodiment are as follows:
[0103] 1. At present, half of the TV screen B is displaying the content of a song MV, and the other half is displaying the content of a game; at this time, it can be set to display only the song MV content on the TV screen B synchronously on the screen C, or only display The content of the game, or the complete display of the content of the TV screen B, and the specific content to be displayed on the screen C, can be set in the system by the song ordering application before turning on the screen C.
[0104] 2. The content of the MV is being played on the TV screen B, and at the s...
Embodiment 3
[0106] Please refer to image 3 , the present embodiment is a dual-screen display system based on the Android system corresponding to the above-mentioned embodiments, including a processor 1 and a computer-readable storage medium 2; the processor 1 is suitable for executing each instruction, and the computer-readable storage medium Medium 2 is adapted to store a plurality of instructions adapted to be loaded and executed by a processor:
[0107] Create a virtual screen on a preset area of the first screen;
[0108] setting the display stack of the virtual screen as the display stack of the second screen;
[0109] Obtaining preset layers in the display stack of the virtual screen;
[0110] The preset layers are displayed on the virtual screen.
[0111] Further, before the "setting the display stack of the virtual screen as the display stack of the second screen", it further includes:
[0112] Determine whether there is a second screen;
[0113] If it exists, then execute...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


