WO2022227816A1 - Interface interaction method and apparatus, and electronic device and storage medium - Google Patents

Interface interaction method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2022227816A1
WO2022227816A1 PCT/CN2022/077065 CN2022077065W WO2022227816A1 WO 2022227816 A1 WO2022227816 A1 WO 2022227816A1 CN 2022077065 W CN2022077065 W CN 2022077065W WO 2022227816 A1 WO2022227816 A1 WO 2022227816A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch operation
interface
sliding
display screen
target interface
Prior art date
Application number
PCT/CN2022/077065
Other languages
French (fr)
Chinese (zh)
Inventor
何志远
陈德银
胡志通
周俊
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022227816A1 publication Critical patent/WO2022227816A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present application relates to the technical field of intelligent terminals, and in particular, to an interface interaction method, apparatus, electronic device and storage medium.
  • the interface interaction mode of the smart terminal can implement different functions through sliding operations in different directions.
  • the application list interface can be swiped up and down to view different applications.
  • the interface interaction modes of intelligent terminals are becoming more and more diverse.
  • the user's operation mode is relatively simple.
  • the operation of exiting the current interface may conflict with the operation of browsing the interface content. As a result, it is impossible to distinguish between the exit operation and the browsing interface operation.
  • the embodiments of the present application provide an interface interaction method, apparatus, electronic device, and storage medium, which can effectively distinguish between a sliding switch interface operation and a sliding exit interface operation, so that the interface interaction is more intelligent.
  • An interface interaction method applied to a display screen with a touch function, includes:
  • the trigger condition includes that the operation type of the second touch operation is consistent with the operation type of the first sliding touch operation.
  • the operation type of the second touch operation is consistent with that of the first sliding touch operation, including: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
  • exiting the target interface includes:
  • the target interface satisfies a preset interface exit condition, and the second touch operation satisfies the trigger condition, exit the target interface.
  • the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
  • the method further includes:
  • the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the sliding display of the target interface.
  • the method further includes:
  • the interface state of the target interface is obtained; the interface state represents the sliding track of the target interface;
  • the interface state is a preset interface state, it is determined that the target boundary of the target interface is displayed on the display screen.
  • the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or,
  • the preset interface state is that the target interface slides in the first direction corresponding to the sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides to the second direction.
  • the target boundary stays at the position of the boundary of the display screen; the second direction is opposite to the first direction.
  • 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 satisfies a preset threshold condition.
  • 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:
  • the number of pixels between the position of the initial touch point of the second 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 second touch operation and the boundary of the display screen is smaller than a preset distance threshold.
  • An interface interaction method applied to a display screen with a touch function, includes:
  • 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 satisfies a preset threshold condition, and the operation type of the touch operation is a preset operation type.
  • 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:
  • 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 smaller than a preset distance threshold.
  • An interface interaction device the device includes:
  • a sliding module used for slidingly displaying the target interface in response to the received first sliding touch operation during the process of displaying the target interface on the display screen;
  • a receiving module configured to receive a second touch operation in the process of sliding to display 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 operations of the second touch operation and the first sliding touch operation same type.
  • the operation type of the second touch operation is consistent with that of the first sliding touch operation, including: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
  • the exit module is configured to exit the target interface if the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition.
  • the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
  • the exiting module is configured to exit the to-be-sliding exit state if the second touch operation does not satisfy the triggering condition.
  • the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the sliding display of the target interface.
  • the receiving module is configured to acquire the interface state of the target interface during the process of sliding and displaying the target interface; the interface state represents the sliding track of the target interface; if the interface state is a preset If the interface state is set, it is determined that the target boundary of the target interface is displayed on the display screen.
  • the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or,
  • the preset interface state is that the target interface slides in the first direction corresponding to the sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides to the second direction.
  • the target boundary stays at the position of the boundary of the display screen; the second direction is opposite to the first direction.
  • 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 satisfies a preset threshold condition.
  • 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:
  • the number of pixels between the position of the initial touch point of the second touch operation and the boundary of the display screen is less than the preset number threshold, and/or the position of the initial touch point of the second touch operation is the same as the The distance between the boundaries of the display screen is less than the preset distance threshold.
  • An interface interaction device the device includes:
  • the receiving module is used for receiving the touch operation during the process of displaying the target interface on the display screen
  • An exit module configured to exit the target interface if the touch operation satisfies a preset trigger condition; the trigger condition includes a distance between the position of the touch point of the touch operation and the boundary of the display screen The relationship satisfies the preset threshold condition, and the operation type of the touch operation is the preset operation type.
  • 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:
  • 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 smaller than a preset distance threshold.
  • An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned interface interaction method when the computer program is executed.
  • the terminal in the process of displaying the target interface based on the display screen, slides and displays the target interface in response to the received first sliding touch operation, and in the process of slidingly displaying the target interface, receives the For the 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 the same as that of the first sliding touch operation.
  • the terminal performs the sliding display of the target interface in response to the first sliding touch operation based on the display screen to display the target interface.
  • the second touch operation and the first sliding touch operation are performed.
  • the target interface is launched when the types are the same, that is, normal interface operations and exit interface operations can be distinguished for touch operations of the same type, which enhances the intelligence of the terminal interface interaction.
  • FIG. 1 is a schematic diagram of an interface interaction mode in an up and down sliding mode of an intelligent terminal in one embodiment
  • FIG. 2 is a schematic diagram of an interface interaction mode in an omnidirectional sliding mode of an intelligent terminal in one embodiment
  • FIG. 3 is a flowchart of an interface interaction method in one embodiment
  • FIG. 4 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment
  • FIG. 5 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment
  • FIG. 7 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment
  • FIG. 8 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in one embodiment
  • FIG. 9 is a schematic diagram of interface interaction of an intelligent terminal where the interface interaction method is located in one embodiment
  • 11 is a structural block diagram of an interface interaction device in one embodiment
  • FIG. 12 is a structural block diagram of an interface interaction apparatus in another embodiment
  • FIG. 13 is a structural block diagram of an electronic device in one embodiment.
  • 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.
  • a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of this application.
  • Both the first client and the second client are clients, but they are not the same client.
  • the interface interaction mode of the smart terminal can realize different functions through sliding operations in different directions.
  • the interaction of the application list interface on the watch is the up and down sliding mode, as shown in FIG. 1 , which is shown in FIG. 1 .
  • a dial display interface of a smart watch based on a sliding up and down interaction mode. You can view different applications by sliding up and down. In this interaction mode, you can set the right sliding operation as an operation to exit the current interface.
  • FIG. 2 shows a A dial display interface of a smart watch based on an omnidirectional sliding interaction mode.
  • the operation of swiping right to exit the current interface and the operation of swiping right to switch the interface may conflict, resulting in inability to distinguish between the exit operation of right swiping and the switching interface of right swiping. operation, resulting in less intelligent interface interaction.
  • this embodiment provides a method for interface interaction, which is applied to the display screen with touch function shown in FIG. 2 , and when the touch mode is the omnidirectional interactive mode, the terminal can obtain the The generated touch operation is logically judged at least twice according to the touch operation, and then the corresponding operation is performed, which can effectively distinguish the exit interface operation and the browsing interface operation, and enhance the intelligence of the interface interaction.
  • the terminal may also be a mobile phone, a smart watch, a tablet computer, and other portable wearable devices with a touch interface.
  • FIG. 3 is a flowchart of an interface interaction method in one embodiment.
  • the interface interaction method in this embodiment is described by taking running on the terminal in FIG. 2 as an example.
  • the interface interaction method includes steps 201 to 203 .
  • Step 201 in the process of displaying the target interface based on the display screen, slide and display the target interface in response to the received first sliding touch operation.
  • the target interface is a current operation interface, which can be any display interface of the terminal.
  • 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 the user based on the display screen of the terminal.
  • the first sliding touch operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding left, or sliding right.
  • the sliding display means that the target interface continuously slides along 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, and so on.
  • the terminal determines the corresponding sliding direction according to the first sliding touch operation in response to the user's first sliding touch operation, so as to The target interface is displayed by sliding in the sliding direction. For example, the user generates a right sliding operation based on the display screen, the terminal responds to the user's first sliding touch operation, determines that the sliding direction of the first sliding touch operation is right sliding, and according to the sliding direction, slides right to display the target interface. .
  • the terminal responding to the first sliding touch operation in other directions is similar to responding to the right sliding operation.
  • the terminal may also acquire the sliding range of the first sliding touch operation, so as to perform the operation of sliding to display the target interface according to the sliding range and the sliding direction, which is not limited in this embodiment.
  • Step 202 in the process of sliding to display the target interface, receive a second touch operation.
  • the second touch operation may be a sliding operation or a touch operation.
  • the terminal acquires the second touch operation triggered by the user during the sliding display process of the target interface according to the first sliding touch operation.
  • the terminal may acquire a second sliding operation during the process of sliding to display the target interface, and the second sliding operation may be an omnidirectional sliding operation such as a right sliding operation, a left sliding operation, an upward sliding operation, and a downward sliding operation; optionally, The terminal may also obtain the second touch operation during the process of sliding the display target interface, the second touch operation may be clicking the target interface once, continuously clicking the target interface multiple times, etc.
  • the terminal may also acquire the initial touch point position of the second touch point operation, which is not limited in this embodiment.
  • the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
  • the terminal may determine the target boundary of the target interface according to user habits or business requirements, 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 is The target boundary of the 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 other directions are similar.
  • the terminal when the terminal performs the sliding display process of the target interface according to the first sliding touch operation, the terminal may judge 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 It is also possible to obtain the position information of the target boundary after the sliding display of the target interface, and determine whether the target boundary is in the display screen according to the position information of the target boundary.
  • the second touch operation triggered by the interface.
  • Step 203 exiting 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.
  • the terminal may determine the exit trigger condition according to user habits or business requirements, wherein the operation type of 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. 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 this embodiment of the present application.
  • the terminal determines that the second touch operation satisfies the trigger condition, and exits the target interface.
  • the trigger condition may further include that the second touch operation is a preset operation type, and the preset operation type may include a preset number of touch operations.
  • the preset number of touch operations is continuous click display. The interface is clicked twice. If the second touch operation is to continuously click the display interface twice, it is determined that the second touch operation satisfies the preset operation type, that is, the trigger condition is satisfied.
  • the terminal exits the target interface.
  • the target When the interface is the application list interface, the terminal exits the target interface and can return to the main display interface.
  • the main display interface can be the dial interface, as shown in FIG. 4 .
  • the schematic diagram of the terminal display screen from the target interface to the exit from the target interface is shown.
  • the right swipe operation as the set interface operation to exit, that is, the first sliding touch operation of exiting the interface is the right sliding touch operation, the target boundary of the display screen is the left boundary, and the second
  • the operation types of the touch operation and the first sliding touch operation are the same, that is, they are both right sliding operations as an example to illustrate the interface interaction method in this solution.
  • the smart watch receives the 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 track of the target interface, according to the target interface
  • the sliding trajectory of the target interface determines the interface state of the target interface; if the interface state result of the target interface is that the target interface slides in the right sliding direction until the left border stays at the left border of the display screen; or, the target interface slides in the right sliding direction to the left
  • the border crosses the border of the display screen, slides to the preset position, and then bounces back to the position where the left border stays on the left border of the screen, then the left border of the target interface is determined to be displayed on the screen.
  • the smart terminal can display the target
  • the operation state of the interface is set to the state to be swiped to exit, and the second touch operation is acquired, and in the case that the second touch operation is also a right swipe operation, the target interface is exited.
  • the terminal in the process of displaying the target interface based on the display screen, slides to display the target interface in response to the received first sliding touch operation, and in the process of sliding to display the target interface, receives the second touch operation, if the second touch operation satisfies a preset trigger condition, exit the target interface, wherein the trigger condition includes that the operation type of the second touch operation and the first sliding touch operation are consistent.
  • the terminal performs the sliding display of the target interface in response to the first sliding touch operation based on the display screen to display the target interface.
  • the second touch operation and the first sliding touch operation are performed.
  • the target interface is launched when the types are the same, that is, normal interface operations and exit interface operations can be distinguished for touch operations of the same type, which enhances the intelligence of the terminal interface interaction.
  • the operation type of the second touch operation and the first sliding touch operation are consistent, including: the second touch operation The operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
  • the terminal receives the second touch operation during the process of sliding to the right in response to the right sliding operation to display the target interface. It is a right sliding 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, and both are right sliding. At this time, the terminal performs the operation of exiting the target interface.
  • the sliding directions of the first touch operation and the second touch operation are consistent, which can accurately express the user's desire to exit the current target interface, so that the second touch operation is used as a sliding operation, and the sliding direction Consistent with the sliding direction of the first sliding touch operation as the trigger condition, the obtained judgment result is more accurate, that is, the purpose of sliding to exit the interface can be effectively achieved, and the judgment logic is simple and easy to implement.
  • the state of the target interface may also be judged.
  • exit The target interface includes: exiting the target interface if the target interface satisfies the preset interface exit condition and the second touch operation satisfies the trigger condition.
  • the preset interface exit condition may include that the target boundary of the target interface appears on the display screen, or the state of the target interface is in the state to be swiped to exit.
  • 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 on the display screen and the second touch operation satisfies the trigger condition; or the terminal determines that the state of the target interface is in When the sliding exit state is pending, and the second touch operation satisfies the trigger condition, it is determined to execute the operation of exiting the target interface.
  • the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
  • the terminal can 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 to be slid to exit state.
  • the first sliding touch operation is right sliding
  • the target boundary of the target interface is the left boundary.
  • the terminal determines that the target interface is the left boundary.
  • the left border 1 of the dashed box is in the display screen 2
  • it is determined that the operation state of the target interface is the state to be slid out.
  • the operation state of the target interface is set to the state of waiting to slide right to exit the interface, and in the state of waiting to slide right to exit the interface, if the detected second touch operation satisfies the trigger condition, exit the target interface.
  • the terminal can set the interface exit condition based on the operation state by setting the operation state of the target interface, thereby distinguishing between interface browsing and interface exiting operations through at least two logical judgments, enhancing the intelligence of interface interaction.
  • the above method further includes: if the second touch operation does not satisfy the trigger condition, exiting To be swiped to exit the state.
  • the first sliding touch operation is right sliding as an example, and the second touch operation acquired by the terminal If the operation is a sliding touch operation in other directions other than right sliding, or a touch point operation, it can be considered that the current second touch operation does not meet the exit trigger condition, and at this time, the terminal exits the pending sliding exit state.
  • the terminal acquires that the second touch operation is another sliding touch operation, Or for a single touch operation, it can be considered that the second touch operation does not meet the triggering conditions, and at this time, the terminal exits the state to be slid out; optionally, the number of times of the touch operation is not limited.
  • the terminal after determining that the second touch operation does not meet the trigger condition, the terminal exits the to-be-sliding exit state, that is, restores the operation state of the target interface in time, realizes the release of resources corresponding to the marked state, and does not affect other touch control the corresponding functions.
  • the terminal determines whether the target boundary of the target interface is in the display screen, it can be determined by various methods.
  • the above method further includes:
  • Step 301 in the process of sliding to display the target interface, obtain the interface state of the target interface; the interface state represents the sliding track of the target interface.
  • the sliding track may include the sliding distance, sliding position, sliding amplitude, etc. of the target interface.
  • the terminal may optionally determine the sliding range of the target interface according to the sliding range of the first sliding touch operation. , the corresponding relationship between the sliding range of the first sliding touch operation and the sliding range of the target interface should be stored in the terminal. Alternatively, the terminal may also determine the sliding distance of the target interface according to the sliding range of the first sliding touch operation. In this way, the terminal should store the difference between the sliding distance of the first sliding touch operation and the sliding range of the target interface. Correspondence. Optionally, the terminal may also generate a sliding trajectory of the target interface through the sliding range or distance of the target interface, so as to determine the interface state of the target interface.
  • the sliding trajectory of the interface includes sliding the target interface to the right for a certain distance, but the left border of the target interface is not in the display screen; sliding the target interface for a certain distance to the right, the left border of the target interface is located at the left border of the display screen; the target interface is rightward Slide a certain distance, the left border of the target interface is within the display area, and then the target interface bounces to the left, so that the left border of the target interface is located at the left border of the display screen, etc.
  • Step 302 if the interface state is the preset interface state, determine that the target boundary of the target interface is displayed on the display screen.
  • the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or, the preset interface state is: The target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides in the second direction to the position where the target boundary stays at the boundary of the display screen; The direction is opposite to the first direction.
  • the preset interface state includes sliding the target interface to the right until the left border stays at the border of the display screen, or, sliding the target interface to the right until the target boundary Go over the border of the display, and swipe left to bounce back to the position where the left border stays at the border of the display.
  • the preset meeting state can be described with reference to Fig. 7. As shown in Fig. 7, the target interface in the left schematic diagram slides right to the position of the middle schematic diagram along the direction of the right sliding arrow, and then bounces back to the right schematic diagram along the left sliding arrow At this time, the left border 1 of the target interface is in the display screen.
  • the target interface slides a certain distance to the right, but the left border of the target interface is not in the display screen, that is, it does not conform to the preset interface state, and the terminal determines the target of the target interface at this time.
  • the border is not in the display.
  • the terminal determines whether the target boundary of the target interface is in the display screen through the interface state of the target interface, thereby determining whether the user wants to perform an interface exit operation, which can effectively distinguish interface browsing and interface exit operation, and optimize the interface interaction experience.
  • the terminal may also determine whether to exit the target interface based on the position of the touch point of the second touch operation.
  • the above triggering condition further includes: 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.
  • the terminal determines whether the relationship between the position of the touch point and the target boundary of the display screen satisfies the preset threshold condition according to the position of the touch point of the second touch operation. If the distance between the target boundaries of the display screen is less than the preset distance threshold, it is considered that the relationship between them satisfies the preset threshold condition; or, if the pixel point between the position of the touch point and the target boundary of the display screen is smaller than the preset pixel the number of points, the relationship between them is considered to satisfy the preset threshold condition; or, if the position of the touch point is within the preset area within the target boundary of the display screen, the relationship between them is considered to satisfy the preset threshold condition , which is not limited 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 satisfies a preset threshold condition, and the operation type of the second touch operation and the first sliding
  • the target interface can be exited, and the operation of browsing the interface and the exit interface can be quickly and effectively distinguished, so as to quickly exit the target interface.
  • 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:
  • 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 the preset number threshold, and/or the difference between the position of the initial touch point of the second touch operation and the target boundary of the display screen The distance between them is less than the preset distance threshold.
  • the target boundary of the display screen is taken as an example to illustrate the left boundary.
  • the black solid circle is the initial touch point.
  • determine 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, then determine the relationship between the position of the initial touch point and the target boundary of the display screen
  • the preset threshold conditions are met.
  • the preset number threshold may be 10, 11, 12, etc., which is not limited in this embodiment of the present application.
  • Fig. 9 The black solid circle in Fig. 9 is the initial touch point.
  • the terminal After obtaining the position of the initial touch point, the terminal determines the distance between the position of the initial touch point and the target boundary 3 of the display screen. Distance d, if d is smaller 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 satisfies the preset threshold condition.
  • 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 position of the initial touch point of the second touch operation and other boundaries of the display screen. the distance between.
  • the target boundary of the display screen may 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.
  • 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.
  • the target boundary of the display screen is the left boundary, and 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 operation of triggering the terminal to exit the target interface is not limited in this embodiment.
  • the terminal constructs the preset threshold condition according to the relationship between the position of the initial touch point of the second touch operation and the target boundary of the display screen, and the method of obtaining the position of the initial touch point of the second touch operation is simple, And it is relatively accurate, and the 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 conforms to the preset threshold condition.
  • FIG. 9 is a flowchart of an interface interaction method in one embodiment.
  • the interface interaction method in this embodiment is described by taking running on the terminal in FIG. 2 as an example.
  • the interface interaction method includes steps 401 to 402 .
  • Step 401 Receive a touch operation during the process of displaying the target interface on the display screen.
  • the terminal acquires the touch operation triggered by the user.
  • the touch operation may be a sliding operation, such as a right sliding operation, a left sliding operation, an upward sliding operation, a sliding operation and other omnidirectional sliding operations; optionally, the touch operation may also be a contact operation, such as , click the target interface once, click the target interface multiple times continuously, etc., which are not limited in this embodiment.
  • Step 402 if the touch operation satisfies the preset trigger condition, 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 satisfies the preset threshold condition, and the touch operation
  • the action type is the preset action type.
  • the preset operation type may be a sliding operation along a preset direction.
  • the preset operation type is a right sliding operation.
  • the preset operation type is a right sliding operation as an example. If the relationship between the position of the touch point obtained by the terminal based on the touch operation and the boundary of the display screen satisfies the preset threshold The operation is a right swipe operation.
  • the target interface is exited 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, and it is a right swipe operation; If the number of pixels between the boundaries is less than the preset number of pixels, and the operation is a right swipe, the target interface is exited; or, if the position of the touch point is within the preset area within the target boundary of the display screen, and it is a right swipe operation, the target interface is exited, which is not limited in this embodiment.
  • the relationship between the position of the touch point of the touch operation and the boundary of the display screen satisfies the preset threshold condition, and the operation type of the touch operation is the right sliding operation, as an example to illustrate the method in this solution. interface interaction method.
  • the smart watch obtains the position of the initial touch point of the current touch operation, and the number of pixels between the position of the initial touch point and the left border of the display screen is determined to be less than the preset number threshold, or, When the distance between the position of the initial touch point and the target boundary of the display screen is less than the preset distance threshold, it is detected whether the current touch operation is a right swipe operation, and if the current touch operation is a right swipe operation, the target interface is exited.
  • the terminal receives a touch operation during the process of displaying the target interface on the display screen, and if the touch operation satisfies a preset trigger condition, exits the target interface; the trigger condition includes the position and display of the touch point of the touch operation.
  • the relationship between the boundaries of the screens satisfies the preset threshold condition, and the operation type of the touch operation is the preset operation type.
  • the relationship between the position of the initial touch point of the touch operation and the boundary of the display screen satisfies a preset threshold condition, including: the position of the initial touch point of the touch operation and the display screen's boundary
  • the number of pixels between the boundaries is smaller than the 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 smaller than the preset distance threshold.
  • the number of pixels between the position of the initial touch point of the touch operation and the boundary of the display screen is smaller than the preset number threshold, and reference may be made to the embodiment shown in FIG. 8 , wherein the preset number threshold can be set to is n, in the case where 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 n, 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 satisfies Preset threshold conditions.
  • the distance between the position of the initial touch point of the touch operation and the border of the display screen is smaller than the preset distance threshold, as shown in FIG.
  • the distance threshold can be d
  • the position of the initial touch point of the touch operation is determined after determining the position of the initial touch point of the touch operation.
  • steps in the flowcharts of FIGS. 2-10 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in Figs. 2-10 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages may be executed at different times. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
  • FIG. 11 is a structural block diagram of an interface interaction apparatus according to an embodiment. As shown in Figure 11, the device includes a sliding module 01, an acquisition module 02 and an operation module 03, wherein:
  • a display module 01 configured to slide and display the target interface in response to the received first sliding touch operation in the process of displaying the target interface based on the display screen;
  • a receiving module 02 configured to receive a second touch operation in the process of sliding to display the target interface
  • the exit module 03 is 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 the operation type of the first sliding touch operation.
  • the operation type of the second touch operation is consistent with the operation type of the first sliding touch operation includes: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
  • the exit module 03 is configured to exit the target interface if the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition.
  • the above interface exit conditions include: the operation state of the target interface is the state to be slid to exit; the state to be slid to exit is the state determined when the target boundary of the target interface is displayed on the display screen.
  • the above-mentioned exiting module 03 is further configured to exit the to-be-sliding exit state when the second touch operation does not satisfy the triggering condition.
  • the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
  • the above receiving module 02 is further configured to acquire the interface state of the target interface in the process of sliding to display the target interface; the interface state represents the sliding track 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.
  • the above-mentioned preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or, the preset interface state is: The target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides in the second direction to the position where the target boundary stays at the boundary of the display screen; The direction is opposite to the first direction.
  • the above triggering condition further includes: 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.
  • 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: the position of the initial touch point of the second touch operation reaches The number of pixels between the boundaries of the display screen is smaller than the preset number threshold, and/or the distance between the position of the initial touch point of the second touch operation and the boundary of the display screen is smaller than the preset distance threshold.
  • FIG. 12 is a structural block diagram of an interface interaction apparatus according to an embodiment. As shown in Figure 12, the device includes a receiving module 11 and an exiting module 12, wherein:
  • the receiving module 11 is used for receiving a touch operation in the process of displaying the target interface on the display screen;
  • the exit module 12 is configured to exit the target interface if the touch operation satisfies 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 satisfies the preset threshold condition, and the touch
  • the operation type of the control operation is the preset operation type.
  • 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: the position of the initial touch point of the touch operation and the boundary of the display screen The number of pixels between them is less than the 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 the preset distance threshold.
  • each module in the above-mentioned interface interaction device is only used for illustration. In other embodiments, the interface interaction device may be divided into different modules as required to complete all or part of the functions of the above-mentioned interface interaction device.
  • Each module in the above-mentioned interface interaction apparatus may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • FIG. 13 is a schematic diagram of the internal structure of an electronic device in one embodiment.
  • the electronic device includes a processor and a memory connected by 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 non-volatile storage media and internal memory.
  • the nonvolatile 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 by the following embodiments.
  • Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media.
  • the electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, and the like.
  • each module in the interface interaction apparatus may be in the form of a computer program.
  • the computer program can be run on a terminal or server.
  • the program modules constituted by the computer program can be stored on the memory of the electronic device.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-transitory computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the steps of the interface interaction method.
  • a computer program product containing instructions that, when run on a computer, cause the computer to perform an interface interaction method.
  • Nonvolatile 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 acts as external cache memory.
  • RAM is available in various 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).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

