WO2020249044A1 - Method for window-level switching, device, equipment, and storage medium - Google Patents

Method for window-level switching, device, equipment, and storage medium Download PDF

Info

Publication number
WO2020249044A1
WO2020249044A1 PCT/CN2020/095594 CN2020095594W WO2020249044A1 WO 2020249044 A1 WO2020249044 A1 WO 2020249044A1 CN 2020095594 W CN2020095594 W CN 2020095594W WO 2020249044 A1 WO2020249044 A1 WO 2020249044A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
display layer
dedicated
task stack
task
Prior art date
Application number
PCT/CN2020/095594
Other languages
French (fr)
Chinese (zh)
Inventor
王家宇
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2020249044A1 publication Critical patent/WO2020249044A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present application relate to the field of data display technology, and in particular, to a method, device, device, and storage medium for switching window levels.
  • the window level of an application is defined as follows: When a user operates a window, the window will switch to the top level. Google has added a window mode to the Android 7.0 system, and the definition of the window level is also consistent with Windows/macOS. However, the window mode of the Android system in the current mobile phone is turned off by default, and the full-screen mode is still used by default, and the current window mode of the Android system is too single to meet the diverse needs of users.
  • the embodiments of the present application provide a method, device, device, and storage medium for window level switching.
  • a method for switching window levels is provided.
  • the at least two display layers include at least two of the following: a non-dedicated display layer, and a top display layer for displaying a top window A dedicated display layer and a dedicated bottom display layer for displaying bottomed windows; the method includes:
  • the target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • the method before switching the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer, the method further includes:
  • the creating the dedicated top display layer or dedicated bottom display layer includes:
  • a corresponding task stack identifier is set for the top task stack or the bottom task stack.
  • the display of at least two windows using the non-dedicated display layer in the window mode includes:
  • the switching of the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer includes:
  • the method further includes:
  • the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack.
  • the method further includes:
  • the corresponding window task in the bottom task stack is switched to the top task stack.
  • the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to the user's corresponding target
  • the operation order of the windows is arranged in order.
  • the determining the target window that needs to be displayed on top or on the bottom includes:
  • the window corresponding to the top operation or bottom operation is determined as the target window.
  • the determining the target window that needs to be displayed on top or on the bottom includes:
  • the determining the target window that needs to be displayed on top or on the bottom includes:
  • the target window is determined.
  • a window level switching device which supports at least two display layers in a window mode, and the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top dedicated display layer for displaying a top window A display layer and a bottom dedicated display layer for displaying bottomed windows; the device includes:
  • the window display module is set to display at least two windows using a non-dedicated display layer in window mode
  • a target window determining module configured to determine a target window that needs to be displayed on the top or on the bottom among the at least two windows
  • the window switching module is configured to switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • an electronic device including: a memory, a display screen with touch function, and one or more processors;
  • the memory is configured to store one or more programs
  • the one or more processors are caused to execute the above-mentioned window level switching method.
  • the electronic device is a smart interactive tablet.
  • a non-volatile storage medium contains a computer program, and when the computer program is executed by a computer processor, the computer program is configured to perform the above-mentioned window level switching method.
  • the target window when at least two windows are displayed in the window mode, the at least two windows are first displayed in the non-dedicated display layer, and it is determined that the at least two windows are required After the target window displayed on top or bottom, the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thereby realizing the window mode Based on the multi-level display of the application, and the target window can be switched between different display layers, it can meet the diverse needs of users.
  • Fig. 1 is a flowchart of a method for switching window levels according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a full-screen mode in window level switching according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a split screen mode in window level switching according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a picture-in-picture mode in window level switching according to an embodiment of the present application
  • FIG. 5 is a first schematic diagram of a window mode in a window level switching according to an embodiment of the present application
  • FIG. 6 is a second schematic diagram of a window mode in a window level switching according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a target window displayed in a window mode in a window level switching according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram 1 of a remote conference scene in window level switching provided according to an embodiment of the present application.
  • FIG. 9 is a second schematic diagram of a remote conference scene in window level switching according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a teacher teaching scene in a window level switching according to an embodiment of the present application.
  • FIG. 11 is a flowchart of a method for switching window levels according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a top display in a method for switching window levels according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of bottom display in a method for switching window levels according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of window task switching in a method for switching window levels according to an embodiment of the present application.
  • FIG. 15 is a flowchart of a method for switching window levels according to an embodiment of the present application.
  • FIG. 16 is a flowchart of a method for switching window levels according to an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a window level switching device according to an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • Fig. 19 is a schematic structural diagram of a non-volatile storage medium according to an embodiment of the present application.
  • the method for window level switching provided in this embodiment can be executed by a window level switching device, which can be implemented by software and/or hardware, and the window level switching device can be composed of two or more physical entities, It can also be composed of a physical entity.
  • the window level switching device can be a part of a computer, a mobile phone, a tablet, a projector, or an interactive smart tablet.
  • the device described by the interactive smart tablet as the window level switching device is taken as an example for description, where the interactive smart tablet can be used to manipulate the content displayed on the display tablet through touch technology and realize human-computer interaction.
  • An integrated device that integrates one or more functions such as electronic whiteboard, audio, and television.
  • the interactive smart tablet establishes a data connection with at least one external device.
  • external devices include but are not limited to: mobile phones, notebook computers, USB flash drives, tablet computers, desktop computers, etc.
  • the communication method of the data connection between the external device and the interactive smart tablet is not limited in the embodiment, and it may be a communication method such as a USB connection, the Internet, a local area network, Bluetooth, Wi-Fi, or ZigBee.
  • the operating system of the interactive smart tablet may include, but is not limited to, Windows, macOS, Android and other operating systems.
  • This embodiment takes the Android operating system as an example for description, but it should be understood that, except for the specific provision for the Android operating system.
  • the functions described below can be applied to other operating systems.
  • FIG. 1 is a flowchart of a window level switching method according to an embodiment of the present application.
  • the window level switching method of the embodiment of the present application may include:
  • step S110 the non-dedicated display layer in the window mode is used to display at least two windows.
  • window mode is one of the modes of application display.
  • the mode of application display can also include full-screen mode, split-screen mode, picture-in-picture mode, etc., among which the window can be called application window, application window .
  • the full-screen mode may be as shown in FIG. 2, where FIG. 2 is a schematic diagram of the full-screen mode in window level switching according to an embodiment of the present application.
  • the window displayed in the full-screen mode is displayed as the largest on the display.
  • General Android systems (such as Android phones) use full-screen mode.
  • the split-screen mode may be as shown in Figure 3, where Figure 3 is a schematic diagram of the split-screen mode in window level switching provided according to an embodiment of the present application.
  • the screen is set to 1:1/1:2/
  • the ratio of 2:1 is divided into two parts, and each part displays a window 1 and window 2, which do not overlap each other.
  • FIG. 4 is a schematic diagram of a picture-in-picture mode in window level switching according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram 1 of a window mode in a window level switch provided according to an embodiment of the present application.
  • each application has a separate window 1, window 2, Window 3 shows that when the user operates a window, the window will switch to the topmost level.
  • Window 5 when the user operates window 3, the window 3 will switch to the topmost layer, as shown in Figure 6, where Fig. 6 is a second schematic diagram of a window mode in window level switching according to an embodiment of the present application.
  • At least two display layers are supported in the window mode, where the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying a top window, and a dedicated top display layer for displaying the top window.
  • the windows of at least two application programs may be displayed in the window mode, and the at least two windows are first displayed in the non-dedicated display layer when opened. For example, in FIG. 5 or FIG. 6, window 1, window 2, and window 3 are located in a non-dedicated display layer for display.
  • the window of the application in this embodiment may include the window of the system application or the window of other non-system applications, which is not limited in this embodiment.
  • Step S120 Determine the target window that needs to be displayed on the top or on the bottom among the at least two windows.
  • the window that needs to be displayed on top or bottom is regarded as The target window.
  • step S120 may further include the following sub-steps:
  • Sub-step S11 detecting the top operation or bottom operation of the user.
  • sub-step S12 the window corresponding to the top operation or bottom operation is determined as the target window.
  • the target window is a window where the user performs a top operation or a bottom operation on at least two windows displayed in the window mode.
  • this embodiment can provide the user with an interface for displaying the window on top or bottom, and the user triggers the interface to trigger the top operation or bottom operation to display the target window on top or bottom.
  • the foregoing interface may specifically be a hardware button or a software icon, which is not limited in this embodiment.
  • window 2 can be used as the target window.
  • FIG. 7 is a schematic diagram of a target window displayed in window mode in a window level switch according to an embodiment of the present application.
  • the toolbar of the target window includes a return button " ⁇ "
  • Tools such as “application title”, “minimize”, “full screen”, “close”, more buttons "!, among which " ⁇ ” is used to execute the system return button;
  • application title refers to the title of the window page ;
  • Minimize means to reduce the application to the taskbar, but does not end the process;
  • “Full screen” means to display the window page in full screen;
  • “Close” means to end the application process;
  • "" means more operations , Including screenshots, horizontal display, top display or bottom display, etc.
  • step S120 may further include the following sub-steps:
  • Sub-step S21 obtaining historical operation records of each window
  • Sub-step S22 judging whether the corresponding window needs to be displayed on the top or on the bottom according to the historical operation record
  • sub-step S23 the window that needs to be displayed on top or bottom is used as the target window.
  • the window it is possible to determine whether the window needs a top operation or a bottom operation based on the historical operation record of each window.
  • the historical operation record of each window can be obtained from the operation log.
  • the historical operation record may include a record of a top operation or a bottom operation. If based on historical operation records, it is determined that the window has been frequently topped or bottomed during a period of time (for example, the number of built-in top operations or bottom operations in a period of time is greater than the preset number of thresholds), then the window can be determined to be performed The target window of the top operation or bottom operation.
  • the historical operation records of windows 1-3 can be obtained respectively. If it is determined based on the historical operation records that the number of bottoming operations in window 1 in a week is greater than the set experience value, window 1 can be used as The window that needs to be displayed at the bottom. For another example, if it is determined based on its historical operation records that the number of times that the window 3 has been topped in a week is greater than the set empirical value, then the window 3 can be used as the window to be displayed on top.
  • This embodiment can automatically determine the target window that needs to be displayed on the top or bottom according to the user's operating habits on each window according to the historical operation record of each window, avoiding the cumbersome steps of requiring the user to manually set the top or bottom of a certain window, and improve The efficiency of window-level operations is improved, and the user experience is improved.
  • step S120 may further include the following sub-steps:
  • Sub-step S31 determining the display size of each window
  • a target window is determined according to the display size and preset hierarchical display rules.
  • the display size of each window it can be determined according to the display size of each window whether the current display window needs to be placed on top or bottom.
  • the smaller size window can be displayed on top of the corner of the display screen, that is, the smaller size window is used as the target to be displayed on top window.
  • the "meeting video window” and "meeting content display window” are opened in window mode on a large-screen device. Since the size of the meeting video window is small, the meeting can be The video window is displayed at the top right corner of the display.
  • This embodiment can automatically determine the target window that needs to be displayed on top or on the bottom in combination with the display size of each window, avoiding the cumbersome steps that require the user to manually set a window on top or bottom, improve the efficiency of window-level operations, and enhance users Experience.
  • step S130 the target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • different levels of display layers in window mode can be displayed hierarchically, for example, the top dedicated display layer is displayed at the top of the screen, the bottom dedicated display layer is displayed at the bottom of the screen, and the dedicated display layer between the top and bottom dedicated display layers is displayed.
  • the middle layer between the display layers displays the non-dedicated display layer.
  • the window of a certain application program needs to be fixed at the top level.
  • the window of the application program will not be covered by other windows.
  • the user opens the "meeting video window” and “meeting content display window” in window mode, then "meeting video window” and “meeting content display window” It is first displayed on the non-dedicated display layer.
  • Fig. 9 is a second schematic diagram of a remote conference scene in window level switching provided according to an embodiment of the present application, so that the user can also see the video of the remote conference when writing the conference record later.
  • the "draft content window”, “teaching PPT window” and “calculator window” are opened in window mode, so that the teacher can display the teaching PPT, On the basis of the tool calculator used in the lecture, some calculation drafts can be written temporarily.
  • the "draft content window”, “teaching PPT window” and “calculator window” are first displayed on the non-dedicated display layer. At this time, if the user is detected to bottom the "draft content window", the "draft content window” can be "Window” as the target window, and switch it from the non-dedicated display layer to the bottom dedicated display layer for display.
  • the “calculator window” can also be switched from a non-dedicated display layer to a dedicated display layer on top for display.
  • the display layer is a logical concept. In fact, for the user, the user has no sense of the display layer, and the user sees a relatively intuitive window-level display.
  • the at least two windows are first displayed in the non-dedicated display layer.
  • the target window can be switched between different display layers to meet the diverse needs of users.
  • FIG. 11 is a flowchart of a method for window level switching provided by the second embodiment of the present application. This embodiment is a more specific description on the basis of the first embodiment above. With reference to FIG. 11, the method for window level switching provided in this embodiment may specifically include:
  • step S210 at least two windows are displayed using the non-dedicated display layer in the window mode.
  • step S210 may further include the following sub-steps:
  • the window tasks corresponding to the at least two windows are added to the window task stack of the window mode.
  • the window task stack is the task stack Stack in the window mode.
  • the task stack Stack corresponds to the TaskStack class in WindowManagerService (WMS for short), and if it is in the ActivityManagerService, it corresponds to the ActivityStack class.
  • the role of the task stack Stack is to manage window tasks, and a Stack contains multiple tasks.
  • Task refers to a series of related ordered Activity collections used to complete a function, which can be understood as a session for a specific function between a user and an application (Application, referred to as App), a window task in this embodiment Task corresponds to a window page.
  • the application can specify which Task the current Activity is running in through android:launchMode in the AndroidManifest.xml file.
  • the non-dedicated display layer in the window mode is used to display at least two windows, which can be implemented as placing the windows Tasks of the at least two windows in the same window task stack, that is, one display layer corresponds to A task stack, a window corresponds to a window task Task.
  • Step S220 It is determined whether the dedicated top display layer or the dedicated bottom display layer has been created.
  • step S240 If yes, go to step S240; if not, go to step S230.
  • the top dedicated display layer may correspond to the top task stack
  • the bottom dedicated display layer may correspond to the bottom task stack.
  • Step S230 Create the top dedicated display layer or bottom dedicated display layer, and continue to perform step S240.
  • step S230 may further include the following sub-steps:
  • a dedicated display layer can be created by creating a target task stack Stack of a dedicated display layer.
  • a task stack identifier for identifying the top or bottom of the created target task stack needs to be set.
  • one of the ways to create a task stack Stack can be to call a task stack creation interface provided by the system to create a task stack Stack.
  • Step S240 Switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • step S240 may further include the following sub-steps:
  • the window task of the target window can be moved from the window task stack to the end of the top task stack.
  • the process of displaying the conference video window on top may include the following steps:
  • the window task of the target window can be moved from the window task stack to the end of the bottom task stack.
  • the process of placing the draft content window at the bottom may include the following steps:
  • the windows corresponding to the tasks can be displayed in different levels.
  • each task stack may include at least two window tasks, and the at least two window tasks are arranged in the task stack according to the order in which the user operates the corresponding target window.
  • this embodiment may allow windows of multiple applications to be placed on different display layers, that is, each task stack may contain multiple window tasks.
  • each task stack may contain multiple window tasks.
  • the sticky note window Task can also be added to the top task stack Stack to add The memo window is displayed on the top dedicated display layer, as shown in FIG. 12, where FIG. 12 is a schematic diagram of the top display in a window level switching method provided according to an embodiment of the present application, which serves as a real-time reminder to the user.
  • FIG. 12 is a schematic diagram of the top display in a window level switching method provided according to an embodiment of the present application, which serves as a real-time reminder to the user.
  • the user needs to play audio when teaching, but the user does not need to display the entire audio playback window on the upper layer. If displayed on the upper layer, the lecture content will be hidden.
  • the audio playback window can be displayed at the bottom, as shown in Figure 13, where Figure 13 is a schematic diagram of the bottom display in a window level switching method provided according to an embodiment of the application, and the audio can also be displayed at the bottom.
  • the play window Task is added to the bottom task stack Stack.
  • the bottom task stack can include multiple window tasks.
  • the window task corresponding to the user's most recently operated target window can be placed at the end of the task stack according to the user's operation sequence on the target window, so that the most recently operated target window is displayed there. Above the target window corresponding to other window tasks in the task stack.
  • FIG. 14 is a schematic diagram of window task switching in a method for window level switching according to an embodiment of the present application.
  • a task stack contains four window tasks Task1-Task4, the current operation target The window is the window corresponding to Task4.
  • Task2 When you switch to the window corresponding to Task2, Task2 will be taken out and placed at the topmost position of the Stack (ie the end of the Stack).
  • the top task stack and bottom task stack are all task stacks in window mode created in this embodiment.
  • This embodiment creates different task stacks based on the window mode by adding top task stacks and bottom task stacks.
  • the hierarchical display layer can enrich the window hierarchy in the window mode, realize the hierarchical display of the application in the window mode, and meet the diverse needs of users.
  • FIG. 15 is a flowchart of a method for window level switching provided by an embodiment of this application. This embodiment describes the process of canceling the top or bottom of the window on the basis of the above embodiment. Referring to FIG. 15, the method for switching the window level provided by this embodiment specifically includes:
  • Step S310 Add window tasks corresponding to at least two windows to the window task stack of the window mode.
  • Step S320 Determine the target window to be displayed on the top or bottom. .
  • Step S330 Determine whether the dedicated top display layer or dedicated bottom display layer has been created; if not, create the dedicated top display layer or dedicated bottom display layer.
  • Step S340 moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
  • Step S350 when it is detected that the user cancels the top or bottom of the target window, move the window task of the target window from the top task stack or the bottom task stack to the window task stack.
  • This embodiment also supports canceling the top or bottom of the window.
  • the corresponding interface type can be updated according to the user's operation. For example, when the user clicks on the top display interface of a window, the interface type of the interface can be changed to a button to cancel the top display. When the user clicks on the bottom display interface of a window, the interface type of the interface can be changed to a button that cancels the bottom display. When the user triggers the button for canceling the top display or the button for canceling the bottom display, it can be determined that an operation of canceling the top or bottom display is detected.
  • the window task of the target window when the user triggers an operation to cancel the top of the target window, the window task of the target window can be moved from the top task stack to the end of the window task stack.
  • the window task of the target window when the user triggers an operation to cancel the bottoming of the target window, the window task of the target window can be moved from the bottoming task stack to the end of the window task stack.
  • the user can trigger the operation of canceling the top or bottom of the target window, so that the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack in this embodiment. , Increase the flexibility of window level switching to meet the more diverse needs of users.
  • FIG. 16 is a flowchart of a method for window level switching provided by an embodiment of the application. This embodiment describes the specific process of window level switching on the basis of the foregoing embodiment. Referring to FIG. 16, the method for window level switching provided in this embodiment specifically includes:
  • Step S410 Add window tasks corresponding to at least two windows to the window task stack of the window mode.
  • Step S420 Determine the target window to be displayed on the top or bottom.
  • Step S430 Determine whether the dedicated top display layer or dedicated bottom display layer has been created; if not, create the dedicated top display layer or dedicated bottom display layer.
  • Step S440 Move the window task of the target window from the window task stack to the top task stack or the bottom task stack.
  • This embodiment can support the switching of window tasks from one task stack to another task stack in the window mode.
  • the user may switch the target window displayed on top to bottom display. At this time, the window task of the target window is extracted from the top task stack and placed at the end of the bottom task stack. In another embodiment, the user can also switch the target window displayed on the bottom to the top display. At this time, the window task of the target window is extracted from the bottom task stack and placed at the end of the top task stack. By switching the window level in window mode, it can meet the more diverse needs of users.
  • HOME_STACK (id:0) is created by default, and the desktop program Task is started. The desktop program Task will be placed in HOME_STACK. There is one and only one Task in the HOME_STACK.
  • window task stack Stack (id: 2) has been created. If the window task stack Stack is not created at this time, the window task stack Stack will be created. If it has been created, then The original window task stack Stack will be reused.
  • the user fixes the target window that has been displayed on the non-dedicated display layer corresponding to the window task stack Stack to the top dedicated display layer/bottom dedicated display layer.
  • the system Before moving the target window to the top dedicated display layer/bottom dedicated display layer, the system first judges whether the top task stack/bottom task stack has been created. If the top task stack/bottom task stack is not created at this time, then The top task stack/bottom task stack will be created. If it has been created, the original top task stack/bottom task stack will be reused.
  • the application Task will move from the window task stack to the end of the top task stack/bottom task stack.
  • FIG. 17 is a schematic structural diagram of a window level switching device provided by an embodiment of the present application.
  • the window level switching device provided in this embodiment specifically includes: a window display module 510, a target window determination module 520, and a first window switching module 530. among them:
  • the window display module 510 is configured to display at least two windows using a non-dedicated display layer in a window mode.
  • At least two display layers are supported in the window mode, and the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying top windows, and a bottom dedicated display layer for displaying bottom windows.
  • Bottom dedicated display layer ;
  • the target window determining module 520 is configured to determine a target window that needs to be displayed on the top or on the bottom among the at least two windows.
  • the first window switching module 530 is configured to switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • the window display module 510, the target window determination module 520, and the first window switching module 530 can be run in the terminal as part of the device, and the functions implemented by the above modules can be executed by the processor in the terminal.
  • the terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), PAD and other terminal devices.
  • the at least two windows are first displayed in a non-dedicated display layer, and it is determined that the at least two windows need to be displayed on top or After the target window displayed on the bottom, the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thus achieving the basis of the window mode ,
  • Application programs are displayed in multiple levels, and the target window can be switched between different display layers, which can meet the diverse needs of users.
  • the foregoing apparatus may further include the following modules:
  • the display layer determination module is configured to determine whether the dedicated top display layer or the dedicated bottom display layer is before switching the target window from the non-dedicated display layer to the dedicated top display layer or dedicated bottom display layer Has been created; if not, call the display layer creation module;
  • the display layer creation module is set to create the dedicated top display layer or the dedicated bottom display layer.
  • the above display layer judgment module and display layer creation module can be run in the terminal as part of the device, and the functions implemented by the above modules can be executed by the processor in the terminal.
  • the display layer creation module may further include the following sub-modules:
  • the task stack creation sub-module is set to create the top task stack or the bottom task stack in the window mode, and set a corresponding task stack identifier for the top task stack or the bottom task stack.
  • the window display module 510 is specifically configured as follows:
  • the first window switching module 530 may further include the following sub-modules:
  • the window task switching submodule is configured to move the window task of the target window from the window task stack to the top task stack or the bottom task stack.
  • window task switching sub-module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
  • the foregoing device further includes the following modules:
  • Instruction cancellation module configured to move the window task of the target window from the top task stack or the bottom task stack to the window task when it is detected that the user cancels the top or bottom of the target window In the stack.
  • the above-mentioned instruction cancellation module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
  • the device further includes a second window switching module configured to:
  • the corresponding window task in the bottom task stack is switched to the top task stack.
  • the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to The user's operations on the corresponding target windows are arranged in order.
  • the above-mentioned second window switching module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
  • the window corresponding to the top operation or bottom operation is determined as the target window.
  • the target window determination module 520 is specifically set as follows:
  • the target window determination module 520 is specifically set as follows:
  • the target window is determined.
  • the window level switching device provided above can be configured to execute the window level switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • each module in the above-mentioned window level switching device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device includes a processor 60, a memory 61, a display screen 62 with a touch function, an input device 63, an output device 64, and a communication device 65.
  • the number of processors 60 in the electronic device may be one or more, and one processor 60 is taken as an example in the figure.
  • the number of memories 61 in the electronic device may be one or more, and one memory 61 is taken as an example in the figure.
  • the processor 60, the memory 61, the display screen 62, the input device 63, the output device 64, and the communication device 65 of the electronic device may be connected by a bus or other methods, and the bus connection is taken as an example in the figure.
  • the electronic device may be a computer, a mobile phone, a tablet, a projector or an interactive smart tablet, etc.
  • the electronic device is an interactive smart tablet as an example for description.
  • the memory 61 can be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the window level switching method described in any embodiment of the present application.
  • the memory 61 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the device, etc.
  • the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the memory 61 may further include a memory remotely provided with respect to the processor 60, and these remote memories may be connected to the device through a network.
  • networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the display screen 62 is a display screen 62 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen.
  • the display screen 62 is set to display data according to instructions of the processor 60, and is also set to receive a touch operation set as the display screen 62, and send corresponding signals to the processor 60 or other devices.
  • the display screen 62 is an infrared screen, it also includes an infrared touch frame, which is arranged around the display screen 62, and it can also be set to receive infrared signals and send the infrared signals to the processor 60 or other equipment.
  • the display screen 62 can perform window display in a window mode, and supports at least two display layers in the window mode.
  • the at least two display layers include at least two of the following: a non-dedicated display layer and a dedicated top display layer for displaying a top window And a dedicated bottom display layer for displaying bottomed windows.
  • the communication device 65 is configured to establish a communication connection with other devices, and it may be a wired communication device and/or a wireless communication device.
  • the input device 63 can be configured to receive input digital or character information, and to generate key signal input related to user settings and function control of the xxx device. It can also be a camera for acquiring images and a pickup device for acquiring audio data.
  • the output device 64 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 63 and the output device 64 can be set according to actual conditions.
  • the processor 60 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the above-mentioned method of window level switching.
  • the target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • processors 60 further implement the following operations:
  • processors 60 further implement the following operations:
  • a corresponding task stack identifier is set for the top task stack or the bottom task stack.
  • processors 60 further implement the following operations:
  • the switching of the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer includes:
  • processors 60 further implement the following operations:
  • the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack.
  • processors 60 further implement the following operations:
  • the corresponding window task in the bottom task stack is switched to the top task stack.
  • the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to The user's operations on the corresponding target windows are arranged in order.
  • processors 60 further implement the following operations:
  • the window corresponding to the top operation or bottom operation is determined as the target window.
  • processors 60 further implement the following operations:
  • processors 60 further implement the following operations:
  • the target window is determined.
  • the embodiment of the present application also provides a non-volatile storage medium, the non-volatile storage medium contains a computer program, and the computer program is used to perform a window level switching method when executed by a computer processor.
  • Fig. 19 is a schematic structural diagram of a non-volatile storage medium according to an embodiment of the present application. As shown in FIG. 19, a program product 190 according to an embodiment of the present application is described, and a computer program is stored thereon, and the program code that implements the following steps when the computer program is executed by a processor:
  • the target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  • the storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the method operations of window level switching as described above, and can also execute the windows provided in any embodiment of the present application.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • the solution provided by the embodiment of the present application can be applied to the process of window level switching.
  • the at least two windows are first displayed in the non-dedicated display layer, and in the at least two windows
  • the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thereby achieving
  • the application program is displayed at multiple levels, and the target window can be switched between different display layers, which can meet the diverse needs of users.

