CN111381666A - 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
- CN111381666A CN111381666A CN201811611768.7A CN201811611768A CN111381666A CN 111381666 A CN111381666 A CN 111381666A CN 201811611768 A CN201811611768 A CN 201811611768A CN 111381666 A CN111381666 A CN 111381666A
- Authority
- CN
- China
- Prior art keywords
- target object
- data
- terminal equipment
- gesture
- 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.)
- Granted
Links
Images
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 method comprises the steps that the terminal equipment receives touch operation of a user for a first target object, wherein the first target object is an object displayed by the terminal equipment; if the touch operation is a transverse sliding gesture, the terminal equipment 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. According to the embodiment of the invention, the object displayed by the terminal equipment can be switched based on different operation gestures, the step of switching the object displayed by the terminal equipment is simplified, and the interaction experience of a user is improved.
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 slide gesture, a terminal device, and a storage medium.
Background
With the continuous development of terminal devices, the processing speed of the existing terminal devices is faster and faster, and the functions are more and more complete, so that more and more interactions and various types can be provided by the terminal devices.
Existing terminal devices can generally respond to the needs of users by recognizing operation gestures of the users, for example, the terminal devices can switch videos being played for the users according to left-sliding or right-sliding gestures of the users. However, the operation gesture that can be recognized by the existing terminal device is single, and the terminal device can only switch within the same category, which affects the interaction experience of the user.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a control method and apparatus based on a sliding gesture, a terminal device, and a storage medium, which can switch an object displayed by the terminal device based on different operation gestures, simplify a step of switching the object displayed by the terminal device, and improve an interaction experience of a user.
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 slide gesture, including:
the method comprises the steps that the terminal equipment receives touch operation of a user for a first target object, wherein the first target object is an object displayed by the terminal equipment;
if the touch operation is a transverse sliding gesture, the terminal equipment 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:
and if the touch operation is an oblique sliding gesture, the terminal equipment displays prompt information to the user.
Optionally, after the terminal device receives a touch operation of the user for 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 pre-loading data of the second target object and the pre-loading data of the third target object into a data primary cache.
Optionally, the switching, by the terminal device, the displayed object from the first target object to the second target object specifically includes:
the terminal equipment acquires the pre-loading 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;
and the terminal equipment displays the pre-loading data of the second target object on the page data of the second target object.
Optionally, the switching, by the terminal device, the displayed object from the first target object to the third target object specifically includes:
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 the terminal equipment displays the preloading 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 slide gesture, including: the device comprises a receiving module and a processing module;
the terminal device comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving touch operation of a user for a first target object, and the first target object is an object displayed by the terminal device;
the processing module is used for switching the displayed object from a first target object to a second target object if the touch operation is a transverse 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 includes: a prompt 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, after the receiving module receives the touch operation of the user on the first target object, obtain the preloaded data of the second target object and the preloaded data of the third target object from the data secondary cache; and storing the pre-loading data of the second target object and the pre-loading data of the third target object into the data primary cache.
Optionally, the processing module is specifically configured to obtain preloaded data of a second target object from the data first-level cache, and obtain page data of the second target object from the page cache; and displaying the pre-loading 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 a third target object from the data first-level cache, and obtain page data of the third target object from the page cache; and displaying the preloading 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;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling based on the sliding gesture according to any one of the first aspect of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the control method based on the sliding gesture according to any one 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 for a first target object through terminal equipment, judging whether the touch operation belongs to a transverse 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 transverse 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 device completes switching between the display objects of the same category and the different categories based on different operation gestures, the step of switching the display objects of the terminal device is simplified, and the interaction experience of a user is improved.
Drawings
Fig. 1 is a schematic flowchart of a control method based on a slide 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 slide gesture according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another control device based on a slide 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 solution 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 in the present invention. Reference to "and/or" in embodiments of the invention is 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 of the present invention are used for distinguishing between different objects and not for limiting a particular order.
It should be noted that the following embodiments of the present invention may be implemented individually, or may be implemented in combination with each other, and the embodiments of the present invention are not limited in this respect.
Hereinafter, a control method and apparatus based on a swipe gesture, and technical effects thereof will be described in detail.
Fig. 1 is a schematic flowchart 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 for 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 present invention may be a smart phone, or may be any terminal device having touch and display functions, such as a notebook computer or a tablet computer, or a terminal device capable of controlling a display object of another device. 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 in one application installed on the terminal device.
The user can perform touch operation through an external Input Device (Input Device) or a touch screen of the terminal Device.
S102, the terminal device judges whether the touch operation is a transverse sliding gesture, a vertical sliding gesture or an oblique sliding gesture.
It should be noted that the touch operations performed by the user through the external input device or the display screen of the touch terminal device can be classified into any one of the following three categories:
the first type, touch operation, is a lateral swipe gesture.
The transverse sliding gesture at least comprises a gesture of horizontally sliding from the left side of the display screen of the terminal device to the right side of the display screen of the terminal device (a right sliding gesture for short) and a gesture of horizontally sliding from the right side of the display screen of the terminal device to the left side of the display screen of the terminal device (a left sliding gesture for short).
It should be noted that, in an actual operation, it is difficult for a user to ensure that the user performs a full horizontal sliding operation when performing a touch operation, therefore, 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 the sliding track of the touch operation as a straight line, when an included angle between the sliding track and the horizontal direction is within a first preset range, the touch operation analyzer determines that the touch operation belongs to a horizontal sliding gesture.
Alternatively, the first preset range may be less than or equal to 30 degrees. That is, when the included angle between the sliding track and the horizontal direction is in the range of 0 degree to 30 degrees, the touch operation belongs to the transverse sliding gesture.
The second type, touch operation, is a vertical swipe gesture.
The vertical sliding gesture at least comprises a gesture (a sliding gesture for short) of vertically sliding from the upper part of the display screen of the terminal device to the lower part of the display screen of the terminal device, and a gesture (an sliding gesture for short) of vertically sliding from the lower part of the display screen of the terminal device to the upper part of the display screen of the terminal device.
Similarly, in actual operation, the user is hard to guarantee that the touch operation is completely vertically slid, and therefore, the touch operation analyzer can also analyze whether the touch operation belongs to a vertical sliding gesture. For example, taking the sliding track of the touch operation as a straight line, when an included angle between the sliding track and the vertical direction is within a second preset range, the touch operation analyzer determines that the touch operation belongs to the vertical sliding gesture.
Optionally, 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 degree to 30 degrees, the touch operation belongs to the vertical sliding gesture.
And in the third category, the touch operation is a diagonal sliding gesture.
The diagonal sliding gesture includes at least a gesture of sliding from an upper right of the display screen of the terminal device to a lower left of the display screen of the terminal device, a gesture of sliding from an upper left of the display screen of the terminal device to a lower right of the display screen of the terminal device, a gesture of sliding from a lower right of the display screen of the terminal device to an upper left of the display screen of the terminal device, and a gesture of sliding from a lower left of the display screen of the terminal device to an upper right of the display screen of the terminal device.
For example, taking the sliding track of the touch operation as a straight line, when the included angle between the sliding track and the horizontal direction is in the range of 30 degrees to 60 degrees, the touch operation analyzer may determine that the touch operation belongs to the oblique sliding gesture.
In addition, a data secondary cache and a data primary cache are also arranged in the terminal equipment. The data secondary cache and the data primary cache are both used for storing preloaded data of an object, the data primary cache stores the preloaded data by adopting an LRU (least recent utilized) page replacement algorithm, and the time for the terminal equipment to acquire the data from the data primary cache is far shorter than the time for the terminal equipment to acquire the data from the data secondary cache. Meanwhile, the data secondary cache and the data primary cache 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 user experience, the terminal device may further obtain the preloaded data of the second target object and the preloaded data of the third target object from the data secondary cache; and storing the pre-loading data of the second target object and the pre-loading data of the third target object into the 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 should be further supplemented 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 slides left or right at the next time, 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 an upward sliding gesture and a downward sliding gesture, on the basis that the terminal device cannot judge whether the user needs to slide upward or downward at the next moment, the number of the third target objects is also two, that is, the third target object corresponding to the upward sliding gesture triggered by the user and the third target object corresponding to the downward sliding gesture triggered by the user.
Illustratively, taking a user album as an example, the first target object is a picture 1 in an 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 since 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, pictures 2 and 3 are the previous and next pictures of picture 1. The third target object comprises a B photo album corresponding to the user triggering the upward-sliding gesture and a C photo album corresponding to the user triggering the downward-sliding gesture, and since the picture 1 in the A photo album belongs to the picture, and the B photo album and the C photo album belong to the photo albums, the picture 1 in the A photo album belongs to different categories with the B photo album and the C photo album.
S103, if the touch operation is a transverse sliding gesture, the terminal device switches the displayed object from the first target object to the second target object.
Specifically, the method for switching the displayed object from the first target object to the second target object by the terminal device may include the following two steps:
And the terminal equipment is also internally provided with a page cache, and the page cache is used for storing page data of the object. Specifically, the page data may be a layout of the page, elements included in the page, and the like. Specifically, the page cache adopts a FIFO (first input first output) algorithm to dynamically release and multiplex page data.
And 2, the terminal equipment displays the pre-loading 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. From fig. 2(1) it can be seen that: the terminal device currently displays a first target object, wherein the first target object is a video 1 in the first application program. Because the lateral sliding gesture at least comprises a left sliding gesture and a right sliding gesture, when the touch operation is the left sliding gesture, the terminal device obtains the pre-loading data of the video 2 from the first-level cache of data, obtains the page data of the video 2 from the page cache, and displays the pre-loading data of the video 2 on the page data of the video 2 as shown in fig. 2(2), namely plays the video 2; when the touch control operation is a right swipe gesture, the terminal device obtains the pre-loaded data of the video 3 from the first-level cache of data, obtains the page data of the video 3 from the page cache, and displays the pre-loaded data of the video 3 on the page data of the video 3 as shown in fig. 2(3), that is, 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 pre-loaded data and/or 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 switching the displayed object from the first target object to the third target object by the terminal device may include the following two steps:
step a, the terminal equipment acquires the preloading data of the third target object from the first-level data cache and acquires the page data of the third target object from the page cache.
And step b, the terminal equipment displays the preloading 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. From fig. 3(1) it can be seen that: the terminal device currently displays a first target object, wherein the first target object is a video 1 in the first service content. Because the vertical sliding gesture at least includes a sliding-up gesture and a sliding-down gesture, when the touch operation is the sliding-up gesture, the terminal device obtains the pre-loading data of the second service content from the data-level cache, obtains the page data of the second service content from the page cache, and displays the pre-loading 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 glide gesture, the terminal device obtains the preloaded data of the third service content from the data-level cache, obtains the page data of the third service content from the page cache, and displays the preloaded 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 top or bottom object of different types, the preloading data and/or page data of the corresponding third target object may be empty.
And S105, if the touch operation is a slant sliding gesture, the terminal equipment displays prompt information to the user.
Step S105 is a step that can be optionally performed. Specifically, the prompt information may be a pop-up prompt box, a prompt tone sent by a speaker of the terminal device, or a prompt message that the terminal device displays a 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, and the embodiment of the present invention is not limited to this specifically.
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 all system versions of the system are adapted, so that the adaptability 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 method comprises the steps that the terminal equipment receives touch operation of a user for a first target object, wherein the first target object is an object displayed by the terminal equipment; if the touch operation is a transverse sliding gesture, the terminal equipment 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 for a first target object through terminal equipment, judging whether the touch operation belongs to a transverse 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 transverse 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 device completes switching between the display objects of the same category and the different categories based on different operation gestures, the step of switching the display objects of the terminal device is simplified, and the interaction experience of a user is improved.
Fig. 4 is a schematic structural diagram of a control device based on a slide gesture according to an embodiment of the present invention, and in particular, the control device based on the slide gesture may be configured in a terminal device, including: a receiving module 10 and a processing module 11.
The device comprises a receiving module 10, a processing module, a display module and a display module, wherein the receiving module is used for receiving touch operation of a user for a first target object, and the first target object is an object displayed by the terminal equipment;
the processing module 11 is configured to switch the displayed object from a 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; 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, further including: a prompt module 12.
The prompt module 12 is configured to display prompt information to a user if the touch operation is a diagonal sliding gesture.
Optionally, the processing module 11 is further configured to, after the receiving module 10 receives the touch operation of the user on the first target object, obtain the preloaded data of the second target object and the preloaded data of the third target object from the data secondary cache; and storing the pre-loading data of the second target object and the pre-loading data of the third target object into the data primary cache.
Optionally, the processing module 11 is specifically configured to obtain preloaded data of a second target object from the data first-level cache, and obtain page data of the second target object from the page cache; and displaying the pre-loading 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 a third target object from the data first-level cache, and obtain page data of the third target object from the page cache; and displaying the preloading 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 invention, and has 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 the processors 20 in the terminal device may be one or more, and one processor 20 is taken as an example in fig. 6; the processor 20, the memory 21, the input device 22 and the output device 23 in the terminal equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 6. A bus represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures.
The memory 21 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the control method based on the sliding gesture in the embodiment of the present invention. The processor 20 executes various functional applications and data processing of the terminal device by executing software programs, instructions and modules stored in the memory 21, that is, implements the control method based on the slide gesture described above.
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, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the 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 include memory located remotely from 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 device 22 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. The output device 23 may include a display device such as a display screen.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a control method based on a sliding gesture, which may be specifically, but not limited to, what is disclosed in the above method embodiments.
Computer storage media for embodiments of the invention may employ 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 the context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As will be appreciated by one skilled in the art, 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, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (12)
1. A control method based on a slide gesture is characterized by comprising the following steps:
the method comprises the steps that terminal equipment receives touch operation of a user for a first target object, wherein the first target object is an object displayed by the terminal equipment;
if the touch control operation is a transverse sliding gesture, the terminal equipment 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;
and if the touch control operation is a vertical sliding gesture, the terminal equipment 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.
2. The method of claim 1, further comprising:
and if the touch control operation is an oblique sliding gesture, the terminal equipment displays prompt information to a user.
3. The method according to claim 1, wherein after the terminal device receives a touch operation of a user for the first target object, the method further comprises:
the terminal equipment acquires the pre-loading data of the second target object and the pre-loading data of the third target object from a data secondary cache;
and the terminal equipment stores the pre-loading data of the second target object and the pre-loading data of the third target object into a data primary cache.
4. The method according to claim 3, wherein the switching, by the terminal device, the displayed object from the first target object to the second target object specifically comprises:
the terminal equipment acquires the pre-loading 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;
and the terminal equipment displays the pre-loading data of the second target object on the page data of the second target object.
5. The method according to claim 3, wherein the switching, by the terminal device, the displayed object from the first target object to a third target object specifically includes:
the terminal equipment acquires the preloading 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 the terminal equipment displays the preloading data of the third target object on the page data of the third target object.
6. A swipe gesture-based control device, comprising: the device comprises a receiving module and a processing module;
the receiving module is configured to receive a touch operation of a user for a first target object, where the first target object is an object displayed by the terminal device;
the processing module is configured to switch a 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; and if the touch control 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.
7. The apparatus of claim 6, further comprising: a prompt module;
and the prompt module is used for displaying prompt information to a user if the touch control operation is an oblique sliding gesture.
8. The apparatus of claim 6,
the processing module is further configured to obtain the preloaded data of the second target object and the preloaded data of the third target object from a data secondary cache after the receiving module receives a touch operation of a user for a first target object; and storing the pre-loading data of the second target object and the pre-loading data of the third target object into a data level one cache.
9. The apparatus of claim 8,
the processing module is specifically configured to obtain the preloaded data of the second target object from the data primary cache, and obtain the page data of the second target object from a page cache; and displaying the pre-loading data of the second target object on the page data of the second target object.
10. The apparatus of claim 8,
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 preloading data of the third target object on the page data of the third target object.
11. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the swipe gesture-based control method of any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a swipe gesture-based control method according to any one of claims 1-5.
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 true CN111381666A (en) | 2020-07-07 |
CN111381666B 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 (19)
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 |
US20140285455A1 (en) * | 2013-02-07 | 2014-09-25 | Tencent Technology (Shenzhen) Company Limited | Sliding control method and terminal device thereof |
WO2014190862A1 (en) * | 2013-05-28 | 2014-12-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for controlling application on intelligent terminal |
US20140368441A1 (en) * | 2013-06-12 | 2014-12-18 | Amazon Technologies, Inc. | Motion-based gestures for a computing device |
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 |
US20190034061A1 (en) * | 2016-11-08 | 2019-01-31 | Huawei Technologies Co., Ltd. | Object Processing Method And Terminal |
CN110389700A (en) * | 2018-04-19 | 2019-10-29 | 中兴通讯股份有限公司 | A kind of switching method that screen is shown, device and storage medium |
US20200155946A1 (en) * | 2017-07-24 | 2020-05-21 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for synchronously displaying game content and storage medium |
WO2021233409A1 (en) * | 2020-05-22 | 2021-11-25 | 阿里巴巴集团控股有限公司 | Page display method and apparatus, and electronic device |
-
2018
- 2018-12-27 CN CN201811611768.7A patent/CN111381666B/en active Active
Patent Citations (19)
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 |
US20140285455A1 (en) * | 2013-02-07 | 2014-09-25 | Tencent Technology (Shenzhen) Company Limited | Sliding control method and terminal device thereof |
WO2014190862A1 (en) * | 2013-05-28 | 2014-12-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for controlling application on intelligent terminal |
US20140368441A1 (en) * | 2013-06-12 | 2014-12-18 | Amazon Technologies, Inc. | Motion-based gestures for a computing device |
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 |
US20190034061A1 (en) * | 2016-11-08 | 2019-01-31 | Huawei Technologies Co., Ltd. | Object Processing Method And Terminal |
US20200155946A1 (en) * | 2017-07-24 | 2020-05-21 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for synchronously displaying game content and storage medium |
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 |
---|---|
CN111381666B (en) | 2023-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021035884A1 (en) | Screen mirroring method and apparatus, terminal, and storage medium | |
CN106294609B (en) | Page loading method and device | |
US9990109B2 (en) | Information display terminal | |
CN108334371B (en) | Method and device for editing object | |
CN107613402A (en) | A kind of barrage adjusting method, device and storage medium | |
US20190073124A1 (en) | Method and apparatus for controlling application | |
US8832591B2 (en) | Grid display device and grid display method in mobile terminal | |
KR101709427B1 (en) | Method and device for selecting information | |
WO2018112927A1 (en) | Information display method and apparatus, and terminal device | |
US9519310B2 (en) | Display method and terminal for changing displayed content based on the device orientation | |
KR102368044B1 (en) | User terminal device and method for controlling the user terminal device thereof | |
WO2020042468A1 (en) | Data processing method and device, and device for processing data | |
US20210208740A1 (en) | Method, Mobile Terminal, and Non-Transitory Computer-Readable Storage Medium for Controlling Displaying Direction | |
CN106293380A (en) | Information processing method and electronic equipment | |
CN113434065A (en) | Information processing method and terminal | |
CN110647286A (en) | Screen element control method, device, equipment and storage medium | |
CN115357156A (en) | Display method, display device, electronic equipment and readable storage medium | |
CN110753251A (en) | Video switching method and device and electronic equipment | |
KR20170014589A (en) | User terminal apparatus for providing translation service and control method thereof | |
CN104850340A (en) | Method and device for displaying file on touch display screen | |
CN111104037A (en) | Method and mobile terminal for helping visually impaired to browse | |
EP4328725A1 (en) | Display method and apparatus, electronic device, and storage medium | |
CN111381666B (en) | Control method and device based on sliding gesture, terminal equipment and storage medium | |
CN106951171B (en) | Control method and device of virtual reality helmet | |
CN115866314A (en) | Video playing method and 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 |