CN113064544B - Touch screen gesture interaction method and device - Google Patents

Touch screen gesture interaction method and device Download PDF

Info

Publication number
CN113064544B
CN113064544B CN202110484486.0A CN202110484486A CN113064544B CN 113064544 B CN113064544 B CN 113064544B CN 202110484486 A CN202110484486 A CN 202110484486A CN 113064544 B CN113064544 B CN 113064544B
Authority
CN
China
Prior art keywords
gesture
touch
touch screen
control
page
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
Application number
CN202110484486.0A
Other languages
Chinese (zh)
Other versions
CN113064544A (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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110484486.0A priority Critical patent/CN113064544B/en
Publication of CN113064544A publication Critical patent/CN113064544A/en
Application granted granted Critical
Publication of CN113064544B publication Critical patent/CN113064544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The invention provides a touch screen gesture interaction method and device, wherein the method comprises the following steps: when the displayed page is a long list page, monitoring gestures input on the touch screen; if the input gesture is a double-finger control gesture, determining a current list item; identifying a control category of the gesture; when the control category is long press control, marking the current list, and storing the marked list item as a shortcut point in the favorite; when the control type is the sliding control, determining the sliding direction; when the sliding direction is upward sliding, searching a shortcut point with the serial number larger than that of the current list item in the favorite, and displaying the list item corresponding to the shortcut point by the touch screen; otherwise, searching a shortcut point with the sequence number smaller than that of the current list item in the favorite, and displaying the list item corresponding to the shortcut point by the touch screen. By the method, the list items in the long list page are marked according to the gestures on the touch screen, the marked list items can be quickly slid, and the interaction experience of a user and the intelligent terminal is improved.

Description

Touch screen gesture interaction method and device
Technical Field
The invention relates to the technical field of intelligent terminal control, in particular to a touch screen gesture interaction method and device.
Background
With the popularization of smart touch screen mobile phones, gesture operation has become one of the mainstream operation and interaction modes of mobile phones. For most applications running on a smart terminal, there will typically be one or more long list pages that can slide, such as: video listings pages for video applications, news listings pages for information applications, stock listings pages for stock software, and music listings pages for music applications. In these slidable long list pages, the user can view all list items by sliding up and down, i.e. a certain video in the video list page or a certain music in the music list page. A long list page usually contains multiple list items, but the list items of interest to the user are relatively few, and if the user wants to find the list items of interest on the long list page, the list needs to be slid many times, which is not friendly to the user's interaction experience.
Disclosure of Invention
In view of this, the present invention provides a touch screen gesture interaction method, by which a list item in a long list page may be marked according to a gesture input by a user on a touch screen, and a marked list item may be quickly slid according to the gesture of the user, so as to improve an interaction experience between the user and an intelligent terminal.
The invention also provides a touch screen gesture interaction device used for ensuring the realization and application of the method in practice.
A touch screen gesture interaction method comprises the following steps:
when the current displayed page of the intelligent terminal is detected to be a long list page, monitoring gestures input by a user on a touch screen each time; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
judging whether the gesture currently input on the touch screen by the user is a double-finger control gesture;
if the gesture input by the user on the touch screen is a double-finger control gesture, determining a current list item displayed in the long list page;
identifying the control type of the double-finger control gesture, wherein the control type is long-press control or sliding control;
when the control type of the double-finger control gesture is long-press control, marking the current list item based on the sequence number of the current list item in the long list page, and storing the marked list item as a shortcut point in a preset favorite;
when the control type of the double-finger control gesture is sliding control, determining the sliding direction of the double-finger control gesture, wherein the sliding direction is upward sliding or downward sliding;
when the sliding direction of the double-finger control gesture is upward sliding, searching a shortcut point with a serial number larger than that of the current list item in the favorite based on the serial number of the current list item, and sliding the long list page to enable the touch screen to display a list item corresponding to the currently searched shortcut point;
when the sliding direction of the double-finger control gesture is downward sliding, based on the serial number of the current list item, searching a shortcut point with the serial number smaller than the serial number of the current list item in the favorite, and sliding the long list page, so that the touch screen displays the list item corresponding to the currently searched shortcut point.
The above apparatus, optionally, further comprises:
acquiring all page controls in a currently displayed page of the intelligent terminal;
judging whether any page control exists in the page controls and is a vertical sliding control;
if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page;
and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
Optionally, the determining whether the gesture currently input by the user on the touch screen is a two-finger control gesture includes:
detecting whether the touch screen generates a touch instruction or not in real time by using an acquisition chip arranged in the intelligent terminal, and acquiring a touch point generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen;
judging whether the touch points on the touch screen are two touch points or not;
if the touch points generating the touch instruction on the touch screen are two touch points, determining that the gesture currently input on the touch screen by the user is a two-finger control gesture;
and if the touch points generating the touch instruction on the touch screen are not two touch points, determining that the gesture currently input on the touch screen by the user is not a two-finger control gesture.
Optionally, the identifying the control type of the two-finger control gesture includes:
when the gesture input by the user on the touch screen is determined to be a double-finger control gesture, starting a preset timer to time;
determining two touch points on the touch screen generating a touch instruction as a first touch point and a second touch point respectively;
recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point;
when the first touch point and the second touch point are detected to disappear, and the timing time of the timer exceeds the preset time, recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears;
calculating a first moving range of the first touch point based on the first initial coordinate and the first final coordinate;
calculating a second movement range of the second touch point based on the second initial coordinate and the second final coordinate;
judging whether the first moving range and the second moving range exceed a preset moving range or not;
when the first movement range and the second movement range do not exceed a preset movement range, determining the control type of the double-finger control gesture as long press control;
and when the first movement range and the second movement range exceed a preset movement range, determining that the control type of the double-finger control gesture is sliding control.
Optionally, the determining the sliding direction of the two-finger control gesture includes:
acquiring a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate and a second final longitudinal coordinate value in the second final coordinate;
judging whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value or not and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value or not;
if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is downward sliding;
if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is upward sliding.
A touch screen gesture interaction device, comprising:
the monitoring unit is used for monitoring the gesture input by the user on the touch screen each time when the current displayed page of the intelligent terminal is detected to be a long list page; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
the judging unit is used for judging whether the gesture currently input on the touch screen by the user is a two-finger control gesture;
a first determining unit, configured to determine a current list item displayed in the long list page if a gesture currently input by the user on the touch screen is a two-finger control gesture;
the recognition unit is used for recognizing the control type of the double-finger control gesture, and the control type is long-press control or sliding control;
the marking unit is used for marking the current list item based on the sequence number of the current list item in the long list page when the control type of the double-finger control gesture is long-press control, and storing the marked list item as a shortcut point in a preset favorite;
the second determining unit is used for determining the sliding direction of the double-finger control gesture when the control type of the double-finger control gesture is sliding control, and the sliding direction is upward sliding or downward sliding;
the first searching unit is used for searching a shortcut point with a serial number larger than that of the current list item in the favorite based on the serial number of the current list item when the sliding direction of the double-finger control gesture is upward sliding, and sliding the long list page to enable the touch screen to display the list item corresponding to the currently searched shortcut point;
and the second searching unit is used for searching a shortcut point with a sequence number smaller than the sequence number of the current list item in the favorite based on the sequence number of the current list item when the sliding direction of the double-finger control gesture is downward sliding, and sliding the long list page to enable the touch screen to display the list item corresponding to the currently searched shortcut point.
The above apparatus, optionally, further comprises:
the acquisition unit is used for acquiring all page controls in a currently displayed page of the intelligent terminal; judging whether any page control exists in the page controls and is a vertical sliding control; if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page; and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
The above apparatus, optionally, the determining unit includes:
the acquisition subunit is used for detecting whether the touch screen generates a touch instruction in real time by using an acquisition chip arranged in the intelligent terminal and acquiring a touch point generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen;
the first judgment subunit is used for judging whether the touch points on the touch screen are two touch points or not;
the first determining subunit is configured to determine that a gesture currently input on the touch screen by the user is a two-finger control gesture if the touch point on the touch screen where the touch instruction is generated is two touch points;
the second determining subunit is configured to determine that the gesture currently input by the user on the touch screen is not a two-finger control gesture if the touch point generating the touch instruction on the touch screen is not two touch points.
The above apparatus, optionally, the identification unit includes:
the starting sub-unit is used for starting a preset timer to time when the gesture input by the user on the touch screen is determined to be a double-finger control gesture;
the third determining subunit is used for respectively determining two touch points on the touch screen, which generate the touch instruction, as a first touch point and a second touch point;
the first recording subunit is used for recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point;
the second recording subunit is used for recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears when the first touch point and the second touch point disappear are detected and the timing time of the timer exceeds the preset time;
the first calculating subunit is configured to calculate a first moving range of the first touch point based on the first initial coordinate and the first final coordinate;
the second calculating subunit is configured to calculate a second moving range of the second touch point based on the second initial coordinate and the second final coordinate;
the second judging subunit is used for judging whether the first moving range and the second moving range exceed a preset moving range or not;
the fourth determining subunit is configured to determine that the control type of the two-finger control gesture is long press control when the first movement range and the second movement range do not exceed a preset movement range;
and the fifth determining subunit is configured to determine that the control type of the two-finger control gesture is sliding control when the first movement range and the second movement range exceed a preset movement range.
The above apparatus, optionally, the second determining unit includes:
an obtaining subunit, configured to obtain a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate, and a second final longitudinal coordinate value in the second final coordinate;
a third determining subunit, configured to determine whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value, and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a sixth determining subunit, configured to determine that the sliding direction of the two-finger control gesture is downward sliding if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a seventh determining subunit, configured to determine that the sliding direction of the two-finger control gesture is an upward sliding direction if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value.
A storage medium comprises stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the touch screen gesture interaction method.
An electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above touch screen gesture interaction method.
Compared with the prior art, the invention has the following advantages:
the invention provides a touch screen gesture interaction method, which comprises the following steps: when the current page displayed by the intelligent terminal is a long list page, monitoring a gesture input by a user on a touch screen; judging whether the currently input gesture is a double-finger control gesture; if so, determining the current list item displayed in the long list page; identifying the control type of the double-finger control gesture, wherein the control type is long-press control or sliding control; when the control category is long press control, marking the current list item based on the serial number of the current list item in the long list page, and storing the marked list item as a shortcut point in the favorite; when the control type is sliding control, determining the sliding direction of the double-finger control gesture, wherein the sliding direction is upward sliding or downward sliding; when the sliding direction is upward sliding, searching a shortcut point with the serial number larger than that of the current list item in the favorite, and sliding the long list page to enable the touch screen to display the list item corresponding to the shortcut point; and when the sliding direction is downward sliding, searching a shortcut point with the serial number smaller than that of the current list item in the favorite, and sliding the long list page to enable the touch screen to display the list item corresponding to the shortcut point. By applying the method provided by the invention, the list items in the long list page can be marked according to the gestures input by the user on the touch screen, and the marked list items can be quickly slid according to the gestures of the user, so that the interaction experience of the user and the intelligent terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of a touch screen gesture interaction method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method of a touch screen gesture interaction method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method of a touch screen gesture interaction method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another method of a touch screen gesture interaction method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an apparatus structure of a touch screen gesture interaction apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a touch screen gesture interaction method, which can be applied to a plurality of system platforms, wherein an execution main body of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in fig. 1 and specifically comprises the following steps:
s101: when the current page displayed by the intelligent terminal is detected to be a long list page, monitoring the gesture input by the user on the touch screen every time.
The long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen.
In the embodiment of the invention, the monitoring module is arranged in the intelligent terminal, and the state of the touch screen of the intelligent terminal is monitored through the monitoring module so as to determine whether the currently displayed page of the intelligent terminal is a long-list page.
It should be noted that the long list page may be a video list page for displaying each video to be played, an audio list page for displaying each audio to be played, or a file list page for displaying each file to be applied. The list items are independent contents in the long list page.
S102: and judging whether the gesture input by the user on the touch screen currently is a double-finger control gesture.
In the embodiment of the invention, the touch screen of the intelligent terminal can perform single-finger control and double-finger control.
S103: and if the gesture currently input on the touch screen by the user is a double-finger control gesture, determining the current list item displayed in the long list page.
In the embodiment of the present invention, if the user inputs a two-finger control gesture, it is characterized that the user may need to perform a related operation on the current list item of the long list page.
It should be noted that the list item at present refers to the list item currently in the middle position of the screen.
S104: identifying a control category of the two-finger control gesture.
The control type is long press control or sliding control, and if the control type is long press control, S105 is executed, and if the control type is sliding control, S106 to S108 are executed.
In the embodiment of the invention, a user can control the switching and marking of the list items in a control mode of long-time pressing or sliding on the touch screen.
S105: and when the control type of the double-finger control gesture is long-press control, marking the current list item based on the sequence number of the current list item in the long list page, and storing the marked list item as a shortcut point in a preset favorite.
In the embodiment of the invention, when a user uses a two-hand control gesture to perform long-time press control, the user is represented to be interested in the current list item, the sequence number of the current list item in the long list page is obtained, the current list item is marked according to the sequence number, and the marked list item is stored in the favorite as a shortcut point.
It should be noted that the favorites are virtual favorites for storing all marked list items, i.e., storing all shortcut points. The shortcut point is a shortcut label for marking a list item by long pressing a certain list item through a double-finger control gesture, the list item long pressed by the double fingers is just a shortcut point, and a user can quickly switch between a plurality of shortcut points through sliding of the double fingers. For example, if the user presses the 10 th piece of music with two fingers, the 10 th piece of music is a shortcut.
S106: and when the control type of the double-finger control gesture is sliding control, determining the sliding direction of the double-finger control gesture.
Wherein, the sliding direction is upward sliding or downward sliding, if the sliding direction is upward sliding, executing S107; if the sliding is downward, S108 is executed.
In the embodiment of the invention, a user can switch each list item in the long list page by sliding the touch screen. Under a common condition, a user slides the touch screen by using a single finger control gesture, and all list items in the long list page are sequentially switched according to the sequence number of each list item. Similarly, the user can perform the slide control when using the both-hand control gesture.
S107: when the sliding direction of the double-finger control gesture is upwards sliding, based on the serial number of the current list item, searching a shortcut point with the serial number larger than that of the current list item in the favorite, and sliding the long list page, so that the touch screen displays the list item corresponding to the currently searched shortcut point.
In the embodiment of the invention, if the user slides upwards by using the double-finger control gesture, the representation that the user wants to search the marked list item, namely, the shortcut point, traverses the favorites through the serial number of the current list item, and searches the shortcut point with the serial number larger than that of the current list item. After the shortcut point is found, the intelligent terminal automatically slides the long list page, so that the list item corresponding to the shortcut point is displayed on the touch screen.
Optionally, a plurality of shortcut points are stored in the favorite, and in the process of searching for a shortcut point according to the current list item, there may be a situation that the serial numbers of the plurality of shortcut points are greater than the serial number of the current list item, so in the searching process, only the shortcut point with the first serial number greater than the serial number of the current list item needs to be displayed as the currently searched shortcut point.
Further, after the shortcut point is found, the long list page is slid, so that the list item corresponding to the shortcut point is displayed in the middle of the touch screen.
S108: when the sliding direction of the double-finger control gesture is downward sliding, based on the serial number of the current list item, searching a shortcut point with the serial number smaller than the serial number of the current list item in the favorite, and sliding the long list page, so that the touch screen displays the list item corresponding to the currently searched shortcut point.
In the embodiment of the invention, if the user uses the two-finger control gesture to slide downwards, the characteristic that the user needs to search the list item marked before the current list item is represented. Therefore, the favorites are traversed through the serial number of the current list item, the shortcut point with the serial number smaller than the serial number of the current list item is searched, and the list item corresponding to the shortcut point is displayed.
It should be noted that, in the process of finding a shortcut point, only the found shortcut point with the first serial number smaller than the serial number of the current list item needs to be displayed as the currently found shortcut point.
In the touch screen gesture interaction method provided by the embodiment of the invention, when the current displayed page of the intelligent terminal is a long list page, the gesture input by a user on the touch screen needs to be monitored in real time. If the gesture currently input on the touch screen by the user is a double-finger control gesture, the current list item displayed in the long list page on the touch screen is needed. And simultaneously identifying the control type of the double-finger control gesture input by the user, namely judging whether the double-finger control gesture of the user is long-press control or sliding control. If the list item is controlled by long pressing, the list item is marked according to the serial number of the current list item, and the marked list item is stored in the favorite as a shortcut point; the favorites store a plurality of shortcut points, i.e., a plurality of marked list items. When a user needs to search any marked list item in the long list page, the touch screen is slid through the double-finger control gesture. When the sliding direction of the double-finger control gesture input by the user is upwards sliding, the representation that the user needs to search the marked list item with the sequence number behind the current list item is performed, the favorite is traversed, and the shortcut point with the first sequence number larger than the sequence number of the current list item is displayed in the touch screen. When the sliding direction of the double-finger control gesture input by the user slides downwards, the fact that the user needs to search a list item with a sequence number marked before the current list item is represented, the favorite is traversed, a shortcut point with the first sequence number smaller than the sequence number of the current list item is determined, a long list page is quickly slid, and the list item corresponding to the shortcut point is displayed in the middle of the touch screen.
Optionally, in the embodiment of the present invention, if the gesture input by the user on the current touch screen is not the two-finger control gesture, the corresponding control operation is executed according to the gesture currently input by the user.
Based on the method provided by the embodiment, the method can be applied to a video list page, and specifically comprises the following implementation processes:
when the intelligent terminal displays the video list page currently, the gesture input by the user on the touch screen is monitored. When the gesture input by the user on the touch screen is a double-finger control gesture, determining that the video data with the serial number of 10 is displayed on the video list page currently; and identifying the control type of the double-finger control gesture, marking the video data when the control type is long-press control, and storing the video data in a favorite as a shortcut point, wherein the video data with the serial numbers of 1, 5, 8, 12 and 20 are stored in the favorite. When the slide control is performed, it is determined whether to slide upward or downward. If the video data corresponding to the shortcut point is upwards slid, searching each video data stored in the favorite, determining that the video data corresponding to the currently searched shortcut point is the video data with the serial number of 12, sliding the video list page to the position of the video data with the serial number of 12, and displaying the video data with the serial number of 12 on the touch screen. If the video data are sliding downwards, searching each video data stored in the favorite, determining the video data with the serial number of 8 corresponding to the currently searched shortcut point, sliding the video list page to the position of the video data with the serial number of 8, and displaying the video data with the serial number of 8 on the touch screen.
By applying the method provided by the embodiment of the invention, the list items in the long list page can be marked according to the gestures input by the user on the touch screen, and the marked list items can be quickly slid according to the gestures of the user, so that the interactive experience of the user and the intelligent terminal is improved.
Optionally, when the control type of the two-finger control gesture is long press control, whether the current list item is marked or not may be determined first; if the current list item is not marked, marking the current list item based on the serial number corresponding to the current list item; otherwise, the current list item does not need to be marked.
Further, when the intelligent terminal is detected to exit the long list page, the favorite is emptied.
In the method provided by the embodiment of the present invention, before detecting that the currently displayed page of the intelligent terminal is a long list page, the method may specifically include:
acquiring all page controls in a currently displayed page of the intelligent terminal;
judging whether any page control exists in the page controls and is a vertical sliding control;
if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page;
and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
It can be understood that the page displayed by each application program of the intelligent terminal is not all long list pages, and therefore, every time the intelligent terminal switches pages, all page controls in the page currently displayed in the intelligent terminal are collected, and the page controls may include pictures, sliding pointers, menus and the like. And detecting each page control, and judging whether at least one page control is a vertical sliding control. If the long list page exists, the currently displayed page is the long list page, otherwise, the page is not the long list page.
According to the method provided by the embodiment of the invention, whether the page is a long list page is determined by identifying all page controls in the page.
Based on the content of S102, the process of determining whether the gesture currently input by the user on the touch screen is a two-finger control gesture is shown in fig. 2, and the method provided in the embodiment of the present invention specifically includes:
s201: and applying a collection chip arranged in the intelligent terminal to detect whether the touch screen generates a touch instruction in real time, and collecting touch points generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen.
In the embodiment of the invention, the intelligent terminal is internally provided with the acquisition chip, the acquisition chip is used for acquiring the touch points on the touch screen, and the acquisition chip can also distinguish whether the touch points on the touch screen are touched by people or objects. When a user performs double-finger long-pressing control or double-finger sliding control on the touch screen, the position of the user's finger clicked on the touch screen is a touch point, and the touch screen generates a touch instruction according to the click and touch of the user.
S202: and judging whether the touch points on the touch screen are two touch points.
In the embodiment of the invention, if a user uses double-finger touch control, two touch points are arranged on the touch screen.
S203: and if the touch points generating the touch instruction on the touch screen are two touch points, determining that the gesture currently input on the touch screen by the user is a double-finger control gesture.
S204: and if the touch points generating the touch instruction on the touch screen are not two touch points, determining that the gesture currently input on the touch screen by the user is not a two-finger control gesture.
In the gesture interaction method for the touch screen, when the acquisition chip acquires the touch instruction generated by the touch screen, the fact that the user touches the touch screen by fingers is represented, and all touch points on the touch screen are acquired. And judging whether the touch points are two touch points, if so, the gesture of the user is a double-finger control gesture, otherwise, the gesture is not the double-finger control gesture.
Further, after the gesture input by the user is determined to be a two-finger control gesture, the control category of the gesture needs to be determined, and the control category of the two-finger control gesture includes long-press control and sliding control. Based on the content of S104, the process of identifying the control category of the two-finger control gesture is shown in fig. 3, and may specifically include:
s301: and when the gesture input by the user on the touch screen is determined to be a double-finger control gesture, starting a preset timer for timing.
In the embodiment of the invention, the timer is used for calculating the staying time of the finger of the user on the touch screen, and if the finger of the user stays on the touch screen continuously, the timer keeps timing. Therefore, when the user inputs the double-finger control gesture, namely the acquisition chip detects that the touch screen generates a touch instruction, the timer is started to start timing.
S302: and respectively determining two touch points on the touch screen, which generate the touch instruction, as a first touch point and a second touch point.
In the embodiment of the invention, two points of two fingers of a user touching the touch screen are respectively set as a first touch point and a second touch point.
S303: and recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point.
In the embodiment of the invention, at the initial moment, a first initial coordinate of a first touch point is determined according to the position of the first touch point on the touch screen; similarly, according to the second touch point, the touch screenAnd determining a second initial coordinate of the second touch point. Marking the first initial sitting position as
Figure BDA0003049758670000131
Marking the second initial seating as
Figure BDA0003049758670000132
S304: when the first touch point and the second touch point are detected to disappear, and the timing time of the timer exceeds the preset time, recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears.
In the embodiment of the invention, the timer starts timing when the touch point is generated on the touch screen, stops timing when the touch point disappears, determines the timing time of the timer when the first touch point and the second touch point disappear, determines whether the timing time of the timer exceeds the preset time, and records the first final coordinate before the first touch point disappears and the second final coordinate before the second touch point disappears if the timing time of the timer exceeds the preset time. Marking the first final seating
Figure BDA0003049758670000133
Marking the second final seating
Figure BDA0003049758670000134
It should be noted that, when the first touch point and the second touch point disappear, the two fingers representing the user no longer touch the touch screen.
S305: and calculating a first moving range of the first touch point based on the first initial coordinate and the first final coordinate.
In the embodiment of the present invention, the calculation method of the first moving range R1 of the first touch point is as follows:
Figure BDA0003049758670000141
wherein the first initial sitting positionIs marked as
Figure BDA0003049758670000142
The first final coordinate is
Figure BDA0003049758670000143
S306: and calculating a second moving range of the second touch point based on the second initial coordinate and the second final coordinate.
In the embodiment of the present invention, the calculation method of the first moving range R2 of the first touch point is as follows:
Figure BDA0003049758670000144
wherein the second initial coordinate is
Figure BDA0003049758670000145
The second final coordinate is
Figure BDA0003049758670000146
S307: and judging whether the first moving range and the second moving range exceed a preset moving range.
In the embodiment of the invention, considering the situation that the finger of the user may slightly shake for a long time, the shake range can be defined to
Figure BDA0003049758670000147
And
Figure BDA0003049758670000148
a circular area with a radius of R0 as the center of the circle, if found
Figure BDA0003049758670000149
Once passed over to
Figure BDA00030497586700001410
A circular area as a center of a circle, and
Figure BDA00030497586700001411
once passed over to
Figure BDA00030497586700001412
A circular area with a center point indicates that the user may be sliding, rather than long pressing. That is, the preset moving range is set to R0, and it is determined whether R1 is smaller than R0, and R2 is smaller than R0.
S308: and when the first movement range and the second movement range do not exceed a preset movement range, determining that the control type of the double-finger control gesture is long press control.
In the embodiment of the invention, when the double fingers perform touch control in the moving range, the representation user performs long-time press control on the touch screen.
S309: and when the first movement range and the second movement range exceed a preset movement range, determining that the control type of the double-finger control gesture is sliding control.
In the embodiment of the invention, when the moving ranges of the two fingers exceed the preset moving range, the sliding control of the user is represented.
In the touch screen gesture interaction method provided by the embodiment of the invention, when the gesture currently input on the touch screen by a user is determined to be a two-finger control gesture, a timer is started to start timing, and initial coordinates of a first touch point and a second touch point are recorded. And when the first touch point and the second touch point disappear, stopping timing, and judging whether the current timing time of the timer exceeds the preset time. And when the timing time exceeds the preset time, the first touch point and the second touch point are subjected to final coordinates before disappearance. And determining the moving ranges of the two touch points based on the initial coordinates and the final coordinates, wherein if the moving ranges exceed the preset range, the sliding control is performed, and otherwise, the long-press control is performed.
Based on the above processes of S301 to S309, a specific embodiment of determining the control type of the two-finger control gesture may be as follows:
firstly, acquiring a MotionEvent parameter through a terminal system of an intelligent terminal, wherein the MotionEvent is data which is provided for an upper layer to use after the terminal system packages a touch screen click event, and the provided data is shown in table 1:
TABLE 1
Figure BDA0003049758670000151
The touch screen is touched by a user, the touch screen is released by the user, and the touch screen is slid by a finger of the user; the PointerCount represents the number of fingers which are supported by the touch screen for touch control; x represents the abscissa of the touch point on the screen, and y represents the ordinate of the touch point on the screen.
Obviously, the method for judging the double-finger control is as follows: when the PointerCount is equal to 2, indicating that the user is currently in double-finger operation; the method for judging the long press operation comprises the following steps: the long-press operation definition is that the finger of the user is kept on the touch screen for a preset time length and does not slide. When an ACTION _ DOWN event is detected, namely a touch instruction generated on the touch screen is detected and the gesture is determined to be a two-finger control gesture, recording the current time point in the timer as T0, recording the current state as READY state, and recording coordinate values (x0, y0) of a touch point. Acquiring an ACTION _ MOVE event and a coordinate value (x, y) corresponding to the ACTION _ MOVE event, wherein a jitter range is defined as a circular area which takes (x0, y0) as a center and has a radius of R0, if the (x, y) is found to cross the circular area, the situation that the user is likely to slide but not press for a long time is indicated, the current state is recorded as a FLASE state, and otherwise, the READY state is kept. And then, acquiring an ACTION _ UP event, and if the current state is a FLASE state, directly judging that the current operation is not long-time pressing. Otherwise, recording the current time point as T1, if T1-T0<2, indicating that the user does not press for more than 2 seconds, recording the current state as a FLASE state, and if T1-T0>2, indicating that the user press for more than 2 seconds, recording the current state as a TRUE state. If the current state is a TRUE state, the state is expressed as long press control; otherwise, the control is not long-press control.
In the method provided by the embodiment of the invention, after the control type of the double-finger control gesture is determined to be the sliding control, whether the control type is the upward sliding or the downward sliding needs to be further distinguished. Referring to fig. 4, the determining the sliding direction of the two-finger control gesture may specifically include:
s401: and acquiring a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate and a second final longitudinal coordinate value in the second final coordinate.
In an embodiment of the present invention, the first initial coordinates
Figure BDA0003049758670000161
The first initial longitudinal coordinate value of (1) is
Figure BDA0003049758670000162
First final coordinates
Figure BDA0003049758670000163
The first final longitudinal coordinate value of (1) is
Figure BDA0003049758670000164
Second initial coordinate
Figure BDA0003049758670000165
The second initial longitudinal coordinate value of (1) is
Figure BDA0003049758670000166
Second final coordinate
Figure BDA0003049758670000167
The second final longitudinal coordinate value of (1) is
Figure BDA0003049758670000168
S402: and judging whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value or not and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value or not.
In the embodiment of the invention, judgment is carried out
Figure BDA0003049758670000169
Whether or not greater than
Figure BDA00030497586700001610
And is
Figure BDA00030497586700001611
Whether or not greater than
Figure BDA00030497586700001612
S403: if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is downward sliding.
In the embodiment of the present invention, if
Figure BDA00030497586700001613
And is provided with
Figure BDA00030497586700001614
The finger movement direction of the representation user slides from top to bottom, so the sliding direction of the two-finger control gesture is downward sliding.
S404: if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is upward sliding.
In the embodiment of the present invention, if
Figure BDA00030497586700001615
And is
Figure BDA00030497586700001616
The finger movement direction of the representation user slides from top to bottom, so the sliding direction of the two-finger control gesture slides upwards.
In the touch screen gesture interaction method provided by the embodiment of the invention, the initial longitudinal coordinate value and the final longitudinal coordinate value of the two touch points in the initial coordinate and the final coordinate are obtained, whether the initial longitudinal coordinate value is larger than the final longitudinal coordinate value or not is judged, if so, the sliding direction is downward sliding, and otherwise, the sliding direction is upward sliding.
Optionally, in the process of sliding the finger, the user may shake left and right, and if the distance of the horizontal sliding is greater than the distance of the vertical sliding, it may be represented that the user does not want to slide the touch screen up and down. Therefore, before determining whether the sliding direction is upward sliding or downward sliding, it is determined whether the sliding distance in the transverse direction under the initial coordinate and the final coordinate is smaller than the sliding distance in the longitudinal direction, and if so, it is determined whether the sliding direction is upward sliding or downward sliding. For two touch points, the calculation formula for judging that the vertical sliding distance is greater than the horizontal sliding distance is as follows:
Figure BDA0003049758670000171
x1 is the final lateral coordinate value, x0 is the initial lateral coordinate value, y1 is the final longitudinal coordinate value, and y0 is the initial longitudinal coordinate value.
Based on the above S401 to S404 and the above table 1, the specific implementation procedure for determining the sliding direction may be as follows:
for the sliding direction of the upward slide: when the ACTION _ DOWN event is detected, recording the current state as a READY state, recording coordinate values (x0, y0), acquiring the ACTION _ UP event and the corresponding coordinate values (x, y), and considering the situation that a user possibly shakes left and right when sliding upwards, defining that the user is considered to slide upwards as long as the vertical sliding distance of the user is greater than the horizontal sliding distance and the user slides upwards. If the operation is a slide-up operation, recording the current state as a TRUE state, otherwise recording the current state as a FALSE state. If the current state is a TRUE state, the operation is represented as an upward sliding operation; otherwise not a slide-up operation
For the sliding direction of the downward slide: when the ACTION _ DOWN event is detected, the current state is recorded as a READY state, coordinate values (x0, y0) are recorded, an ACTION _ UP event and corresponding coordinate values (x, y) are collected, and in consideration of the situation that a user may shake left and right when sliding upwards, the user is considered to slide downwards as long as the vertical sliding distance of the user is greater than the horizontal sliding distance and the user slides downwards. If the operation is a slide-down operation, recording the current state as a TRUE state, otherwise recording the current state as a FALSE state. If the current state is a TRUE state, the operation is expressed as a gliding operation; otherwise it is not a downslide operation.
By applying the method provided by the embodiment of the invention, the gesture mode of controlling the touch screen by the user is judged according to different states, the list items in the long list page can be marked according to the gesture of the user, the marked list items can be quickly slid according to the gesture of the user, and the interaction experience of the user and the intelligent terminal is improved.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a touch screen gesture interaction apparatus, which is used for specifically implementing the method in fig. 1, where the touch screen gesture interaction apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the touch screen gesture interaction apparatus is shown in fig. 5, and specifically includes:
the monitoring unit 501 is configured to monitor a gesture input by a user on a touch screen each time when it is detected that a currently displayed page of the intelligent terminal is a long list page; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
a determining unit 502, configured to determine whether a gesture currently input on the touch screen by the user is a two-finger control gesture;
a first determining unit 503, configured to determine a current list item displayed in the long list page if a gesture currently input by the user on the touch screen is a two-finger control gesture;
the recognition unit 504 is configured to recognize a control type of the two-finger control gesture, where the control type is long press control or sliding control;
a marking unit 505, configured to mark the current list item based on a sequence number of the current list item in the long list page when the control type of the two-finger control gesture is long press control, and store the marked list item in a preset favorite as a shortcut point;
a second determining unit 506, configured to determine a sliding direction of the two-finger control gesture when the control type of the two-finger control gesture is sliding control, where the sliding direction is sliding upwards or sliding downwards;
a first searching unit 507, configured to search, when the sliding direction of the two-finger control gesture is upward sliding, a shortcut point with a sequence number greater than the sequence number of the current list item in the favorite based on the sequence number of the current list item, and slide the long list page, so that the touch screen displays a list item corresponding to the currently searched shortcut point;
a second searching unit 508, configured to search, based on the sequence number of the current list item, for a shortcut point with a sequence number smaller than the sequence number of the current list item in the favorite when the sliding direction of the two-finger control gesture is downward sliding, and slide the long list page, so that the touch screen displays a list item corresponding to the currently searched shortcut point.
In the touch screen gesture interaction device provided by the embodiment of the invention, when the current displayed page of the intelligent terminal is a long list page, the gesture input by a user on the touch screen needs to be monitored in real time. If the gesture currently input on the touch screen by the user is a double-finger control gesture, the current list item displayed in the long list page on the touch screen is needed. And simultaneously identifying the control type of the double-finger control gesture input by the user, namely judging whether the double-finger control gesture of the user is long-press control or sliding control. If the list item is controlled by long pressing, the list item is marked according to the serial number of the current list item, and the marked list item is stored in the favorite as a shortcut point; the favorites store a plurality of shortcut points, i.e., a plurality of marked list items. When a user needs to search any marked list item in the long list page, the touch screen is slid through the double-finger control gesture. When the sliding direction of the double-finger control gesture input by the user is upwards sliding, the representation that the user needs to search the marked list item with the sequence number behind the current list item is performed, the favorite is traversed, and the shortcut point with the first sequence number larger than the sequence number of the current list item is displayed in the touch screen. When the sliding direction of the double-finger control gesture input by the user slides downwards, the fact that the user needs to search a list item with a sequence number marked before the current list item is represented, the favorite is traversed, a shortcut point with the first sequence number smaller than the sequence number of the current list item is determined, a long list page is quickly slid, and the list item corresponding to the shortcut point is displayed in the middle of the touch screen.
By applying the device provided by the embodiment of the invention, the list items in the long list page can be marked according to the gestures input by the user on the touch screen, and the marked list items can be quickly slid according to the gestures of the user, so that the interaction experience of the user and the intelligent terminal is improved.
The device provided by the embodiment of the invention further comprises:
the acquisition unit is used for acquiring all page controls in a currently displayed page of the intelligent terminal; judging whether any page control exists in the page controls and is a vertical sliding control; if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page; and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
In the apparatus provided in the embodiment of the present invention, the determining unit 502 includes:
the acquisition subunit is used for detecting whether the touch screen generates a touch instruction in real time by using an acquisition chip arranged in the intelligent terminal and acquiring a touch point generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen;
the first judgment subunit is used for judging whether the touch points on the touch screen are two touch points or not;
the first determining subunit is configured to determine that a gesture currently input on the touch screen by the user is a two-finger control gesture if the touch point on the touch screen where the touch instruction is generated is two touch points;
the second determining subunit is configured to determine that the gesture currently input by the user on the touch screen is not a two-finger control gesture if the touch point generating the touch instruction on the touch screen is not two touch points.
In the apparatus provided in the embodiment of the present invention, the identifying unit 504 includes:
the starting sub-unit is used for starting a preset timer to time when the gesture input by the user on the touch screen is determined to be a double-finger control gesture;
the third determining subunit is used for respectively determining two touch points on the touch screen, which generate the touch instruction, as a first touch point and a second touch point;
the first recording subunit is used for recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point;
the second recording subunit is used for recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears when the first touch point and the second touch point disappear are detected and the timing time of the timer exceeds the preset time;
the first calculating subunit is configured to calculate a first moving range of the first touch point based on the first initial coordinate and the first final coordinate;
the second calculating subunit is configured to calculate a second moving range of the second touch point based on the second initial coordinate and the second final coordinate;
the second judging subunit is configured to judge whether the first moving range and the second moving range exceed a preset moving range;
the fourth determining subunit is configured to determine that the control type of the two-finger control gesture is long press control when the first movement range and the second movement range do not exceed a preset movement range;
and the fifth determining subunit is configured to determine that the control type of the two-finger control gesture is sliding control when the first movement range and the second movement range exceed a preset movement range.
In the apparatus provided in the embodiment of the present invention, the second determining unit 506 includes:
an obtaining subunit, configured to obtain a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate, and a second final longitudinal coordinate value in the second final coordinate;
a third determining subunit, configured to determine whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value, and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a sixth determining subunit, configured to determine that the sliding direction of the two-finger control gesture is downward sliding if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a seventh determining subunit, configured to determine that the sliding direction of the two-finger control gesture is an upward sliding direction if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value.
The specific working processes of each unit and sub-unit in the touch screen gesture interaction device disclosed in the above embodiment of the present invention can refer to the corresponding contents in the touch screen gesture interaction method disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the touch screen gesture interaction method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 6, which specifically includes a memory 601 and one or more instructions 602, where the one or more instructions 602 are stored in the memory 601 and configured to be executed by one or more processors 603 to perform the following operations on the one or more instructions 602:
when the current displayed page of the intelligent terminal is detected to be a long list page, monitoring gestures input by a user on a touch screen each time; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
judging whether the gesture currently input on the touch screen by the user is a double-finger control gesture;
if the gesture input by the user on the touch screen is a double-finger control gesture, determining a current list item displayed in the long list page;
identifying the control type of the double-finger control gesture, wherein the control type is long-press control or sliding control;
when the control type of the double-finger control gesture is long-press control, marking the current list item based on the sequence number of the current list item in the long list page, and storing the marked list item as a shortcut point in a preset favorite;
when the control type of the double-finger control gesture is sliding control, determining the sliding direction of the double-finger control gesture, wherein the sliding direction is upward sliding or downward sliding;
when the sliding direction of the double-finger control gesture is upward sliding, searching a shortcut point with a serial number larger than that of the current list item in the favorite based on the serial number of the current list item, and sliding the long list page to enable the touch screen to display a list item corresponding to the currently searched shortcut point;
when the sliding direction of the double-finger control gesture is downward sliding, based on the serial number of the current list item, searching a shortcut point with the serial number smaller than the serial number of the current list item in the favorite, and sliding the long list page, so that the touch screen displays the list item corresponding to the currently searched shortcut point.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A touch screen gesture interaction method is characterized by comprising the following steps:
when the current displayed page of the intelligent terminal is detected to be a long list page, monitoring gestures input by a user on a touch screen each time; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
judging whether the gesture currently input on the touch screen by the user is a double-finger control gesture;
if the gesture input by the user on the touch screen is a double-finger control gesture, determining a current list item displayed in the long list page;
identifying the control type of the double-finger control gesture, wherein the control type is long-press control or sliding control;
when the control type of the double-finger control gesture is long-press control, marking the current list item based on the sequence number of the current list item in the long list page, and storing the marked list item as a shortcut point in a preset favorite;
when the control type of the double-finger control gesture is sliding control, determining the sliding direction of the double-finger control gesture, wherein the sliding direction is upward sliding or downward sliding;
when the sliding direction of the double-finger control gesture is upward sliding, searching a shortcut point with a serial number larger than that of the current list item in the favorite based on the serial number of the current list item, and sliding the long list page to enable the touch screen to display a list item corresponding to the currently searched shortcut point;
when the sliding direction of the double-finger control gesture is downward sliding, based on the serial number of the current list item, searching a shortcut point with the serial number smaller than the serial number of the current list item in the favorite, and sliding the long list page, so that the touch screen displays the list item corresponding to the currently searched shortcut point.
2. The method of claim 1, further comprising:
acquiring all page controls in a currently displayed page of the intelligent terminal;
judging whether any page control exists in the page controls and is a vertical sliding control;
if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page;
and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
3. The method of claim 1, wherein the determining whether the gesture currently input by the user on the touch screen is a two-finger control gesture comprises:
detecting whether the touch screen generates a touch instruction or not in real time by using an acquisition chip arranged in the intelligent terminal, and acquiring a touch point generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen;
judging whether the touch points on the touch screen are two touch points or not;
if the touch points generating the touch instruction on the touch screen are two touch points, determining that the gesture currently input on the touch screen by the user is a two-finger control gesture;
and if the touch points generating the touch instruction on the touch screen are not two touch points, determining that the gesture currently input on the touch screen by the user is not a two-finger control gesture.
4. The method of claim 3, wherein the identifying the control category of the two-finger control gesture comprises:
when the gesture input by the user on the touch screen is determined to be a double-finger control gesture, starting a preset timer to time;
determining two touch points on the touch screen generating a touch instruction as a first touch point and a second touch point respectively;
recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point;
when the first touch point and the second touch point are detected to disappear, and the timing time of the timer exceeds the preset time, recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears;
calculating a first moving range of the first touch point based on the first initial coordinate and the first final coordinate;
calculating a second movement range of the second touch point based on the second initial coordinate and the second final coordinate;
judging whether the first moving range and the second moving range exceed a preset moving range or not;
when the first movement range and the second movement range do not exceed a preset movement range, determining the control type of the double-finger control gesture as long press control;
and when the first movement range and the second movement range exceed a preset movement range, determining that the control type of the double-finger control gesture is sliding control.
5. The method of claim 4, wherein the determining the direction of the swipe of the two-finger control gesture comprises:
acquiring a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate and a second final longitudinal coordinate value in the second final coordinate;
judging whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value or not and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value or not;
if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is downward sliding;
if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value, determining that the sliding direction of the two-finger control gesture is upward sliding.
6. A touch screen gesture interaction device, comprising:
the monitoring unit is used for monitoring the gesture input by the user on the touch screen each time when the current displayed page of the intelligent terminal is detected to be a long list page; the long list page comprises a plurality of list items, and the user switches each list item in the long list page by sliding the touch screen;
the judging unit is used for judging whether the gesture currently input on the touch screen by the user is a double-finger control gesture;
a first determining unit, configured to determine a current list item displayed in the long list page if a gesture currently input by the user on the touch screen is a two-finger control gesture;
the recognition unit is used for recognizing the control type of the double-finger control gesture, and the control type is long-press control or sliding control;
the marking unit is used for marking the current list item based on the sequence number of the current list item in the long list page when the control type of the double-finger control gesture is long-press control, and storing the marked list item as a shortcut point in a preset favorite;
the second determining unit is used for determining the sliding direction of the double-finger control gesture when the control type of the double-finger control gesture is sliding control, and the sliding direction is upward sliding or downward sliding;
the first searching unit is used for searching a shortcut point with a serial number larger than that of the current list item in the favorite based on the serial number of the current list item when the sliding direction of the double-finger control gesture is upward sliding, and sliding the long list page to enable the touch screen to display the list item corresponding to the currently searched shortcut point;
and the second searching unit is used for searching a shortcut point with a sequence number smaller than the sequence number of the current list item in the favorite based on the sequence number of the current list item when the sliding direction of the double-finger control gesture is downward sliding, and sliding the long list page to enable the touch screen to display the list item corresponding to the currently searched shortcut point.
7. The apparatus of claim 6, further comprising:
the acquisition unit is used for acquiring all page controls in a currently displayed page of the intelligent terminal; judging whether any page control exists in the page controls and is a vertical sliding control; if any page control exists in the page controls and is a vertical sliding control, determining that the currently displayed page is a long list page; and if any page control does not exist in the page controls and is a vertical sliding control, determining that the currently displayed page is not a long list page.
8. The apparatus according to claim 6, wherein the determining unit comprises:
the acquisition subunit is used for detecting whether the touch screen generates a touch instruction in real time by using an acquisition chip arranged in the intelligent terminal and acquiring a touch point generating the touch instruction on the touch screen when the touch instruction is generated on the touch screen;
the first judgment subunit is used for judging whether the touch points on the touch screen are two touch points or not;
the first determining subunit is configured to determine that a gesture currently input on the touch screen by the user is a two-finger control gesture if the touch point on the touch screen where the touch instruction is generated is two touch points;
the second determining subunit is configured to determine that the gesture currently input by the user on the touch screen is not a two-finger control gesture if the touch point generating the touch instruction on the touch screen is not two touch points.
9. The apparatus of claim 8, wherein the identification unit comprises:
the starting sub-unit is used for starting a preset timer to time when the gesture input by the user on the touch screen is determined to be a double-finger control gesture;
the third determining subunit is used for respectively determining two touch points on the touch screen, which generate the touch instruction, as a first touch point and a second touch point;
the first recording subunit is used for recording a first initial coordinate of the first touch point and a second initial coordinate of the second touch point;
the second recording subunit is used for recording a first final coordinate before the first touch point disappears and a second final coordinate before the second touch point disappears when the first touch point and the second touch point disappear are detected and the timing time of the timer exceeds the preset time;
the first calculating subunit is configured to calculate a first moving range of the first touch point based on the first initial coordinate and the first final coordinate;
the second calculating subunit is configured to calculate a second moving range of the second touch point based on the second initial coordinate and the second final coordinate;
the second judging subunit is used for judging whether the first moving range and the second moving range exceed a preset moving range or not;
the fourth determining subunit is configured to determine that the control type of the two-finger control gesture is long press control when the first movement range and the second movement range do not exceed a preset movement range;
and the fifth determining subunit is configured to determine that the control type of the two-finger control gesture is sliding control when the first movement range and the second movement range exceed a preset movement range.
10. The apparatus of claim 9, wherein the second determining unit comprises:
an obtaining subunit, configured to obtain a first initial longitudinal coordinate value in the first initial coordinate, a second initial longitudinal coordinate value in the second initial coordinate, a first final longitudinal coordinate value in the first final coordinate, and a second final longitudinal coordinate value in the second final coordinate;
a third determining subunit, configured to determine whether the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value, and whether the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a sixth determining subunit, configured to determine that the sliding direction of the two-finger control gesture is downward sliding if the first initial longitudinal coordinate value is greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is greater than the second final longitudinal coordinate value;
a seventh determining subunit, configured to determine that the sliding direction of the two-finger control gesture is an upward sliding direction if the first initial longitudinal coordinate value is not greater than the first final longitudinal coordinate value and the second initial longitudinal coordinate value is not greater than the second final longitudinal coordinate value.
CN202110484486.0A 2021-04-30 2021-04-30 Touch screen gesture interaction method and device Active CN113064544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110484486.0A CN113064544B (en) 2021-04-30 2021-04-30 Touch screen gesture interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110484486.0A CN113064544B (en) 2021-04-30 2021-04-30 Touch screen gesture interaction method and device

Publications (2)

Publication Number Publication Date
CN113064544A CN113064544A (en) 2021-07-02
CN113064544B true CN113064544B (en) 2022-05-17

Family

ID=76568017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110484486.0A Active CN113064544B (en) 2021-04-30 2021-04-30 Touch screen gesture interaction method and device

Country Status (1)

Country Link
CN (1) CN113064544B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860592A (en) * 2009-04-10 2010-10-13 北京闻言科技有限公司 Method for conveniently moving list items at mobile phone client
CN107422979A (en) * 2017-09-29 2017-12-01 深圳市云中飞网络科技有限公司 A kind of page control method by sliding, system and terminal device
CN110069188A (en) * 2019-03-08 2019-07-30 维沃移动通信有限公司 Identification display method and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9118967B2 (en) * 2012-08-17 2015-08-25 Jamdeo Technologies Ltd. Channel changer for intelligent television

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860592A (en) * 2009-04-10 2010-10-13 北京闻言科技有限公司 Method for conveniently moving list items at mobile phone client
CN107422979A (en) * 2017-09-29 2017-12-01 深圳市云中飞网络科技有限公司 A kind of page control method by sliding, system and terminal device
CN110069188A (en) * 2019-03-08 2019-07-30 维沃移动通信有限公司 Identification display method and terminal device

Also Published As

Publication number Publication date
CN113064544A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
RU2654145C2 (en) Information search method and device and computer readable recording medium thereof
US10102010B2 (en) Layer-based user interface
EP2192477B1 (en) Portable terminal with touch screen and method for displaying tags in the portable terminal
RU2635285C1 (en) Method and device for movement control on touch screen
US8633909B2 (en) Information processing apparatus, input operation determination method, and input operation determination program
US9423933B2 (en) Item display method and apparatus that display items according to a user gesture
CN102789332B (en) Method for identifying palm area on touch panel and updating method thereof
US20120105367A1 (en) Methods of using tactile force sensing for intuitive user interface
US9459704B2 (en) Method and apparatus for providing one-handed user interface in mobile device having touch screen
US20110221666A1 (en) Methods and Apparatus For Gesture Recognition Mode Control
US20140022193A1 (en) Method of executing functions of a terminal including pen recognition panel and terminal supporting the method
US20080211775A1 (en) Gestures for touch sensitive input devices
CA2841195A1 (en) Method and apparatus for multitasking
TW201118683A (en) Sensing a type of action used to operate a touch panel
EP1774429A2 (en) Gestures for touch sensitive input devices
JP7233109B2 (en) Touch-sensitive surface-display input method, electronic device, input control method and system with tactile-visual technology
JP6949059B2 (en) How to display dynamic lists, devices, devices and systems
CN103064627A (en) Application management method and device
US20180018084A1 (en) Display device, display method and computer-readable recording medium
US8952994B2 (en) Information processing device, control method for information processing device, program, and information storage medium
WO2016183912A1 (en) Menu layout arrangement method and apparatus
JP2015094978A (en) Electronic device and method
JP5461030B2 (en) Input device
CN113064544B (en) Touch screen gesture interaction method and device
CN111625176A (en) Device control method, device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant