Interface interaction logic switching method, terminal device and storage medium

CN117908997BActive Publication Date: 2026-10-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211234038.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-10
Publication Date
2026-10-23
Estimated Expiration
2042-10-10

AI Technical Summary

Technical Problem

[0004]有鉴于此,本申请实施例提供了一种界面交互逻辑的切换方法、终端设备及存储介质,以解决目前在日历显示界面具有多种显示形式的视图时,受限于操作系统的底层触摸逻辑,一次滑动能够实现的响应有限,导致在一次活动中能够切换的视图有限,影响操作流畅度,且与用户的操作预期不匹配,影响操作合理性的问题

Benefits of technology

[0008]本申请实施例的第一方面提供一种界面交互逻辑的切换方法,在界面配置有两套以上界面交互逻辑时,通过基于界面上新触发的滑动事件,确定用于响应本次滑动事件的界面交互逻辑,可以根据用户的实际滑动操作确定界面交互逻辑,提高了界面交互逻辑的多样性,并使界面交互逻辑的选择更加契合用户操作预期;并通过在本次滑动事件未终止,且界面交互过程满足预设触发条件时,基于满足预设触发条件时的触摸位置触发新的滑动事件,并重新确定界面交互逻辑,可以根据用户的实际滑动操作确定是否切换当前的界面交互逻辑,实现了判断用户的操作预期,提高了对用户的滑动操作的响应合理性,并可以在一次滑动事件中实现多次的界面交互逻辑切换,提高了界面交互时的操作流畅度和用户的使用体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117908997B_ABST
    Figure CN117908997B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of information technology, and provides a switching method of interface interaction logic, a terminal device and a storage medium. When two or more sets of interface interaction logics are configured on an interface, the method determines the interface interaction logic for responding to the current sliding event based on a newly triggered sliding event on the interface, can determine the interface interaction logic according to the actual sliding operation of a user, and improves the diversity of the interface interaction logic. When the current sliding event does not end and the interface interaction process meets a preset triggering condition, the method triggers a new sliding event based on the touch position when the preset triggering condition is met, and redetermines the interface interaction logic, can determine whether to switch the current interface interaction logic according to the actual sliding operation of the user, improves the response rationality of the sliding operation of the user, and can realize multiple switching of the interface interaction logic in one sliding event, and improves the operation fluency during the interface interaction and the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of information technology, and in particular relates to a method for switching interface interaction logic, a terminal device, and a storage medium. Background Technology

[0002] With the fast pace of life, more and more terminal devices have the function of displaying calendars, so that users can easily obtain calendar information and plan their daily schedules by checking the calendar at any time.

[0003] The calendar display interface of a terminal device usually includes multiple display views, such as week view and month view based on the date display range, and whether to display schedules, etc. Currently, when the calendar display interface has multiple display views, the response that can be achieved by a single swipe is limited due to the underlying touch logic of the operating system. This results in a limited number of views that can be switched in a single activity, affecting the smoothness of operation and not matching the user's operation expectations, thus affecting the rationality of the response to user operations. Summary of the Invention

[0004] In view of this, embodiments of this application provide a method for switching interface interaction logic, a terminal device, and a storage medium to solve the problem that when a calendar display interface has multiple display formats, the response that can be achieved by a single swipe is limited due to the underlying touch logic of the operating system, resulting in a limited number of views that can be switched in a single activity, affecting the smoothness of operation, and not matching the user's operation expectations, thus affecting the rationality of operation.

[0005] The first aspect of this application provides a method for switching interface interaction logic, the method comprising:

[0006] Based on a newly triggered swipe event on the interface, determine the interface interaction logic to respond to this swipe event, wherein the interface is configured with two or more sets of interface interaction logic.

[0007] If the current swipe event has not ended and the interface interaction process meets the preset triggering conditions, a new swipe event is triggered based on the touch position when the preset triggering conditions are met, and the process returns to execute the steps of determining the interface interaction logic to respond to the current swipe event based on the newly triggered swipe event on the interface and subsequent steps.

[0008] The first aspect of this application provides a method for switching interface interaction logic. When the interface is configured with two or more sets of interface interaction logic, the interface interaction logic used to respond to the current sliding event is determined based on a newly triggered sliding event on the interface. This method can determine the interface interaction logic according to the user's actual sliding operation, thereby improving the diversity of interface interaction logic and making the selection of interface interaction logic more in line with the user's operation expectations. Furthermore, when the current sliding event has not ended and the interface interaction process meets the preset triggering conditions, a new sliding event is triggered based on the touch position when the preset triggering conditions are met, and the interface interaction logic is re-determined. This method can determine whether to switch the current interface interaction logic according to the user's actual sliding operation, thereby realizing the judgment of the user's operation expectations, improving the rationality of the response to the user's sliding operation, and enabling multiple switching of interface interaction logic in a single sliding event, thereby improving the smoothness of operation during interface interaction and the user's user experience.

[0009] The second aspect of this application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the interface interaction logic switching method provided in the first aspect of this application.

[0010] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the interface interaction logic switching method provided in the first aspect of this application.

[0011] It is understood that the beneficial effects of the second and third aspects mentioned above can be found in the relevant descriptions in the first aspect above, and will not be repeated here. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram of the first structure of the terminal device provided in the embodiments of this application;

[0014] Figure 2 This is a flowchart illustrating the first method for switching interface interaction logic provided in this application embodiment;

[0015] Figure 3This is a schematic diagram of the second method for switching interface interaction logic provided in the embodiments of this application;

[0016] Figure 4 This is a schematic diagram of the third method for switching interface interaction logic provided in the embodiments of this application;

[0017] Figure 5 This is an interface diagram provided in this application embodiment when the starting touch position of this sliding event is located on the global interface and the current interface state is the first interface state;

[0018] Figure 6 This is a schematic diagram of the interface when sliding along the first direction based on global interface interaction logic, provided in an embodiment of this application.

[0019] Figure 7 This is a schematic diagram of the interface provided in this application embodiment when the second sub-interface slides along the second direction based on global interface interaction logic and the display range of the second sub-interface reaches its maximum.

[0020] Figure 8 This is a schematic diagram of a first interface provided in this application embodiment when the starting touch position of this sliding event is located on the first sub-interface and the current interface state is the second interface state;

[0021] Figure 9 This is a schematic diagram of a second interface provided in this application embodiment when the starting touch position of the current sliding event is located on the first sub-interface and the current interface state is the second interface state;

[0022] Figure 10 This is a schematic diagram of the interface when the interface interaction process provided in the embodiments of this application meets the preset triggering conditions;

[0023] Figure 11 This is a schematic diagram of the interface when the interface interaction process provided in the embodiment of this application meets the preset switching conditions. Detailed Implementation

[0024] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0025] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0026] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0027] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0028] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0029] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0030] In the application, when the calendar display interface has multiple display formats, the response that can be achieved by a single swipe is limited due to the underlying touch logic of the operating system. This results in a limited number of views that can be switched during a single activity, affecting the smoothness of operation and failing to match the user's operational expectations, thus affecting the rationality of operation.

[0031] Taking the underlying touch logic of the Android system as an example, if the calendar display interface includes a first sub-interface and a second sub-interface, when the user's initial touch position in this swipe event is the first sub-interface, the Android system will determine that this swipe event occurred in the first sub-interface, and the user can operate on the first sub-interface. If the user's touch position reaches the second sub-interface during the swipe, due to the determination of the underlying touch logic of the Android system, the user cannot operate on the second sub-interface.

[0032] To address the aforementioned technical problems, this application provides a method for switching interface interaction logic. When an interface is configured with two or more sets of interface interaction logic, the method determines the interface interaction logic to respond to the current swipe event based on a newly triggered swipe event on the interface. This method can determine the interface interaction logic based on the user's actual swipe operation, improving the diversity of interface interaction logic and making the selection of interface interaction logic more in line with the user's operation expectations. Furthermore, if the current swipe event has not ended and the interface interaction process meets preset triggering conditions, a new swipe event is triggered based on the touch position when the preset triggering conditions are met, and the interface interaction logic is re-determined. This method can determine whether to switch the current interface interaction logic based on the user's actual swipe operation, thereby realizing the judgment of the user's operation expectations, improving the rationality of the response to the user's swipe operation, and enabling multiple switching of interface interaction logic in a single swipe event, thus improving the smoothness of operation during interface interaction and the user experience.

[0033] The interface interaction logic switching method provided in this application can be applied to terminal devices. Terminal devices can be mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. This application does not impose any restrictions on the specific type of terminal device.

[0034] Figure 1An exemplary schematic diagram of a terminal device 100 is shown, comprising a processor 10, a memory 20, an audio module 30, a camera module 40, a sensor module 50, an input module 60, a display module 70, a wireless communication module 80, and a power module 90. The audio module 30 may include a speaker 31 and a microphone 32, the camera module 40 may include a short-focus camera 41, a long-focus camera 42, and a flash 43, the sensor module 50 may include an infrared sensor 51, an accelerometer 52, a position sensor 53, a fingerprint sensor 54, and an iris sensor 55, the input module 60 may include a touch panel 61 and an external input unit 62, and the wireless communication module 80 may include wireless communication units such as Bluetooth, optical wireless, mobile communications, wireless local area network (WLAN), near field communication (NFC), and ZigBee.

[0035] In applications, processor 10 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0036] In applications, memory 20 may be an internal storage unit of the terminal device in some embodiments, such as the hard drive or memory of the terminal device. In other embodiments, memory 20 may be an external storage device of the terminal device, such as a plug-in hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., provided on the terminal device. Furthermore, memory 20 may include both internal and external storage units of the terminal device. Memory 20 is used to store computer programs 21 such as operating system, application programs, and bootloader. Memory 20 may also be used to temporarily store data that has been output or will be output.

[0037] In the application, the display module 70 can be a flat screen, a curved screen, or a flexible screen. Specifically, it can be a foldable screen. A foldable screen can include at least one flexible screen, or it can include at least one flexible screen and at least one flat screen or a curved screen. This application embodiment does not impose any restrictions on the specific type of the display module 70.

[0038] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine certain components, or different components, such as a graphics processor. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0039] like Figure 2 As shown, the interface interaction logic switching method provided in this application embodiment is applied to a terminal device and includes the following steps S201 and S202:

[0040] Step S201: Based on the newly triggered sliding event on the interface, determine the interface interaction logic used to respond to this sliding event, wherein the interface is configured with two or more sets of interface interaction logic.

[0041] In applications, when the interface has one set of interface interaction logic, the aforementioned set of interface interaction logic can be directly used when a swipe event is triggered. When the interface has two or more sets of interface interaction logic, the corresponding interface interaction logic can be determined based on the swipe event. Specifically, the interface interaction logic used to respond to the current swipe event can be determined based on the trigger state of the swipe event. The trigger state can include trigger information such as the initial touch position or the interface state, and the trigger state can consist of at least one type of trigger information. The interface interaction logic is used to determine how to change the display state of the interface based on the swipe event. The display state can include the displayed content, the displayed area, etc. For any interface with two or more sets of interface interaction logic, each trigger state of the swipe event has a corresponding set of interface interaction logic, and the interface interaction logic corresponding to each trigger state can be the same or different.

[0042] For example, assuming the interface includes a first sub-interface and a second sub-interface, if the first trigger state is that the initial touch position is located on the first sub-interface, the first trigger state can correspond to the first set of interface interaction logic; if the second trigger state is that the initial touch position is located on the second sub-interface, the second trigger state can correspond to the second set of interface interaction logic; if the third trigger state is that the display area of ​​the first sub-interface is larger than that of the second sub-interface (belonging to the interface state), the third trigger state can correspond to the third set of interface interaction logic. This application does not impose any restrictions on the types of trigger states or the correspondence between trigger states and interface interaction logic.

[0043] Step S202: If the current swipe event has not ended and the interface interaction process meets the preset triggering conditions, trigger a new swipe event based on the touch position when the preset triggering conditions are met, and return to execute step S201.

[0044] In applications, the interface interaction process can include the sliding direction of the sliding event, the current touch position of the sliding event, and interface state, among other interface interaction information. The preset triggering conditions can be composed of various interface interaction information; this application embodiment does not impose any restrictions on the type or specific form of the preset triggering conditions. When the current sliding event has not terminated, determining whether the interface interaction process meets the preset triggering conditions can help determine whether the user's expected operation can be achieved by the current interface interaction logic. Specifically, if the interface interaction process meets the preset triggering conditions, it indicates that the user's expected operation cannot be achieved by the current interface interaction logic. A new sliding event can be triggered based on the touch position when the preset triggering conditions are met, and the process returns to step S201, thereby redetermining the interface interaction logic. If the interface interaction process does not meet the preset triggering conditions, it indicates that the user's expected operation can be achieved by the current interface interaction logic, and the current interface interaction logic can continue to be used without switching.

[0045] In applications where the interface is configured with two or more sets of interface interaction logic, the interface interaction logic used to respond to the newly triggered swipe event is determined based on the user's actual swipe operation. This improves the diversity of interface interaction logic and makes the selection of interface interaction logic more in line with the user's operation expectations. Furthermore, if the current swipe event has not ended and the interface interaction process meets the preset trigger conditions, a new swipe event is triggered based on the touch position when the preset trigger conditions are met, and the interface interaction logic is redefined. This allows the user to determine whether to switch the current interface interaction logic based on the user's actual swipe operation, thereby realizing the judgment of the user's operation expectations, improving the rationality of the response to the user's swipe operation, and enabling multiple switching of interface interaction logic within a single swipe event, thus improving the smoothness of operation during interface interaction and the user experience.

[0046] like Figure 3 As shown, in one embodiment, based on Figure 2 The corresponding embodiment includes the following steps S301 to S305:

[0047] Step S301: Detect whether a switching command is detected when the sliding event is triggered;

[0048] Step S302: If a switching command is detected when the sliding event is triggered, determine the interface interaction logic to respond to this sliding event based on the switching command;

[0049] Step S303: If no switching command is detected when the swipe event is triggered, determine the interface interaction logic to respond to the swipe event based on the starting touch position and interface state of the swipe event.

[0050] In the application, step S201 may include steps S301 to S303. The following describes the switching method in response to the switching command when the sliding event is triggered:

[0051] In the application, when a new swipe event is triggered on the interface, a switching command can be generated along with the swipe event. The specific generation method can be found in the relevant description of step S305. Each switching command has a corresponding set of interface interaction logic. When the terminal device detects a swipe event, it can listen to whether a switching command has been generated. If so, it proceeds to step S302, where the corresponding interface interaction logic is determined based on the type of the generated switching command and used as the interface interaction logic to respond to this swipe event. If not, it proceeds to step S303, where the trigger state can be composed of the initial touch position and the interface state, thereby determining the interface interaction logic to respond to this swipe event based on the initial touch position and the interface state.

[0052] Step S304: If the current swipe event has not ended and the interface interaction process meets the preset triggering conditions, trigger a new swipe event based on the touch position when the preset triggering conditions are met, and return to execute step S301 and subsequent steps.

[0053] In application, the switching method provided in step S304 can be referred to the relevant description in step S202 above, and will not be repeated here.

[0054] Step S305: If the current sliding event has not ended and the interface interaction process meets the preset switching conditions, generate the corresponding switching command based on the met preset switching conditions, and return to step S301 and subsequent steps.

[0055] In application, the interface interaction information included in the interface interaction process can refer to the relevant description in step S202 above. The preset switching conditions can be composed of various interface interaction information. This application embodiment does not impose any restrictions on the type and specific type of the preset switching conditions. When the current sliding event has not terminated, determining whether the interface interaction process meets the preset switching conditions can realize whether the user's operation expectation needs to be realized by the switching instruction corresponding to the preset switching conditions. Specifically, when the interface interaction process meets the preset switching conditions, it means that the user's operation expectation needs to be realized by the switching instruction corresponding to the preset switching conditions. A corresponding switching instruction can be generated based on the satisfied preset switching conditions, and the process returns to step S301 to determine the corresponding interface interaction logic according to the type of switching instruction.

[0056] In the application, if the current swipe event has not ended and the interface interaction process meets the preset switching conditions, a corresponding switching instruction is generated based on the met preset switching conditions. The corresponding switching instruction can be determined according to the user's actual swipe operation, and each switching instruction has a corresponding interface interaction logic. Thus, the interface interaction logic can be directly determined according to the user's actual swipe operation, and the interface interaction logic can be directly determined through the switching instruction. This can bypass the limitations of the underlying touch logic of the operating system. Furthermore, even if the specified interface is not touched, the interface interaction logic of the specified interface can still be called, further improving the rationality of the response to the user's swipe operation.

[0057] like Figure 4 As shown, in one embodiment, based on Figure 3 The corresponding embodiment includes the following steps S401 to S406:

[0058] Step S401: Detect whether a switching command is detected when the sliding event is triggered;

[0059] Step S402: If a switching command is detected when the swipe event is triggered, determine the interface interaction logic to respond to this swipe event based on the switching command.

[0060] In application, the switching methods provided in steps S401 and S402 can be referred to the relevant descriptions in steps S301 and S302 above, and will not be repeated here.

[0061] In application, steps S403 and S404 below illustrate two specific correspondences between the trigger state and the interface interaction logic. Specifically, the terminal device's interface may include a global interface, a first sub-interface, and a second sub-interface. The global interface contains both the first and second sub-interfaces. The display area of ​​the first sub-interface and the display area of ​​the second sub-interface change in a negative correlation (see reference...). Figure 5 As shown, Figure 5 An exemplary diagram is shown when the initial touch position of this swipe event is located on the global interface and the current interface state is the first interface state.

[0062] Step S403: If no switching command is detected when the sliding event is triggered, and the starting touch position of this sliding event is located on the global interface and the current interface state is the first interface state, determine that the interface interaction logic used to respond to this sliding event is the global interface interaction logic.

[0063] In the first interface state, the display area of ​​the first sub-interface is smaller than a preset ratio; the global interface interaction logic includes: adjusting the display area of ​​the first and second sub-interfaces based on the sliding direction and sliding distance of the current sliding event.

[0064] In the application, if the initial touch position of this swipe event is located on the global interface, i.e., on the first or second sub-interface, and the current interface state is the first interface state, it can be determined that the interface interaction logic used to respond to this swipe event is the global interface interaction logic. Specifically, in the first interface state, the display area of ​​the first sub-interface is smaller than a preset ratio. The preset ratio can be set according to actual needs, such as 60%, 70%, or 80%, etc.

[0065] In application, the global interface interaction logic is explained below: When the sliding direction of the swipe event is the first direction, the display area of ​​the first sub-interface expands, and the display area of ​​the second sub-interface shrinks (refer to...). Figure 6 As shown, Figure 6 An exemplary diagram shows the interface when sliding along a first direction based on global interface interaction logic; when the sliding direction of the sliding event is a second direction, the display area of ​​the first sub-interface shrinks, and the display area of ​​the second sub-interface expands (see reference). Figure 7 As shown, Figure 7 An exemplary diagram is shown where the second sub-interface slides along the second direction based on global interface interaction logic, and the display range of the second sub-interface reaches its maximum. The change in display range is positively correlated with the sliding distance.

