Display method and terminal
Technical Field
The invention relates to the field of terminal application, in particular to a display method and a terminal.
Background
With the continuous development of mobile intelligent terminal technology and 3G and 4G wireless networks, more and more application programs are installed on an intelligent terminal, more and more scenes with multiple applications in parallel are obtained, and the user experience is very poor due to frequent mutual switching among the multiple applications.
At present, in order to reduce switching of a user among multiple applications and achieve simultaneous display of display interfaces of the multiple applications, a scheme for expanding a display screen is provided, that is, a host is externally connected with multiple display screens, and display interfaces of different applications are displayed in each display screen to achieve split-screen display. However, this method is not suitable for mobile terminals such as smart phones, tablet computers, multimedia players, etc.
Therefore, no reasonable terminal split-screen display scheme exists in the prior art.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a display method and a terminal, so as to implement split-screen display of multiple applications of the terminal, avoid a user from switching among the multiple applications back and forth, and facilitate user operations.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a display method, where the method includes: the method comprises the steps that when a terminal displays a display interface of a first application, a push message of at least one second application is received, wherein the first application is different from the second application; the terminal divides the whole display area of the terminal into a message display area and an application display area; and the terminal controls the push message to be displayed in the message display area and controls the display interface of the first application to be completely displayed in the application display area.
Further, the terminal controls the push message to be displayed in the message display area, including: the terminal determines the message type of the push message; and the terminal displays the push information in the message display area in a mode corresponding to the message type.
Further, the determining, by the terminal, the message type of the push message includes: the terminal determines the push message as a notification message; correspondingly, the displaying, by the terminal, the push information in the message display area in a manner corresponding to the message type includes: and the terminal extracts the keywords in the push message and displays the keywords in the message display area.
Further, the determining, by the terminal, the message type of the push message includes: the terminal determines the push message as a communication message; correspondingly, the displaying, by the terminal, the push information in the message display area in a manner corresponding to the message type includes: and the terminal displays a quick reply window in the message display area and displays the push message in the message display area except for the quick reply window.
Further, when the at least one second application is larger than one, the terminal controls the push message to be displayed in the message display area, including: and the terminal sequentially displays the push message of each second application in the message display area according to a preset rule.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes: the device comprises a message receiving unit, an area dividing unit and a display control unit; the message receiving unit is used for receiving a push message of at least one second application when a display interface of a first application is displayed, wherein the first application is different from the second application; the area dividing unit is used for dividing the whole display area of the terminal to which the area dividing unit belongs into a message display area and an application display area; the display control unit is configured to control the push message to be displayed in the message display area, and control a display interface of the first application to be completely displayed in the application display area.
Further, the display control unit includes: a message type determining subunit, configured to determine a message type of the push message; and the display control subunit is used for displaying the push information in the message display area in a mode corresponding to the message type.
Further, the message type determining subunit is specifically configured to determine that the push message is a notification message; correspondingly, the display control subunit is specifically configured to extract keywords in the push message, and display the keywords in the message display area.
Further, the message type determining subunit is specifically configured to determine, by the terminal, that the push message is a communication message; correspondingly, the display control subunit is specifically configured to display a shortcut reply window in the message display area, and display the push message in an area other than the shortcut reply window in the message display area.
Further, when the at least one second application is larger than one, the display control unit is specifically configured to sequentially display the push message of each second application in the message display area according to a preset rule.
In the display method and the terminal provided by the embodiment of the invention, when the terminal displays the display interface of the first application, the terminal receives the push message of at least one second application, and then the display area of the terminal is divided into two parts, wherein one part is the message display area, and the other part is the application display area, so that the terminal can control the display of the push message in the message display area and continuously display the display interface of the first application in the application display area, thereby realizing the split-screen display of a plurality of applications in the terminal, avoiding the back-and-forth switching of a user among the plurality of applications, and facilitating the operation of the user.
Drawings
FIG. 1 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a display area of a terminal according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a message display area and an application display area in an embodiment of the invention;
FIG. 4 is a schematic diagram of a first split-screen display interface according to an embodiment of the invention;
FIG. 5 is a diagram of a second split-screen display interface according to an embodiment of the invention;
FIG. 6 is a diagram illustrating a third split-screen display interface according to an embodiment of the invention;
fig. 7 is a schematic structural diagram of a terminal in an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a display method which can be applied to intelligent mobile terminals such as smart phones, tablet computers and multimedia players.
In this embodiment, the terminal has a display screen, an area corresponding to the whole display screen is a display area of the terminal, display interfaces of applications can be displayed on the display area, and the display interfaces can be spread over the whole display area or displayed in a partial area of the display area 1.
Fig. 1 is a schematic flow chart of a display method in an embodiment of the present invention, and referring to fig. 2, the method includes:
s101: the method comprises the steps that when a terminal displays a display interface of a first application, a push message of at least one second application is received, wherein the first application is different from the second application;
specifically, a user uses a terminal to run a first application, such as a video application, a game application, a navigation application, or a browser, which occupies a large system resource, and needs to continuously play, and occupies a large area of a screen, at this time, a display interface of the first application is overlaid on the entire display area 1 shown in fig. 2, and then, the terminal receives a push message of at least one second application running in the background at the same time, where the second application may be an application, such as a stock application, an instant chat application, a short message application, a weather application, a flight application, or an alarm clock application, which has a simple display content and a high real-time requirement and does not need to occupy too much area of the screen.
In the specific implementation process, before the user runs the first application, the user manually starts the screen splitting function, and at this time, if the terminal receives push information of at least one second application pushed by the network side, S101 is executed; certainly, the terminal may also monitor in real time whether the application currently running in the foreground is the first application, if so, the terminal automatically starts the split screen function and executes S101, and if not, the terminal does not perform any processing.
S102: the terminal divides the whole display area of the terminal into a message display area and an application display area;
specifically, upon receiving the push message, the terminal divides the entire display area into a message display area 11 and an application display area 12, as shown in fig. 3.
S103: and the terminal controls the push message to be displayed in the message display area and controls the display interface of the first application to be completely displayed in the application display area.
Specifically, the terminal pushes the push message to a message display interface to control the message display interface to be capable of displaying in a message display area, and meanwhile, the display interface of the first application is pushed to an application display interface after being scaled to control the application display interface to be capable of completely displaying in the application display area.
In a specific implementation process, when at least one second application is one, after the terminal executes the step of controlling the push message to be displayed in the message display area in S103, one push message corresponding to the second application is displayed and maintained in the message display area until the user manually closes the split-screen mode or the user enters a display interface of the second application; when at least one second application is greater than one, the terminal displays the push message of each second application in the message display area in sequence according to a preset rule when executing the step of controlling the push message to be displayed in the message display area by the terminal in S103, for example, when the second application is two applications, the terminal may scroll and display the push messages of the two applications according to a preset scroll frequency, may also display the push messages of the two applications in the message display area side by side, may further divide the message display area into several parts, and each part displays one push message.
Preferably, an operation object is displayed in the message display area, a user can perform operations such as clicking, dragging and the like on the operation object to open a setting interface of the message display area, the setting interface is still displayed in the message display area, and the user can adjust an application for displaying a push message in the message display area, a refresh frequency of the push message and the like through the setting interface.
In practical applications, because the types of the applications are different, the corresponding push messages may also be of multiple types, such as notification messages, communication messages, and the like, where the notification messages only need to notify the user, and the user does not perform human-computer interaction based on the messages, but if the messages are communication messages, not only the user needs to be notified, but also the user may perform some simple human-computer interaction based on the information, and then, in order to provide different display modes for different types of information, the step of the terminal controlling the push messages to be displayed in the message display area in S103 may include: the terminal determines the message type of the push message; and the terminal displays the push information in the message display area in a mode corresponding to the message type.
It should be noted that the terminal manufacturer or the system developer may divide the commonly used second application into several types, such as a communication application, a notification application, and the like, according to the description information, and then the terminal may determine the type of the push message according to the type of the application corresponding to the push message. The at least one second application may be the same type of application or different types of applications, and the present invention is not particularly limited.
For example, assuming that the second application is a notification application, after S102, the terminal may first determine that the push message is a notification message corresponding to the notification application, and then display the push message in a message display area in a manner corresponding to the notification message, for example, the terminal extracts a keyword in the push message and displays the keyword in the message display area. In this way, the user can view the notification message while running the first application.
For another example, if the second application is a communication application, then after S102, the terminal may first determine that the push message is a communication message corresponding to the communication application, and then display the push message in a message display area in a manner corresponding to the communication message, for example, the terminal displays a shortcut reply window in the message display area, through which the user may perform human-computer interaction based on the communication message, and at the same time, the terminal displays the push message in an area other than the shortcut reply window in the message display area. Therefore, the user can carry out quick human-computer interaction under the condition of not switching the screen, and the user experience is greatly improved.
The method described in one or more of the above embodiments is described below with specific examples.
The first embodiment is as follows:
it is assumed that a first application, i.e. a video application, and a second application, i.e. a weather application, are running simultaneously in the terminal.
First, the user manually starts the split screen function and starts the video application, and at this time, the display interface of the first application, i.e., the video application, is displayed in full screen in the display area 1 of the terminal as shown in fig. 2, so that the user can view the display interface. Then, the terminal gets its pushed push message from the server of the weather application, i.e. the real-time weather information "currently 10℃ a ground". Next, as shown in fig. 3, the terminal divides the display area into a message display area 11 and an application display area 12. And next, the terminal determines the weather application corresponding to the push message as a notification application, and further determines the push message as a notification message. Finally, as shown in fig. 4, the terminal extracts the keywords in the real-time weather information: "a ground", "10 ℃", and displays these keywords in the message display area 11, while the display interface of the control video application is scaled adaptively and displayed entirely in the application display area 12.
Example two:
it is assumed that a first application, i.e. a navigation application, and a second application, i.e. a short message application, are simultaneously running in the terminal.
Then, the terminal monitors that the foreground runs the navigation application and the background runs the short message application in real time, at this time, the terminal automatically starts the split screen function to wait for the push message, and at this time, the display area 1 of the terminal shown in fig. 2 displays the first application in a full screen mode, namely, a display interface of the navigation application. Then, the terminal receives a push message from the network side, that is, a short message "sender x: in tomorrow! After that, as shown in fig. 3, the terminal divides the display area into a message display area 11 and an application display area 12. Next, the terminal determines that the short message is a communication message, and then, as shown in fig. 5, displays the short message "sender x: in tomorrow! "and a quick-reply window 51 while the display interface controlling the navigation application is scaled adaptively to be displayed entirely within the application display area 12.
Example three:
it is assumed that a first application, i.e. a browser application, and 3 second applications, i.e. a stock application, an instant chat application and a flight application, are simultaneously running in the terminal.
First, a user manually opens a split screen function and a browser application, and at this time, a display interface of a first application, that is, the browser application, is displayed in a full screen in a display area 1 of the terminal as shown in fig. 2. Then, the terminal receives the push messages of the second application from the network side, namely the real-time tendency messages, the instant chat messages and the flight time messages of the stock application respectively. Next, the terminal divides the display area into a message display area 11 and an application display area 12. Next, the terminal extracts keywords of the trend message: "B shares" and "+ 5.2", key to flight time message: "flight w", "a to B", and "14: 30 takeoff", at which time the terminal determines the real-time tendency message and the flight time message as notification messages and determines the instant chat message as a communication message. Further, as shown in fig. 6, the terminal further divides the message display area 11 into 3 parts in order from left to right, displays keywords of the trending messages in a first part 61, and displays instant chat messages in a second part 62: "H: where are you? "and a quick reply window, displaying the flight time message in the third portion 63, while the display interface controlling the browser application is scaled to adaptively display entirely within the application display area 12.
Therefore, when the terminal displays the display interface of the first application, the terminal receives the push message of at least one second application, and then the display area of the terminal is divided into two parts, one part is the message display area, and the other part is the application display area, so that the terminal can control the display of the push message in the message display area and continue to display the display interface of the first application in the application display area, so that the split-screen display of a plurality of applications in the terminal is realized, the back-and-forth switching of a user among the plurality of applications is avoided, and the operation of the user is facilitated.
Based on the same inventive concept, the embodiment of the present invention further provides a terminal, which is consistent with the terminal described in one or more embodiments above.
Fig. 7 is a schematic structural diagram of a terminal in an embodiment of the present invention, and referring to fig. 7, the terminal includes: a message receiving unit 71, an area dividing unit 72, and a display control unit 73; the message receiving unit 71 is configured to receive a push message of at least one second application when the display control unit 73 controls to display a display interface of a first application, where the first application is different from the second application; an area dividing unit 72 for dividing the entire display area of the terminal to which the terminal belongs into a message display area and an application display area; and the display control unit 73 is configured to control the push message to be displayed in the message display area, and control the display interface of the first application to be completely displayed in the application display area.
Further, the display control unit 73 includes: the message type determining subunit is used for determining the message type of the push message; and the display control subunit is used for displaying the push information in the message display area in a mode corresponding to the message type.
Further, the message type determining subunit is specifically configured to determine that the push message is a notification message; correspondingly, the display control subunit is specifically configured to extract the keywords in the push message, and display the keywords in the message display area.
Further, the message type determining subunit is specifically configured to determine, by the terminal, that the push message is a communication message; correspondingly, the display control subunit is specifically configured to display a shortcut reply window in the message display area, and display the push message in an area other than the shortcut reply window in the message display area.
Further, when at least one second application is larger than one, the display control unit is specifically configured to sequentially display the push message of each second application in the message display area according to a preset rule.
The message receiving unit 71 may be disposed in a communication module such as a transceiver and a radio frequency module of the terminal, and the area dividing unit 72 and the display control unit 73 may be disposed in a display module such as a Graphics Processing Unit (GPU) and a display card, which is not limited in the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.