Detailed Description
the technical scheme of the invention is further explained by combining the drawings and the specific embodiments in the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
the core idea of the invention is that corresponding sub-windows and sub-window attributes are set for application software which needs to realize multi-window display, when a multi-window display request triggered by the application software is detected, the corresponding sub-window attributes are obtained, and the sub-windows are controlled to be displayed together with other windows on a current display screen. Therefore, the embodiment of the invention realizes the multi-window display of the application software in the same page, and in the same page, a user can simultaneously view and process the information in each window.
First, we describe the child window and its properties. In order to realize the multi-window display function, corresponding sub-windows are firstly arranged on application software installed on the terminal, and the sub-windows correspond to the application software one by one. Then, the child window attribute for that child window will also be set. The child window properties may include the size, position, transparency, window level, etc. of the window. Wherein the attribute of the child window is set by default of the terminal. Of course, the setting can be performed by the user according to specific situations. And if the user is not set, the attribute of the child window is the attribute set by the terminal in a default mode. Due to the screen limitation of the terminal, the setting of the size and position of the window in the sub-window attribute will be limited to the screen of the terminal. Namely, if the size and the position of the sub-window are not set legally, the terminal sends out a warning and prompts the user to reset. The window level is used for the display sequence of each window, and when a plurality of sub-windows are displayed in the same display screen, each sub-window is sequentially displayed from high to low according to the window level.
when the sub-window and the sub-window attribute are installed by the application software, the terminal sets the corresponding sub-window of the application software according to the multi-window display requirement of the user. Or after the application software developer sets the sub-window corresponding to the application software, the sub-window is placed in an application software installation package for a user to download and install to the terminal.
Based on the set sub-windows and the sub-window attributes, when a user triggers a multi-window display function in application software installed on the terminal, the sub-windows and the sub-window attributes can be obtained, and the sub-windows corresponding to the application software are controlled to be displayed together with other windows on a current display screen of the terminal.
As shown in fig. 1, the terminal may include a processor 101, a memory 102, a user access module 103, a communication module 104, and a communication bus 105. The user access module 103 may include a user interface and a display screen. Wherein a communication bus 105 is used for communication between the components in the terminal. The user interface may include a keyboard, a touch screen, etc. for receiving information input by a user and sending the received information to the processor 101 for processing. The display screen can be an LCD display screen or an LED display screen and is used for displaying data and the like required to be displayed by the electronic equipment. It can be understood that the user interface and the display screen can be combined by a touch display screen, so that the purposes of receiving the input information of the user and displaying can be achieved. The communication module 104 is used for realizing mutual communication between the terminal and external devices, such as other terminals and other servers, and the communication module 104 may include wireless communication modules such as GSM, CDMA, WCDMA, and 3G, and may further include a radio frequency module, a WIFI module, a bluetooth module, an infrared module, and the like. Memory 102 may include one or more computer-readable storage media, and includes not only internal memory, but also external memory. The memory 102 stores therein an operating system, a multi-window display device, and the like. The processor 101 calls the multi-window display device and other components in the memory 102 to realize the display of the windows of the application software in the same display screen, and in the same page, the user can view and process the information in the windows at the same time, and so on. The operating system may include an ios system, an android system, a saiban system, and so on. The following embodiments are all exemplified by ios systems, and other systems can be implemented with reference thereto.
As shown in fig. 2, a first embodiment of a multi-window display apparatus of the present invention is shown. The multi-window display device of this embodiment may include:
A detecting module 110, configured to detect a multi-window display request triggered by application software on a terminal;
A window attribute obtaining module 120, configured to obtain a child window attribute corresponding to the application software according to the multi-window display request;
a process activation module 130, configured to control a process of the application software to be in an activated state;
And a display control module 140, configured to control the sub-window corresponding to the application software to be displayed together with all windows in the current display screen according to the sub-window attribute corresponding to the application software.
The embodiment of the invention mainly takes a mobile terminal as an example, and correspondingly describes the principle and the process of multi-window display. The mobile terminal may include a mobile phone or a smart phone having a plurality of application functions, as well as an ipad, a tablet computer, a palmtop computer, and the like. The multi-window display request is triggered by a user input through a user interface, such as a keyboard or touch screen. As shown in fig. 3, after a user opens an application of the mobile terminal, a multi-window display function may be set in a setting interface of the application. Namely, the switch of the control S1 is toggled to realize the opening or closing of the multi-window display function. Of course, the multi-window display function can be turned on or off in other manners. For example, the mobile terminal automatically pops up a prompt interface for an application to prompt the user whether to start the multi-window display. And after the user confirms, starting the multi-window display function of the application.
When the detecting module 110 detects a multi-window display request triggered by application software on a terminal, the window attribute acquiring module 120 acquires a sub-window attribute corresponding to the application software from a specified location of the terminal, such as a size, a location, a transparency, a window level, and the like of the sub-window. Then, the process activation module 130 will also determine whether the process of the current application software is in an activated state, and if the process is in the activated state, no processing is performed; and if the application software is not in the activated state, controlling the process of the application software to be in the activated state. The active process can then control the display of the sub-window in the background, without being suspended by the system of the terminal. Finally, the display control module 140 controls the sub-window corresponding to the application software to be displayed together with all windows in the current display screen according to the sub-window attribute. And each window is independently controlled by a corresponding process, and the windows are not influenced by each other. For example, when a user watches a video, the received information can be displayed through the sub-window of the instant messaging software, and the playing of the video is not interrupted.
Taking an application as an example, the application has started a multi-window display function. And the window is highest in level. As shown in fig. 4, after the application a starts the multi-window display function, since the sub-window corresponding to the application a has the highest hierarchy, the sub-window corresponding to the application a is displayed in the main page of the mobile terminal, and the window is a transparent window and is displayed on the uppermost layer of the current page. When the user clicks the application B in the main page, the mobile terminal responds to the request, and when the application B is started, because the application A starts a multi-window display function and the hierarchy of the sub-window corresponding to the application A is highest, the window corresponding to the application B and the sub-window corresponding to the application A are displayed in the same page, and the sub-window corresponding to the application A is displayed on the upper layer of the window corresponding to the application B.
When the embodiment of the invention detects the multi-window display function triggered by the application software, the window attribute corresponding to the application software is obtained, the process corresponding to the application software is controlled to be in the activated state, and then the display of a plurality of windows in the same page is controlled according to the window attribute. Therefore, the embodiment of the invention realizes the window display corresponding to a plurality of application software in the same page.
Further, the displayed window is used for displaying information required to be displayed by the application. Such as information sent externally to the application. The display control module 140 may further be configured to: and when the information sent to the application software from the outside is detected, controlling the sub-window corresponding to the application software to display the information sent to the application software from the outside.
after the multi-window display function is started by the application software, the process corresponding to the application software is also in an activated state. The process in the activated state will detect whether the information sent to the application by other terminals from the outside is received. For example, the terminal receives information transmitted from the outside (e.g., other terminals or servers) through the communication module 104, and then transmits the information to a corresponding process, which processes the information. And when the process receives the information, the process can control the information to be displayed on the corresponding child window of the application software. The form in which the information is displayed on the corresponding sub-window of the application software may include various forms. For example, as shown in sub-diagram (a) in fig. 5, the information received by the process is directly displayed on the sub-window corresponding to the application software; as shown in sub-diagram (b) in fig. 5, the sub-window corresponding to the application software only displays the source of information transmission; as shown in sub-diagram (c) of fig. 5, the sub-window corresponding to the application software displays the number of received pieces of information and displays the source of partial information transmission. It is understood that the sub-window corresponding to the application software may also display the received pieces of information in a scrolling manner.
furthermore, the multi-window display device also provides an information processing function of the sub-window. As shown in fig. 6, the multi-window display device may further include:
the window event response module 150 is configured to detect a touch event of a child window corresponding to the application software, and enter an interactive interface of the application software to respond to the touch event.
When the application starts a multi-window display function and controls the sub-window corresponding to the application to be displayed in the current display page, the sub-window is also provided with a corresponding touch event for a user to perform touch operation. For example, the user may click or double click on the sub-window corresponding to the application to trigger the corresponding touch event. In this embodiment, when the child window is clicked, the corresponding touch event is an interactive interface entering application software; when the child window is double-clicked, the corresponding touch event is to hide the child window; when the child window is pressed and dragged for a long time, the corresponding touch event is to move the child window; and when the closing control on the sub-window of the application software is clicked, the corresponding touch event is that the sub-window of the application software is closed and operates in a background. As shown in sub-diagram (a) in fig. 7, when a process of the current application software receives a piece of information and clicks a sub-window corresponding to the application software, the mobile terminal pops up a display interface of the message. In the interface, the user can directly reply to the information. As shown in sub-diagram (b) in fig. 7, when the process of the current application software receives a plurality of pieces of information and clicks the sub-window corresponding to the application software, the mobile terminal pops up the message display interface of the application software. In this interface, the user can view all new information received. And the user can reply to the message in the display interface. As shown in sub-diagram (a) of fig. 8, when the user double-clicks the sub-window of the application software, a corresponding touch event will be triggered. The mobile terminal responds to the touch event, namely hiding the sub-window at the boundary of the current page. By clicking the sub-window at the boundary, the sub-window can be displayed again on the current page. As shown in sub-diagram (b) in fig. 8, the user may also click a close control on the sub-window of the application software, and the mobile terminal closes the sub-window of the application software. As shown in fig. 9, when the user presses the sub-window of the application software for a long time, drags the sub-window to a corresponding position along the arrow direction, and then releases the sub-window, the corresponding touch event is triggered. The mobile terminal responds to the touch event, namely, the sub-window is moved to the specified position.
Further, if there are a plurality of sub-windows displayed on the current screen of the terminal, the display control module 140 may be further configured to: and controlling the sub-windows corresponding to the application software to be sequentially displayed in a stacking manner according to the window level attributes, and displaying the sub-windows on the upper layer of the window of the application which is not opened with multi-window display. Assume that the application a and the application C respectively open the multi-window display function, and the application B does not open the multi-window display function. Therefore, the sub-window corresponding to the application A, the window corresponding to the application B and the sub-window corresponding to the application C are displayed simultaneously on the same page, the hierarchy of the sub-window corresponding to the application C is high, and the hierarchy of the window corresponding to the application A is low. As shown in sub-diagram (a) in fig. 10, because the positions of the sub-window corresponding to the application a and the sub-window corresponding to the application C are different, the sub-window corresponding to the application a and the sub-window corresponding to the application C both display the upper layer of the window corresponding to the application B, and the sub-window corresponding to the application C is displayed on the uppermost layer of the current page and is in an activated state. As shown in sub-diagram (B) in fig. 10, since the positions of the sub-window corresponding to the application a and the sub-window corresponding to the application C are the same, the sub-window corresponding to the application a and the sub-window corresponding to the application C are displayed in an upper layer of the sub-window corresponding to the application B in a stacked manner, and the sub-window corresponding to the application C is displayed on an uppermost layer of the current page and is in an activated state.
further, the use of other applications may be affected due to the window displayed in the current page. Therefore, the display control module 140 may further be configured to: and when the process corresponding to the application software does not receive the information within the preset time, controlling the sub-window of the application software to be hidden until the process corresponding to the application software receives the information again.
In this embodiment, the preset time may be set by a user, for example, 30s, or may be set by default by the terminal. And when the process corresponding to the application software does not receive the information within the preset time, controlling the hiding of the child window of the application software. The hiding mode can be hiding to the boundary of the current page or directly closing and operating in the background. And popping up the process when the process corresponding to the application software receives the information again.
correspondingly, as shown in fig. 11, a terminal multi-window display method of the present invention is shown. The terminal multi-window display method comprises the following steps:
step S110, detecting a multi-window display request triggered by application software on a terminal;
Step S120, acquiring a sub-window attribute corresponding to the application software according to the multi-window display request;
step S130, controlling the process of the application software to be in an activated state;
and step S140, controlling the sub-window corresponding to the application software and all windows in the current display screen to be displayed together according to the sub-window attribute corresponding to the application software.
the multi-window display request is triggered by a user input through a user interface, such as a keyboard or touch screen. When a multi-window display request triggered by application software on a terminal is detected, the sub-window attributes corresponding to the application software, such as the size, position, transparency, window level and the like of a window, are acquired from the specified position of the terminal. Then judging whether the process of the current application software is in an activated state, if so, not processing; and if the application software is not in the activated state, controlling the process of the application software to be in the activated state. The active process can then control the display of the sub-window in the background, without being suspended by the system of the terminal. And finally, controlling the sub-window corresponding to the application software to be displayed together with all windows in the current display screen according to the attribute of the sub-window. And if a plurality of sub-windows are displayed on the current screen of the terminal, controlling the sub-windows corresponding to the application software to be sequentially displayed in a stacking manner according to the window level attributes and displaying the sub-windows on the upper layer of the window of the application which is not opened for multi-window display.
When the embodiment of the invention detects the multi-window display function triggered by the application software, the sub-window attribute corresponding to the application software is acquired, the process corresponding to the application software is controlled to be in the activated state, and then the display of a plurality of windows in the same page is controlled according to the window attribute. Therefore, the embodiment of the invention realizes the window display corresponding to a plurality of application software in the same page.
further, as shown in fig. 12, the terminal multi-window display method may further include:
And S150, when the information sent to the application software from the outside is detected, controlling the sub-window corresponding to the application software to display the information sent to the application software from the outside.
after the multi-window display function is started by the application software, the process corresponding to the application software is also in an activated state. The process in the activated state will detect whether the information sent to the application by other terminals from the outside is received. And when the process receives the information, the process can control the information to be displayed on the corresponding child window of the application software. The form in which the information is displayed on the corresponding sub-window of the application software may include various forms. For example, as shown in sub-diagram (a) in fig. 5, the information received by the process is directly displayed on the sub-window corresponding to the application software; as shown in sub-diagram (b) in fig. 5, the sub-window corresponding to the application software only displays the source of information transmission; as shown in sub-diagram (c) of fig. 5, the sub-window corresponding to the application software displays the number of received pieces of information and displays the source of partial information transmission. It is understood that the sub-window corresponding to the application software may also display the received pieces of information in a scrolling manner.
Further, as shown in fig. 13, the terminal multi-window display method may further include:
step S160, detecting a touch event of the sub-window corresponding to the application software, and entering an interactive interface of the application software to respond to the touch event.
when the application starts a multi-window display function and controls the sub-window corresponding to the application to be displayed in the current display page, the sub-window also sets a corresponding touch event for a user to perform touch operation. For example, the user may click or double click on the sub-window corresponding to the application to trigger the corresponding touch event. In this embodiment, when the window is clicked, the corresponding touch event is an interactive interface entering application software; when the child window is double-clicked, the corresponding touch event is to hide the child window; when the child window is pressed and dragged for a long time, the corresponding touch event is to move the child window; and when the closing control on the sub-window of the application software is clicked, the corresponding touch event is that the sub-window of the application software is closed and operates in a background.
further, as shown in fig. 14, the terminal multi-window display method may further include:
step S170, when the process corresponding to the application software does not receive the information within the preset time, controlling the sub-window of the application software to be hidden until the process corresponding to the application software receives the information again.
In this embodiment, the preset time may be set by a user, for example, 30s, or may be set by default by the terminal. And when the process corresponding to the application software does not receive the information within the preset time, controlling the hiding of the child window of the application software. The hiding mode can be hiding to the boundary of the current page or directly closing and operating in the background. And popping up the process when the process corresponding to the application software receives the information again.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.