Interface interaction method, device, electronic device and storage medium
By responding to the sliding touch operation on the smart terminal, it is determined that the second touch operation is consistent with the first sliding operation type and combined with the interface status and touch point position, and the exit operation is difficult to distinguish between the exit operation and the browsing operation in the interface interaction of the smart terminal. The problem is to achieve smarter interface interaction.
Patent Information
- Application Number
- CN202110469070.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-28
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2041-04-28
AI Technical Summary
The diversified interface interaction mode of smart terminals makes it difficult to distinguish between exit operations and browsing operations, resulting in inadequate interface interaction.
By responding to the sliding touch operation on the display screen, it is determined that the second touch operation is consistent with the operation type of the first sliding touch operation, and the trigger conditions are set based on the status of the target interface and the position relationship of the touch point. To distinguish between exit and browse operations.
Effectively distinguish between sliding switching interface operation and sliding exit interface operation, enhances the intelligence of interface interaction and improves the accuracy and convenience of user operations.
Smart Images

Figure CN115344185B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent terminal technology, and in particular to an interface interaction method, device, electronic device and storage medium. Background Art
[0002] In the prior art, the interface interaction mode of the smart terminal can realize different functions through sliding operations in different directions. For example, different applications can be viewed by sliding up or down on the application list interface.
[0003] However, with the development of smart terminals, the interface interaction modes of smart terminals are becoming more and more diverse, but the user's operation methods are relatively single. In some cases, the operation of exiting the current interface may conflict with the operation of browsing the interface content, resulting in the inability to distinguish between the exit operation and the browsing interface operation. Summary of the invention
[0004] The embodiments of the present application provide an interface interaction method, device, electronic device and storage medium, which can effectively distinguish between sliding to switch interfaces and sliding to exit interfaces, making the interface interaction more intelligent.
[0005] In a first aspect, an interface interaction method is provided, which is applied to a display screen with a touch function, comprising:
[0006] In the process of displaying the target interface on the display screen, in response to the received first sliding touch operation, slidingly displaying the target interface;
[0007] During the process of sliding and displaying the target interface, receiving a second touch operation;
[0008] If the second touch operation meets the preset trigger condition, the target interface is exited; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
[0009] In one optional embodiment, the second touch operation and the first sliding touch operation having the same operation type include: the second touch operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
[0010] In one optional embodiment, if the second touch operation satisfies a preset trigger condition, exiting the target interface includes:
[0011] If the target interface meets the preset interface exit condition and the second touch operation meets the trigger condition, the target interface is exited.
[0012] In one of the optional embodiments, the above-mentioned interface exit condition includes: the operation state of the target interface is a waiting-for-slide exit state; the waiting-for-slide exit state is a state determined when the target boundary of the target interface is displayed on the display screen.
[0013] In one of the optional embodiments, the above method further includes:
[0014] If the second touch operation does not meet the trigger condition, the waiting-to-slide-exit state is exited.
[0015] In one of the optional embodiments, the second touch operation is an operation triggered after a target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
[0016] In one of the optional embodiments, the above method further includes:
[0017] In the process of sliding and displaying the target interface, the interface state of the target interface is obtained; the interface state represents the sliding track of the target interface;
[0018] If the interface state is the preset interface state, a target boundary of the target interface is determined to be displayed on the display screen.
[0019] In one of the optional embodiments, the preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation until the target boundary stops at the boundary of the display screen; or,
[0020] The preset interface state is that the target interface slides along the first direction corresponding to the sliding touch operation to the target boundary across the boundary of the display screen, and after sliding to the preset position, slides along the second direction to the target boundary and stays at the boundary of the display screen; the second direction is opposite to the first direction.
[0021] In one of the optional embodiments, the trigger condition further includes:
[0022] The relationship between the position of the touch point of the second touch operation and the boundary of the display screen meets a preset threshold condition.
[0023] In one of the optional embodiments, the relationship between the position of the touch point of the second touch operation and the boundary of the display screen satisfies a preset threshold condition, including:
[0024] The number of pixels between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset number threshold, and / or,
[0025] The distance between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset distance threshold.
[0026] In a second aspect, an interface interaction method is provided, which is applied to a display screen with a touch function, comprising:
[0027] During the process of displaying the target interface on the display screen, receiving a touch operation;
[0028] If the touch operation meets the preset trigger condition, the target interface is exited; the trigger condition includes that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, and the operation type of the touch operation is the preset operation type.
[0029] In one of the optional embodiments, the relationship between the position of the touch point of the touch operation and the boundary of the display screen satisfies a preset threshold condition, including:
[0030] The number of pixels between the position of the initial touch point of the touch operation and the border of the display screen is less than a preset number threshold, and / or,
[0031] The distance between the position of the initial touch point of the touch operation and the border of the display screen is less than a preset distance threshold.
[0032] In a third aspect, an interface interaction device is provided, the device comprising:
[0033] A display module, configured to slide and display the target interface in response to a received first sliding touch operation during a process in which the display screen displays the target interface;
[0034] A receiving module, used for receiving a second touch operation during the process of sliding and displaying the target interface;
[0035] The exit module is used to exit the target interface if the second touch operation meets a preset trigger condition; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
[0036] In a fourth aspect, an interface interaction device is provided, the device comprising:
[0037] A receiving module, used for receiving a touch operation while the display screen is displaying a target interface;
[0038] An exit module is used to exit the target interface if the touch operation meets a preset trigger condition; the trigger condition includes that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets a preset threshold condition, and the operation type of the touch operation is a preset operation type.
[0039] In a fifth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned interface interaction method when executing the computer program.
[0040] In a sixth aspect, a computer-readable storage medium stores a computer program, which implements the above-mentioned interface interaction method when executed by a processor.
[0041] In the above-mentioned interface interaction method, device, electronic device and storage medium, during the process of displaying the target interface on the display screen, the terminal displays the target interface by sliding in response to the received first sliding touch operation, and during the process of sliding the target interface, receives a second touch operation, and exits the target interface if the second touch operation satisfies a preset trigger condition, wherein the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation. In this solution, the terminal displays the target interface by sliding in response to the first sliding touch operation on the display screen, and during the sliding display process, the target interface is ejected if the operation type of the second touch operation is consistent with that of the first sliding touch operation, that is, for the same type of touch operations, normal interface operations and exit interface operations can be distinguished, thereby enhancing the intelligence of the terminal's interface interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 is a schematic diagram of an interface interaction mode in an up and down sliding mode of a smart terminal in one embodiment;
[0044] Figure 2 is a schematic diagram of an interface interaction mode in an omnidirectional sliding mode of a smart terminal in an embodiment;
[0045] Figure 3 is a flow chart of an interface interaction method in an embodiment;
[0046] Figure 4 A schematic diagram of an interface interaction of a smart terminal in which an interface interaction method is located in an embodiment;
[0047] Figure 5 A schematic diagram of an interface interaction of a smart terminal where an interface interaction method is located in an embodiment;
[0048] Figure 6 is a flow chart of an interface interaction method in another embodiment;
[0049] Figure 7 A schematic diagram of an interface interaction of a smart terminal where an interface interaction method is located in an embodiment;
[0050] Figure 8 A schematic diagram of an interface interaction of a smart terminal where an interface interaction method is located in an embodiment;
[0051] Fig. 9 A schematic diagram of an interface interaction of a smart terminal where an interface interaction method is located in an embodiment;
[0052] Fig.10 is a flow chart of an interface interaction method in another embodiment;
[0053] Fig.11 is a structural block diagram of an interface interaction device in an embodiment;
[0054] Fig.12 is a structural block diagram of an interface interaction device in another embodiment;
[0055] Fig.13 FIG. 4 is a structural block diagram of an electronic device in an embodiment. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client. Both the first client and the second client are clients, but they are not the same client.
[0058] In the prior art, the interface interaction mode of the smart terminal can realize different functions by sliding operations in different directions. For example, the interaction of the application list interface on the watch is a sliding mode up and down, such as Figure 1 As shown, Figure 1 A smart watch dial display interface based on the up and down sliding interaction mode is given. Different applications can be viewed by sliding up and down. In this interaction mode, the right sliding operation can be set to exit the current interface.
[0059] However, with the development of smart terminals, the interface interaction modes of smart terminals are becoming more and more diverse. For example, it can be an omnidirectional interaction mode such as up, down, left, and right. Figure 2 As shown, Figure 2A watch dial display interface for a smart watch based on an omnidirectional sliding interaction mode is provided. In the prior art, the operation of swiping right to exit the current interface and the operation of swiping right to switch interfaces may conflict, resulting in an inability to distinguish between the swiping right to exit and the swiping right to switch interfaces, resulting in insufficient intelligence in the interface interaction.
[0060] Based on the above problems, this embodiment provides an interface interaction method, which is applied to Figure 2 In the given display screen with touch function and the touch mode being an omnidirectional interactive mode, the terminal can obtain the touch operation generated based on the display screen, and perform the corresponding operation after at least two logical judgments according to the touch operation, which can effectively distinguish the exit interface operation from the browsing interface operation, and enhance the intelligence of the interface interaction. Optionally, the terminal can also be a mobile phone, a smart watch, a tablet computer, and other portable wearable devices with a touch interface.
[0061] Figure 3 FIG. 1 is a flow chart of an interface interaction method in an embodiment. The interface interaction method in this embodiment is executed on Figure 2 The following describes the terminal in the example. Figure 3 As shown, the interface interaction method includes steps 201 to 203.
[0062] Step 201 : During display of a target interface on a display screen, the target interface is displayed by sliding in response to a received first sliding touch operation.
[0063] The target interface is the current operation interface, which can be any display interface of the terminal. For example, the target interface can be an application list interface or an application content interface. The first sliding touch operation refers to a sliding behavior performed by a user based on the display screen of the terminal. For example, the first sliding touch operation can be a sliding operation in any direction such as sliding up, sliding down, sliding left, sliding right, etc. Sliding display means that the target interface continuously slides in a certain direction on the display screen, for example, the target interface continuously slides to the right on the display screen, or the target interface continuously slides upward on the display screen, etc.
[0064] In this embodiment, when the user generates a first sliding touch operation based on the display screen, the terminal responds to the user's first sliding touch operation, determines the corresponding sliding direction according to the first sliding touch operation, and slides to display the target interface in the sliding direction. For example, the user generates a right sliding operation based on the display screen, and the terminal responds to the user's first sliding touch operation, determines that the sliding direction of the first sliding touch operation is a right sliding, and slides to the right according to the sliding direction to display the target interface. The terminal's response to the first sliding touch operation in other directions is similar to the response to the right sliding operation. Optionally, the terminal can also obtain the sliding amplitude of the first sliding touch operation, so as to perform the operation of sliding to display the target interface according to the sliding amplitude and sliding direction, which is not limited in this embodiment.
[0065] Step 202: receiving a second touch operation during the process of sliding and displaying the target interface.
[0066] The second touch operation may be a sliding operation or a contact operation.
[0067] In this embodiment, the terminal obtains the second touch operation triggered by the user during the sliding display of the target interface according to the first sliding touch operation. For example, the terminal can obtain the second sliding operation during the sliding display of the target interface, and the second sliding operation can be a right sliding operation, a left sliding operation, an upward sliding operation, a downward sliding operation, and other omnidirectional sliding operations; optionally, the terminal can also obtain the second touch point operation during the sliding display of the target interface, and the second touch point operation can be clicking the target interface once, clicking the target interface continuously for multiple times, etc. In the case of obtaining the second touch point operation, the terminal can also obtain the initial touch point position of the second touch point operation, which is not limited in this embodiment.
[0068] Optionally, in one of the optional embodiments, the second touch operation is an operation triggered after a target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
[0069] Among them, the terminal can determine the target boundary of the target interface according to user habits or business needs, where the target boundary is related to the sliding direction of the first sliding touch operation. For example, if the first sliding touch operation is a right sliding operation, then the target boundary of the target interface is the left boundary; if the first sliding touch operation is a left sliding operation, then the target boundary of the target interface is the right boundary, and similarly for other directions.
[0070] In this embodiment, during the process of the terminal executing the sliding display of the target interface according to the first sliding touch operation, the terminal can determine whether the target boundary of the target interface is in the display screen of the display screen according to the sliding trajectory of the target interface; or, the terminal can also obtain the position information of the target boundary after the target interface is slid and displayed, and determine whether the target boundary is in the display screen according to the position information of the target boundary. When the terminal determines that the target boundary of the target interface is in the display screen, it receives the second touch operation triggered by the user based on the target interface.
[0071] Step 203: if the second touch operation satisfies a preset trigger condition, exit the target interface; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
[0072] Among them, the terminal can determine the exit trigger condition according to user habits or business needs, wherein the second touch operation is consistent with the operation type of the first sliding touch operation, that is, if the first sliding touch operation is a right sliding operation, then the second touch operation is also a right sliding operation, or, if the first sliding touch operation is a left sliding operation, then the second touch operation is also a left sliding operation, which is not limited in the embodiment of the present application.
[0073] In this embodiment, when the trigger condition is that the operation type of the second touch operation is consistent with that of the first sliding touch operation, for example, the first sliding touch operation is a right slide, and the second touch operation is not a right slide either, at this time, the terminal determines that the second touch operation satisfies the trigger condition and exits the target interface. Optionally, the trigger condition may also include that the second touch operation is a preset operation type, and the preset operation type may include a preset number of contact operations. For example, the preset number of contact operations is clicking the display interface twice in succession. If the second touch operation is clicking the display interface twice in succession, it is determined that the second touch operation satisfies the preset operation type, i.e., the trigger condition is satisfied. At this time, the terminal exits the target interface. For example, when the target interface is an application list interface, the terminal may return to the main display interface after exiting the target interface. Optionally, in the scenario where the terminal is a smart watch, the main display interface may be a dial interface, which can be referred to. Figure 4 As shown, Figure 4 A schematic diagram of the terminal display screen from being in the target interface to exiting the target interface is given.
[0074] The interface interaction method in this scheme is illustrated by taking the terminal as a smart watch and the right swipe operation as the set operation for exiting the interface, that is, taking the first sliding touch operation to exit the interface as a right sliding touch operation, the target boundary of the display screen as the left boundary, and the second touch operation being the same as the first sliding touch operation, that is, both being right swipe operations.
[0075] In the process of displaying the target interface based on the display screen, the smart watch receives a right-swipe touch operation triggered by the user, and slides the target interface to the right in response to the right-swipe touch operation; the smart watch obtains the sliding trajectory of the target interface, and determines the interface state of the target interface according to the sliding trajectory of the target interface; if the interface state result of the target interface is that the target interface slides in the right-swiping direction until the left border stays at the left border of the display screen; or, the target interface slides in the right-swiping direction to the left border, crosses the border of the display screen, and slides to a preset position and then rebounds to the left border and stays at the left border of the display screen, then it is determined that the left border of the target interface is displayed on the display screen. At this time, the smart terminal can set the operation state of the target interface to the waiting for sliding exit state, and obtain a second touch operation. When the second touch operation is also a right-swiping operation, the target interface is exited.
[0076] In the interface interaction method of this embodiment, during the process of displaying the target interface on the display screen, the terminal displays the target interface by sliding in response to the received first sliding touch operation. During the process of displaying the target interface by sliding, the terminal receives a second touch operation. If the second touch operation satisfies a preset trigger condition, the target interface is exited, wherein the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation. In this solution, the terminal displays the target interface by sliding in response to the first sliding touch operation on the display screen. During the sliding display process, the target interface is launched when the operation type of the second touch operation is consistent with that of the first sliding touch operation. That is, for the same type of touch operation, normal interface operation and exit interface operation can be distinguished, thereby enhancing the intelligence of the terminal's interface interaction.
[0077] In order to enhance the intelligence of the terminal's interface interaction and optimize the user's interactive experience, in one optional embodiment, the second touch operation is consistent with the operation type of the first sliding touch operation, including: the second touch operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
[0078] In this embodiment, taking the first sliding touch operation as a right slide as an example, when the terminal slides to the right to display the target interface in response to the right slide operation, it receives a second touch operation. If the second touch operation is still a right slide operation, that is, the terminal determines that the sliding direction of the second touch operation is consistent with the sliding direction of the first sliding touch operation, that is, both are right slides. At this time, the terminal executes the operation of exiting the target interface.
[0079] In this embodiment, the sliding direction of the first touch operation is consistent with that of the second touch operation, which can accurately express the user's intention to exit the current target interface, so that the second touch operation is used as a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation as a trigger condition, and the judgment result obtained is more accurate, that is, it can effectively achieve the purpose of sliding to exit the interface, and the judgment logic is simple and easy to implement.
[0080] In some scenarios, in order to more accurately determine whether it is necessary to exit the target interface, the state of the target interface can also be judged. In one optional embodiment, if the second touch operation meets the preset trigger condition, the target interface is exited, including: if the target interface meets the preset interface exit condition and the second touch operation meets the trigger condition, the target interface is exited.
[0081] The preset interface exit condition may include that the target boundary of the target interface appears in the display screen, or that the state of the target interface is in a state to be slid out. In this embodiment, the terminal determines to execute the operation of exiting the target interface when it is determined that the target boundary of the target interface appears in the display screen and the second touch operation satisfies the trigger condition; or the terminal determines to execute the operation of exiting the target interface when it is determined that the state of the target interface is in a state to be slid out and the second touch operation satisfies the trigger condition.
[0082] Optionally, the interface exit condition includes: the operation state of the target interface is a pending slide exit state; the pending slide exit state is a state determined when the target boundary of the target interface is displayed on the display screen.
[0083] In this embodiment, the terminal may also identify the operation state of the target interface according to the display condition of the target boundary of the target interface. In this case, the terminal sets the interface exit condition as the operation state of the target interface is in the waiting slide exit state.
[0084] In this embodiment, the first sliding touch operation is a right slide, and the target boundary of the target interface is the left boundary. Figure 5 As shown, the terminal determines that the target interface is the left border, that is, Figure 5 When the left boundary 1 of the dotted box given in the figure is in the display screen 2, the operation state of the target interface is determined to be the state to be slid to exit. When the terminal detects that the left boundary of the target interface appears in the display screen, the operation state of the target interface is set to the state to be slid to the right to exit the interface. If the second touch operation detected in the state to be slid to the right to exit the interface meets the trigger condition, the target interface is exited.
[0085] In this embodiment, the terminal can set the interface exit condition based on the operation status by setting the operation status of the target interface, thereby distinguishing the interface browsing and interface exit operations through at least two logical judgments, thereby enhancing the intelligence of the interface interaction.
[0086] When the terminal performs logical judgment according to the second touch operation and the trigger condition, there is another situation. In one optional embodiment, the method further includes: if the second touch operation does not meet the trigger condition, exiting the waiting to slide exit state.
[0087] In this embodiment, when the trigger condition is that the second touch operation is consistent with the first sliding touch operation type, the first sliding touch operation is a right slide as an example, and the second touch operation obtained by the terminal is a sliding touch operation in a direction other than the right slide, or a touch operation, it can be considered that the current second touch operation does not meet the exit trigger condition, and the terminal exits the waiting slide exit state. Optionally, when the trigger condition is that the second touch operation meets the preset operation type, the operation type is to tap the screen twice as an example, and the second touch operation obtained by the terminal is other sliding touch operations, or a single touch operation, it can be considered that the second touch operation does not meet the trigger condition, and the terminal exits the waiting slide exit state; optionally, the number of touches of the touch operation is not limited.
[0088] In this embodiment, after determining that the second touch operation does not meet the trigger condition, the terminal exits the waiting-to-slide-exit state, that is, promptly restores the operation state of the target interface, thereby releasing the resources corresponding to the marked state without affecting the functions corresponding to other touch operations.
[0089] The terminal may determine whether the target boundary of the target interface is within the display screen by using a variety of methods. In one optional embodiment, for example, Figure 6 As shown, the above method also includes:
[0090] Step 301, in the process of sliding and displaying the target interface, the interface state of the target interface is obtained; the interface state represents the sliding track of the target interface.
[0091] The sliding track may include the sliding distance, sliding position, sliding amplitude, etc. of the target interface.
[0092] In this embodiment, in the process of sliding the target interface in response to the first sliding touch operation, the terminal can optionally determine the sliding amplitude of the target interface according to the sliding amplitude of the first sliding touch operation. In this way, the terminal should store the corresponding relationship between the sliding amplitude of the first sliding touch operation and the sliding amplitude of the target interface. Alternatively, the terminal can also determine the sliding distance of the target interface according to the sliding amplitude of the first sliding touch operation. In this way, the terminal should store the corresponding relationship between the sliding distance of the first sliding touch operation and the sliding amplitude of the target interface. Optionally, the terminal can also generate the sliding track of the target interface by the sliding amplitude or sliding distance of the target interface, so as to determine the interface state of the target interface, wherein, taking the first sliding touch operation as a right slide as an example, the sliding track of the target interface includes the target interface sliding to the right for a distance, but the left boundary of the target interface is not in the display screen; the target interface slides to the right for a distance, and the left boundary of the target interface is just located at the left boundary of the display screen; the target interface slides to the right for a distance, and the left boundary of the target interface is in the display screen area, and then the target interface rebounds to the left, so that the left boundary of the target interface is located at the left boundary of the display screen, etc.
[0093] Step 302: If the interface state is a preset interface state, a target boundary of the target interface is determined to be displayed on the display screen.
[0094] Optionally, in one embodiment, the preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation until the target boundary stops at the boundary of the display screen; or, the preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation to the target boundary, crosses the boundary of the display screen, slides to the preset position, and then slides in the second direction to the target boundary and stops at the boundary of the display screen; the second direction is opposite to the first direction.
[0095] In this embodiment, the first sliding touch operation is swiping right as an example, and the preset interface state includes sliding the target interface right until the left boundary stops at the boundary of the display screen, or sliding the target interface right until the target boundary crosses the boundary of the display screen, and sliding left to rebound to the position where the left boundary stops at the boundary of the display screen. Figure 7 To explain, Figure 7 As shown, the target interface in the left schematic diagram slides right along the right sliding arrow to the position of the middle schematic diagram, and then rebounds to the position of the right schematic diagram along the left sliding arrow. At this time, the left boundary 1 of the target interface is in the display screen. Optionally, when the terminal obtains the interface state of the target interface, the target interface slides to the right for a certain distance, but the left boundary of the target interface is not in the display screen, that is, it does not meet the preset interface state. At this time, the terminal determines that the target boundary of the target interface is not in the display screen.
[0096] In this embodiment, the terminal determines whether the target boundary of the target interface is within the display screen through the interface state of the target interface, thereby determining whether the user wants to exit the interface. This can effectively distinguish between interface browsing and interface exit operations, and optimize the interface interaction experience.
[0097] The terminal may also determine whether to exit the target interface based on the position of the touch point of the second touch operation. In one optional embodiment, the trigger condition further includes: the relationship between the position of the touch point of the second touch operation and the boundary of the display screen meets a preset threshold condition.
[0098] In this embodiment, the terminal determines whether the relationship between the position of the touch point and the target boundary of the display screen meets the preset threshold condition based on the position of the touch point of the second touch operation. For example, if the distance between the position of the touch point and the target boundary of the display screen is less than the preset distance threshold, the relationship between them is considered to meet the preset threshold condition; or, if the number of pixels between the position of the touch point and the target boundary of the display screen is less than a preset number of pixels, the relationship between them is considered to meet the preset threshold condition; or, if the position of the touch point is within a preset area within the target boundary of the display screen, the relationship between them is considered to meet the preset threshold condition. This embodiment does not limit this.
[0099] In this embodiment, the terminal determines that the relationship between the position of the initial touch point of the second touch operation and the target boundary of the display screen meets the preset threshold condition, and when the operation type of the second touch operation is consistent with the operation type of the first sliding touch operation, the target interface is exited. It can quickly and effectively distinguish the operations of the browsing interface and the exit interface, thereby realizing rapid exit from the target interface.
[0100] In one of the optional embodiments, the relationship between the position of the initial touch point of the second touch operation and the boundary of the display screen satisfies a preset threshold condition, including:
[0101] The number of pixels between the position of the initial touch point of the second touch operation and the target boundary of the display screen is less than a preset number threshold, and / or the distance between the position of the initial touch point of the second touch operation and the target boundary of the display screen is less than a preset distance threshold.
[0102] In this embodiment, the target boundary of the display screen is taken as the left boundary for example. In the first case, reference can be made to Figure 8 As shown, Figure 8The black solid circle in the middle is the initial touch point. After obtaining the position of the initial touch point, the terminal determines the number n of pixels between the position of the initial touch point and the target boundary 3 of the display screen. If n is less than the preset number threshold, it is determined that the relationship between the position of the initial touch point and the target boundary of the display screen meets the preset threshold condition. The preset number threshold can be 10, 11, 12, etc., which is not limited in the embodiment of the present application. For the second case, please refer to Fig. 9 As shown, Fig. 9 The black solid circle in the middle is the initial touch point. After obtaining the position of the initial touch point, the terminal determines the distance d between the position of the initial touch point and the target boundary 3 of the display screen. If d is less than the preset distance threshold, it is determined that the relationship between the position of the initial touch point and the target boundary of the display screen meets the preset threshold condition.
[0103] Optionally, in one of the embodiments, the distance between the position of the initial touch point of the second touch operation and the target boundary of the display screen is smaller than the distance between the position of the initial touch point of the second touch operation and other boundaries of the display screen.
[0104] In this embodiment, the target boundary of the display screen can be any one of the left boundary of the display screen, the right boundary of the display screen, the upper boundary of the display screen, and the lower boundary of the display screen. When the user triggers the interface exit operation based on the display screen, the distance between the position of the touch point of the second touch operation and the target boundary is set to be smaller than the distance between the position of the initial touch point and other boundaries of the display screen. For example, the target boundary of the display screen is the left boundary. When it is detected that the distance between the position of the initial touch point of the second touch operation and the left boundary is smaller than the distance between the position of the initial touch point of the second touch operation and other boundaries, the terminal is triggered to exit the target interface. This embodiment does not limit this.
[0105] In this embodiment, the terminal constructs a preset threshold condition based on the relationship between the position of the initial touch point of the second touch operation and the target boundary of the display screen. The method for obtaining the position of the initial touch point of the second touch operation is simple and relatively accurate. This method can effectively determine whether the relationship between the position of the initial touch point of the second touch operation and the boundary of the display screen meets the preset threshold condition.
[0106] Fig. 9 FIG. 1 is a flow chart of an interface interaction method in an embodiment. The interface interaction method in this embodiment is executed on Figure 2 The following describes the terminal in the example. Fig.10 As shown, the interface interaction method includes steps 401 to 402.
[0107] Step 401: receiving a touch operation while the display screen is displaying a target interface.
[0108] In this embodiment, during the process of displaying the target interface on the display screen, the terminal obtains a touch operation triggered by the user. For example, the touch operation may be a sliding operation, such as a right sliding operation, a left sliding operation, an upward sliding operation, a downward sliding operation, or other omnidirectional sliding operations; optionally, the touch operation may also be a contact point operation, such as clicking the target interface once, clicking the target interface multiple times continuously, etc., which is not limited in this embodiment.
[0109] Step 402, if the touch operation meets the preset trigger condition, then exit the target interface; the trigger condition includes that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, and the operation type of the touch operation is the preset operation type.
[0110] The preset operation type may be a sliding operation in a preset direction. For example, the preset operation type is a right sliding operation.
[0111] In this embodiment, the preset operation type is a right-swipe operation. If the relationship between the position of the touch point obtained based on the touch operation and the boundary of the display screen meets the preset threshold condition, and the touch operation is a right-swipe operation, for example, the distance between the position of the touch point and the target boundary of the display screen is less than the preset distance threshold, and it is a right-swipe operation, then the target interface is exited; or, the number of pixels between the position of the touch point and the target boundary of the display screen is less than the preset number of pixels, and it is a right-swipe operation, then the target interface is exited; or, if the position of the touch point is within a preset area within the target boundary of the display screen, and it is a right-swipe operation, then the target interface is exited. This embodiment does not limit this.
[0112] Taking the terminal as a smart watch, the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, and the operation type of the touch operation is a right swipe operation, as an example to illustrate the interface interaction method in this solution.
[0113] In the process of displaying the target interface based on the display screen, the smart watch obtains the position of the initial touch point of the current touch operation. When it is determined that the number of pixels between the position of the initial touch point and the left border of the display screen is less than a preset number threshold, or the distance between the position of the initial touch point and the target border of the display screen is less than a preset distance threshold, it detects whether the current touch operation is a right swipe operation. If the current touch operation is a right swipe operation, the target interface is exited.
[0114] In the above-mentioned interface interaction method, the terminal receives a touch operation during the process of displaying the target interface on the display screen, and exits the target interface if the touch operation meets the preset trigger condition; the trigger condition includes that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, and the operation type of the touch operation is a preset operation type. In this solution, after the terminal receives the touch operation, it determines whether the touch operation meets the preset trigger condition based on the preset operation type and the trigger condition, and then exits the target interface when it is determined that the current touch operation meets the preset trigger condition. In this solution, the operation of browsing the interface and exiting the interface can be quickly and effectively distinguished, thereby enhancing the intelligence of the terminal's interface interaction.
[0115] In one of the optional embodiments, the relationship between the position of the initial touch point of the above-mentioned touch operation and the boundary of the display screen satisfies a preset threshold condition, including: the number of pixels between the position of the initial touch point of the touch operation and the boundary of the display screen is less than a preset number threshold, and / or, the distance between the position of the initial touch point of the touch operation and the boundary of the display screen is less than a preset distance threshold.
[0116] In this embodiment, the number of pixels between the position of the initial touch point of the touch operation and the border of the display screen is less than the preset number threshold. Figure 8 In the given embodiment, the preset number threshold can be set to n. When the number of pixels between the position of the initial touch point of the touch operation and the border of the display screen is less than n, it is determined that the relationship between the position of the initial touch point of the touch operation and the border of the display screen meets the preset threshold condition. When the distance between the position of the initial touch point of the touch operation and the border of the display screen is less than the preset distance threshold, reference can be made to Fig. 9 As shown, the distance threshold can be d. When it is determined that the distance between the position of the initial touch point of the touch operation and the boundary of the display screen is less than d, it is determined that the relationship between the position of the initial touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, which is not elaborated here.
[0117] It should be understood that although Figure 2-10 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-10 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0118] Fig.11 FIG. 1 is a structural block diagram of an interface interaction device according to an embodiment. Fig.11 As shown, the device includes a sliding module 01, an acquisition module 02 and an operation module 03, wherein:
[0119] Display module 01, used for sliding and displaying the target interface in response to a received first sliding touch operation during the process of displaying the target interface on the display screen;
[0120] The receiving module 02 is used to receive a second touch operation during the process of sliding and displaying the target interface;
[0121] The exit module 03 is used to exit the target interface if the second touch operation meets a preset trigger condition; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
[0122] In one optional embodiment, the second touch operation and the first sliding touch operation having the same operation type include: the second touch operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
[0123] In one of the optional embodiments, the exit module 03 is used to exit the target interface if the target interface meets a preset interface exit condition and the second touch operation meets a trigger condition.
[0124] In one of the optional embodiments, the above-mentioned interface exit condition includes: the operation state of the target interface is a waiting-for-slide exit state; the waiting-for-slide exit state is a state determined when the target boundary of the target interface is displayed on the display screen.
[0125] In one of the optional embodiments, the exit module 03 is further configured to exit the waiting-to-slide exit state when the second touch operation does not satisfy the trigger condition.
[0126] In one of the optional embodiments, the second touch operation is an operation triggered after a target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
[0127] In one of the optional embodiments, the above-mentioned acquisition module 02 is also used to obtain the interface state of the target interface during the process of sliding and displaying the target interface; the interface state represents the sliding trajectory of the target interface; if the interface state is a preset interface state, the target boundary of the target interface is determined to be displayed on the display screen.
[0128] In one of the optional embodiments, the preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation until the target boundary stops at the boundary of the display screen; or, the preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation to the target boundary, crosses the boundary of the display screen, slides to the preset position, and then slides along the second direction to the target boundary and stops at the boundary of the display screen; the second direction is opposite to the first direction.
[0129] In one of the optional embodiments, the trigger condition further includes: the relationship between the position of the touch point of the second touch operation and the boundary of the display screen meets a preset threshold condition.
[0130] In one of the optional embodiments, the relationship between the position of the touch point of the second touch operation and the boundary of the display screen satisfies a preset threshold condition, including:
[0131] The number of pixels between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset number threshold, and / or,
[0132] The distance between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset distance threshold.
[0133] Fig.12 FIG. 1 is a structural block diagram of an interface interaction device according to an embodiment. Fig.12 As shown, the device includes a receiving module 11 and an exit module 12, wherein:
[0134] The receiving module 11 is used to receive the touch operation when the display screen displays the target interface;
[0135] The exit module 12 is used to exit the target interface if the touch operation meets the preset trigger conditions; the trigger conditions include that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets the preset threshold condition, and the operation type of the touch operation is the preset operation type.
[0136] In one of the optional embodiments, the relationship between the position of the touch point of the touch operation and the boundary of the display screen satisfies a preset threshold condition, including:
[0137] The number of pixels between the position of the initial touch point of the touch operation and the border of the display screen is less than a preset number threshold, and / or the distance between the position of the initial touch point of the touch operation and the border of the display screen is less than a preset distance threshold.
[0138] The division of the various modules in the above-mentioned interface interaction device is only for illustration. In other embodiments, the interface interaction device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned interface interaction device.
[0139] For the specific definition of the interface interaction device, please refer to the definition of the interface interaction method above, which will not be repeated here. Each module in the above-mentioned interface interaction device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0140] Fig.13 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Fig.13 As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an interface interaction method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.
[0141] The implementation of each module in the interface interaction device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored in the memory of an electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiment of the present application are implemented.
[0142] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the interface interaction method.
[0143] A computer program product comprising instructions enables the computer to execute an interface interaction method when the computer program product is run on the computer.
[0144] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0145] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An interface interaction method, applied to a display screen with a touch function, characterized in that: include: In the process of displaying the target interface on the display screen, in response to the received first sliding touch operation, slidingly displaying the target interface; wherein the sliding display means that the target interface continuously slides along a certain direction on the display screen; During the process of sliding and displaying the target interface, receiving a second touch operation; If the second touch operation meets a preset trigger condition, exit the target interface; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation, and the relationship between the position of the touch point of the second touch operation and the boundary of the display screen meets a preset threshold condition; Alternatively, if the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition, then the target interface is exited; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
2. The method according to claim 1, characterized in that The second touch operation and the first sliding touch operation have the same operation type, which includes: the second touch operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
3. The method according to claim 1 or 2, characterized in that: The interface exit condition includes: the operation state of the target interface is a pending slide exit state; the pending slide exit state is a state determined when the target boundary of the target interface is displayed on the display screen.
4. The method according to claim 3, characterized in that The method further comprises: If the second touch operation does not satisfy the trigger condition, the waiting-to-slide-exit state is exited.
5. The method according to claim 1 or 2, characterized in that: The second touch operation is an operation triggered after a target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
6. The method according to claim 5, characterized in that The method further comprises: In the process of sliding and displaying the target interface, acquiring the interface state of the target interface; the interface state represents the sliding track of the target interface; If the interface state is a preset interface state, a target boundary of the target interface is determined to be displayed on the display screen.
7. The method according to claim 6, characterized in that The preset interface state is that the target interface slides along the first direction corresponding to the first sliding touch operation until the target boundary stops at the boundary of the display screen; or The preset interface state is that the target interface slides along the first direction corresponding to the sliding touch operation to the target boundary and crosses the boundary of the display screen, and then slides to a preset position and slides along the second direction to the target boundary and stays at the boundary of the display screen; The second direction is opposite to the first direction.
8. The method according to claim 1, characterized in that The relationship between the position of the touch point of the second touch operation and the boundary of the display screen meets a preset threshold condition, including: The number of pixels between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset number threshold, and / or, The distance between the position of the initial touch point of the second touch operation and the border of the display screen is less than a preset distance threshold.
9. An interface interaction device, characterized in that: The device comprises: A sliding module, used for slidingly displaying the target interface in response to a received first sliding touch operation during the process of displaying the target interface on the display screen; wherein the sliding display means that the target interface continuously slides along a certain direction on the display screen; A receiving module, used for receiving a second touch operation during the process of sliding and displaying the target interface; an exit module, configured to exit the target interface if the second touch operation satisfies a preset trigger condition; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation, and the relationship between the position of the touch point of the second touch operation and the boundary of the display screen satisfies a preset threshold condition; Alternatively, the exit module is specifically used for: If the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition, the target interface is exited; the trigger condition includes that the operation type of the second touch operation is consistent with that of the first sliding touch operation.
10. An interface interaction device, characterized in that: The device comprises: A receiving module, used for receiving a touch operation while the display screen is displaying a target interface; An exit module is used to exit the target interface if the touch operation meets a preset trigger condition; the trigger condition includes that the relationship between the position of the touch point of the touch operation and the boundary of the display screen meets a preset threshold condition, and the operation type of the touch operation is a preset operation type.
11. A terminal comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 8.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Mobile terminal and operation control method thereof
CN102609183A