CN111381666B - Control method and device based on sliding gesture, terminal equipment and storage medium - Google Patents
Control method and device based on sliding gesture, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111381666B CN111381666B CN201811611768.7A CN201811611768A CN111381666B CN 111381666 B CN111381666 B CN 111381666B CN 201811611768 A CN201811611768 A CN 201811611768A CN 111381666 B CN111381666 B CN 111381666B
- Authority
- CN
- China
- Prior art keywords
- target object
- data
- touch operation
- terminal equipment
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a control method and device based on a sliding gesture, terminal equipment and a storage medium. The method comprises the following steps: the terminal equipment receives touch operation of a user aiming at a first target object, wherein the first target object is an object displayed by the terminal equipment; if the touch operation is a lateral sliding gesture, the terminal device switches the displayed object from a first target object to a second target object, wherein the first target object and the second target object belong to the same category; if the touch operation is a vertical sliding gesture, the terminal device switches the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories. The embodiment of the invention can switch the objects displayed by the terminal equipment based on different operation gestures, simplifies the step of switching the objects displayed by the terminal equipment, and improves the interactive experience of users.
Description
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a control method and apparatus based on a sliding gesture, a terminal device, and a storage medium.
Background
With the continuous development of terminal equipment, the processing speed of the existing terminal equipment is faster and faster, and the functions are more and more complete, so that the interaction that the terminal equipment can provide is more and more complex.
Existing terminal devices may typically respond to a user's demand by recognizing a user's operational gesture, e.g., the terminal device may switch the video being played for the user according to the user's left or right hand gesture. However, the existing terminal equipment can identify a single operation gesture, and the terminal equipment can only switch in the same category, so that the interaction experience of the user is affected.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the invention is expected to provide a control method, a control device, a terminal device and a storage medium based on sliding gestures, which can switch objects displayed by the terminal device based on different operation gestures, simplify the step of switching the objects displayed by the terminal device, and promote the interactive experience of users.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a control method based on a sliding gesture, including:
the terminal equipment receives touch operation of a user aiming at a first target object, wherein the first target object is an object displayed by the terminal equipment;
if the touch operation is a lateral sliding gesture, the terminal device switches the displayed object from a first target object to a second target object, wherein the first target object and the second target object belong to the same category;
if the touch operation is a vertical sliding gesture, the terminal device switches the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories.
Optionally, the method further comprises:
if the touch operation is an oblique sliding gesture, the terminal equipment displays prompt information to the user.
Optionally, after the terminal device receives the touch operation of the user on the first target object, the method further includes:
the terminal equipment acquires the pre-loading data of the second target object and the pre-loading data of the third target object from the data secondary cache;
and the terminal equipment stores the preloaded data of the second target object and the preloaded data of the third target object into the data primary cache.
Optionally, the terminal device switches the displayed object from the first target object to the second target object, which specifically includes:
the terminal equipment acquires the preloaded data of the second target object from the data primary cache, and acquires the page data of the second target object from the page cache;
the terminal device displays the preloaded data of the second target object on the page data of the second target object.
Optionally, the terminal device switches the displayed object from the first target object to the third target object, which specifically includes:
the terminal equipment acquires the preloaded data of the third target object from the data primary cache, and acquires the page data of the third target object from the page cache;
the terminal device displays the preloaded data of the third target object on the page data of the third target object.
In a second aspect, an embodiment of the present invention provides a control device based on a sliding gesture, including: a receiving module and a processing module;
the receiving module is used for receiving touch operation of a user on a first target object, wherein the first target object is an object displayed by the terminal equipment;
the processing module is used for switching the displayed object from the first target object to the second target object if the touch operation is a lateral sliding gesture, wherein the first target object and the second target object belong to the same category; and if the touch operation is a vertical sliding gesture, switching the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories.
Optionally, the method further comprises: a prompting module;
and the prompt module is used for displaying prompt information to a user if the touch operation is an oblique sliding gesture.
Optionally, the processing module is further configured to obtain, after the receiving module receives a touch operation of a user on the first target object, preloaded data of the second target object and preloaded data of the third target object from the data secondary cache; and storing the preloaded data of the second target object and the preloaded data of the third target object into a data primary cache.
Optionally, the processing module is specifically configured to obtain preloaded data of the second target object from the data primary cache, and obtain page data of the second target object from the page cache; and displaying the preloaded data of the second target object on the page data of the second target object.
Optionally, the processing module is specifically configured to obtain preloaded data of the third target object from the data primary cache, and obtain page data of the third target object from the page cache; and displaying the preloaded data of the third target object on the page data of the third target object.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the slide gesture-based control method as in any of the first aspects of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a control method based on a slide gesture according to any of the first aspect of the embodiments of the present invention.
The embodiment of the invention provides a control method and device based on a sliding gesture, terminal equipment and a storage medium. Receiving touch operation of a user aiming at a first target object through terminal equipment, judging whether the touch operation belongs to a horizontal sliding gesture or a vertical sliding gesture, and switching a displayed object from the first target object to a second target object when the touch operation is the horizontal sliding gesture; and when the touch operation is a vertical sliding gesture, switching the displayed object from the first target object to a third target object. Because the first target object and the second target object belong to the same category, and the first target object and the third target object belong to different categories, the terminal equipment completes the switching between the display objects of the same category and different categories based on different operation gestures, the steps of switching the objects displayed by the terminal equipment are simplified, and the interactive experience of users is improved.
Drawings
FIG. 1 is a flow chart of a control method based on a sliding gesture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a screen of a terminal device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a screen of another terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control device based on a sliding gesture according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another control device based on a sliding gesture according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal 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 accompanying drawings in the embodiments of the present invention.
It should be noted that the terms "system" and "network" are often used interchangeably herein. References to "and/or" in embodiments of the present invention are intended to "include any and all combinations of one or more of the associated listed items. The terms first, second, third and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for limiting the specified sequence.
It should be noted that, the following embodiments of the present invention may be implemented separately or in combination with each other, and the embodiments of the present invention are not limited thereto.
Control methods and devices based on the sliding gesture and technical effects thereof are described in detail below.
Fig. 1 is a flow chart of a control method based on a sliding gesture according to an embodiment of the present invention, where the method disclosed in the embodiment of the present invention is applicable to a terminal device, and as shown in fig. 1, the method may include the following steps:
s101, the terminal equipment receives touch operation of a user on a first target object, wherein the first target object is an object displayed by the terminal equipment.
It can be understood that the terminal device in the embodiment of the invention can be a smart phone, a notebook computer or a tablet computer, or any terminal device with touch and display functions, or a terminal device capable of controlling other devices to display objects. The objects in the embodiments of the present invention may be different applications installed on the terminal device, and/or different service contents, and/or different items within one application installed on the terminal device.
The user may perform a touch operation through an external Input Device (Input Device) or a touch screen of the terminal Device.
S102, the terminal equipment judges that the touch operation is a horizontal sliding gesture, a vertical sliding gesture or an oblique sliding gesture.
It should be noted that, the touch operation performed by the user through the external input device or the display screen of the touch terminal device may be classified into any one of the following three types:
the first type of touch operation is a lateral swipe gesture.
The lateral swipe gesture includes at least a gesture of sliding horizontally from the left side of the display screen of the terminal device to the right side of the display screen of the terminal device (abbreviated as a right swipe gesture), and a gesture of sliding horizontally from the right side of the display screen of the terminal device to the left side of the display screen of the terminal device (abbreviated as a left swipe gesture).
It should be noted that, in actual operation, it is difficult for the user to ensure complete horizontal sliding when performing the touch operation, so the terminal device may further include a touch operation analyzer, and the touch operation analyzer may analyze whether the touch operation belongs to a lateral sliding gesture. For example, taking a sliding track of a touch operation as an example, when an included angle between the sliding track and a horizontal direction is within a first preset range, the touch operation analyzer confirms that the touch operation belongs to a lateral sliding gesture.
Alternatively, the first preset range may be less than or equal to 30 degrees. Namely, when the included angle between the sliding track and the horizontal direction is in the range of 0-30 degrees, the touch operation belongs to the transverse sliding gesture.
The second type of touch operation is a vertical sliding gesture.
The vertical swipe gesture includes at least a gesture of vertically swiped from above the display screen of the terminal device to below the display screen of the terminal device (abbreviated as a swipe down gesture) and a gesture of vertically swiped from below the display screen of the terminal device to above the display screen of the terminal device (abbreviated as a swipe up gesture).
Similarly, in actual operation, it is difficult for the user to ensure complete vertical sliding when performing the touch operation, and therefore, the touch operation analyzer may further analyze whether the touch operation belongs to a vertical sliding gesture. For example, taking a sliding track of a touch operation as an example, when an included angle between the sliding track and a vertical direction is within a second preset range, the touch operation analyzer confirms that the touch operation belongs to a vertical sliding gesture.
Alternatively, the second preset range may be less than or equal to 30 degrees. Namely, when the included angle between the sliding track and the vertical direction is in the range of 0-30 degrees, the touch operation belongs to the vertical sliding gesture.
And the third type of touch operation is an oblique sliding gesture.
The oblique sliding gesture at least comprises a gesture sliding from the upper right side of the display screen of the terminal device to the lower left side of the display screen of the terminal device, a gesture sliding from the upper left side of the display screen of the terminal device to the lower right side of the display screen of the terminal device, a gesture sliding from the lower right side of the display screen of the terminal device to the upper left side of the display screen of the terminal device, and a gesture sliding from the lower left side of the display screen of the terminal device to the upper right side of the display screen of the terminal device.
For example, taking a sliding track of a touch operation as a straight line as an example, when an included angle between the sliding track and a horizontal direction is in a range of 30 degrees to 60 degrees, the touch operation analyzer may confirm that the touch operation belongs to an oblique sliding gesture.
In addition, the terminal equipment is also internally provided with a data secondary cache and a data primary cache. The data secondary cache and the data primary cache are both used for storing preloaded data of an object, and the data primary cache stores the preloaded data by adopting a LRU (Least Recently Used) page replacement algorithm, so that the time for acquiring the data from the data primary cache by the terminal equipment is far less than the time for acquiring the data from the data secondary cache by the terminal equipment. Meanwhile, the data secondary buffer and the data primary buffer can also support multiplexing of various data structures.
After the step S102 is executed, in order to improve the switching speed of the terminal device and improve the use experience of the user, the terminal device may further obtain the pre-load data of the second target object and the pre-load data of the third target object from the data secondary cache; and storing the preloaded data of the second target object and the preloaded data of the third target object into a data primary cache. The first target object and the second target object belong to the same category, and the first target object and the third target object belong to different categories.
It is also required to supplement that, because the lateral sliding gesture at least includes a left sliding gesture and a right sliding gesture, on the basis that the terminal device cannot determine whether the user wants to slide left or slide right at the next moment, the number of the second target objects is two, that is, the second target object corresponding to when the user triggers the left sliding gesture and the second target object corresponding to when the user triggers the right sliding gesture. Similarly, because the vertical sliding gesture at least includes the up sliding gesture and the down sliding gesture, on the basis that the terminal device cannot determine whether the user needs to slide up or slide down at the next moment, the number of the third target objects is also two, that is, the third target object corresponding to when the user triggers the up sliding gesture and the third target object corresponding to when the user triggers the down sliding gesture.
Taking a user album as an example, the first target object is a picture 1 in the a album, the second target object includes a picture 2 in the a album corresponding to when the user triggers the left slide gesture and a picture 3 in the a album corresponding to when the user triggers the right slide gesture, and because the picture 1, the picture 2 and the picture 3 all belong to the a album, the picture 1, the picture 2 and the picture 3 belong to the same category. Typically, picture 2 and picture 3 are the previous and next picture to picture 1. The third target object comprises a corresponding photo album B when the user triggers the up-slide gesture and a corresponding photo album C when the user triggers the down-slide gesture, and because the photo album A belongs to the photo album 1 and the photo album B and the photo album C belong to the photo album, the photo album A belongs to different categories with the photo album B and the photo album C.
And S103, if the touch operation is a lateral sliding gesture, the terminal equipment switches the displayed object from the first target object to the second target object.
Specifically, the method for the terminal device to switch the displayed object from the first target object to the second target object may include the following two steps:
step 1, the terminal equipment acquires the preloaded data of the second target object from the data primary cache, and acquires the page data of the second target object from the page cache.
The terminal equipment is also internally provided with a page cache which is used for storing page data of the object. Specifically, the page data may be a layout of a page, elements included in the page, and the like. Specifically, the page cache adopts FIFO (First Input First Output) algorithm to dynamically release and multiplex page data.
And step 2, the terminal equipment displays the preloaded data of the second target object on the page data of the second target object.
Fig. 2 is a schematic diagram of a screen of a terminal device according to an embodiment of the present invention. As can be seen from fig. 2 (1): the terminal device currently displays a first target object, wherein the first target object is video 1 in a first application program. When the touch operation is the left slide gesture, the terminal device obtains the preloaded data of the video 2 from the data primary cache, obtains the page data of the video 2 from the page cache, and displays the preloaded data of the video 2 on the page data of the video 2, namely plays the video 2 as shown in fig. 2 (2); when the touch operation is a right slide gesture, the terminal device obtains the pre-load data of the video 3 from the data primary cache, obtains the page data of the video 3 from the page cache, and displays the pre-load data of the video 3 on the page data of the video 3 as shown in fig. 2 (3), namely, plays the video 3.
It should be added that, when the first target object is the leftmost or rightmost object of the same type, the preloaded data and/or the page data of the corresponding second target object may be empty.
And S104, if the touch operation is a vertical sliding gesture, the terminal equipment switches the displayed object from the first target object to a third target object.
Specifically, the method for the terminal device to switch the displayed object from the first target object to the third target object may include the following two steps:
step a, the terminal equipment acquires the pre-loaded data of the third target object from the data primary cache, and acquires the page data of the third target object from the page cache.
And b, the terminal equipment displays the preloaded data of the third target object on the page data of the third target object.
Fig. 3 is a schematic diagram of a screen of another terminal device according to an embodiment of the present invention. As can be seen from fig. 3 (1): the terminal equipment currently displays a first target object, wherein the first target object is video 1 in the first service content. When the touch operation is the up-slide gesture, the terminal device obtains pre-load data of the second service content from the data primary cache, obtains page data of the second service content from the page cache, and displays the pre-load data of the second service content on the page data of the second service content as shown in fig. 3 (2); when the touch operation is a sliding gesture, the terminal device obtains the pre-load data of the third service content from the data primary cache, obtains the page data of the third service content from the page cache, and displays the pre-load data of the third service content on the page data of the third service content as shown in fig. 3 (3).
It should be added that when the first target object is the uppermost or lowermost object of different types, the preloaded data and/or the page data of the corresponding third target object may be empty.
S105, if the touch operation is an oblique sliding gesture, the terminal equipment displays prompt information to a user.
Step S105 is an optional step. Specifically, the prompt information may be a pop-up prompt box, a prompt tone sent by a speaker of the terminal device, or prompt information that the terminal device displays page shake and the like, which can remind the user that the touch operation is neither a horizontal sliding gesture nor a vertical sliding gesture.
In addition, the control method based on the sliding gesture provided by the embodiment of the invention can be applied to an Android system and/or an iOS system of the terminal equipment, and is suitable for all system versions of the system, so that the suitability of the method is improved.
The embodiment of the invention provides a control method based on a sliding gesture, which comprises the following steps: the terminal equipment receives touch operation of a user aiming at a first target object, wherein the first target object is an object displayed by the terminal equipment; if the touch operation is a lateral sliding gesture, the terminal device switches the displayed object from a first target object to a second target object, wherein the first target object and the second target object belong to the same category; if the touch operation is a vertical sliding gesture, the terminal device switches the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories. Receiving touch operation of a user aiming at a first target object through terminal equipment, judging whether the touch operation belongs to a horizontal sliding gesture or a vertical sliding gesture, and switching a displayed object from the first target object to a second target object when the touch operation is the horizontal sliding gesture; and when the touch operation is a vertical sliding gesture, switching the displayed object from the first target object to a third target object. Because the first target object and the second target object belong to the same category, and the first target object and the third target object belong to different categories, the terminal equipment completes the switching between the display objects of the same category and different categories based on different operation gestures, the steps of switching the objects displayed by the terminal equipment are simplified, and the interactive experience of users is improved.
Fig. 4 is a schematic structural diagram of a control device based on a sliding gesture according to an embodiment of the present invention, where the control device based on the sliding gesture may be configured in a terminal device, and includes: a receiving module 10 and a processing module 11.
The receiving module 10 is configured to receive a touch operation of a user on a first target object, where the first target object is an object displayed by a terminal device;
the processing module 11 is configured to switch the displayed object from the first target object to the second target object if the touch operation is a lateral sliding gesture, where the first target object and the second target object belong to the same category; and if the touch operation is a vertical sliding gesture, switching the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories.
Optionally, with reference to fig. 4, fig. 5 is a schematic structural diagram of another control device based on a sliding gesture according to an embodiment of the present invention, and further includes: a prompt module 12.
The prompt module 12 is configured to display prompt information to a user if the touch operation is an oblique sliding gesture.
Optionally, the processing module 11 is further configured to obtain, after the receiving module 10 receives a touch operation of a user on the first target object, preloaded data of the second target object and preloaded data of the third target object from the data secondary cache; and storing the preloaded data of the second target object and the preloaded data of the third target object into a data primary cache.
Optionally, the processing module 11 is specifically configured to obtain preloaded data of the second target object from the data primary cache, and obtain page data of the second target object from the page cache; and displaying the preloaded data of the second target object on the page data of the second target object.
Optionally, the processing module 11 is specifically configured to obtain preloaded data of the third target object from the data primary cache, and obtain page data of the third target object from the page cache; and displaying the preloaded data of the third target object on the page data of the third target object.
The control device based on the sliding gesture provided by the embodiment of the invention can execute the steps executed by the terminal equipment in the control method based on the sliding gesture provided by the embodiment of the method of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, as shown in fig. 6, the terminal device includes a processor 20, a memory 21, an input device 22 and an output device 23; the number of processors 20 in the terminal device may be one or more, one processor 20 being taken as an example in fig. 6; the processor 20, the memory 21, the input means 22 and the output means 23 in the terminal device may be connected by a bus or by other means, in fig. 6 by way of example. Bus means one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The memory 21 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the control method based on the swipe gesture in the embodiment of the invention. The processor 20 executes various functional applications of the terminal device and data processing, i.e. implements the above-described control method based on the swipe gesture, by running software programs, instructions and modules stored in the memory 21.
The memory 21 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal device, etc. In addition, memory 21 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 21 may further comprise memory remotely located relative to processor 20, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 22 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. The output means 23 may comprise a display device such as a display screen.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements a control method based on a sliding gesture provided by the embodiment of the invention, and the method can be specifically but not limited to the disclosure of the method embodiments.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++, ruby, go and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. A control method based on a swipe gesture, comprising:
the method comprises the steps that terminal equipment receives touch operation of a user on a first target object, wherein the first target object is an object displayed by the terminal equipment;
if the touch operation is a lateral sliding gesture, the terminal device switches the displayed object from the first target object to a second target object, wherein the first target object and the second target object belong to the same category;
if the touch operation is a vertical sliding gesture, the terminal device switches the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories;
wherein the method further comprises:
and if the touch operation is an oblique sliding gesture, the terminal equipment displays prompt information to a user.
2. The method according to claim 1, wherein after the terminal device receives the touch operation of the user for the first target object, the method further comprises:
the terminal equipment acquires the preloading data of the second target object and the preloading data of the third target object from a data secondary cache;
and the terminal equipment stores the preloaded data of the second target object and the preloaded data of the third target object into a data primary cache.
3. The method according to claim 2, wherein the terminal device switches the displayed object from the first target object to a second target object, in particular comprising:
the terminal equipment acquires the preloaded data of the second target object from the data primary cache and acquires the page data of the second target object from a page cache;
and the terminal equipment displays the preloaded data of the second target object on the page data of the second target object.
4. The method according to claim 2, wherein the terminal device switches the displayed object from the first target object to a third target object, in particular comprising:
the terminal equipment acquires the preloaded data of the third target object from the data primary cache and acquires the page data of the third target object from a page cache;
and the terminal equipment displays the preloaded data of the third target object on the page data of the third target object.
5. A control device based on a swipe gesture, comprising: a receiving module and a processing module;
the receiving module is used for receiving touch operation of a user on a first target object, wherein the first target object is an object displayed by the terminal equipment;
the processing module is configured to switch the displayed object from the first target object to a second target object if the touch operation is a lateral sliding gesture, where the first target object and the second target object belong to the same category; if the touch operation is a vertical sliding gesture, switching the displayed object from the first target object to a third target object, wherein the first target object and the third target object belong to different categories;
wherein, still include: a prompting module;
and the prompt module is used for displaying prompt information to a user if the touch operation is an oblique sliding gesture.
6. The apparatus of claim 5, wherein the device comprises a plurality of sensors,
the processing module is further configured to obtain, after the receiving module receives a touch operation of a user on a first target object, preloaded data of the second target object and preloaded data of the third target object from a data secondary cache; and storing the preloaded data of the second target object and the preloaded data of the third target object into a data primary cache.
7. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to obtain preloaded data of the second target object from the data primary cache, and obtain page data of the second target object from a page cache; and displaying the preloaded data of the second target object on the page data of the second target object.
8. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the processing module is specifically configured to obtain preloaded data of the third target object from the data primary cache, and obtain page data of the third target object from a page cache; and displaying the preloaded data of the third target object on the page data of the third target object.
9. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the slide gesture-based control method of any of claims 1-4.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the control method based on a swipe gesture as claimed in any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811611768.7A CN111381666B (en) | 2018-12-27 | 2018-12-27 | Control method and device based on sliding gesture, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811611768.7A CN111381666B (en) | 2018-12-27 | 2018-12-27 | Control method and device based on sliding gesture, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111381666A CN111381666A (en) | 2020-07-07 |
CN111381666B true CN111381666B (en) | 2023-08-01 |
Family
ID=71219531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811611768.7A Active CN111381666B (en) | 2018-12-27 | 2018-12-27 | Control method and device based on sliding gesture, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111381666B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012127792A1 (en) * | 2011-03-18 | 2012-09-27 | パナソニック株式会社 | Information terminal, and method and program for switching display screen |
WO2014190862A1 (en) * | 2013-05-28 | 2014-12-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for controlling application on intelligent terminal |
CN104951176A (en) * | 2014-03-24 | 2015-09-30 | 宇龙计算机通信科技(深圳)有限公司 | Image browsing device and method |
CN105159572A (en) * | 2015-08-03 | 2015-12-16 | 上海青橙实业有限公司 | Interface switching method and mobile terminal |
CN105808142A (en) * | 2016-03-07 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Method and apparatus for adjusting player of terminal device |
CN106406712A (en) * | 2016-10-21 | 2017-02-15 | 广州酷狗计算机科技有限公司 | Information display method and device |
CN107506127A (en) * | 2017-07-28 | 2017-12-22 | 北京五八信息技术有限公司 | A kind of view control control method, equipment and storage medium |
CN108021313A (en) * | 2016-10-31 | 2018-05-11 | 腾讯科技(深圳)有限公司 | A kind of picture browsing method and terminal |
CN108170362A (en) * | 2017-12-28 | 2018-06-15 | 维沃移动通信有限公司 | A kind of application operation condition control method and mobile terminal |
CN108845732A (en) * | 2018-05-30 | 2018-11-20 | 维沃移动通信有限公司 | A kind of information display method and terminal device |
CN108984094A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Switch method, apparatus, terminal device and the storage medium of global special efficacy |
CN109002486A (en) * | 2018-06-25 | 2018-12-14 | 武汉斗鱼网络科技有限公司 | A kind of processing method that the page is shown, device, terminal and storage medium |
CN109032464A (en) * | 2018-09-10 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Interface switching method, device, equipment and storage medium in application program |
CN110389700A (en) * | 2018-04-19 | 2019-10-29 | 中兴通讯股份有限公司 | A kind of switching method that screen is shown, device and storage medium |
WO2021233409A1 (en) * | 2020-05-22 | 2021-11-25 | 阿里巴巴集团控股有限公司 | Page display method and apparatus, and electronic device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984493B (en) * | 2013-02-07 | 2018-06-19 | 腾讯科技(深圳)有限公司 | Control method by sliding and terminal |
US10031586B2 (en) * | 2013-06-12 | 2018-07-24 | Amazon Technologies, Inc. | Motion-based gestures for a computing device |
WO2018086234A1 (en) * | 2016-11-08 | 2018-05-17 | 华为技术有限公司 | Method for processing object, and terminal |
CN107423015B (en) * | 2017-07-24 | 2018-07-20 | 腾讯科技(深圳)有限公司 | The synchronous display method and device of game content |
-
2018
- 2018-12-27 CN CN201811611768.7A patent/CN111381666B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012127792A1 (en) * | 2011-03-18 | 2012-09-27 | パナソニック株式会社 | Information terminal, and method and program for switching display screen |
WO2014190862A1 (en) * | 2013-05-28 | 2014-12-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for controlling application on intelligent terminal |
CN104951176A (en) * | 2014-03-24 | 2015-09-30 | 宇龙计算机通信科技(深圳)有限公司 | Image browsing device and method |
CN105159572A (en) * | 2015-08-03 | 2015-12-16 | 上海青橙实业有限公司 | Interface switching method and mobile terminal |
CN105808142A (en) * | 2016-03-07 | 2016-07-27 | 上海斐讯数据通信技术有限公司 | Method and apparatus for adjusting player of terminal device |
CN106406712A (en) * | 2016-10-21 | 2017-02-15 | 广州酷狗计算机科技有限公司 | Information display method and device |
CN108021313A (en) * | 2016-10-31 | 2018-05-11 | 腾讯科技(深圳)有限公司 | A kind of picture browsing method and terminal |
CN107506127A (en) * | 2017-07-28 | 2017-12-22 | 北京五八信息技术有限公司 | A kind of view control control method, equipment and storage medium |
CN108170362A (en) * | 2017-12-28 | 2018-06-15 | 维沃移动通信有限公司 | A kind of application operation condition control method and mobile terminal |
CN110389700A (en) * | 2018-04-19 | 2019-10-29 | 中兴通讯股份有限公司 | A kind of switching method that screen is shown, device and storage medium |
CN108845732A (en) * | 2018-05-30 | 2018-11-20 | 维沃移动通信有限公司 | A kind of information display method and terminal device |
CN109002486A (en) * | 2018-06-25 | 2018-12-14 | 武汉斗鱼网络科技有限公司 | A kind of processing method that the page is shown, device, terminal and storage medium |
CN108984094A (en) * | 2018-06-29 | 2018-12-11 | 北京微播视界科技有限公司 | Switch method, apparatus, terminal device and the storage medium of global special efficacy |
CN109032464A (en) * | 2018-09-10 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Interface switching method, device, equipment and storage medium in application program |
WO2021233409A1 (en) * | 2020-05-22 | 2021-11-25 | 阿里巴巴集团控股有限公司 | Page display method and apparatus, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN111381666A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104820557B (en) | A kind of split screen method and mobile terminal | |
US20130145267A1 (en) | Video streaming in a web browser | |
CA2922060C (en) | Swipe toolbar to switch tabs | |
CN110032700B (en) | Information release control method and device, storage medium and electronic equipment | |
CN110377220B (en) | Instruction response method and device, storage medium and electronic equipment | |
CN108829311A (en) | A kind of method and apparatus based on Widget display data | |
KR20160064040A (en) | Method and device for selecting information | |
CN110647286A (en) | Screen element control method, device, equipment and storage medium | |
CN111190677A (en) | Information display method, information display device and terminal equipment | |
CN104932774B (en) | A kind of information processing method and electronic equipment | |
CN115357156A (en) | Display method, display device, electronic equipment and readable storage medium | |
CN114760515A (en) | Method, device, equipment, storage medium and program product for displaying media content | |
CN114363686B (en) | Method, device, equipment and medium for publishing multimedia content | |
US20150169168A1 (en) | Methods and systems for managing displayed content items on touch-based computer devices | |
US9513796B2 (en) | Method and device for controlling contents using touch, recording medium therefor, and user terminal having same | |
US10254940B2 (en) | Modifying device content to facilitate user interaction | |
CN113741773A (en) | Information display method, device, equipment and medium | |
CN112492399B (en) | Information display method and device and electronic equipment | |
CN111626021B (en) | Presentation generation method and device | |
CN111381666B (en) | Control method and device based on sliding gesture, terminal equipment and storage medium | |
US10102395B2 (en) | System and method for creating and transitioning to multiple facets of a social media object in a social network | |
CN115866314A (en) | Video playing method and device | |
EP4328725A1 (en) | Display method and apparatus, electronic device, and storage medium | |
CN103777881A (en) | Touch device page control method and system | |
CN110658974B (en) | Page sliding method and device, electronic equipment and storage medium |
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 |