The present application relates to an interface interaction method and apparatus, and an electronic device and a storage medium. The interface interaction method comprises: during a process of displaying a target interface on the basis of a display screen, and in response to a received first sliding touch-control operation, a terminal displaying the target interface in a sliding manner; during a process of displaying the target interface in a sliding manner, receiving a second touch-control operation; and if the second touch-control operation meets a preset trigger condition, exiting the target interface, wherein the trigger condition comprises that the operation type of the second touch-control operation is the same as that of the first sliding touch-control operation. In the present solution, a terminal displays a target interface in a sliding manner in response to a first sliding touch-control operation for displaying the target interface on the basis of a display screen; receives a second touch-control operation during a process of displaying the target interface in a sliding manner; and when it is determined that the second touch-control operation meets a preset trigger condition, executes an operation of exiting the target interface, such that on the basis of two layers of determination logic, an interface browsing operation can be effectively distinguished from an interface exiting operation, thereby enhancing the intelligence of interface interaction of the terminal.

Description

界面交互方法、装置、电子设备和存储介质Interface interaction method, device, electronic device and storage medium
相关申请Related applications
本申请要求2021年04月28日申请的,申请号为2021104690701,名称为“界面交互方法、装置、电子设备和存储介质”的中国专利申请的优先权,在此将其全文引入作为参考。This application claims the priority of the Chinese patent application filed on April 28, 2021, the application number is 2021104690701, and the title is "Interface Interaction Method, Apparatus, Electronic Device and Storage Medium", which is hereby incorporated by reference in its entirety.
技术领域technical field
本申请涉及智能终端技术领域,特别是涉及一种界面交互方法、装置、电子设备和存储介质。The present application relates to the technical field of intelligent terminals, and in particular, to an interface interaction method, apparatus, electronic device and storage medium.
背景技术Background technique
现有技术中,智能终端的界面交互模式可以通过不同方向的滑动操作来实现不同的功能,例如,应用列表界面可以通过向上滑动、向下滑动可以查看不同的应用。In the prior art, the interface interaction mode of the smart terminal can implement different functions through sliding operations in different directions. For example, the application list interface can be swiped up and down to view different applications.
然而,随着智能终端的发展,智能终端的界面交互模式越来越多样化,然而,用户的操作方式却相对单一,有些情况下,退出当前界面的操作与浏览界面内容的操作可能产生冲突,导致无法区分退出操作与浏览界面操作。However, with the development of intelligent terminals, the interface interaction modes of intelligent terminals are becoming more and more diverse. However, the user's operation mode is relatively simple. In some cases, the operation of exiting the current interface may conflict with the operation of browsing the interface content. As a result, it is impossible to distinguish between the exit operation and the browsing interface operation.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种界面交互方法、装置、电子设备和存储介质,可以有效区分滑动切换界面操作和滑动退出界面操作,使得界面交互更加智能。The embodiments of the present application provide an interface interaction method, apparatus, electronic device, and storage medium, which can effectively distinguish between a sliding switch interface operation and a sliding exit interface operation, so that the interface interaction is more intelligent.
一种界面交互方法,应用于带触控功能的显示屏,包括:An interface interaction method, applied to a display screen with a touch function, includes:
在所述显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示所述目标界面;During the process of displaying the target interface on the display screen, slidingly displays the target interface in response to the received first sliding touch operation;
在滑动显示所述目标界面的过程中,接收第二触控操作;In the process of sliding to display the target interface, receiving a second touch operation;
若所述第二触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述第二触控操作与所述第一滑动触控操作的操作类型一致。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 the operation type of the first sliding touch operation.
优选的,所述第二触控操作与所述第一滑动触控操作的操作类型一致包括:所述第二触控操作为滑动操作,且滑动方向与所述第一滑动触控操作的滑动方向一致。Preferably, the operation type of the second touch operation is consistent with that of the first sliding touch operation, including: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
优选的,若所述第二触控操作满足预设的触发条件,则退出所述目标界面,包括:Preferably, if the second touch operation satisfies a preset trigger condition, exiting the target interface includes:
若所述目标界面满足预设的界面退出条件,且所述第二触控操作满足所述触发条件,则退出所述目标界面。If the target interface satisfies a preset interface exit condition, and the second touch operation satisfies the trigger condition, exit the target interface.
优选的,所述界面退出条件包括:所述目标界面的操作状态为待滑动退出状态;所述待滑动退出状态为所述目标界面的目标边界展示于所述显示屏中时确定的状态。Preferably, the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
优选的,所述方法还包括:Preferably, the method further includes:
若所述第二触控操作不满足所述触发条件,则退出所述待滑动退出状态。If the second touch operation does not satisfy the triggering condition, exit the to-be-sliding exit state.
优选的,所述第二触控操作为在滑动显示所述目标界面的过程中,所述目标界面的目标边界展示于所述显示屏中之后触发的操作。Preferably, the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the sliding display of the target interface.
优选的,所述方法还包括:Preferably, the method further includes:
在滑动显示所述目标界面的过程中,获取所述目标界面的界面状态;所述界面状态表示所述目标界面的滑动轨迹;During 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;
若所述界面状态为预设界面状态,则确定所述目标界面的目标边界展示于所述显示屏中。If the interface state is a preset interface state, it is determined that the target boundary of the target interface is displayed on the display screen.
优选的,所述预设界面状态为所述目标界面延所述第一滑动触控操作对应的第一方向滑 动直至所述目标边界停留在所述显示屏的边界的位置;或者,Preferably, the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or,
所述预设界面状态为所述目标界面延所述滑动触控操作对应的第一方向滑动至所述目标边界越过所述显示屏的边界,并滑动至预设位置后延第二方向滑动至所述目标边界停留在所述显示屏的边界的位置;所述第二方向与所述第一方向相反。The preset interface state is that the target interface slides in the first direction corresponding to the sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides to the second direction. The target boundary stays at the position of the boundary of the display screen; the second direction is opposite to the first direction.
优选的,所述触发条件还包括:所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件。Preferably, 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 satisfies a preset threshold condition.
优选的,所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:Preferably, 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:
所述第二触控操作的初始触摸点的位置到所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,The number of pixels between the position of the initial touch point of the second 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 second touch operation and the boundary of the display screen is smaller than a preset distance threshold.
一种界面交互方法,应用于带触控功能的显示屏,包括:An interface interaction method, applied to a display screen with a touch function, includes:
在显示屏显示目标界面的过程中,接收触控操作;In the process of displaying the target interface on the display screen, receiving a touch operation;
若所述触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,且所述触控操作的操作类型为预设操作类型。If the touch operation satisfies a preset trigger condition, 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 satisfies a preset threshold condition, and the operation type of the touch operation is a preset operation type.
优选的,所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:Preferably, 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:
所述触控操作的初始触摸点的位置与所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,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 smaller than a preset distance threshold.
一种界面交互装置,所述装置包括:An interface interaction device, the device includes:
滑动模块,用于在显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示所述目标界面;a sliding module, used for slidingly displaying the target interface in response to the received first sliding touch operation during the process of displaying the target interface on the display screen;
接收模块,用于在滑动显示所述目标界面的过程中,接收第二触控操作;a receiving module, configured to receive a second touch operation in the process of sliding to display 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 operations of the second touch operation and the first sliding touch operation same type.
优选的,所述第二触控操作与所述第一滑动触控操作的操作类型一致包括:所述第二触控操作为滑动操作,且滑动方向与所述第一滑动触控操作的滑动方向一致。Preferably, the operation type of the second touch operation is consistent with that of the first sliding touch operation, including: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
优选的,所述退出模块,用于若所述目标界面满足预设的界面退出条件,且所述第二触控操作满足所述触发条件,则退出所述目标界面。Preferably, the exit module is configured to exit the target interface if the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition.
优选的,所述界面退出条件包括:所述目标界面的操作状态为待滑动退出状态;所述待滑动退出状态为所述目标界面的目标边界展示于所述显示屏中时确定的状态。Preferably, the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
优选的,所述退出模块,用于若所述第二触控操作不满足所述触发条件,则退出所述待滑动退出状态。Preferably, the exiting module is configured to exit the to-be-sliding exit state if the second touch operation does not satisfy the triggering condition.
优选的,所述第二触控操作为在滑动显示所述目标界面的过程中,所述目标界面的目标边界展示于所述显示屏中之后触发的操作。Preferably, the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the sliding display of the target interface.
优选的,所述接收模块,用于在滑动显示所述目标界面的过程中,获取所述目标界面的界面状态;所述界面状态表示所述目标界面的滑动轨迹;若所述界面状态为预设界面状态,则确定所述目标界面的目标边界展示于所述显示屏中。Preferably, the receiving module is configured to acquire the interface state of the target interface during the process of sliding and displaying the target interface; the interface state represents the sliding track of the target interface; if the interface state is a preset If the interface state is set, it is determined that the target boundary of the target interface is displayed on the display screen.
优选的,所述预设界面状态为所述目标界面延所述第一滑动触控操作对应的第一方向滑动直至所述目标边界停留在所述显示屏的边界的位置;或者,Preferably, the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or,
所述预设界面状态为所述目标界面延所述滑动触控操作对应的第一方向滑动至所述目标边界越过所述显示屏的边界,并滑动至预设位置后延第二方向滑动至所述目标边界停留在所述显示屏的边界的位置;所述第二方向与所述第一方向相反。The preset interface state is that the target interface slides in the first direction corresponding to the sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides to the second direction. The target boundary stays at the position of the boundary of the display screen; the second direction is opposite to the first direction.
优选的,所述触发条件还包括:所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件。Preferably, 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 satisfies a preset threshold condition.
优选的,所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:Preferably, 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:
所述第二触控操作的初始触摸点的位置到所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,所述第二触控操作的初始触摸点的位置与所述显示屏的边界之间的距离小于预设距离阈值。The number of pixels between the position of the initial touch point of the second touch operation and the boundary of the display screen is less than the preset number threshold, and/or the position of the initial touch point of the second touch operation is the same as the The distance between the boundaries of the display screen is less than the preset distance threshold.
一种界面交互装置,所述装置包括:An interface interaction device, the device includes:
接收模块,用于在显示屏显示目标界面的过程中,接收触控操作;The receiving module is used for receiving the touch operation during the process of displaying the target interface on the display screen;
退出模块,用于若所述触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,且所述触控操作的操作类型为预设操作类型。An exit module, configured to exit the target interface if the touch operation satisfies a preset trigger condition; the trigger condition includes a distance between the position of the touch point of the touch operation and the boundary of the display screen The relationship satisfies the preset threshold condition, and the operation type of the touch operation is the preset operation type.
优选的,所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:Preferably, 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:
所述触控操作的初始触摸点的位置与所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,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 smaller than a preset distance threshold.
一种电子设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行该计算机程序时实现上述界面交互方法。An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned interface interaction method when the computer program is executed.
一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述界面交互方法。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, realizes the above-mentioned interface interaction method.
上述界面交互方法、装置、电子设备和存储介质,终端基于显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示目标界面,在滑动显示目标界面的过程中,接收第二触控操作,若第二触控操作满足预设的触发条件,则退出目标界面,其中,触发条件包括第二触控操作与第一滑动触控操作的操作类型一致。在本方案中,在终端响应于基于显示屏显示目标界面的第一滑动触控操作进行目标界面的滑动显示,在滑动显示过程中,在第二触控操作与第一滑动触控操作的操作类型一致的情况下推出目标界面,也即,对于相同类型的触控操作可以区分正常的界面操作和退出界面操作,增强了终端的界面交互的智能化。In the above interface interaction method, device, electronic device and storage medium, in the process of displaying the target interface based on the display screen, the terminal slides and displays the target interface in response to the received first sliding touch operation, and in the process of slidingly displaying the target interface, receives the For the 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 the same as that of the first sliding touch operation. In this solution, the terminal performs the sliding display of the target interface in response to the first sliding touch operation based on the display screen to display the target interface. During the sliding display process, the second touch operation and the first sliding touch operation are performed. The target interface is launched when the types are the same, that is, normal interface operations and exit interface operations can be distinguished for touch operations of the same type, which enhances the intelligence of the terminal interface interaction.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中智能终端的上下滑动模式下的界面交互模式的示意图;1 is a schematic diagram of an interface interaction mode in an up and down sliding mode of an intelligent terminal in one embodiment;
图2为一个实施例中智能终端全方向滑动模式下的界面交互模式的示意图;2 is a schematic diagram of an interface interaction mode in an omnidirectional sliding mode of an intelligent terminal in one embodiment;
图3为一个实施例中界面交互方法的流程图;3 is a flowchart of an interface interaction method in one embodiment;
图4为一个实施例中界面交互方法所在智能终端的界面交互示意图;4 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment;
图5为一个实施例中界面交互方法所在智能终端的界面交互示意图;5 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment;
图6为另一个实施例中界面交互方法的流程图;6 is a flowchart of an interface interaction method in another embodiment;
图7为一个实施例中界面交互方法所在智能终端的界面交互示意图;7 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in an embodiment;
图8为一个实施例中界面交互方法所在智能终端的界面交互示意图;8 is a schematic diagram of interface interaction of an intelligent terminal where an interface interaction method is located in one embodiment;
图9为一个实施例中界面交互方法所在智能终端的界面交互示意图;9 is a schematic diagram of interface interaction of an intelligent terminal where the interface interaction method is located in one embodiment;
图10为另一个实施例中界面交互方法的流程图;10 is a flowchart of an interface interaction method in another embodiment;
图11为一个实施例中界面交互装置的结构框图;11 is a structural block diagram of an interface interaction device in one embodiment;
图12为另一个实施例中界面交互装置的结构框图;12 is a structural block diagram of an interface interaction apparatus in another embodiment;
图13为一个实施例中电子设备的结构框图。FIG. 13 is a structural block diagram of an electronic device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be 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, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of this application. Both the first client and the second client are clients, but they are not the same client.
现有技术中,智能终端的界面交互模式可以通过不同方向的滑动操作来实现不同的功能,例如,在手表上的应用列表界面的交互为上下滑动方式,如图1所示,图1给出一种基于上下滑动交互模式下的智能手表的表盘显示界面,通过向上滑动、向下滑动可以查看不同的应用,在这种交互模式下,可以设定右滑操作为退出当前界面的操作。In the prior art, the interface interaction mode of the smart terminal can realize different functions through sliding operations in different directions. For example, the interaction of the application list interface on the watch is the up and down sliding mode, as shown in FIG. 1 , which is shown in FIG. 1 . A dial display interface of a smart watch based on a sliding up and down interaction mode. You can view different applications by sliding up and down. In this interaction mode, you can set the right sliding operation as an operation to exit the current interface.
然而,随着智能终端的发展,智能终端的界面交互模式越来越多样化,例如,可以是上、下、左、右等全方向的交互模式,如图2所示,图2给出一种基于全方向滑动交互模式下的智能手表的表盘显示界面,现有技术中右滑退出当前界面的操作与右滑切换界面的操作可能产生冲突,导致无法区分右滑退出操作与右滑切换界面操作,导致界面交互不够智能。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 omnidirectional interaction modes such as up, down, left, and right, as shown in Figure 2. Figure 2 shows a A dial display interface of a smart watch based on an omnidirectional sliding interaction mode. In the prior art, the operation of swiping right to exit the current interface and the operation of swiping right to switch the interface may conflict, resulting in inability to distinguish between the exit operation of right swiping and the switching interface of right swiping. operation, resulting in less intelligent interface interaction.
基于上述问题,本实施例提供一种界面交互的方法,应用于图2所给出的带触控功能的显示屏,且触控模式为全方向的交互模式下,终端可以获取基于显示屏所产生的触控操作,并根据触控操作经过至少两次逻辑判断,进而执行相应的操作,可以有效区分退出界面操作与浏览界面操作,增强界面交互的智能化。可选地,终端也可以为手机、智能手表、平板电脑、以及其他具有触控界面的便携式穿戴设备。Based on the above problems, this embodiment provides a method for interface interaction, which is applied to the display screen with touch function shown in FIG. 2 , and when the touch mode is the omnidirectional interactive mode, the terminal can obtain the The generated touch operation is logically judged at least twice according to the touch operation, and then the corresponding operation is performed, which can effectively distinguish the exit interface operation and the browsing interface operation, and enhance the intelligence of the interface interaction. Optionally, the terminal may also be a mobile phone, a smart watch, a tablet computer, and other portable wearable devices with a touch interface.
图3为一个实施例中界面交互方法的流程图。本实施例中的界面交互方法,以运行于图2中的终端上为例进行描述。如图3所示,界面交互方法包括步骤201至步骤203。FIG. 3 is a flowchart of an interface interaction method in one embodiment. The interface interaction method in this embodiment is described by taking running on the terminal in FIG. 2 as an example. As shown in FIG. 3 , the interface interaction method includes steps 201 to 203 .
步骤201,基于显示屏展示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示目标界面。Step 201 , in the process of displaying the target interface based on the display screen, slide and display the target interface in response to the received first sliding touch operation.
可选地,目标界面为当前操作界面,其可以终端的任意一种显示界面,示例地,目标界面可以为应用列表界面,还可以为应用内容界面。第一滑动触控操作指的是用户基于终端的显示屏执行的滑动行为,示例地,第一滑动触控操作可以为上滑、下滑、左滑、右滑等任意一个方向的滑动操作。滑动显示是指目标界面在显示屏上沿着某个方向持续滑动,例如,目标界面在显示屏上向右持续滑动,或者,目标界面在显示屏上向上持续滑动等等。Optionally, the target interface is a 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 the user based on the display screen of the terminal. For example, the first sliding touch operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding left, or sliding right. The sliding display means that the target interface continuously slides along 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, and so on.
在本实施例中,在用户基于显示屏产生第一滑动触控操作的情况下,终端响应于用户的 第一滑动触控操作,根据第一滑动触控操作确定其对应的滑动方向,以在该滑动方向上滑动显示目标界面。示例地,用户基于显示屏产生右滑操作,终端响应于用户的第一滑动触控操作,确定该第一滑动触控操作的滑动方向为右滑,根据该滑动方向,向右滑动显示目标界面。终端响应于其他方向的第一滑动触控操作与响应于右滑操作类似。可选地,终端还可以获取第一滑动触控操作的滑动幅度,从而根据滑动幅度、滑动方向执行滑动显示目标界面的操作,本实施例对此不做限定。In this embodiment, when the user generates the first sliding touch operation based on the display screen, the terminal determines the corresponding sliding direction according to the first sliding touch operation in response to the user's first sliding touch operation, so as to The target interface is displayed by sliding in the sliding direction. For example, the user generates a right sliding operation based on the display screen, the terminal responds to the user's first sliding touch operation, determines that the sliding direction of the first sliding touch operation is right sliding, and according to the sliding direction, slides right to display the target interface. . The terminal responding to the first sliding touch operation in other directions is similar to responding to the right sliding operation. Optionally, the terminal may also acquire the sliding range of the first sliding touch operation, so as to perform the operation of sliding to display the target interface according to the sliding range and the sliding direction, which is not limited in this embodiment.
步骤202,在滑动显示目标界面的过程中,接收第二触控操作。Step 202, in the process of sliding to display the target interface, receive a second touch operation.
可选地,第二触控操作可以为滑动操作,也可以为触点操作。Optionally, the second touch operation may be a sliding operation or a touch operation.
在本实施例中,终端根据第一滑动触控操作执行目标界面的滑动显示过程中,获取用户触发的第二触控操作。示例地,终端可以在滑动显示目标界面过程中获取第二滑动操作,该第二滑动操作可以为右滑操作、左滑操作、上滑操作、下滑操作等全方向的滑动操作;可选地,终端还可以获取在滑动显示目标界面过程中的第二触点操作,该第二触点操作可以为点击目标界面一次、连续点击目标界面多次等,在获取第二触点操作的情况下,终端还可以获取第二触点操作的初始触摸点位置,本实施例对此不做限定。In this embodiment, the terminal acquires the second touch operation triggered by the user during the sliding display process of the target interface according to the first sliding touch operation. For example, the terminal may acquire a second sliding operation during the process of sliding to display the target interface, and the second sliding operation may be an omnidirectional sliding operation such as a right sliding operation, a left sliding operation, an upward sliding operation, and a downward sliding operation; optionally, The terminal may also obtain the second touch operation during the process of sliding the display target interface, the second touch operation may be clicking the target interface once, continuously clicking the target interface multiple times, etc. In the case of obtaining the second touch operation, The terminal may also acquire the initial touch point position of the second touch point operation, which is not limited in this embodiment.
可选地,在其中一个可选地实施例中,第二触控操作为在滑动显示目标界面的过程中,目标界面的目标边界展示于显示屏中之后触发的操作。Optionally, in one optional embodiment, the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
其中,终端可以根据用户习惯或者业务需求,确定目标界面的目标边界,其中目标边界与第一滑动触控操作的滑动方向有关,示例地,若第一滑动触控操作为右滑操作,那么目标界面的目标边界即为左边界;若第一滑动触控操作为左滑操作,那么目标界面的目标边界即为右边界,其他方向类似。The terminal may determine the target boundary of the target interface according to user habits or business requirements, 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 is The target boundary of the 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 other directions are similar.
在本实施例中,终端根据第一滑动触控操作执行目标界面的滑动显示过程中,终端可以根据目标界面的滑动轨迹,判断目标界面的目标边界是否处于显示屏的显示屏中;或者,终端还可以获取目标界面滑动显示之后的目标边界的位置信息,根据目标边界的位置信息确定目标边界是否处于显示屏中,在终端确定目标界面的目标边界处于显示屏中的情况下,接收用户基于目标界面触发的第二触控操作。In this embodiment, when the terminal performs the sliding display process of the target interface according to the first sliding touch operation, the terminal may judge 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 It is also possible to obtain the position information of the target boundary after the sliding display of the target interface, and determine whether the target boundary is in the display screen according to the position information of the target boundary. The second touch operation triggered by the interface.
步骤203,若第二触控操作满足预设的触发条件,则退出目标界面;触发条件包括第二触控操作与第一滑动触控操作的操作类型一致。Step 203 , exiting 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.
可选地,终端可以根据用户习惯或者业务需求确定退出触发条件,其中,第二触控操作与第一滑动触控操作的操作类型一致,指的是,若第一滑动触控操作为右滑操作,那么第二触控操作也为右滑操作,或者,若第一滑动触控操作为左滑操作,那么第二触控操作也为左滑操作,本申请实施例中不加以限制。Optionally, the terminal may determine the exit trigger condition according to user habits or business requirements, wherein the operation type of 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. 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 this embodiment of the present application.
在本实施例中,在触发条件为第二触控操作与第一滑动触控操作的操作类型一致的情况下,示例地,第一滑动触控操作为右滑,第二触控操作也未右滑操作,此时,终端确定第二触控操作满足触发条件,并退出目标界面。可选地,触发条件还可以包括第二触控操作为预设的操作类型,预设的操作类型可以包括预设次数的触点操作,示例地,预设次数的触点操作为连续点击显示界面两下,若第二触控操作为连续点击显示界面两下,则确定第二触控操作满足为预设的操作类型,即满足触发条件,此时,终端退出目标界面,示例地,目标界面为应用列表界面的情况下,终端退出目标界面可以返回主显示界面,可选地,在终端为智能手表的场景下,主显示界面可以为表盘界面,可参考图4所示,图4给出了终端显示屏处于目标界面到退出目标界面的示意图。In this embodiment, when the trigger condition is that the operation type of the second touch operation is the same as that of the first sliding touch operation, for example, the first sliding touch operation is a right swipe, and the second touch operation is not Right swipe operation, 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 further include that the second touch operation is a preset operation type, and the preset operation type may include a preset number of touch operations. For example, the preset number of touch operations is continuous click display. The interface is clicked twice. If the second touch operation is to continuously click the display interface twice, it is determined that the second touch operation satisfies the preset operation type, that is, the trigger condition is satisfied. At this time, the terminal exits the target interface. For example, the target When the interface is the application list interface, the terminal exits the target interface and can return to the main display interface. Optionally, in the scenario where the terminal is a smart watch, the main display interface can be the dial interface, as shown in FIG. 4 . The schematic diagram of the terminal display screen from the target interface to the exit from the target interface is shown.
以终端为智能手表,右滑操作为设定的拟退出界面操作来说明,即以退出界面的第一滑动触控操作为向右滑动触控操作、显示屏的目标边界为左边界、第二触控操作与第一滑动触 控操作的操作类型一致即均为右滑操作为例来说明本方案中的界面交互方法。Take the terminal as a smart watch, and the right swipe operation as the set interface operation to exit, that is, the first sliding touch operation of exiting the interface is the right sliding touch operation, the target boundary of the display screen is the left boundary, and the second The operation types of the touch operation and the first sliding touch operation are the same, that is, they are both right sliding operations as an example to illustrate the interface interaction method in this solution.
在基于显示屏显示目标界面的过程中,智能手表接收用户触发的右滑触控操作,通过响应该右滑触控操作而向右滑动目标界面;智能手表获取目标界面的滑动轨迹,根据目标界面的滑动轨迹确定目标界面的界面状态;若目标界面的界面状态结果为目标界面延右滑方向滑动直至左边界停留在显示屏的左边界的位置;或者,目标界面延滑右滑方向滑动至左边界越过显示屏的边界,并滑动至预设位置后回弹至左边界停留在显示屏的左边界的位置,则确定目标界面的左边界展示于显示屏中,此时,智能终端可以将目标界面的操作状态设置为待滑动退出状态,并获取第二触控操作,在第二触控操作同为右滑操作的情况下,退出目标界面。In the process of displaying the target interface based on the display screen, the smart watch receives the 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 track of the target interface, according to the target interface The sliding trajectory of the target interface determines the interface state of the target interface; if the interface state result of the target interface is that the target interface slides in the right sliding direction until the left border stays at the left border of the display screen; or, the target interface slides in the right sliding direction to the left The border crosses the border of the display screen, slides to the preset position, and then bounces back to the position where the left border stays on the left border of the screen, then the left border of the target interface is determined to be displayed on the screen. At this time, the smart terminal can display the target The operation state of the interface is set to the state to be swiped to exit, and the second touch operation is acquired, and in the case that the second touch operation is also a right swipe operation, the target interface is exited.
本实施例中的界面交互方法,终端基于显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示目标界面,在滑动显示目标界面的过程中,接收第二触控操作,若第二触控操作满足预设的触发条件,则退出目标界面,其中,触发条件包括第二触控操作与第一滑动触控操作的操作类型一致。在本方案中,在终端响应于基于显示屏显示目标界面的第一滑动触控操作进行目标界面的滑动显示,在滑动显示过程中,在第二触控操作与第一滑动触控操作的操作类型一致的情况下推出目标界面,也即,对于相同类型的触控操作可以区分正常的界面操作和退出界面操作,增强了终端的界面交互的智能化。In the interface interaction method in this embodiment, in the process of displaying the target interface based on the display screen, the terminal slides to display the target interface in response to the received first sliding touch operation, and in the process of sliding to display the target interface, receives the second touch operation, if the second touch operation satisfies a preset trigger condition, exit the target interface, wherein the trigger condition includes that the operation type of the second touch operation and the first sliding touch operation are consistent. In this solution, the terminal performs the sliding display of the target interface in response to the first sliding touch operation based on the display screen to display the target interface. During the sliding display process, the second touch operation and the first sliding touch operation are performed. The target interface is launched when the types are the same, that is, normal interface operations and exit interface operations can be distinguished for touch operations of the same type, which enhances the intelligence of the terminal interface interaction.
为增强终端的界面交互的智能化,优化用户的交互体验感,在其中一个可选地实施例中,上述第二触控操作与第一滑动触控操作的操作类型一致包括:第二触控操作为滑动操作,且滑动方向与第一滑动触控操作的滑动方向一致。In order to enhance the intelligence of the interface interaction of the terminal and optimize the user's sense of interaction experience, in one optional embodiment, the operation type of the second touch operation and the first sliding touch operation are consistent, including: the second touch operation The operation is a sliding operation, and the sliding direction is consistent with the sliding direction of the first sliding touch operation.
在本实施例中,以第一滑动触控操作为右滑来举例说明,终端在响应于右滑操作向右滑动显示目标界面过程中,接收第二触控操作,若第二触控操作仍为右滑操作,即终端确定第二触控操作与第一滑动触控操作的滑动方向一致,均为右滑,此时,终端执行退出目标界面的操作。In this embodiment, taking the first sliding touch operation as right sliding as an example, the terminal receives the second touch operation during the process of sliding to the right in response to the right sliding operation to display the target interface. It is a right sliding 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, and both are right sliding. At this time, the terminal performs the operation of exiting the target interface.
在本实施例中,第一次触控操作与第二触控操作的滑动方向一致,可以准确表达用户想要退出当前目标界面的意愿,从而将第二触控操作作为滑动操作,且滑动方向与第一滑动触控操作的滑动方向一致作为触发条件,得到的判断结果更为准确,即,可以有效地实现滑动退出界面的目的,而且该判断逻辑简单,易于实现。In this embodiment, the sliding directions of the first touch operation and the second touch operation are consistent, which can accurately express the user's desire to exit the current target interface, so that the second touch operation is used as a sliding operation, and the sliding direction Consistent with the sliding direction of the first sliding touch operation as the trigger condition, the obtained judgment result is more accurate, that is, the purpose of sliding to exit the interface can be effectively achieved, and the judgment logic is simple and easy to implement.
在一些场景中,为了更加准确的确定是否需要退出目标界面,还可以对目标界面的状态进行判断,其中一个可选地实施例中,若第二触控操作满足预设的触发条件,则退出目标界面,包括:若目标界面满足预设的界面退出条件,且第二触控操作满足触发条件,则退出目标界面。In some scenarios, in order to more accurately determine whether it is necessary to exit the target interface, the state of the target interface may also be judged. In an optional embodiment, if the second touch operation satisfies a preset trigger condition, then exit The target interface includes: exiting the target interface if the target interface satisfies the preset interface exit condition and the second touch operation satisfies the trigger condition.
可选地,预设的界面退出条件可以包括目标界面的目标边界出现在显示屏中,或者,目标界面的状态处于待滑动退出状态。在本实施例中,终端在确定目标界面的目标边界出现在显示屏中,并且第二触控操作满足触发条件的情况下,确定执行退出目标界面的操作;或者终端在确定目标界面的状态处于待滑动退出状态,并且第二触控操作满足触发条件的情况下,确定执行退出目标界面的操作。Optionally, the preset interface exit condition may include that the target boundary of the target interface appears on the display screen, or the state of the target interface is in the state to be swiped to exit. 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 on the display screen and the second touch operation satisfies the trigger condition; or the terminal determines that the state of the target interface is in When the sliding exit state is pending, and the second touch operation satisfies the trigger condition, it is determined to execute the operation of exiting the target interface.
可选地,界面退出条件包括:目标界面的操作状态为待滑动退出状态;待滑动退出状态为目标界面的目标边界展示于显示屏中时确定的状态。Optionally, the interface exit conditions include: the operation state of the target interface is a state to be slid to exit; the state to be slid to exit is a state determined when the target boundary of the target interface is displayed on the display screen.
在本实施例中,终端还可以根据目标界面的目标边界的显示情况对目标界面的操作状态进行标识,在这种情况下,终端将界面退出条件设定为目标界面的操作状态为待滑动退出状态。In this embodiment, the terminal can 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 to be slid to exit state.
在本实施例中,以第一滑动触控操作为右滑,目标界面的目标边界为左边界来举例说明,如图5所示,终端确定目标界面为左边界,即,图5中给出的虚线框的左边界1处于显示屏 2中时,确定目标界面的操作状态为待滑动退出状态。当终端检测到目标界面的左边界出现在显示屏中时,将目标界面的操作状态设置为待右滑退出界面状态,在该待右滑退出界面状态若检测到的第二触控操作满足触发条件,则退出目标界面。In this embodiment, the first sliding touch operation is right sliding, and the target boundary of the target interface is the left boundary. As shown in FIG. 5 , the terminal determines that the target interface is the left boundary. When the left border 1 of the dashed box is in the display screen 2, it is determined that the operation state of the target interface is the state to be slid out. When the terminal detects that the left border of the target interface appears in the display screen, the operation state of the target interface is set to the state of waiting to slide right to exit the interface, and in the state of waiting to slide right to exit the interface, if the detected second touch operation satisfies the trigger condition, exit the target interface.
在本实施例中,终端通过设置目标界面的操作状态,可以基于操作状态设定界面退出条件,从而通过至少两次逻辑判断,区分界面浏览与界面退出的操作,增强了界面交互的智能性。In this embodiment, the terminal can set the interface exit condition based on the operation state by setting the operation state of the target interface, thereby distinguishing between interface browsing and interface exiting operations through at least two logical judgments, enhancing the intelligence of interface interaction.
终端根据第二触控操作和触发条件进行逻辑判断时,还存在另外一种情况,在其中一个可选地实施例中,上述方法还包括:若第二触控操作不满足触发条件,则退出待滑动退出状态。When the terminal makes a logical judgment according to the second touch operation and the trigger condition, there is another situation. In an optional embodiment, the above method further includes: if the second touch operation does not satisfy the trigger condition, exiting To be swiped to exit the state.
在本实施例中,在触发条件为第二触控操作与第一滑动触控操作类型一致的情况下,以第一滑动触控操作为右滑来举例说明,终端获取到的第二触控操作为除了右滑以外的其他方向的滑动触控操作,或者触点操作,均可以认为当前第二触控操作不符合退出触发条件,此时,终端退出待滑动退出状态。可选地,在触发条件为第二触控操作符合预设的操作类型的情况下,以操作类型为轻点屏幕两下来举例说明,终端获取到第二触控操作为其他滑动触控操作,或者单次触点操作,均可以认为第二触控操作不符合触发条件,此时,终端退出待滑动退出状态;可选地,触点操作的触点次数不做限定。In this embodiment, when the trigger condition is that the type of the second touch operation is the same as that of the first sliding touch operation, the first sliding touch operation is right sliding as an example, and the second touch operation acquired by the terminal If the operation is a sliding touch operation in other directions other than right sliding, or a touch point operation, it can be considered that the current second touch operation does not meet the exit trigger condition, and at this time, the terminal exits the pending sliding exit state. Optionally, when the trigger condition is that the second touch operation conforms to a preset operation type, and the operation type is double-tap on the screen as an example, the terminal acquires that the second touch operation is another sliding touch operation, Or for a single touch operation, it can be considered that the second touch operation does not meet the triggering conditions, and at this time, the terminal exits the state to be slid out; optionally, the number of times of the touch operation is not limited.
在本实施例中,终端在确定第二触控操作不满足触发条件之后,退出待滑动退出状态,即及时恢复目标界面的操作状态,实现了释放标记状态对应的资源,且不会影响其他触控操作对应的功能。In this embodiment, after determining that the second touch operation does not meet the trigger condition, the terminal exits the to-be-sliding exit state, that is, restores the operation state of the target interface in time, realizes the release of resources corresponding to the marked state, and does not affect other touch control the corresponding functions.
终端在确定目标界面的目标边界是否处于显示屏中可以通过多种方法确定,在其中一个可选地实施例中,如图6所示,上述方法还包括:When the terminal determines whether the target boundary of the target interface is in the display screen, it can be determined by various methods. In an optional embodiment, as shown in FIG. 6 , the above method further includes:
步骤301,在滑动显示目标界面的过程中,获取目标界面的界面状态;界面状态表示目标界面的滑动轨迹。Step 301 , in the process of sliding to display the target interface, obtain the interface state of the target interface; the interface state represents the sliding track of the target interface.
可选地,滑动轨迹可以包括目标界面的滑动距离、滑动位置、滑动幅度等。Optionally, the sliding track may include the sliding distance, sliding position, sliding amplitude, etc. of the target interface.
在本实施例中,终端在响应于第一滑动触控操作滑动目标界面的过程中,可选地,可以根据第一滑动触控操作的滑动幅度,确定目标界面的滑动幅度,在这种方式下,终端中应存储有第一滑动触控操作的滑动幅度与目标界面的滑动幅度的对应关系。或者,终端还可以根据第一滑动触控操作的滑动幅度,确定目标界面的滑动距离,在这种方式下,终端中应存储有第一滑动触控操作的滑动距离与目标界面的滑动幅度的对应关系。可选地,终端还可以通过目标界面的滑动幅度或者滑动距离,生成目标界面的滑动轨迹,从而确定目标界面的界面状态,其中,以第一滑动触控操作为右滑来举例说明,根据目标界面的滑动轨迹包括目标界面向右滑动一段距离,但目标界面的左边界未处于显示屏中;目标界面向右滑动一段距离,目标界面的左边界正好位于显示屏的左边界;目标界面向右滑动一段距离,目标界面的左边界处于显示屏区域内,而后目标界面向左回弹,使得目标界面的左边界位于显示屏的左边界等。In this embodiment, in the process of sliding the target interface in response to the first sliding touch operation, the terminal may optionally determine the sliding range of the target interface according to the sliding range of the first sliding touch operation. , the corresponding relationship between the sliding range of the first sliding touch operation and the sliding range of the target interface should be stored in the terminal. Alternatively, the terminal may also determine the sliding distance of the target interface according to the sliding range of the first sliding touch operation. In this way, the terminal should store the difference between the sliding distance of the first sliding touch operation and the sliding range of the target interface. Correspondence. Optionally, the terminal may also generate a sliding trajectory of the target interface through the sliding range or distance of the target interface, so as to determine the interface state of the target interface. The sliding trajectory of the interface includes sliding the target interface to the right for a certain distance, but the left border of the target interface is not in the display screen; sliding the target interface for a certain distance to the right, the left border of the target interface is located at the left border of the display screen; the target interface is rightward Slide a certain distance, the left border of the target interface is within the display area, and then the target interface bounces to the left, so that the left border of the target interface is located at the left border of the display screen, etc.
步骤302,若界面状态为预设界面状态,则确定目标界面的目标边界展示于显示屏中。Step 302 , if the interface state is the preset interface state, determine that the target boundary of the target interface is displayed on the display screen.
可选地,在其中一个实施例中,预设界面状态为目标界面延第一滑动触控操作对应的第一方向滑动直至目标边界停留在显示屏的边界的位置;或者,预设界面状态为目标界面延第一滑动触控操作对应的第一方向滑动至目标边界越过显示屏的边界,并滑动至预设位置后延第二方向滑动至目标边界停留在显示屏的边界的位置;第二方向与第一方向相反。Optionally, in one of the embodiments, the preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or, the preset interface state is: The target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides in the second direction to the position where the target boundary stays at the boundary of the display screen; The direction is opposite to the first direction.
在本实施例中,以第一滑动触控操作为右滑来举例说明,预设界面状态包括目标界面右滑直至左边界停留在显示屏的边界的位置,或者,目标界面右滑直至目标边界越过显示屏的 边界,并左滑回弹至左边界停留在显示屏的边界的位置。其中,预设见面状态可结合图7进行说明,如图7所示,左边示意图中的目标界面沿着右滑箭头方向右滑至中间示意图的位置,然后沿着左滑箭头回弹至右边示意图的位置,此时,目标界面的左边界1处于显示屏中。可选地,终端在获取目标界面的界面状态为目标界面向右滑动一段距离,但目标界面的左边界未处于显示屏中,即不符合预设的界面状态,此时终端确定目标界面的目标边界不处于显示屏中。In this embodiment, taking the first sliding touch operation as right sliding as an example, the preset interface state includes sliding the target interface to the right until the left border stays at the border of the display screen, or, sliding the target interface to the right until the target boundary Go over the border of the display, and swipe left to bounce back to the position where the left border stays at the border of the display. The preset meeting state can be described with reference to Fig. 7. As shown in Fig. 7, the target interface in the left schematic diagram slides right to the position of the middle schematic diagram along the direction of the right sliding arrow, and then bounces back to the right schematic diagram along the left sliding arrow At this time, the left border 1 of the target interface is in the display screen. Optionally, when the terminal acquires the interface state of the target interface, the target interface slides a certain distance to the right, but the left border of the target interface is not in the display screen, that is, it does not conform to the preset interface state, and the terminal determines the target of the target interface at this time. The border is not in the display.
在本实施例中,终端通过目标界面的界面状态确定目标界面的目标边界是否处于显示屏中,从而确定用户是否要进行退出界面操作,可以有效区分界面浏览和界面退出操作,优化界面交互体验。In this embodiment, the terminal determines whether the target boundary of the target interface is in the display screen through the interface state of the target interface, thereby determining whether the user wants to perform an interface exit operation, which can effectively distinguish interface browsing and interface exit operation, and optimize the interface interaction experience.
终端还可以基于第二触控操作的触摸点的位置确定是否需要退出目标界面。在其中一个可选地实施例中,上述触发条件还包括:第二触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件。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 above triggering condition further includes: 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.
在本实施例中,终端根据第二触控操作的触摸点的位置,确定触摸点的位置与显示屏的目标边界之间的关系是否满足预设阈值条件,示例地,若触摸点的位置与显示屏的目标边界之间的距离小于预设距离阈值,则认为其之间的关系满足预设阈值条件;或者,若触摸点的位置与显示屏的目标边界之间的像素点小于预设像素点数量,则认为其之间的关系满足预设阈值条件;又或者,若触摸点的位置处于显示屏的目标边界之内的预设区域内,则认为其之间的关系满足预设阈值条件,本实施例对此不做限定。In this embodiment, the terminal determines whether the relationship between the position of the touch point and the target boundary of the display screen satisfies the preset threshold condition according to the position of the touch point of the second touch operation. If the distance between the target boundaries of the display screen is less than the preset distance threshold, it is considered that the relationship between them satisfies the preset threshold condition; or, if the pixel point between the position of the touch point and the target boundary of the display screen is smaller than the preset pixel the number of points, the relationship between them is considered to satisfy the preset threshold condition; or, if the position of the touch point is within the preset area within the target boundary of the display screen, the relationship between them is considered to satisfy the preset threshold condition , which is not limited in this embodiment.
在本实施例中,终端确定第二触控操作的初始触摸点的位置与显示屏的目标边界之间的关系满足预设阈值条件,且,在第二触控操作的操作类型与第一滑动触控操作的操作类型一致时,退出目标界面,可以快速、有效地区分浏览界面和退出界面的操作,实现快速退出目标界面。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 satisfies a preset threshold condition, and the operation type of the second touch operation and the first sliding When the operation type of the touch operation is the same, the target interface can be exited, and the operation of browsing the interface and the exit interface can be quickly and effectively distinguished, so as to quickly exit the target interface.
在其中一个可选地实施例中,上述第二触控操作的初始触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,包括:In one optional embodiment, 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:
第二触控操作的初始触摸点的位置到显示屏的目标边界之间的像素数量小于预设数量阈值,和/或,第二触控操作的初始触摸点的位置与显示屏的目标边界之间的距离小于预设距离阈值。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 the preset number threshold, and/or the difference between the position of the initial touch point of the second touch operation and the target boundary of the display screen The distance between them is less than the preset distance threshold.
在本实施例中,以显示屏的目标边界为左边界来举例说明,第一种情况,可参考图8所示,图8中黑色实心圆为初始触摸点,终端在获取到初始触摸点的位置之后,确定初始触摸点的位置与显示屏的目标边界3之间的像素点的数量n,若n小于预设数量阈值,则确定初始触摸点的位置与显示屏的目标边界之间的关系满足预设阈值条件。其中,预设数量阈值可以为10、11、12等,本申请实施例中不加以限制。第二种情况,可参考图9所示,图9中黑色实心圆为初始触摸点,终端在获取到初始触摸点的位置之后,确定初始触摸点的位置与显示屏的目标边界3之间的距离d,若d小于预设距离阈值,则确定初始触摸点的位置与显示屏的目标边界之间的关系满足预设阈值条件。In this embodiment, the target boundary of the display screen is taken as an example to illustrate the left boundary. For the first case, refer to Fig. 8. In Fig. 8, the black solid circle is the initial touch point. After the position, determine 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, then determine the relationship between the position of the initial touch point and the target boundary of the display screen The preset threshold conditions are met. The preset number threshold may be 10, 11, 12, etc., which is not limited in this embodiment of the present application. For the second case, refer to Fig. 9. The black solid circle in Fig. 9 is the initial touch point. After obtaining the position of the initial touch point, the terminal determines the distance between the position of the initial touch point and the target boundary 3 of the display screen. Distance d, if d is smaller 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 satisfies the preset threshold condition.
可选地,在其中一个实施例中,第二触控操作的初始触摸点的位置与显示屏的目标边界之间的距离小于第二触控操作的初始触摸点的位置与显示屏的其他边界之间的距离。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 position of the initial touch point of the second touch operation and other boundaries of the display screen. the distance between.
在本实施例中,显示屏的目标边界可以为显示屏的左边界、显示屏的右边界、显示屏的上边界、显示屏的下边界中任意一个边界。在用户基于显示屏触发界面退出操作的情况下,第二触控操作的触摸点的位置与目标边界的距离设定为小于初始触摸点的位置与显示屏的其他边界之间的距离。例如,显示屏的目标边界为左边界,在检测到第二触控操作的初始触摸点的位置与左边界的距离小于第二触控操作的初始触摸点的位置与其他边界距离的情况下, 触发终端退出目标界面的操作,本实施例对此不做限定。In this embodiment, the target boundary of the display screen may 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 exits the operation based on the trigger interface of 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, and 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 operation of triggering the terminal to exit the target interface is not limited in this embodiment.
在本实施例中,终端根据第二触控操作的初始触摸点的位置与显示屏的目标边界之间的关系构建预设阈值条件,第二触控操作的初始触摸点的位置获取方式简单、且比较准确,该方法可以有效地判断第二触控操作的初始触摸点的位置与显示屏的边界之间的关系是否符合预设阈值条件。In this embodiment, the terminal constructs the preset threshold condition according to the relationship between the position of the initial touch point of the second touch operation and the target boundary of the display screen, and the method of obtaining the position of the initial touch point of the second touch operation is simple, And it is relatively accurate, and the 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 conforms to the preset threshold condition.
图9为一个实施例中界面交互方法的流程图。本实施例中的界面交互方法,以运行于图2中的终端上为例进行描述。如图10所示,界面交互方法包括步骤401至步骤402。FIG. 9 is a flowchart of an interface interaction method in one embodiment. The interface interaction method in this embodiment is described by taking running on the terminal in FIG. 2 as an example. As shown in FIG. 10 , the interface interaction method includes steps 401 to 402 .
步骤401,在显示屏显示目标界面的过程中,接收触控操作。Step 401: Receive a touch operation during the process of displaying the target interface on the display screen.
在本实施例中,在显示屏显示目标界面的过程中,终端获取用户触发的触控操作。示例地,该触控操作可以为滑动操作,例如,右滑操作、左滑操作、上滑操作、下滑操作等全方向的滑动操作;可选地,触控操作还可以为触点操作,例如,点击目标界面一次、连续点击目标界面多次等,本实施例对此不做限定。In this embodiment, during the process of displaying the target interface on the display screen, the terminal acquires the 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 sliding operation and other omnidirectional sliding operations; optionally, the touch operation may also be a contact operation, such as , click the target interface once, click the target interface multiple times continuously, etc., which are not limited in this embodiment.
步骤402,若触控操作满足预设的触发条件,则退出目标界面;触发条件包括触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,且触控操作的操作类型为预设操作类型。Step 402, if the touch operation satisfies the preset trigger condition, 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 satisfies the preset threshold condition, and the touch operation The action type is the preset action type.
可选地,预设操作类型可以是延预设方向的滑动操作,示例地,预设操作类型为右滑操作。Optionally, the preset operation type may be a sliding operation along a preset direction. For example, the preset operation type is a right sliding operation.
在本实施例中,预设操作类型为右滑操作来举例说明,终端若基于触控操作获取到的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,且该触控操作为右滑操作,例如,触摸点的位置与显示屏的目标边界之间的距离小于预设距离阈值,且为右滑操作,则退出目标界面;或者,触摸点的位置与显示屏的目标边界之间的像素点小于预设像素点数量,且为右滑操作,则退出目标界面;又或者,若触摸点的位置处于显示屏的目标边界之内的预设区域内,且为右滑操作,则退出目标界面,本实施例对此不做限定。In this embodiment, the preset operation type is a right sliding operation as an example. If the relationship between the position of the touch point obtained by the terminal based on the touch operation and the boundary of the display screen satisfies the preset threshold The operation is a right swipe 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, and it is a right swipe operation, the target interface is exited; If the number of pixels between the boundaries is less than the preset number of pixels, and the operation is a right swipe, the target interface is exited; or, if the position of the touch point is within the preset area within the target boundary of the display screen, and it is a right swipe operation, the target interface is exited, which is not limited in this embodiment.
以终端为智能手表,以触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,且触控操作的操作类型为右滑操作,为例来说明本方案中的界面交互方法。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 satisfies the preset threshold condition, and the operation type of the touch operation is the right sliding operation, as an example to illustrate the method in this solution. interface interaction method.
基于显示屏展示目标界面的过程中,智能手表获取当前触控操作的初始触摸点的位置,在确定初始触摸点的位置与显示屏的左边界之间的像素数量小于预设数量阈值,或者,初始触摸点的位置与显示屏的目标边界之间的距离小于预设距离阈值的情况下,检测当前触控操作是否为右滑操作,若当前触控操作为右滑操作,则退出目标界面。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, and the number of pixels between the position of the initial touch point and the left border of the display screen is determined to be less than the preset number threshold, or, When the distance between the position of the initial touch point and the target boundary of the display screen is less than the preset distance threshold, it is detected whether the current touch operation is a right swipe operation, and if the current touch operation is a right swipe operation, the target interface is exited.
上述界面交互方法,终端在显示屏显示目标界面的过程中,接收触控操作,若触控操作满足预设的触发条件,则退出目标界面;触发条件包括触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,且触控操作的操作类型为预设操作类型。在本方案中,在终端接收到触控操作之后,根据预设操作类型和触发条件,确定触控操作是否满足预设的触发条件进而在确定当前触控操作满足预设的触发条件的情况下,退出目标界面。本方案中,可以快速、有效地区分浏览界面和退出界面的操作,增强了终端的界面交互的智能化。In the above interface interaction method, the terminal receives a touch operation during the process of displaying the target interface on the display screen, and if the touch operation satisfies a preset trigger condition, exits the target interface; the trigger condition includes the position and display of the touch point of the touch operation. The relationship between the boundaries of the screens satisfies the preset threshold condition, and the operation type of the touch operation is the preset operation type. In this solution, after the terminal receives the touch operation, according to the preset operation type and trigger condition, it is determined whether the touch operation satisfies the preset trigger condition, and then when it is determined that the current touch operation satisfies the preset trigger condition to exit the target interface. In this solution, operations of browsing the interface and exiting the interface can be quickly and effectively distinguished, which enhances the intelligence of the interface interaction of the terminal.
在其中一个可选地实施例中,上述触控操作的初始触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,包括:触控操作的初始触摸点的位置与显示屏的边界之间的像素数量小于预设数量阈值,和/或,触控操作的初始触摸点的位置与显示屏的边界之间的距离小于预设距离阈值。In one optional embodiment, the relationship between the position of the initial touch point of the touch operation and the boundary of the display screen satisfies a preset threshold condition, including: the position of the initial touch point of the touch operation and the display screen's boundary The number of pixels between the boundaries is smaller than the 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 smaller than the preset distance threshold.
在本实施例中,触控操作的初始触摸点的位置与显示屏的边界之间的像素数量小于预设数量阈值,可参考图8所给出的实施例,其中,预设数量阈值可以设为n,在确定触控操作的初始触摸点的位置与显示屏的边界之间的像素数量小于n的情况下,确定触控操作的初始 触摸点的位置与显示屏的边界之间的关系满足预设阈值条件。触控操作的初始触摸点的位置与显示屏的边界之间的距离小于预设距离阈值,可参考图9所示,其中,距离阈值可以为d,在确定触控操作的初始触摸点的位置与显示屏的边界之间的距离小于d的情况下,确定触控操作的初始触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,这里不做赘述。In this embodiment, the number of pixels between the position of the initial touch point of the touch operation and the boundary of the display screen is smaller than the preset number threshold, and reference may be made to the embodiment shown in FIG. 8 , wherein the preset number threshold can be set to is n, in the case where 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 n, 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 satisfies Preset threshold conditions. The distance between the position of the initial touch point of the touch operation and the border of the display screen is smaller than the preset distance threshold, as shown in FIG. 9 , where the distance threshold can be d, and the position of the initial touch point of the touch operation is determined after determining the position of the initial touch point of the touch operation. When the distance from 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 satisfies a preset threshold condition, which is not repeated here.
应该理解的是,虽然图2-10的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-10中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-10 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in Figs. 2-10 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages may be executed at different times. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
图11为一个实施例的界面交互装置的结构框图。如图11所示,该装置包括滑动模块01、获取模块02和操作模块03,其中:FIG. 11 is a structural block diagram of an interface interaction apparatus according to an embodiment. As shown in Figure 11, the device includes a sliding module 01, an acquisition module 02 and an operation module 03, wherein:
显示模块01,用于基于显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示目标界面;A display module 01, configured to slide and display the target interface in response to the received first sliding touch operation in the process of displaying the target interface based on the display screen;
接收模块02,用于在滑动显示目标界面的过程中,接收第二触控操作;A receiving module 02, configured to receive a second touch operation in the process of sliding to display the target interface;
退出模块03,用于若第二触控操作满足预设的触发条件,则退出目标界面;触发条件包括第二触控操作与第一滑动触控操作的操作类型一致。The exit module 03 is 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 the operation type of the first sliding touch operation.
在其中一个可选地实施例中,上述第二触控操作与第一滑动触控操作的操作类型一致包括:第二触控操作为滑动操作,且滑动方向与第一滑动触控操作的滑动方向一致。In one optional embodiment, the operation type of the second touch operation is consistent with the operation type of the first sliding touch operation includes: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. the same direction.
在其中一个可选地实施例中,退出模块03,用于若目标界面满足预设的界面退出条件,且第二触控操作满足触发条件,则退出目标界面。In one optional embodiment, the exit module 03 is configured to exit the target interface if the target interface satisfies a preset interface exit condition and the second touch operation satisfies the trigger condition.
在其中一个可选地实施例中,上述界面退出条件包括:目标界面的操作状态为待滑动退出状态;待滑动退出状态为目标界面的目标边界展示于显示屏中时确定的状态。In an optional embodiment, the above interface exit conditions include: the operation state of the target interface is the state to be slid to exit; the state to be slid to exit is the state determined when the target boundary of the target interface is displayed on the display screen.
在其中一个可选地实施例中,上述退出模块03,还用于在第二触控操作不满足触发条件的情况下,退出待滑动退出状态。In one optional embodiment, the above-mentioned exiting module 03 is further configured to exit the to-be-sliding exit state when the second touch operation does not satisfy the triggering condition.
在其中一个可选地实施例中,第二触控操作为在滑动显示目标界面的过程中,目标界面的目标边界展示于显示屏中之后触发的操作。In one optional embodiment, the second touch operation is an operation triggered after the target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface.
在其中一个可选地实施例中,上述接收模块02,还用于在滑动显示目标界面的过程中,获取目标界面的界面状态;界面状态表示目标界面的滑动轨迹;若界面状态为预设界面状态,则确定目标界面的目标边界展示于显示屏中。In one optional embodiment, the above receiving module 02 is further configured to acquire the interface state of the target interface in the process of sliding to display the target interface; the interface state represents the sliding track 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.
在其中一个可选地实施例中,上述预设界面状态为目标界面延第一滑动触控操作对应的第一方向滑动直至目标边界停留在显示屏的边界的位置;或者,预设界面状态为目标界面延第一滑动触控操作对应的第一方向滑动至目标边界越过显示屏的边界,并滑动至预设位置后延第二方向滑动至目标边界停留在显示屏的边界的位置;第二方向与第一方向相反。In one optional embodiment, the above-mentioned preset interface state is that the target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary stays at the boundary of the display screen; or, the preset interface state is: The target interface slides in the first direction corresponding to the first sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides in the second direction to the position where the target boundary stays at the boundary of the display screen; The direction is opposite to the first direction.
在其中一个可选地实施例中,上述触发条件还包括:第二触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件。In one optional embodiment, the above triggering condition further includes: 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.
在其中一个可选地实施例中,上述第二触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,包括:第二触控操作的初始触摸点的位置到显示屏的边界之间的像素数量小于预设数量阈值,和/或,第二触控操作的初始触摸点的位置与显示屏的边界之间的距离小于预设距离阈值。In one optional embodiment, 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: the position of the initial touch point of the second touch operation reaches The number of pixels between the boundaries of the display screen is smaller than the preset number threshold, and/or the distance between the position of the initial touch point of the second touch operation and the boundary of the display screen is smaller than the preset distance threshold.
图12为一个实施例的界面交互装置的结构框图。如图12所示,该装置包括接收模块11和退出模块12,其中:FIG. 12 is a structural block diagram of an interface interaction apparatus according to an embodiment. As shown in Figure 12, the device includes a receiving module 11 and an exiting module 12, wherein:
接收模块11,用于在显示屏显示目标界面的过程中,接收触控操作;The receiving module 11 is used for receiving a touch operation in the process of displaying the target interface on the display screen;
退出模块12,用于若触控操作满足预设的触发条件,则退出目标界面;触发条件包括触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,且触控操作的操作类型为预设操作类型。The exit module 12 is configured to exit the target interface if the touch operation satisfies 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 satisfies the preset threshold condition, and the touch The operation type of the control operation is the preset operation type.
在其中一个可选地实施例中,上述触控操作的触摸点的位置与显示屏的边界之间的关系满足预设阈值条件,包括:触控操作的初始触摸点的位置与显示屏的边界之间的像素数量小于预设数量阈值,和/或,触控操作的初始触摸点的位置与显示屏的边界之间的距离小于预设距离阈值。In one optional embodiment, 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: the position of the initial touch point of the touch operation and the boundary of the display screen The number of pixels between them is less than the 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 the preset distance threshold.
上述界面交互装置中各个模块的划分仅仅用于举例说明,在其他实施例中,可将界面交互装置按照需要划分为不同的模块,以完成上述界面交互装置的全部或部分功能。The division of each module in the above-mentioned interface interaction device is only used for illustration. In other embodiments, the interface interaction device may be divided into different modules as required to complete all or part of the functions of the above-mentioned interface interaction device.
关于界面交互装置的具体限定可以参见上文中对于界面交互方法的限定,在此不再赘述。上述界面交互装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the interface interaction device, reference may be made to the limitations on the interface interaction method above, and details are not described herein again. Each module in the above-mentioned interface interaction apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
图13为一个实施例中电子设备的内部结构示意图。如图13所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种界面交互方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。FIG. 13 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 13, the electronic device includes a processor and a memory connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. The nonvolatile 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 by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, and the like.
本申请实施例中提供的界面交互装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the interface interaction apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored on the memory of the electronic device. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行界面交互方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions, when executed by one or more processors, cause the processors to perform the steps of the interface interaction method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行界面交互方法。A computer program product containing instructions that, when run on a computer, cause the computer to perform an interface interaction method.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile 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 acts as external cache memory. By way of illustration and not limitation, RAM is available in various 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).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (20)

  1. 一种界面交互方法,应用于带触控功能的显示屏,其特征在于,包括:An interface interaction method, applied to a display screen with a touch function, is characterized in that, comprising:
    在所述显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示所述目标界面;During the process of displaying the target interface on the display screen, slidingly displays the target interface in response to the received first sliding touch operation;
    在滑动显示所述目标界面的过程中,接收第二触控操作;In the process of sliding to display the target interface, receiving a second touch operation;
    若所述第二触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述第二触控操作与所述第一滑动触控操作的操作类型一致。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 the operation type of the first sliding touch operation.
  2. 根据权利要求1所述的方法,其特征在于,所述第二触控操作与所述第一滑动触控操作的操作类型一致包括:所述第二触控操作为滑动操作,且滑动方向与所述第一滑动触控操作的滑动方向一致。The method according to claim 1, wherein the operation type of the second touch operation is consistent with the operation type of the first sliding touch operation comprising: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. The sliding directions of the first sliding touch operation are the same.
  3. 根据权利要求1或2所述的方法,其特征在于,若所述第二触控操作满足预设的触发条件,则退出所述目标界面,包括:The method according to claim 1 or 2, wherein if the second touch operation satisfies a preset trigger condition, exiting the target interface, comprising:
    若所述目标界面满足预设的界面退出条件,且所述第二触控操作满足所述触发条件,则退出所述目标界面。If the target interface satisfies a preset interface exit condition, and the second touch operation satisfies the trigger condition, exit the target interface.
  4. 根据权利要求3所述的方法,其特征在于,所述界面退出条件包括:所述目标界面的操作状态为待滑动退出状态;所述待滑动退出状态为所述目标界面的目标边界展示于所述显示屏中时确定的状态。The method according to claim 3, wherein the interface exit condition comprises: the operation state of the target interface is the exit state to be slid; the exit state to be slid is that the target boundary of the target interface is displayed in the The state determined when the display is displayed.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    若所述第二触控操作不满足所述触发条件,则退出所述待滑动退出状态。If the second touch operation does not satisfy the triggering condition, exit the to-be-sliding exit state.
  6. 根据权利要求1或2所述的方法,其特征在于,所述第二触控操作为在滑动显示所述目标界面的过程中,所述目标界面的目标边界展示于所述显示屏中之后触发的操作。The method according to claim 1 or 2, wherein the second touch operation is triggered after the target boundary of the target interface is displayed on the display screen during the process of sliding to display the target interface operation.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    在滑动显示所述目标界面的过程中,获取所述目标界面的界面状态;所述界面状态表示所述目标界面的滑动轨迹;During 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;
    若所述界面状态为预设界面状态,则确定所述目标界面的目标边界展示于所述显示屏中。If the interface state is a preset interface state, it is determined that the target boundary of the target interface is displayed on the display screen.
  8. 根据权利要求7所述的方法,其特征在于,所述预设界面状态为所述目标界面延所述第一滑动触控操作对应的第一方向滑动直至所述目标边界停留在所述显示屏的边界的位置;或者,The method according to claim 7, wherein the preset interface state is that the target interface slides in a first direction corresponding to the first sliding touch operation until the target boundary stays on the display screen the location of the boundary; or,
    所述预设界面状态为所述目标界面延所述滑动触控操作对应的第一方向滑动至所述目标边界越过所述显示屏的边界,并滑动至预设位置后延第二方向滑动至所述目标边界停留在所述显示屏的边界的位置;所述第二方向与所述第一方向相反。The preset interface state is that the target interface slides in the first direction corresponding to the sliding touch operation until the target boundary crosses the boundary of the display screen, and slides to the preset position and then slides to the second direction. The target boundary stays at the position of the boundary of the display screen; the second direction is opposite to the first direction.
  9. 根据权利要求1所述的方法,其特征在于,所述触发条件还包括:所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件。The method according to claim 1, wherein the triggering condition further comprises: 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.
  10. 根据权利要求9所述的方法,其特征在于,所述第二触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:The method according to claim 9, wherein 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, comprising:
    所述第二触控操作的初始触摸点的位置到所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,The number of pixels between the position of the initial touch point of the second 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 second touch operation and the boundary of the display screen is smaller than a preset distance threshold.
  11. 一种界面交互方法,其特征在于,应用于带触控功能的显示屏,包括:An interface interaction method, characterized in that, applied to a display screen with a touch function, comprising:
    在显示屏显示目标界面的过程中,接收触控操作;In the process of displaying the target interface on the display screen, receiving a touch operation;
    若所述触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,且所述触控操作的操作类型为预设操作类型。If the touch operation satisfies a preset trigger condition, 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 satisfies a preset threshold condition, and the operation type of the touch operation is a preset operation type.
  12. 根据权利要求11所述的方法,其特征在于,所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:The method according to claim 11, wherein 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, comprising:
    所述触控操作的初始触摸点的位置与所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,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 smaller than a preset distance threshold.
  13. 一种界面交互装置,其特征在于,所述装置包括:An interface interaction device, characterized in that the device comprises:
    滑动模块,用于在显示屏显示目标界面的过程中,响应于接收到的第一滑动触控操作滑动显示所述目标界面;a sliding module, used for slidingly displaying the target interface in response to the received first sliding touch operation during the process of displaying the target interface on the display screen;
    接收模块,用于在滑动显示所述目标界面的过程中,接收第二触控操作;a receiving module, configured to receive a second touch operation in the process of sliding to display 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 operations of the second touch operation and the first sliding touch operation same type.
  14. 根据权利要求13所述的装置,其特征在于,所述第二触控操作与所述第一滑动触控操作的操作类型一致包括:所述第二触控操作为滑动操作,且滑动方向与所述第一滑动触控操作的滑动方向一致。The device according to claim 13, wherein the operation type of the second touch operation is consistent with that of the first sliding touch operation comprising: the second touch operation is a sliding operation, and the sliding direction is the same as that of the first sliding touch operation. The sliding directions of the first sliding touch operation are the same.
  15. 根据权利要求13或14所述的装置,其特征在于,所述退出模块,用于若所述目标界面满足预设的界面退出条件,且所述第二触控操作满足所述触发条件,则退出所述目标界面。The device according to claim 13 or 14, wherein the exit module is configured to: if the target interface satisfies a preset interface exit condition, and the second touch operation satisfies the trigger condition, then Exit the target interface.
  16. 根据权利要求15所述的装置,其特征在于,所述界面退出条件包括:所述目标界面的操作状态为待滑动退出状态;所述待滑动退出状态为所述目标界面的目标边界展示于所述显示屏中时确定的状态。The device according to claim 15, wherein the interface exit condition comprises: the operation state of the target interface is the exit state to be slid; the exit state to be slid is that the target boundary of the target interface is displayed in the The state determined when the display is displayed.
  17. 一种界面交互装置,其特征在于,所述装置包括:An interface interaction device, characterized in that the device comprises:
    接收模块,用于在显示屏显示目标界面的过程中,接收触控操作;The receiving module is used for receiving the touch operation during the process of displaying the target interface on the display screen;
    退出模块,用于若所述触控操作满足预设的触发条件,则退出所述目标界面;所述触发条件包括所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,且所述触控操作的操作类型为预设操作类型。An exit module, configured to exit the target interface if the touch operation satisfies a preset trigger condition; the trigger condition includes a distance between the position of the touch point of the touch operation and the boundary of the display screen The relationship satisfies the preset threshold condition, and the operation type of the touch operation is the preset operation type.
  18. 根据权利要求17所述的装置,其特征在于,所述触控操作的触摸点的位置与所述显示屏的边界之间的关系满足预设阈值条件,包括:The device according to claim 17, wherein 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, comprising:
    所述触控操作的初始触摸点的位置与所述显示屏的边界之间的像素数量小于预设数量阈值,和/或,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 smaller than a preset distance threshold.
  19. 一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至12中任一项所述的终端触控操作方法的步骤。A terminal, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that, when the computer program is executed by the processor, the processor executes any one of claims 1 to 12. The steps of the terminal touch operation method described in item.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至12中任一项所述终端触控操作的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method for a terminal touch operation according to any one of claims 1 to 12 are implemented.