[0066] It should be noted that, in Figures 5 to 7 In the interface diagram, the display area of ​​the first sub-interface is smaller than the preset ratio, which is the first interface state. The first direction is sliding from bottom to top, and the second direction is sliding from top to bottom.

[0067] In the application, when the interface interaction logic is global, users can adjust the display range of the first and second sub-interfaces by adjusting the sliding direction and sliding distance in a single sliding event. Furthermore, the sliding direction and sliding distance can be changed arbitrarily during the adjustment process, which improves the flexibility of adjusting the display range of the sub-interfaces and the rationality of responding to user operations.

[0068] In one embodiment, the interface is a calendar display interface, which includes a global interface, a schedule list interface, and a month view interface. The global interface includes the schedule list interface and the month view interface.

[0069] In the application, within the calendar display interface, the schedule list interface is equivalent to the first sub-interface mentioned above, and the month view interface is equivalent to the second sub-interface. The content displayed in the month view interface can vary depending on its display area. Specifically, when the display area of ​​the month view interface is smaller than the maximum scale but larger than the minimum scale, the displayed content is a standard month view (refer to [reference]). Figure 5 and Figure 6(As shown); when the display area of ​​the moon view interface is equal to the maximum scale, the content displayed in the moon view interface is a merged view (see reference). Figure 7 (As shown); When the display area of ​​the moon view interface is equal to the minimum scale, the content displayed in the moon view interface is the weekly view (see reference). Figure 8 (As shown). In the standard month view, the month view interface can display all or part of the dates of the specified month, as well as the holiday information for the displayed dates; in the merged view, the month view interface can display all the dates of the specified month, as well as the holiday information and schedule information for all the aforementioned dates; in the week view, the month view interface can display all the dates of the week in which the current day is located, as well as the holiday information for the displayed dates.

[0070] In the application, the content displayed in the schedule list interface can include the almanac information and schedule information for the selected date. The schedule information can include different types of information such as schedule content, schedule time, and schedule location. The amount of content displayed in the schedule list interface is positively correlated with the size of the display area of ​​the schedule list interface.

[0071] Step S404: If no switching command is detected when the sliding event is triggered, and the starting touch position of this sliding event is located in the first sub-interface, and the current interface state is the second interface state, determine that the interface interaction logic used to respond to this sliding event is the first sub-interface interaction logic.

[0072] In the second interface state, the display area of ​​the first sub-interface is not less than a preset ratio; the interaction logic of the first sub-interface includes: moving and displaying the content of the first sub-interface based on the sliding direction and sliding distance of the current sliding event.

[0073] In application, Figure 8 and Figure 9 An exemplary diagram is shown when the initial touch position of this swipe event is located on the first sub-interface, and the current interface state is the second interface state. In the second interface state, the display area of ​​the first sub-interface is not less than a preset ratio, which can specifically be the display ratio when the first sub-interface reaches its maximum display area.

[0074] In the application, the interaction logic of the first sub-interface is explained below: The displayed content in the first sub-interface can be moved and displayed along the sliding direction of the swipe event. Specifically, as shown below... Figure 8 and Figure 9 Taking the interface diagram as an example, when the sliding direction is the first direction (in) Figure 8 and Figure 9 (The middle section is a swipe from bottom to top), the displayed content moves upwards, and the displayed content changes from... Figure 8 Switch to Figure 9 When the sliding direction is the second direction (in Figure 8 and Figure 9 (The text is incomplete and appears to be a fragment from a larger document. A direct translation isn't possible without further context.) Figure 9 Switch to permission 8.

[0075] Step S405: If the current swipe event has not ended and the interface interaction process meets the preset triggering conditions, trigger a new swipe event based on the touch position when the preset triggering conditions are met, and return to execute step S401 and subsequent steps.

[0076] In application, Figure 10 An exemplary diagram of the interface when the interface interaction process meets the preset trigger conditions is shown below. Figure 10 Step S405 describes a specific preset trigger condition.

[0077] In the application, the preset triggering conditions include: the sliding direction of the swipe event is a first direction, the current touch position is located on a first sub-interface, and the current interface state is a third interface state; wherein, in the third interface state, the display area of ​​the first sub-interface is adjusted from being less than a preset ratio to being no less than a preset ratio; when adjusting the display area of ​​the first sub-interface, the first direction is the direction that expands the display area of ​​the first sub-interface (in...). Figure 10 (The middle part is a slide from bottom to top).

[0078] In the application, the first sub-interface is in its first-interface state when its display area is smaller than a preset ratio (refer to...). Figure 5 or Figure 6 (As shown in the interface state), and when the current touch position is on the first sub-interface, the interface interaction logic responding to this swipe event is the global interface interaction logic. If the swipe direction is the first direction and the swipe event has not ended, the display range of the first sub-interface continues to expand until the preset ratio is adjusted to be no less than the preset ratio. After that, the adjustment of the display range of the first sub-interface is limited or the display range of the first sub-interface has reached its maximum. The interface state switches from the first interface state to the third interface state. If the touch position is on the first sub-interface and continues to swipe along the first direction, the preset trigger condition is met, indicating that the user is trying to move the display content of the first sub-interface through the swipe operation. By triggering a new swipe event based on the touch position when the preset trigger condition is met, and returning to execute step S401, it can jump to step S404, thereby switching the interface interaction logic from the global interface interaction logic to the first sub-interface interaction logic, realizing the response to the user's operation expectation, and improving the rationality of the response to the user's swipe operation.

[0079] Step S406: If the current sliding event has not ended and the interface interaction process meets the preset switching conditions, generate the corresponding switching command based on the met preset switching conditions, and return to step S401 and subsequent steps.

[0080] In application, Figure 11 An exemplary diagram of the interface when the interface interaction process meets the preset switching conditions is shown below. Figure 11 Step S407 explains a specific preset switching condition.

[0081] In the application, the preset switching conditions include: the sliding direction of the swipe event is the second direction, the current touch position is on the first sub-interface, the first sub-interface has fully displayed the first line of content, and the current interface state is the second interface state; wherein, in the second interface state, the display area of ​​the first sub-interface is not less than a preset ratio, and the display content of the first sub-interface moves and displays according to the swipe event; when moving and displaying the display content of the first sub-interface, the second direction is the forward direction of the displayed content in the first sub-interface (in... Figure 11 (The middle part is a slide from top to bottom);

[0082] The switching command is used to determine that the interface interaction logic responding to this sliding event is the global interface interaction logic. The global interface interaction logic includes: adjusting the display range of the first sub-interface and the second sub-interface based on the sliding direction and sliding distance of this sliding event.

[0083] In the application, when the current interface state is the second interface state (see reference...), Figure 8 If the touch position is currently on the first sub-interface and the touch event is not terminated, the content displayed on the first sub-interface will be moved in the second direction until the first sub-interface has fully displayed the first line of content. If the touch position is on the first sub-interface and the touch continues to slide in the second direction, the preset switching condition is met, indicating that the user is trying to move the display to reduce the display range of the first sub-interface by sliding. Based on the preset switching condition, a corresponding switching instruction is generated and the process returns to step S401, which can then jump to step S402. The interface interaction logic is switched from the first sub-interface interaction logic to the global interface interaction logic through the switching instruction, thus responding to the user's operation expectations and improving the rationality of the response to the user's sliding operation.

[0084] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0085] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the above-described switching method embodiments for various interface interaction logics.

[0086] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0087] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0088] In the embodiments provided in this application, it should be understood that the disclosed terminal devices and methods can be implemented in other ways. For example, the terminal device embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.

[0089] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for switching interface interaction logic, characterized in that, include: Based on a newly triggered swipe event on the interface, determine the interface interaction logic to respond to this swipe event. The interface is configured with two or more sets of interface interaction logic. The interface includes a global interface, a first sub-interface, and a second sub-interface. The display range of the first sub-interface and the display range of the second sub-interface change in a negative correlation. The interface interaction logic is used to determine how to change the display state of the interface according to the swipe event. If the current swipe event has not ended and the interface interaction process meets the preset triggering conditions, a new swipe event is triggered based on the touch position when the preset triggering conditions are met, and the process returns to execute the steps of determining the interface interaction logic for responding to the current swipe event based on the newly triggered swipe event on the interface and subsequent steps. The preset triggering conditions include: The sliding event has a first direction, the current touch position is located on the first sub-interface, and the current interface state is the third interface state. In the third interface state, the display range of the first sub-interface is adjusted from less than a preset ratio to not less than a preset ratio; when adjusting the display range of the first sub-interface, the first direction is the direction that expands the display range of the first sub-interface.

2. The switching method as described in claim 1, characterized in that, The determination of the interface interaction logic for responding to a newly triggered swipe event on the interface includes: If a switching command is detected when a swipe event is triggered, the interface interaction logic for responding to this swipe event is determined based on the switching command. If no switching command is detected when the swipe event is triggered, the interface interaction logic to respond to the swipe event is determined based on the starting touch position and interface state of the current swipe event. The method further includes: If the current swipe event has not ended and the interface interaction process meets the preset switching conditions, a corresponding switching instruction is generated based on the met preset switching conditions, and the process returns to execute the steps of determining the interface interaction logic to respond to the current swipe event based on the newly triggered swipe event on the interface and subsequent steps.

3. The switching method as described in claim 2, characterized in that, The interface interaction logic for responding to the current swipe event, determined based on the initial touch position and interface state, includes: When the initial touch position of this swipe event is located on the global interface and the current interface state is the first interface state, the interface interaction logic used to respond to this swipe event is determined to be the global interface interaction logic. In the first interface state, the display range of the first sub-interface is smaller than a preset ratio; the global interface interaction logic includes: adjusting the display range of the first sub-interface and the second sub-interface based on the sliding direction and sliding distance of the current sliding event.

4. The switching method as described in claim 2, characterized in that, The interface interaction logic for responding to the current swipe event, determined based on the initial touch position and interface state, includes: When the initial touch position of this swipe event is located in the first sub-interface and the current interface state is the second interface state, the interface interaction logic used to respond to this swipe event is determined to be the first sub-interface interaction logic. In the second interface state, the display area of ​​the first sub-interface is not less than a preset ratio; the interaction logic of the first sub-interface includes: moving and displaying the content of the first sub-interface based on the sliding direction and sliding distance of the current sliding event.

5. The switching method as described in claim 2, characterized in that, The preset switching conditions include: The sliding event has a sliding direction of the second direction, and the current touch position is located on the first sub-interface, and the first sub-interface has fully displayed the first line of content, and the current interface state is the second interface state; In the second interface state, the display range of the first sub-interface is not less than a preset ratio, and the display content of the first sub-interface is moved and displayed according to the sliding event; when moving and displaying the display content of the first sub-interface, the second direction is the forward direction of the display content in the first sub-interface. The switching instruction is used to determine that the interface interaction logic responding to this sliding event is the global interface interaction logic. The global interface interaction logic includes: adjusting the display range of the first sub-interface and the second sub-interface based on the sliding direction and sliding distance of this sliding event.

6. The switching method according to any one of claims 1 to 5, characterized in that, The interface is a calendar display interface, which includes a global interface, a schedule list interface, and a month view interface. The global interface includes the schedule list interface and the month view interface.

7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the interface interaction logic switching method as described in any one of claims 1 to 6.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the switching method for the interface interaction logic as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Calendar display method, calendar display device and readable storage medium

    CN111949185A

  • Page display method and device, equipment and storage medium

    CN113051016A