CN107301009A - A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs - Google Patents
A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs Download PDFInfo
- Publication number
- CN107301009A CN107301009A CN201710453689.7A CN201710453689A CN107301009A CN 107301009 A CN107301009 A CN 107301009A CN 201710453689 A CN201710453689 A CN 201710453689A CN 107301009 A CN107301009 A CN 107301009A
- Authority
- CN
- China
- Prior art keywords
- toast message
- message boxs
- boxs
- toast
- terminal
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
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 embodiments of the invention provide a kind of method, terminal and the computer-readable recording medium of removal Toast message boxs, wherein, this method includes:Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;Detect whether the Toast message boxs are touched;If the Toast message boxs are touched, judge touch whether meet default touch mechanism;If meeting default touch mechanism, the Toast message boxs are removed.The embodiment of the present invention is user-operably Toast message boxs by setting focus attribute to Toast message boxs, and user can be with manual-lock or removal Toast message boxs, without waiting Toast message boxs to close or remove automatically, the experience sense of lifting user.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method, terminal and the computer of removal Toast message boxs
Readable storage medium storing program for executing.
Background technology
In android system, Toast is a kind of mechanism for being used for showing message, with two during the display of Toast message
Plant selection, LENGTH_SHORT and LENGTH_LONG.Toast message shows that duration is controlled by system, and time is up
Toast message just disappears, and the former shows the short time, is 3.5 seconds, and the latter is to show for a long time, is 5 seconds.
Sometimes the display of Toast message can influence very much Consumer's Experience.Although the time is not long, only several seconds.But user
The content covered below just can be seen in the time that must be clamped on several seconds, and the experience sense of user is poor.
The content of the invention
The embodiment of the present invention provides a kind of method, terminal and the computer-readable recording medium of removal Toast message boxs, energy
Enough facilitate user's manually removes Toast message boxs, improve the experience sense of user.
On the one hand, the embodiments of the invention provide a kind of method of removal Toast message boxs, this method includes:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;
Detect whether the Toast message boxs are touched;
If the Toast message boxs are touched, judge touch whether meet default touch mechanism;
If meeting default touch mechanism, the Toast message boxs are removed.
On the other hand, the embodiments of the invention provide a kind of terminal, the terminal includes:
Setting unit, for setting focus attribute to Toast message boxs, so that the Toast message boxs can be operated;
Detection unit, for detecting whether the Toast message boxs are touched;
Judging unit, if being touched for the Toast message boxs, judges touch whether meet default touch mechanism;
Unit is removed, if for meeting default touch mechanism, removing the Toast message boxs.
On the other hand, the embodiment of the present invention also provides a kind of terminal, and the terminal includes memory, processor and is stored in
In the memory and the computer program that can run on the processor, described in the computing device during computer program
Realize following steps:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;
Detect whether the Toast message boxs are touched;
If the Toast message boxs are touched, judge touch whether meet default touch mechanism;
If meeting default touch mechanism, the Toast message boxs are removed.
On the other hand, the embodiment of the present invention also provides a kind of computer-readable recording medium, the computer-readable storage
Media storage has computer program, it is characterised in that the computer program realizes following steps when being executed by processor:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;
Detect whether the Toast message boxs are touched;
If the Toast message boxs are touched, judge touch whether meet default touch mechanism;
If meeting default touch mechanism, the Toast message boxs are removed.
Method, terminal and the computer-readable recording medium of removal Toast message boxs provided in an embodiment of the present invention, pass through
Set focus attribute Toast message boxs is user-operably to Toast message boxs, realize Toast message boxs and user
Interaction, user can be closed or removed automatically without wait Toast message boxs with manual-lock or removal Toast message boxs,
Lift the experience sense of user.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the method for removal Toast message boxs provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 3 is a kind of structure composition schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of another structure composition schematic block diagram of terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of the method for removal Toast message boxs provided in an embodiment of the present invention,
This method comprises the following steps S101~S104:
S101, to Toast message boxs set focus attribute so that the Toast message boxs can be operated.
System adds Toast message boxs by using the class of window management on display desktop, in addition Toast message boxs
When to Toast message boxs set focus attribute, set focus attribute after Toast message boxs obtain focus, user can pass through
The Toast message boxs shown in touch display screen are operated accordingly to Toast message boxs, are operated such as closing.
Further, in the step S101 to Toast message boxs set focus attribute, including:The Toast is disappeared
Cease frame and closing button is set.
Whether S102, the detection Toast message boxs are touched.
Toast message boxs are touched, and illustrate user just in manually operated Toast message boxs.
If S103, the Toast message boxs are touched, judge touch whether meet default touch mechanism.
Further, judging whether touch meets default touch mechanism and include in step S103:Judge that the closing is pressed
Whether key is clicked.
If the default touch mechanism of S104, satisfaction, removes the Toast message boxs.Further, the step S104 is specific
For:If the closing button is clicked, the Toast message boxs are removed.
I.e. when the closing button of Toast message boxs is clicked, the default touch mechanism that meets is touched, system removes described automatically
Toast message boxs.
Except to Toast message boxs except close button in addition to, other buttons, the difference of user's touch display screen can also be set
Place or touch type are different, and corresponding operation is different, meets default touch mechanism if touched, and removes Toast message boxs,
I.e. user can be with the manual-lock Toast message boxs.
In other embodiments, focus attribute is set to Toast message boxs in the step S101, specifically included:Will
The Toast message boxs are configured to be moved.
Accordingly, judge touch whether meet default touch mechanism in the step S103, specifically include:Judge described
Whether Toast message boxs are by mobile pre-determined distance.
Correspondingly, the step S104 is specifically included:If the Toast message boxs are moved pre-determined distance, remove described
Toast message boxs.
I.e. after Toast message boxs are moved pre-determined distance by user according to Toast message boxs, system removes described automatically
Toast message boxs.
Further, the pre-determined distance is 1cm-5cm, and the embodiment of the present invention is preferably 2cm or 3cm.
In another other embodiment, focus attribute, specific bag are set to Toast message boxs in the step S101
Include:The Toast message boxs are set and close button, and the Toast message boxs are configured to be moved.
Accordingly, judge touch whether meet default touch mechanism in the step S103, including:Judge X button
Whether it is clicked, and judges the Toast message boxs whether by mobile pre-determined distance.
When X button is clicked or the Toast message boxs are moved pre-determined distance, the touch mechanism is met, is
System removes the Toast message boxs.
The pre-determined distance can be any one in 1cm-5cm.
It is specific the step of removal in the step S104 Toast message boxs in specific implementation process of the present invention
For:
Generation crushes the animation of the Toast message boxs and completes to play the animation in preset time;Or
The Toast message boxs are gradually reduced in preset time until the Toast message boxs disappear.
Further, the preset time is 500ms-1s, and the embodiment of the present invention is preferably 1s.
The process for removing Toast message boxs is made as an animation process, makes whole picture that there is the dynamic of animation effect
Sense, eliminates the uninteresting sense of user.
The method of the removal Toast message boxs of the embodiment of the present invention, by setting focus attribute to Toast message boxs, makes
Toast message boxs can be user-operably, and user can be with manual-lock or removal Toast message boxs, without waiting Toast
Message box is closed or removed automatically, lifts the experience sense of user.
As shown in Fig. 2 Fig. 2 is a kind of schematic block diagram of terminal 100 provided in an embodiment of the present invention, the terminal 100 is wrapped
Include setting unit 101, detection unit 102, judging unit 103 and remove unit 104.
Setting unit 101 is used to set focus attribute to Toast message boxs, so that the Toast message boxs can be grasped
Make.
The system of terminal 100 adds Toast message boxs by using the class of window management on display desktop, in addition
Focus attribute is set to Toast message boxs by setting unit 101 during Toast message boxs, Toast message after focus attribute is set
Frame obtains focus, and user can be carried out corresponding by the Toast message boxs shown in touch display screen to Toast message boxs
Operation, is operated such as closing.
Further, the setting unit 101 includes the first setting subelement, and the first setting subelement is used for:It is right
The Toast message boxs, which are set, closes button.
Detection unit 102 is used to detect whether the Toast message boxs are touched.
Toast message boxs are touched, and illustrate user just in manually operated Toast message boxs.
If judging unit 103 is touched for the Toast message boxs, judge touch whether meet default touch mechanism.
Further, judging unit 103 specifically for:Judge whether the closing button is clicked.
If removing unit 104 is used to meet default touch mechanism, the Toast message boxs are removed.
Further, it is described removal unit 104 specifically for:If the closing button is clicked, removes the Toast and disappear
Cease frame.
I.e. when the closing button of Toast message boxs is clicked, default touch mechanism is met, system removes described automatically
Toast message boxs.
Except to Toast message boxs except close button in addition to, other buttons, the difference of user's touch display screen can also be set
Place or touch type are different, and corresponding operation is different, meets default touch mechanism if touched, and removes Toast message boxs,
I.e. user can be with the manual-lock Toast message boxs.
In other embodiments, the setting unit 101 includes the second setting subelement, and described second sets subelement to use
In:The Toast message boxs are configured to be moved.Accordingly, the judging unit 103 specifically for:Judge described
Whether Toast message boxs are by mobile pre-determined distance.
Accordingly, remove unit 104 specifically for:If the Toast message boxs are moved pre-determined distance, remove described
Toast message boxs.
I.e. after Toast message boxs are moved pre-determined distance by user according to Toast message boxs, system removes described automatically
Toast message boxs.
Further, the pre-determined distance is 1cm-5cm, and the embodiment of the present invention is preferably 2cm or 3cm.
In another other embodiment, the setting unit 101 includes first and sets subelement and second to set subelement.
The first setting subelement is used for:The Toast message boxs are set and close button.
The second setting subelement is used for:The Toast message boxs are configured to be moved.
Correspondingly, the judging unit 103 specifically for:
Judge whether the closing button is electrically shocked, judge the Toast message boxs whether by mobile pre-determined distance.
When X button is clicked or the Toast message boxs are moved pre-determined distance, the touch mechanism is met, is
System removes the Toast message boxs.
The pre-determined distance can be any one in 1cm-5cm.
In specific implementation process of the present invention, the removal unit 104 is specifically additionally operable to:
Generation crushes the animation of the Toast message boxs and completes to play the animation in preset time;Or
The Toast message boxs are gradually reduced in preset time until the Toast message boxs disappear.
Further, the preset time is 500ms-1s, and the embodiment of the present invention is preferably 1s.
The process for removing Toast message boxs is made as an animation process, makes whole picture that there is the dynamic of animation effect
Sense, eliminates the uninteresting sense of user.
The terminal 100 of the embodiment of the present invention, by giving Toast message boxs to set focus attribute, makes Toast message boxs can be with
It is user-operably, user can be with manual-lock or removal Toast message boxs, without waiting Toast message boxs to close automatically
Or remove, lift the experience sense of user.
As shown in figure 3, structure composition schematic block diagrams of the Fig. 3 for a kind of terminal 200 of the embodiment of the present invention, the terminal 200
Including memory 201, processor 202 and it is stored in the meter that can be run in the memory 201 and on the processor 202
Calculation machine program, the processor 202 realizes following steps when performing the computer program:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;Detect the Toast
Whether message box is touched;If the Toast message boxs are touched, judge touch whether meet default touch mechanism;If meeting
Default touch mechanism, removes the Toast message boxs.
Terminal 200 adds Toast message boxs by using the class of window management on display desktop, disappears in addition Toast
Focus attribute is set to Toast message boxs when ceasing frame, sets Toast message boxs after focus attribute to obtain focus, user can be with
Toast message boxs are operated.
Further, it is described to Toast message boxs setting focus attribute, including:Set and close to the Toast message boxs
Button.
Further, if described meet default touch mechanism, removing the Toast message boxs includes:If the closing is pressed
Key is clicked, and removes the Toast message boxs.
I.e. when user clicks on the closing button of Toast message boxs, touch and meet default touch mechanism, system removes described
Toast message boxs.
Except to Toast message boxs except close button in addition to, other buttons, the difference of user's touch display screen can also be set
Place or touch type are different, and corresponding operation is different, meets default touch mechanism if touched, and removes Toast message boxs,
I.e. user can be with the manual-lock Toast message boxs.
In other embodiments, it is described that focus attribute is set to Toast message boxs, specifically include:By the Toast message
Frame is configured to be moved.
Accordingly, it is described to judge touch whether meet default touch mechanism, specifically include:Judge the Toast message boxs
Whether by mobile pre-determined distance.
Correspondingly, if described meet default touch mechanism, the Toast message boxs is removed, are specifically included:If described
Toast message boxs are moved pre-determined distance, remove the Toast message boxs.
I.e. after Toast message boxs are moved pre-determined distance by user according to Toast message boxs, system removes described automatically
Toast message boxs.
Further, the pre-determined distance is 1cm-5cm, and the embodiment of the present invention is preferably 2cm or 3cm.
It is described that focus attribute is set to Toast message boxs in another other embodiment, specifically include:To the Toast
Message box, which is set, closes button, and the Toast message boxs are configured to be moved.
Accordingly, it is described to judge touch whether meet default touch mechanism, including:Judge whether X button is clicked,
Judge the Toast message boxs whether by mobile pre-determined distance.
When X button is clicked or the Toast message boxs are moved pre-determined distance, the touch mechanism is met, is
System removes the Toast message boxs.
The pre-determined distance can be any one in 1cm-5cm.
In specific implementation process of the present invention, it is described removal the Toast message boxs the step of be specially:
Generation crushes the animation of the Toast message boxs and completes to play the animation in preset time;Or
The Toast message boxs are gradually reduced in preset time until the Toast message boxs disappear.
The process for removing Toast message boxs is made as an animation process, makes whole picture that there is the dynamic of animation effect
Sense, eliminates the uninteresting sense of user.
The terminal 200 of the embodiment of the present invention, by giving Toast message boxs to set focus attribute, makes Toast message boxs can be with
It is user-operably, user can be with manual-lock or removal Toast message boxs, without waiting Toast message boxs to close automatically
Or remove, lift the experience sense of user.
Referring to Fig. 4, Fig. 4 is a kind of another structure composition schematic block diagram of terminal 300 provided in an embodiment of the present invention.Should
Terminal 300 can include one or more input equipments 301, include one or more computer-readable recording mediums
Memory 302, one or more output equipments 303, bus 304 and include one or the place of more than one processing core
Manage the grade part of device 305.
It will be understood by those skilled in the art that the restriction of the structure of terminal 300 shown in Fig. 4 not structure paired terminal 300,
It can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Input equipment 301 can be used for the numeral or character information for receiving input, and produce the key relevant with function control
Disk, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment, input equipment 301
It may include touch sensitive surface and other input units.Touch sensitive surface, also referred to as touch display screen or Trackpad, collect user
(such as user is using any suitable objects such as finger, stylus or annex in touch sensitive surface for touch operation on or near it
The upper or operation near touch sensitive surface), and corresponding attachment means are driven according to formula set in advance.Optionally, it is touch-sensitive
Surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects the touch side of user
Position, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detecting apparatus
Touch information is received, and is converted into contact coordinate, then gives processor 305, and the order that energy reception processing device 305 is sent
And performed.Furthermore, it is possible to realize touch-sensitive table using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Face.Except touch sensitive surface, input equipment 301 can also include other input units, and such as fingerprint, which adopts sensor, (to be used to gather and use
The finger print information at family and the directional information of fingerprint), microphone etc..
Memory 302 can include read-only storage and random access memory, available for storage application program and data,
And provide instruction and data to processor 305.Include executable code in the application program that memory 302 is stored.Using journey
Sequence can constitute various functions module.Processor 305 is stored in the application program of memory 302 by operation, so as to perform each
Plant application of function and data processing.Memory 302 can mainly include storing program area and storage data field, wherein, store journey
Sequence area can be needed for storage program area, at least one function application program (such as sound-playing function, image player function
Deng) etc.;Storage data field can be stored uses created data (such as voice data, phone directory etc.) etc. according to terminal 300.
In addition, memory 302 can include high-speed random access memory, nonvolatile memory, for example, at least one can also be included
Individual disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 302 can also include depositing
Memory controller, to provide access of the processor 305 to memory 302.
Output equipment 303 is used for the output data of external output terminal 300, it may include display, loudspeaker etc..Further
, the display panel of display can cover touch sensitive surface, after touch sensitive surface detects the touch operation on or near it, pass
Processor 305 is given to determine the type of touch event, with preprocessor 305 according to the type of touch event on a display panel
Corresponding visual output is provided.
Processor 305 is the control centre of terminal 300, utilizes each of various interfaces and the whole terminal 300 of connection
Part, the application program in memory 302 is stored in by operation or execution, and call the number being stored in memory 302
According to the various functions and processing data of execution terminal 300, so as to carry out integral monitoring to terminal 300.Optionally, processor 305
It may include one or more processing cores;It is preferred that, processor 305 can integrated application processor and modem processor, its
In, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly handled wirelessly
Communication.It is understood that above-mentioned modem processor can not also be integrated into processor 305.
Although not shown in Fig. 4, it will be understood to those skilled in the art that terminal 300 can also include camera, bluetooth
Deng will not be repeated here.
Specifically in the present embodiment, the processor 305 of terminal 300 can be according to following instruction, by one or more
Application program the corresponding executable code of process or data be loaded into memory 302, run by processor 305 or grasped
Program code in the memory 302 or data are stored, and perform following steps:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated.
Detect whether the Toast message boxs are touched.
If the Toast message boxs are touched, judge touch whether meet default touch mechanism.
If meeting default touch mechanism, the Toast message boxs are removed.
Further, processor 305 is additionally operable to perform following steps:
Set to the Toast message boxs and close button, and/or the Toast message boxs are configured to be moved.
Detect whether the Toast message boxs are touched.
If the Toast message boxs are touched, judge whether the closing button is clicked and/or the Toast message
Whether frame is by mobile pre-determined distance.
If the closing button is clicked, remove the Toast message boxs, if or the Toast message boxs moved pre-
If distance, the Toast message boxs are removed.
In the specific implementation, input equipment 301, output equipment 303, the processor 305 described in the embodiment of the present invention can
Implementation described in the embodiment for the method for implementing the removal Toast message boxs that the present invention is provided, also can perform this hair
The implementation of terminal described by bright embodiment, will not be repeated here.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and the computer-readable recording medium can be applied to
The terminals such as computer, mobile phone, iPad, the computer-readable recording medium storage has computer program, the computer program
Following steps are realized when being executed by processor:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;Detect the Toast
Whether message box is touched;If the Toast message boxs are touched, judge touch whether meet default touch mechanism;If meeting
Default touch mechanism, removes the Toast message boxs.
The method tool that computer program in the computer-readable recording medium of the embodiment of the present invention is realized when being performed
Body refers to above method embodiment, will not be repeated here.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or internal memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, for example
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
The internal storage unit of the terminal is included, also including External memory equipment.The computer-readable recording medium is used to store institute
State other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for
Temporarily store the data that has exported or will export.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description
End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
, can be by it in several embodiments provided herein, it should be understood that disclosed terminal and method
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only
Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied
Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase
Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit
Connection or electricity, mechanical or other forms are connected.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer-readable recording medium.Based on it is such understand, technical scheme substantially or
Person says the part contributed to prior art, or the technical scheme all or part can in the form of software product body
Reveal and, the computer software product is stored in a storage medium, including some instructions are to cause a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the whole of each embodiment methods described of the invention
Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of method of removal Toast message boxs, it is characterised in that including:
Focus attribute is set to Toast message boxs, so that the Toast message boxs can be operated;
Detect whether the Toast message boxs are touched;
If the Toast message boxs are touched, judge touch whether meet default touch mechanism;
If meeting default touch mechanism, the Toast message boxs are removed.
2. according to the method described in claim 1, it is characterised in that described to set focus attribute to Toast message boxs, including:
The Toast message boxs are set and close button;
If described meet default touch mechanism, the Toast message boxs are removed, including:If the closing button is clicked, remove
The Toast message boxs.
3. method according to claim 1 or 2, it is characterised in that described that focus attribute, bag are set to Toast message boxs
Include:The Toast message boxs are configured to be moved;
If described meet default touch mechanism, the Toast message boxs are removed, including:If the Toast message boxs are moved pre-
If distance, the Toast message boxs are removed.
4. according to the method described in claim 1, it is characterised in that described to remove the Toast message boxs, including:Default
Generation crushes the animation of the Toast message boxs and completes to play the animation in time.
5. according to the method described in claim 1, it is characterised in that described to remove the Toast message boxs, including:Default
The Toast message boxs are gradually reduced in time until the Toast message boxs disappear.
6. a kind of terminal, it is characterised in that including:
Setting unit, for setting focus attribute to Toast message boxs, so that the Toast message boxs can be operated;
Detection unit, for detecting whether the Toast message boxs are touched;
Judging unit, if being touched for the Toast message boxs, judges touch whether meet default touch mechanism;
Unit is removed, if for meeting default touch mechanism, removing the Toast message boxs.
7. terminal according to claim 6, it is characterised in that
The setting unit, including:
First sets subelement, and button is closed for being set to the Toast message boxs;And/or
Second sets subelement, for the Toast message boxs to be configured to be moved;
The removal unit, specifically for:
If the closing button is clicked, the Toast message boxs are removed;And/or
If the Toast message boxs are moved pre-determined distance, the Toast message boxs are removed.
8. terminal according to claim 6, it is characterised in that the removal Toast message boxs, including:
Generation crushes the animation of the Toast message boxs and completes to play the animation in preset time;Or
The Toast message boxs are gradually reduced in preset time until the Toast message boxs disappear.
9. a kind of terminal, it is characterised in that including memory, processor and be stored in the memory and can be at the place
The computer program run on reason device, is realized such as any one of claim 1 to 5 described in the computing device during computer program
Methods described.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has computer journey
Sequence, it is characterised in that realized when the computer program is executed by processor such as any one of claim 1 to 5 methods described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710453689.7A CN107301009A (en) | 2017-06-15 | 2017-06-15 | A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710453689.7A CN107301009A (en) | 2017-06-15 | 2017-06-15 | A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107301009A true CN107301009A (en) | 2017-10-27 |
Family
ID=60134892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710453689.7A Withdrawn CN107301009A (en) | 2017-06-15 | 2017-06-15 | A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107301009A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254820A (en) * | 2018-09-05 | 2019-01-22 | Oppo广东移动通信有限公司 | window closing method, device, terminal and computer readable storage medium |
CN109828820A (en) * | 2019-02-20 | 2019-05-31 | 广州视源电子科技股份有限公司 | Focus refreshing method and device of application window, storage medium and terminal |
CN110280018A (en) * | 2019-06-21 | 2019-09-27 | 努比亚技术有限公司 | Interface processing method, terminal and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130263288A1 (en) * | 2012-03-30 | 2013-10-03 | Aetherpal Inc. | Password protect feature for application in mobile device during a remote session |
CN105739822A (en) * | 2016-01-26 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Message management method and system for application |
-
2017
- 2017-06-15 CN CN201710453689.7A patent/CN107301009A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130263288A1 (en) * | 2012-03-30 | 2013-10-03 | Aetherpal Inc. | Password protect feature for application in mobile device during a remote session |
CN105739822A (en) * | 2016-01-26 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Message management method and system for application |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254820A (en) * | 2018-09-05 | 2019-01-22 | Oppo广东移动通信有限公司 | window closing method, device, terminal and computer readable storage medium |
CN109828820A (en) * | 2019-02-20 | 2019-05-31 | 广州视源电子科技股份有限公司 | Focus refreshing method and device of application window, storage medium and terminal |
CN109828820B (en) * | 2019-02-20 | 2021-08-20 | 广州视源电子科技股份有限公司 | A focus refresh method, device, storage medium and terminal of an application window |
CN110280018A (en) * | 2019-06-21 | 2019-09-27 | 努比亚技术有限公司 | Interface processing method, terminal and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104903834B (en) | For equipment, method and the graphic user interface in touch input to transition between display output relation | |
EP2752749B1 (en) | Processing method of touch screen device user interface and touch screen device | |
CN103631516B (en) | The method of touch-sensitive device and the manipulation based on touch to content | |
WO2019062910A1 (en) | Copy and pasting method, data processing apparatus, and user device | |
CN106843711A (en) | The apparatus and method of touch input are processed for the intensity based on touch input | |
CN107967055A (en) | A kind of man-machine interaction method, terminal and computer-readable medium | |
CN109313519A (en) | Electronic equipment including force sensors | |
CN106933468A (en) | A kind of user interface switching method and terminal | |
CN107493389A (en) | Singlehanded mode implementation method, terminal and computer-readable medium | |
WO2015043194A1 (en) | Virtual keyboard display method and apparatus, and terminal | |
WO2014206101A1 (en) | Gesture-based conversation processing method, apparatus, and terminal device | |
CN109583356A (en) | Fingerprint identification method and Related product | |
CN107181858A (en) | A kind of method and terminal for showing notification message | |
CN106651338A (en) | Method for payment processing and terminal | |
CN107908330B (en) | The management method and mobile terminal of application icon | |
CN107317931A (en) | A kind of information processing method, terminal and computer-readable recording medium | |
CN106843779A (en) | A kind of screen control method and terminal | |
CN107908349A (en) | Display interface amplification method, terminal and computer-readable recording medium | |
CN109165033A (en) | A kind of application update method and mobile terminal | |
CN106775223A (en) | The control method and terminal device of suspension button | |
CN110308834A (en) | Application icon display mode setting method and terminal | |
CN109101152A (en) | A kind of data inputting method and terminal | |
CN107301009A (en) | A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs | |
CN107562356B (en) | Fingerprint identification positioning method and device, storage medium and electronic equipment | |
KR20150001095A (en) | Method for processing character input and apparatus for the same |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171027 |
|
WW01 | Invention patent application withdrawn after publication |