PCT/CN2022/077065 2021-04-28 2022-02-21 Interface interaction method and apparatus, and electronic device and storage medium WO2022227816A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110469070.1A CN115344185A (en) 2021-04-28 2021-04-28 Interface interaction method and device, electronic equipment and storage medium
CN202110469070.1 2021-04-28

Publications (1)

Publication Number Publication Date
WO2022227816A1 true WO2022227816A1 (en) 2022-11-03

Family

ID=83847744

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/077065 WO2022227816A1 (en) 2021-04-28 2022-02-21 Interface interaction method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115344185A (en)
WO (1) WO2022227816A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436351A (en) * 2011-12-22 2012-05-02 优视科技有限公司 Method and device for controlling application interface through dragging gesture
CN102799687A (en) * 2012-07-30 2012-11-28 北界创想(北京)软件有限公司 Method and device for displaying webpage
CN103699289A (en) * 2013-12-13 2014-04-02 广州华多网络科技有限公司 Method and device for responding to sliding operation
CN103838476A (en) * 2012-11-26 2014-06-04 腾讯科技(深圳)有限公司 Data processing method and touch screen terminal
CN104935990A (en) * 2015-06-01 2015-09-23 天脉聚源(北京)传媒科技有限公司 Control method and device for channel switching
US20160202868A1 (en) * 2015-01-13 2016-07-14 Kobo Incorporated Method and system for scrolling e-book pages
CN111142729A (en) * 2019-12-26 2020-05-12 支付宝(杭州)信息技术有限公司 Target object recommendation method and device
CN112596648A (en) * 2020-12-21 2021-04-02 北京百度网讯科技有限公司 Page processing method and device, electronic equipment and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101729523B1 (en) * 2010-12-21 2017-04-24 엘지전자 주식회사 Mobile terminal and operation control method thereof
CN103605549A (en) * 2013-11-26 2014-02-26 随身云(南京)信息技术有限公司 Interface exit display method and device
CN106569693A (en) * 2016-10-28 2017-04-19 努比亚技术有限公司 Mobile terminal operation response device and method
CN109085976A (en) * 2018-08-09 2018-12-25 珠海格力电器股份有限公司 Interface hidden method and device
CN111381755B (en) * 2018-12-27 2022-03-01 北京小米移动软件有限公司 Interface content switching method and device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436351A (en) * 2011-12-22 2012-05-02 优视科技有限公司 Method and device for controlling application interface through dragging gesture
CN102799687A (en) * 2012-07-30 2012-11-28 北界创想(北京)软件有限公司 Method and device for displaying webpage
CN103838476A (en) * 2012-11-26 2014-06-04 腾讯科技(深圳)有限公司 Data processing method and touch screen terminal
CN103699289A (en) * 2013-12-13 2014-04-02 广州华多网络科技有限公司 Method and device for responding to sliding operation
US20160202868A1 (en) * 2015-01-13 2016-07-14 Kobo Incorporated Method and system for scrolling e-book pages
CN104935990A (en) * 2015-06-01 2015-09-23 天脉聚源(北京)传媒科技有限公司 Control method and device for channel switching
CN111142729A (en) * 2019-12-26 2020-05-12 支付宝(杭州)信息技术有限公司 Target object recommendation method and device
CN112596648A (en) * 2020-12-21 2021-04-02 北京百度网讯科技有限公司 Page processing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN115344185A (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US20220292590A1 (en) Two-dimensional code identification method and device, and mobile terminal
US8890825B2 (en) Apparatus and method for determining the position of user input
KR102549529B1 (en) Method for launching a second application using a first application icon in an electronic device
CN109034115A (en) Video knows drawing method, device, terminal and storage medium
CN108958681A (en) Method, apparatus, terminal and the storage medium of split screen display available
US20130212483A1 (en) Apparatus and method for providing for remote user interaction
US20120289290A1 (en) Transferring objects between application windows displayed on mobile terminal
US8952912B1 (en) Selection of elements on paginated touch sensitive display
WO2019218886A1 (en) Application pre-loading management method, device, storage medium and smart terminal
CN105549814B (en) Photographing method based on mobile terminal and mobile terminal
US10331327B2 (en) Message display method, apparatus and terminal
US20140351749A1 (en) Methods, apparatuses and computer program products for merging areas in views of user interfaces
WO2016173307A1 (en) Message copying method and device, and smart terminal
US10089001B2 (en) Operating system level management of application display
CN114415886A (en) Application icon management method and electronic equipment
US20230359343A1 (en) Interface processing method and apparatus, electronic device, and computer-readable storage medium
WO2022227816A1 (en) Interface interaction method and apparatus, and electronic device and storage medium
CN112783388A (en) Display method, display device and electronic equipment
TW201830218A (en) Method and device for view transition
WO2021232926A1 (en) Multimedia file splicing method and apparatus, electronic device, and readable storage medium
CN107077272B (en) Hit testing to determine enabling direct manipulation in response to user action
WO2022000507A1 (en) Display interface processing method and apparatus, and storage medium
CN114518819A (en) Icon management method and device and electronic equipment
WO2020253058A1 (en) Picture floating display method and apparatus, terminal and storage medium
CN112005296B (en) Selecting displays using machine learning

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794296

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE