The control operation method and system of display screen
Technical field
The present invention relates to display screen control technology fields, and in particular to a kind of display screen control operation method and system.
Background technology
Touch vehicle-carrying display screen is increasingly popularized, soft to vehicular applications such as music software, navigation softwares as driver
The operative of part and operating result display platform, touch vehicle-carrying display screen is easy to operate, high sensitivity, is operated for driver
Vehicular applications software provider just quick way.
However, the characteristics of exactly this easy to operate, highly sensitive so that display screen is to the accuracy of the operation of driver
There are increasingly higher demands, slightly careless operation, such as unintentionally click on, the control system for causing display screen is all responded into phase
The operation answered, therefore, driver preferably looks at display screen during click, however, frequently viewing display screen can inevitably make driver
It takes sb's mind off sth, forms some potential safety problems.
The content of the invention
The embodiment of the present application provides a kind of control operation method of display screen, includes the following steps:
Obtain the action message of touch display screen;
Idle view is selected, to handle the action message;
It determines that the action message is corresponding and performs order;
Receive the implementing result that the view of the free time returns.
Preferably, the definite action message is corresponding performs order, including:
Judge the type of the action message;
Obtain the parameter of the action message;
Judge the application software being presently in;
In the application software being presently in described in acquisition with the type of the action message and the parameter of the action message
It is corresponding to perform order.
Preferably, control application software is ordered by performing described perform.
Preferably, the application software includes navigation software and music software, wherein:
The control of navigation software is included it is following in one or more:Navigation software is opened, navigation software is closed, stops
Navigation and the size for adjusting the sound for playing navigation information;
The control of music software is included it is following in one or more:It opens music software, close music software, switching
Music and the size for adjusting broadcasting musical sound.
Preferably, the type of the action message includes click, double-click, long-press and slide.
Preferably, the type for judging the action message, including:
Whether the type for judging the action message is clicking operation;
If the type of the action message is not clicking operation, whether the type for judging the action message is to double-click behaviour
Make;
If the type of the action message is not double click operation, judge the type of the action message for slide.
Preferably, it is described to determine whether double click operation, including:
Whether the interval time of clicking operation twice in succession is judged no more than 1/5s, if so, being double click operation.
Preferably, the slide includes single finger slide and both hands refer to slide, determines it is that single finger is slided
The method that dynamic operation or both hands refer to slide, including:
If being two when the starting point of slide, terminating point difference, the slide is single finger slide,
If starting point and terminating point are two points, the slide refers to slide for both hands.
Preferably, before the action message for obtaining touch display screen, including:
The parameter of storage and action message and action message is corresponding to perform order.
Invention additionally discloses a kind of operation control system of display screen, wherein, including:
Acquisition module obtains the action message of touch display screen;
Chosen module selectes idle view, to consume the action message;
Processing module determines that the action message is corresponding and performs order;
Receiving module receives the implementing result of the view of the free time.
Preferably, wherein, the processing module includes:
Judgment module judges the type of action message;
Second acquisition module obtains the parameter of action message;
Second judgment module judges the application software being presently in;
3rd acquisition module obtains the parameter with the type of action message and action message in the application software being presently in
It is corresponding to perform order.
Preferably, wherein, the view of the free time includes execution module, and corresponding behaviour is ordered to perform described perform
Make, and return to implementing result to the receiving module.
Above-mentioned at least one technical solution that the embodiment of the present application uses can reach following advantageous effect:
1. control behaviour's method and system of display screen provided by the invention, during operator's operating display, are stared at without the moment
Display screen, systematic unity intercepts the action message of operator's touch display screen, identifies and is uniformly distributed to regarding for current idle
Figure brings greats convenience, especially driver for user's operation display screen, during frequent operation display screen, without staring at vehicle-mounted show
Display screen provides strong safety guarantee for the driving of driver.
2. the method for controlling operation thereof and system of display screen provided by the invention, after action message is intercepted, acquisition action letter
The parameter of breath using action message and the purpose of the parameter double control operating display of action message, improves display screen control
The accuracy of system.
3. the method for controlling operation thereof and system of display screen provided by the invention are controlled by the action message of touch display screen
Operation and application software, in different application software, the same action information of same action information parameter can correspond to identical or not
Same execution order meets the demand of variation control application software.
Description of the drawings
Attached drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen
Schematic description and description please does not form the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow chart of a specific example of display screen method of controlling operation thereof in the embodiment of the present invention 1;
Fig. 2 is that the corresponding exectorial flow chart of action message is determined in the embodiment of the present invention 1;
Fig. 3 is the flow chart of the definite method of single finger glide direction in the embodiment of the present invention 1.
Specific embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical solution that each embodiment of the application provides is described in detail.
Embodiment 1
The present embodiment provides a kind of control operation method of display screen, as shown in Figure 1, including the following steps:
S1:The action message of touch display screen is obtained, which directly applies display screen for user or operator
Add, the action message got by the sensor of touch display screen.
S2:Idle view is selected, handles action message, unified dispensing action information, by parent View (ViewGroup)
Its sub- View (or ViewGroup) is transferred to, to be applied to the idle view of the action message of display screen distribution rather than tradition
Just calling processing order execution after receiving action message in meaning, overcomes inconvenience caused by false touch display screen.
As a preferred embodiment, in Android system, the action message of touch display screen from
Activity.dispatchTouchEvent () starts to transfer, as long as no being stopped or intercepting, from the View of top layer
(ViewGroup) start always to transfer down (sub- View).Sub- View can by onTouchEvent () to event at
Reason.Action message is transferred to sub- View by father View (ViewGroup), and ViewGroup can pass through
OnInterceptTouchEvent () intercepts event, stops it and transfers down.If action message is transferred from top to bottom
It is never stopped in the process, and the sub- View of the bottom is without handling (consumption in computer meaning) action message, action
Information reversely can be transferred up, and at this moment father View (ViewGroup) can be consumed, if again without by consumption if,
OnTouchEvent () function of Activity can finally be arrived.
S3:It determines that action message is corresponding and performs order, different action messages has it to perform order accordingly, with response
It is applied to the action message of display screen.
S4:The implementing result that idle view returns is received, to inform the applying person of action message, system is to complete to dynamic
Make the response of information.
As an optional embodiment, in Android system, obtained using onInterceptTouchEvent events dynamic
Make information, corresponding perform of action message is ordered by the view for being distributed to the free time using dispatchTouchEvent events, is adopted
Perform that action message is corresponding performs order with onTouchEvent events.
During operator's operating display, display screen, system system are stared at without the moment for the control operation method of above-mentioned display screen
One intercepts the action message of operator's touch display screen, identifies and is uniformly distributed to the view of current idle, is shown for user's operation
Display screen brings great convenience, especially when driver's continually operating display, without staring at vehicle-carrying display screen always, to drive
The driving for the person of sailing provides strong safety guarantee.
Preferably, determine that action message is corresponding in step S2 and perform order, include the following steps:
S21:Judge the type of action message, that is, be applied to the type of the action message of display screen, can with but be not limited only to
The type of action message includes click, double-click, long-press and slide;
S22:The parameter of action message is obtained, which is the attribute information of action message, for example, the region clicked on, sliding
Dynamic distance, direction etc., the same action message of different action message parameters can correspond to different execution orders, can be according to needs
It is set.
S23:Judge the application software being presently in, that is, be currently under which application software, such as vehicle-carrying display screen system
System is to be in music software etc. in navigation software;
S24:Obtain in the application software that is presently in the type of the action message and parameter of action message is corresponding holds
Line command, the action message for carrying action message parameter are corresponded in an application software there are one order is performed, can be according to dynamic
Make information and the action message parameter acquiring execution order.
By this method, effectively obtain be applied to display screen action message it is corresponding perform order, pass through action message
It is controlled simultaneously with action message parameter and performs order, improved and obtain exectorial accuracy.
In a preferred embodiment, perform order can with but be not limited only to open application software order, to close application soft
Part order and control application software order, wherein, application software can with but be not limited only to include navigation software and music software,
It will not go into details for this, it is preferred that the control of navigation software is included:Navigation software is opened, navigation software, beginning is closed or stops leading
Boat and the size for adjusting the sound for playing navigation information;The control of music software is included:It is soft to open music software, closing music
Part, switching music and the size for adjusting broadcasting musical sound.
By this method, efficiently accomplish the unlatching to application software such as vehicle-carrying display screen navigation software and music softwares, close
It closes and other control operations.
As a preferred embodiment of the invention, before determining the corresponding execution order of action message in step s 2, go back
Including:
S12:Judge the type of action message;
Wherein, step S12 specifically comprises the following steps:
S121:Determine whether clicking operation;
S122:If it is not, whether the type for then judging the action message is double click operation;
S123:If it is not, then judge the type of the action message for slide.
Herein it is noted that setting on type of action, set herein just for the sake of description, it is not limited to
Click, double-click and slide can be set, it is immovable in other operating methods, be only action message replacement still
So belong to the scope of protection of the present invention.
In step S122, double click operation is determined whether, be specially:
Whether the interval time of clicking operation twice in succession is judged no more than 1/5s, if so, be double click operation, otherwise,
For clicking operation twice.
As a preferred embodiment of the invention, slide includes single finger slide and both hands refer to slide,
Determine that single finger slide or both hands refer to slide, using judging whether the beginning and end of slide is two
A, specific method includes:
If being two when the starting point of slide, terminating point difference, slide is single finger slide, if rising
Initial point and terminating point are two points, then slide refers to slide for both hands.
By the method, effectively determine that both hands refer to slip, operator because hand mislead cause slide starting point, terminal or
When being double finger manipulations in sliding process, as long as the beginning and end of slide is not simultaneously double finger manipulations, that is, confirm as
Single finger is slided, and improves the accuracy of definite type of action.
In a preferred embodiment of the invention in, the parameter of single finger slide includes the starting point (x slided1, y1)、
Terminal (x2, y2), slide distance L1, slide speed V1With the direction of slip, wherein, the direction that single finger is slided
Computational methods, including:
Determine that the direction slided horizontally slips or slides up and down first, here, to slide (x-axis in the horizontal direction
Direction) distance determined compared with the distance in (y-axis direction) on numerical value direction, that is, judge | x1-x2| whether it is more than | y1-y2
|。
If meet | x1-x2| it is more than | y1-y2|, i.e., the distance that horizontal direction is slided be more than it is vertical high think upper slip away from
From the slip being determined as in horizontal direction is slided and slided to the right since the slip in horizontal direction is divided into, need to continue to sentence to the left
Disconnected x1With x2Magnitude relationship, that is, judge x1Whether x is more than2。
If meet x1More than x2, i.e., the distance apart from origin is more than terminal in the horizontal direction to starting point in the horizontal direction
Distance apart from origin, as slide to the left, otherwise, for slide to the right.
If | x1-x2| it is not more than | y1-y2|, i.e., it is not more than and slides up numerical value is counter in the distance of horizontal reverse upward sliding
Dynamic distance then can determine that slip to slide up and down, as being still slide downward for upward sliding, determines whether y1Whether
More than y2;
If meet y1More than y2, i.e., distance of the starting point on numerical value direction apart from origin be more than terminal on numerical value direction away from
It with a distance from origin, then slides and is operated for slide downward, otherwise, slide and operated for upward sliding.
As a preferred embodiment of the invention, the speed V of single finger slide1Speed v including horizontal direction1xWith
The speed v of vertical direction1y, and the speed v of horizontal direction1xWith the speed v of vertical direction1yComputational methods be respectively:
v1x=x1-x2/t;
v1y=y1-y2/t;
Wherein, t is the duration of single finger slide.
As a preferred embodiment of the invention, the parameter that both hands refer to slide includes the starting point that the first finger slides
(x3, y3) and terminal (x4, y4), the starting point (x that second finger is slided5, y5) and terminal (x6, y6), it is risen according to what the first finger slided
Point (x3, y3) and second finger slide starting point (x5, y5) midpoint and the first finger slide terminal (x4, y4) and second finger
Terminal (the x of slip6, y6) midpoint determine that both hands refer to direction and the speed of slide.
As a preferred embodiment of the invention, before step S1, further include:
S10:The parameter of storage and action message and action message is corresponding to perform order, and action message carries its action
The parameter of information corresponds to one and performs order, stores the execution order first, after subsequently received action message, judges to carry
It takes and performs order.
It is worth mentioning that in the present invention, after getting action message, the same action letter of the parameter of same action information
Breath, in different application software, whether corresponding execution order is identical to be set according to demand by user, the present invention
Special restriction is not done to it, is so designed that, meets the demand of variation control application software.
Embodiment 2
The present embodiment provides the operation control system of a display screen, including:
Acquisition module obtains the action message of touch display screen;
Chosen module selectes idle view, to consume the action message;
Processing module determines that action message is corresponding and performs order;
Receiving module receives the implementing result of idle view.
As a preferred embodiment of the invention, processing module includes:
Judgment module judges the type of action message;
Second acquisition module obtains the parameter of action message;
Second judgment module judges the application software being presently in;
3rd acquisition module obtains the parameter with the type of action message and action message in the application software being presently in
It is corresponding to perform order.
As a preferred embodiment of the present invention, idle view includes execution module, and above-mentioned life is performed to perform
Corresponding operation is made, and returns to implementing result to receiving module.
It should be noted that the executive agent of each step of 1 providing method of embodiment may each be same equipment or
Person, this method is also by distinct device as executive agent.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the application
Form.It is deposited moreover, the application can be used to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The foregoing is merely embodiments herein, are not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle are equal
Replace, improve etc., it should be included within the scope of claims hereof.