Abstract

A method for window-level switching, a device, equipment, and a storage medium. At least two display layers are supported in a windowed mode, the at least two display layers comprising at least two of the following: a non-dedicated display layer, an always-on-top dedicated display layer used for displaying always-on-top windows, and an always-at-bottom dedicated display layer used for displaying always-at-bottom windows. The method comprises: employing a non-dedicated display layer in a windowed mode to display at least two windows (S110); determining among the at least two windows a target window that needs to be displayed always-on-top or to be displayed always-at-bottom (S120); and switching the target window from the non-dedicated display layer to an always-on-top dedicated display layer or an always-at-bottom dedicated display layer, thus having the target window displayed always-on-top or displayed always-at-bottom (S130).

Description

窗口层级切换的方法、装置、设备和存储介质Method, device, equipment and storage medium for switching window levels
本申请要求于2019年06月13日提交中国专利局、优先权号为201910511353.0、发明名称为“窗口层级切换的方法、装置、设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 13, 2019, the priority number is 201910511353.0, and the invention title is "Method, Apparatus, Device, and Storage Medium for Window Level Switching", all of which are approved The reference is incorporated in this application.
技术领域Technical field
本申请实施例涉及数据显示技术领域,尤其涉及一种窗口层级切换的方法、装置、设备和存储介质。The embodiments of the present application relate to the field of data display technology, and in particular, to a method, device, device, and storage medium for switching window levels.
背景技术Background technique
在目前主流的操作系统中,包括Window/macOS/Android等操作系统,对应用程序的窗口层级都是这样定义的:当用户去操作一个窗口时,该窗口会切换到最顶层。Google在Android 7.0系统中添加了窗口模式,窗口层级的定义也是和Windows/macOS一致。然而,目前手机中的Android系统的窗口模式默认是关闭的,默认使用的还是全屏模式,并且目前Android系统的窗口模式过于单一,不能满足用户多样化的需求。In the current mainstream operating systems, including Window/macOS/Android and other operating systems, the window level of an application is defined as follows: When a user operates a window, the window will switch to the top level. Google has added a window mode to the Android 7.0 system, and the definition of the window level is also consistent with Windows/macOS. However, the window mode of the Android system in the current mobile phone is turned off by default, and the full-screen mode is still used by default, and the current window mode of the Android system is too single to meet the diverse needs of users.
发明内容Summary of the invention
有鉴于此,本申请实施例提供窗口层级切换的方法、装置、设备和存储介质。In view of this, the embodiments of the present application provide a method, device, device, and storage medium for window level switching.
具体地,本申请实施例是通过如下技术方案实现的:Specifically, the embodiments of this application are implemented through the following technical solutions:
第一方面,提供了一种窗口层级切换的方法,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层;所述方法 包括:In the first aspect, a method for switching window levels is provided. In the window mode, at least two display layers are supported, and the at least two display layers include at least two of the following: a non-dedicated display layer, and a top display layer for displaying a top window A dedicated display layer and a dedicated bottom display layer for displaying bottomed windows; the method includes:
采用窗口模式下的非专用显示层显示至少两个窗口;Use the non-dedicated display layer in window mode to display at least two windows;
在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口;Determining a target window that needs to be displayed on the top or on the bottom among the at least two windows;
将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。The target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
可选地,在所述将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层之前,还包括:Optionally, before switching the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer, the method further includes:
判断所述置顶专用显示层或置底专用显示层是否已创建;Determining whether the dedicated top display layer or the dedicated bottom display layer has been created;
若否,则创建所述置顶专用显示层或置底专用显示层。If not, then create the top dedicated display layer or bottom dedicated display layer.
可选地,所述创建所述置顶专用显示层或置底专用显示层,包括:Optionally, the creating the dedicated top display layer or dedicated bottom display layer includes:
创建窗口模式下的置顶任务栈或置底任务栈;Create top task stack or bottom task stack in window mode;
为所述置顶任务栈或所述置底任务栈设置对应的任务栈标识。A corresponding task stack identifier is set for the top task stack or the bottom task stack.
可选地,所述采用窗口模式下的非专用显示层显示至少两个窗口,包括:Optionally, the display of at least two windows using the non-dedicated display layer in the window mode includes:
将所述至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中;Adding window tasks corresponding to the at least two windows to the window task stack of the window mode;
所述将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,包括:The switching of the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer includes:
将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
可选地,所述方法还包括:Optionally, the method further includes:
当检测到用户将所述目标窗口取消置顶或取消置底时,将所述目标窗口的窗口任务从所述置顶任务栈或所述置底任务栈移动至所述窗口任务栈中。When it is detected that the user cancels the top or bottom of the target window, the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack.
可选地,所述方法还包括:Optionally, the method further includes:
当置顶显示的窗口需要置底显示时,将所述置顶任务栈中对应的窗口任务切换至置底任务栈中;When the window displayed on top needs to be displayed on the bottom, switching the corresponding window task in the top task stack to the bottom task stack;
或者,or,
当置底显示的窗口需要置顶显示时,将所述置底任务栈中对应的窗口任务切换至置顶任务栈中。When the window displayed on the bottom needs to be displayed on the top, the corresponding window task in the bottom task stack is switched to the top task stack.
可选地,所述置顶任务栈或所述置底任务栈中包含至少两个窗口任务,所述至少两个窗口任务在所述置顶任务栈或所述置底任务栈中按照用户对对应目标窗口的操作次序顺序排列。Optionally, the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to the user's corresponding target The operation order of the windows is arranged in order.
可选地,所述确定需要置顶显示或置底显示的目标窗口,包括:Optionally, the determining the target window that needs to be displayed on top or on the bottom includes:
检测用户的置顶操作或置底操作;Detect user's top operation or bottom operation;
将所述置顶操作或置底操作对应的窗口确定为所述目标窗口。The window corresponding to the top operation or bottom operation is determined as the target window.
可选地,所述确定需要置顶显示或置底显示的目标窗口,包括:Optionally, the determining the target window that needs to be displayed on top or on the bottom includes:
获取各窗口的历史操作记录;Obtain historical operation records of each window;
根据所述历史操作记录,判断对应的窗口是否需要置顶显示或置底显示;According to the historical operation record, determine whether the corresponding window needs to be displayed on the top or on the bottom;
将需要置顶显示或置底显示的窗口作为目标窗口。Set the window that needs to be displayed on top or bottom as the target window.
可选地,所述确定需要置顶显示或置底显示的目标窗口,包括:Optionally, the determining the target window that needs to be displayed on top or on the bottom includes:
确定各窗口的显示尺寸;Determine the display size of each window;
根据所述显示尺寸以及预置的分层显示规则,确定目标窗口。According to the display size and preset hierarchical display rules, the target window is determined.
第二方面,提供了一种窗口层级切换装置,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层;所述装置包括:In a second aspect, a window level switching device is provided, which supports at least two display layers in a window mode, and the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top dedicated display layer for displaying a top window A display layer and a bottom dedicated display layer for displaying bottomed windows; the device includes:
窗口显示模块,设置为采用窗口模式下的非专用显示层显示至少两个窗口;The window display module is set to display at least two windows using a non-dedicated display layer in window mode;
目标窗口确定模块,设置为在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口;A target window determining module, configured to determine a target window that needs to be displayed on the top or on the bottom among the at least two windows;
窗口切换模块,设置为将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。The window switching module is configured to switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
第三方面,提供了一种电子设备,包括:存储器、具有触摸功能的显示屏以及一个或多个处理器;In a third aspect, an electronic device is provided, including: a memory, a display screen with touch function, and one or more processors;
所述存储器,设置为存储一个或多个程序;The memory is configured to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器执行如上述的窗口层级切换的方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above-mentioned window level switching method.
在其中一个实施例中,所述电子设备为智能交互平板。In one of the embodiments, the electronic device is a smart interactive tablet.
第四方面,提供了一种非易失性存储介质,所述非易失性存储介质包含计算机程序,所述计算机程序在由计算机处理器执行时设置为执行如上述的窗口层级切换的方法。In a fourth aspect, a non-volatile storage medium is provided, the non-volatile storage medium contains a computer program, and when the computer program is executed by a computer processor, the computer program is configured to perform the above-mentioned window level switching method.
上述窗口层级切换的方法、装置、设备和存储介质,当在窗口模式下显示至少两个窗口时,该至少两个窗口首先在非专用显示层内显示,在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口以后,可以将该目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层进行置顶显示或置底显示,以此实现了在窗口模式的基础上,应用程序多层级的显示,并且目标窗口可以在不同的显示层间切换,能够满足用户的多样化需求。In the above method, apparatus, device and storage medium for window level switching, when at least two windows are displayed in the window mode, the at least two windows are first displayed in the non-dedicated display layer, and it is determined that the at least two windows are required After the target window displayed on top or bottom, the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thereby realizing the window mode Based on the multi-level display of the application, and the target window can be switched between different display layers, it can meet the diverse needs of users.
附图说明Description of the drawings
图1是根据本申请实施例提供的一种窗口层级切换的方法的流程图;Fig. 1 is a flowchart of a method for switching window levels according to an embodiment of the present application;
图2是根据本申请实施例提供的一种窗口层级切换中的全屏模式示意图;2 is a schematic diagram of a full-screen mode in window level switching according to an embodiment of the present application;
图3是根据本申请实施例提供的一种窗口层级切换中的分屏模式示意图;FIG. 3 is a schematic diagram of a split screen mode in window level switching according to an embodiment of the present application;
图4是根据本申请实施例提供的一种窗口层级切换中的画中画模式示意图;4 is a schematic diagram of a picture-in-picture mode in window level switching according to an embodiment of the present application;
图5是根据本申请实施例提供的一种窗口层级切换中的窗口模式示意图一;FIG. 5 is a first schematic diagram of a window mode in a window level switching according to an embodiment of the present application;
图6是根据本申请实施例提供的一种窗口层级切换中的窗口模式示意图二;FIG. 6 is a second schematic diagram of a window mode in a window level switching according to an embodiment of the present application;
图7是根据本申请实施例提供的一种窗口层级切换中的在窗口模式下显示的目标窗口示意图;FIG. 7 is a schematic diagram of a target window displayed in a window mode in a window level switching according to an embodiment of the present application;
图8是根据本申请实施例提供的一种窗口层级切换中的远程会议场景示意图一;FIG. 8 is a schematic diagram 1 of a remote conference scene in window level switching provided according to an embodiment of the present application;
图9是根据本申请实施例提供的一种窗口层级切换中的远程会议场景示意图二;FIG. 9 is a second schematic diagram of a remote conference scene in window level switching according to an embodiment of the present application;
图10是根据本申请实施例提供的一种窗口层级切换中的教师授课场景示意图;FIG. 10 is a schematic diagram of a teacher teaching scene in a window level switching according to an embodiment of the present application;
图11是根据本申请实施例提供的一种窗口层级切换的方法的流程图;FIG. 11 is a flowchart of a method for switching window levels according to an embodiment of the present application;
图12是根据本申请实施例提供的一种窗口层级切换的方法中的置顶显示示意图;FIG. 12 is a schematic diagram of a top display in a method for switching window levels according to an embodiment of the present application;
图13是根据本申请实施例提供的一种窗口层级切换的方法中的置底显示示意图;FIG. 13 is a schematic diagram of bottom display in a method for switching window levels according to an embodiment of the present application;
图14是根据本申请实施例提供的一种窗口层级切换的方法中的窗口任务切换示意图;14 is a schematic diagram of window task switching in a method for switching window levels according to an embodiment of the present application;
图15是根据本申请实施例提供的一种窗口层级切换的方法的流程图;FIG. 15 is a flowchart of a method for switching window levels according to an embodiment of the present application;
图16是根据本申请实施例提供的一种窗口层级切换的方法的流程图;FIG. 16 is a flowchart of a method for switching window levels according to an embodiment of the present application;
图17是根据本申请实施例提供的一种窗口层级切换装置的结构示意图;FIG. 17 is a schematic structural diagram of a window level switching device according to an embodiment of the present application;
图18是根据本申请实施例提供的一种电子设备的结构示意图;FIG. 18 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图19是根据本申请实施例的一种非易失性存储介质的结构示意图。Fig. 19 is a schematic structural diagram of a non-volatile storage medium according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。The application will be further described in detail below with reference to the drawings and embodiments. It is understandable that the specific embodiments described here are only used to explain the application, but not to limit the application. In addition, it should be noted that, for ease of description, the drawings only show part but not all of the content related to the present application.
本实施例提供的窗口层级切换的方法可以由窗口层级切换装置执行,该窗口层级切换装置可以通过软件和/或硬件的方式实现,该窗口层级切换装置可以是两个或多个物理实体构成,也可以是一个物理实体构成。该窗口层级切换装置可以是电脑、手机、平板、投影仪或交互智能平板等设备的一部分。在实施例中,以交互智能平板为窗口层级切换装置所述的设备为例进行描述,其中,交互智能平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了电子白板、音响、电视机等一种或多种 功能。The method for window level switching provided in this embodiment can be executed by a window level switching device, which can be implemented by software and/or hardware, and the window level switching device can be composed of two or more physical entities, It can also be composed of a physical entity. The window level switching device can be a part of a computer, a mobile phone, a tablet, a projector, or an interactive smart tablet. In the embodiment, the device described by the interactive smart tablet as the window level switching device is taken as an example for description, where the interactive smart tablet can be used to manipulate the content displayed on the display tablet through touch technology and realize human-computer interaction. An integrated device that integrates one or more functions such as electronic whiteboard, audio, and television.
在本实施例中,交互智能平板与至少一个外部装置建立数据连接。其中,外部装置包括但不限于:手机、笔记本电脑、USB闪存盘、平板电脑及台式电脑等。外部装置与交互智能平板的数据连接的通信方式实施例中不作限定,可以通过USB连接、互联网、局域网、蓝牙、Wi-Fi或紫峰协议(ZigBee)等通信方式。In this embodiment, the interactive smart tablet establishes a data connection with at least one external device. Among them, external devices include but are not limited to: mobile phones, notebook computers, USB flash drives, tablet computers, desktop computers, etc. The communication method of the data connection between the external device and the interactive smart tablet is not limited in the embodiment, and it may be a communication method such as a USB connection, the Internet, a local area network, Bluetooth, Wi-Fi, or ZigBee.
在本实施例中,交互智能平板的操作系统可以包括但不限于Windows、macOS、Android等操作系统,本实施例以Android操作系统为例进行描述,但是应当理解,除了针对Android操作系统而特定提供的功能之外,根据下面的描述的功能可以适用于其他操作系统。In this embodiment, the operating system of the interactive smart tablet may include, but is not limited to, Windows, macOS, Android and other operating systems. This embodiment takes the Android operating system as an example for description, but it should be understood that, except for the specific provision for the Android operating system In addition to the functions described below, the functions described below can be applied to other operating systems.
可选地,图1是根据本申请实施例提供的一种窗口层级切换的方法的流程图,参考图1,本申请实施例的窗口层级切换的方法,可以包括:Optionally, FIG. 1 is a flowchart of a window level switching method according to an embodiment of the present application. Referring to FIG. 1, the window level switching method of the embodiment of the present application may include:
步骤S110,采用窗口模式下的非专用显示层显示至少两个窗口。In step S110, the non-dedicated display layer in the window mode is used to display at least two windows.
其中,窗口模式是应用程序显示的模式之一,除此以外,应用程序显示的模式还可以包括全屏模式、分屏模式、画中画模式等,其中,窗口可以称为应用程序窗口、应用窗口。Among them, window mode is one of the modes of application display. In addition, the mode of application display can also include full-screen mode, split-screen mode, picture-in-picture mode, etc., among which the window can be called application window, application window .
示例性的,全屏模式可以如图2所示,其中,图2是根据本申请实施例提供的一种窗口层级切换中的全屏模式示意图,在全屏模式下显示的窗口在显示器上显示为最大,一般的Android系统(如Android手机)使用的都是全屏模式。Exemplarily, the full-screen mode may be as shown in FIG. 2, where FIG. 2 is a schematic diagram of the full-screen mode in window level switching according to an embodiment of the present application. The window displayed in the full-screen mode is displayed as the largest on the display. General Android systems (such as Android phones) use full-screen mode.
分屏模式可以如图3所示,其中,图3是根据本申请实施例提供的一种窗口层级切换中的分屏模式示意图,在分屏模式下将屏幕以1:1/1:2/2:1的比例分成两部分,各部分分别显示一个窗口1、窗口2,窗口1、窗口2互不重叠。The split-screen mode may be as shown in Figure 3, where Figure 3 is a schematic diagram of the split-screen mode in window level switching provided according to an embodiment of the present application. In the split-screen mode, the screen is set to 1:1/1:2/ The ratio of 2:1 is divided into two parts, and each part displays a window 1 and window 2, which do not overlap each other.
画中画(Picture-in-Picture,简称为PIP)模式可以如图4所示,图4是根据本申请实施例提供的一种窗口层级切换中的画中画模式示意图,在画中画模式下在一个全屏的窗口1上面显示另一个小窗口2。The Picture-in-Picture (PIP) mode may be as shown in FIG. 4. FIG. 4 is a schematic diagram of a picture-in-picture mode in window level switching according to an embodiment of the present application. In the picture-in-picture mode Next, display another small window 2 on top of a full-screen window 1.
窗口模式可以如图5所示,其中,图5是根据本申请实施例提供的一种窗口层级切换中的窗口模式示意图一,在窗口模式下每个应用程序以单独的窗口 1、窗口2、窗口3显示,当用户去操作一个窗口时,该窗口会切换到最顶层,例如,在图5中,当用户操作窗口3时,则窗口3会切换至最顶层,如图6所示,其中,图6是根据本申请实施例提供的一种窗口层级切换中的窗口模式示意图二。The window mode can be shown in FIG. 5, where FIG. 5 is a schematic diagram 1 of a window mode in a window level switch provided according to an embodiment of the present application. In the window mode, each application has a separate window 1, window 2, Window 3 shows that when the user operates a window, the window will switch to the topmost level. For example, in Figure 5, when the user operates window 3, the window 3 will switch to the topmost layer, as shown in Figure 6, where Fig. 6 is a second schematic diagram of a window mode in window level switching according to an embodiment of the present application.
在本实施例中,在窗口模式下支持至少两个显示层,其中该至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层。可选地,在窗口模式下可以显示至少两个应用程序的窗口,且该至少两个窗口在开启时首先在非专用显示层内显示。例如,在图5或图6中,窗口1、窗口2和窗口3位于非专用显示层中进行显示。In this embodiment, at least two display layers are supported in the window mode, where the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying a top window, and a dedicated top display layer for displaying the top window. The bottom dedicated display layer of the bottom window. Optionally, the windows of at least two application programs may be displayed in the window mode, and the at least two windows are first displayed in the non-dedicated display layer when opened. For example, in FIG. 5 or FIG. 6, window 1, window 2, and window 3 are located in a non-dedicated display layer for display.
需要说明的是,该实施例的应用程序的窗口可以包括系统应用程序的窗口或者其他非系统应用程序的窗口,本实施例对此不作限制。It should be noted that the window of the application in this embodiment may include the window of the system application or the window of other non-system applications, which is not limited in this embodiment.
步骤S120,在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口。Step S120: Determine the target window that needs to be displayed on the top or on the bottom among the at least two windows.
在本实施例中,对于在非专用显示层中显示的至少两个窗口,可以对其进行置顶显示或置底显示,本实施例将至少两个窗口中需要置顶显示或置底显示的窗口作为目标窗口。In this embodiment, for at least two windows displayed in the non-dedicated display layer, they can be displayed on top or bottom. In this embodiment, the window that needs to be displayed on top or bottom is regarded as The target window.
在一种可能的实施方式中,步骤S120进一步可以包括如下子步骤:In a possible implementation, step S120 may further include the following sub-steps:
子步骤S11,检测用户的置顶操作或置底操作。Sub-step S11, detecting the top operation or bottom operation of the user.
子步骤S12,将所述置顶操作或置底操作对应的窗口确定为所述目标窗口。In sub-step S12, the window corresponding to the top operation or bottom operation is determined as the target window.
在本实施例中,目标窗口为用户对窗口模式下显示的至少两个窗口执行置顶操作或置底操作的窗口。在具体实现中,本实施例可以提供将窗口置顶显示或置底显示的接口给用户,用户通过触发该接口以触发置顶操作或置底操作,从而将目标窗口置顶显示或置底显示。需要说明的是,上述接口具体可以是一个硬件的按钮,或者软件的图标,本实施例对此不做限定。In this embodiment, the target window is a window where the user performs a top operation or a bottom operation on at least two windows displayed in the window mode. In a specific implementation, this embodiment can provide the user with an interface for displaying the window on top or bottom, and the user triggers the interface to trigger the top operation or bottom operation to display the target window on top or bottom. It should be noted that the foregoing interface may specifically be a hardware button or a software icon, which is not limited in this embodiment.
例如,在图5中,若用户对窗口2触发置顶操作,则可以将窗口2作为目标窗口。For example, in FIG. 5, if the user triggers a topping operation on window 2, window 2 can be used as the target window.
又例如,图7是根据本申请实施例提供的一种窗口层级切换中的在窗口模 式下显示的目标窗口示意图,如图7所示,该目标窗口的工具栏中包括返回按键“<”、“应用标题”、“最小化”、“全屏”、“关闭”、更多按键“…”等工具,其中,“<”用于执行系统返回按钮;“应用标题”指的是窗口页面的标题;“最小化”是指将应用缩小至任务栏,但不结束进程;“全屏”指的是将窗口页面全屏显示;“关闭”指的是结束应用进程;“…”指的是更多操作,包括截屏、横屏显示、置顶显示或置底显示等操作。当用户点击置顶显示按钮时,则判定为检测到置顶操作;当用户点击置底显示按钮时,则判定为检测到置底操作。For another example, FIG. 7 is a schematic diagram of a target window displayed in window mode in a window level switch according to an embodiment of the present application. As shown in FIG. 7, the toolbar of the target window includes a return button "<", Tools such as "application title", "minimize", "full screen", "close", more buttons "...", among which "<" is used to execute the system return button; "application title" refers to the title of the window page ; "Minimize" means to reduce the application to the taskbar, but does not end the process; "Full screen" means to display the window page in full screen; "Close" means to end the application process; "..." means more operations , Including screenshots, horizontal display, top display or bottom display, etc. When the user clicks the top display button, it is determined that the top operation is detected; when the user clicks the bottom display button, it is determined that the bottom operation is detected.
在另一种可能的实施方式中,步骤S120进一步可以包括如下子步骤:In another possible implementation manner, step S120 may further include the following sub-steps:
子步骤S21,获取各窗口的历史操作记录;Sub-step S21, obtaining historical operation records of each window;
子步骤S22,根据所述历史操作记录,判断对应的窗口是否需要置顶显示或置底显示;Sub-step S22, judging whether the corresponding window needs to be displayed on the top or on the bottom according to the historical operation record;
子步骤S23,将需要置顶显示或置底显示的窗口作为目标窗口。In sub-step S23, the window that needs to be displayed on top or bottom is used as the target window.
在本实施例中,可以根据各窗口的历史操作记录来判断该窗口是否需要置顶操作或置底操作。在实现时,可以从操作日志中获取各窗口的历史操作记录,示例性地,该历史操作记录可以包括置顶操作或置底操作的记录。如果根据历史操作记录,判定该窗口一段时间内频繁被置顶操作或置底操作(例如,一段时间内置顶操作或置底操作的次数大于预设次数阈值),则可以将该窗口确定为需要进行置顶操作或置底操作的目标窗口。In this embodiment, it is possible to determine whether the window needs a top operation or a bottom operation based on the historical operation record of each window. During implementation, the historical operation record of each window can be obtained from the operation log. For example, the historical operation record may include a record of a top operation or a bottom operation. If based on historical operation records, it is determined that the window has been frequently topped or bottomed during a period of time (for example, the number of built-in top operations or bottom operations in a period of time is greater than the preset number of thresholds), then the window can be determined to be performed The target window of the top operation or bottom operation.
例如,在图6中,可以分别获取窗口1-3的历史操作记录,如果根据其历史操作记录判断窗口1一周内被进行置底操作的次数大于设定的经验值,则可以将窗口1作为需要置底显示的窗口。又如,如果根据其历史操作记录判断窗口3一周内被进行置顶操作的次数大于设定的经验值,则可以将窗口3作为需要置顶显示的窗口。For example, in Figure 6, the historical operation records of windows 1-3 can be obtained respectively. If it is determined based on the historical operation records that the number of bottoming operations in window 1 in a week is greater than the set experience value, window 1 can be used as The window that needs to be displayed at the bottom. For another example, if it is determined based on its historical operation records that the number of times that the window 3 has been topped in a week is greater than the set empirical value, then the window 3 can be used as the window to be displayed on top.
本实施例可以结合用户对各窗口的操作习惯,根据各窗口的历史操作记录自动确定需要置顶显示或置底显示的目标窗口,避免了需要用户手动置顶或置底某个窗口的繁琐步骤,提升了窗口层级操作的效率,提升了用户体验。This embodiment can automatically determine the target window that needs to be displayed on the top or bottom according to the user's operating habits on each window according to the historical operation record of each window, avoiding the cumbersome steps of requiring the user to manually set the top or bottom of a certain window, and improve The efficiency of window-level operations is improved, and the user experience is improved.
在又一种可能的实施方式中,步骤S120进一步可以包括如下子步骤:In another possible implementation manner, step S120 may further include the following sub-steps:
子步骤S31,确定各窗口的显示尺寸;Sub-step S31, determining the display size of each window;
子步骤S32,根据所述显示尺寸以及预置的分层显示规则,确定目标窗口。In sub-step S32, a target window is determined according to the display size and preset hierarchical display rules.
在本实施例中,可以根据各窗口的显示尺寸来判断当前显示窗口是否需要进行置顶操作或置底操作。示例性地,如果当前显示的窗口的尺寸较大,其他窗口的尺寸较小,则可以将较小尺寸的窗口置顶显示在显示屏的角落处,即将较小尺寸的窗口作为需要置顶显示的目标窗口。例如,如图8所示的远程会议场景示意图,在大屏设备上,以窗口模式开启“会议视频窗口”和“会议内容展示窗口”,由于会议视频窗口的尺寸较小,则可以将该会议视频窗口置顶显示在显示屏的右上角。本实施例可以结合各窗口的显示尺寸自动确定需要置顶显示或置底显示的目标窗口,避免了需要用户手动置顶或置底某个窗口的繁琐步骤,提升了窗口层级操作的效率,提升了用户体验。In this embodiment, it can be determined according to the display size of each window whether the current display window needs to be placed on top or bottom. Exemplarily, if the size of the currently displayed window is larger and the sizes of other windows are smaller, the smaller size window can be displayed on top of the corner of the display screen, that is, the smaller size window is used as the target to be displayed on top window. For example, as shown in the schematic diagram of the remote meeting scene shown in Figure 8, the "meeting video window" and "meeting content display window" are opened in window mode on a large-screen device. Since the size of the meeting video window is small, the meeting can be The video window is displayed at the top right corner of the display. This embodiment can automatically determine the target window that needs to be displayed on top or on the bottom in combination with the display size of each window, avoiding the cumbersome steps that require the user to manually set a window on top or bottom, improve the efficiency of window-level operations, and enhance users Experience.
需要说明的是,上述示例性地描述了确定需要置顶显示或置底显示的目标窗口的几种方式,但本实施例并不限于上述的方式,本实施例还可以根据实际需求采用其他方式来确定目标窗口,此处不再一一举例说明。It should be noted that the above exemplarily describes several ways to determine the target window that needs to be displayed on top or bottom, but this embodiment is not limited to the above method, and this embodiment can also adopt other methods according to actual needs. Determine the target window, no more examples here.
步骤S130,将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。In step S130, the target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
在一个例子中,窗口模式下不同层级的显示层可以分层显示,例如,在屏幕顶层显示置顶专用显示层、在屏幕底层显示置底专用显示层以及在介于置顶专用显示层以及置底专用显示层之间的中间层显示非专用显示层。In one example, different levels of display layers in window mode can be displayed hierarchically, for example, the top dedicated display layer is displayed at the top of the screen, the bottom dedicated display layer is displayed at the bottom of the screen, and the dedicated display layer between the top and bottom dedicated display layers is displayed. The middle layer between the display layers displays the non-dedicated display layer.
当在窗口模式下开启一个应用程序的窗口时,可以首先将该应用程序的窗口显示于非专用显示层,然后判断各窗口是否需要置顶显示或置底显示,并将需要置顶显示或置底显示的窗口切换至置顶专用显示层或置底专用显示层进行显示。When opening an application window in window mode, you can first display the application window on the non-dedicated display layer, and then determine whether each window needs to be displayed on top or bottom, and needs to be displayed on top or bottom Switch to the top dedicated display layer or bottom dedicated display layer for display.
在一种示例中,假设确定某个应用程序的窗口需要固定在最顶层,当操作其他窗口的时候,该应用程序的窗口不会被其他窗口所遮盖住。例如,如图8所示的远程会议场景示意图,在大屏设备上,用户以窗口模式开启“会议视频窗口”和“会议内容展示窗口”,则“会议视频窗口”和“会议内容展 示窗口”首先显示于非专用显示层,若检测到用户对“会议视频窗口”进行置顶操作,则可以将该“会议视频窗口”作为目标窗口由非专用显示层切换至置顶专用显示层进行显示,如图9所示,其中,图9是根据本申请实施例提供的一种窗口层级切换中的远程会议场景示意图二,这样用户在后面书写会议记录时,也能看到远端会议的视频。In an example, it is assumed that it is determined that the window of a certain application program needs to be fixed at the top level. When other windows are operated, the window of the application program will not be covered by other windows. For example, as shown in the schematic diagram of the remote meeting scene shown in Figure 8, on a large-screen device, the user opens the "meeting video window" and "meeting content display window" in window mode, then "meeting video window" and "meeting content display window" It is first displayed on the non-dedicated display layer. If it is detected that the user has performed the top operation of the "meeting video window", the "meeting video window" can be used as the target window to switch from the non-dedicated display layer to the dedicated top display layer for display, as shown in the figure As shown in Fig. 9, Fig. 9 is a second schematic diagram of a remote conference scene in window level switching provided according to an embodiment of the present application, so that the user can also see the video of the remote conference when writing the conference record later.
在另一种示例中,假设当前同时开启多个应用程序窗口,若确定某个窗口需要固定在最底层,当操作该窗口的时候,不会遮盖住其他的应用窗口。例如,如图10所示的教师授课场景示意图,在大屏设备上,以窗口模式开启“草稿内容窗口”、“授课PPT窗口”以及“计算器窗口”,使得教师在正常展示授课的PPT、授课使用到的工具计算器的基础上,能够临时书写一些计算草稿的内容。则“草稿内容窗口”、“授课PPT窗口”以及“计算器窗口”首先显示于非专用显示层,此时若检测到用户对“草稿内容窗口”进行置底操作,则可以将该“草稿内容窗口”作为目标窗口,且将其由非专用显示层切换至置底专用显示层进行显示。In another example, assuming that multiple application windows are currently open at the same time, if it is determined that a certain window needs to be fixed at the bottom layer, when the window is operated, other application windows will not be covered. For example, as shown in the schematic diagram of the teacher's teaching scene shown in Figure 10, on the large-screen device, the "draft content window", "teaching PPT window" and "calculator window" are opened in window mode, so that the teacher can display the teaching PPT, On the basis of the tool calculator used in the lecture, some calculation drafts can be written temporarily. The "draft content window", "teaching PPT window" and "calculator window" are first displayed on the non-dedicated display layer. At this time, if the user is detected to bottom the "draft content window", the "draft content window" can be "Window" as the target window, and switch it from the non-dedicated display layer to the bottom dedicated display layer for display.
当然,若用户希望“计算器窗口”一直显示在最顶层,也可以将“计算器窗口”由非专用显示层切换至置顶专用显示层进行显示。Of course, if the user wants the "calculator window" to be always displayed at the top level, the "calculator window" can also be switched from a non-dedicated display layer to a dedicated display layer on top for display.
需要说明的是,显示层为逻辑上的概念,实际上对于用户而言,用户对显示层的层级是无感的,用户看到的是比较直观的窗口层级的显示。It should be noted that the display layer is a logical concept. In fact, for the user, the user has no sense of the display layer, and the user sees a relatively intuitive window-level display.
本申请实施例提供的技术方案,当在窗口模式下显示至少两个窗口时,该至少两个窗口首先在非专用显示层内显示,在确定需要置顶显示或置底显示的目标窗口以后,可以将该目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层进行置顶显示或置底显示,以此实现了在窗口模式的基础上,应用程序多层级的显示,并且目标窗口可以在不同的显示层间切换,能够满足用户的多样化需求。In the technical solution provided by the embodiments of the present application, when at least two windows are displayed in the window mode, the at least two windows are first displayed in the non-dedicated display layer. After determining the target window that needs to be displayed on the top or bottom, you can Switch the target window from the non-dedicated display layer to the dedicated top display layer or dedicated bottom display layer for top display or bottom display, thereby achieving multi-level display of the application on the basis of the window mode, and The target window can be switched between different display layers to meet the diverse needs of users.
图11为本发明本申请实施例二实施例提供的一种窗口层级切换的方法的流程图。本实施例是在上述实施例一实施例的基础上进行更具体的说明,参考图11,本实施例提供的窗口层级切换的方法具体可以包括:FIG. 11 is a flowchart of a method for window level switching provided by the second embodiment of the present application. This embodiment is a more specific description on the basis of the first embodiment above. With reference to FIG. 11, the method for window level switching provided in this embodiment may specifically include:
步骤S210,采用窗口模式下的非专用显示层显示至少两个窗口。In step S210, at least two windows are displayed using the non-dedicated display layer in the window mode.
在一种可能的实施方式中,步骤S210进一步可以包括如下子步骤:In a possible implementation manner, step S210 may further include the following sub-steps:
将所述至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中。The window tasks corresponding to the at least two windows are added to the window task stack of the window mode.
其中,窗口任务栈为窗口模式的任务栈Stack。Among them, the window task stack is the task stack Stack in the window mode.
可选地,任务栈Stack对应于WindowManagerService(简称WMS)中的TaskStack类,如果是在ActivityManagerService,则对应ActivityStack类。任务栈Stack的作用是管理窗口任务Task,一个Stack中包含了多个Task。其中,Task指的是用于完成一个功能的一系列相关的有序Activity集合,可以理解为用户与应用(Application,简称为App)之间对于特定功能的一次会话,本实施例中一个窗口任务Task对应于一个窗口页面。在实现时,应用程序可以在AndroidManifest.xml文件中通过android:launchMode指定当前Activity运行在哪一个Task中。Optionally, the task stack Stack corresponds to the TaskStack class in WindowManagerService (WMS for short), and if it is in the ActivityManagerService, it corresponds to the ActivityStack class. The role of the task stack Stack is to manage window tasks, and a Stack contains multiple tasks. Among them, Task refers to a series of related ordered Activity collections used to complete a function, which can be understood as a session for a specific function between a user and an application (Application, referred to as App), a window task in this embodiment Task corresponds to a window page. In the implementation, the application can specify which Task the current Activity is running in through android:launchMode in the AndroidManifest.xml file.
在Android系统中,可以定义如下静态的任务栈Stack,分别是:In the Android system, you can define the following static task stack Stack, which are:
(1)桌面Stack,StackId=0,该Stack只有一个Task,即只有一个应用程序,该应用程序就是系统桌面程序。(1) Desktop Stack, StackId=0, the Stack has only one Task, that is, only one application, and the application is the system desktop program.
(2)全屏模式Stack,StackId=1,该Stack用于容纳所有全屏显示的Task。(2) Full-screen mode Stack, StackId=1, the Stack is used to accommodate all tasks displayed in full-screen.
(3)窗口模式Stack,StackId=2,该Stack用于容纳所有以窗口显示的Task。(3) Window mode Stack, StackId=2, this Stack is used to accommodate all tasks displayed in windows.
(4)分屏模式Stack,StackId=3,该Stack用于容纳所有分屏显示的Task。(4) Split screen mode Stack, StackId=3, this Stack is used to accommodate all tasks displayed in split screen.
(5)画中画模式Stack,StackId=4,该Stack用于容纳画中画显示的Task。(5) Picture-in-picture mode Stack, StackId=4, this Stack is used to accommodate tasks for picture-in-picture display.
(6)最近应用Stack,StackId=5,该Stack用于所用最近打开过的Task。(6) Recently applied Stack, StackId=5, this Stack is used for the recently opened Task.
本实施例中窗口任务栈为StackId=2的窗口模式的Stack。In this embodiment, the window task stack is a window mode Stack with StackId=2.
在本实施例中,采用窗口模式下的非专用显示层显示至少两个窗口,可以实现为,将该至少两个窗口的窗口Task放置在同一个窗口任务栈中,即,一个显示层对应于一个任务栈,一个窗口对应于一个窗口任务Task。In this embodiment, the non-dedicated display layer in the window mode is used to display at least two windows, which can be implemented as placing the windows Tasks of the at least two windows in the same window task stack, that is, one display layer corresponds to A task stack, a window corresponds to a window task Task.
在本申请实施例中,将窗口对应的窗口任务默认添加到窗口模式StackId=2的窗口任务栈中,以实现窗口模式的默认开启,可以满足用户以窗口模式显示应用程序窗口的需求。In the embodiment of the present application, the window task corresponding to the window is added to the window task stack of the window mode StackId=2 by default to realize the default opening of the window mode, which can meet the user's requirement of displaying application windows in the window mode.
步骤S220,判断所述置顶专用显示层或置底专用显示层是否已创建。Step S220: It is determined whether the dedicated top display layer or the dedicated bottom display layer has been created.
若是,则执行步骤S240;若否,则执行步骤S230。If yes, go to step S240; if not, go to step S230.
作为一种示例,置顶专用显示层可以对应于置顶任务栈,置底专用显示层可以对应于置底任务栈。As an example, the top dedicated display layer may correspond to the top task stack, and the bottom dedicated display layer may correspond to the bottom task stack.
可选地,本实施例可以定义置顶任务栈的StackId=6,用于容纳顶层显示的窗口的Task;定义置底任务栈的StackId=7,用于容纳底层显示的窗口的Task。Optionally, this embodiment may define StackId=6 of the top task stack, which is used to accommodate the tasks of the windows displayed on the top layer; define StackId=7 of the bottom task stack, which is used to accommodate the tasks of windows displayed on the bottom layer.
在一种实施方式中,可以通过查找置顶任务栈或置底任务栈的StackId是否存在的方式来判断置顶任务栈或置底任务栈是否已创建。可选地,假设系统定义置顶任务栈的StackId=6,置底任务栈的StackId=7,则可以在已创建的所有任务栈的StackId中查找StackId=6或StackId=7的任务栈,若查找到StackId=6的任务栈,则表示置顶任务栈已经创建,即置顶专用显示层已创建。若查找到StackId=7的任务栈,则表示置底任务栈已经创建,即置底专用显示层已创建。否则,若没有查找到该StackId=6或StackId=7的任务栈,则表示置顶专用显示层或置底专用显示层还没有创建。In an implementation manner, it can be determined whether the top task stack or the bottom task stack has been created by searching whether the StackId of the top task stack or the bottom task stack exists. Optionally, assuming that the system defines StackId=6 for the top task stack and StackId=7 for the bottom task stack, the task stack with StackId=6 or StackId=7 can be found in the StackId of all the created task stacks. To the task stack with StackId=6, it means that the top task stack has been created, that is, the top dedicated display layer has been created. If a task stack with StackId=7 is found, it means that the bottom task stack has been created, that is, the bottom dedicated display layer has been created. Otherwise, if the task stack with StackId=6 or StackId=7 is not found, it means that the top dedicated display layer or bottom dedicated display layer has not been created.
步骤S230,创建所述置顶专用显示层或置底专用显示层,并继续执行步骤S240。Step S230: Create the top dedicated display layer or bottom dedicated display layer, and continue to perform step S240.
在本申请实施例的一种优选实施例中,步骤S230进一步可以包括如下子步骤:In a preferred embodiment of the embodiment of the present application, step S230 may further include the following sub-steps:
创建窗口模式下的置顶任务栈或置底任务栈;为所述置顶任务栈或置底任务栈设置对应的任务栈标识。Create a top task stack or bottom task stack in the window mode; set a corresponding task stack identifier for the top task stack or bottom task stack.
在具体实现中,可以通过创建专用显示层的目标任务栈Stack来创建专用显示层,同时还需要为创建的目标任务栈设置用于标识置顶或置底的任务栈标识。In a specific implementation, a dedicated display layer can be created by creating a target task stack Stack of a dedicated display layer. At the same time, a task stack identifier for identifying the top or bottom of the created target task stack needs to be set.
例如,创建窗口模式下的置顶任务栈,并为该置顶任务栈设置任务栈标识StackId=6;创建窗口模式下的置底任务栈,并为该置底任务栈设置任务栈标识StackId=7。For example, create a top task stack in window mode, and set a task stack identifier StackId=6 for the top task stack; create a bottom task stack in window mode, and set a task stack identifier StackId=7 for the bottom task stack.
在本实施例中,其中一种创建任务栈Stack的方式可以为调用系统提供的任务栈创建接口来创建任务栈Stack。In this embodiment, one of the ways to create a task stack Stack can be to call a task stack creation interface provided by the system to create a task stack Stack.
步骤S240,将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。Step S240: Switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
在本申请实施例的一种优选实施例中,步骤S240进一步可以包括如下子步骤:In a preferred embodiment of the embodiment of the present application, step S240 may further include the following sub-steps:
将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
在一种示例中,当判断某个窗口为需要置顶显示的目标窗口时,则可以将目标窗口的窗口任务从窗口任务栈移动至置顶任务栈的尾部。例如,针对实施例中图8的例子,将会议视频窗口进行置顶显示的过程可以包括如下步骤:In an example, when it is determined that a certain window is a target window that needs to be displayed on top, the window task of the target window can be moved from the window task stack to the end of the top task stack. For example, for the example of FIG. 8 in the embodiment, the process of displaying the conference video window on top may include the following steps:
S1、用户以窗口模式开启“会议视频窗口”和“会议内容展示窗口”,则对应的“会议视频窗口Task”和“会议内容展示窗口Task”都会默认添加到StackId=2的窗口任务栈;S1. When the user opens the "conference video window" and "conference content display window" in window mode, the corresponding "conference video window Task" and "conference content display window Task" will be added to the window task stack with StackId=2 by default;
S2、当用户把“会议视频窗口”标记为最顶层时,则将“会议视频窗口Task”从窗口任务栈移动到StackId=6的置顶任务栈的尾部,以实现会议视频窗口在置顶显示层中显示。S2. When the user marks the "meeting video window" as the topmost layer, move the "meeting video window Task" from the window task stack to the end of the top task stack with StackId=6, so as to realize the meeting video window in the top display layer display.
在另一种示例中,当判断某个窗口为需要置底显示的目标窗口时,则可以将目标窗口的窗口任务从窗口任务栈移动至置底任务栈的尾部。例如,针对实施例中图10的例子,将草稿内容窗口置底的过程可以包括如下步骤:In another example, when it is determined that a certain window is a target window that needs to be displayed on the bottom, the window task of the target window can be moved from the window task stack to the end of the bottom task stack. For example, for the example of FIG. 10 in the embodiment, the process of placing the draft content window at the bottom may include the following steps:
S1、用户以窗口模式开启“草稿内容窗口”、“授课PPT窗口”以及“计算器窗口”,则“草稿内容窗口Task”、“授课PPT窗口Task”和“计算器窗口Task”都会默认添加到StackId=2的窗口任务栈;S1. The user opens the "draft content window", "teaching PPT window" and "calculator window" in window mode, then "draft content window Task", "teaching PPT window Task" and "calculator window Task" will be added by default Window task stack with StackId=2;
S2、当用户把“草稿内容窗口”标记为最底层时,则将“草稿内容窗口Task”从窗口任务栈移动到StackId=7的置底任务栈的尾部。S2. When the user marks the "draft content window" as the bottommost layer, move the "draft content window Task" from the window task stack to the end of the bottom task stack with StackId=7.
当然,若用户希望“计算器窗口”一直显示在最顶层,也可以将“计算器窗口Task”从窗口任务栈移动到StackId=6的置顶任务栈的尾部。Of course, if the user wants the "calculator window" to be always displayed at the top level, the "calculator window Task" can also be moved from the window task stack to the end of the top task stack with StackId=6.
需要说明的是,当确定了各窗口的窗口层级以后,在操作系统切换至窗口模式时,可以先渲染置底专用显示层的窗口,即置底任务栈(StackId=7)中的窗口任务对应的窗口;再渲染非专用显示层的窗口,即窗口任务栈(StackId=2)中的窗口任务对应的窗口;最后渲染置顶专用显示层的窗口,即置顶任务栈(StackId=6)中的窗口任务对应的窗口,以此实现不同层级的窗口的显示。It should be noted that after determining the window level of each window, when the operating system switches to window mode, the window of the bottom dedicated display layer can be rendered first, that is, the window task in the bottom task stack (StackId=7) corresponds to Then render the window of the non-dedicated display layer, that is, the window corresponding to the window task in the window task stack (StackId = 2); finally render the window of the dedicated display layer on top, that is, the window in the top task stack (StackId = 6) The windows corresponding to the tasks can be displayed in different levels.
在本实施例中,各任务栈中可以包含至少两个窗口任务,该至少两个窗口任务在该任务栈中按照用户对对应目标窗口的操作次序顺序排列。In this embodiment, each task stack may include at least two window tasks, and the at least two window tasks are arranged in the task stack according to the order in which the user operates the corresponding target window.
可选地,本实施例可以允许多个应用程序的窗口置于不同的显示层,即各任务栈中可以包含多个窗口任务。例如,针对上述实施例中图8的例子,假设用户还使用便签记录每天/每周的议程,并将该便签窗口置顶显示,则还可以将便签窗口Task添加到置顶任务栈Stack中,以将便签窗口显示在置顶专用显示层,如图12所示,其中,图12是根据本申请实施例提供的一种窗口层级切换的方法中的置顶显示示意图,起到实时提醒用户的功能。又如,针对上述实施例中图10的例子,用户在授课时,需要播放音频,但是用户不需要把整个音频播放的窗口显示在上层,如果显示在上层会遮住授课内容。这个时候就可以将音频播放的窗口置底显示,如图13所示,其中,图13是根据本申请实施例提供的一种窗口层级切换的方法中的置底显示示意图,则还可以将音频播放窗口Task添加到置底任务栈Stack中。在这种情况下,置底任务栈中可以包括多个窗口任务。Optionally, this embodiment may allow windows of multiple applications to be placed on different display layers, that is, each task stack may contain multiple window tasks. For example, for the example of Figure 8 in the above embodiment, suppose the user also uses the sticky note to record the daily/weekly agenda and displays the sticky note window on top, then the sticky note window Task can also be added to the top task stack Stack to add The memo window is displayed on the top dedicated display layer, as shown in FIG. 12, where FIG. 12 is a schematic diagram of the top display in a window level switching method provided according to an embodiment of the present application, which serves as a real-time reminder to the user. For another example, for the example shown in FIG. 10 in the above embodiment, the user needs to play audio when teaching, but the user does not need to display the entire audio playback window on the upper layer. If displayed on the upper layer, the lecture content will be hidden. At this time, the audio playback window can be displayed at the bottom, as shown in Figure 13, where Figure 13 is a schematic diagram of the bottom display in a window level switching method provided according to an embodiment of the application, and the audio can also be displayed at the bottom. The play window Task is added to the bottom task stack Stack. In this case, the bottom task stack can include multiple window tasks.
针对包含多个窗口任务的任务栈,可以根据用户对目标窗口的操作顺序,将用户最近操作的目标窗口对应的窗口任务置于该任务栈的尾部,以使得该最近操作的目标窗口显示于该任务栈中的其他窗口任务对应的目标窗口之上。For a task stack containing multiple window tasks, the window task corresponding to the user's most recently operated target window can be placed at the end of the task stack according to the user's operation sequence on the target window, so that the most recently operated target window is displayed there. Above the target window corresponding to other window tasks in the task stack.
例如,图14是根据本申请实施例提供的一种窗口层级切换的方法中的窗口任务切换示意图,如图14所示,假设某任务栈中包含Task1-Task4四个窗口任务,当前操作的目标窗口是Task4对应的窗口,当切换到操作Task2对应的窗口时,会将Task2取出,重新放到Stack最顶层位置(即Stack的尾部)。For example, FIG. 14 is a schematic diagram of window task switching in a method for window level switching according to an embodiment of the present application. As shown in FIG. 14, assuming that a task stack contains four window tasks Task1-Task4, the current operation target The window is the window corresponding to Task4. When you switch to the window corresponding to Task2, Task2 will be taken out and placed at the topmost position of the Stack (ie the end of the Stack).
本申请实施例提供的技术方案,置顶任务栈以及置底任务栈均为本实施例创建的窗口模式的任务栈,本实施例通过添加基于窗口模式的置顶任务栈以及置底任务栈来创建不同层级的显示层,可以丰富窗口模式中的窗口层级,实现应用程序在窗口模式下分层级显示,满足用户的多样化需求。In the technical solutions provided in the embodiments of this application, the top task stack and bottom task stack are all task stacks in window mode created in this embodiment. This embodiment creates different task stacks based on the window mode by adding top task stacks and bottom task stacks. The hierarchical display layer can enrich the window hierarchy in the window mode, realize the hierarchical display of the application in the window mode, and meet the diverse needs of users.
图15为本申请实施例提供的一种窗口层级切换的方法的流程图。本实施例是在上述实施例的基础上对窗口取消置顶或取消置底的过程进行了说明,参考图15,本实施例提供的窗口层级切换的方法具体包括:FIG. 15 is a flowchart of a method for window level switching provided by an embodiment of this application. This embodiment describes the process of canceling the top or bottom of the window on the basis of the above embodiment. Referring to FIG. 15, the method for switching the window level provided by this embodiment specifically includes:
步骤S310,将至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中。Step S310: Add window tasks corresponding to at least two windows to the window task stack of the window mode.
步骤S320,确定需要置顶显示或置底显示的目标窗口。。Step S320: Determine the target window to be displayed on the top or bottom. .
步骤S330,判断所述置顶专用显示层或置底专用显示层是否已创建;若否,则创建所述置顶专用显示层或置底专用显示层。Step S330: Determine whether the dedicated top display layer or dedicated bottom display layer has been created; if not, create the dedicated top display layer or dedicated bottom display layer.
步骤S340,将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Step S340, moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
步骤S350,当检测到用户将所述目标窗口取消置顶或取消置底时,将所述目标窗口的窗口任务从所述置顶任务栈或所述置底任务栈移动至所述窗口任务栈中。Step S350, when it is detected that the user cancels the top or bottom of the target window, move the window task of the target window from the top task stack or the bottom task stack to the window task stack.
本实施例还支持将窗口取消置顶或取消置底。例如,针对实施例中提到的将窗口置顶显示或置底显示的接口,可以根据用户的操作更新对应的接口类型。例如,当用户点击某个窗口的置顶显示接口时,该接口的接口类型可以变更为取消置顶显示的按钮。当用户点击某个窗口的置底显示接口时,该接口的接口类型可以变更为取消置底显示的按钮。当用户触发上述取消置顶显示的按钮或取消置底显示的按钮时,则可以判定为检测到取消置顶或取消置底的操作。This embodiment also supports canceling the top or bottom of the window. For example, for the interface that displays the window on the top or on the bottom mentioned in the embodiment, the corresponding interface type can be updated according to the user's operation. For example, when the user clicks on the top display interface of a window, the interface type of the interface can be changed to a button to cancel the top display. When the user clicks on the bottom display interface of a window, the interface type of the interface can be changed to a button that cancels the bottom display. When the user triggers the button for canceling the top display or the button for canceling the bottom display, it can be determined that an operation of canceling the top or bottom display is detected.
在一种示例中,当用户触发对目标窗口的取消置顶的操作时,则可以将目标窗口的窗口任务从置顶任务栈移动至窗口任务栈的尾部。当用户触发对目标窗口的取消置底的操作时,则可以将目标窗口的窗口任务从置底任务栈移动至窗口任务栈的尾部。In an example, when the user triggers an operation to cancel the top of the target window, the window task of the target window can be moved from the top task stack to the end of the window task stack. When the user triggers an operation to cancel the bottoming of the target window, the window task of the target window can be moved from the bottoming task stack to the end of the window task stack.
本申请实施例提供的技术方案,用户可以通过触发将目标窗口取消置顶或取消置底的操作,来使得本实施例将目标窗口的窗口任务从置顶任务栈或置底任务栈移动至窗口任务栈中,增加了窗口层级切换的灵活性,满足用户更为多样化的需求。According to the technical solution provided by the embodiment of the present application, the user can trigger the operation of canceling the top or bottom of the target window, so that the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack in this embodiment. , Increase the flexibility of window level switching to meet the more diverse needs of users.
图16为本申请实施例提供的一种窗口层级切换的方法的流程图。本实施例是在上述实施例的基础上对窗口层级切换的具体过程进行了说明,参考图16,本实施例提供的窗口层级切换的方法具体包括:FIG. 16 is a flowchart of a method for window level switching provided by an embodiment of the application. This embodiment describes the specific process of window level switching on the basis of the foregoing embodiment. Referring to FIG. 16, the method for window level switching provided in this embodiment specifically includes:
步骤S410,将至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中。Step S410: Add window tasks corresponding to at least two windows to the window task stack of the window mode.
步骤S420,确定需要置顶显示或置底显示的目标窗口。Step S420: Determine the target window to be displayed on the top or bottom.
步骤S430,判断所述置顶专用显示层或置底专用显示层是否已创建;若否,则创建所述置顶专用显示层或置底专用显示层。Step S430: Determine whether the dedicated top display layer or dedicated bottom display layer has been created; if not, create the dedicated top display layer or dedicated bottom display layer.
步骤S440,将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Step S440: Move the window task of the target window from the window task stack to the top task stack or the bottom task stack.
步骤S450,当置顶显示的窗口需要置底显示时,将所述置顶任务栈中对应的窗口任务切换至置底任务栈中;或者,当置底显示的窗口需要置顶显示时,将所述置底任务栈中对应的窗口任务切换至置顶任务栈中。Step S450, when the window displayed on top needs to be displayed on the bottom, the corresponding window task in the top task stack is switched to the bottom task stack; or when the window displayed on the bottom needs to be displayed on the top The corresponding window task in the bottom task stack is switched to the top task stack.
本实施例可以支持在窗口模式下,窗口任务从一个任务栈切换至另一个任务栈。This embodiment can support the switching of window tasks from one task stack to another task stack in the window mode.
在一种实施例中,用户可以将置顶显示的目标窗口切换为置底显示,此时,该目标窗口的窗口任务从置顶任务栈中抽出并放置在置底任务栈的尾部。在另一种实施例中,用户还可以将置底显示的目标窗口切换为置顶显示,此时,该目标窗口的窗口任务从置底任务栈中抽出并放置在置顶任务栈的尾部。在窗口模式下通过窗口层级的切换,能够满足用户更为多样化的需求。In an embodiment, the user may switch the target window displayed on top to bottom display. At this time, the window task of the target window is extracted from the top task stack and placed at the end of the bottom task stack. In another embodiment, the user can also switch the target window displayed on the bottom to the top display. At this time, the window task of the target window is extracted from the bottom task stack and placed at the end of the top task stack. By switching the window level in window mode, it can meet the more diverse needs of users.
下面对本实施例提供的技术方案的整体过程进行示例性描述,但应当理解的是,下述示例不应解释成对本申请的技术方案的限定:The following is an exemplary description of the overall process of the technical solution provided in this embodiment, but it should be understood that the following examples should not be interpreted as limiting the technical solution of the present application:
S1、系统启动,默认创建HOME_STACK(id:0),并启动桌面程序Task, 桌面程序Task会被放置在HOME_STACK。该HOME_STACK里面有且仅有一个Task。S1. The system is started. HOME_STACK (id:0) is created by default, and the desktop program Task is started. The desktop program Task will be placed in HOME_STACK. There is one and only one Task in the HOME_STACK.
S2、当用户操作桌面程序时,选择打开某个应用程序。S2. When the user operates the desktop program, select to open a certain application.
S3、在应用程序Task启动前,会先判断窗口任务栈Stack(id:2)有没有创建,如果此时窗口任务栈Stack没有创建,则会创建出窗口任务栈Stack,如果已经创建了,则会复用原来的窗口任务栈Stack。S3. Before the application Task is started, it will first determine whether the window task stack Stack (id: 2) has been created. If the window task stack Stack is not created at this time, the window task stack Stack will be created. If it has been created, then The original window task stack Stack will be reused.
S4、将该应用程序Task放置于窗口模式的窗口任务栈Stack。S4. Place the application Task on the window task stack Stack in the window mode.
当用户打开多个应用程序Task时,即重复S2-S4步骤。When the user opens multiple tasks, the steps S2-S4 are repeated.
S5、用户将已经显示在窗口任务栈Stack对应的非专用显示层的目标窗口固定到置顶专用显示层/置底专用显示层。S5. The user fixes the target window that has been displayed on the non-dedicated display layer corresponding to the window task stack Stack to the top dedicated display layer/bottom dedicated display layer.
S6、系统在将目标窗口移动到置顶专用显示层/置底专用显示层前,先判断置顶任务栈/置底任务栈是否已经创建,如果此时置顶任务栈/置底任务栈没有创建,则会创建出置顶任务栈/置底任务栈,如果已经创建了,会复用原来的置顶任务栈/置底任务栈。S6. Before moving the target window to the top dedicated display layer/bottom dedicated display layer, the system first judges whether the top task stack/bottom task stack has been created. If the top task stack/bottom task stack is not created at this time, then The top task stack/bottom task stack will be created. If it has been created, the original top task stack/bottom task stack will be reused.
S7、该应用程序Task会从窗口任务栈中移动到置顶任务栈/置底任务栈的尾部。S7. The application Task will move from the window task stack to the end of the top task stack/bottom task stack.
S8、如果用户关闭应用程序,即将Task从Stack中移除。S8. If the user closes the application, the Task is removed from the Stack.
应该理解的是,虽然图1-图16的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1-图16中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowcharts of FIGS. 1 to 16 are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 1 to 16 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or The execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
图17是本申请实施例提供的一种窗口层级切换装置的结构示意图。参考图17,本实施例提供的窗口层级切换装置具体包括:窗口显示模块510、目 标窗口确定模块520以及第一窗口切换模块530。其中:FIG. 17 is a schematic structural diagram of a window level switching device provided by an embodiment of the present application. Referring to FIG. 17, the window level switching device provided in this embodiment specifically includes: a window display module 510, a target window determination module 520, and a first window switching module 530. among them:
窗口显示模块510,设置为采用窗口模式下的非专用显示层显示至少两个窗口。The window display module 510 is configured to display at least two windows using a non-dedicated display layer in a window mode.
其中,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层;Wherein, at least two display layers are supported in the window mode, and the at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying top windows, and a bottom dedicated display layer for displaying bottom windows. Bottom dedicated display layer;
目标窗口确定模块520,设置为在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口。The target window determining module 520 is configured to determine a target window that needs to be displayed on the top or on the bottom among the at least two windows.
第一窗口切换模块530,设置为将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。The first window switching module 530 is configured to switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
此处需要说明的是,上述窗口显示模块510、目标窗口确定模块520以及第一窗口切换模块530可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。It should be noted here that the window display module 510, the target window determination module 520, and the first window switching module 530 can be run in the terminal as part of the device, and the functions implemented by the above modules can be executed by the processor in the terminal. The terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), PAD and other terminal devices.
本申请实施例提供的技术方案,当在窗口模式下显示至少两个应用程序窗口时,该至少两个窗口首先在非专用显示层内显示,在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口以后,可以将该目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层进行置顶显示或置底显示,以此实现了在窗口模式的基础上,应用程序多层级的显示,并且目标窗口可以在不同的显示层间切换,能够满足用户的多样化需求。In the technical solution provided by the embodiments of the present application, when at least two application windows are displayed in window mode, the at least two windows are first displayed in a non-dedicated display layer, and it is determined that the at least two windows need to be displayed on top or After the target window displayed on the bottom, the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thus achieving the basis of the window mode , Application programs are displayed in multiple levels, and the target window can be switched between different display layers, which can meet the diverse needs of users.
在上述实施例的基础上,上述装置还可以包括如下模块:On the basis of the foregoing embodiment, the foregoing apparatus may further include the following modules:
显示层判断模块,设置为在所述将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层之前,判断所述置顶专用显示层或置底专用显示层是否已创建;若否,则调用显示层创建模块;The display layer determination module is configured to determine whether the dedicated top display layer or the dedicated bottom display layer is before switching the target window from the non-dedicated display layer to the dedicated top display layer or dedicated bottom display layer Has been created; if not, call the display layer creation module;
显示层创建模块,设置为创建所述置顶专用显示层或置底专用显示层。The display layer creation module is set to create the dedicated top display layer or the dedicated bottom display layer.
此处需要说明的是,上述显示层判断模块和显示层创建模块可以作为装置 的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。It should be noted here that the above display layer judgment module and display layer creation module can be run in the terminal as part of the device, and the functions implemented by the above modules can be executed by the processor in the terminal.
在上述实施例的基础上,所述显示层创建模块进一步可以包括如下子模块:On the basis of the foregoing embodiment, the display layer creation module may further include the following sub-modules:
任务栈创建子模块,设置为创建窗口模式下的置顶任务栈或置底任务栈,并为所述置顶任务栈或所述置底任务栈设置对应的任务栈标识。The task stack creation sub-module is set to create the top task stack or the bottom task stack in the window mode, and set a corresponding task stack identifier for the top task stack or the bottom task stack.
在上述实施例的基础上,所述窗口显示模块510具体设置为:On the basis of the foregoing embodiment, the window display module 510 is specifically configured as follows:
将所述至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中;Adding window tasks corresponding to the at least two windows to the window task stack of the window mode;
所述第一窗口切换模块530进一步可以包括如下子模块:The first window switching module 530 may further include the following sub-modules:
窗口任务切换子模块,设置为将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。The window task switching submodule is configured to move the window task of the target window from the window task stack to the top task stack or the bottom task stack.
此处需要说明的是,上述窗口任务切换子模块可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。It should be noted here that the above-mentioned window task switching sub-module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
在上述实施例的基础上,上述装置还包括如下模块:Based on the foregoing embodiment, the foregoing device further includes the following modules:
指令取消模块,设置为当检测到用户将所述目标窗口取消置顶或取消置底时,将所述目标窗口的窗口任务从所述置顶任务栈或所述置底任务栈移动至所述窗口任务栈中。Instruction cancellation module, configured to move the window task of the target window from the top task stack or the bottom task stack to the window task when it is detected that the user cancels the top or bottom of the target window In the stack.
此处需要说明的是,上述指令取消模块可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能。It should be noted here that the above-mentioned instruction cancellation module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
在上述实施例的基础上,所述装置还包括第二窗口切换模块,设置为:On the basis of the foregoing embodiment, the device further includes a second window switching module configured to:
当置顶显示的窗口需要置底显示时,将所述置顶任务栈中对应的窗口任务切换至置底任务栈中;When the window displayed on top needs to be displayed on the bottom, switching the corresponding window task in the top task stack to the bottom task stack;
或者,or,
当置底显示的窗口需要置顶显示时,将所述置底任务栈中对应的窗口任务切换至置顶任务栈中。When the window displayed on the bottom needs to be displayed on the top, the corresponding window task in the bottom task stack is switched to the top task stack.
在上述实施例的基础上,所述置顶任务栈或所述置底任务栈中包含至少两个窗口任务,所述至少两个窗口任务在所述置顶任务栈或所述置底任务栈中按照用户对对应目标窗口的操作次序顺序排列。On the basis of the above embodiment, the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to The user's operations on the corresponding target windows are arranged in order.
此处需要说明的是,上述第二窗口切换模块可以作为装置的一部分运行在 终端中,可以通过终端中的处理器来执行上述模块实现的功能。It should be noted here that the above-mentioned second window switching module may be run in the terminal as a part of the device, and the functions implemented by the above-mentioned module may be executed by the processor in the terminal.
在上述实施例的基础上,所述目标窗口确定模块520具体设置为:On the basis of the foregoing embodiment, the target window determination module 520 is specifically set as follows:
检测用户的置顶操作或置底操作;Detect user's top operation or bottom operation;
将所述置顶操作或置底操作对应的窗口确定为所述目标窗口。The window corresponding to the top operation or bottom operation is determined as the target window.
在上述实施例的基础上,所述目标窗口确定模块520具体设置为:On the basis of the foregoing embodiment, the target window determination module 520 is specifically set as follows:
获取各窗口的历史操作记录;Obtain historical operation records of each window;
根据所述历史操作记录,判断对应的窗口是否需要置顶显示或置底显示;According to the historical operation record, determine whether the corresponding window needs to be displayed on the top or on the bottom;
将需要置顶显示或置底显示的窗口作为目标窗口。Set the window that needs to be displayed on top or bottom as the target window.
在上述实施例的基础上,所述目标窗口确定模块520具体设置为:On the basis of the foregoing embodiment, the target window determination module 520 is specifically set as follows:
确定各窗口的显示尺寸;Determine the display size of each window;
根据所述显示尺寸以及预置的分层显示规则,确定目标窗口。According to the display size and preset hierarchical display rules, the target window is determined.
上述提供的窗口层级切换装置可设置为执行上述任意实施例提供的窗口层级切换的方法,具备相应的功能和有益效果。The window level switching device provided above can be configured to execute the window level switching method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
关于窗口层级切换装置的具体限定可以参见上文中对于窗口层级切换的方法的限定,在此不再赘述。上述窗口层级切换装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the window level switching device, please refer to the above limitation on the method of window level switching, which will not be repeated here. Each module in the above-mentioned window level switching device can be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
图18是本申请实施例提供的一种电子设备的结构示意图。如图中所示,该电子设备包括:处理器60、存储器61、具有触摸功能的显示屏62、输入装置63、输出装置64以及通信装置65。该电子设备中处理器60的数量可以是一个或者多个,图中以一个处理器60为例。该电子设备中存储器61的数量可以是一个或者多个,图中以一个存储器61为例。该电子设备的处理器60、存储器61、显示屏62、输入装置63、输出装置64以及通信装置65可以通过总线或者其他方式连接,图中以通过总线连接为例。实施例中,电子设备可以是电脑,手机,平板,投影仪或交互智能平板等。实施例中,以电子设备为交互智能平板为例,进行描述。FIG. 18 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor 60, a memory 61, a display screen 62 with a touch function, an input device 63, an output device 64, and a communication device 65. The number of processors 60 in the electronic device may be one or more, and one processor 60 is taken as an example in the figure. The number of memories 61 in the electronic device may be one or more, and one memory 61 is taken as an example in the figure. The processor 60, the memory 61, the display screen 62, the input device 63, the output device 64, and the communication device 65 of the electronic device may be connected by a bus or other methods, and the bus connection is taken as an example in the figure. In the embodiment, the electronic device may be a computer, a mobile phone, a tablet, a projector or an interactive smart tablet, etc. In the embodiment, the electronic device is an interactive smart tablet as an example for description.
存储器61作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的窗口层级切换的方法对应的程序指令/模块。存储器61可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器61可进一步包括相对于处理器60远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a computer-readable storage medium, the memory 61 can be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the window level switching method described in any embodiment of the present application. The memory 61 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 61 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory 61 may further include a memory remotely provided with respect to the processor 60, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
显示屏62为具有触摸功能的显示屏62,其可以是电容屏、电磁屏或者红外屏。一般而言,显示屏62设置为根据处理器60的指示显示数据,还设置为接收作设置为显示屏62的触摸操作,并将相应的信号发送至处理器60或其他装置。可选的,当显示屏62为红外屏时,其还包括红外触摸框,该红外触摸框设置在显示屏62的四周,其还可以设置为接收红外信号,并将该红外信号发送至处理器60或者其他设备。显示屏62可以通过窗口模式进行窗口显示,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层。The display screen 62 is a display screen 62 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. Generally speaking, the display screen 62 is set to display data according to instructions of the processor 60, and is also set to receive a touch operation set as the display screen 62, and send corresponding signals to the processor 60 or other devices. Optionally, when the display screen 62 is an infrared screen, it also includes an infrared touch frame, which is arranged around the display screen 62, and it can also be set to receive infrared signals and send the infrared signals to the processor 60 or other equipment. The display screen 62 can perform window display in a window mode, and supports at least two display layers in the window mode. The at least two display layers include at least two of the following: a non-dedicated display layer and a dedicated top display layer for displaying a top window And a dedicated bottom display layer for displaying bottomed windows.
通信装置65,设置为与其他设备建立通信连接,其可以是有线通信装置和/或无线通信装置。The communication device 65 is configured to establish a communication connection with other devices, and it may be a wired communication device and/or a wireless communication device.
输入装置63可设置为接收输入的数字或者字符信息,以及产生与xxx设备的用户设置以及功能控制有关的键信号输入,还可以是设置为获取图像的摄像头以及获取音频数据的拾音设备。输出装置64可以包括扬声器等音频设备。需要说明的是,输入装置63和输出装置64的具体组成可以根据实际情况设定。The input device 63 can be configured to receive input digital or character information, and to generate key signal input related to user settings and function control of the xxx device. It can also be a camera for acquiring images and a pickup device for acquiring audio data. The output device 64 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 63 and the output device 64 can be set according to actual conditions.
处理器60通过运行存储在存储器61中的软件程序、指令以及模块,从 而执行设备的各种功能应用以及数据处理,即实现上述的窗口层级切换的方法。The processor 60 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the above-mentioned method of window level switching.
可选地,实施例中,处理器60执行存储器61中存储的一个或多个程序时,具体实现如下操作:Optionally, in the embodiment, when the processor 60 executes one or more programs stored in the memory 61, the following operations are specifically implemented:
采用窗口模式下的非专用显示层显示至少两个窗口;Use the non-dedicated display layer in window mode to display at least two windows;
在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口;Determining a target window that needs to be displayed on the top or on the bottom among the at least two windows;
将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。The target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
判断所述置顶专用显示层或置底专用显示层是否已创建;Determining whether the dedicated top display layer or the dedicated bottom display layer has been created;
若否,则创建所述置顶专用显示层或置底专用显示层。If not, then create the top dedicated display layer or bottom dedicated display layer.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
创建窗口模式下的置顶任务栈或置底任务栈;Create top task stack or bottom task stack in window mode;
为所述置顶任务栈或所述置底任务栈设置对应的任务栈标识。A corresponding task stack identifier is set for the top task stack or the bottom task stack.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
将所述至少两个窗口对应的窗口任务添加到窗口模式的窗口任务栈中;Adding window tasks corresponding to the at least two windows to the window task stack of the window mode;
所述将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,包括:The switching of the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer includes:
将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
当检测到用户将所述目标窗口取消置顶或取消置底时,将所述目标窗口的窗口任务从所述置顶任务栈或所述置底任务栈移动至所述窗口任务栈中。When it is detected that the user cancels the top or bottom of the target window, the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
当置顶显示的窗口需要置底显示时,将所述置顶任务栈中对应的窗口任务切换至置底任务栈中;When the window displayed on top needs to be displayed on the bottom, switching the corresponding window task in the top task stack to the bottom task stack;
或者,or,
当置底显示的窗口需要置顶显示时,将所述置底任务栈中对应的窗口任务切换至置顶任务栈中。When the window displayed on the bottom needs to be displayed on the top, the corresponding window task in the bottom task stack is switched to the top task stack.
在上述实施例的基础上,所述置顶任务栈或所述置底任务栈中包含至少两个窗口任务,所述至少两个窗口任务在所述置顶任务栈或所述置底任务栈中按照用户对对应目标窗口的操作次序顺序排列。On the basis of the above embodiment, the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or the bottom task stack according to The user's operations on the corresponding target windows are arranged in order.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
检测用户的置顶操作或置底操作;Detect user's top operation or bottom operation;
将所述置顶操作或置底操作对应的窗口确定为所述目标窗口。The window corresponding to the top operation or bottom operation is determined as the target window.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
获取各窗口的历史操作记录;Obtain historical operation records of each window;
根据所述历史操作记录,判断对应的窗口是否需要置顶显示或置底显示;According to the historical operation record, determine whether the corresponding window needs to be displayed on the top or on the bottom;
将需要置顶显示或置底显示的窗口作为目标窗口。Set the window that needs to be displayed on top or bottom as the target window.
在上述实施例的基础上,一个或多个处理器60还实现如下操作:Based on the foregoing embodiment, one or more processors 60 further implement the following operations:
确定各窗口的显示尺寸;Determine the display size of each window;
根据所述显示尺寸以及预置的分层显示规则,确定目标窗口。According to the display size and preset hierarchical display rules, the target window is determined.
本申请实施例还提供一种非易失性存储介质,该非易失性存储介质包含计算机程序,所述计算机程序在由计算机处理器执行时用于执行一种窗口层级切换的方法。The embodiment of the present application also provides a non-volatile storage medium, the non-volatile storage medium contains a computer program, and the computer program is used to perform a window level switching method when executed by a computer processor.
图19是根据本申请实施例的一种非易失性存储介质的结构示意图。如图19所示,描述了根据本申请的实施方式的程序产品190,其上存储有计算机程序,计算机程序被处理器执行时实现如下步骤的程序代码:Fig. 19 is a schematic structural diagram of a non-volatile storage medium according to an embodiment of the present application. As shown in FIG. 19, a program product 190 according to an embodiment of the present application is described, and a computer program is stored thereon, and the program code that implements the following steps when the computer program is executed by a processor:
采用窗口模式下的非专用显示层显示至少两个窗口;Use the non-dedicated display layer in window mode to display at least two windows;
确定需要置顶显示或置底显示的目标窗口;Determine the target window to be displayed on top or bottom;
将所述目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层,以将所述目标窗口置顶显示或置底显示。The target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的窗口层级切换的方法操作,还可以执行 本申请任意实施例所提供的窗口层级切换的方法中的相关操作,且具备相应的功能和有益效果。Of course, the storage medium containing computer-executable instructions provided by the embodiments of the present application is not limited to the method operations of window level switching as described above, and can also execute the windows provided in any embodiment of the present application. Related operations in the method of level switching, and have corresponding functions and beneficial effects.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage. In the medium, when the computer program is executed, it may include the procedures of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.
工业实用性Industrial applicability
本申请实施例提供的方案可以应用于窗口层级切换过程中,当在窗口模式下显示至少两个窗口时,该至少两个窗口首先在非专用显示层内显示,在所 述至少两个窗口中确定需要置顶显示或置底显示的目标窗口以后,可以将该目标窗口从所述非专用显示层切换至置顶专用显示层或置底专用显示层进行置顶显示或置底显示,以此实现了在窗口模式的基础上,应用程序多层级的显示,并且目标窗口可以在不同的显示层间切换,能够满足用户的多样化需求。The solution provided by the embodiment of the present application can be applied to the process of window level switching. When at least two windows are displayed in the window mode, the at least two windows are first displayed in the non-dedicated display layer, and in the at least two windows After determining the target window that needs to be displayed on the top or bottom, the target window can be switched from the non-dedicated display layer to the dedicated top display layer or the dedicated bottom display layer for top display or bottom display, thereby achieving Based on the window mode, the application program is displayed at multiple levels, and the target window can be switched between different display layers, which can meet the diverse needs of users.

