CN108717371A - A kind of pop-up window management method and device - Google Patents
A kind of pop-up window management method and device Download PDFInfo
- Publication number
- CN108717371A CN108717371A CN201810472354.4A CN201810472354A CN108717371A CN 108717371 A CN108717371 A CN 108717371A CN 201810472354 A CN201810472354 A CN 201810472354A CN 108717371 A CN108717371 A CN 108717371A
- Authority
- CN
- China
- Prior art keywords
- window
- pop
- type
- status information
- status
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A kind of pop-up window management method of proposition of the embodiment of the present invention and device, are related to interface display method technical field.This method and device are by obtaining pre-established pop-up window list, pop-up window list includes multiple pop-up windows being sequentially arranged, and according to the sequence of pop-up window list, successively according to the judging result generated by judging whether Activity is visible, the original state type and current window status information of each pop-up window determine the virtual condition type and actual window status information of each pop-up window, finally the virtual condition type according to the actual window status information of each pop-up window and each pop-up window is shown, remove or hide each pop-up window;After due to being ordered into each pop-up window in list is uniformly processed, whether determining that each pop-up window is shown again, so as to be popped up when Activity is in backstage, avoiding on pop-up window has the problem of PopupWindow can lead to program crashing.
Description
Technical field
The present invention relates to interface display method technical fields, in particular to a kind of pop-up window management method and dress
It sets.
Background technology
In Android application and development, pop up secondary interface mode be usually redirect Activity, PopupWindow,
Dialog or DialogFragment.
But being redirected using Activity can cause system response slow, and secondary interface can be caused to be difficult to manage;And it uses
When PopupWindow does the Pop-up two level page development of service logic, it is easy to occur because invalid token causes system to collapse
Routed problem;Doing Pop-up secondary interface using Dialog has the incomplete problem of life cycle;And it uses
When DialogFragment, pop-up interface cannot be attempted when Activity is in backstage, otherwise can lead to program crashing.
Invention content
In view of this, the purpose of the present invention is to provide a kind of pop-up window management method and device, to solve above-mentioned ask
Topic.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of pop-up window management method, the pop-up window management method
Including:
Pre-established pop-up window list is obtained, the pop-up window list includes multiple pop-ups being sequentially arranged
Window;
According to the sequence of the pop-up window list, sentence successively according to what is generated by judging whether Activity is visible
Disconnected result, the original state type of each pop-up window and current window status information determine each pop-up window
Virtual condition type and actual window status information;
Virtual condition type according to actual window status information and each pop-up window shows, removes or hides every
A pop-up window.
Further, the sequence according to the pop-up window list, successively according to by whether judging Activity
It can be seen that and the judging result of generation, the original state type of each pop-up window and current window status information determine each
The step of virtual condition type and actual window status information of the pop-up window includes:
When the Status Type of the pop-up window is type to be added or hiding type, the judging result are described
When Activity is visible and the home window status information match with the first default mark, initiate to show using presetting algorithm
Show window operation affairs, determines that the actual window status information is the second default mark and the virtual condition of the pop-up window
Type is display type.
Further, the sequence according to the pop-up window list, successively according to by whether judging Activity
It can be seen that and the judging result of generation, the original state type of each pop-up window and current window status information determine each
The step of virtual condition type and actual window status information of the pop-up window further includes:
When the Status Type of the pop-up window is display type, the judging result is that the Activity is visible and institute
When stating window state information with the first default mark mismatch, initiates hide window using presetting algorithm and operate affairs, really
The virtual condition type of the fixed pop-up window is to hide type.
Further, the sequence according to the pop-up window list, successively according to by whether judging Activity
It can be seen that and the judging result of generation, the original state type of each pop-up window and current window status information determine each
The step of virtual condition type and actual window status information of the pop-up window further includes:
When the Status Type of the pop-up window is type to be deleted and the judging result is that the Activity is visible
When, it initiates to remove window operation affairs using presetting algorithm.
Further, the virtual condition type according to actual window status information and each pop-up window is aobvious
Show, remove or include the step of hiding each pop-up window:
When the window state information is matched with the second default mark, by the display category of pre-established pop-up window container
Property is set as display type to show the virtual condition type as the pop-up window of display type;
When the window state information is mismatched with the second default mark, by the display of pre-established pop-up window container
Attribute is set as hiding type to hide the original state type as the pop-up window of display type.
Further, the pop-up window management method further includes:
Judge whether that pop-up window operates affairs, wherein the pop-up window operation affairs include display window behaviour
Make affairs, hide window operation affairs and removes window operation affairs;
When operating affairs there are the pop-up window, dummy keyboard is hidden.
Further, the pop-up window management method further includes:
Judge whether Activity is visible;
When the Activity is visible, pop-up window is submitted to operate affairs.
Second aspect, the embodiment of the present invention additionally provide a kind of pop-up window managing device, the pop-up window management dress
Set including:
Acquiring unit, for obtaining pre-established pop-up window list, the pop-up window list include it is multiple temporally
Tactic pop-up window;
Status determining unit, for the sequence according to the pop-up window list, successively according to by judging Activity
Whether visible and the judging result of generation, each pop-up window original state type and current window status information determine
The virtual condition type and actual window status information of each pop-up window;
Display unit, it is aobvious for the virtual condition type according to actual window status information and each pop-up window
Show, remove or hide each pop-up window.
Further, the status determining unit be additionally operable to when the pop-up window Status Type be type to be added or
Hide type, the judging result is the Activity visible and the home window status information and the first default mark
Timing initiates display window using presetting algorithm and operates affairs, determines that the actual window status information is second default
Mark and the virtual condition type of the pop-up window are display type.
Further, the status determining unit be additionally operable to the Status Type when the pop-up window be display type, institute
When to state judging result be that the Activity is visible and the window state information is mismatched with the first default mark, using default
Fixed algorithm initiates hide window and operates affairs, determines that the virtual condition type of the pop-up window is to hide type.
A kind of pop-up window management method provided in an embodiment of the present invention and device, by obtaining pre-established pop-up window
List, pop-up window list include multiple pop-up windows being sequentially arranged, and according to the sequence of pop-up window list, according to
Judging result that secondary foundation is generated by judging whether Activity is visible, the original state type of each pop-up window and work as
Front window status information determines the virtual condition type and actual window status information of each pop-up window, finally according to each bullet
The virtual condition type of the actual window status information and each pop-up window that go out window shows, removes or hides each pop-out
Mouthful;After due to being ordered into each pop-up window in list is uniformly processed, then determine each pop-up window show and
No, so as to be popped up when Activity is in backstage, avoiding on pop-up window has PopupWindow that can lead to journey
The problem of sequence is collapsed, and make pop-up window that there is complete life cycle, it may be convenient to it realizes at page data refreshing
Reason.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the functional block diagram of user terminal provided in an embodiment of the present invention.
Fig. 2 shows the flow charts of pop-up window management method provided in an embodiment of the present invention.
Fig. 3 shows the particular flow sheet of step S203 in Fig. 2.
Fig. 4 shows second of flow chart of pop-up window management method provided in an embodiment of the present invention.
Fig. 5 shows the third flow chart of pop-up window management method provided in an embodiment of the present invention.
Fig. 6 shows the functional block diagram of pop-up window managing device provided in an embodiment of the present invention.
Icon:100- user terminals;101- memories;102- storage controls;103- processors;104- Peripheral Interfaces;
105- radio frequency units;106- Touch Screens;200- pop-up window managing devices;210- acquiring units;220- status determining units;
230- display units;240- judging units;250- keyboard hidden units;260- operates affairs and submits unit.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment of the present invention, people in the art
The every other embodiment that member is obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that the relational terms of term " first " and " second " or the like be used merely to an entity or
Operation is distinguished with another entity or operation, without necessarily requiring or implying visible any between these entities or operation
This actual relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-exclusive
Property include so that including a series of elements process, method, article or equipment not only include those elements, but also
Further include other elements that are not explicitly listed, or further include for this process, method, article or equipment it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described
Other identical element is also shown in the process, method, article or equipment of element.
Referring to Fig. 1, Fig. 1 shows a kind of functional block diagram for the user terminal 100 that can be applied in the embodiment of the present invention.
As shown in Figure 1, user terminal 100 includes pop-up window managing device 200, memory 101, storage control 102, one or more
A (one is only shown in figure) processor 103, Peripheral Interface 104, radio frequency unit 105, Touch Screen 106 etc..These components are logical
One or more communication bus/signal wire is crossed mutually to communicate.The pop-up window managing device 200 include it is at least one can be soft
The form of part or firmware (firmware) is stored in the memory 101 or is solidificated in the operation system of the user terminal 100
SFU software functional unit in system (operating system, OS).
Memory 101 can be used for storing software program and unit, such as the pop-up window management dress in the embodiment of the present invention
Set 200 and method corresponding to program instruction/unit, processor 103 is stored in software program in memory 101 by operation
And unit, to perform various functions application and data processing, such as pop-up window manager provided in an embodiment of the present invention
Method.Memory 101 may include high speed random access memory 101, may also include nonvolatile memory 101, such as one or more
Magnetic storage device, flash memory or other non-volatile solid state memories 101.Processor 103 and other possible components pair
The access of memory 101 can carry out under the control of storage control 102.
Peripheral Interface 104 couples various input/output devices to processor 103 and memory 101.In some implementations
In example, Peripheral Interface 104, processor 103 and storage control 102 can be realized in one single chip.In some other reality
In example, they can be realized by independent chip respectively.
Radio frequency unit 105 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment are communicated, are carried out data transmission.
Touch Screen 106 is used to provide an output and input interface between user terminal 100 and user, to realize use
The interaction of family terminal 100 and user.Touch Screen 106 can sense the touch control operation on the Touch Screen 106, and should
The touch control operation sensed transfers to processor 103 to be handled.
It is appreciated that structure shown in FIG. 1 is only to illustrate, user terminal 100 may also include it is more than shown in Fig. 1 or
Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 may be used hardware, software or its
Combination is realized.
First embodiment
An embodiment of the present invention provides a kind of pop-up window management method, for according to Activity life cycle and
The original state type and home window status information of each pop-up window, show or disappear successively.Referring to Fig. 2, being
The flow chart of pop-up window management method provided in an embodiment of the present invention.The pop-up window management method includes:
Step S201:Obtain pre-established pop-up window list.
When user needs to obtain pop-up window, display request is initiated to processor 103 by Touch Screen 106, at this time
The display of processor 103 asks and generates pop-up window, and pop-up window is put into pop-up window list, to establish pop-out
Mouth list.
It should be noted that the pop-up window list includes multiple pop-up windows being sequentially arranged.Processor 103
By obtaining pre-established pop-up window list, can successively to include in pop-up window list each pop-up window successively into
Row processing.
Step S202:According to the sequence of pop-up window list, successively according to being given birth to by judging whether Activity is visible
At judging result, the original state type of each pop-up window and current window status information determine the reality of each pop-up window
Border Status Type and actual window status information.
Wherein, the original state type of pop-up window includes mainly four kinds:It is type respectively to be added, display type, hidden
Hide type and type to be deleted.Wherein, each original state type is corresponding with different determination virtual condition type and reality
The mode of window state information.
The first:When the original state type of pop-up window be type to be added when, judge Activity it is whether visible with
And whether current window status information matches with the first default mark, if it is, initiating display window using presetting algorithm
Mouthful operation affairs determine that the virtual condition type that actual window status information is the second default mark and pop-up window is display class
Type.
Wherein, it can be determined whether that can initiate pop-up window operates affairs by judging whether Activity is visible, if
It initiates to show that ejection operation affairs can cause system crash when Activity is invisible.
In addition, current window status information is matched with the first default mark indicates that current time shows screen without pop-up window
Display.
It is operated it should be noted that display window can be initiated using the API of presetting FragmentTransaction
Affairs;And determine that the virtual condition type of pop-up window is display type and actual window status information is the second default mark
Then show to show the pop-up window that screen needs to be shown at this time.
Second:When the Status Type of pop-up window is display type, judge whether Activity is visible and current
Whether window state information mismatches with the first default mark, is grasped if it is, initiating hide window using presetting algorithm
Make affairs, determines that the virtual condition type of pop-up window is to hide type.
It is to be appreciated that the Status Type when pop-up window is display type, Activity is visible and current window state
When information is mismatched with the first default mark, show that Touch Screen 106 has had pop-up window to be shown under current state, because
This initiates hide window operation affairs using presetting algorithm at this time and is switched to the virtual condition type of pop-up window hidden
Type is hidden, to avoid there are the pop-up windows of two dispaly states to cause system crash.
On the contrary, when the Status Type of pop-up window is display type but current window status information and the first default mark
When matching, Touch Screen 106 is switched to without pop-up window to be shown, therefore by actual window status information under table current state
Second default mark, to show the pop-up window.
The third:When the original state type of pop-up window is to hide, judge whether Activity is visible and current
Whether window state information matches with the first default mark, is operated if it is, initiating display window using presetting algorithm
Affairs determine that the virtual condition type that actual window status information is the second default mark and pop-up window is display type.
On the contrary, when meeting, Activity is invisible or current window status information mismatches with the first default mark and appoints
When a condition of anticipating, processor 103 does not switch over actual window status information and virtual condition type.
4th kind:When the original state type of pop-up window is type to be deleted, judge Activity whether as it can be seen that such as
Fruit is then to initiate to remove window operation affairs using presetting algorithm.
It should be noted that display window operation affairs, hide window operation affairs and removal window operation affairs are equal
Affairs are operated for pop-up window.It is to be appreciated that can realize step S202 by for circle logics.Referring to Fig. 3, setting one
A variable N indicates pending pop-up window quantity.The quantity for the pop-up window for including in acquisition pop-up window list, and with
The quantity of the pop-up window subtracts 1 and is used as variable N initial values, by using N >=0 as the condition into for cycles.
For example, when user initiates display request by Touch Screen 106 to processor 103, processor 103 is in pop-out
The most end position of mouthful list generates the pop-up window of a type to be added, Activity is visible and current window state letter
When breath is matched with the first default mark, shows that display ejection operation affairs can be initiated at this time and Touch Screen 106 has no pop-up
Window is shown, therefore is initiated display window using presetting algorithm at this time and operated affairs, and actual window status information is switched
For the second default mark and the virtual condition type of pop-up window is switched to display type, then variable N subtracts 1 certainly;It is same with this
When, the type of the previous pop-up window adjacent with the pop-up window of type to be added should be the pop-up window shown before,
To the pop-up window original state type be display type, at this time due in first time operational process by practical window
Mouth status information is switched to the second default mark, therefore visible in Activity, by the virtual condition of pop-up window
Type is to hide type, and then variable N subtracts 1 certainly;Since the original state type of a upper pop-up window is display type,
The original state type of current pop-up window should be hiding type, and by actual window shape in first time operational process
State information is switched to the second default mark, therefore only makes variable N from subtracting 1, to show to process the pop-up window;With such
It pushes away, until N<When 0, all pop-up windows were processed in pop-up window list, therefore jumped out cycle, were executed next
Step.
Step S203:According to the actual window status information of each pop-up window and the virtual condition class of each pop-up window
Type shows, removes or hides each pop-up window.
Specifically, judge whether actual window status information matches with the default mark of the second display, if it is, by built in advance
The display properties of vertical pop-up window container is set as display type to show virtual condition type as the pop-out of display type
Mouthful;If it is not, then the display properties of pre-established pop-up window container is set as hiding type to hide original state type
For the pop-up window of display type.
In addition, processor 103 can also be by when operating affairs there are pop-up window, hiding dummy keyboard automatically.Tool
Body, as shown in figure 4, the pop-up window management method further includes:
Step S204:Judge whether that pop-up window operates affairs, if so, thening follow the steps S205;If it is not, then
Execute step S203.
Step S205:Hide dummy keyboard.
It should be noted that utilizing InputMethodManager in the click event of pre-established pop-up window container
API can hide keyboard.That is, the blank space of display interface is by hiding dummy keyboard when the user clicks.
In addition, as shown in figure 5, the pop-up window management method further includes:
Step S206:Judge Activity whether as it can be seen that if so, thening follow the steps S207;If not, thening follow the steps
S203。
Step S207:Pop-up window is submitted to operate affairs.
Second embodiment
Referring to Fig. 6, Fig. 6 is a kind of pop-up window managing device 200 that present pre-ferred embodiments provide.It needs to illustrate
, the pop-up window managing device 200 that the present embodiment is provided, the technique effect and above-mentioned implementation of basic principle and generation
Example is identical, and to briefly describe, the present embodiment part does not refer to place, can refer to corresponding contents in the above embodiments.The pop-up
Counter management apparatus 200 is hidden including acquiring unit 210, status determining unit 220, display unit 230, judging unit 240, keyboard
It hides unit 250 and operation affairs submits unit 260.
Wherein, acquiring unit 210 is for obtaining pre-established pop-up window list.
It is to be appreciated that in a kind of preferred embodiment, acquiring unit 210 can be used for executing step S201.
Status determining unit 220 is used for the sequence according to pop-up window list, and foundation is by judging Activity successively
Judging result, the original state type of each pop-up window and current window status information no visible and generate determine each bullet
Go out the virtual condition type and actual window status information of window.
Specifically, status determining unit 220 be used for when the Status Type of pop-up window be type to be added or hiding type,
When judging result is that Activity is visible and home window status information is matched with the first default mark, presetting algorithm is utilized
It initiates display window and operates affairs, determine that actual window status information is the second default mark and the virtual condition class of pop-up window
Type is display type.
Status determining unit 220 is additionally operable to when the Status Type of pop-up window is display type, judging result is
When Activity is visible and window state information is mismatched with the first default mark, hide window is initiated using presetting algorithm
Affairs are operated, determine that the virtual condition type of pop-up window is to hide type.
It is type to be deleted when the Status Type of pop-up window that status determining unit 220, which is additionally operable to, and judging result is
When Activity is visible, initiate to remove window operation affairs using presetting algorithm.
It is to be appreciated that in a kind of preferred embodiment, status determining unit 220 can be used for executing step S202.
Display unit 230 is used to show according to the virtual condition type of actual window status information and each pop-up window,
Remove or hide each pop-up window.
Specifically, display unit 230 is used for when window state information is matched with the second default mark, by pre-established bullet
The display properties for going out window container is set as display type to show virtual condition type as the pop-up window of display type.
Display unit 230 is additionally operable to when window state information is mismatched with the second default mark, by pre-established pop-up
The display properties of window container is set as hiding type to hide original state type as the pop-up window of display type.
It is to be appreciated that in a kind of preferred embodiment, display unit 230 can be used for executing step S203.
Judging unit 240 is for judging whether that pop-up window operates affairs.
It is to be appreciated that in a kind of preferred embodiment, judging unit 240 can be used for executing step S204.
Keyboard hidden unit 250, for when operating affairs there are pop-up window, hiding dummy keyboard.
It is to be appreciated that in a kind of preferred embodiment, keyboard hidden unit 250 can be used for executing step S205.
Judging unit 240 is additionally operable to judge whether Activity is visible.
It is to be appreciated that in a kind of preferred embodiment, judging unit 240 can be used for executing step S206.
Operating affairs submits unit 260 to be used to submit pop-up window to operate affairs when Activity is visible.
It is to be appreciated that in a kind of preferred embodiment, operation affairs submit unit 260 to can be used for executing step
S207。
In conclusion a kind of pop-up window management method provided in an embodiment of the present invention and device, pre-established by obtaining
Pop-up window list, pop-up window list includes multiple pop-up windows being sequentially arranged, and is arranged according to pop-up window
The sequence of table, successively according to by judging whether Activity visible generation judging result, each pop-up window it is initial
Status Type and current window status information determine the virtual condition type and actual window status information of each pop-up window, most
The virtual condition type according to the actual window status information of each pop-up window and each pop-up window shows, removes or hidden afterwards
Hide each pop-up window;After due to being ordered into each pop-up window in list is uniformly processed, then determine each bullet
Whether going out window and show, so as to be popped up when Activity is in backstage, avoiding on pop-up window has
PopupWindow can cause the problem of program crashing, and pop-up window is made to have complete life cycle, it may be convenient to
Realize page data refresh process.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent a unit, program segment or code one
Part, a part for the unit, program segment or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from
The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes
It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing
It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional unit in each embodiment of the present invention can integrate to form an independent portion
Point, can also be each unit individualism, can also two or more units be integrated to form an independent part.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of pop-up window management method, which is characterized in that the pop-up window management method includes:
Pre-established pop-up window list is obtained, the pop-up window list includes multiple pop-outs being sequentially arranged
Mouthful;
According to the sequence of the pop-up window list, successively according to the judgement knot generated by judging whether Activity is visible
Fruit, the original state type of each pop-up window and current window status information determine the reality of each pop-up window
Status Type and actual window status information;
Virtual condition type according to actual window status information and each pop-up window shows, removes or hides each institute
State pop-up window.
2. pop-up window management method according to claim 1, which is characterized in that described according to the pop-up window list
Sequence, successively according to generated by judging whether Activity visible judging result, each pop-up window at the beginning of
Beginning Status Type and current window status information determine the virtual condition type and actual window state of each pop-up window
The step of information includes:
When the Status Type of the pop-up window is type to be added or hiding type, the judging result are the Activity
It can be seen that and the home window status information utilize presetting algorithm to initiate display window behaviour when match with the first default mark
Make affairs, determines that the virtual condition type that the actual window status information is the second default mark and the pop-up window is aobvious
Show type.
3. pop-up window management method according to claim 1, which is characterized in that described according to the pop-up window list
Sequence, successively according to generated by judging whether Activity visible judging result, each pop-up window at the beginning of
Beginning Status Type and current window status information determine the virtual condition type and actual window state of each pop-up window
The step of information further includes:
When the Status Type of the pop-up window is display type, the judging result is that the Activity is visible and the window
When mouth status information is mismatched with the first default mark, affairs are operated using presetting algorithm initiation hide window, determine institute
The virtual condition type for stating pop-up window is to hide type.
4. pop-up window management method according to claim 1, which is characterized in that described according to the pop-up window list
Sequence, successively according to generated by judging whether Activity visible judging result, each pop-up window at the beginning of
Beginning Status Type and current window status information determine the virtual condition type and actual window state of each pop-up window
The step of information further includes:
When the Status Type of the pop-up window is type to be deleted and the judging result is the Activity visible, profit
It is initiated to remove window operation affairs with presetting algorithm.
5. pop-up window management method according to claim 1, which is characterized in that described according to actual window status information
And the virtual condition type of each pop-up window shows, removes or include the step of hiding each pop-up window:
When the window state information is matched with the second default mark, the display properties of pre-established pop-up window container is set
Display type is set to show the virtual condition type as the pop-up window of display type;
When the window state information is mismatched with the second default mark, by the display properties of pre-established pop-up window container
It is set as hiding type to hide the original state type as the pop-up window of display type.
6. pop-up window management method according to claim 1, which is characterized in that the pop-up window management method is also wrapped
It includes:
Judge whether that pop-up window operates affairs, wherein the pop-up window operation affairs include display window operation thing
Business, hide window operation affairs and removal window operation affairs;
When operating affairs there are the pop-up window, dummy keyboard is hidden.
7. pop-up window management method according to claim 1, which is characterized in that the pop-up window management method is also wrapped
It includes:
Judge whether Activity is visible;
When the Activity is visible, pop-up window is submitted to operate affairs.
8. a kind of pop-up window managing device, which is characterized in that the pop-up window managing device includes:
Acquiring unit, for obtaining pre-established pop-up window list, the pop-up window list include it is multiple in chronological order
The pop-up window of arrangement;
Status determining unit, for the sequence according to the pop-up window list, successively according to by whether judging Activity
It can be seen that and the judging result of generation, the original state type of each pop-up window and current window status information determine each
The virtual condition type and actual window status information of the pop-up window;
Display unit, for showing, moving according to the virtual condition type of actual window status information and each pop-up window
Remove or hide each pop-up window.
9. pop-up window managing device according to claim 8, which is characterized in that the status determining unit is additionally operable to work as
The Status Type of the pop-up window be type to be added or hiding type, the judging result be the Activity it is visible and
When the home window status information is matched with the first default mark, initiates display window using presetting algorithm and operate thing
Business determines that the virtual condition type that the actual window status information is the second default mark and the pop-up window is display class
Type.
10. pop-up window managing device according to claim 8, which is characterized in that the status determining unit is additionally operable to
When the Status Type of the pop-up window is display type, the judging result is that the Activity is visible and the window-like
When state information is mismatched with the first default mark, initiates hide window using presetting algorithm and operate affairs, determine the bullet
The virtual condition type for going out window is to hide type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472354.4A CN108717371B (en) | 2018-05-17 | 2018-05-17 | Pop-up window management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810472354.4A CN108717371B (en) | 2018-05-17 | 2018-05-17 | Pop-up window management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108717371A true CN108717371A (en) | 2018-10-30 |
CN108717371B CN108717371B (en) | 2021-11-12 |
Family
ID=63899766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810472354.4A Active CN108717371B (en) | 2018-05-17 | 2018-05-17 | Pop-up window management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108717371B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112241297A (en) * | 2019-07-18 | 2021-01-19 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN114286158A (en) * | 2021-12-24 | 2022-04-05 | 广州方硅信息技术有限公司 | Live broadcast room virtual resource activity display method, device, medium and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488490A (en) * | 2013-10-08 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method and device for determining application corresponding to pop-up window and terminal |
CN103685731A (en) * | 2013-11-15 | 2014-03-26 | 北京奇虎科技有限公司 | Message communication method and message communication client |
CN103729110A (en) * | 2013-12-27 | 2014-04-16 | 广州华多网络科技有限公司 | Popup window information display method, device and terminal |
CN106484509A (en) * | 2016-09-27 | 2017-03-08 | 腾讯科技(深圳)有限公司 | A kind of output intent of pop-up, device and terminal |
CN106648641A (en) * | 2016-12-09 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Automatic management method and system for multi-level pop-up boxes on iOS system device |
CN107463440A (en) * | 2017-09-14 | 2017-12-12 | 北京奇艺世纪科技有限公司 | A kind of pop-up methods of exhibiting and device |
US20180109486A1 (en) * | 2015-05-08 | 2018-04-19 | Facebook, Inc. | Managing for-sale group postings |
-
2018
- 2018-05-17 CN CN201810472354.4A patent/CN108717371B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488490A (en) * | 2013-10-08 | 2014-01-01 | 深圳市金立通信设备有限公司 | Method and device for determining application corresponding to pop-up window and terminal |
CN103685731A (en) * | 2013-11-15 | 2014-03-26 | 北京奇虎科技有限公司 | Message communication method and message communication client |
CN103729110A (en) * | 2013-12-27 | 2014-04-16 | 广州华多网络科技有限公司 | Popup window information display method, device and terminal |
US20180109486A1 (en) * | 2015-05-08 | 2018-04-19 | Facebook, Inc. | Managing for-sale group postings |
CN106484509A (en) * | 2016-09-27 | 2017-03-08 | 腾讯科技(深圳)有限公司 | A kind of output intent of pop-up, device and terminal |
CN106648641A (en) * | 2016-12-09 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Automatic management method and system for multi-level pop-up boxes on iOS system device |
CN107463440A (en) * | 2017-09-14 | 2017-12-12 | 北京奇艺世纪科技有限公司 | A kind of pop-up methods of exhibiting and device |
Non-Patent Citations (2)
Title |
---|
王羽: ""基于FPGA的卷积神经网络应用研究"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
苏娇: ""QQ弹窗新闻研究"", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112241297A (en) * | 2019-07-18 | 2021-01-19 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN112241297B (en) * | 2019-07-18 | 2024-05-14 | 上海幻电信息科技有限公司 | Data display method, system, computer equipment and readable storage medium |
CN114286158A (en) * | 2021-12-24 | 2022-04-05 | 广州方硅信息技术有限公司 | Live broadcast room virtual resource activity display method, device, medium and equipment |
CN114286158B (en) * | 2021-12-24 | 2024-04-19 | 广州方硅信息技术有限公司 | Virtual resource activity display method, device, medium and equipment of live broadcasting room |
Also Published As
Publication number | Publication date |
---|---|
CN108717371B (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9606705B2 (en) | Techniques for capturing and displaying user interaction data | |
CN108733706A (en) | The generation method and device of temperature information | |
CN107766310B (en) | Grid cell editing method and device | |
CN109002281A (en) | Project development method, apparatus and user terminal based on platform assembly | |
US20140365899A1 (en) | Systems and methods for accessing system utilities | |
CN106651338A (en) | Method for payment processing and terminal | |
CN104699408A (en) | Operation method and device of touch screen and touch device | |
CN108717371A (en) | A kind of pop-up window management method and device | |
CN108920368A (en) | The method, apparatus and electronic equipment of data test | |
CN105959403A (en) | Wallpaper recommendation method, server and mobile terminal | |
CN106204208A (en) | A kind of bill generates method and mobile terminal | |
CN107479892A (en) | Play frame view creation method, device and electronic equipment | |
CN108153795A (en) | A kind of data processing method, system and the device of electronics red packet | |
CN105183280B (en) | A kind of operating method and electric terminal of list interface | |
CN106649518A (en) | Method and apparatus for processing dynamic information data | |
JP6294349B2 (en) | Manage tab buttons | |
CN108228126A (en) | Throw screen control method, device, electric terminal and readable storage medium storing program for executing | |
CN113343109A (en) | List recommendation method, computing device and computer storage medium | |
CN106775894A (en) | The operation method and terminal of a kind of application program | |
CN107239212A (en) | Segmentation selection view rendering method, device and user terminal | |
CN112306606A (en) | Method and equipment for presenting control style | |
CN108132819A (en) | Scoring guiding pop-up method of ejecting, device and terminal device | |
CN110297578A (en) | Method and device for processing partial data in mass data in batch and electronic equipment | |
CN108762637A (en) | Control method, apparatus and system | |
CN108595078A (en) | Touch operation method, device, mobile terminal and computer readable storage medium |
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 |