CN103677518B - Touch message responding method on a kind of mobile terminal and device - Google Patents
Touch message responding method on a kind of mobile terminal and device Download PDFInfo
- Publication number
- CN103677518B CN103677518B CN201310638445.8A CN201310638445A CN103677518B CN 103677518 B CN103677518 B CN 103677518B CN 201310638445 A CN201310638445 A CN 201310638445A CN 103677518 B CN103677518 B CN 103677518B
- Authority
- CN
- China
- Prior art keywords
- interface control
- interface
- control
- coordinate position
- message
- 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.)
- Active
Links
Abstract
The invention discloses the touch message responding method on mobile terminal and device: when receiving the touch message for arbitrary application interface, obtain the hierarchical structure of each interface control corresponding to this application interface;From the beginning of ground floor or the second layer, for each interface control therein, it is handled as follows respectively: b1, determine whether this interface control meets following two condition successively: this interface control relation visible, that touch between coordinate position and the coordinate position of this interface control that message is corresponding meets predetermined requirement;Once do not meet any one condition, then terminate to process;If two all meet, then perform b2;B2, determine whether there is next straton control of this interface control, if it is, for each interface control as next straton control, repeat b1 respectively, otherwise, when this interface control possesses responding ability, this interface control respond touching message.Apply scheme of the present invention, it is possible to accelerate response speed etc..
Description
Technical field
The present invention relates to mobile terminal technology, particularly to the touch message responding method on a kind of mobile terminal and device.
Background technology
Along with the development of technology, program of mobile terminal application is increasingly becoming the application platform of main flow, and, existing movement
Terminal many employings touch screen, therefore, responds touch message and becomes the main feature of mobile terminal.Described touch
Message, refers to by touching the message that screen produces, including touching, slip etc..For a user, ring faster
Answer speed can bring more preferable experience etc..
Currently, the response mode for message is usually: when receiving arbitrary message, to relevant whole interfaces control
Part is made whether to respond the ergodic screening of this message, and is rung this message by the interface control screened
Should.Described interface control, refers on application interface manipulable region and the performance unit etc. of display, such as button and
Menu bar etc..
But, can there is certain problem in aforesaid way, such as in actual applications: when interface control quantity is a lot,
Ergodic process will expend long time, thus reduces response speed.
Summary of the invention
In view of this, the invention provides the touch message responding method on a kind of mobile terminal and device, it is possible to accelerate
Response speed.
In order to achieve the above object, the technical scheme is that and be achieved in that:
A kind of touch message responding method on mobile terminal, including:
A, when receiving the touch message for arbitrary application interface, obtain this application interface corresponding each interface control
The hierarchical structure of part, wherein, for adjacent two-layer, each interface control in next layer is and belongs in last layer
The child control of an interface control;
B, from the beginning of ground floor or the second layer, for each interface control therein, be handled as follows respectively:
B1, determine whether this interface control meets following two condition successively: this interface control is visible, described touch disappears
Relation between coordinate position and the coordinate position of this interface control that breath is corresponding meets predetermined requirement;Once do not meet and appoint
One condition, then terminate the process to this interface control;If two all meet, then perform step b2;
B2, determine whether there is next straton control of this interface control, if it is, for as next straton control
Each interface control of part, respectively repeated execution of steps b1, otherwise, when this interface control possesses responding ability, by
Described touch message is responded by this interface control.
A kind of touch message response device on mobile terminal, including:
First processing module, for when receiving the touch message for arbitrary application interface, obtains this application interface
The hierarchical structure of corresponding each interface control, and it is sent to the second processing module;Wherein, for adjacent two-layer, under
Each interface control in one layer is the child control of the interface control belonged in last layer;
Described second processing module, for from the beginning of ground floor or the second layer, for each interface control therein, point
Do not carry out the first predetermined process, including: determine whether this interface control meets following two condition successively: this interface is controlled
Relation between part is visible, described touch message is corresponding coordinate position and the coordinate position of this interface control meets predetermined
Requirement;Once do not meet any one condition, then terminate the process to this interface control;If two all meet, then hold
Row the second predetermined process;Described second predetermined process comprises determining whether to exist next straton control of this interface control,
If it is, for each interface control as next straton control, repeat described first predetermined process respectively,
Otherwise, when this interface control possesses responding ability, this interface control described touch message is responded.
Visible, use scheme of the present invention, when receiving the touch message for a certain application interface, according to this
The hierarchical structure of each interface control that application interface is corresponding, based on observability and position etc., uses the most deep mode,
Screening each interface control, some interface control in the most a certain layer is undesirable, then this interface is controlled
Each child control of part subordinate is also no need for screening again;Thus compared to each interface control being carried out by prior art time
The mode of the property gone through screening, hence it is evident that accelerate breakneck acceleration, and then accelerate the response speed touching message.
Accompanying drawing explanation
Fig. 1 is the flow chart of the touch message responding method embodiment on mobile terminal of the present invention.
Fig. 2 is the hierarchical structure schematic diagram of each interface control of the present invention.
Fig. 3 is the present invention each interface control arrangement position view in interface.
Fig. 4 is the composition structural representation touching message response device embodiment on mobile terminal of the present invention.
Detailed description of the invention
For problems of the prior art, the present invention proposes the touch message response scheme on a kind of mobile terminal,
Response speed etc. can be accelerated.
In order to make technical scheme clearer, clear, develop simultaneously embodiment referring to the drawings, to the present invention
Described scheme is described in further detail.
Fig. 1 is the flow chart of the touch message responding method embodiment on mobile terminal of the present invention.As it is shown in figure 1, bag
Include following steps 11~14.
Step 11: when receiving the touch message for arbitrary application interface, obtain all circles that this application interface is corresponding
The hierarchical structure of face control, wherein, for adjacent two-layer, each interface control in next layer is and belongs to one
The child control of an interface control in Ceng.
In actual applications, designer when editor/design application, can by each interface control relevant for this application according to
Hierarchical relationship recorded in extensible markup language (XML, Extensible Markup Language) file, the most just
Being to say, in described XML file, record has the hierarchical relationship of each interface control that this application interface is corresponding, typically for
Adjacent two-layer, each interface control in next layer is the child control of the interface control belonged in last layer.
It addition, XML file also can record further: the attribute information of each interface control, including: this interface
Control is the most visible, the coordinate position of this interface control, and whether this interface control possesses responding ability etc..
How generating corresponding XML file is prior art.
Follow-up, the level of each interface control corresponding to this application interface by XML file is resolved, can be obtained
Structure and the attribute information of each interface control, and can be saved in internal memory.
Fig. 2 is the hierarchical structure schematic diagram of each interface control of the present invention.As illustrated in fig. 2, it is assumed that include three types altogether
Interface control, be respectively control the interface control of (control) type, picture (picture) type interface control
Part and the interface control of button (button) type;Wherein, the interface control of control type and picture type
Be filiation between interface control, i.e. the son of the interface control that interface control is control type of picture type
Control, equally, is filiation, i.e. button between interface control and the interface control of button type of picture type
The interface control of type is the child control of the interface control of picture type.
Fig. 3 is the present invention each interface control arrangement position view in interface.As it is shown on figure 3, each interface control
Between filiation as shown in Figure 2.
Step 12: from the beginning of ground floor or the second layer, for each interface control therein, respectively according to step 13~
Shown in 14, mode processes.
Step 13: determine whether this interface control meets following two condition successively: this interface control is visible, touch disappears
Relation between coordinate position and the coordinate position of this interface control that breath is corresponding meets predetermined requirement;Once do not meet and appoint
One condition, then terminate the process to this interface control;If two all meet, then perform step 14.
It is preferred that the relation touched between coordinate position and the coordinate position of this interface control that message is corresponding meets predetermined
Requirement refers to: within touching the coordinate range that coordinate position corresponding to message is positioned at this interface control.
Step 14: determine whether there is next straton control of this interface control, if it is, for as next layer
Each interface control of child control, respectively repeated execution of steps 13, otherwise, when this interface control possesses responding ability,
Responded touching message by this interface control.
For the control of each bed boundary, the number of the interface control in ground floor is usually one, and is visible,
The interface control of control type as shown in Figure 3.In actual applications, generally from next layer of this layer start into
Row filter, typically at least can include two interface controls, interface control as shown in Figure 3 in next layer described
Picture1, picture2 and picture3.Certainly, in theory, it is also possible to proceed by screening from ground floor.
If it addition, certain interface control is sightless, then this interface control is to need not response touch in theory
Message, therefore can be fallen by reduction, it not carried out subsequent treatment.Such as, the interface control shown in Fig. 3
Picture1 is sightless, then the interface control of this interface control and subordinate thereof can be fallen by reduction.
If further, touch outside the coordinate range that coordinate position corresponding to message is positioned at a certain interface control, then should
Interface control touches message also without response, and meanwhile, the interface control of this interface control subordinate touches also without response
Touch message, therefore can be fallen by reduction.Such as, the coordinate position touching message is positioned at the interface control shown in Fig. 3
Within the coordinate range of picture1, then the interface control of the interface control picture3 shown in Fig. 3 and subordinate thereof is i.e.
Can be fallen by reduction.
According to the level of XML layout file, profound interface control render on the interface control of shallow hierarchy,
Therefore the order of message response needs the rendering order contrast with interface control, the interface control that preferential detection is profound
The part response to message, i.e. uses depth-priority-searching method.If one touches message by the interface control of a certain profound level
Respond, then as a rule this touch message avoids the need for being responded by other interface control again.
To sum up, as a example by the interface control picture2 shown in Fig. 3, scheme of the present invention is described further.
Assume that interface control button2 is visible, and touch coordinate position corresponding to message and be positioned at the coordinate of interface control button2
Within the scope of, and interface control button2 possesses responding ability.
Implement flow process as follows:
Determine that interface control picture2 is the most visible;
Determine that result is yes, further determine that whether the coordinate position touching message corresponding is positioned at interface control picture2
Coordinate range within;
Determine that result is yes, further determine that whether interface control picture2 exists child control;
Determine that result is yes, there is child control button2, further determine that interface control button2 is the most visible;
Determine that result is yes, further determine that whether the coordinate position touching message corresponding is positioned at interface control button2
Coordinate range within;
Determine that result is yes, further determine that whether interface control button2 exists child control;
Determine that result is no, further determine that whether interface control button2 possesses responding ability;
Determine that result is yes, interface control button2 respond touching message, now, even if interface control
Picture2 also possesses responding ability, and interface control picture2 is without responding touch message again.
It addition, be also possible to there will be situations below in actual applications:
If interface control button2 does not possess responding ability, and interface control picture2 possesses responding ability, then
Also can be responded touching message by interface control picture2;
If touched outside the coordinate range that coordinate position corresponding to message is positioned at interface control button2, but it is positioned at interface
Within the coordinate range of control picture2, and interface control picture2 possesses responding ability, then can be controlled by interface
Part picture2 responds, if interface control picture2 does not the most possess responding ability, then then touching message
Can not respond touching message;
If interface control picture2 farther includes a child control button2 ', and button2 is unsatisfactory for response and wants
Ask, it may be assumed that between this interface control is visible, touch message is corresponding coordinate position and the coordinate position of this interface control
Relation meets predetermined requirement, and this interface control possesses responding ability, but interface control button2 ' meets response and wants
Ask, then can be responded, now, even if interface control picture2 is also touching message by interface control button2 '
Possessing responding ability, interface control picture2 is without responding touch message again;
Other possible situation repeats the most one by one, and in a word, the interface control of preferential detection profound level is to touching message
Response.
Based on above-mentioned introduction, Fig. 4 is the composition structure touching message response device embodiment on mobile terminal of the present invention
Schematic diagram.As shown in Figure 4, including:
First processing module, for when receiving the touch message for arbitrary application interface, obtains this application interface
The hierarchical structure of corresponding each interface control, and it is sent to the second processing module;Wherein, for adjacent two-layer, under
Each interface control in one layer is the child control of the interface control belonged in last layer;
Second processing module, for from the beginning of ground floor or the second layer, for each interface control therein, enters respectively
Row the first predetermined process, including: determine whether this interface control meets following two condition successively: this interface control can
See, relation between coordinate position and the coordinate position of this interface control that described touch message is corresponding meets predetermined requirement;
Once do not meet any one condition, then terminate the process to this interface control;If two all meet, then perform second
Predetermined process;Described second predetermined process comprises determining whether to exist next straton control of this interface control, if
It is, then for each interface control as next straton control, to repeat described first predetermined process respectively, no
Then, when this interface control possesses responding ability, this interface control described touch message is responded.
Wherein,
First processing module can be further used for, and obtains the XML file that this application interface previously generated is corresponding,
In XML file, record has the hierarchical relationship of each interface control that this application interface is corresponding, by carrying out XML file
Resolve, obtain the hierarchical structure of each interface control corresponding to this application interface.
It addition,
XML file also can record further: the attribute information of each interface control;
The attribute information of each interface control includes: this interface control is the most visible, the coordinate position of this interface control,
And whether this interface control possesses responding ability;
Correspondingly, the first processing module can be further used for, and obtains, resolving, each interface control that this application interface is corresponding
While the hierarchical structure of part, obtain the attribute information of each interface control, and together with each interface corresponding to this application interface
The hierarchical structure of control sends jointly to the second processing module.
Specifically,
Second processing module determine touch coordinate position corresponding to message whether be positioned at this interface control coordinate range it
In, if it is, determine the relation character touched between coordinate position and the coordinate position of this interface control that message is corresponding
Close pre-provisioning request.
The specific works flow process of Fig. 4 shown device embodiment refer to the respective description in preceding method embodiment, herein
Repeat no more.
In sum, these are only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.
All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included in this
Within the protection domain of invention.
Claims (8)
1. the touch message responding method on a mobile terminal, it is characterised in that including:
A, when receiving the touch message for arbitrary application interface, obtain this application interface corresponding each interface control
The hierarchical structure of part, wherein, for adjacent two-layer, each interface control in next layer respectively belongs to last layer
In the child control of an interface control;
B, from the beginning of ground floor or the second layer, for each interface control therein, be handled as follows respectively:
B1, determine whether this interface control meets following two condition successively: this interface control is visible, described touch disappears
Relation between coordinate position and the coordinate position of this interface control that breath is corresponding meets predetermined requirement;Once do not meet and appoint
One condition, then terminate the process to this interface control;If two all meet, then perform step b2;
B2, determine whether there is next straton control of this interface control, if it is, for as next straton control
Each interface control of part, respectively repeated execution of steps b1, otherwise, when this interface control possesses responding ability, by
Described touch message is responded by this interface control.
Method the most according to claim 1, it is characterised in that
The method farther includes: previously generate the expandable mark language XML file that this application interface is corresponding, institute
State record in XML file and have the hierarchical relationship of each interface control that this application interface is corresponding;
By described XML file is resolved, obtain the hierarchical structure of each interface control corresponding to this application interface.
Method the most according to claim 2, it is characterised in that
In described XML file, record has further: the attribute information of each interface control;
The attribute information of each interface control includes: this interface control is the most visible, the coordinate position of this interface control,
And whether this interface control possesses responding ability;
While the hierarchical structure of each interface control that this application interface of described acquisition is corresponding, farther include: obtain each
The attribute information of interface control.
Method the most according to claim 1, it is characterised in that
Relation between coordinate position and the coordinate position of this interface control that described touch message is corresponding meets predetermined requirement
Be positioned at the coordinate range of this interface control including the coordinate position that: described touch message is corresponding within.
5. the touch message response device on a mobile terminal, it is characterised in that including:
First processing module, for when receiving the touch message for arbitrary application interface, obtains this application interface
The hierarchical structure of corresponding each interface control, and it is sent to the second processing module;Wherein, for adjacent two-layer, under
Each interface control in one layer respectively belongs to the child control of an interface control in last layer;
Described second processing module, for from the beginning of ground floor or the second layer, for each interface control therein, point
Do not carry out the first predetermined process, including: determine whether this interface control meets following two condition successively: this interface is controlled
Relation between part is visible, described touch message is corresponding coordinate position and the coordinate position of this interface control meets predetermined
Requirement;Once do not meet any one condition, then terminate the process to this interface control;If two all meet, then hold
Row the second predetermined process;Described second predetermined process comprises determining whether to exist next straton control of this interface control,
If it is, for each interface control as next straton control, repeat described first predetermined process respectively,
Otherwise, when this interface control possesses responding ability, this interface control described touch message is responded.
Device the most according to claim 5, it is characterised in that
Described first processing module is further used for, and obtains the extensible markup language that this application interface previously generated is corresponding
Speech XML file, in described XML file, record has the hierarchical relationship of each interface control that this application interface is corresponding;Logical
Cross and described XML file is resolved, obtain the hierarchical structure of each interface control corresponding to this application interface.
Device the most according to claim 6, it is characterised in that
In described XML file, record has further: the attribute information of each interface control;
The attribute information of each interface control includes: this interface control is the most visible, the coordinate position of this interface control,
And whether this interface control possesses responding ability;
Described first processing module is further used for, and is resolving the level obtaining each interface control corresponding to this application interface
While structure, obtain the attribute information of each interface control, and together with the layer of each interface control corresponding to this application interface
Aggregated(particle) structure sends jointly to described second processing module.
Device the most according to claim 5, it is characterised in that
Described second processing module determines whether coordinate position corresponding to described touch message is positioned at the coordinate of this interface control
Within the scope of, if it is, determine coordinate position corresponding to described touch message and this interface control coordinate position it
Between relation meet predetermined requirement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310638445.8A CN103677518B (en) | 2013-12-02 | 2013-12-02 | Touch message responding method on a kind of mobile terminal and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310638445.8A CN103677518B (en) | 2013-12-02 | 2013-12-02 | Touch message responding method on a kind of mobile terminal and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103677518A CN103677518A (en) | 2014-03-26 |
CN103677518B true CN103677518B (en) | 2016-08-17 |
Family
ID=50315270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310638445.8A Active CN103677518B (en) | 2013-12-02 | 2013-12-02 | Touch message responding method on a kind of mobile terminal and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103677518B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399186B (en) * | 2018-04-24 | 2022-08-26 | 阿里巴巴集团控股有限公司 | Message processing method and device, electronic equipment and computer readable storage medium |
CN109725959A (en) * | 2018-05-08 | 2019-05-07 | 平安普惠企业管理有限公司 | Response method, display equipment and the computer readable storage medium of page control |
CN109358801A (en) * | 2018-09-27 | 2019-02-19 | 武汉华中时讯科技有限责任公司 | Detect device, method and the storage medium of multi-level view element touch event |
CN111208929B (en) * | 2020-01-03 | 2021-11-02 | 广州虎牙科技有限公司 | Response method, device and equipment of multi-level interface and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5923328A (en) * | 1996-08-07 | 1999-07-13 | Microsoft Corporation | Method and system for displaying a hierarchical sub-tree by selection of a user interface element in a sub-tree bar control |
CN101146281A (en) * | 2007-10-24 | 2008-03-19 | 中山大学 | A GUI creation model for mobile terminal |
CN101266544A (en) * | 2008-03-12 | 2008-09-17 | 浪潮集团山东通用软件有限公司 | Agile setting human-machine interactive interface accomplishing method |
-
2013
- 2013-12-02 CN CN201310638445.8A patent/CN103677518B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5923328A (en) * | 1996-08-07 | 1999-07-13 | Microsoft Corporation | Method and system for displaying a hierarchical sub-tree by selection of a user interface element in a sub-tree bar control |
CN101146281A (en) * | 2007-10-24 | 2008-03-19 | 中山大学 | A GUI creation model for mobile terminal |
CN101266544A (en) * | 2008-03-12 | 2008-09-17 | 浪潮集团山东通用软件有限公司 | Agile setting human-machine interactive interface accomplishing method |
Also Published As
Publication number | Publication date |
---|---|
CN103677518A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10572647B2 (en) | Touchscreen unlocking method and apparatus | |
US9152529B2 (en) | Systems and methods for dynamically altering a user interface based on user interface actions | |
CN103677518B (en) | Touch message responding method on a kind of mobile terminal and device | |
CN105630939B (en) | A kind of general painting canvas input interface design method and device | |
TW201525776A (en) | Invocation control over keyboard user interface | |
CN104182068A (en) | Error touch identifying method and device | |
CN103902258A (en) | Method and device for displaying self-defined menu in webpage | |
JP6169620B2 (en) | Language independent probabilistic content matching | |
CN103970427B (en) | The method for refreshing and device of Webpage | |
CN104850319A (en) | Method and device for dynamically adjusting icon on touch screen | |
CN108475219A (en) | Hierarchical Location events dispatcher | |
CN110442267A (en) | Touch operation response method, device, mobile terminal and storage medium | |
CN103164130B (en) | Electronic equipment and its screen locking control method | |
TWI610220B (en) | Apparatus and method for automatically controlling display screen density | |
WO2011029375A1 (en) | Method and apparatus for managing buttons on taskbar | |
CN103389876A (en) | Function switching method based on touch display equipment and touch display equipment | |
CN107450811A (en) | Touch area amplification display method and system | |
Jiang et al. | ReverseORC: Reverse engineering of resizable user interface layouts with or-constraints | |
CN110110102B (en) | Thinking guide picture slide playing method and device | |
CN109669589B (en) | Document editing method and device | |
CN104142754A (en) | Key module and signal generating method thereof | |
JP6225994B2 (en) | Information input device, control method, and program | |
CN107256124B (en) | Electronic whiteboard touch control method and device | |
CN106126099B (en) | Information processing method and electronic equipment | |
CN105630383B (en) | A kind of method and system promoting attention rate in human-computer interaction process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |