CN109885244A - A kind of touch operation response method, device, storage medium and terminal - Google Patents

A kind of touch operation response method, device, storage medium and terminal Download PDF

Info

Publication number
CN109885244A
CN109885244A CN201910122474.6A CN201910122474A CN109885244A CN 109885244 A CN109885244 A CN 109885244A CN 201910122474 A CN201910122474 A CN 201910122474A CN 109885244 A CN109885244 A CN 109885244A
Authority
CN
China
Prior art keywords
window
touch
touch operation
overlapping region
responded
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
Application number
CN201910122474.6A
Other languages
Chinese (zh)
Inventor
杨蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910122474.6A priority Critical patent/CN109885244A/en
Publication of CN109885244A publication Critical patent/CN109885244A/en
Priority to PCT/CN2019/123366 priority patent/WO2020168786A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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 embodiment of the present application discloses a kind of touch operation response method, device, storage medium and terminal, belongs to field of computer technology.The described method includes: showing that first window and the second window, the first window and second window have overlapping region in display interface;Receive the touch operation in the overlapping region;When the touch operation is the first kind, the touch operation is responded on the first window;When the touch operation is Second Type, the touch operation is responded on second window, the first kind is different from the Second Type.Therefore, the embodiment of the present application can simplify the realization process for touching and penetrating function, and then can reduce the implementation complexity for touching and penetrating function.

Description

A kind of touch operation response method, device, storage medium and terminal
Technical field
This application involves field of computer technology more particularly to a kind of touch operation response method, device, storage medium and Terminal.
Background technique
All kinds of intelligent display devices, especially big screen display device, the applying frequency in life or work is increasingly It is high.In many cases, the display interface of intelligent display device needs to carry out in corresponding by multiple display windows in the same time The display of appearance, multiple display windows may overlap, i.e., multiple display windows of display interface may by other or The several display windows of person are covered.
For Android (Android) system, under the display window application scenarios of two overlappings, in order to by upper layer Window carries out touch operation can realize the control to different layers window under different scenes, especially realize the control to lower windows System (touches and penetrates function), it usually needs the operation distribution logic for modifying system, so that right on lower windows The corresponding touch event of touch operation is responded, but to penetrate feature operation more complicated for this touch, realizes that difficulty is big.
Summary of the invention
The embodiment of the present application provides a kind of touch operation response method, device, storage medium and terminal, can solve touching It touches and penetrates that feature operation is more complicated, realize the big problem of difficulty.The technical solution is as follows:
In a first aspect, the embodiment of the present application provides a kind of touch operation response method, which comprises
Show that first window and the second window, the first window and second window have overlay region in display interface Domain;
Receive the touch operation in the overlapping region;
When the touch operation is the first kind, the touch operation is responded on the first window;
When the touch operation is Second Type, the touch operation is responded on second window, described first Type is different from the Second Type.
Second aspect, the embodiment of the present application provide a kind of touch operation responding device, and described device includes:
Window display module, for showing first window and the second window in display interface, the first window and described Second window has overlapping region;
Receiving module is operated, for receiving the touch operation in the overlapping region;
First respond module, described in being responded on the first window when the touch operation is the first kind Touch operation;
Second respond module, described in being responded on second window when the touch operation is Second Type Touch operation, the first kind are different from the Second Type.
The third aspect, the embodiment of the present application provide a kind of computer storage medium, and the computer storage medium is stored with A plurality of instruction, described instruction are suitable for being loaded by processor and executing above-mentioned method and step.
Fourth aspect, the embodiment of the present application provide a kind of terminal, it may include: processor and memory;Wherein, the storage Device is stored with computer program, and the computer program is suitable for being loaded by the processor and executing above-mentioned method and step.
The technical solution bring beneficial effect that some embodiments of the application provide includes at least:
The scheme of the embodiment of the present application when being executed, terminal display interface show with overlapping region first window and Second window, and the touch operation in the overlapping region is received, when the touch operation is the first kind, in first window The touch operation is responded on mouthful;When the touch operation is Second Type, the touch is responded on second window Operation.It can realize that different layers window is rung in overlaid windows by the different action types of the touch operation of input It answers, meanwhile, do not need modification operation distribution logic, it is only necessary to which the matching of the action type based on touch operation can be realized Lower windows respond touch operation, simplify the realization process for touching and penetrating function, and then reduce the reality for touching and penetrating function Existing complexity, and can be responded under different action types in different layers window by set of system, promote user's body It tests.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the bandwagon effect schematic diagram of a kind of first window and the second window provided by the embodiments of the present application;
Fig. 2 is the example schematic of a kind of first window and the second window provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of system architecture provided by the embodiments of the present application;
Fig. 4 is a kind of flow diagram of touch operation response method provided by the embodiments of the present application;
Fig. 5 is a kind of flow diagram of touch operation response method provided by the embodiments of the present application;
Fig. 6 is a kind of example schematic of first window provided by the embodiments of the present application;
Fig. 7 is a kind of example schematic of second window provided by the embodiments of the present application;
Fig. 8 a and 8b are a kind of effect diagrams for more referring to touch operation provided by the embodiments of the present application;
Fig. 9 is a kind of flow diagram of touch operation response method provided by the embodiments of the present application;
Figure 10 is a kind of example schematic of first window provided by the embodiments of the present application;
Figure 11 is a kind of example schematic of second window provided by the embodiments of the present application;
Figure 12 is the effect diagram of thick touch event of one kind provided by the embodiments of the present application;
Figure 13 is a kind of structural schematic diagram of touch operation responding device provided by the embodiments of the present application;
Figure 14 is a kind of structural schematic diagram of touch operation responding device provided by the embodiments of the present application;
Figure 15 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the embodiment of the present application Mode is described in further detail.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different attached drawings indicate same or similar Element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they are only the consistent device and method of as detailed in the attached claim, the application some aspects Example.
In the description of the present application, it is to be understood that term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.In addition, unless otherwise indicated, " multiple " refer to two in the description of the present application Or it is more than two."and/or" describes the incidence relation of affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, Can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Character "/" typicallys represent forward-backward correlation pair As if a kind of relationship of "or".
Firstly, to the invention relates to some nouns explain:
First window: when referring to that user opens application program by terminal, window of the application program shown by display interface Mouthful.The application program can be any application program in existing application set.When open application program includes multiple When, each application program respectively corresponds a window, and selected window is first window to user wherein.
For example, A application program, B application program and C application program are shown in current display interface, if user has selected A Application program, then the corresponding display window of A application program is first window.
Optionally, in the multiple application programs that user can also be opened, application journey of the opening time from current time recently Display window corresponding to sequence is determined as first window, that is, opens multiple display windows, and the display window finally opened is First window.
In general, " window " in android system is although there are many type, only three categories are commonly used: a kind of It is by system process management, referred to as " system windows ";It is another to be generated by application program, for showing the interface UI " application widget ";Also one is " child window ", which is unable to individualism, needs to depend on parent window, such as dialog.? Window mentioned in the embodiment of the present application is " application widget ".
In addition, window itself does not have any visible content, it provides one substantially for the view of application program Container.And view refers to the content of filling in this embodiment, for example, display image, text, shape or combinations thereof.In this Shen Window can please be interpreted as to the display window comprising view in embodiment.
In android system display framework, the window that each view to be shown is relied on has a type classification, The level that the view of different types of window is shown is different, and position is different, display/destruction process difference etc..
It is of course also possible to add view in the window.For example, can directly pass through the Root View manager of window The addView () of WindowManager adds view.A use can be added in a second window in the embodiment of the present application To receive the view of finger touch operation.Wherein, which can be singly to refer to touch operation, or more fingers touchings Touch operation.
Second window: refer to the window created for first window, and the window is covered on first window.
Second window is covered on first window, it can be understood as, the first window first opened, post-opening second window Mouthful.Two windows can be completely overlapped, can also partly overlap.Two windows are there are many exhibition methods of display interface, Yi Zhongke Capable exhibition method is as shown in Figure 1.
Wherein, the creation mode of the second window can actively create for user;Another kind can actively be opened for user The corresponding application program of second window;Also a kind of can be when first window triggers the unlatching of the second window (such as when in use Annotation application is automatically turned on when PowerPoint (PPT) is in broadcasting, is covered on PPT window to open a transparent window); Or to pop up second window (such as insertion USB flash disk pop-up, popping up by shortcut key) by triggering mode.
Wherein, annotation application is a timely writing program, it is intended that certain information are supplemented and extended.To take from the background Business mode is run.In annotation application, there are the functions such as pen, rubber, sharing, closing, upper and lower page turning.For PPT, up and down Page turning and closing play to control the function of PPT, and other information is writing relevant information, for example, pen: being write;Rubber: clear It removes;Share: content being saved in local etc.;It closes: closing annotation.Its corresponding display interface is answered as shown in Fig. 2, opening annotation With rear, display interface shows " you have been in annotation mode ", and corresponding icon is suspended on PPT.
Finger touch operation: refer to the operation that user is touched on the display screen of terminal with finger and is generated.
The display screen has the function of touch-control sensing, also known as " touch screen ", " touch panel ", is a kind of receivable contact The induction type liquid crystal display device of equal input signals.Touch feedback system when contacting the graphic button on screen, on screen System can drive various connection devices according to the formula of preprogramming, be substituted for mechanical push button panel, and by liquid crystal Display picture produces lively visual and sound effects.
Touch screen is distinguished from technical principle, five basic kinds: vector pressure sensing technology touch screen, resistance can be divided into Technology touch screen, capacitance technology touch screen, infrared technology touch screen, surface acoustic wave technique touch screen.
According to the working principle of touch screen and the medium of transmission information, touch screen is divided into four kinds, they are respectively resistance Formula, capacitor induction type, infrared-type and surface acoustic wave type.
It should be noted that the finger touch operation inputted is needle when first window is Chong Die with the second window portion The overlapping region of two windows is inputted.
First quantitative range: set any range, value is between 0~preset quantity threshold value or preset quantity Between threshold value~10.
Second quantitative range: being different from any range of the first quantitative range, same value 0~preset quantity threshold value it Between or preset quantity threshold value~10 between.First quantitative range can be greater than the second quantitative range, also be smaller than the second quantity Range.
For example, if the first quantitative range is 0~1 (i.e. 1), expression singly refers to touch, the second number when preset quantity threshold value is 1 Measuring range is 2~10, indicates to refer to touch more.
In another example preset quantity threshold value is 2, if the first quantitative range is 0~2, expression singly refers to that touch or two fingers touch, the Two quantitative ranges are 3~10, indicate that three refer to that touch or more finger touches.
In the embodiment of the present application, with preset quantity threshold value for 1, then the first quantitative range is 0~1, the second quantity is big For 1, respectively indicates and singly refer to touch and refer to that touch is illustrated more.
Written touch control operation: refer to the operation that user carries out touch-control on the display screen of terminal with nib and generates.
It should be noted that the written touch control operation inputted is needle when first window is Chong Die with the second window portion The overlapping region of two windows is inputted.
First areal extent: set any value range, and it is less than or equal to preset area threshold value.Preset area Threshold value is the empirical value counted according to written contact area.
Second area range: it is different from any range of the first areal extent, and is greater than preset area threshold value.
It is of course also possible to be the first areal extent for greater than preset area threshold value, second area range is to be less than or wait In preset area threshold value.
For example, the first areal extent is less than preset area threshold value, it is determined that be thin style of writing control, second area range is greater than Preset area threshold value, it is determined that be thick style of writing control.
In the embodiment of the present application, preset area threshold value, second area range are less than or equal to the first areal extent It is illustrated greater than preset area threshold value.
Attribute-bit: can be TAG label, Identification (ID) etc. for the mark of unique identification window.
In the embodiment of the present application, attribute-bit is added for the second window, for that will distribute to the first window of lower layer Touch operation intercepts, and is back to the second window based on attribute-bit, so that second window of the triggering on upper layer responds the touch Operation.
Fig. 3 is referred to, is a kind of schematic diagram of system architecture provided by the embodiments of the present application.As shown in figure 3, the system Framework may include terminal 1000, first window 2000 and the second window 3000, first window 2000 and the second window 3000 are superimposed and displayed on the current display interface of terminal 1000, and the second window 3000 is covered on first window 2000, two windows The overlapping region of mouth is 4000.
Second window 3000 is covered on the first window 2000 of the display interface, and the first window 2000 is Selected any display window on the display interface, second window 3000 can be for except first windows corresponding first Using the corresponding display window of any application in addition.
Wherein, the terminal 1000 may include tablet computer, personal computer (PC), smart phone, palm PC with And mobile internet device (MID) etc. has the terminal device of data operation processing function.
As shown in figure 3, terminal 1000 receives the touch operation in the overlapping region 4000;
Wherein, the touch operation may include finger touch operation, written touch control operation etc..
Optionally, it is receiving before the touch operation of the overlapping region 4000, terminal 1000 is obtained for display circle The window that first window 2000 inputs on face creates instruction, based on window creation instruction the second window of creation.
Optionally, before the touch operation of the overlapping region, terminal 1000, which obtains, is directed to the display for the reception The view that overlapping region 4000 on interface inputs creates instruction, creates operation in the overlapping region 4000 and receives view;
Terminal 1000, which is received, receives the touch operation inputted on view in the operation.
Optionally, it is receiving before the touch operation of the overlapping region, terminal 1000 is obtained on display interface The window that selected first window 2000 inputs creates instruction, based on window creation instruction the second window 3000 of creation.
Wherein, window creation instruction can input for user for first window 2000, show the second created window Mouth 3000 is covered on first window 2000.And the mode of user's input window creation instruction can be in first window Touch control operation is carried out on 2000 (" the window creation " of right mouse button is clicked such as on first window 2000, or in first window Click function key opens corresponding second application of the second window 3000 on 2000), it can also be to be connect by the voice of terminal 1000 Receiving unit receives voice signal " creating the second window 3000 for first window 2000 " etc..
Certainly, the second window 3000 can also be opened actively other than passively opening, such as when first window 2000 is using When trigger the unlatching of the second window 3000.
When the touch operation is the first kind, the touch operation is responded on the first window 2000;
It is specifically as follows, terminal 1000 receives the finger touch operation in the overlapping region, obtains the finger and touches The finger touch operation is distributed to by the touch point quantity of operation when the touch point quantity meets the first quantitative range The first window 2000, and the finger touch operation is responded on the first window 2000.
Certainly, when the touch point quantity meets the first quantitative range, synchronous touch the finger of terminal 1000 is grasped It is distributed to second window 3000, but without response on the second window 3000.
It can also be that terminal 1000 receives the written touch control operation in the overlapping region, obtain the written touch-control behaviour The touch-control contact area of work distributes the written touch control operation when the touch-control contact area meets the first areal extent The extremely first window 2000, and the written touch control operation is responded on the first window 2000.
When the touch operation is Second Type, terminal 1000 responds the touch behaviour on second window 3000 Make, the first kind is different from the Second Type.
It is specifically as follows, when the touch point quantity meets the second quantitative range, terminal 1000 touches the finger Operation is distributed to second window 3000, and the finger touch operation is responded on second window 3000, and described the Two quantitative ranges are different from first quantitative range.
It can also be that, when the touch-control contact area meets second area range, terminal 1000 is by the written touch-control Operation is distributed to second window 3000, and responds on second window 3000 the written touch control operation, and described the Two areal extents are different from first areal extent.
Wherein, in a kind of specific mode, terminal 1000 obtains the position of touch of the written touch control operation, and in institute State the touch position input text information on the second window.
Optionally, terminal 1000 obtains the mark addition request for second window 3000 input, is based on the mark Know addition request and add attribute-bit on second window 3000, when being responded on the second window 3000, specifically It can be to intercept the touch operation for being distributed to the first window 2000, and the touch operation is being back to the category Property identify corresponding second window 3000 when, triggering respond the touch operation on second window 3000.
The scheme of the embodiment of the present application when being executed, terminal display interface show with overlapping region first window and Second window, and the touch operation in the overlapping region is received, when the touch operation is the first kind, in first window The touch operation is responded on mouthful;When the touch operation is Second Type, the touch is responded on second window Operation.It can realize that different layers window is rung in overlaid windows by the different action types of the touch operation of input It answers, meanwhile, do not need modification operation distribution logic, it is only necessary to which the matching of the action type based on touch operation can be realized Lower windows respond touch operation, simplify the realization process for touching and penetrating function, and then reduce the reality for touching and penetrating function Existing complexity, and can be responded under different action types in different layers window by set of system, promote user's body It tests.
Below in conjunction with attached drawing 4- attached drawing 12, it is situated between in detail to touch operation response method provided by the embodiments of the present application It continues.Wherein, the touch operation responding device in the embodiment of the present application can be terminal shown in Fig. 3.
Fig. 4 is referred to, provides a kind of flow diagram of touch operation response method for the embodiment of the present application.Such as Fig. 4 It is shown, the embodiment of the present application the method may include following steps:
S101 shows that first window and the second window, the first window and second window have in display interface Overlapping region;
Shown first window and the second window is different windows.And first window and the second window have overlay region Domain, two windows can partly overlap, can also be completely overlapped.That is, there is hierarchical relationship, if the second window between two windows Mouth is covered on first window, then the second window is parent window, and the second window is lower windows.
Two windows can respectively correspond different applications.It can be also possible to by opening two applications to open two windows After opening first window, then create the second window.Creating the mode of the second window, for details, reference can be made to system architecture embodiments, herein It repeats no more.
After two windows are switched on, then the two windows are shown in same display interface.And it specifically can be according to preset aobvious Show that rule shows two windows.
Wherein, the preset display rule can show size, window display position, window display styles for window (static, dynamic) etc..
S102 receives the touch operation in the overlapping region;
The touch operation is the operation that user is inputted for the overlapping region of two windows.It can be in the touch operation Including touch informations such as touch point quantity, touch point fingerprint, touch point touch pressure value, touch point contact area, touch tracks. When touch operation responding device receives the touch operation, the touch information in the touch operation is obtained.
It should be noted that operation, which has been pre-created, in the overlapping region receives view, the touch operation inputted is It receives in the operation and is inputted on view.
S103 responds the touch operation when the touch operation is the first kind on the first window;
The first kind can be any action type, can specifically be divided based on the touch information of touch operation.
For example, when touch information includes touch point quantity, the first kind can for equal to 1, be greater than 1, be more than or equal to 1 and Less than or equal to 3, etc..
In another example the first kind can be for more than or equal to default face when touch information includes touching contact area Product threshold value is preset, within the scope of preset area threshold or outside preset area threshold range etc. less than preset area.
By the way that the touch information of touch operation to be compared with the first kind, if comparing unanimously, on first window Respond inputted touch operation.If first window is lower windows, to be responded on lower windows, to realize Touch penetrates function.
S104 responds the touch operation when the touch operation is Second Type on second window, described The first kind is different from the Second Type.
Correspondingly, Second Type is different from the first kind, it is equally to be divided according to touch information.Certainly, the second class Type and the first kind can be to be divided based on identical touch information, is also possible to divide based on different touch informations.
For example, Second Type can be with the first kind and be all based on touch point quantity and be divided.The first kind is first Preset quantity, Second Type is the second preset quantity, and the first preset quantity is different from the second preset quantity.
It is divided in another example Second Type can be based on touch point quantity, the first kind can be based on touch contact surface Product divides.
By the way that the touch information of touch operation to be compared with Second Type, if comparing unanimously, on the second window Respond inputted touch operation.If the second window is parent window, to be responded on parent window, to realize Basic response of the touch operation on window.
In the embodiment of the present application, terminal shows first window and the second window with overlapping region in display interface, And the touch operation received in the overlapping region responds on the first window when the touch operation is the first kind The touch operation;When the touch operation is Second Type, the touch operation is responded on second window.Pass through The different action types of the touch operation of input can realize that different layers window is responded in overlaid windows, meanwhile, Modification operation distribution logic is not needed, it is only necessary to which the matching of the action type based on touch operation can be realized in lower windows Touch operation is responded, the realization process for touching and penetrating function is simplified, and then reduces the implementation complexity for touching and penetrating function, And can be responded under different action types in different layers window by set of system, promote user experience.
Fig. 5 is referred to, provides a kind of flow diagram of touch operation response method for the embodiment of the present application.This implementation Example is applied to illustrate in terminal with touch operation response method.The touch operation response method may include following step It is rapid:
S201 shows that first window and the second window, the first window and second window have in display interface Overlapping region;
For details, reference can be made to S101, and details are not described herein again.
S202, the mark obtained for second window input add request, based on mark addition request in institute It states and adds attribute-bit on the second window;
Attribute-bit is used for the second window of unique identification, may include TAG mark, ID etc..Attribute is added to the second window Mark is to scan for for convenience to the second window, so as to quickly determine second window for orientation window.
User to the second window carry out edit operation, thus generate mark addition request, terminal upon receiving the request, Attribute-bit is added to the second window, which can add in any display area of the second window, such as upper left corner.And Added attribute-bit, which can be, to be found in bottom home banking, is also possible to be currently generated.
One of feasible implementation is that each window has an attribute-bit, and each attribute-bit uses one group Binary code indicates, may include multidigit (such as 32), searches the attribute-bit of the second window in bottom home banking, and the It is marked on two windows.
For example, being as shown in table 1 a kind of attribute-bit of each window stored in bottom home banking, by searching for table 1 The attribute-bit of available second window is 001011 ... 1.
Table 1
Window Attribute-bit
First window 100001…1
Second window 001011…1
Third window 110011…0
S203, the view obtained for the overlapping region input on the display interface creates instruction, in the overlay region Domain creation operation receives view;
A window is opened, an Activity is actually opened, creates view (View) in Activity May include the following two kinds mode:
First, calling the onCreate method of Activity, and setContentView is executed, to create View pairs As;Second, obtaining a WindowManager, and its addView method is called, view is given WindowManagerService is managed.
The view created is used to receive the finger touch operation of user's input.It should be noted that the view is located at the The overlapping region of two windows (first window and the second window) on two windows.
S204 receives and receives the finger touch operation inputted on view in the operation, obtains the finger touch operation Touch point quantity;
By the operation that is created receive view be for receiving touch operation, when user is for view progress When finger touches, terminal can just sense generated touch operation and be responded.
Finger touch operation can also can be mostly finger touch operation singly to refer to touch operation, can by touch point quantity into Row is distinguished.
In a kind of feasible implementation, differentiation Dan Zhiyu refers to the pointerCount mainly according to bottom operation more To distinguish.If current pointerCount is more than or equal to 2, it is determined that touched to refer to, if current pointerCount is more 1, it is determined that singly to refer to touch.
Wherein, in Android system, the getPointerCount that can be used in MotionEvent class obtains touch point Quantity shows that a finger has pressed screen if returning to 1, if returning to 2, shows two fingers while having pressed screen.
Optionally, finger touch operation, which may also include, touches dotted state, touch point coordinate, touch pressure value, touch fingerprint Etc. information.
Wherein, the touch dotted state of current operation can be obtained by event.getAction (), single-point is pressed, is loose The operation opened and moved is respectively: MotionEvent.ACTION_DOWN, ACTION_UP, ACTION_MOVE.
Touch point coordinate can be obtained by event.getX (), event.getY ().If there are multiple touch points, pass through Event.getX (0), event.getY (0) obtain the coordinate value of first point, by event.getX (1), Event.getY (1) obtains the coordinate value of second point.If there is more points, and so on.
The finger touch operation is distributed to described by S205 when the touch point quantity meets the first quantitative range First window responds the finger touch operation on the first window.
First quantitative range: set any range, value is between 0~preset quantity threshold value or preset quantity Between threshold value~10.In the embodiment of the present application, it is described so that the first quantitative range is 0~1 as an example.
When detecting current touch point quantity is 1, it is determined as singly referring to touch, is then distributed to the finger touch operation It is located at the first window of lower layer in two overlaid windows.
Wherein, operation distribution refers to that after a touch operation (MotionEvent) generates, system needs transmit it It is then that the finger touch operation is passed to first in the embodiment of the present application to the process of a specific view (View) Window.It is understood that comprising receiving the view of operation in first window, then namely transmitting the finger touch operation To the view for receiving operation in first window.
In Android system, operation distribution generates touch operation it is to be understood that user contacts display screen (MotionEvent), which is received by Activity, and Activity transmits the operation after receiving, transmittance process are as follows: Activity- > Window- > DecorView (DecorView is the bottom container of current interface, is a ViewGroup) -> Execute the dispatchTouchEvent () of ViewGroup, wherein what dispatchTouchEvent () was used to be operated Distribution.
Finger touch operation is responded on first window, it can be understood as, to the finger touch operation on first window Operation operation handled or consumed.
It, can be by calling onTouchEvent () in dispatchTouchEvent () in Android system, and pass through It returns the result and determines whether the finger touch operation is consumed, if returning to false, expression is not consumed, and in the same operation (hand Referring to touch operation) window (view in window) will not receive the operation again in sequence;If returning to ture, show to disappear Consumption.
In a kind of concrete implementation mode, the operation operation of the finger touch operation is distributed to respectively positioned at upper by terminal The second window and first window positioned at lower layer of layer call in dispatchTouchEvent () for the second window OnTouchEvent (), and false is returned, at this point, triggering is called in dispatchTouchEvent () for first window OnTouchEvent () responds the finger touch operation and returns to ture, to realize finger touch operation in overlaid windows On penetrate response.
For example, if first window as shown in figure 5, the second window as shown in fig. 6, two windows are completely overlapped, when user is When inputting finger touch operation on two windows, the position (i.e. the coordinate of touch point) of the operation is obtained, if the position is in the first window At the "ON" for corresponding to red packet on mouth, and the position corresponds to song title " very ugly person " on the second window, if touch is singly referred to, then beats The red packet is opened, realizes the function of accepting covert payment, and does not play song " very ugly person ".
Optionally, when the touch point quantity meet the first quantitative range when, terminal by the finger touch operation simultaneously Also it is distributed to the second window, and the finger touch operation can be responded simultaneously on first window and on the second window.
For example, if first window as shown in fig. 6, the second window as shown in fig. 7, two windows are completely overlapped, when user is When inputting finger touch operation on two windows, the position (i.e. the coordinate of touch point) of the touch operation is obtained, if the position is the At the "ON" for corresponding to red packet on one window, and the position corresponds to song title " very ugly person " on the second window, if singly referring to touch, It then plays song " very ugly person ", and synchronous opening red packet, realizes the function of accepting covert payment.
The finger touch operation is distributed to described by S206 when the touch point quantity meets the second quantitative range Second window, second quantitative range are different from first quantitative range;
Second quantitative range is any range for being different from the first quantitative range, and same value is in 0~preset quantity threshold value Between or preset quantity threshold value~10 between.First quantitative range can be greater than the second quantitative range, also be smaller than the second number Measure range.In the embodiment of the present application, it is described so that the second quantity is greater than 1 as an example.
When detecting that current touch point quantity is greater than 1, it is determined as multiple point touching, then distributes the finger touch operation It is located at second window on upper layer into two overlaid windows.
Wherein, the orientation distribution of finger touch operation can be carried out based on the attribute-bit of the second window.
S207 is intercepted and is distributed to the finger touch operation of the first window, and by the finger touch operation When being back to corresponding second window of the attribute-bit, triggering responds the finger touch operation on second window.
It is carried out after finger touch operation is distributed to the second window, and to the finger touch operation for being distributed to first window It intercepts and returns, end operation distribution flow responds the finger touch operation on the second window to can trigger.Its In, for Android system, onInterceptTouchEvent () can be called in dispatchTouchEvent () to intercept The finger touch operation.
The finger touch operation responded on the second window may include that page turning, writing, roaming, another page of unlatching etc. are more A operation.
For example, if first window as shown in fig. 6, the second window is as shown in Figure 8 a, when user touches the using two fingers When two windows, then e-book page turn over operation is carried out on the second window, as shown in Figure 8 b, and robs red packet not on first window It is responded.
In the embodiment of the present application, the second window that terminal receives in two shown overlaid windows positioned at upper layer inputs Finger touch operation, and the touch point quantity of the finger touch operation is obtained, when touch point quantity meets the first quantitative range When, finger touch operation is distributed to the first window for being located at lower layer in two overlaid windows, the finger is responded on first window Touch operation.When touch point quantity meets the second quantitative range for being different from the first quantitative range, by finger touch operation point It is sent to the second window for being located at upper layer in two overlaid windows, the finger touch operation is responded on the second window.On the one hand, it only needs It will be by monitoring the quantity of touch point, and when the touch point quantity is met the requirements, so that it may which the finger trigger action is direct Lower windows are distributed to, the realization process for touching and penetrating function is simplified, and then reduces and touches the realization complexity for penetrating function Degree;On the other hand, finger touch behaviour can be responded in different layers window by distinguishing the touch point quantity of finger touch operation Make, the response function of different layers window may be implemented by set of system, the application widget type being applicable in is more, and increases Interactivity between overlaid windows.
Fig. 9 is referred to, provides a kind of flow diagram of touch control operation response method for the embodiment of the present application.This implementation Example is applied to illustrate in terminal with touch control operation response method.The touch control operation response method may include following step It is rapid:
S301 shows that first window and the second window, the first window and second window have in display interface Overlapping region;
For details, reference can be made to S101, and details are not described herein again.
S302, the mark obtained for second window input add request, based on mark addition request in institute It states and adds attribute-bit on the second window;
For details, reference can be made to S202, and details are not described herein again.
S303, the view obtained for the overlapping region input on the display interface creates instruction, in the overlay region Domain creation operation receives view;
For details, reference can be made to S203, and details are not described herein again.
S304 is received and is received the written touch control operation inputted on view in the operation, obtains the written touch control operation Touch-control contact area;
A window is opened, an Activity is actually opened, creates view (View) in Activity May include the following two kinds mode:
First, calling the onCreate method of Activity, and setContentView is executed, to create View pairs As;Second, obtaining a WindowManager, and its addView method is called, view is given WindowManagerService is managed.
The view created is used to receive the written touch control operation of user's input.It should be noted that the view is located at the The overlapping region of two windows (first window and the second window) on two windows.
It since the operation created receives view is operated for receiving, when user carries out finger for the view When touch, terminal can just sense generated operation and be responded.
Written touch control operation can be thick touch control operation, can also be thin touch control operation, can pass through touch-control contact area It distinguishes.
In a kind of feasible implementation, area is carried out by comparing the size of touch-control contact area and preset area threshold value Point.If current touch-control contact area is less than or equal to preset area threshold value, it is determined that be thin style of writing control, if current touch-control contact Area is greater than preset area threshold value, it is determined that is thick style of writing control.
Optionally, written touch control operation may also include the information such as touch-control dotted state, touch point coordinate, touch-control pressure value.
Wherein, the touch-control dotted state that current operation can be obtained by event.getAction (), press, unclamp and Mobile operation is respectively: MotionEvent.ACTION_DOWN, ACTION_UP, ACTION_MOVE.
Touch point coordinate can be obtained by event.getX (), event.getY ().If there are multiple touch points, pass through Event.getX (0), event.getY (0) obtain the coordinate value of first point, by event.getX (1), Event.getY (1) obtains the coordinate value of second point.If there is more points, and so on.
It should be noted that the application scenarios of the embodiment of the present application are the windows of two overlappings, and therefore, the thick style of writing inputted Control operation is the overlapping region for two overlaid windows.
The written touch control operation is distributed to institute when the touch-control contact area meets the first areal extent by S305 First window is stated, the written touch control operation is responded on the first window.
First areal extent is set any value range, is less than or equal to preset area threshold value, or be greater than Preset area threshold value.In the embodiment of the present application, it is carried out so that the first areal extent is less than or equal to preset area threshold value as an example Description.
When detecting that current touch-control contact area meets the first areal extent, it is determined as thin style of writing control, then by the pen Head touch control operation is distributed to the first window for being located at lower layer in two overlaid windows.
Wherein, operation distribution refers to that after a touch operation (MotionEvent) generates, system needs transmit it It is then that the nib touch control operation is passed to first in the embodiment of the present application to the process of a specific view (View) Window.It is understood that comprising receiving the view of operation in first window, then namely transmitting the nib touch control operation To the view for receiving operation in first window.
In Android system, operation distribution generates touch operation it is to be understood that user contacts display screen (MotionEvent), which is received by Activity, and Activity transmits the operation after receiving, transmittance process are as follows: Activity- > Window- > DecorView (DecorView is the bottom container of current interface, is a ViewGroup) -> Execute the dispatchTouchEvent () of ViewGroup, wherein what dispatchTouchEvent () was used to be operated Distribution.
Written touch control operation is responded on first window, it can be understood as, to the nib touch control operation on first window It is handled or is consumed.
It, can be by calling onTouchEvent () in dispatchTouchEvent () in Android system, and pass through It returns the result and determines whether the nib touch control operation is consumed, if returning to false, expression is not consumed, and in the same operation (pen Head touch control operation) window (view in window) will not receive the operation again in sequence;If returning to ture, show to disappear Consumption.
In a kind of concrete implementation mode, which is distributed to the second window positioned at upper layer by terminal respectively Mouthful and called in dispatchTouchEvent () positioned at the first window of lower layer for the second window OnTouchEvent (), and false is returned, at this point, triggering is called in dispatchTouchEvent () for first window OnTouchEvent () responds the nib touch control operation and returns to ture, to realize written touch control operation in overlaid windows On penetrate response.
For example, second window is as shown in figure 11 if first window is as shown in Figure 10, two windows are completely overlapped, when user exists When inputting written touch control operation on the second window, the position (i.e. the coordinate of touch point) of the operation is obtained, if the position is first On window (PPT display window) at corresponding link " Http: //www.abc.com ", and the position belongs to the second window (annotation is answered With display window) on an information write region and if thin style of writing control then open the corresponding page of the link, and not in the second window Any information is inputted on mouthful.
Optionally, when the touch-control contact area meets the first areal extent, terminal is same by the written touch control operation When be also distributed to the second window, and the nib touch control operation can be responded simultaneously on first window and on the second window.
For example, second window is as shown in figure 11 if first window is as shown in Figure 10, two windows are completely overlapped, when user exists When inputting written touch control operation on the second window, the position (i.e. the coordinate of touch point) of the operation is obtained, if the position is first On window (PPT display window) at corresponding link " Http: //www.abc.com ", and the position belongs to the second window (annotation is answered With display window) on an information write region, if thin style of writing control, then open the corresponding page of the link, and synchronous second The enterprising row information of window is write.
The written touch control operation is distributed to institute when the touch-control contact area meets second area range by S306 The second window is stated, the second area range is different from first areal extent;
Second area range is to be different from any range of the first areal extent, can be less than or equal to preset area threshold Value, can also be greater than preset area threshold value.In the embodiment of the present application, when the first areal extent is less than or equal to preset area When threshold value, second area range is greater than preset area threshold value.
When detecting that current touch-control contact area meets second area range, it is determined as thick style of writing control, then by the nib Touch control operation is distributed to the second window for being located at upper layer in two overlaid windows.
Wherein, the orientation distribution of written touch control operation can be carried out based on the attribute-bit of the second window.
S307, intercepts the written touch control operation for being distributed to the first window, and by the written touch control operation When being back to corresponding second window of the attribute-bit, the position of touch of the written touch control operation is obtained;
It is carried out after written touch control operation is distributed to the second window, and to the written touch control operation for being distributed to first window It intercepts and returns, end operation distribution flow responds the nib touch control operation on the second window to can trigger.Its In, for Android system, onInterceptTouchEvent () can be called in dispatchTouchEvent () to intercept The nib touch control operation.
The written touch control operation responded on the second window may include that page turning, writing, roaming, another page of unlatching etc. are more A operation.
S308, the touch position on second window input text information.
For example, if first window is as shown in Figure 10, the second window is as shown in figure 12, when thick the second window of style of writing control of user When, then input frame and pop-up dummy keyboard are opened on the second window, so that user is facilitated to input text information, meanwhile, it is right Link on first window is without response.
In the embodiment of the present application, the second window that terminal receives in two shown overlaid windows positioned at upper layer inputs Written touch control operation, and the touch-control contact area of the nib touch control operation is obtained, when touch-control contact area meets the first area When range, written touch control operation is distributed to the first window for being located at lower layer in two overlaid windows, response should on first window Written touch control operation.When touch-control contact area meets second area range, written touch control operation is distributed to two overlaid windows In be located at upper layer the second window, the nib touch control operation is responded on the second window.On the one hand, it is only necessary to by monitoring touch-control The size of contact area, and when the touch-control contact area is met the requirements, so that it may the touch-control contact area is directly distributed to Lower windows simplify the realization process for touching and penetrating function, and then reduce the implementation complexity for touching and penetrating function;It is another Aspect can respond written touch control operation in different layers window by distinguishing the touch-control contact area of written touch control operation, lead to Crossing set of system may be implemented the response function of different layers window, and the application widget type being applicable in is more, and increases overlapping Interactivity between window.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to Figure 13, it illustrates the structures for the touch operation responding device that one exemplary embodiment of the application provides Schematic diagram.The touch operation responding device can by software, hardware or both be implemented in combination with as terminal whole or A part.The device includes window display module 11, operation receiving module 12, the first respond module 13 and the second respond module 14。
Window display module 11, for showing first window and the second window, the first window and institute in display interface The second window is stated with overlapping region;
Receiving module 12 is operated, for receiving the touch operation in the overlapping region;
First respond module 13, for responding institute on the first window when the touch operation is the first kind State touch operation;
Second respond module 14, for responding institute on second window when the touch operation is Second Type Touch operation is stated, the first kind is different from the Second Type.
Optionally, the operation receiving module 12, is specifically used for:
The finger touch operation in the overlapping region is received, the touch point quantity of the finger touch operation is obtained;
First respond module, is specifically used for:
When the touch point quantity meets the first quantitative range, the finger touch operation is distributed to first window Mouthful, and the finger touch operation is responded on the first window.
Second respond module, is specifically used for:
When the touch point quantity meets the second quantitative range, the finger touch operation is distributed to second window Mouthful, and the finger touch operation is responded on second window, second quantitative range and first quantitative range It is different.
Optionally, the operation receiving module, is specifically used for:
The written touch control operation in the overlapping region is received, the touch-control contact area of the written touch control operation is obtained;
First respond module, is specifically used for:
When the touch-control contact area meets the first areal extent, the written touch control operation is distributed to described first Window, and the written touch control operation is responded on the first window.
Second respond module, is specifically used for:
When the touch-control contact area meets second area range, the written touch control operation is distributed to described second Window, and the written touch control operation, the second area range and the first area model are responded on second window Enclose difference.
Optionally, second respond module, is specifically used for:
Obtain the position of touch of the written touch control operation;
The touch position on second window inputs text information.
Optionally, as shown in figure 14, described device 1 further include:
View creation module 15, the view creation for obtaining the overlapping region being directed on display interface input refer to It enables, creates operation in the overlapping region and receive view;
The operation receiving module 12, is specifically used for:
It receives and receives the touch operation inputted on view in the operation.
Optionally, as shown in figure 14, described device 1 further include:
Adding module 16 is identified, for obtaining the mark addition request for being directed to second window input, is based on the mark Know addition request and adds attribute-bit on second window;
Second respond module 14, is specifically used for:
The touch operation for being distributed to the first window is intercepted, and the touch operation is being back to the attribute When identifying corresponding second window, triggering responds the touch operation on second window.
It should be noted that touch operation responding device provided by the above embodiment is executing touch operation response method When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, to complete above description All or part of function.In addition, touch operation responding device provided by the above embodiment and touch operation response method are real It applies example and belongs to same design, embody realization process and be detailed in embodiment of the method, which is not described herein again.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
In the embodiment of the present application, terminal shows first window and the second window with overlapping region in display interface, And the touch operation received in the overlapping region responds on the first window when the touch operation is the first kind The touch operation;When the touch operation is Second Type, the touch operation is responded on second window.Pass through The different action types of the touch operation of input can realize that different layers window is responded in overlaid windows, meanwhile, The lower windows being distributed to touch operation in overlaid windows can be realized by not needing modification operation distribution logic, simplify touching The realization process for penetrating function is touched, and then reduces the implementation complexity for touching and penetrating function.
The embodiment of the present application also provides a kind of computer storage medium, the computer storage medium can store more Item instruction, described instruction are suitable for being loaded by processor and being executed the method and step such as above-mentioned Fig. 4-embodiment illustrated in fig. 12, specifically Implementation procedure may refer to Fig. 4-embodiment illustrated in fig. 12 and illustrate, herein without repeating.
Present invention also provides a kind of computer program product, which is stored at least one instruction, At least one instruction is loaded as the processor and is executed to realize focus condition adjustment described in as above each embodiment Method.
Referring to Figure 15, a kind of structural schematic diagram of terminal is provided for the embodiment of the present application.As shown in figure 15, the end End 1000 may include: at least one processor 1001, at least one network interface 1004, user interface 1003, memory 1005, at least one communication bus 1002.
Wherein, communication bus 1002 is for realizing the connection communication between these components.
Wherein, user interface 1003 may include display screen (Display), camera (Camera), optional user interface 1003 can also include standard wireline interface and wireless interface.
Wherein, network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
Wherein, processor 1001 may include one or more processing core.Processor 1001 using it is various excuse and Various pieces in the entire terminal 1000 of connection, by run or execute the instruction being stored in memory 1005, program, Code set or instruction set, and the data being stored in memory 1005 are called, execute the various functions and processing of terminal 1000 Data.Optionally, processor 1001 can use Digital Signal Processing (Digital Signal Processing, DSP), show Field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array At least one of (Programmable Logic Array, PLA) example, in hardware is realized.Processor 1001 can integrating central Processor (Central Processing Unit, CPU), image processor (Graphics Processing Unit, GPU) With the combination of one or more of modem etc..Wherein, the main processing operation system of CPU, user interface and apply journey Sequence etc.;GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen;Modem is for handling channel radio Letter.It is understood that above-mentioned modem can not also be integrated into processor 1001, carried out separately through chip piece It realizes.
Wherein, memory 1005 may include random access memory (Random Access Memory, RAM), also can wrap Include read-only memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non-transitory computer-readable storage medium).Memory 1005 can be used for store instruction, journey Sequence, code, code set or instruction set.Memory 1005 may include storing program area and storage data area, wherein storing program area Can store the instruction for realizing operating system, the instruction at least one function (such as touch function, sound play function Energy, image player function etc.), for realizing instruction of above-mentioned each embodiment of the method etc.;Storage data area can store each above The data etc. being related in a embodiment of the method.Memory 1005 optionally can also be that at least one is located remotely from aforementioned processing The storage device of device 1001.As shown in figure 15, as may include in a kind of memory 1005 of computer storage medium operation System, network communication module, Subscriber Interface Module SIM and touch operation response application program.
In terminal 1000 shown in figure 15, user interface 1003 is mainly used for providing the interface of input for user, obtains The data of user's input;And processor 1001 can be used for calling the touch operation response application journey stored in memory 1005 Sequence, and specifically execute following operation:
Show that first window and the second window, the first window and second window have overlay region in display interface Domain;
Receive the touch operation in the overlapping region;
When the touch operation is the first kind, the touch operation is responded on the first window;
When the touch operation is Second Type, the touch operation is responded on second window, described first Type is different from the Second Type.
In one embodiment, the processor 1001 is executing reception in the touch operation of the overlapping region, tool Body executes following operation:
The finger touch operation in the overlapping region is received, the touch point quantity of the finger touch operation is obtained;
The processor 1001 is being executed when the touch operation is the first kind, and institute is responded on the first window It is specific to execute following operation when stating touch operation:
When the touch point quantity meets the first quantitative range, the finger touch operation is distributed to first window Mouthful, and the finger touch operation is responded on the first window;
The processor 1001 is being executed when the touch operation is Second Type, responds institute on second window It is specific to execute following operation when stating touch operation:
When the touch point quantity meets the second quantitative range, the finger touch operation is distributed to second window Mouthful, and the finger touch operation is responded on second window, second quantitative range and first quantitative range It is different.
In one embodiment, the processor 1001 is executing reception in the touch operation of the overlapping region, tool Body executes following operation:
The written touch control operation in the overlapping region is received, the touch-control contact area of the written touch control operation is obtained;
The processor 1001 is being executed when the touch operation is the first kind, and institute is responded on the first window It is specific to execute following operation when stating touch operation:
When the touch-control contact area meets the first areal extent, the written touch control operation is distributed to described first Window, and the written touch control operation is responded on the first window.
The processor 1001 is being executed when the touch operation is Second Type, responds institute on second window It is specific to execute following operation when stating touch operation:
When the touch-control contact area meets second area range, the written touch control operation is distributed to described second Window, and the written touch control operation, the second area range and the first area model are responded on second window Enclose difference.
In one embodiment, the processor 1001 responds the written touch-control behaviour in execution on second window It is specific to execute following operation when making:
Obtain the position of touch of the written touch control operation;
The touch position on second window inputs text information.
In one embodiment, the processor 1001 is executing reception before the touch operation of the overlapping region, Also execute following operation:
The view obtained for the overlapping region input on the display interface creates instruction, creates in the overlapping region Operation receives view;
The processor 1001 is executing reception in the touch operation of the overlapping region, specific to execute following operation:
It receives and receives the touch operation inputted on view in the operation.
In one embodiment, the processor 1001 also executes following operation:
The mark obtained for second window input adds request, based on mark addition request described second Attribute-bit is added on window;
The processor 1001 is being executed when responding the touch operation on second window, specific to execute following behaviour Make:
The touch operation for being distributed to the first window is intercepted, and the touch operation is being back to the attribute When identifying corresponding second window, triggering responds the touch operation on second window.
In the embodiment of the present application, terminal shows first window and the second window with overlapping region in display interface, And the touch operation received in the overlapping region responds on the first window when the touch operation is the first kind The touch operation;When the touch operation is Second Type, the touch operation is responded on second window.Pass through The different action types of the touch operation of input can realize that different layers window is responded in overlaid windows, meanwhile, The lower windows being distributed to touch operation in overlaid windows can be realized by not needing modification operation distribution logic, simplify touching The realization process for penetrating function is touched, and then reduces the implementation complexity for touching and penetrating function.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory or random access memory etc..
Above disclosed is only the application preferred embodiment, cannot limit the right model of the application with this certainly It encloses, therefore according to equivalent variations made by the claim of this application, still belongs to the range that the application is covered.

Claims (14)

1. a kind of touch operation response method, which is characterized in that the described method includes:
Show that first window and the second window, the first window and second window have overlapping region in display interface;
Receive the touch operation in the overlapping region;
When the touch operation is the first kind, the touch operation is responded on the first window;
When the touch operation is Second Type, the touch operation, the first kind are responded on second window It is different from the Second Type.
2. the method according to claim 1, wherein the touch operation received in the overlapping region, packet It includes:
The finger touch operation in the overlapping region is received, the touch point quantity of the finger touch operation is obtained;
It is described when the touch operation be the first kind when, the touch operation is responded on the first window, comprising:
When the touch point quantity meets the first quantitative range, the finger touch operation is distributed to the first window, And the finger touch operation is responded on the first window;
It is described when the touch operation be Second Type when, respond the touch operation on second window, comprising:
When the touch point quantity meets the second quantitative range, the finger touch operation is distributed to second window, And the finger touch operation is responded on second window, second quantitative range and first quantitative range are not Together.
3. the method according to claim 1, wherein the touch operation received in the overlapping region, packet It includes:
The written touch control operation in the overlapping region is received, the touch-control contact area of the written touch control operation is obtained;
It is described when the touch operation be the first kind when, the touch operation is responded on the first window, comprising:
When the touch-control contact area meets the first areal extent, the written touch control operation is distributed to first window Mouthful, and the written touch control operation is responded on the first window.
It is described when the touch operation be Second Type when, respond the touch operation on second window, comprising:
When the touch-control contact area meets second area range, the written touch control operation is distributed to second window Mouthful, and the written touch control operation, the second area range and first areal extent are responded on second window It is different.
4. according to the method described in claim 3, it is characterized in that, described respond the written touch-control on second window Operation, comprising:
Obtain the position of touch of the written touch control operation;
The touch position on second window inputs text information.
5. the method according to claim 1, wherein it is described receive the overlapping region touch operation it Before, further includes:
The view obtained for the overlapping region input on the display interface creates instruction, creates and operates in the overlapping region Receive view;
The touch operation received in the overlapping region, comprising:
It receives and receives the touch operation inputted on view in the operation.
6. the method according to claim 1, wherein the method also includes:
The mark obtained for second window input adds request, based on mark addition request in second window Upper addition attribute-bit;
It is described to respond the touch operation on second window, comprising:
The touch operation for being distributed to the first window is intercepted, and the touch operation is being back to the attribute-bit When corresponding second window, triggering responds the touch operation on second window.
7. a kind of touch operation responding device, which is characterized in that described device includes:
Window display module, for showing first window and the second window, the first window and described second in display interface Window has overlapping region;
Receiving module is operated, for receiving the touch operation in the overlapping region;
First respond module, for responding the touch on the first window when the touch operation is the first kind Operation;
Second respond module, for responding the touch on second window when the touch operation is Second Type Operation, the first kind are different from the Second Type.
8. device according to claim 7, which is characterized in that the operation receiving module is specifically used for:
The finger touch operation in the overlapping region is received, the touch point quantity of the finger touch operation is obtained;
First respond module, is specifically used for:
When the touch point quantity meets the first quantitative range, the finger touch operation is distributed to the first window, And the finger touch operation is responded on the first window.
Second respond module, is specifically used for:
When the touch point quantity meets the second quantitative range, the finger touch operation is distributed to second window, And the finger touch operation is responded on second window, second quantitative range and first quantitative range are not Together.
9. device according to claim 7, which is characterized in that the operation receiving module is specifically used for:
The written touch control operation in the overlapping region is received, the touch-control contact area of the written touch control operation is obtained;
First respond module, is specifically used for:
When the touch-control contact area meets the first areal extent, the written touch control operation is distributed to first window Mouthful, and the written touch control operation is responded on the first window.
Second respond module, is specifically used for:
When the touch-control contact area meets second area range, the written touch control operation is distributed to second window Mouthful, and the written touch control operation, the second area range and first areal extent are responded on second window It is different.
10. according to the method described in claim 9, it is characterized in that, second respond module, is specifically used for:
Obtain the position of touch of the written touch control operation;
The touch position on second window inputs text information.
11. device according to claim 7, which is characterized in that described device further include:
View creation module, for obtaining the view creation instruction of the overlapping region being directed on display interface input, in institute It states overlapping region creation operation and receives view;
The operation receiving module, is specifically used for:
It receives and receives the touch operation inputted on view in the operation.
12. device according to claim 7, which is characterized in that described device further include:
Adding module is identified, for obtaining the mark addition request for being directed to second window input, is added based on the mark Request adds attribute-bit on second window;
Second respond module, is specifically used for:
The touch operation for being distributed to the first window is intercepted, and the touch operation is being back to the attribute-bit When corresponding second window, triggering responds the touch operation on second window.
13. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with a plurality of instruction, the finger It enables and is suitable for being loaded by processor and being executed the method and step such as claim 1~6 any one.
14. a kind of terminal characterized by comprising processor and memory;Wherein, the memory is stored with computer journey Sequence, the computer program are suitable for being loaded by the processor and being executed the method and step such as claim 1~6 any one.
CN201910122474.6A 2019-02-19 2019-02-19 A kind of touch operation response method, device, storage medium and terminal Pending CN109885244A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910122474.6A CN109885244A (en) 2019-02-19 2019-02-19 A kind of touch operation response method, device, storage medium and terminal
PCT/CN2019/123366 WO2020168786A1 (en) 2019-02-19 2019-12-05 Touch operation response method and apparatus, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910122474.6A CN109885244A (en) 2019-02-19 2019-02-19 A kind of touch operation response method, device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN109885244A true CN109885244A (en) 2019-06-14

Family

ID=66928508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910122474.6A Pending CN109885244A (en) 2019-02-19 2019-02-19 A kind of touch operation response method, device, storage medium and terminal

Country Status (2)

Country Link
CN (1) CN109885244A (en)
WO (1) WO2020168786A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908580A (en) * 2019-11-11 2020-03-24 广州视源电子科技股份有限公司 Method and device for controlling application
CN111190674A (en) * 2019-12-23 2020-05-22 广州朗国电子科技有限公司 Unified touch penetration processing method and device, storage medium and all-in-one machine equipment
WO2020168786A1 (en) * 2019-02-19 2020-08-27 广州视源电子科技股份有限公司 Touch operation response method and apparatus, storage medium and terminal
CN112306331A (en) * 2020-10-26 2021-02-02 广州朗国电子科技有限公司 Touch penetration processing method and device, storage medium and all-in-one machine
CN116301441A (en) * 2023-05-24 2023-06-23 北京翼鸥教育科技有限公司 Screen touch instruction execution method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988689A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Information display method and apparatus
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
CN107015752A (en) * 2016-01-27 2017-08-04 三星电子株式会社 Electronic equipment and method for handling the input on view layer
JP2018195041A (en) * 2017-05-17 2018-12-06 京セラドキュメントソリューションズ株式会社 Display input device and image forming device provided with the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170038428A (en) * 2015-09-30 2017-04-07 엘지이노텍 주식회사 Touch window
CN107038112B (en) * 2016-10-13 2020-09-01 腾讯科技(北京)有限公司 Application interface debugging method and device
CN108829327B (en) * 2018-05-07 2021-07-09 广州视源电子科技股份有限公司 Writing method and device of interactive intelligent equipment
CN109885244A (en) * 2019-02-19 2019-06-14 广州视源电子科技股份有限公司 A kind of touch operation response method, device, storage medium and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988689A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Information display method and apparatus
CN107015752A (en) * 2016-01-27 2017-08-04 三星电子株式会社 Electronic equipment and method for handling the input on view layer
CN106445278A (en) * 2016-08-31 2017-02-22 冠捷显示科技(厦门)有限公司 Control method of transparent suspension window
JP2018195041A (en) * 2017-05-17 2018-12-06 京セラドキュメントソリューションズ株式会社 Display input device and image forming device provided with the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020168786A1 (en) * 2019-02-19 2020-08-27 广州视源电子科技股份有限公司 Touch operation response method and apparatus, storage medium and terminal
CN110908580A (en) * 2019-11-11 2020-03-24 广州视源电子科技股份有限公司 Method and device for controlling application
CN111190674A (en) * 2019-12-23 2020-05-22 广州朗国电子科技有限公司 Unified touch penetration processing method and device, storage medium and all-in-one machine equipment
CN111190674B (en) * 2019-12-23 2021-08-10 广州朗国电子科技有限公司 Unified touch penetration processing method and device, storage medium and all-in-one machine equipment
CN112306331A (en) * 2020-10-26 2021-02-02 广州朗国电子科技有限公司 Touch penetration processing method and device, storage medium and all-in-one machine
CN112306331B (en) * 2020-10-26 2021-10-22 广州朗国电子科技股份有限公司 Touch penetration processing method and device, storage medium and all-in-one machine
CN116301441A (en) * 2023-05-24 2023-06-23 北京翼鸥教育科技有限公司 Screen touch instruction execution method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2020168786A1 (en) 2020-08-27

Similar Documents

Publication Publication Date Title
CN109885244A (en) A kind of touch operation response method, device, storage medium and terminal
WO2021232930A1 (en) Application screen splitting method and apparatus, storage medium and electric device
US10140014B2 (en) Method and terminal for activating application based on handwriting input
US20190332195A1 (en) User terminal device and method for controlling the user terminal device thereof
US10503255B2 (en) Haptic feedback assisted text manipulation
WO2020019616A1 (en) Touch control data processing method and device, intelligent device and storage medium
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
Alajarmeh The extent of mobile accessibility coverage in WCAG 2.1: sufficiency of success criteria and appropriateness of relevant conformance levels pertaining to accessibility problems encountered by users who are visually impaired
JP2015509237A (en) Method and system for dynamically assignable user interface
US9690479B2 (en) Method and apparatus for controlling application using key inputs or combination thereof
CN107506086A (en) Touch-screen control method, device, mobile terminal and storage medium
CN108319410A (en) Method and apparatus for controlling the menu in media apparatus
US20200356251A1 (en) Conversion of handwriting to text in text fields
US20180356901A1 (en) Unified input and invoke handling
CN109828820A (en) A kind of focus method for refreshing, device, storage medium and the terminal of application widget
WO2016173307A1 (en) Message copying method and device, and smart terminal
CN108170338A (en) Information processing method, device, electronic equipment and storage medium
CN107765980A (en) Input method and device, terminal device and computer-readable recording medium
US10466863B1 (en) Predictive insertion of graphical objects in a development environment
US20180090027A1 (en) Interactive tutorial support for input options at computing devices
US9904461B1 (en) Method and system for remote text selection using a touchscreen device
EP3465384A1 (en) Sequential two-handed touch typing on a mobile device
KR20150090698A (en) Method and apparatus of managing objects on wallpaper
US20180307316A1 (en) Methods and Systems for Providing a Camera-Based Graphical User Interface
CN105760092B (en) A kind of application control method, apparatus and electronic equipment for touch panel device

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: 20190614

RJ01 Rejection of invention patent application after publication