CN103677518A - Method and device for responding to touch messages on mobile terminal - Google Patents

Method and device for responding to touch messages on mobile terminal Download PDF

Info

Publication number
CN103677518A
CN103677518A CN201310638445.8A CN201310638445A CN103677518A CN 103677518 A CN103677518 A CN 103677518A CN 201310638445 A CN201310638445 A CN 201310638445A CN 103677518 A CN103677518 A CN 103677518A
Authority
CN
China
Prior art keywords
interface control
interface
control
coordinate position
touch 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.)
Granted
Application number
CN201310638445.8A
Other languages
Chinese (zh)
Other versions
CN103677518B (en
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.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software 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 Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201310638445.8A priority Critical patent/CN103677518B/en
Publication of CN103677518A publication Critical patent/CN103677518A/en
Application granted granted Critical
Publication of CN103677518B publication Critical patent/CN103677518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for responding to touch messages on a mobile terminal. The method includes when a touch message aiming at any application interface is received, acquiring hierarchical structures of all interface controls corresponding to the application interface; starting from a first layer or a second layer and aiming at each interface control, respectively performing following processing: b1, sequentially determining whether or not the interface control meets the following two conditions including that the interface control is visible and a relationship between coordinate position corresponding to the touch message and coordinate position of the interface control meets preset requirements; once one condition is not met, stopping processing; if the two conditions are met, executing b2; b2, determining whether a next-layer sub-control of the interface control exists or not, if yes, aiming at each interface control of the next-layer sub-control, respectively repeating to execute b1, and if not, when the interface control has responding capability, responding to the touch message by the interface control.

Description

Touch message responding method and device on a kind of mobile terminal
Technical field
The present invention relates to mobile terminal technology, particularly touch message responding method and the device on a kind of mobile terminal.
Background technology
Along with the development of technology, program of mobile terminal application becomes the application platform of main flow gradually, and existing mobile terminal adopts touch-screen more, therefore, to touching message, responds the principal feature that becomes mobile terminal.Described touch message, refers to the message producing by touch screen, comprise touch, slip etc.For user, response speed can be brought better experience etc. faster.
Current, for the response mode of message, be generally: when receiving arbitrary message, relevant whole interface controls are carried out whether can responding to the ergodicity screening of this message, and by the interface control screening, this message is responded.Described interface control, refers to the manipulable region showing on application interface and shows unit etc., as button and menu bar etc.
But can there is certain problem in actual applications in aforesaid way, as: when interface control quantity is a lot, ergodic process will expend long time, thereby has reduced response speed.
Summary of the invention
In view of this, the invention provides touch message responding method and device on a kind of mobile terminal, can accelerate response speed.
In order to achieve the above object, technical scheme of the present invention is achieved in that
A touch message responding method on mobile terminal, comprising:
A, when receive for arbitrary application interface touch message time, obtain the hierarchical structure of each interface control that this application interface is corresponding, wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer;
B, from ground floor or the second layer, each interface control for wherein, is handled as follows respectively:
B1, determine whether this interface control meets following two conditions successively: the coordinate position that visible, the described touch message of this interface control is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, perform step b2;
B2, determine whether to exist next straton control of this interface control, if so, for each interface control as next straton control, difference repeated execution of steps b1, otherwise, when this interface control possesses responding ability, by this interface control, described touch message is responded.
A touch message response device on mobile terminal, comprising:
The first processing module, during for touch message when receiving for arbitrary application interface, obtains the hierarchical structure of each interface control that this application interface is corresponding, and sends to the second processing module; Wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer;
Described the second processing module, for from ground floor or the second layer, for each interface control wherein, carry out respectively the first predetermined process, comprising: determine successively whether this interface control meets following two conditions: the coordinate position that visible, the described touch message of this interface control is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, carry out the second predetermined process; Described the second predetermined process comprises: next the straton control that determines whether to exist this interface control, if, for each interface control as next straton control, repeat respectively described the first predetermined process, otherwise, when this interface control possesses responding ability, by this interface control, described touch message is responded.
Visible, adopt scheme of the present invention, when receive for a certain application interface touch message time, according to the hierarchical structure of each interface control corresponding to this application interface, based on observability and position etc., adopt successively deep mode, each interface control is screened, once the some interface controls in certain one deck are undesirable, each child control of this interface control subordinate is also just without screening again so; Thereby than the mode of each interface control being carried out to ergodicity screening in prior art, obviously accelerated breakneck acceleration, and then accelerated to touch the response speed of message.
Accompanying drawing explanation
Fig. 1 is the process flow diagram 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 arrange position view of each interface control of the present invention in interface.
Fig. 4 is the composition structural representation of the touch message response device embodiment on mobile terminal of the present invention.
Embodiment
For problems of the prior art, the touch message response scheme on a kind of mobile terminal is proposed in the present invention, can accelerate response speed etc.
For make technical scheme of the present invention clearer, understand, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
Fig. 1 is the process flow diagram of the touch message responding method embodiment on mobile terminal of the present invention.As shown in Figure 1, comprise the following steps 11~14.
Step 11: when receive for arbitrary application interface touch message time, obtain the hierarchical structure of each interface control that this application interface is corresponding, wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer.
In actual applications, designer is when editor/design application, each relevant interface control of this application can be recorded to extend markup language (XML according to hierarchical relationship, Extensible Markup Language) in file, that is to say, in described XML file, record the hierarchical relationship of each interface control that this application interface is corresponding, conventionally, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer.
In addition, in XML file, also can further record: the attribute information of each interface control, comprising: whether this interface control is 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, can, by XML file is resolved, obtain the hierarchical structure of each interface control that this application interface is corresponding 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 shown in Figure 2, suppose to comprise altogether the interface control of three types, be respectively the interface control of the interface control of control (control) type, the interface control of picture (picture) type and button (button) type; Wherein, it between the interface control of the interface control of control type and picture type, is set membership, the interface control that is picture type is the child control of the interface control of control type, equally, between the interface control of the interface control of picture type and button type, be set membership, the interface control of button type is the child control of the interface control of picture type.
Fig. 3 is the arrange position view of each interface control of the present invention in interface.As shown in Figure 3, the set membership between each interface control as shown in Figure 2.
Step 12: from ground floor or the second layer, for each interface control wherein, process according to mode shown in step 13~14 respectively.
Step 13: determine successively whether this interface control meets following two conditions: the coordinate position that this interface control is visible, touch message is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, perform step 14.
Preferably, touching relation between the coordinate position of coordinate position corresponding to message and this interface control meets predetermined requirement and refers to: within coordinate position corresponding to touch message is positioned at the coordinate range of this interface control.
Step 14: determine whether to exist next straton control of this interface control, if so, for each interface control as next straton control, difference repeated execution of steps 13, otherwise, when this interface control possesses responding ability, by this interface control, to touching message, responded.
For each bed interface control, the number of the interface control in ground floor is generally one, and is visible, as shown in Figure 3 the interface control of control type.In actual applications, from this layer, one deck starts to screen conventionally, in described lower one deck, conventionally to I haven't seen you for ages, comprises two interface controls, as shown in Figure 3 interface control picture1, picture2 and picture3.Certainly, in theory, also can start to screen from ground floor.
In addition, if certain interface control is sightless, this interface control is not need response to touch message so in theory, therefore can be reduced, and it is not carried out to subsequent treatment.Such as, the interface control picture1 shown in Fig. 3 is sightless, this interface control and subordinate's thereof interface control can be reduced so.
Have again, if touch coordinate position corresponding to message, be positioned at outside the coordinate range of a certain interface control, this interface control does not need response to touch message yet so, simultaneously, this interface control subordinate's interface control does not need response to touch message yet, therefore can be reduced.Such as, within the coordinate position of touch message is positioned at the coordinate range of the interface control picture1 shown in Fig. 3, the interface control picture3 shown in Fig. 3 and subordinate's thereof interface control can be reduced so.
According to the level of XML topology file, playing up on the interface control of shallow hierarchy of profound interface control, therefore the order of message response need to be sequentially just in time contrary with playing up of interface control, preferentially surveys the response of profound interface control to message, uses depth-first algorithm.If one touches message and responded by the interface control of a certain profound level, so as a rule this touch message just does not need by other interface control, to have been responded again.
To sum up, the interface control picture2 shown in Fig. 3 of take is example, and scheme of the present invention is described further.Suppose that interface control button2 is visible, and touch within coordinate position corresponding to message be positioned at the coordinate range of interface control button2, and interface control button2 possesses responding ability.
Specific implementation flow process is as follows:
Determine that whether interface control picture2 is visible;
Determine that result is yes, within further determining whether touch coordinate position corresponding to message is positioned at the coordinate range of interface control picture2;
Determine that result is yes, further determine whether interface control picture2 exists child control;
Determine that result is yes, have child control button2, further determine that whether interface control button2 is visible;
Determine that result is yes, within further determining whether touch coordinate position corresponding to message is positioned at the coordinate range of interface control button2;
Determine that result is yes, further determine whether interface control button2 exists child control;
Determine that result is no, further determine whether interface control button2 possesses responding ability;
Determine that result is yes, by interface control button2, to touching message, responded, now, even if interface control picture2 also possesses responding ability, interface control picture2 is also without responding touching message again.
In addition, also may there is following situation in actual applications:
If interface control button2 does not possess responding ability, and interface control picture2 possesses responding ability, so also can to touching message, be responded by interface control picture2;
If touching coordinate position corresponding to message is positioned at outside the coordinate range of interface control button2, but within being positioned at the coordinate range of interface control picture2, and interface control picture2 possesses responding ability, can to touching message, be responded by interface control picture2 so, if interface control picture2 does not possess responding ability yet, so can to touching message, not respond;
If interface control picture2 further comprises a child control button2 ', and button2 does not meet response requirement, that is: this interface control is visible, touch coordinate position corresponding to message and the relation between the coordinate position of this interface control and meet predetermined requirement, and this interface control possesses responding ability, but interface control button2 ' meets response requirement, can to touching message, be responded by interface control button2 ', now, even if interface control picture2 also possesses responding ability, interface control picture2 is also without responding touching message again,
Other possible situation repeats no longer one by one, in a word, preferentially surveys profound interface control to touching the response of message.
Based on above-mentioned introduction, Fig. 4 is the composition structural representation of the touch message response device embodiment on mobile terminal of the present invention.As shown in Figure 4, comprising:
The first processing module, during for touch message when receiving for arbitrary application interface, obtains the hierarchical structure of each interface control that this application interface is corresponding, and sends to the second processing module; Wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer;
The second processing module, for from ground floor or the second layer, for each interface control wherein, carry out respectively the first predetermined process, comprising: determine successively whether this interface control meets following two conditions: the coordinate position that visible, the described touch message of this interface control is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, carry out the second predetermined process; Described the second predetermined process comprises: next the straton control that determines whether to exist this interface control, if, for each interface control as next straton control, repeat respectively described the first predetermined process, otherwise, when this interface control possesses responding ability, by this interface control, described touch message is responded.
Wherein,
The first processing module also can be further used for, obtain XML file corresponding to this application interface generating in advance, in XML file, record the hierarchical relationship of each interface control that this application interface is corresponding, by XML file is resolved, obtain the hierarchical structure of each interface control that this application interface is corresponding.
In addition,
In XML file, also can further record: the attribute information of each interface control;
The attribute information of each interface control comprises: whether this interface control is visible, the coordinate position of this interface control, and whether this interface control possesses responding ability;
Correspondingly, the first processing module also can be further used for, when parsing obtains the hierarchical structure of each interface control that this application interface is corresponding, obtain the attribute information of each interface control, and send to the second processing module together with the hierarchical structure of each interface control corresponding to this application interface.
Particularly,
The second processing module determine to touch within whether coordinate position corresponding to message be positioned at the coordinate range of this interface control, if so, determines to touch coordinate position corresponding to message and the relation between the coordinate position of this interface control meets predetermined requirement.
The specific works flow process of Fig. 4 shown device embodiment please refer to the respective description in preceding method embodiment, repeats no more herein.
In sum, these are only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. the touch message responding method on mobile terminal, is characterized in that, comprising:
A, when receive for arbitrary application interface touch message time, obtain the hierarchical structure of each interface control that this application interface is corresponding, wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer;
B, from ground floor or the second layer, each interface control for wherein, is handled as follows respectively:
B1, determine whether this interface control meets following two conditions successively: the coordinate position that visible, the described touch message of this interface control is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, perform step b2;
B2, determine whether to exist next straton control of this interface control, if so, for each interface control as next straton control, difference repeated execution of steps b1, otherwise, when this interface control possesses responding ability, by this interface control, described touch message is responded.
2. method according to claim 1, is characterized in that,
The method further comprises: generate in advance the expandable mark language XML file that this application interface is corresponding, record the hierarchical relationship of each interface control that this application interface is corresponding in described XML file;
By described XML file is resolved, obtain the hierarchical structure of each interface control that this application interface is corresponding.
3. method according to claim 2, is characterized in that,
In described XML file, further record: the attribute information of each interface control;
The attribute information of each interface control comprises: whether this interface control is visible, the coordinate position of this interface control, and whether this interface control possesses responding ability;
In the time of the described hierarchical structure of obtaining each interface control that this application interface is corresponding, further comprise: the attribute information that obtains each interface control.
4. method according to claim 1, is characterized in that,
Relation between the coordinate position of coordinate position corresponding to described touch message and this interface control meets predetermined requirement and comprises: within coordinate position corresponding to described touch message is positioned at the coordinate range of this interface control.
5. the touch message response device on mobile terminal, is characterized in that, comprising:
The first processing module, during for touch message when receiving for arbitrary application interface, obtains the hierarchical structure of each interface control that this application interface is corresponding, and sends to the second processing module; Wherein, for adjacent two-layer, each interface control in lower one deck is the child control that belongs to an interface control in last layer;
Described the second processing module, for from ground floor or the second layer, for each interface control wherein, carry out respectively the first predetermined process, comprising: determine successively whether this interface control meets following two conditions: the coordinate position that visible, the described touch message of this interface control is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement; Once not meet any condition, finish the processing to this interface control; If two all meet, carry out the second predetermined process; Described the second predetermined process comprises: next the straton control that determines whether to exist this interface control, if, for each interface control as next straton control, repeat respectively described the first predetermined process, otherwise, when this interface control possesses responding ability, by this interface control, described touch message is responded.
6. device according to claim 5, is characterized in that,
Described the first processing module is further used for, and obtains expandable mark language XML file corresponding to this application interface generating in advance, records the hierarchical relationship of each interface control that this application interface is corresponding in described XML file; By described XML file is resolved, obtain the hierarchical structure of each interface control that this application interface is corresponding.
7. device according to claim 6, is characterized in that,
In described XML file, further record: the attribute information of each interface control;
The attribute information of each interface control comprises: whether this interface control is visible, the coordinate position of this interface control, and whether this interface control possesses responding ability;
Described the first processing module is further used for, when parsing obtains the hierarchical structure of each interface control that this application interface is corresponding, obtain the attribute information of each interface control, and send to described the second processing module together with the hierarchical structure of each interface control corresponding to this application interface.
8. device according to claim 5, is characterized in that,
Within described the second processing module determines whether coordinate position corresponding to described touch message is positioned at the coordinate range of this interface control, if so, determine that coordinate position that described touch message is corresponding and the relation between the coordinate position of this interface control meet predetermined requirement.
CN201310638445.8A 2013-12-02 2013-12-02 Touch message responding method on a kind of mobile terminal and device Active CN103677518B (en)

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 true CN103677518A (en) 2014-03-26
CN103677518B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358801A (en) * 2018-09-27 2019-02-19 武汉华中时讯科技有限责任公司 Detect device, method and the storage medium of multi-level view element touch event
CN109725959A (en) * 2018-05-08 2019-05-07 平安普惠企业管理有限公司 Response method, display equipment and the computer readable storage medium of page control
CN110399186A (en) * 2018-04-24 2019-11-01 阿里巴巴集团控股有限公司 Message treatment method, device, electronic equipment and computer readable storage medium
CN111208929A (en) * 2020-01-03 2020-05-29 广州虎牙科技有限公司 Response method, device and equipment of multi-level interface and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399186A (en) * 2018-04-24 2019-11-01 阿里巴巴集团控股有限公司 Message treatment method, device, electronic equipment and computer readable storage medium
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
CN111208929A (en) * 2020-01-03 2020-05-29 广州虎牙科技有限公司 Response method, device and equipment of multi-level interface and storage medium
CN111208929B (en) * 2020-01-03 2021-11-02 广州虎牙科技有限公司 Response method, device and equipment of multi-level interface and storage medium

Also Published As

Publication number Publication date
CN103677518B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN108614722A (en) Application program preloads method, apparatus, storage medium and terminal
CN109542304B (en) Display content loading method, device, equipment and storage medium
CN107678918B (en) OSD heartbeat mechanism setting method and device of distributed file system
CN108958830A (en) Application program launching method, device, storage medium and terminal
CN103677518A (en) Method and device for responding to touch messages on mobile terminal
WO2017113732A1 (en) Layout method and system for user interface control, and control method and system therefor
CN107203595B (en) Method for dynamically generating web interface based on free form
CN101801482A (en) Modifying rates of action in a virtual universe
CN108829456A (en) Application program preloads method, apparatus, storage medium and terminal
CN104035683A (en) Split-screen multitask interaction method for communication terminal
US8860758B2 (en) Display control apparatus and method for displaying overlapping windows
WO2013173949A1 (en) Method and device for loading and unloading object hierarchically in three-dimensional virtual reality scene
CN109885305B (en) Method, device, equipment and storage medium for processing special topic pages
CN106775193A (en) A kind of Application Program Interface display methods and device
CN105183291A (en) Method and system for extracting information in display interface
CN104834457A (en) Method and apparatus for automatically adjusting touch screen keyboard
CN108762844A (en) Application program preloads method, apparatus, storage medium and terminal
TWI610220B (en) Apparatus and method for automatically controlling display screen density
CN107908561B (en) Virtual reality software performance test method and system
CN102455914A (en) Cross-platform GUI(Graphical User Interface) rapid prototyping development method based on browser extension
CN105607800A (en) Method and device for input display of terminal screen
CN106484424A (en) A kind of method and system obtaining the control being adapted to screen
CN103678349A (en) Method and device for filtering useless data
CN102147797A (en) Method and device for managing element files in content management system
KR20150143495A (en) Detection of pan and scaling during multi-finger touch interactions

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