Touch Operation Processing Method and Terminal Device
20230236692 ยท 2023-07-27
Inventors
Cpc classification
G06F3/041
PHYSICS
G06F3/04842
PHYSICS
G06F2203/04806
PHYSICS
G06F3/0416
PHYSICS
G06F3/017
PHYSICS
G06F3/0488
PHYSICS
G06T3/40
PHYSICS
G06F3/04886
PHYSICS
G06F3/0428
PHYSICS
International classification
G06F3/041
PHYSICS
G06F3/04886
PHYSICS
G06F3/04842
PHYSICS
G06F3/0488
PHYSICS
Abstract
A touch operation processing method includes detecting a touch operation of a user, which starts from a border of a screen display area to the screen display area, using the first point touched by the touch operation in the screen display area as a starting point, and performing, according to the touch operation, reduction processing on an operation interface displayed in the screen display area, where one edge of an operation interface after the reduction processing includes the starting point.
Claims
1. An electronic device, comprising: a touch-sensitive screen comprising a screen display area and a border of the screen display area; a processor coupled to the touch-sensitive screen; and a memory coupled to the processor and configured to store instructions which, when executed by the processor, cause the electronic device to: display, on the touch-sensitive screen, an operation interface with a first size; detect, on the touch-sensitive screen, a sliding gesture, wherein the sliding gesture starts from the border and extends to an end point in the screen display area; display, on the touch-sensitive screen, the operation interface with a second size when a track length of the sliding gesture is a first length, wherein the second size is smaller than the first size; display, on the touch-sensitive screen, the operation interface with a third size when the track length is a second length, wherein the second size is larger than the third size, and wherein the first length is shorter than the second length; and perform a selection operation on content displayed at the end point.
2. The electronic device of claim 1, wherein the processor is further configured to execute the instructions to scale the operation interface from the third size back to the first size when the selection operation is completed.
3. The electronic device of claim 1, wherein the content comprises an application icon.
4. The electronic device of claim 1, wherein the third size is a minimized size for scaling.
5. The electronic device of claim 1, wherein the content comprises a button.
6. The electronic device of claim 1, wherein the selection operation comprises tapping.
7. The electronic device of claim 1, wherein the sliding gesture is associated with a starting point on the border, and wherein the operation interface with the third size is displayed proximate to the starting point.
8. The electronic device of claim 1, wherein the sliding gesture is associated with a starting point on the border, and wherein the starting point is in a preset determination area.
9. A gesture processing method implemented by an electronic device, wherein the gesture processing method comprises: displaying, on a touch-sensitive screen of the electronic device, an operation interface with a first size, wherein the touch-sensitive screen comprises a screen display area and a border of the screen display area; detecting, on the touch-sensitive screen, a sliding gesture, wherein the sliding gesture starts from the border and extends to an end point in the screen display area; displaying, on the touch-sensitive screen, the operation interface with a second size when a track length of the sliding gesture is a first length, wherein the second size is smaller than the first size; displaying, on the touch-sensitive screen, the operation interface with a third size when the track length is a second length, wherein the second size is larger than the third size, and wherein the first length is shorter than the second length; and performing a selection operation on content displayed at the end point.
10. The gesture processing method of claim 9, further comprising scaling the operation interface from the third size back to the first size when the selection operation is completed.
11. The gesture processing method of claim 9, wherein the content comprises an application icon.
12. The gesture processing method of claim 9, wherein the content comprises a button.
13. The gesture processing method of claim 9, wherein the selection operation comprises tapping.
14. The gesture processing method of claim 9, wherein the sliding gesture is associated with a starting point on the border, and wherein the operation interface with the third size is displayed proximate to the starting point.
15. The gesture processing method of claim 9, wherein the sliding gesture is associated with a starting point on the border, and wherein the starting point is in a preset determination area.
16. A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause an electronic device to: display, on a touch-sensitive screen of the electronic device, an operation interface with a first size, wherein the touch-sensitive screen comprises a screen display area and a border of the screen display area; detect, on the touch-sensitive screen, a sliding gesture, wherein the sliding gesture starts from the border and extends to an end point in the screen display area; display, on the touch-sensitive screen, the operation interface with a second size when a track length of the sliding gesture is a first length, wherein the second size is smaller than the first size; display, on the touch-sensitive screen, the operation interface with a third size when the track length is a second length, wherein the second size is larger than the third size, and wherein the first length is shorter than the second length; and perform a selection operation on content displayed at the end point.
17. The computer program product of claim 16, wherein the processor is further configured to execute the instructions to scale the operation interface from the third size back to the first size when the selection operation is completed.
18. The computer program product of claim 16, wherein the content comprises an application icon.
19. The computer program product of claim 16, wherein the sliding gesture is associated with a starting point on the border, and wherein the operation interface with the third size is displayed proximate to the starting point.
20. The computer program product of claim 16, wherein the sliding gesture is associated with a starting point on the border, and wherein the starting point is in a preset determination area.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0032] To describe the technical solutions in the embodiments of the present disclosure or in the prior art more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show some embodiments of the present disclosure, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more comprehensible, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The embodiments to be described are merely a part rather than all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
[0047]
[0048] Step S110: Detect a touch operation of a user, which starts from a border of a screen display area to the screen display area, and use the first point touched by the touch operation in the screen display area as a starting point.
[0049] A screen of a terminal device generally includes a display layer and a touch-sensitive layer that are superposed. The user obtains displayed content from the display layer and performs a touch operation on the terminal device through the touch-sensitive layer. The area of the touch-sensitive layer of the screen may be greater than that of the display layer of the screen. A display layer region of the screen of the terminal device is referred to as a screen display area, and a screen region other than the screen display area is referred as a border of the screen display area.
[0050] When a start position of the touch operation performed by the user on the terminal device is in the border of the screen display area of the terminal device and the touch operation slides into the screen display area of the terminal device from the border of the screen display area of the terminal device, the terminal device can detect and identify such a touch operation and define the first point touched by the touch operation in the screen display area as a starting point. The terminal device, for example, a mobile terminal device, may be a mobile phone, a tablet computer, or an E-book reader, which is not limited in the present disclosure.
[0051] Step S120: Perform, according to the touch operation, reduction processing on an operation interface displayed in the screen display area, where one edge of an operation interface after the reduction processing includes the starting point of the touch operation in the screen display area.
[0052] According to the touch operation detected in step S110, reduction processing is performed on the operation interface of an original size displayed in the screen display area. For example, according to factors such as the starting point or a sliding distance of the touch operation in the screen display area after the touch operation slides into the screen display area, reduction processing of different positions and proportions can be performed on the operation interface of an original size displayed in the screen display area, so as to obtain an operation interface having a smaller size and being suitable for an operation. The reduction processing may be equal proportion reduction or unequal proportion reduction, so as to obtain pictures of different proportions, such as a 16:9 picture or a 4:3 picture. The equal proportion reduction or the unequal proportion reduction is selected depending on a demand of the user, which is not limited in the embodiment of the present disclosure.
[0053] At least one edge of the operation interface after the reduction processing or an extension line of at least one edge of the operation interface after the reduction processing should include the starting point of the touch operation in the screen display area. That is, the operation interface after the reduction processing should closely contact the border from which the touch operation of the user starts, so that a finger of the same hand of the user, which initiates the touch operation, can reach an arbitrary position of the operation interface after the reduction processing.
[0054] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the touch operation, reduction processing is performed on the operation interface. The operation interface after the reduction processing is close to a position convenient for the user to perform a selection operation, and the demand can be met that the user triggers, by one hand, reduction processing on the operation interface and conveniently performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0055]
[0056] Step S110: Detect a touch operation of a user, which starts from a border of a screen display area to the screen display area, and use the first point touched by the touch operation in the screen display area as a starting point.
[0057] A screen of a terminal device generally includes a display layer and a touch-sensitive layer that are superposed. The user obtains displayed content from the display layer and performs a touch operation on the terminal device through the touch-sensitive layer. The area of the touch-sensitive layer of the screen of the terminal device may be greater than that of the display layer. A display layer region of the screen of the terminal device is referred to as a screen display area, and a screen region other than the screen display area is referred to as a border of the screen display area.
[0058] When a start position of the touch operation performed by the user on the terminal device is in the border of the screen display area of the terminal device and the touch operation slides into the screen display area of the terminal device from the border of the screen display area of the terminal device, the terminal device can detect and identify such a touch operation and define the first point touched by the touch operation in the screen display area as a starting point. The terminal device, for example, a mobile terminal device, may be a mobile phone, a tablet computer, or an E-book reader, which is not limited in the present disclosure.
[0059] Step S120: Perform, according to the touch operation, reduction processing on an operation interface displayed in the screen display area, where one edge of an operation interface after the reduction processing includes the starting point of the touch operation in the screen display area.
[0060] According to the touch operation detected in step S110, reduction processing is performed on the operation interface of an original size displayed in the screen display area. For example, according to factors such as the starting point or a sliding distance of the touch operation in the screen display area after the touch operation slides into the screen display area, reduction processing of different positions and proportions can be performed on the operation interface of an original size displayed in the screen display area, so as to obtain an operation interface having a smaller size and being suitable for an operation. The reduction processing may be equal proportion reduction or unequal proportion reduction, so as to obtain pictures of different proportions, such as a 16:9 picture or a 4:3 picture. The equal proportion reduction or the unequal proportion reduction is selected depending on a demand of the user, which is not limited in the embodiment of the present disclosure.
[0061] At least one edge of the operation interface after the reduction processing, or an extension line of at least one edge of the operation interface after the reduction processing, should include the starting point of the touch operation in the screen display area. That is, the operation interface after the reduction processing should closely contact the border from which the touch operation of the user starts, so that a finger of the same hand of the user, which initiates the touch operation, can reach an arbitrary position of the operation interface after the reduction processing.
[0062] Step S130: Use content displayed at an end point position of the touch operation as selected content of the user.
[0063] The end point position at which the touch operation is finished is detected, and the content at the end point position, for example, an icon of a certain application, a hyperlink address, a play/pause button, page up and page down buttons, or an exit button, is used as the selected content of the user. Types of selection operations, such as tapping and double tapping, can be performed on the selected content, and a type of a specific selection operation may be set in advance.
[0064] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the touch operation, reduction processing is performed on the operation interface. The operation interface after the reduction processing is close to a position convenient for the user to perform a selection operation, and the content displayed at the end point position of the touch operation is used as the selected content of the user, so that the demand can be met that the user triggers, by one hand, reduction processing on the operation interface and performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0065]
[0066] Step S210: Detect a touch operation of a user, which starts from a border of a screen display area to the screen display area, and use the first point touched by the touch operation in the screen display area as a starting point.
[0067] A screen of a terminal device generally includes a display layer and a touch-sensitive layer that are superposed. The user obtains displayed content from the display layer and performs a touch operation on the terminal device through the touch-sensitive layer. The area of the touch-sensitive layer of the screen of the terminal device may be greater than that of the display layer. A display layer region of the screen of the terminal device is referred to as a screen display area, and a screen region other than the screen display area is referred to as a border of the screen display area.
[0068] When a start position of the touch operation performed by the user on the terminal device is in the border of the screen display area of the terminal device and the touch operation slides into the screen display area of the terminal device from the border of the screen display area of the terminal device, the terminal device can detect and identify such a touch operation. The terminal device, for example, a mobile terminal device, may be a mobile phone, a tablet computer, or an E-book reader.
[0069] Step S220: Perform, according to the touch operation, reduction processing on an operation interface displayed in the screen display area, where one edge of an operation interface after the reduction processing includes the starting point of the touch operation in the screen display area.
[0070] According to the touch operation detected in step S210, reduction processing is performed on the operation interface of an original size displayed in the screen display area. For example, according to factors such as the starting point or a sliding distance of the touch operation in the screen display area after the touch operation slides into the screen display area, reduction processing of different positions and proportions can be performed on the operation interface of an original size displayed in the screen display area, so as to obtain an operation interface having a smaller size and being suitable for an operation. The reduction processing may be equal proportion reduction or unequal proportion reduction, so as to obtain pictures of different proportions, such as a 16:9 picture or a 4:3 picture. The equal proportion reduction or the unequal proportion reduction is selected depending on a demand of the user, which is not limited in the embodiment of the present disclosure.
[0071] At least one edge of the operation interface after the reduction processing or an extension line of at least one edge of the operation interface after the reduction processing should include the starting point of the touch operation in the screen display area. That is, the operation interface after the reduction processing should closely contact the border from which the touch operation of the user starts, so that a finger of the same hand of the user, which initiates the touch operation, can reach an arbitrary position of the operation interface after the reduction processing.
[0072] Step S230: Use content displayed at an end point position of the touch operation as selected content of the user.
[0073] The end point position at which the touch operation is finished is detected, and the content at the end point position, for example, an icon of a certain application, a hyperlink address, a play/pause button, page up and page down buttons, or an exit button, is used as the selected content of the user. Types of selection operations, such as tapping and double tapping, can be performed on the selected content, and a type of a specific selection operation may be set in advance.
[0074] Step S240: Restore the operation interface after the reduction processing to the operation interface originally displayed in the screen display area.
[0075] After the finger of the user leaves the screen display area, that is, after a selection operation on the selected content is completed, the operation interface after the reduction processing can be automatically restored to the operation interface originally displayed in the screen display area. Of course, the operation interface after the reduction processing may also be restored to the operation interface originally displayed in the screen display area by using methods such as pressing a button of the terminal device or tapping the screen. The method of triggering step S240 is not limited in the embodiment of the present disclosure.
[0076] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the touch operation, reduction processing is performed on the operation interface. The operation interface after the reduction processing is close to a position convenient for the user to perform a selection operation, and the content displayed at the end point position of the touch operation is used as the selected content of the user. After the selection operation is completed, the size of the operation interface is restored. The demand can be met that the user triggers, by one hand, reduction processing on the operation interface, performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device, and after completing the selection operation, restores the operation interface when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0077] In the method embodiment shown in any one of
[0078] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the track length of the touch operation, the operation interface is reduced to an operation interface of a corresponding size. The operation interface after the reduction processing is close to a position convenient for the user to perform a selection operation, and the content displayed at the end point position of the touch operation can be used as the selected content of the user for the selection operation. The demand can be met that the user triggers, by one hand, reduction processing on the operation interface and conveniently and accurately performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0079] The technical solution of any one of the method embodiments in
[0080]
[0081] Step S310: Detect whether a touch operation of a user starts from a border of a screen display area to the screen display area, if the touch operation of the user does not start from a border of the screen display area to the screen display area, but starts from a position which is within the screen display area, perform a common touch operation (step S315); if the touch operation of the user starts from a border of the screen display area to the screen display area, perform step S320.
[0082] Before step S310 of detecting whether the touch operation of the user starts from a border of the screen display area to the screen display area, an input instruction of the user may firstly be received. A border detecting function of the screen display area is started according to the input instruction, so as to avoid the situation that the processing method provided by the embodiment of the present disclosure is started by mistake when the user does not need to perform reduction processing on the operation interface. The input instruction of the user may be in the form of starting the border detecting function by presetting or in other forms, which is not limited in the embodiment of the present disclosure.
[0083] Step S320: Determine whether a starting point of the touch operation in the screen display area is in the range of a preset determination region, if the starting point is in the range of the preset determination region, perform reduction processing on the operation interface with the starting point as a fixed reference point (step S330); if the starting point is not in the range of the preset determination region, perform reduction processing on the operation interface with an endpoint, which is an endpoint of the determination region and is close to the starting point, as the fixed reference point (step S340), where a part of the operation interface at a position of the fixed reference point remains unchanged during the reduction processing.
[0084] For step S330,
[0085] For the step S340,
[0086] Step S350: Use content displayed at an end point position of the touch operation as selected content of the user. Referring to
[0087] After the selection operation is completed, the operation interface 306 after the reduction processing may also be restored to the operation interface originally displayed in the screen display area 304. After the finger of the user leaves the screen display area 304, that is, after the selection operation on the selected content is completed, the operation interface 306 after the reduction processing can be automatically restored to the operation interface originally displayed in the screen display area 304. Of course, the operation interface 306 after the reduction processing may also be restored to the operation interface originally displayed in the screen display area 304 by using methods such as pressing a button (not shown) of the terminal device 300 or tapping the screen. The method of triggering the restoring of the operation interface is not limited in the embodiment of the present disclosure.
[0088] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the starting point position and the displacement of the touch operation in the screen display area, the operation interface is reduced to an operation interface of a corresponding size at a corresponding position. The content displayed at the end point position of the touch operation is used as the selected content of the user, and after the selection operation is completed, the size of the operation interface may be restored. The demand can be met that the user triggers, by one hand, reduction processing on the operation interface and conveniently and accurately performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0089]
[0090] Step S410: Detect whether a touch operation of a user starts from a border of a screen display area to the screen display area, if the touch operation of the user does not start from a border of the screen display area to the screen display area, but starts from a position which is within the screen display area, perform a common touch operation (step S415); if the touch operation of the user starts from a border of the screen display area to the screen display area, perform step S420.
[0091] Before the step S410 of detecting whether the touch operation of the user starts from a border of the screen display area to the screen display area, an input instruction of the user may firstly be received. A border detecting function of the screen display area is started according to the input instruction, so as to avoid the situation that the processing method provided by the embodiment of the present disclosure is started by mistake when the user does not need to perform reduction processing on the operation interface. The input instruction of the user may be in the form of starting the border detecting function by presetting or in other forms, which is not limited in the embodiment of the present disclosure.
[0092] Step S420: Perform reduction processing on the operation interface with an endpoint of an edge, which is an edge of the screen display area on which the starting point lies, as a fixed reference point, where the endpoint and the starting point are located at the same side of a preset determination point on the edge, which is an edge of the screen display area on which the starting point lies, and a part of the operation interface at a position of the fixed reference point maintains unchanged during the reduction processing.
[0093]
[0094] Step S430: Use content displayed at an end point position of the touch operation as selected content of the user. Referring to
[0095] After the selection operation is completed, the operation interface 406 after the reduction processing may also be restored to the operation interface originally displayed in the screen display area 404. After the finger of the user leaves the screen display area 404, that is, after the selection operation on the selected content is completed, the operation interface 406 after the reduction processing can be automatically restored to the operation interface originally displayed in the screen display area 404. Of course, the operation interface 406 after the reduction processing may also be restored to the operation interface originally displayed in the screen display area 404 by using methods such as pressing a button (not shown) of the terminal device 400 or tapping the screen. The method of triggering the restoring of the operation interface is not limited in the embodiment of the present disclosure.
[0096] In the touch operation processing method provided by this embodiment, the touch operation of the user, which starts from the border to the screen display area, is detected, and according to the starting point position and the displacement of the touch operation in the screen display area, the operation interface is reduced to an operation interface of a corresponding size at a corresponding position. The content displayed at the end point position of the touch operation may be used as the selected content of the user to perform a selection operation, and after the selection operation is completed, the size of the operation interface may be restored. The demand can be met that the user triggers, by one hand, reduction processing on the operation interface and conveniently and accurately performs a selection operation on content at an arbitrary position in the entire screen display area of the terminal device when the user holds the terminal device with a large screen with one hand and performs an operation on it.
[0097]
[0098] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0099]
[0100] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0101]
[0102] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0103] In the embodiment of the terminal device shown in any one of
[0104] In the embodiment of the terminal device shown in any one of
[0105] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in any one of
[0106] In the embodiment of the terminal device shown in any one of
[0107] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in any one of
[0108]
[0109] The components communicate through one or more communication buses or signal lines. The terminal device 700 may include, but is not limited to, a mobile phone or a tablet computer. Each of the components shown in
[0110] The touch screen 710 is configured to detect a touch operation of a user, which starts from a border of a screen display area to the screen display area, and use the first point touched by the touch operation in the screen display area as a starting point. The processor 720 is configured to perform, according to the touch operation, reduction processing on an operation interface displayed in the screen display area, where one edge of an operation interface after the reduction processing includes the starting point.
[0111] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0112] Further, the touch screen 710 is further configured to use content displayed at an end point position of the touch operation as selected content of the user.
[0113] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0114] Further, the processor 720 is further configured to restore the operation interface after the reduction processing to the operation interface originally displayed in the screen display area.
[0115] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in
[0116] In the embodiment of the terminal device shown in
[0117] In the embodiment of the terminal device shown in
[0118] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in any one of
[0119] In the embodiment of the terminal device shown in
[0120] The terminal device in this embodiment may be configured to execute the technical solution of the method embodiment shown in any one of
[0121] Persons of ordinary skill in the art may understand that all or part of the steps of the methods in the embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program is run, the foregoing steps of the method embodiments are performed. The storage medium may be any medium capable of storing program codes, such as read only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0122] Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure other than limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof; without departing from the idea and scope of the technical solutions of the embodiments of the present disclosure.