Claims (14)

  1. 一种窗口层级切换的方法,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层;所述方法包括:A method for switching window levels supports at least two display layers in a window mode, the at least two display layers including at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying a top window, and Display the bottom dedicated display layer of the bottomed window; the method includes:
    采用所述窗口模式下的所述非专用显示层显示至少两个窗口;Displaying at least two windows using the non-dedicated display layer in the window mode;
    在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口;Determining a target window that needs to be displayed on the top or on the bottom among the at least two windows;
    将所述目标窗口从所述非专用显示层切换至所述置顶专用显示层或所述置底专用显示层,以将所述目标窗口置顶显示或置底显示。The target window is switched from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  2. 根据权利要求1所述的方法,其中,在所述将所述目标窗口从所述非专用显示层切换至所述置顶专用显示层或所述置底专用显示层之前,还包括:The method according to claim 1, wherein before said switching said target window from said non-dedicated display layer to said top dedicated display layer or said bottom dedicated display layer, further comprising:
    判断所述置顶专用显示层或所述置底专用显示层是否已创建;Determining whether the dedicated top display layer or the dedicated bottom display layer has been created;
    若否,则创建所述置顶专用显示层或所述置底专用显示层。If not, then create the top dedicated display layer or the bottom dedicated display layer.
  3. 根据权利要求2所述的方法,其中,所述创建所述置顶专用显示层或所述置底专用显示层,包括:3. The method according to claim 2, wherein said creating said top dedicated display layer or said bottom dedicated display layer comprises:
    创建所述窗口模式下的置顶任务栈或置底任务栈;Creating a top task stack or bottom task stack in the window mode;
    为所述置顶任务栈或所述置底任务栈设置对应的任务栈标识。A corresponding task stack identifier is set for the top task stack or the bottom task stack.
  4. 根据权利要求3所述的方法,其中,所述采用所述窗口模式下的所述非专用显示层显示至少两个窗口,包括:The method according to claim 3, wherein said displaying at least two windows using said non-dedicated display layer in said window mode comprises:
    将所述至少两个窗口对应的窗口任务添加到所述窗口模式的窗口任务栈中;Adding window tasks corresponding to the at least two windows to the window task stack of the window mode;
    所述将所述目标窗口从所述非专用显示层切换至所述置顶专用显示层或所述置底专用显示层,包括:The switching the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer includes:
    将所述目标窗口的窗口任务从所述窗口任务栈移动至所述置顶任务栈或所述置底任务栈中。Moving the window task of the target window from the window task stack to the top task stack or the bottom task stack.
  5. 根据权利要求4所述的方法,其中,还包括:The method according to claim 4, further comprising:
    当检测到用户将所述目标窗口取消置顶或取消置底时,将所述目标窗口的窗口任务从所述置顶任务栈或所述置底任务栈移动至所述窗口任务栈中。When it is detected that the user cancels the top or bottom of the target window, the window task of the target window is moved from the top task stack or the bottom task stack to the window task stack.
  6. 根据权利要求4或5所述的方法,其中,所述方法还包括:The method according to claim 4 or 5, wherein the method further comprises:
    当置顶显示的窗口需要置底显示时,将所述置顶任务栈中对应的窗口任务切换至所述置底任务栈中;When the window displayed on top needs to be displayed on the bottom, switching the corresponding window task in the top task stack to the bottom task stack;
    或者,or,
    当置底显示的窗口需要置顶显示时,将所述置底任务栈中对应的窗口任务切换至所述置顶任务栈中。When the window displayed on the bottom needs to be displayed on the top, the corresponding window task in the bottom task stack is switched to the top task stack.
  7. 根据权利要求3-5任一项所述的方法,其中,所述置顶任务栈或所述置底任务栈中包含至少两个窗口任务,所述至少两个窗口任务在所述置顶任务栈或所述置底任务栈中按照用户对对应目标窗口的操作次序顺序排列。The method according to any one of claims 3-5, wherein the top task stack or the bottom task stack includes at least two window tasks, and the at least two window tasks are in the top task stack or The bottom task stack is arranged in order according to the user's operation order of the corresponding target windows.
  8. 根据权利要求1所述的方法,其中,所述确定需要置顶显示或置底显示的目标窗口,包括:The method according to claim 1, wherein the determining the target window that needs to be displayed on top or on the bottom comprises:
    检测用户的置顶操作或置底操作;Detect user's top operation or bottom operation;
    将所述置顶操作或所述置底操作对应的窗口确定为所述目标窗口。The window corresponding to the top operation or the bottom operation is determined as the target window.
  9. 根据权利要求1所述的方法,其中,所述确定需要置顶显示或置底显示的目标窗口,包括:The method according to claim 1, wherein the determining the target window that needs to be displayed on top or on the bottom comprises:
    获取各窗口的历史操作记录;Obtain historical operation records of each window;
    根据所述历史操作记录,判断对应的窗口是否需要置顶显示或置底显示;According to the historical operation record, determine whether the corresponding window needs to be displayed on the top or on the bottom;
    将需要置顶显示或置底显示的窗口作为所述目标窗口。The window that needs to be displayed on top or bottom is used as the target window.
  10. 根据权利要求1所述的方法,其中,所述确定需要置顶显示或置底显示的目标窗口,包括:The method according to claim 1, wherein the determining the target window that needs to be displayed on top or on the bottom comprises:
    确定各窗口的显示尺寸;Determine the display size of each window;
    根据所述显示尺寸以及预置的分层显示规则,确定所述目标窗口。The target window is determined according to the display size and preset hierarchical display rules.
  11. 一种窗口层级切换装置,在窗口模式下支持至少两个显示层,所述至少两个显示层包括以下至少之二:非专用显示层、用于显示置顶窗口的置顶专用显示层以及用于显示置底窗口的置底专用显示层;所述装置包括:A window level switching device supports at least two display layers in a window mode. The at least two display layers include at least two of the following: a non-dedicated display layer, a dedicated top display layer for displaying a top window, and The bottom dedicated display layer of the bottomed window; the device includes:
    窗口显示模块,设置为采用所述窗口模式下的所述非专用显示层显示至少两个窗口;A window display module configured to display at least two windows using the non-dedicated display layer in the window mode;
    目标窗口确定模块,设置为在所述至少两个窗口中确定需要置顶显示或置底显示的目标窗口;A target window determining module, configured to determine a target window that needs to be displayed on the top or on the bottom among the at least two windows;
    窗口切换模块,设置为将所述目标窗口从所述非专用显示层切换至所述置顶专用显示层或所述置底专用显示层,以将所述目标窗口置顶显示或置底显示。The window switching module is configured to switch the target window from the non-dedicated display layer to the top dedicated display layer or the bottom dedicated display layer to display the target window on top or bottom.
  12. 一种电子设备,包括:存储器、具有触摸功能的显示屏以及一个或多个处理器;An electronic device, including: a memory, a display screen with touch function, and one or more processors;
    所述存储器,设置为存储一个或多个程序;The memory is configured to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器执行如权利要求1-10中任一所述的窗口层级切换的方法。When the one or more programs are executed by the one or more processors, the one or more processors execute the method for window level switching according to any one of claims 1-10.
  13. 根据权利要求12所述的电子设备,其中,所述电子设备为智能交互平板。The electronic device according to claim 12, wherein the electronic device is a smart interactive tablet.
  14. 一种非易失性存储介质,所述非易失性存储介质包含计算机程序,所述计算机程序在由计算机处理器执行时设置为执行如权利要求1-10中任一所述的窗口层级切换的方法。A non-volatile storage medium, the non-volatile storage medium contains a computer program, when the computer program is executed by a computer processor, the computer program is configured to perform the window level switching according to any one of claims 1-10 Methods.
PCT/CN2020/095594 2019-06-13 2020-06-11 Method for window-level switching, device, equipment, and storage medium WO2020249044A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910511353.0A CN110286978B (en) 2019-06-13 2019-06-13 Window hierarchy switching method, device, equipment and storage medium
CN201910511353.0 2019-06-13

Publications (1)

Publication Number Publication Date
WO2020249044A1 true WO2020249044A1 (en) 2020-12-17

Family

ID=68003886

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/095594 WO2020249044A1 (en) 2019-06-13 2020-06-11 Method for window-level switching, device, equipment, and storage medium

Country Status (2)

Country Link
CN (1) CN110286978B (en)
WO (1) WO2020249044A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210014570A1 (en) * 2018-03-28 2021-01-14 Huawei Technologies Co., Ltd. Video Preview Method and Electronic Device

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286978B (en) * 2019-06-13 2021-08-10 广州视源电子科技股份有限公司 Window hierarchy switching method, device, equipment and storage medium
CN110928459B (en) * 2019-10-09 2021-07-23 广州视源电子科技股份有限公司 Writing operation method, device, equipment and storage medium of intelligent interactive tablet
CN110955480B (en) * 2019-11-20 2024-02-23 北京金山猎豹科技有限公司 View display method and device
CN111191164B (en) * 2019-11-29 2023-08-22 泰康保险集团股份有限公司 Window display control method and device
CN112363783B (en) * 2020-10-26 2022-04-08 广州视源电子科技股份有限公司 Window switching method, device, medium and interactive panel
CN112783414A (en) * 2021-01-06 2021-05-11 广州朗国电子科技有限公司 Method, device and storage medium for annotating notes based on electronic whiteboard
CN114168019A (en) * 2021-12-09 2022-03-11 创盛视联数码科技(北京)有限公司 Multi-application window level management method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102076115A (en) * 2009-11-20 2011-05-25 上海亿动信息技术有限公司 Control method and device for releasing advertising information in mobile terminal
CN103309555A (en) * 2012-10-31 2013-09-18 中兴通讯股份有限公司 Focus switching method and device based on multiple windows
CN104202647A (en) * 2014-08-08 2014-12-10 深圳市同洲电子股份有限公司 Display method and device of window
CN104951185A (en) * 2015-06-09 2015-09-30 联想(北京)有限公司 Information processing method and electronic equipment
CN105491452A (en) * 2015-11-25 2016-04-13 浙江宇视科技有限公司 Multi-video-window hierarchy switching method and device
CN109151581A (en) * 2018-07-26 2019-01-04 北京奇艺世纪科技有限公司 A kind of data output method and device
CN109558189A (en) * 2018-10-25 2019-04-02 深圳点猫科技有限公司 A kind of program window top set display methods and education notebook
CN110286978A (en) * 2019-06-13 2019-09-27 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of window level switching

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8997017B2 (en) * 2011-10-21 2015-03-31 International Business Machines Corporation Controlling interactions via overlaid windows
CN103780963B (en) * 2012-10-19 2016-12-21 瑞轩科技股份有限公司 The method controlling display
CN103246430A (en) * 2013-04-24 2013-08-14 深圳市同洲电子股份有限公司 Terminal and method for managing multiple windows

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102076115A (en) * 2009-11-20 2011-05-25 上海亿动信息技术有限公司 Control method and device for releasing advertising information in mobile terminal
CN103309555A (en) * 2012-10-31 2013-09-18 中兴通讯股份有限公司 Focus switching method and device based on multiple windows
CN104202647A (en) * 2014-08-08 2014-12-10 深圳市同洲电子股份有限公司 Display method and device of window
CN104951185A (en) * 2015-06-09 2015-09-30 联想(北京)有限公司 Information processing method and electronic equipment
CN105491452A (en) * 2015-11-25 2016-04-13 浙江宇视科技有限公司 Multi-video-window hierarchy switching method and device
CN109151581A (en) * 2018-07-26 2019-01-04 北京奇艺世纪科技有限公司 A kind of data output method and device
CN109558189A (en) * 2018-10-25 2019-04-02 深圳点猫科技有限公司 A kind of program window top set display methods and education notebook
CN110286978A (en) * 2019-06-13 2019-09-27 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of window level switching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210014570A1 (en) * 2018-03-28 2021-01-14 Huawei Technologies Co., Ltd. Video Preview Method and Electronic Device
US11785304B2 (en) * 2018-03-28 2023-10-10 Huawei Technologies Co., Ltd. Video preview method and electronic device

Also Published As

Publication number Publication date
CN110286978A (en) 2019-09-27
CN110286978B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
WO2020249044A1 (en) Method for window-level switching, device, equipment, and storage medium
CN110928468B (en) Page display method, device, equipment and storage medium of intelligent interactive tablet
CN109164964B (en) Content sharing method and device, terminal and storage medium
US10747416B2 (en) User terminal device and method for displaying thereof
CN110515510B (en) Data processing method, device, equipment and storage medium
WO2017032005A1 (en) Operation menu display method and terminal
WO2020207036A1 (en) Method for operating intelligent interactive tablet, and storage medium and related device
KR101897603B1 (en) Apparatus and Method for displaying usage history of application between devices
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
US11620047B2 (en) Method, apparatus, terminal device, and storage medium for operating interactive white board
CN104995596A (en) Managing audio at the tab level for user notification and control
JP6378451B2 (en) Method and apparatus for processing new messages associated with an application
WO2017156983A1 (en) List callup method and device
CN110941382B (en) Display operation method, device, equipment and storage medium of intelligent interactive panel
WO2018010316A1 (en) Desktop page management method and device
US20150363091A1 (en) Electronic device and method of controlling same
US20190065030A1 (en) Display apparatus and control method thereof
WO2019007409A1 (en) Display method, device, smart terminal and computer readable storage medium
US20190012129A1 (en) Display apparatus and method for controlling display apparatus
WO2023005828A1 (en) Message display method and apparatus, and electronic device
WO2016008410A1 (en) Video play method and system
JP2020515996A (en) Method and device for quickly inserting recognized words
US20140195980A1 (en) Display apparatus and method for providing user interface thereof
US20160359932A1 (en) Display device and method of controlling the same
WO2024046266A1 (en) Video management method and apparatus, electronic device, and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20822162

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20822162

Country of ref document: EP

Kind code of ref document: A1