CN107943391A - A kind of long-press quick calculation method and system - Google Patents
A kind of long-press quick calculation method and system Download PDFInfo
- Publication number
- CN107943391A CN107943391A CN201711132925.1A CN201711132925A CN107943391A CN 107943391 A CN107943391 A CN 107943391A CN 201711132925 A CN201711132925 A CN 201711132925A CN 107943391 A CN107943391 A CN 107943391A
- Authority
- CN
- China
- Prior art keywords
- character
- touch event
- long
- press
- application
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06F3/04883—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 for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of long-press quick calculation method, suitable for mobile terminal, wherein, including:Step S1, opens a master in application, in one first touch event of capture on the display interface of main application on the mobile terminal;Step S2, judges whether the first touch event is a default long-press event, and obtain when the first touch event is long-press event that the first touch event chooses in the character shown on display interface;Step S3, when it is the identifiable character of calculator application built-in in mobile terminal to determine character, calculator application is sent to by character;Step S4, is shown by calculator application calculating character and feed back to result of calculation on the display interface of main application.The beneficial effect of above-mentioned technical proposal:Calculative character is chosen by long-press, you can result of calculation is quickly obtained, it is easy to operate, greatly improve the usage experience of user.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of long-press quick calculation method and system.
Background technology
Mobile terminal makes mobile communication terminal refer to the computer equipment that can be used on the move, and broad sense says bag
Include mobile phone, notebook, tablet computer, POS machine or even include vehicle-mounted computer.But refer to mobile phone in most cases or have
The smart mobile phone and tablet computer of a variety of application functions.As network and technology are towards the hair in more and more broadband direction
Exhibition, Mobile Communication Industry will move towards the real mobile message epoch.On the other hand, with the rapid development of integrated circuit technique,
The disposal ability of mobile terminal has had powerful disposal ability, and mobile terminal is changed into one from simple call instrument
A integrated information processing platform.
Sometimes when some files are seen, it may appear that some numerical calculations, such as occur 15* hereof
These numerals of (13+13) -52+13+45+79/12+56455+4454745, if we want to know it as a result, general can be first
Exit current application, subsequently enter calculator application, then input and calculated again one by one, so calculate it is not only cumbersome and
And lose time.
The content of the invention
For the above problem existing for existing technology, the technical side of a kind of long-press quick calculation method and system is now provided
Case, it is specific as follows:
A kind of long-press quick calculation method, suitable for mobile terminal, wherein, including:
Step S1, opens a master in application, in capturing one on the display interface of the main application on the mobile terminal
First touch event;
Step S2, judges whether first touch event is a default long-press event, and touches thing described first
Part obtain that first touch event chooses when being the long-press event in the character shown on the display interface;
Step S3, when the definite character is the identifiable character of calculator application built-in in the mobile terminal
When, the character is sent to the calculator application;
Step S4, calculates the character by the calculator application and result of calculation is fed back to the institute of the main application
State and shown on display interface.
Preferably, the long-press event is the display interface of mobile terminal described in user's long-press and continues preset period of time
Touch event;
Then the step S2 is specifically included:
Step S21, judges whether first touch event is the long-press event:
If it is not, then return to the step S1;
Step S22, obtains the coordinate information that first touch event is chosen;
Step S23, obtains the character that the corresponding character string of the coordinate information includes.
Preferably, the step S3 is specifically included:
Step S31, when the definite character is calculator recognizable character, pop-up calculates menu item;
Step S32, in one second touch event of capture on the calculating menu item;
Step S33, obtains the coordinate points that second touch event is chosen;
Step S34, when determining that the coordinate points correspond to the calculation key in the calculating menu item, the character is sent
To the calculator application.
Preferably, in the step S4, the character is calculated by the calculator application, and will count by broadcast technology
Calculation result, which is fed back on the display interface of the main application, to be shown.
The present invention also provides a kind of quick computing system of long-press, suitable for mobile terminal, it is characterised in that including:
Capturing unit, for opening a master on the mobile terminal in application, in the display interface of the main application
Capture one first touch event;
Acquiring unit, connects the capturing unit, for judging whether first touch event is a default long-press
Event, and obtain when first touch event is the long-press event that first touch event chooses in the display
The character shown on interface;
Transmitting element, connects the acquiring unit, for when determine the character be in the mobile terminal it is built-in
During the identifiable character of calculator application, the character is sent to the calculator application;
Computing unit, connects the transmitting element, for calculating the character by the calculator application and will calculate
As a result feed back on the display interface of the main application and show.
Preferably, the long-press event is the display interface of mobile terminal described in user's long-press and continues preset period of time
Touch event;
Then the acquiring unit includes:
Judgment module, connects the capturing unit, for judging whether first touch event is the long-press event,
If it is not, then return to the capturing unit;
First acquisition module, connects the judgment module, the coordinate information chosen for obtaining first touch event;
Second acquisition module, connects first acquisition module, for obtaining in the corresponding character string of the coordinate information
Including the character.
Preferably, the transmitting element includes:
Pop-up module, connects second acquisition module, for being calculator recognizable character when the definite character
When, pop-up calculates menu item;
Trapping module, connects the pop-up module, in one second touch event of capture on the calculating menu item;
3rd acquisition module, connects the trapping module, the coordinate points chosen for obtaining second touch event;
Sending module, connects the 3rd acquisition module, for corresponding to the calculating menu item when the definite coordinate points
In calculation key when, the character is sent to the calculator application.
Preferably, in the computing unit, the character is calculated by the calculator application, and will by broadcast technology
Result of calculation feeds back on the display interface of the main application and shows.
The beneficial effect of above-mentioned technical proposal:A kind of long-press quick calculation method and system are provided, being chosen by long-press needs
The character to be calculated, you can result of calculation is quickly obtained, it is easy to operate, greatly improve the usage experience of user.
Brief description of the drawings
Fig. 1 is a kind of flow diagram of long-press quick calculation method in the preferred embodiment of the present invention;
Fig. 2-3 is in the preferred embodiment of the present invention, and on the basis of Fig. 1, a kind of long-press quick calculation method divides
Steps flow chart schematic diagram;
Fig. 4 is a kind of structure diagram of the quick computing system of long-press in the preferred embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
In the preferred embodiment of the present invention, based on the above-mentioned problems in the prior art, there is provided a kind of long-press is quick
Computational methods, the flow of above-mentioned quick calculation method as shown in Figure 1, including:
Step S1, opens a master in application, in capture one first on the display interface of main application on the mobile terminal
Touch event;
Step S2, judges whether the first touch event is a default long-press event, and is long-press in the first touch event
Obtain that the first touch event chooses during event in the character shown on display interface;
Step S3, when it is the identifiable character of calculator application built-in in mobile terminal to determine character, by character
It is sent to calculator application;
Step S4, feeds back on the display interface of main application by calculator application calculating character and by result of calculation and shows
Show.
In the preferred embodiment of the present invention, long-press event is the display interface of user's long-press mobile terminal and persistently presets
The touch event of period;
As shown in Fig. 2, step S2 is specifically included:
Step S21, judges whether the first touch event is long-press event:
If it is not, then return to step S1;
Step S22, obtains the coordinate information that the first touch event is chosen;
Step S23, obtains the character that the corresponding character string of coordinate information includes.
In the preferred embodiment of the present invention, as shown in figure 3, step S3 is specifically included:
Step S31, when definite character is calculator recognizable character, pop-up calculates menu item;
Step S32, one second touch event is captured in calculating on menu item;
Step S33, obtains the coordinate points that the second touch event is chosen;
Step S34, when determining that coordinate points correspond to the calculation key in calculating menu item, character is sent to calculator should
With.
In the preferred embodiment of the present invention, in step S4, by calculator application calculating character, and pass through broadcast technology
Result of calculation is fed back on the display interface of main application and is shown.
In above-mentioned technical proposal, broadcast technology is broadcast technologies.
The present invention also provides a kind of quick computing system of long-press, suitable for mobile terminal, as shown in figure 4, including:
Capturing unit 1, for opening a master on mobile terminals in application, in capture one the on the display interface of main application
One touch event;
Acquiring unit 2, connects capturing unit 1, for judging whether the first touch event is a default long-press event, and
Obtain that the first touch event chooses when the first touch event is long-press event in the character shown on display interface;
Transmitting element 3, connects acquiring unit 2, for being calculator application built-in in mobile terminal when definite character
During identifiable character, character is sent to calculator application;
Computing unit 4, linkup transmit unit 3, for by calculator application calculating character and feeding back to result of calculation
Shown on the display interface of main application.
In the preferred embodiment of the present invention, long-press event is the display interface of user's long-press mobile terminal and persistently presets
The touch event of period;
Then acquiring unit 2 includes:
Judgment module 21, connects capturing unit 1, for judging whether the first touch event is long-press event, if it is not, then returning
Return capturing unit 1;
First acquisition module 22, connection judgment module 21, the coordinate information chosen for obtaining the first touch event;
Second acquisition module 23, connects the first acquisition module 22, includes for obtaining the corresponding character string of coordinate information
Character.
In the preferred embodiment of the present invention, transmitting element 3 includes:
Pop-up module 31, connects the second acquisition module 23, for when definite character is calculator recognizable character, bullet
Go out to calculate menu item;
Trapping module 32, connects pop-up module 31, in one second touch event of capture on calculating menu item;
3rd acquisition module 33, connects trapping module 32, the coordinate points chosen for obtaining the second touch event;
Sending module 34, connects the 3rd acquisition module 33, for corresponding to the calculating calculated in menu item when definite coordinate points
During key, character is sent to calculator application.
In the preferred embodiment of the present invention, in computing unit 4, by calculator application calculating character, and pass through broadcast
Result of calculation is fed back on the display interface of main application and shown by technology.
In above-mentioned technical proposal, broadcast technology is broadcast technologies.
The foregoing is merely preferred embodiments of the present invention, not thereby limit embodiments of the present invention and protection model
Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent substitution and obviously change obtained scheme, should be included in protection scope of the present invention.
Claims (8)
- A kind of 1. long-press quick calculation method, suitable for mobile terminal, it is characterised in that including:Step S1, opens a master in application, in capture one first on the display interface of the main application on the mobile terminal Touch event;Step S2, judges whether first touch event is a default long-press event, and is in first touch event Obtain that first touch event chooses during the long-press event in the character shown on the display interface;Step S3, will when it is the identifiable character of calculator application built-in in the mobile terminal to determine the character The character is sent to the calculator application;Step S4, calculates the character by the calculator application and result of calculation is fed back to the described aobvious of the main application Show and shown on interface.
- 2. the method as described in claim 1, it is characterised in that the long-press event for mobile terminal described in user's long-press institute State display interface and continue the touch event of preset period of time;Then the step S2 is specifically included:Step S21, judges whether first touch event is the long-press event:If it is not, then return to the step S1;Step S22, obtains the coordinate information that first touch event is chosen;Step S23, obtains the character that the corresponding character string of the coordinate information includes.
- 3. the method as described in claim 1, it is characterised in that the step S3 is specifically included:Step S31, when the definite character is calculator recognizable character, pop-up calculates menu item;Step S32, in one second touch event of capture on the calculating menu item;Step S33, obtains the coordinate points that second touch event is chosen;Step S34, when determining that the coordinate points correspond to the calculation key in the calculating menu item, institute is sent to by the character State calculator application.
- 4. the method as described in claim 1, it is characterised in that in the step S4, institute is calculated by the calculator application Character is stated, and result of calculation is fed back on the display interface of the main application by broadcast technology and is shown.
- A kind of 5. quick computing system of long-press, suitable for mobile terminal, it is characterised in that including:Capturing unit, for opening a master on the mobile terminal in application, being captured on the display interface of the main application One first touch event;Acquiring unit, connects the capturing unit, for judging whether first touch event is a default long-press event, And obtain that first touch event chooses when first touch event is the long-press event in the display interface The character of upper display;Transmitting element, connects the acquiring unit, for being calculating built-in in the mobile terminal when the definite character When device applies identifiable character, the character is sent to the calculator application;Computing unit, connects the transmitting element, for calculating the character and by result of calculation by the calculator application Feed back on the display interface of the main application and show.
- 6. system as claimed in claim 5, it is characterised in that the long-press event for mobile terminal described in user's long-press institute State display interface and continue the touch event of preset period of time;Then the acquiring unit includes:Judgment module, connects the capturing unit, for judging whether first touch event is the long-press event, if It is no, then return to the capturing unit;First acquisition module, connects the judgment module, the coordinate information chosen for obtaining first touch event;Second acquisition module, connects first acquisition module, includes for obtaining the corresponding character string of the coordinate information The character.
- 7. system as claimed in claim 5, it is characterised in that the transmitting element includes:Pop-up module, connects first acquisition module, for when the definite character is calculator recognizable character, bullet Go out to calculate menu item;Trapping module, connects the pop-up module, in one second touch event of capture on the calculating menu item;3rd acquisition module, connects the trapping module, the coordinate points chosen for obtaining second touch event;Sending module, connects the 3rd acquisition module, for being corresponded to when the definite coordinate points in the calculating menu item During calculation key, the character is sent to the calculator application.
- 8. system as claimed in claim 5, it is characterised in that in the computing unit, calculated by the calculator application The character, and result of calculation is fed back on the display interface of the main application by broadcast technology and is shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711132925.1A CN107943391A (en) | 2017-11-15 | 2017-11-15 | A kind of long-press quick calculation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711132925.1A CN107943391A (en) | 2017-11-15 | 2017-11-15 | A kind of long-press quick calculation method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943391A true CN107943391A (en) | 2018-04-20 |
Family
ID=61932449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711132925.1A Pending CN107943391A (en) | 2017-11-15 | 2017-11-15 | A kind of long-press quick calculation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943391A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325303A (en) * | 2011-09-16 | 2012-01-18 | 惠州Tcl移动通信有限公司 | Wireless communication device-based location-positioning method and wireless communication device |
CN103902051A (en) * | 2014-04-10 | 2014-07-02 | 天津三星通信技术研究有限公司 | Input method and system for implementing same |
CN104063063A (en) * | 2014-06-05 | 2014-09-24 | 北京搜狗科技发展有限公司 | Mathematical calculation input method of input method and input method system |
CN104536817A (en) * | 2014-12-24 | 2015-04-22 | 小米科技有限责任公司 | Computing method and device |
CN105549894A (en) * | 2016-01-28 | 2016-05-04 | 上海海漾软件技术有限公司 | Touch information processing method and apparatus, touch information acquisition method and apparatus and touch information processing system |
CN105955629A (en) * | 2016-05-04 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and device for selecting rich text |
CN105955633A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Calculating result quick look method, device and intelligent terminal |
CN106155294A (en) * | 2015-04-15 | 2016-11-23 | 中兴通讯股份有限公司 | A kind of method and device processing bill |
CN106201470A (en) * | 2016-06-28 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | The progress control method of computer program, operating control device and terminal |
CN106648379A (en) * | 2017-01-17 | 2017-05-10 | 维沃移动通信有限公司 | Method and device for selecting text area |
WO2017126715A1 (en) * | 2016-01-20 | 2017-07-27 | 삼성전자 주식회사 | Method, apparatus and recording medium for processing division calculation |
-
2017
- 2017-11-15 CN CN201711132925.1A patent/CN107943391A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102325303A (en) * | 2011-09-16 | 2012-01-18 | 惠州Tcl移动通信有限公司 | Wireless communication device-based location-positioning method and wireless communication device |
CN103902051A (en) * | 2014-04-10 | 2014-07-02 | 天津三星通信技术研究有限公司 | Input method and system for implementing same |
CN104063063A (en) * | 2014-06-05 | 2014-09-24 | 北京搜狗科技发展有限公司 | Mathematical calculation input method of input method and input method system |
CN104536817A (en) * | 2014-12-24 | 2015-04-22 | 小米科技有限责任公司 | Computing method and device |
CN106155294A (en) * | 2015-04-15 | 2016-11-23 | 中兴通讯股份有限公司 | A kind of method and device processing bill |
WO2017126715A1 (en) * | 2016-01-20 | 2017-07-27 | 삼성전자 주식회사 | Method, apparatus and recording medium for processing division calculation |
CN105549894A (en) * | 2016-01-28 | 2016-05-04 | 上海海漾软件技术有限公司 | Touch information processing method and apparatus, touch information acquisition method and apparatus and touch information processing system |
CN105955633A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Calculating result quick look method, device and intelligent terminal |
CN105955629A (en) * | 2016-05-04 | 2016-09-21 | 乐视控股(北京)有限公司 | Method and device for selecting rich text |
CN106201470A (en) * | 2016-06-28 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | The progress control method of computer program, operating control device and terminal |
CN106648379A (en) * | 2017-01-17 | 2017-05-10 | 维沃移动通信有限公司 | Method and device for selecting text area |
Non-Patent Citations (1)
Title |
---|
陈秀兰: "《《Java语言与移动互联网技术》》", 31 August 2013, 中央广播电视大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106062763B (en) | Method and device for displaying application and picture and electronic equipment | |
CN108153503B (en) | Display control method and related product | |
CN109213407B (en) | Screenshot method and terminal equipment | |
CN106446841B (en) | A kind of fingerprint template matching order update method and terminal | |
CN102117140A (en) | Touch processing method and mobile terminal | |
US10705649B2 (en) | Pressure touch control method and electronic device | |
CN107645598B (en) | Message display method and electronic equipment | |
CN107908330B (en) | The management method and mobile terminal of application icon | |
CN107025434A (en) | A kind of fingerprint register method and mobile terminal | |
CN110162953A (en) | Biometric discrimination method and Related product | |
CN110475020A (en) | Apparatus control method and Related product | |
CN108093137B (en) | Dialing method and mobile terminal | |
CN103064621B (en) | A kind of electronic equipment and unlock method and device | |
CN109756621A (en) | A kind of two-dimensional code display method and terminal device | |
CN105721872A (en) | Image compression method, and terminal | |
CN107577404B (en) | Information processing method and device and electronic equipment | |
CN110825475A (en) | Input method and electronic equipment | |
CN104360800A (en) | Adjustment method of unlocking mode | |
CN105745988A (en) | Short message processing method for mobile terminal, and mobile terminal | |
CN110719361B (en) | Information transmission method, mobile terminal and storage medium | |
CN107943391A (en) | A kind of long-press quick calculation method and system | |
US11640751B2 (en) | Automated teller machine (ATM) onlooker detection | |
CN106547445A (en) | A kind of method for judging user operation direction, device and smart machine | |
CN102870111A (en) | Method and apparatus for determining an analysis chronicle | |
CN109376701A (en) | Fingerprint identification method and Related product |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180420 |
|
RJ01 | Rejection of invention patent application after publication |