CN107908446B - Window display method and device and computer readable storage medium - Google Patents

Window display method and device and computer readable storage medium Download PDF

Info

Publication number
CN107908446B
CN107908446B CN201711029442.9A CN201711029442A CN107908446B CN 107908446 B CN107908446 B CN 107908446B CN 201711029442 A CN201711029442 A CN 201711029442A CN 107908446 B CN107908446 B CN 107908446B
Authority
CN
China
Prior art keywords
window
displayed
application
display
event
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201711029442.9A
Other languages
Chinese (zh)
Other versions
CN107908446A (en
Inventor
侯军红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Leiniao Network Media Co ltd
Original Assignee
Shenzhen Leiniao Network Media Co ltd
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 Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN201711029442.9A priority Critical patent/CN107908446B/en
Publication of CN107908446A publication Critical patent/CN107908446A/en
Application granted granted Critical
Publication of CN107908446B publication Critical patent/CN107908446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an application window display method, an application window display device and a computer readable storage medium, wherein the application window display method comprises the following steps: receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value; if the transparency of the window to be displayed is larger than a preset threshold value, detecting whether a displayed window exists currently; and if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed. According to the invention, when the window to be displayed with certain transparency needs to be superposed on the displayed window for synchronous display, the displayed window is controlled to disappear, and only the window to be displayed is displayed, so that the influence on the display effect caused by the overlapping display of the application windows is avoided, and the visual experience of a user is improved.

Description

Window display method and device and computer readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for displaying an application window, and a computer-readable storage medium.
Background
With the development of electronic technology and the progress of network technology, more and more Applications (APPs) can be loaded on electronic products. At present, when an electronic product displays an application window 1, if the application window 2 needs to be displayed simultaneously, for example, the application window 2 is overlapped on the application window 1 in a semi-transparent manner, the application window 2 can be displayed simultaneously without interrupting the application window 1. In this display manner, if the content displayed by the application window 1 is relatively large (for example, each part of the application window 1 displays content), and most of the content is text, and the content displayed by the application window 2 is also relatively large (for example, most of the content in the application window 2 is also text), the content of the application window 1 and the content of the application window 2 are mixed and displayed, so that the display effect is relatively poor, and the viewing experience of the user is affected.
Disclosure of Invention
The invention mainly aims to provide an application window display method, an application window display device and a computer readable storage medium, and aims to solve the technical problem that in the prior art, when windows are displayed in an overlapped mode, the display effect is poor.
In order to achieve the above object, the present invention provides an application window display method, including:
receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value;
if the transparency of the window to be displayed is larger than a preset threshold value, detecting whether a displayed window exists currently;
and if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed.
Preferably, if there is a displayed window at present, controlling the displayed window to disappear, and displaying the window to be displayed includes:
if the displayed window exists currently, a disappearing event and a starting event corresponding to the application starting instruction are respectively sent to the displayed window and the window to be displayed, so that the displayed window disappears according to the disappearing event and the window to be displayed is displayed according to the starting event.
Preferably, if there is a displayed window at present, controlling the displayed window to disappear, and displaying the window to be displayed further includes:
if the displayed window exists currently, detecting whether the displayed window and the window to be displayed correspond to the same application starting instruction or not;
if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed;
and if the overlapped area exists, controlling the displayed window to disappear, and displaying the window to be displayed.
Preferably, if there is a displayed window currently, detecting whether the displayed window and the window to be displayed correspond to the same application start instruction includes:
and if the displayed window and the window to be displayed correspond to the same application starting instruction, controlling the displayed window to disappear and not displaying the window to be displayed.
Preferably, if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed includes:
and if the overlapped area exists, adjusting the display position of the displayed window and the display position of the window to be displayed so as to enable the displayed window and the window to be displayed not to be overlapped.
Preferably, if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed further includes:
and if the overlapped area exists, adjusting the transparency of the window to be displayed, and displaying the window to be displayed with the adjusted transparency.
Preferably, if there is a displayed window currently, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed includes:
and if the overlapping area does not exist, displaying the window to be displayed.
Further, to achieve the above object, the present invention also provides an application window display device including: a memory, a processor and an application window display program stored on the memory and executable on the processor, the application window display program when executed by the processor implementing the steps of the application window display method as described above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein an application window display program is stored on the computer readable storage medium, and when executed by a processor, the application window display program implements the steps of the application window display method as described above.
In the invention, when an application starting instruction is received, if the window to be displayed corresponding to the application starting instruction is detected to be a semitransparent window, whether a displayed window exists is further detected, and if the displayed window exists, the displayed window is controlled to disappear and the window to be displayed is displayed. According to the invention, when the window to be displayed with certain transparency needs to be superposed on the displayed window for synchronous display, the displayed window is controlled to disappear, and only the window to be displayed is displayed, so that the influence on the display effect caused by the overlapping display of the application windows is avoided, and the visual experience of a user is improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for displaying an application window according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for displaying an application window according to the present invention;
FIG. 4 is a diagram illustrating a scene in which a displayed window and a window to be displayed are displayed on a screen according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The application window display device of the embodiment of the invention can be a television, a PC, a smart phone, a tablet personal computer and other equipment with a display function.
As shown in fig. 1, the application window display apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a display 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the application window display arrangement shown in FIG. 1 does not constitute a limitation of application window displays, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application window display program.
In the application window display apparatus shown in fig. 1, the processor 1001 may be configured to call an application window display program stored in the memory 1005, and perform the following operations:
receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value;
if the transparency of the window to be displayed is larger than a preset threshold value, detecting whether a displayed window exists currently;
and if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
if the displayed window exists currently, a disappearing event and a starting event corresponding to the application starting instruction are respectively sent to the displayed window and the window to be displayed, so that the displayed window disappears according to the disappearing event and the window to be displayed is displayed according to the starting event.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
if the displayed window exists currently, detecting whether the displayed window and the window to be displayed correspond to the same application starting instruction or not;
if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed;
and if the overlapped area exists, controlling the displayed window to disappear, and displaying the window to be displayed.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
and if the displayed window and the window to be displayed correspond to the same application starting instruction, controlling the displayed window to disappear and not displaying the window to be displayed.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
and if the overlapped area exists, adjusting the display position of the displayed window and the display position of the window to be displayed so as to enable the displayed window and the window to be displayed not to be overlapped.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
and if the overlapped area exists, adjusting the transparency of the window to be displayed, and displaying the window to be displayed with the adjusted transparency.
Further, the processor 1001 may call an application window display program stored in the memory 1005, and also perform the following operations:
and if the overlapping area does not exist, displaying the window to be displayed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for displaying an application window according to a first embodiment of the present invention.
In one embodiment, an application window display method includes:
step S10, receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value;
step S20, if the transparency of the window to be displayed is larger than a preset threshold, detecting whether a displayed window exists currently;
and step S30, if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed.
In this embodiment, the smart television is taken as an example, and the scheme of the present invention is not limited to the smart television, and can be applied to electronic products such as computers and mobile phones according to actual needs.
At present, because the input is inconvenient, and the use of a user is convenient, a plurality of television manufacturers set shortcut keys on a remote controller, namely, the function of direct operation by one key. The user can quickly open the application through this function, for example, the user opens the application window 1 by pressing the key 1, at this time, the user presses the key 2 again, and then opens the application window 2, if the application window 2 is a translucent window (in this embodiment, the translucent window refers to a window with a certain transparency, and if the translucent window is displayed by being covered on a certain window, the window at the bottom can be observed through the translucent window, that is, the window with the transparency greater than the preset threshold value, which can be set according to the actual situation, for example, 30%, that is, a window with transparency greater than 30% is a translucent window), the application window 2 is displayed on the application window 1 in an overlapping manner, if the content displayed by the application window 1 is more (for example, each part of the application window 1 displays content), and most of the content is text, and the content displayed by the application window 2 is more (for example, most of the content in the application window 2 is also text), the content of the application window 1 and the content of the application window 2 may be mixed and displayed, resulting in poor display effect and affecting the viewing experience of the user.
In an optional embodiment of the present invention, when the user wants to start the application 1 by pressing the shortcut key 1 on the remote controller, the application may be started in other manners besides pressing the shortcut key, such as voice control, which is not limited herein. The television receives a starting instruction of the application program 1, the instruction comprises an identity of the application program 1, the program to be started is determined according to the identity, and then whether a window to be displayed corresponding to the program to be started is a semitransparent window is further detected. In this embodiment, the transparency information of the display window corresponding to each application program may be stored in the television memory in advance, for example, the identity of each program is stored in the memory in association with the transparency of the corresponding program display window, and a window whose transparency is greater than 45% (which may be adjusted according to actual needs, and is not limited herein) is defined as a semi-transparent window. For example, when an application start instruction is received at this time, the identity of the application program included in the application start instruction is 1, and the transparency information of the corresponding display window acquired in the memory according to the identity is 55%, it is determined that the window to be displayed corresponding to the application start instruction at this time is a translucent window.
And when the window to be displayed is judged to be a semitransparent window, further detecting whether a displayed window exists at present, namely detecting whether a window for displaying a system window or an application program exists on the current screen. For example, whether a process corresponding to the window exists is searched in the system process, and if the process exists, it is indicated that the displayed window currently exists.
If no displayed window exists at present, the condition that the display effect is influenced by window overlapping display cannot occur, and the window to be displayed is directly displayed.
If the displayed window exists currently and the window to be displayed is a semitransparent window, if the window to be displayed is displayed, the content of the displayed window and the content of the window to be displayed may be displayed in a mixed manner, so that the display effect is poor, and the viewing experience of a user is influenced. The displayed window needs to be controlled to disappear, and the window to be displayed is displayed.
In an alternative embodiment of the present invention, as shown in fig. 3, fig. 3 is a flowchart illustrating a second embodiment of an application window display method according to the present invention. Controlling the displayed window to disappear, and displaying the window to be displayed may be:
when the displayed window exists currently and the window to be displayed is a semi-transparent window, a system (such as an android system) issues a disappearing event and a starting event (both the disappearing event and the starting event contain the identity of the program to be started) according to an application starting instruction. The application program corresponding to the displayed window receives the disappearance event, judges whether the identity of the application program is consistent with the identity of the program to be started contained in the disappearance event or not, if so, does not perform any processing, and if not, ends the operation, namely, controls the disappearance of the window being displayed, of course, the application program can also retract the window being displayed, does not end the operation, and only causes the window being displayed not to be displayed on the screen; meanwhile, the program to be started corresponding to the identity of the program to be started receives the start event, judges whether the display window of the program to be started is displayed, cancels the display if the display window is in the display state, namely disappears (for example, the window of the application program A is already displayed on the screen, the user triggers the start instruction of the application program A again, cancels the display of the window of the application program A on the screen), and displays the display window of the program to be started if the display window is not in the display state.
In another optional embodiment of the present invention, the controlling the displayed window to disappear, and the displaying the window to be displayed may further be:
when the displayed window exists currently and the window to be displayed is a semitransparent window, firstly, whether the displayed window and the window to be displayed correspond to the same application starting instruction or not is detected, namely whether the application program identification corresponding to the displayed window is consistent with the application program identification corresponding to the window to be displayed or not is detected, if so, the displayed window is controlled to disappear, and the window to be displayed is not displayed. For example, the window of the application a is already displayed on the screen, and the user triggers the start instruction of the application a again, so that the display of the displayed window is cancelled, and the window corresponding to the start instruction is not displayed. If the display position of the displayed window is not consistent with the display position of the window to be displayed, whether an overlapping area exists or not is detected, and if the overlapping area exists, the display of the displayed window is cancelled, and the window to be displayed is displayed. For example, the coordinate set of the display position of the displayed window is a, the coordinate set of the display position of the window to be displayed is B, whether the same coordinate point exists in the coordinate set a and the coordinate set B is detected, if so, it is indicated that an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed, the process of the application program corresponding to the displayed window is killed in the system process, so as to cancel the display of the displayed window, and of course, the window being displayed can be retracted, the operation of the application program is not ended, only the displayed window is not displayed on the screen, and then the application program to be started is started, and the window to be displayed is displayed. Further, when it is detected that the same coordinate point exists in the coordinate set a and the coordinate set B, the positions of the displayed window and the window to be displayed may also be adjusted, so that the same coordinate point does not exist in the coordinate set a 'of the display position of the displayed window after the position adjustment and the coordinate set B' of the display position of the window to be displayed after the position adjustment. Further, when the same coordinate points in the coordinate set a and the coordinate set B are detected, the transparency of the window to be displayed may also be adjusted, for example, the area of the window to be displayed tends to be in an opaque state.
In the invention, when an application starting instruction is received, if the window to be displayed corresponding to the application starting instruction is detected to be a semitransparent window, whether a displayed window exists is further detected, and if the displayed window exists, the displayed window is controlled to disappear and the window to be displayed is displayed. According to the method and the device, when the semi-transparent window to be displayed needs to be overlaid on the displayed window for synchronous display, the displayed window is controlled to disappear, only the semi-transparent window is displayed, the influence on the display effect caused by the overlapping display of the application windows is avoided, and the visual experience of a user is improved.
Further, in an embodiment of the application window display method of the present invention, step S30 includes:
if the displayed window exists currently, a disappearing event and a starting event corresponding to the application starting instruction are respectively sent to the displayed window and the window to be displayed, so that the displayed window disappears according to the disappearing event and the window to be displayed is displayed according to the starting event.
In an alternative embodiment of the present invention, as shown in fig. 3, fig. 3 is a flowchart illustrating a second embodiment of an application window display method according to the present invention.
When the displayed window exists currently and the window to be displayed is a semi-transparent window, a system (such as an android system) issues a disappearing event and a starting event (both the disappearing event and the starting event contain the identity of the program to be started) according to an application starting instruction. The application program corresponding to the displayed window receives the disappearance event, judges whether the identity of the application program is consistent with the identity of the program to be started contained in the disappearance event or not, if so, does not perform any processing, and if not, ends the operation, namely, controls the disappearance of the window being displayed, of course, the application program can also retract the window being displayed, does not end the operation, and only causes the window being displayed not to be displayed on the screen; meanwhile, the program to be started corresponding to the identity of the program to be started receives the start event, judges whether the display window of the program to be started is displayed, cancels the display if the display window is in the display state, namely disappears (for example, the window of the application program A is already displayed on the screen, the user triggers the start instruction of the application program A again, cancels the display of the window of the application program A on the screen), and displays the display window of the program to be started if the display window is not in the display state.
In an embodiment of the present invention, after receiving a start instruction of an application program a, detecting that a displayed window 1 currently exists and a window 2 to be displayed (a display serial port corresponding to the application program a) is a translucent window, a system issues a disappearing event and a start event (both the disappearing event and the start event include an identity of the application program a). The application program corresponding to the displayed window 2 receives the disappearance event, determines whether the identity of the application program is consistent with the identity of the program to be started included in the disappearance event, if so, does not perform any processing, if not, collects the displayed window 2, meanwhile, the application program a receives the start event, determines whether the display window of the application program a is displayed, and if in the display state, cancels the display, that is, disappears (for example, the window of the application program a is already displayed on the screen, and the user triggers the start instruction of the application program a again, cancels the window of the application program a to be displayed on the screen), and if not, displays the display window of the application program a.
In this embodiment, when a displayed window exists currently and a window to be displayed is a translucent window, a disappearing event and a starting event are broadcasted through the system, if the identification information of the application program corresponding to the displayed window is inconsistent with the identification information included in the disappearing event, the display of the displayed window is cancelled, and if the window to be displayed is not displayed on the screen currently, the window to be displayed is displayed. Through the embodiment, when the semi-transparent window to be displayed needs to be overlaid on the displayed window for synchronous display, the displayed window is controlled to disappear, only the semi-transparent window is displayed, the influence on the display effect caused by the overlapping display of the application windows is avoided, and the visual experience of a user is improved.
Further, in an embodiment of the application window display method of the present invention, step S30 further includes:
if the displayed window exists currently, detecting whether the displayed window and the window to be displayed correspond to the same application starting instruction or not;
if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed;
and if the overlapped area exists, controlling the displayed window to disappear, and displaying the window to be displayed.
In this embodiment, if a displayed window exists currently and the interface to be displayed is a semi-transparent interface, and it is detected that the displayed window and the window to be displayed do not correspond to the same application starting instruction, that is, the displayed window and the window to be displayed do not belong to the same window, it is detected whether an overlapping region exists between the display position of the displayed window and the display position of the window to be displayed, and if it is detected that the overlapping region exists, the display of the displayed window is cancelled, and the window to be displayed is displayed. For example, the coordinate set of the display position of the displayed window is a, the coordinate set of the display position of the window to be displayed is B, whether the same coordinate point exists in the coordinate set a and the coordinate set B is detected, if so, it is indicated that an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed, the process of the application program corresponding to the displayed window is killed in the system process, so as to cancel the display of the displayed window, and of course, the window being displayed can be retracted, the operation of the application program is not ended, only the displayed window is not displayed on the screen, and then the application program to be started is started, and the window to be displayed is displayed. Further, when it is detected that the same coordinate point exists in the coordinate set a and the coordinate set B, the positions of the displayed window and the window to be displayed may also be adjusted, so that the same coordinate point does not exist in the coordinate set a 'of the display position of the displayed window after the position adjustment and the coordinate set B' of the display position of the window to be displayed after the position adjustment. Further, when the same coordinate points in the coordinate set a and the coordinate set B are detected, the transparency of the window to be displayed may also be adjusted, for example, the area of the window to be displayed tends to be in an opaque state. Further, when it is detected that the same coordinate point exists in the coordinate set a and the coordinate set B, a system (such as an android system) may issue a disappearing event and a starting event according to an application starting instruction (both the disappearing event and the starting event include an identity of a program to be started). The application program corresponding to the displayed window receives the disappearance event, judges whether the identity of the application program is consistent with the identity of the program to be started contained in the disappearance event or not, if so, does not perform any processing, and if not, ends the operation, namely, controls the disappearance of the window being displayed, of course, the application program can also retract the window being displayed, does not end the operation, and only causes the window being displayed not to be displayed on the screen; and meanwhile, the program to be started corresponding to the identity of the program to be started receives the starting event, and then the display window of the program to be started is displayed.
In this embodiment, when the displayed window exists currently, the interface to be displayed is a semi-transparent interface, and it is detected that the displayed window and the window to be displayed do not correspond to the same application starting instruction, the displayed window is controlled to disappear, and the window to be displayed is displayed. According to the method and the device, when the semi-transparent window to be displayed needs to be overlaid on the displayed window for synchronous display, the displayed window is controlled to disappear, only the semi-transparent window is displayed, the influence on the display effect caused by the overlapping display of the application windows is avoided, and the visual experience of a user is improved.
Further, in an embodiment of the application window display method of the present invention, if a displayed window exists currently, detecting whether the displayed window and the window to be displayed correspond to the same application start instruction includes:
and if the displayed window and the window to be displayed correspond to the same application starting instruction, controlling the displayed window to disappear and not displaying the window to be displayed.
In an optional embodiment of the present invention, if a displayed window exists currently and the interface to be displayed is a semi-transparent interface, it is detected whether the displayed window and the window to be displayed correspond to the same application start instruction, that is, it is detected whether an application program identifier corresponding to the displayed window is consistent with an application program identifier corresponding to the window to be displayed, and if so, the displayed window is controlled to disappear and the window to be displayed is not displayed. For example, the window of the application a is already displayed on the screen, and the user triggers the start instruction of the application a again, so that the display of the displayed window is cancelled, and the window corresponding to the start instruction is not displayed.
In another optional embodiment of the present invention, if a displayed window exists currently and the interface to be displayed is a semi-transparent interface, the system (e.g., an android system) issues a disappearing event and a starting event (both the disappearing event and the starting event include the identity of the program to be started) according to the application starting instruction. The program to be started corresponding to the identity of the program to be started receives the start event, judges whether the display window of the program to be started is displayed, cancels the display if the display window is in the display state, namely disappears (for example, the window of the application program A is already displayed on the screen, the user triggers the start instruction of the application program A again, cancels the display of the window of the application program A on the screen), and displays the display window of the program to be started if the display window is not in the display state.
In this embodiment, when the window to be displayed is a translucent window and a displayed window currently exists, it is first determined whether the displayed window and the window to be displayed correspond to the same application start instruction, that is, whether the displayed window and the window to be displayed are the same window, if yes, the display of the displayed window is cancelled, and the operation of displaying the window to be displayed is not performed. Application scenarios of the scheme of the embodiment are enriched. That is, if the user needs to cancel the display of the displayed window, the user only needs to trigger the start instruction of the application program corresponding to the displayed window again.
Further, in an embodiment of the application window display method of the present invention, if the displayed window and the window to be displayed do not correspond to the same application start instruction, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed includes:
and if the overlapped area exists, adjusting the display position of the displayed window and the display position of the window to be displayed so as to enable the displayed window and the window to be displayed not to be overlapped.
In this embodiment, when it is detected that the same coordinate point exists in the coordinate set a and the coordinate set B, if the window to be displayed continues to be displayed, the displayed window and the window to be displayed inevitably overlap, and the window to be displayed is a translucent window, so that the display effect is poor. At this time, the display position of the displayed window and the display position of the window to be displayed are adjusted, so that the displayed window and the window to be displayed are displayed without overlapping, as shown in fig. 4, fig. 4 is a scene schematic diagram of an embodiment of displaying the displayed window and the window to be displayed on a screen according to the present invention. In this embodiment, when the original sizes of the displayed window and the window to be displayed are larger, the displayed window and the window to be displayed cannot be displayed on the screen in a non-overlapping manner, and the original sizes of the displayed window and the window to be displayed can be reduced to enable the displayed window and the window to be displayed on the screen in a non-overlapping manner.
In this embodiment, when the displayed window exists currently, the interface to be displayed is a semi-transparent interface, and it is detected that the displayed window and the window to be displayed do not correspond to the same application starting instruction, the display position of the displayed window and the display position of the window to be displayed are adjusted so that the displayed window and the window to be displayed do not overlap, the display effect is prevented from being influenced by the overlapping display of the application windows, and the visual experience of a user is improved.
Further, in an embodiment of the application window display method of the present invention, if the displayed window and the window to be displayed do not correspond to the same application start instruction, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed further includes:
and if the overlapped area exists, adjusting the transparency of the window to be displayed, and displaying the window to be displayed with the adjusted transparency.
In this embodiment, when it is detected that the same coordinate point exists in the coordinate set a and the coordinate set B, if the window to be displayed continues to be displayed, the displayed window and the window to be displayed inevitably overlap, and the window to be displayed is a translucent window, so that the display effect is poor. At this time, the transparency of the window to be displayed is adjusted, for example, if the original transparency of the window to be displayed is 55%, and if the displayed window and the window to be displayed are displayed in an overlapping manner, the displayed window can be seen through the window to be displayed after the window to be displayed is displayed, so that the display effect is poor, at this time, the transparency of the window to be displayed is firstly reduced, for example, the transparency is adjusted to 5%, so that the adjusted window area to be displayed is in an opaque state, at this time, even if the displayed window and the window to be displayed are displayed in an overlapping manner, the content of the displayed window cannot be seen through the window to be displayed, the display effect is prevented from being influenced by the overlapping display of the application windows, and the visual experience of a user is improved.
Further, in an embodiment of the application window display method of the present invention, if there is a displayed window currently, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed includes:
and if the overlapping area does not exist, displaying the window to be displayed.
In this embodiment, if a displayed window exists currently and the interface to be displayed is a semi-transparent interface, and it is detected that the displayed window and the window to be displayed do not correspond to the same application starting instruction, that is, the displayed window and the window to be displayed do not belong to the same window, if it is further detected that there is no overlapping area between the display position of the displayed window and the display position of the window to be displayed, the window to be displayed can be directly displayed, and the situation that the display effect is affected by the overlapping display of the application windows does not occur.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where an application window display program is stored on the computer-readable storage medium, and when executed by a processor, the application window display program implements the steps of the application window display method described above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the application window display method described above, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. An application window display method, characterized in that the application window display method comprises:
receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value;
if the transparency of the window to be displayed is larger than a preset threshold value, detecting whether a displayed window exists currently;
if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed;
wherein, if there is a displayed window at present, the displayed window is controlled to disappear, and the window to be displayed is displayed, including:
if a displayed window exists currently, respectively sending a disappearing event and a starting event corresponding to the application starting instruction to the displayed window and a window to be displayed so as to enable the displayed window to disappear according to the disappearing event and the window to be displayed according to the starting event, wherein the disappearing event and the starting event both comprise an identity mark of a program to be started;
wherein the step of the displayed window disappearing according to the disappearing event comprises:
judging whether the identity of the application program of the displayed window is consistent with the identity of the program to be started contained in the disappearance event or not;
when the window is inconsistent, controlling the displayed window to disappear;
the step of displaying the window to be displayed according to the starting event comprises the following steps:
judging whether the window to be displayed is in a display state or not according to the identity of the program to be started contained in the starting event;
if the display state is reached, the display is cancelled;
and if the display state is not in the display state, displaying.
2. The method for displaying an application window according to claim 1, wherein if there is a displayed window currently, the displayed window is controlled to disappear, and displaying the window to be displayed further comprises:
if the displayed window exists currently, detecting whether the displayed window and the window to be displayed correspond to the same application starting instruction or not;
if the displayed window and the window to be displayed do not correspond to the same application starting instruction, detecting whether an overlapping area exists between the display position of the displayed window and the display position of the window to be displayed;
and if the overlapped area exists, controlling the displayed window to disappear, and displaying the window to be displayed.
3. The method for displaying an application window according to claim 2, wherein, if there is a displayed window currently, detecting whether the displayed window and the window to be displayed correspond to the same application start instruction comprises:
and if the displayed window and the window to be displayed correspond to the same application starting instruction, controlling the displayed window to disappear and not displaying the window to be displayed.
4. The method for displaying an application window according to claim 2, wherein if the displayed window and the window to be displayed do not correspond to the same application start instruction, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed comprises:
and if the overlapped area exists, adjusting the display position of the displayed window and the display position of the window to be displayed so as to enable the displayed window and the window to be displayed not to be overlapped.
5. The method for displaying an application window according to claim 2, wherein if the displayed window and the window to be displayed do not correspond to the same application start instruction, detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed further comprises:
and if the overlapped area exists, adjusting the transparency of the window to be displayed, and displaying the window to be displayed with the adjusted transparency.
6. The method for displaying an application window according to claim 2, wherein the detecting whether there is an overlapping area between the display position of the displayed window and the display position of the window to be displayed if there is a displayed window currently comprises:
and if the overlapping area does not exist, displaying the window to be displayed.
7. An application window display apparatus, characterized in that the application window display apparatus comprises: a memory, a processor, and an application window display program stored on the memory and executable on the processor, the application window display program when executed by the processor implementing the steps of:
receiving an application starting instruction, acquiring the transparency of a window to be displayed corresponding to the application starting instruction, and detecting whether the transparency of the window to be displayed is greater than a preset threshold value;
if the transparency of the window to be displayed is larger than a preset threshold value, detecting whether a displayed window exists currently;
if the displayed window exists currently, controlling the displayed window to disappear, and displaying the window to be displayed;
wherein the application window display program when executed by the processor further implements the steps of:
if a displayed window exists currently, respectively sending a disappearing event and a starting event corresponding to the application starting instruction to the displayed window and a window to be displayed so as to enable the displayed window to disappear according to the disappearing event and the window to be displayed according to the starting event, wherein the disappearing event and the starting event both comprise an identity mark of a program to be started;
wherein the application window display program when executed by the processor further implements the steps of:
judging whether the identity of the application program of the displayed window is consistent with the identity of the program to be started contained in the disappearance event or not;
when the window is inconsistent, controlling the displayed window to disappear;
wherein the application window display program when executed by the processor further implements the steps of:
judging whether the window to be displayed is in a display state or not according to the identity of the program to be started contained in the starting event;
if the display state is reached, the display is cancelled;
and if the display state is not in the display state, displaying.
8. A computer-readable storage medium, having stored thereon an application window display program which, when executed by a processor, implements the steps of the application window display method of any one of claims 1 to 6.
CN201711029442.9A 2017-10-27 2017-10-27 Window display method and device and computer readable storage medium Active CN107908446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711029442.9A CN107908446B (en) 2017-10-27 2017-10-27 Window display method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711029442.9A CN107908446B (en) 2017-10-27 2017-10-27 Window display method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107908446A CN107908446A (en) 2018-04-13
CN107908446B true CN107908446B (en) 2022-01-04

Family

ID=61841893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711029442.9A Active CN107908446B (en) 2017-10-27 2017-10-27 Window display method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107908446B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661387A (en) * 2020-12-23 2022-06-24 深圳融昕医疗科技有限公司 Window display method and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848966A (en) * 2006-04-10 2006-10-18 高盟 Small-window stereo-image producing and displaying method
CN101055520A (en) * 2006-04-14 2007-10-17 国际商业机器公司 System and method of windows management
CN101268437A (en) * 2005-11-02 2008-09-17 松下电器产业株式会社 Display-object penetrating apparatus
CN101443730A (en) * 2006-05-11 2009-05-27 松下电器产业株式会社 Display object layout changing device
CN102737615A (en) * 2011-03-31 2012-10-17 索尼公司 Display control device, display control method, and program
CN105677166A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Adjusting method and device for input method window

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100090975A (en) * 2009-02-09 2010-08-18 삼성전자주식회사 Display device and producing method of the display device, producing method of protective substrate used in the display device
CN102594723A (en) * 2012-03-31 2012-07-18 上海量明科技发展有限公司 Instant communication message window separation method and system
US20130300987A1 (en) * 2012-05-10 2013-11-14 Ming-Chan Ho Eye-friendly calculator
CN102841804B (en) * 2012-06-27 2014-12-10 北京三星通信技术研究有限公司 Method and device for processing multiple foreground tasks on screen
US20150199092A1 (en) * 2012-09-26 2015-07-16 Google Inc. Intelligent window placement
CN102981704B (en) * 2012-11-09 2015-09-09 广东欧珀移动通信有限公司 A kind of icon placement method of display interface and mobile terminal
KR102040611B1 (en) * 2013-05-31 2019-11-05 엘지전자 주식회사 Mobile terminal and controlling method thereof
US9870115B2 (en) * 2013-06-07 2018-01-16 Apple Inc. User interfaces for multiple displays
US9608944B2 (en) * 2013-08-09 2017-03-28 Beijing Lenovo Software Ltd. Information processing apparatus and information processing method
CN104461220B (en) * 2013-09-13 2018-03-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104580980A (en) * 2013-10-22 2015-04-29 联想(北京)有限公司 Information processing method and electronic equipment
CN104615764B (en) * 2015-02-13 2019-05-03 北京搜狗科技发展有限公司 A kind of display methods and electronic equipment
CN106325836B (en) * 2015-06-19 2020-09-15 中兴通讯股份有限公司 Window part processing method and device
CN106681583A (en) * 2016-12-02 2017-05-17 广东威创视讯科技股份有限公司 Method and system for processing displayed content in overlapping windows
CN107203305A (en) * 2017-05-03 2017-09-26 努比亚技术有限公司 It is switched fast method, mobile terminal and the computer-readable recording medium of application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101268437A (en) * 2005-11-02 2008-09-17 松下电器产业株式会社 Display-object penetrating apparatus
CN1848966A (en) * 2006-04-10 2006-10-18 高盟 Small-window stereo-image producing and displaying method
CN101055520A (en) * 2006-04-14 2007-10-17 国际商业机器公司 System and method of windows management
CN101443730A (en) * 2006-05-11 2009-05-27 松下电器产业株式会社 Display object layout changing device
CN102737615A (en) * 2011-03-31 2012-10-17 索尼公司 Display control device, display control method, and program
CN105677166A (en) * 2014-11-19 2016-06-15 阿里巴巴集团控股有限公司 Adjusting method and device for input method window

Also Published As

Publication number Publication date
CN107908446A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN105335048B (en) Electronic equipment with hidden application icon and method for hiding application icon
JP5531160B2 (en) Appearance processing method and appearance processing apparatus of widget system
EP2924591A1 (en) Method and device for controlling page rollback
EP3337146B1 (en) Method and apparatus for displaying notification message
US10204079B2 (en) Method and apparatus for displaying an extended function information area
CN110704059B (en) Image processing method, device, electronic equipment and storage medium
US11016788B2 (en) Application launching method and display device
CN111917628B (en) Message processing method and device and electronic equipment
CN107908446B (en) Window display method and device and computer readable storage medium
CN106793026B (en) Method and terminal for realizing event reporting processing
CN108235101B (en) Smart television initialization method, smart television and computer readable storage medium
CN105373370B (en) Control display method and device
CN113709307A (en) Message display method and device and electronic equipment
CN107168549B (en) Input method, display device and computer-readable storage medium
CN112764606A (en) Identification display method and device and electronic equipment
CN109783748B (en) Display method, device and equipment for display field and readable storage medium
CN111147790A (en) Auxiliary function starting method, mobile terminal and computer readable storage medium
CN111010528A (en) Video call method, mobile terminal and computer readable storage medium
CN111078113A (en) Sidebar editing method, mobile terminal and computer-readable storage medium
CN111124584A (en) Shortcut panel display method, terminal and readable storage medium
KR101929297B1 (en) Method for improving touch response and an electronic device thereof
CN113138786B (en) Application updating method and device
CN114895815A (en) Data processing method and electronic equipment
CN114020389A (en) Application program display method and device and electronic equipment
CN112905091A (en) Application program starting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant