Page slide processing method and related device
Dynamic page slide effects with varying intervals and widths address the monotony of whole-page sliding, enhancing user engagement and experience.
Patent Information
- Application Number
- JP2023513691
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-08-31
- Filing Date
- 2021-08-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-08-30
AI Technical Summary
Existing electronic devices display pages where all elements move as a whole during sliding, leading to a monotonous user experience.
A method where page modules on an electronic device slide dynamically with varying intervals and widths in response to user input, enhancing the visual interest and feedback.
This approach increases user engagement and improves the overall experience by providing dynamic page slide effects.
Smart Images

Figure 0007543623000029 
Figure 0007543623000045 
Figure 0007543623000053
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 202010901735.7, entitled "Page Slide Processing Method and Related Apparatus," filed with the China National Intellectual Property Office on August 31, 2020, which is incorporated by reference in its entirety herein.
[0002] The present application relates to the electronic technology field, and in particular to a page slide processing method and related apparatus. [Background technology]
[0003] The page content presented to the user by the electronic device is becoming richer, and the screen of the electronic device cannot display all the content on the page. In this case, the user needs to slide the page down (or up, left, right) to display more content on the page. Currently, in the process of sliding the page, all the elements on the page move as a whole, resulting in a single effect of sliding the page, which makes the user experience unsatisfactory. Summary of the Invention
[0004] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide a page slide processing method and related apparatus that enhances the interest of page slides, improves the effectiveness of feedback generated for a user by an electronic device, and enhances the user experience.
[0005] According to a first aspect, the present application provides a page slide processing method, including a step in which an electronic device displays a first page module, a second page module, and a third page module of a first page. The second page module, the first page module, and the third page module are sequentially arranged on the first page. A first interval exists between the first page module and the second page module. A second interval exists between the first page module and the third page module. The electronic device receives a slide operation applied to the first page module in a first direction. The first direction is from the first page module to the second page module. The first page module, the second page module, and the third page module slide in the first direction in response to the slide operation. The first interval decreases in a first period and increases in a second period. A start time of the second period is equal to a cut-off time of the first period. The second interval increases in a third period and decreases in a fourth period. A start time of the fourth period is equal to a cut-off time of the third period. In this way, the present embodiment of the present application provides a dynamic page sliding effect, thereby increasing the interest of page sliding, enhancing the effect of the feedback generated for the user by the electronic device, and effectively improving the user experience.
[0006] In an implementation, the width in the first direction of the second page module decreases in a first period and increases in a second period. The width in the first direction of the third page module increases in a third period and decreases in a fourth period. In this manner, the widths of the page modules may change dynamically as the pages slide.
[0007] In the implementation, the width of the second page module in the first direction is not equal to the width of the third page module in the first direction. The start time of the first period is the same as that of the third period. The distance in the first direction between the second page module and the third page module increases in the first period.
[0008] In implementation, the start time point of the first period is the same as that of the third period, and the cutoff time point of the first period is the same as that of the third period; or the cutoff time point of the first period is later than the cutoff time point of the third period; or the cutoff time point of the first period is earlier than the cutoff time point of the third period.
[0009] In the implementation, the duration of the sliding operation is a sixth time period, the start time of the sixth time period is the same as that of the first time period, and the cutoff time of the first time period is prior to the cutoff time of the sixth time period; or The cutoff time point for the first period is equal to the cutoff time point for the sixth period; or, the cutoff time point for the first period is later than the cutoff time point for the sixth period.
[0010] In the implementation, the first page module stops sliding.
[0011] In the implementation, the first page module continues the slide.
[0012] In the implementation, before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to a first value and the second interval is equal to a second value, the first interval increases to the first value in a second period, and the second interval decreases to the second value in a fourth period.
[0013] In the implementation, before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to the first value and the second interval is equal to the second value. The first interval decreases to the first value in the seventh period, and the second interval increases to the second value in the eighth period. The start time of the seventh period is equal to the cutoff time of the second period, and the start time of the eighth period is equal to the cutoff time of the fourth period. The sliding direction of the first page module is the first direction in the first period and the second period, and the sliding direction of the first page module is the second direction in the seventh period and the eighth period. The first direction is opposite to the second direction.
[0014] In the implementation, before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to the first value and the second interval is equal to the second value. The second interval increases to the second value in the ninth period, and the first interval increases to the first value in the second period. The start time of the ninth period is after or equal to the cutoff time of the fourth period, and the start time of the ninth period is before the cutoff time of the second period. The slide direction of the first page module is the first direction in the first and second periods, and the slide direction of the first page module is the second direction in the ninth period. The first direction is opposite to the second direction.
[0015] In the implementation, before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to the first value, and the second interval is equal to the second value. The second interval increases in the tenth period, decreases to the second value in the eleventh period, and the first interval increases to the first value in the second period. The cutoff time of the tenth period is equal to the start time of the eleventh period, the start time of the tenth period is after or equal to the cutoff time of the fourth period, and the start time of the eleventh period is before the cutoff time of the second period. The slide direction of the first page module is the first direction in the first and second periods, and the slide direction of the first page module is the second direction in the ninth and tenth periods. The first direction is opposite to the second direction.
[0016] In the implementation, the third page module stops sliding at the ninth period, and among the first page module, the second page module, and the third page module, the third page module is closest to the first edge of the electronic device, the first edge being the edge of the electronic device toward which the second direction faces.
[0017] In the implementation, in the sixth period, if the display content of the electronic device does not include all of the content of the third page module, the slide distance of the first page module is equal to the slide distance of the slide operation in the first direction; or, if the display content of the electronic device includes all of the content of the third page module, the slide distance of the first page module is shorter than the slide distance of the slide operation in the first direction.
[0018] In the implementation, the second and third page modules start sliding after the first page module.
[0019] In the implementation, the second page module and the third page module start sliding at the same time.
[0020] In the implementation, the distance between the second module and the third module remains unchanged in the first direction.
[0021] In the implementation, the second and third page modules stop sliding after the first page module.
[0022] In the implementation, the second page module and the third page module stop sliding at the same time.
[0023] In the implementation, the slide duration for which the second page module and the third page module slide is shorter than that of the first page module.
[0024] In the implementation, the second page module and the third page module have the same slide duration.
[0025] In implementation, after the sixth period, the sliding distance of the first page module in the first direction is determined based on the sliding speed of the sliding operation.
[0026] In the implementation, the fourth page module, the second page module, the first page module, the third page module, and the fifth page module are sequentially arranged on the first page, and a third interval exists between the second page module and the fourth page module, and a fourth interval exists between the third page module and the fifth page module. The first page module, the second page module, and the third page module sliding in the first direction in response to the slide operation includes the first page module, the second page module, the third page module, the fourth page module, and the fifth page module sliding in the first direction in response to the slide operation. The third interval decreases in the first period and increases in the second period, and the fourth interval increases in the third period and decreases in the fourth period.
[0027] In the implementation, the fourth page module starts sliding after the second page module, and the fifth page module starts sliding after the third page module.
[0028] In the implementation, the fourth and fifth page modules start sliding at the same time.
[0029] In an implementation, at a first time point in the first period compared to a start time point of the first period, the decrease amplitude of the third interval is smaller than the decrease amplitude of the first interval, and at a second time point in the third period compared to a start time point of the third period, the increase amplitude of the fourth interval is smaller than the increase amplitude of the second interval.
[0030] In an implementation, at a first time point in the first period compared to a start time point of the first period, the decrease amplitude of the third interval is equal to the decrease amplitude of the first interval, and at a second time point in the third period compared to a start time point of the third period, the increase amplitude of the fourth interval is equal to the increase amplitude of the second interval.
[0031] According to a second aspect, the present application provides an electronic device including one or more processors and one or more memories, the one or more memories being coupled to the one or more processors. The one or more memories are configured to store computer program code, the computer program code comprising computer instructions. When the one or more processors execute the computer instructions, the electronic device is capable of performing any of the possible implementations of the first aspect.
[0032] According to a third aspect, an embodiment of the present application provides a computer storage medium comprising computer instructions which, when executed on an electronic device, enable the electronic device to perform any of the possible implementations of the first aspect.
[0033] According to a fourth aspect, an embodiment of the present application provides a computer program product, which when executed on a computer enables the computer to perform any of the possible implementations of the first aspect. [Brief description of the drawings]
[0034] [Figure 1A] 1 is a schematic diagram of a layout of a page module according to an embodiment of the present application; [Figure 1B] 1 is a schematic diagram of a layout of a page module according to an embodiment of the present application; [Figure 1C] 1 is a schematic diagram of a layout of a page module according to an embodiment of the present application;
[0035] [Diagram 2] FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application;
[0036] [Figure 3A] 1 is a schematic diagram of a home screen according to an embodiment of the present application;
[0037] [Figure 3B]1 is a schematic diagram of a HiBoard according to an embodiment of the present application;
[0038] [Figure 4A] 1 is a schematic diagram of the effect of sliding a HiBoard page according to an embodiment of the present application; [Figure 4B] 1 is a schematic diagram of the effect of sliding a HiBoard page according to an embodiment of the present application; [Figure 4C] 1 is a schematic diagram of the effect of sliding a HiBoard page according to an embodiment of the present application;
[0039] [Figure 5A] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 5B] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 5C] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 5D] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 5E] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 5F] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application;
[0040] [Figure 6A] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 6B] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 6C] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application;
[0041] [Figure 7A] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 7B] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 7C]1 is a schematic diagram of a page sliding effect according to an embodiment of the present application;
[0042] [Figure 8A] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 8B] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application; [Figure 8C] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application;
[0043] [Figure 9A] 1 is a schematic diagram of a sliding effect of a multitasking page according to an embodiment of the present application; [Figure 9B] 1 is a schematic diagram of a sliding effect of a multitasking page according to an embodiment of the present application; [Figure 9C] 1 is a schematic diagram of a sliding effect of a multitasking page according to an embodiment of the present application; [Figure 9D] 1 is a schematic diagram of a sliding effect of a multitasking page according to an embodiment of the present application;
[0044] [Figure 9E] 1 is a schematic diagram of a sliding effect of a multitasking page according to an embodiment of the present application;
[0045] [Figure 10] 1 is a schematic diagram of a page sliding system according to an embodiment of the present application;
[0046] [Figure 11A] 1 is a graph of a curve for velocity V and time t in a friction force model according to an embodiment of the present application;
[0047] [Figure 11B] 1 is a graph of a curve for displacement S(t) versus time t in a friction force model according to an embodiment of the present application;
[0048] [Figure 12A]1 is a schematic diagram of a critical damping travel state of a spring according to an embodiment of the present application;
[0049] [Figure 12B] 1 is a schematic diagram of a lightly damped travel state of a spring according to an embodiment of the present application;
[0050] [Figure 12C] 1 is a schematic diagram of an overdamped travel state of a spring according to an embodiment of the present application;
[0051] [Figure 13] 1 is a schematic diagram of a page sliding effect according to an embodiment of the present application;
[0052] [Figure 14A] 4 is a curve graph of the movement of a page module according to an embodiment of the present application;
[0053] [Figure 14B] 4 is another curve graph of the movement of a page module according to an embodiment of the present application;
[0054] [Figure 15A] 1 is a schematic diagram of a slide time of a page module according to an embodiment of the present application; [Figure 15B] 1 is a schematic diagram of a slide time of a page module according to an embodiment of the present application; [Figure 15C] 1 is a schematic diagram of a slide time of a page module according to an embodiment of the present application; [Figure 15D] FIG. 1 is a schematic diagram of a slide time of a page module according to an embodiment of the present application; and
[0055] [Figure 16] FIG. 2 is a diagram of an animation implementation principle according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0056] Hereinafter, the technical solutions in the embodiments of the present application will be described with reference to the accompanying drawings. In the description of the embodiments of the present application, unless otherwise stated, " / " means "or", for example, A / B may represent A or B. In this specification, "and / or" is merely a corresponding relationship describing related objects, and represents that three relationships may exist. For example, A and / or B may represent the following three cases: only A exists, both A and B exist, and only B exists. Furthermore, in the description of the embodiments of the present application, "multiple" means two or more.
[0057] The following terms, i.e., "first" and "second," are intended for descriptive purposes only and should not be understood as an indication or suggestion of relative importance or an implicit indication of the number of the indicated technical features. Thus, features qualified by "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, unless otherwise stated, "multiple" means two or more.
[0058] An embodiment of the present application provides a page slide processing method, and the method is applied to the electronic device 100. The method may be used to increase the interest of page slides, improve the effect of feedback generated for a user by the electronic device, and enhance the user experience.
[0059] For example, FIG. 2 is a schematic diagram of the structure of an electronic device 100 in an embodiment of the present application.
[0060] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, among others. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, among others.
[0061] It will be understood that the structure shown in this embodiment of the present application does not constitute a particular limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figures, or some components may be combined, or some components may be divided, or a different arrangement of components may be used. The components shown in the figures may be implemented using hardware, software, or a combination of software and hardware.
[0062] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be separate components or may be integrated into one or more processors. The processor 110 may simultaneously execute multiple tasks (e.g., applications) and provide multiple services and functions to a user.
[0063] The controller may be the central and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and the time series signal, and complete the control of instruction fetching and instruction execution.
[0064] A memory may also be disposed in the processor 110 and configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache. The memory may store instructions or data that have just been used or that are used periodically by the processor 110. When the processor 110 needs to use the instructions or data again, the processor can retrieve the instructions or data directly from the memory, thereby avoiding repeated accesses, reducing the wait time of the processor 110, and improving system efficiency.
[0065] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, and the like.
[0066] The I2C interface is a bidirectional synchronous serial bus and includes one serial data line (SDA) and one serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be separately coupled to the touch sensor 180K, the charger, the flashlight, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 can communicate with the touch sensor 180K through the I2C bus interface to implement the touch function of the electronic device 100.
[0067] The I2S interface may be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 via the I2S buses and implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface and implement a function of answering an incoming call by using a Bluetooth headset.
[0068] The PCM interface may be used for audio communication, analog signal sampling, quantization, and encoding. In some embodiments, audio module 170 may be coupled to wireless communication module 160 through a PCM bus interface. In some embodiments, audio module 170 may alternatively implement the functionality of transmitting audio signals to wireless communication module 160 via the PCM interface and answering an incoming call via a Bluetooth headset. Both the I2S interface and the PCM interface may be used for video communication.
[0069] The UART interface is a universal serial data bus and is configured to perform asynchronous communication. The bus may be a bidirectional communication bus. The bus converts the transmitted data between serial and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 to the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through the UART interface to implement a Bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the UART interface to implement a function of playing music by using a Bluetooth headset.
[0070] The MIPI interface may be configured to connect the processor 110 to peripheral components such as a display 194 or a camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 through the CSI to implement a capture function of the electronic device 100. The processor 110 communicates with the display 194 through the DSI to implement a display function of the electronic device 100.
[0071] The GPIO interface may be configured by using software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be configured to connect the processor 110 to the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface may be further configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0072] The USB interface 130 is an interface conforming to the USB standard specification, and may be specifically a mini USB interface, a micro USB interface, a USB Type C interface, etc. The USB interface 130 may be configured to connect to a charger and charge the electronic device 100, or to transmit data between the electronic device 100 and a peripheral component, or to connect to a headset and play audio by using the headset. The interface may further be configured to connect to another electronic device, such as an AR device.
[0073] It will be understood that the interface connection relationships between modules shown in this embodiment of the present application are merely illustrative examples and do not constitute limitations on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can alternatively use an interface connection scheme different from that of the previous embodiment or use a combination of multiple interface connection schemes.
[0074] The charging management module 140 is configured to receive an input charge from a charger, which may be a wireless charger or a wired charger.
[0075] The power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, etc.
[0076] The wireless communication function of the electronic device 100 may be implemented by using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.
[0077] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be configured to cover one or more communication frequency bands. Furthermore, different antennas may be multiplexed to improve antenna utilization. For example, Antenna 1 may be multiplexed as a diversity antenna in a wireless local area network. In some other embodiments, the antennas may be used in combination with tuning switches.
[0078] The mobile communication module 150 may provide a solution for wireless communication including 2G / 3G / 4G / 5G etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 may further amplify the signal modulated by the modem processor and convert the signal to electromagnetic waves for emission through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 may be disposed in the same component as at least some modules of the processor 110.
[0079] The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the low-frequency baseband signal obtained through demodulation to the baseband processor for processing. The baseband processor processes the low-frequency baseband signal and then transfers the obtained signal to the application processor. The application processor outputs a sound signal by using an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays an image or video on the display 194. In some embodiments, the modem processor may be an independent component. In some other embodiments, the modem processor may be independent from the processor 110 and be located in the same component as the mobile communication module 150 or another functional module.
[0080] The wireless communication module 160 may provide a wireless communication solution applied to the electronic device 100, including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc. The wireless communication module 160 may be one or more components integrating at least one communication processor module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 may further receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave for radiation through the antenna 2.
[0081] In some embodiments, in the electronic device 100, the antenna 1 and the mobile communication module 150 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices by using a wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, IR technology, etc. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GNSS), a BeiDou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0082] The electronic device 100 may implement display functions through a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0083] The display 194 is configured to display images, videos, etc. The display 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0084] The electronic device 100 can implement a photographing function by using an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.
[0085] The ISP is configured to process data fed back by the camera 193. For example, during shooting, the shutter is pressed and light is transmitted through the lens to the camera's photosensitive elements. The light signal is converted into an electrical signal, which in turn transmits the electrical signal to the ISP for processing to convert the electrical signal into a visible image. The ISP may further perform algorithmic optimization for image noise, brightness, and skin tone. The ISP may further optimize parameters such as exposure and color temperature for the shooting scenario. In some embodiments, the ISP may be located within the camera 193.
[0086] The camera 193 is configured to capture still images or video. An optical image of an object is generated through a lens and projected onto a photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) photoelectric transistor. The photosensitive element converts the optical signal into an electrical signal, which is then transmitted to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, e.g., RGB or YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0087] The digital signal processor is configured to process digital signals and may process other digital signals in addition to the digital image signal, for example, when the electronic device 100 selects a frequency, the digital signal processor is configured to perform a Fourier transform on the frequency energy.
[0088] A video codec is configured to compress or decompress digital video. Electronic device 100 may support one or more types of video codecs. Thus, electronic device 100 may play or record video in multiple encoding formats, e.g., moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.
[0089] The NPU is a neural-network (NN) computing processor. The NPU can rapidly process input information by referring to the structure of biological neural networks, for example, by referring to the communication mode between human brain neurons, and can also perform continuous self-learning. The NPU can implement applications such as intelligent cognition of the electronic device 100, for example, image recognition, face recognition, speech recognition, and text understanding.
[0090] The external memory interface 120 can be used to connect to an external storage card, such as a microSD card, to expand the storage capabilities of the electronic device 100. The external storage card communicates with the processor 110 through the external memory interface 120 to implement data storage functions. For example, files such as music and video are stored on the external storage card.
[0091] The internal memory 121 may be configured to store computer executable program code. The executable program code includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to perform various functions, applications, and data processing of the electronic device 100. The internal memory 121 may include a program storage area and a data storage area.
[0092] The electronic device 100 may implement audio functions such as music playback and recording, for example, via an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, an application processor, and the like.
[0093] Audio module 170 is configured to convert digital audio information to an analog audio signal output, and also to convert an analog audio input to a digital audio signal. Audio module 170 may be further configured to encode and decode audio signals. In some embodiments, audio module 170 may be located in processor 110, or some functional modules of audio module 170 may be located in processor 110.
[0094] The speaker 170A, also referred to as a "loudspeaker," is configured to convert audio electrical signals into sound signals. The electronic device 100 can use the speaker 170A to listen to music or answer hands-free calls.
[0095] Receiver 170B, also referred to as an "earpiece," is configured to convert electrical audio signals into sound signals. When an incoming call is answered or audio information is heard by using electronic device 100, receiver 170B may be placed near a human ear to hear the audio.
[0096] The microphone 170C, also referred to as a "mike" or "mic," is configured to convert sound signals into electrical signals. When making a call or transmitting speech information, a user may place the user's mouth near the microphone 170C and emit a sound to input the sound signal into the microphone 170C. At least one microphone 170C may be disposed on the electronic device 100.
[0097] Headset jack 170D is configured to connect to a wired headset and may be a USB interface 130 or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0098] The pressure sensor 180A is configured to detect a pressure signal and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display 194. There are multiple types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. The capacitive pressure sensor may include at least two parallel plates made of a conductive material. When a force is applied to the pressure sensor 180A, a capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the capacitance change. When a touch operation is performed on the display 194, the electronic device 100 detects the touch operation intensity by using the pressure sensor 180A. The electronic device 100 may calculate a touch position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations performed at the same touch position but with different touch operation intensities may correspond to different operation commands. For example, when a touch operation with a touch operation intensity smaller than a first pressure threshold is performed on a message icon, an instruction to view an SMS message is executed. When a touch having a touch strength greater than or equal to a first pressure threshold is performed on the message icon, instructions are executed to form a new SMS message.
[0099] The gyroscope sensor 180B may be configured to determine a motion attitude of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., axes x, y, and z) may be determined by using the gyroscope sensor 180B.
[0100] The air pressure sensor 180C is configured to measure air pressure. In some embodiments, the electronic device 100 calculates an altitude based on the value of atmospheric pressure measured by the air pressure sensor 180C to assist in positioning and navigation.
[0101] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may detect the opening and closing of the flip cover by using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip cover by using the magnetic sensor 180D. Furthermore, based on the detected opening and closing state of the flip cover, a function such as automatic unlocking when the flip cover is opened is set.
[0102] The acceleration sensor 180E can detect acceleration in various directions (usually three axes) of the electronic device 100. When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180E can further be configured to identify the orientation of the electronic device, and is used for applications such as switching between landscape and portrait modes, or as a pedometer.
[0103] The distance sensor 180F is configured to measure distance. The electronic device 100 may measure distance by infrared or laser. In some embodiments, in a photography scenario, the electronic device 100 may measure distance by using the distance sensor 180F to implement fast focus.
[0104] The optical proximity sensor 180G may include a light emitting diode (LED) and an optical detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 may emit infrared light by using the light emitting diode. The electronic device 100 may detect infrared light reflected from nearby objects by using the photodiode.
[0105] The ambient light sensor 180L is configured to detect ambient light intensity. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the detected ambient light intensity. The ambient light sensor 180L may also be configured to automatically adjust the white balance during capture. The ambient light sensor 180L may also cooperate with the optical proximity sensor 180G to detect whether the electronic device 100 is in a pocket to avoid accidental touches.
[0106] The fingerprint sensor 180H is configured to collect fingerprints, and the electronic device 100 may use collected fingerprint characteristics to implement fingerprint-based unlocking, application lock access, fingerprint-based photography, fingerprint-based call answering, and the like.
[0107] Temperature sensor 180J is configured to detect a temperature. In some embodiments, electronic device 100 executes a temperature handling policy based on the temperature detected by temperature sensor 180J.
[0108] The touch sensor 180K is also referred to as a "touch panel." The touch sensor 180K may be disposed on the display 194, and the touch sensor 180K and the display 194 form a touch screen. The touch sensor 180K is configured to detect a touch operation performed on or near the touch sensor. The touch sensor can forward the detected touch operation to an application processor to determine a type of touch event. A visual output associated with the touch operation may be provided on the display 194. In some other embodiments, the touch sensor 180K may alternatively be disposed on a surface of the electronic device 100 at a location different from the location of the display 194.
[0109] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone of a person's vocal cords. The bone conduction sensor 180M can also be in contact with a person's pulse to receive a blood pressure pulse signal.
[0110] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or may be touch buttons. The electronic device 100 may receive the button inputs and generate key signal inputs associated with user settings and function control of the electronic device 100.
[0111] The motor 191 can generate vibration prompts. The motor 191 can be configured to provide incoming vibration prompts and touch vibration feedback.
[0112] Indicator 192 may be an indicator light and may be configured to indicate charging status and power changes, or may be configured to indicate messages, missed calls, notifications, and the like.
[0113] The SIM card interface 195 is configured to be connected to a SIM card, which may be inserted into or removed from the SIM card interface 195 to implement contact or separation from the electronic device 100.
[0114] First, relevant concepts in the embodiments of the present application are explained and described in order to facilitate the understanding of persons skilled in the art.
[0115] Control: A control may be an encapsulation of data and methods, and a control may have its own properties and methods. A property is a simple visitor of the control data, and a method is some simple and visible function of the control. A control is a basic element of a user interface. For example, the types of controls may include, but are not limited to, user interface controls (controls used to develop and build user interfaces, e.g., controls for interface elements such as windows, text boxes, buttons, drop-down menus, etc.), chart controls (controls used to develop charts that may implement data visualization, etc.), report controls (controls used to develop reports that implement functions such as browsing, viewing, designing, editing, and printing reports), table controls (controls used to develop tables (CELLs) that implement functions to process and manipulate data in a grid), etc. The types of controls in the embodiments of the present application further include composite controls (various existing controls are combined to form a new control that integrates the capabilities of various controls), extended controls (a new control is derived based on existing controls, adding new capabilities to existing controls or changing the capabilities of existing controls), customized controls, etc.
[0116] In embodiments of the present application, a control may include visible interface elements such as, but not limited to, a window, a scrollbar, a table view, a button, a menu bar, a text box, a navigation bar, a toolbar, an image, static text, a widget, and the like.
[0117] Page: In this specification, claims and accompanying drawings of this application, the term "page" may also be referred to as "user interface (UI)", which is a medium interface for interaction and information exchange between an application or an operating system and a user, and implements the conversion between the internal form of information and the user-acceptable form. The user interface of an application is a source code written by using a specific computer language such as Java, Extensible Markup Language (XML), etc. The source code of the interface is parsed and rendered on a terminal device, and finally presented as user-recognizable contents, e.g., controls such as pictures, text, buttons, etc. The properties and contents of the controls in the interface are defined by labels or nodes, e.g., XML describes the controls included in the interface as: <textview> 、 <imgview>, and <videoview>A node corresponds to a control or property in the interface, and the node is presented to the user as visible content after parsing and rendering. Furthermore, the interfaces of many applications, such as the interface of a hybrid application, usually include a web page. A web page may be understood as a special control incorporated in an application interface, and a web page is a source code written by using a specific computer language, such as hyper text markup language (HTML), cascading style sheets (CSS), and JavaScript (JS). The web page source code may be loaded and displayed as user-perceivable content by a browser or a web page display component with functions similar to those of a browser. The specific content included in a web page is also defined by using labels or nodes of the web page source code, for example, HTML defines the elements and properties of a web page as: 、 、 <video>, and <canvas>It is defined by:
[0118] Page Modules: A page may be divided into multiple contiguous page modules based on the layout and properties of the controls on the page. A page module may hold one or more types of information such as pictures, text, action buttons, links, animations, sounds, video, etc. A page module may be presented as a collection of one or more controls, may be presented as a card, or may be presented as a card and a collection of other controls.
[0119] A card may provide finer-grained service capabilities than an application (APP). The services or contents that a user is most interested in are directly displayed to the user in the form of an interactable card. The card may be integrated into various APPs or interaction scenarios to better meet the user's requirements. Various elements of an application, such as pictures, texts, operation buttons, and links, may be integrated into a card, and the card may be associated with one or more user interfaces of the application. A user may perform an operation (such as a click operation) on the card to make the display interface jump to the user interface of the corresponding application. According to the card-type layout, different contents can be displayed distinguishably, so that the contents of the display interface are presented more intuitively, and the user can perform operations on different contents more easily and more accurately.
[0120] In the embodiments of the present application, different page modules may or may not overlap.
[0121] In some embodiments of the present application, the display 194 of the electronic device 100 may not be able to display all of the content of a page, and the display content of a page displayed on the display 194 may include some or all of one or more contiguous page modules of the page.
[0122] As shown in FIG. 1A, a page (such as a HiBoard page) of the electronic device 100 may include multiple vertically arranged page modules. For vertically arranged page modules, a user may slide a finger up / down on the display 194 to move the page modules up / down to view more page modules of the page. Alternatively, as shown in FIG. 1B, a page (such as a multitasking page) of the electronic device 100 may include multiple horizontally arranged page modules. For horizontally arranged page modules, a user may slide a finger left / right on the display 194 to move the page modules left / right to view more page modules of the page. Alternatively, as shown in FIG. 1C, a page (such as a home page of an application store) of the electronic device 100 may include both multiple vertically arranged page modules and multiple horizontally arranged page modules.
[0123] In an embodiment of the present application, the first page referred to in the embodiment of the present application may be a HiBoard page, a multitasking page, or an application store home page, or may be another page including multiple page modules arranged in sequence.
[0124] It should be noted that in addition to vertical and horizontal orientation, page modules can be arranged in other orientations on the display page of electronic device 100, without being limited thereto herein.
[0125] For example, page 1 may include multiple successive page modules, and display 194 of electronic device 100 may display a portion of the content of the page. The electronic device may display more of the content of the page in response to a user sliding the page. In response to received user action 1, electronic device 100 displays display content 1 of page 1, where display content 1 includes some or all of one or more successive page modules of the page. When displaying display content 1, electronic device 100 in response to received user action 2 displays display content 2 of page 1, where display content 2 includes some or all of one or more successive page modules of the page.
[0126] For example, page 1 is the HiBoard page shown in FIG. 1A, user action 1 is the user's finger sliding to the right on the home screen of the electronic device, and user action 2 is the user's finger sliding down on the display.
[0127] In some embodiments of the present application, in response to a received user operation 1, the electronic device 100 renders all contents of page 1 and stores the contents in the buffer area. The electronic device 100 then displays display content 1 based on the rendered image data of display content 1 in the buffer area. In response to a received user operation 2, the electronic device 100 displays display content 2 based directly on the rendered image data of display content 2 in the buffer area.
[0128] In some embodiments of the present application, in response to a received user operation 1, the electronic device 100 renders display content 1 of page 1 and stores the display content 1 in the buffer area. Then, the electronic device 100 displays the display content 1 based on the rendered image data of the display content 1 in the buffer area. In response to a received user operation 2, the electronic device 100 renders display content 2 of page 1 and stores the display content 2 in the buffer area. Then, the electronic device 100 displays the display content 2 based on the rendered image data of the display content 2 in the buffer area.
[0129] In some embodiments of the present application, in response to the received user operation 1, the electronic device 100 renders the display content 1 of page 1 and the display content of one or more page modules closest to the display content 1 of page 1, and stores the display content 1 and the display content of the one or more page modules in the buffer area. Then, the electronic device 100 displays the display content 1 based on the rendered image data of the display content 1 in the buffer area. In response to the received user operation 2, if the electronic device 100 determines that the rendered image data in the buffer area includes the display content 2, the electronic device 100 displays the display content 2 based on the rendered image data of the display content 2 in the buffer area. If the rendered image data in the buffer area includes a part of the display content 2, the electronic device renders the display content 2 based on the part of the content, stores the display content 2 in the buffer area, and then displays the display content 2 based on the rendered image data of the display content 2 in the buffer area. If the rendered image data in the buffer area does not include the content of display content 2, the electronic device renders display content 2, stores display content 2 in the buffer area, and then displays display content 2 based on the rendered image data of display content 2 in the buffer area.
[0130] In some embodiments, the display height of page 1 on display 194 is equal to the height of display 194. In some embodiments, the display height of page 1 on display 194 is less than the height of display 194. For example, the display height of page 1 on display 194 is equal to the height of display 194 minus the height of the navigation bar. This is not limited to the embodiments of the present application.
[0131] Furthermore, in the embodiment of the present application, the layout of the page module may be divided into two types based on the display position of the page module on the display 194. In one type of layout, one page module on the page is limited to the center position of the display interface, this type of layout is referred to as center layout in the embodiment of the present application, for example, the multitasking interface shown in FIG. 1B. As shown in FIG. 1B, the page module 1 is in the center position of the user interface, which means that the distance 1 from the left edge of the page module 1 to the left edge of the display interface is equal to the distance 2 from the right edge of the page module 1 to the right edge of the display interface. In this type of card layout, the user performs a slide on the display 194 to move the page module in the display interface, and when the page stops moving, the page module stays in the center position of the user interface. In the other type of layout, it is not necessary that one page module needs to be in the center position of the display interface, this type of layout is referred to as non-center layout in the embodiment of the present application, for example, the HiBoard page shown in FIG. 1A.
[0132] Module spacing: see FIG. 1A. For page modules arranged vertically, the module spacing may refer to the shortest distance between two page modules in the long side direction of the electronic device 100. See FIG. 1B. For page modules arranged horizontally, the module spacing may refer to the shortest distance between two page modules in the short side direction of the electronic device 100. In the embodiment of the present application, the module spacing between two static adjacent page modules is referred to as the initial spacing between two page modules, and the initial spacing between any two modules on the same page may be equal or unequal. In the process of sliding a page, the module spacing between two adjacent page modules may not be equal to the initial spacing between the two page modules. When the page stops sliding, the module spacing between two adjacent page modules is equal to the initial spacing between the two page modules. The initial spacing between adjacent page modules may be preset by the electronic device 100 or may be set by a user.
[0133] Please note that the top, bottom, left, right, upward, downward, left, and right directions referred to in the embodiments of the present application are all opposites, and are illustrative descriptions of specific implementations, and do not constitute limitations on the embodiments of the present application.
[0134] The page sliding processing method in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0135] HiBoard is hereinafter used as an example to explain how to handle page slides in a non-center layout.
[0136] The HiBoard may be used to place some quick service functions and notification messages, such as application quick entry, instant messages and reminders (delivery information, travel information, schedule information, etc.), and followed information (news flash, live sports, etc.). A user can view the HiBoard by sliding right on the home screen of the electronic device 100.
[0137] 3A, the electronic device 100 displays a Home screen 10. The Home screen 10 may include a status bar, a navigation bar, a calendar indicator, and a weather indicator, and may further include a number of application icons, such as a gallery icon, a music icon, and a smart house icon.
[0138] As shown in Figures 3A and 3B, a user's finger slides to the right on the display 194. The electronic device 100 detects the user's action, and the electronic device 100 displays the HiBoard 11 in response to the user's action. The HiBoard 11 may include a status bar 201, and a page module 202, a page module 203, a page module 204, a page module 205, and a page module 206 of a HiBoard page. Each of the page modules 203, 205, and 206 is presented as a card, where the page module 203 includes an icon 202A and a search box 202B, and the page module 204 includes a title bar 204A, a control 204B, and a card 204C.
[0139] For example, Figures 4A to 4C are schematic diagrams of page sliding effects using HiBoard 10 as an example according to an embodiment of the present application.
[0140] As shown in FIG. 4A, the HiBoard page includes a page module that is displayed on the display 194 and other page modules that are not displayed. In addition to the page module shown in FIG. 4A, the HiBoard page may further include other page modules, which is not particularly limited in this specification. As shown in FIG. 4A, at time t1, the user's finger slides up by using the page module 205 as a starting point. After detecting the user operation applied to the page module 205, the electronic device 100 controls each page module of the HiBoard page to slide up.
[0141] For ease of explanation, in this embodiment of the present application, the page module 205 applied when the user slides the page up is referred to as the focus module, and the focus module is numbered X. Then, other page modules are numbered by using the focus module as a reference. As shown in FIG. 4A, the page modules of the HiBoard page are numbered X-3, X-2, X-1, X, X+1, X+2, X+3, and X+4 from top to bottom, respectively. In some embodiments, when the user slides the page, if the surface of the user's finger contacting the display 194 falls on two adjacent page modules at the same time, the electronic device 100 determines that the page module with a larger contact surface with the user's finger is the focus module X. In some embodiments, when the user slides the page, if the surface of the user's finger (stylus) contacting the display 194 falls on the module interval between two adjacent page modules, the electronic device 100 determines that the page module closest to the contact surface of the user's finger is the focus module X.
[0142] Please refer to Figures 4A to 4C. In the drawings provided in this embodiment of the present application, the page module corresponding to the dashed box is the page module of the HiBoard page that is not displayed on the display 194. The page module corresponding to the dashed box may also be displayed on the display 194 when the page module of the HiBoard page slides on the display. In some embodiments, if the display of the electronic device is large enough, the page module corresponding to the dashed box in Figure 4A may also be displayed on the display 194. In another embodiment, the display content in the dashed box is merely an exemplary visual effect achieved when displayed on the screen, and may not be drawn before being displayed, and does not occupy corresponding display resources.
[0143] As shown in FIG. 4A and FIG. 4B, during time t1 to time t3, the electronic device controls each page module to slide up, and the module interval between module (Xn) and module (Xn-1) decreases, and the module interval between module (X+n) and module (X+n-1) increases. The module interval between module (Xn) and module (Xn-1) includes the module interval between module (X-1) and module X, and the module interval between module (X-2) and module (X-1), or the module interval between module (X-3) and module (X-2). The module interval between module (X+n) and module (X+n-1) includes the module interval between module X and module (X+1), the module interval between module (X+1) and module (X+2), the module interval between module (X+2) and module (X+3), and the module interval between module (X+3) and module (X+4), where n is a positive integer.
[0144] As shown in FIG. 4B, between time t3 and time t4, the electronic device controls each page module to continue to slide upward, and the module interval between module (Xn) and module (Xn-1) increases, and the module interval between module (X+n) and module (X+n-1) decreases. As shown in FIG. 4B and FIG. 4C, between time t4 and time t5, when the relative displacement of the page module in the sliding direction reaches displacement 1, each page module stops sliding, and the module interval between module (Xn) and module (Xn-1) increases to the initial interval, and the module interval between module (X+n) and module (X+n-1) decreases to the initial interval. In some embodiments, displacement 1 may be determined by the electronic device 100 based on at least one of the user's sliding speed and sliding distance. Please note that before and after the page slides, all module intervals on the page are the initial interval, and the relative displacements of the page modules are all equal. In this embodiment of the present application, the relative displacement of each page module may also be referred to as the relative displacement of the page.
[0145] From FIG. 4A to FIG. 4C, it can be seen that when a user slides a page up, the module interval in the sliding direction (i.e., the module interval between module (Xn) and module (Xn-1)) first decreases from the initial interval and then increases to the initial interval, and the module interval in the direction opposite to the sliding direction (i.e., the module interval between module (X+n) and module (X+n-1)) first increases from the initial interval and then decreases to the initial interval. Similarly, it can be seen that when a user slides a page down, the module interval above the focus module X applied by the user first increases from the initial interval and then decreases to the initial interval, and the module interval below the focus module X first decreases from the initial interval and then increases to the initial interval.
[0146] In this embodiment of the present application, the focus module X to which the user's slide operation is applied may be referred to as the first page module, the page module adjacent to the focus module X in the user's slide direction may be referred to as the second page module (such as the module (X-1) shown in FIG. 4A), and the page module adjacent to the focus module X in the direction opposite to the user's slide direction may be referred to as the third page module (such as the module (X+1) shown in FIG. 4A). There is a first interval between the first page module and the second page module, and there is a second interval between the first page module and the third page module. The first interval decreases in a first period and increases in a second period, and the start time of the second period is equal to the cut-off time of the first period. The second interval increases in a third period and decreases in a fourth period, and the start time of the fourth period is equal to the cut-off time of the third period.
[0147] For example, see FIG. 4A. The first interval may be a module interval between module X and module (X-1), and the second interval may be a module interval between module X and module (X+1). See FIG. 4A to FIG. 4C. The first and third periods may be periods corresponding to time t1 to time t3, and the second and fourth periods may be periods corresponding to time t3 to time t5. In this embodiment of the present application, the user's sliding direction is from the first page module to the second page module. In response to the user's sliding operation, the sliding direction of the first page module may be referred to as a first direction, and the direction opposite to the first direction may be referred to as a second direction. The initial interval between the first page module and the second page module may be a first value, and the initial interval between the first page module and the third page module may be a second value.
[0148] The page sliding effect will be further described later by using the module (X-1), module X, and module (X+1) in FIG. 5A as an example. In this embodiment of the present application, the module interval between the module (X+a) and the module (X+a-1) is L (X+a-1,X+a) where a is an integer. Specifically, the module interval between module (X-1) and module X is defined as L (X-1,X) and the module interval between module (X+1) and module X is L (X,X+1) It is.
[0149] As shown in FIG. 5A, at time t21, the module interval L (X-1,X) is equal to the initial interval between modules (X-1) and X, and the module interval L (X,X+1) is equal to the initial interval between module X and module (X+1). Starting from time t21, the user's finger slides up on the display 194 by using the focus module X as the starting point. After detecting the user operation applied to the focus module X, the electronic device 100 controls each page module of the HiBoard page to slide up. From time t21 to time t23, module (X-1), module X, and module (X+1) slide up. Compared with time t21, at time t22, the module interval L (X-1,X) decreases, and the module spacing L (X,X+1) At time t23, compared to time t22, the module spacing L (X-1,X) continues to decrease, and the module spacing L (X,X+1) continues to increase. Between time t23 and time t25, module (X-1), module X, and module (X+1) continue to slide up. Compared to time t23, at time t24, the module spacing L (X-1,X) increases, and the module spacing L (X,X+1) At time t25, compared to time t24, the module spacing L (X-1,X) increases to the initial interval between modules (X-1) and X, and the module interval L (X,X+1) decreases to the initial interval between module X and module (X+1). After time t25, each page module shown in FIG. 5A stops sliding.
[0150] In some embodiments of the present application, see FIG. 5A. The second page module may be module (X-1), the third page module may be module (X+1), and the first interval is module interval L (X-1,X) and the second interval is the module interval L (X,X+1) See Fig. 5A. The first and third periods may correspond to time t21 to time t23, and the second and fourth periods correspond to time t23 to time t25. In Fig. 5A, the start time of the first period is the same as that of the third period, and the cutoff time of the first period is also the same as that of the third period.
[0151] In some embodiments, the start of the first period may be prior to the start of the third period, e.g., in FIG. 5A, module interval L (X-1,X) The point at which the value starts to decrease is the module interval L (X,X+1) In some embodiments, the start of the first period may be after the start of the third period, e.g., before the start of the module interval L in FIG. (X,X+1) The point at which starts to increase is the module interval L (X-1,X) This is before the point at which the decrease begins.
[0152] In some embodiments, the cutoff time of the first period may be later than the cutoff time of the third period, e.g., in FIG. 5A, the module interval L (X-1,X) If decreases, the module spacing L (X,X+1) starts to change from an increasing trend to a decreasing trend. In some embodiments, the cutoff time of the first period may be prior to the cutoff time of the third period, for example, in FIG. 5A, the module interval L (X,X+1) If increases, the module spacing L (X-1,X) has begun to change from a decreasing trend to an increasing trend.
[0153] In some embodiments, the cutoff time of the second period may be prior to the cutoff time of the fourth period. For example, in FIG. 5A, the module interval L (X-1,X) If increases to the initial interval between module (X-1) and module X, the module interval L (X,X+1) continues to decrease until it decreases to the initial interval between module X and module (X+1). In some embodiments, the cutoff time of the second period may be later than the cutoff time of the fourth period. For example, in FIG. 5A, module interval L (X,X+1) If decreases to the initial interval between modules X and (X+1), the module interval L (X-1,X) continues to increase further until it increases to the initial interval between module (X-1) and module X.
[0154] In some embodiments of the present application, each page module is connected to a virtual spring, and the movement tendency of each page module meets the elastic movement tendency of the spring.
[0155] In some embodiments of the present application, a chain connection with spring properties is used between adjacent page modules, as shown in FIG. 5B. In this embodiment of the present application, the virtual spring between module (X+a) and module (X+a-1) is Y (X+a-1,X+a) where a is an integer. The module spacing L between module (X+a) and module (X+a-1) (X+a-1,X+a) is the virtual spring Y (X+a-1,X+a) is the length of
[0156] As shown in FIG. 5B, at time t21, the user's finger slides up on the display 194 by using the focus module X as the starting point, and the electronic device detects that the user's sliding speed is V1. After the user stops sliding, the module X slides up at the initial speed V1. Between time t21 and time t22, the module interval L (X-1,X) decreases, and the module spacing L (X,X+1) increases. Chain connections with spring properties are used between adjacent modules. Module spacing L (X-1,X) decreases, the module X has a virtual spring Y (X,X-1) The module (X-1) also receives the elastic force of the virtual spring Y (X,X-1) Based on the elastic force toward the top of the electronic device 100, the module (X-1) also moves toward the top of the electronic device 100. Between time t21 and time t23, the moving speed of the module (X-1) is smaller than the moving speed of the module X, and the module interval L (X-1,X) The module spacing L gradually decreases. (X,X+1) increases, the module X exerts a virtual spring Y (X,X+1) The module (X+1) also receives the pulling force of the virtual spring Y (X,X+1) Based on the pulling force toward the top of the electronic device 100, the module (X+1) also moves toward the top of the electronic device 100. From time t21 to time t23, the moving speed of the module (X+1) is smaller than the moving speed of the module X, and the module interval L (X,X+1) gradually increases. From time t21 to time t23, during the sliding of module X, module X is subjected to an elastic force toward the bottom of electronic device 100, a tensile force toward the bottom of electronic device 100, and a friction force f. Therefore, the acceleration of module X is negative from time t21 to time t25, and the velocity of module X gradually decreases from the initial velocity V1. Starting from time t23, the velocity of module X is smaller than the velocity of module (X-1) and the velocity of module (X+1). From time t23 to time t25, the module interval L (X-1,X) gradually increases, and the module spacing L (X,X+1) decreases gradually.
[0157] In some embodiments, V1 may be the average speed at which the user slides on the display 194 during the sliding operation, or may be the instantaneous speed at which the user's finger slides before stopping the sliding operation. The electronic device 100 may determine the relative displacement S1 of each page module based on the user's sliding speed V1.
[0158] In some embodiments, module X slides up starting from time t21. (X,X-1) When the compression amount of the module (X-1) increases, the module (X-2) receives a virtual spring Y (X,X-1) The elastic force of the virtual spring Y toward the top of the electronic device 100 also increases. (X,X-1) Only when the elastic force of the virtual spring Y is greater than the frictional force experienced by the module (X-1), the module (X-1) starts to move toward the top of the electronic device 100. The sliding time of the module (X-1) is later than that of the module X. Similarly, the module X starts to slide upwards from the time point t21. (X,X+1) When the amount of tension of increases, the module (X+1) exerts a virtual spring Y (X,X+1) The electronic device 100 is subjected to an increasing tensile force of a virtual spring Y (X,X+1) Only when the pulling force of is greater than the friction force experienced by module (X+1), module (X+1) starts to move toward the top of the electronic device 100. The sliding time of module (X+1) is later than that of module X.
[0159] In some embodiments, module (X-1), module X, and module (X+1) do not experience frictional forces while sliding. Module X slides upward starting from time t21. Virtual spring Y (X,X-1) is compressed, the module (X-1) acts as a virtual spring Y (X,X-1) The module X is subjected to an elastic force of virtual spring Y and immediately moves toward the top of the electronic device 100. The module X starts to slide upward from time t21. (X,X+1) When the module (X+1) is pulled, the module (X+1) exerts a virtual spring Y (X,X+1) tensile force and immediately moves toward the top of the electronic device 100.
[0160] The page sliding effect will be further described below by using the page module shown in Figure 5C as an example. For the sliding effects of module (X-1), module X, and module (X+1) in Figure 5C, please refer to the sliding effects of module (X-1), module X, and module (X+1) in Figure 5A.
[0161] As shown in FIG. 5C, at time t21, the module interval L (X-n-1,X-n) is equal to the initial interval between modules (Xn) and (Xn-1), and the module interval L (X+n-1,X+n) is equal to the initial interval between module (X+n-1) and module (X+n). Starting from time t21, the user's finger slides up on the display 194 by using the focus module X as the starting point. After detecting the user operation applied to the focus module X, the electronic device 100 controls each page module to slide up. From time t21 to time t23, each page module slides up. Compared with time t21, at time t22, the module interval L (X-n-1,X-n) decreases, and the module spacing L (X+n-1,X+n) At time t23, compared to time t22, the module spacing L (X-n-1,X-n) continues to decrease, and the module spacing L (X+n-1,X+n) continues to increase. Between time t23 and time t25, each page module continues to slide up. Compared to time t23, at time t24, the module interval L (X-n-1,X-n) increases, and the module spacing L (X+n-1,X+n) At time t25, compared to time t24, the module spacing L (X-n-1,X-n) increases to the initial interval between modules (Xn) and (Xn-1), and the module interval L (X+n-1,X+n) decreases to the initial interval between module (X+n-1) and module (X+n). After time t25, each page module shown in FIG. 5A stops sliding.
[0162] In some embodiments of the present application, at time t22, the module interval L (X-1,X) is the module spacing L (X-2,X-1) Smaller, module spacing L (X,X+1) is the module spacing L (X+1,X+2) At time t23, the module spacing L (X-1,X) is the module spacing L (X-2,X-1) Less than or equal to module spacing L (X,X+1) is the module spacing L (X+1,X+2) Larger, module spacing L (X+1,X+2) is the module spacing L (X+2,X+3) In the implementation, at time t24, the module spacing L (X-1,X) is the module spacing L (X-2,X-1) Larger, module spacing L (X,X+1) is the module spacing L (X+1,X+2) Smaller, module spacing L (X+1,X+2) is the module spacing L (X+2,X+3) In another implementation, at time t24 and time t25, the module spacing L (X-1,X) is the module spacing L (X-2,X-1) Smaller, module spacing L (X,X+1) is the module spacing L (X+1,X+2) Larger, module spacing L (X+1,X+2) is the module spacing L (X+2,X+3) In another implementation, at time t24, the module spacing L (X-1,X) is the module spacing L (X-2,X-1) Larger, module spacing L (X,X+1) is the module spacing L (X+1,X+2) Smaller, module spacing L (X+1,X+2) is the module spacing L (X+2,X+3) Greater than.
[0163] In some embodiments of the present application, at any time from time t21 to time t25, the module interval L (X-1,X) is the module spacing L (X-2,X-1) Equal to the module spacing L (X,X+1) is the module spacing L (X+1,X+2) , module spacing L (X+2,X+3) , module spacing L (X+3,X+4) , and module spacing L (X+4,X+5) In other words, the module spacing L (X-n,X-n-1) The trend of change in is the same, and the module spacing L (X+n,X+n-1) The trend of change is the same.
[0164] In some embodiments of the present application, the module spacing L at time t22 is smaller than that at time t21. (X-2,X-1) The amplitude of the decrease is the module spacing L (X-1,X) The amplitude of the decrease is smaller than the module spacing L (X+1,X+2) The amplitude of increase is the module spacing L (X,X+1) The increase amplitude of the time t22 may also be referred to as the first time and / or the second time.
[0165] In some embodiments of the present application, the module spacing L at time t22 is smaller than that at time t21. (X-2,X-1) The amplitude of the decrease is the module spacing L (X-1,X) The reduction amplitude is equal to the module spacing L (X+1,X+2) The amplitude of increase is the module spacing L (X,X+1) is equal to the increase in amplitude.
[0166] In some embodiments of the present application, at any time from time t21 to time t25, the distance between module (Xn) and module (X+n) remains unchanged. For example, the distance between module (X-1) and module (X+1) remains unchanged, specifically, the distance between module X and module (X+1) is the module interval L (X-1,X) Module spacing L (X,X+1) plus , and the distance between module X and module (X-1) is greater than or equal to zero. For example, the distance between module (X-2) and module (X+2) remains unchanged.
[0167] In some embodiments of the present application, the change trend in the process of decreasing (or increasing) the module interval may be a linear change or a nonlinear change. The process of decreasing (or increasing) the module interval may be continuous or discontinuous. For example, the period from time t22 to time t23 includes period 1 and period 2. Module interval L (X-1,X) During the period from time t22 to time t23, the overall trend is downwards, and the module interval L (X-1,X) may remain unchanged in period 1 and decrease in period 2. The order of period 1 and period 2 is not particularly limited herein.
[0168] In some embodiments of the present application, another page module adjacent to the second page module may also be referred to as a fourth page module, and another page module adjacent to the third page module may also be referred to as a fifth page module. A third interval exists between the second page module and the fourth page module, and a fourth interval exists between the third page module and the fifth page module. The third interval decreases in the first period and increases in the second period, and the fourth interval increases in the third period and decreases in the fourth period. For example, referring to FIG. 5C, the fourth page module may be module (X-2), and the fifth page module may be module (X+2). The third interval is a module interval L. (X-2,X-1) and the fourth interval is the module interval L (X+1,X+2) It may be.
[0169] In some embodiments of the present application, there is a time difference between the slide start times of the page modules. The electronic device 100 detects an upward slide operation applied to the focus module X, and in response to the slide operation, the electronic device 100 controls each page module to slide upward, and on the same side of the focus module X, there is a time difference between the slide start times of two adjacent page modules, and the module closer to the focus module X slides first. Moreover, the slide start time of the module (Xn) is the same as that of the module (X+n).
[0170] For example, as shown in FIG. 5D, time t26 and time t27 may be included between time t21 and time t22. The electronic device 100 detects an upward sliding operation applied to the focus module X, and the electronic device 100 controls each page module to slide up. From time t21 to time t26, the module X slides up, and the positions of all other modules remain unchanged. Compared with time t21, at time t26, the module interval L (X-1,X) decreases, and the module spacing L (X,X+1) increases, and the module spacing L (X-2,X-1) and module spacing L (X+1,X+2) remains unchanged. Between time t26 and time t27, module X continues to slide up, modules (X-1) and (X+1) start to slide up, and the positions of the other modules remain unchanged. Compared to time t26, at time t27, the module spacing L (X-2,X-1) and module spacing L (X-1,X) decreases, and the module spacing L (X,X+1) and module spacing L (X+1,X+2) increases. The difference between the slide start time of module (X-1) and module X is time difference 1, that is, the time difference between time t21 and time t26, and the difference between the slide start time of module (X-2) and module (X-1) is time difference 2, that is, the time difference between time t26 and time t22. Time difference 1 and time difference 2 may be set by default by electronic device 100, may be pre-set by user, or may be determined by electronic device based on friction force of page module. Time difference 1 and time difference 2 may be equal or unequal.
[0171] In some embodiments of the present application, there is no time difference between the slide start times of the page modules. For example, as shown in FIG. 5E, the electronic device 100 detects an upward slide operation applied to the focus module X, and the electronic device 100 controls the page modules to slide up at the same time. Starting from time t21, each page module slides up. Compared with time t21, at time t26, the module interval L (X-n-1,X-n) decreases, and the module spacing L (X+n-1,X+n) increases. Between time t26 and time t27, each page module continues to slide upward. Compared to time t26, at time t27, the module interval L (X-n-1,X-n) continues to decrease, and the module spacing L (X+n-1,X+n) continues to increase.
[0172] In some embodiments of the present application, there is a time difference between the slide stop time of the page modules. On the same side of the focus module X, there is a time difference between the slide stop time of two adjacent page modules, and the module closer to the focus module X stops sliding first. Moreover, the slide stop time of the module (Xn) is the same as that of the module (X+n).
[0173] For example, as shown in FIG. 5F, time t28 and time t29 may be included between time t24 and time t25. Between time t24 and time t28, each page module slides up, and the module interval L (X-n-1,X-n) increases, and the module spacing L (X+n-1,X+n) At time t28, module X starts to stop sliding, and at time t29, modules (X-1) and (X+1) start to stop sliding. Between time t28 and time t29, the position of module X remains unchanged, and the other modules continue to slide up. Compared to time t28, at time t29, the module spacing L (X-n-1,X-n) continues to increase, and the module spacing L (X+n-1,X+n) continues to decrease. Module spacing L (X-1,X) increases to the initial interval, and the module interval L (X,X+1) decreases to the initial interval. Between time t29 and time t25, the positions of module X, module (X-1), and module (X+1) remain unchanged, while the other modules continue to slide up. Compared to time t29, at time t25, the module interval L (X-1,X) and module spacing L (X,X+1) remains unchanged, and the module spacing L (X-1,X) Module spacing other than L (X-n-1,X-n) increases to the initial interval, and the module interval L (X,X+1) Module spacing other than L (X+n-1,X+n) decreases to the initial interval. The difference between the slide stop time points of module (X-1) and module X is time difference 3, i.e., the time difference between time point t27 and time point t28, and the difference between the slide stop time points of module (X-2) and module (X-1) is time difference 4. Time difference 3 and time difference 4 may be set by default by electronic device 100 or may be pre-set by a user. Time difference 3 and time difference 4 may be equal or unequal.
[0174] In the implementation, a chain connection with spring properties is used between adjacent page modules. Only when the elastic force toward the top of the electronic device 100 experienced by the module (Xn) is greater than the sliding friction force of the module (Xn), the module (Xn) starts to slide toward the top of the electronic device 100. From time t21 to time t22, the sliding speed of the module (Xn) is smaller than or equal to that of the module (Xn-1), and the sliding time of the module (Xn-1) is later than that of the module (Xn). Therefore, compared with time t21, at time t22, the module interval L (X-2,X-1) decreases, and the module spacing L (X-1,X) Similarly, only when the elastic force toward the top of the electronic device 100 that the module (X+n) experiences is greater than the sliding friction force of the module (X+n), the module (X+n) starts to slide toward the top of the electronic device 100. From time t21 to time t22, the sliding speed of the module (X+n+1) is smaller than that of the module (X+n), and the sliding time of the module (X+n+1) is later than that of the module (X+n). Thus, compared to time t21, at time t22, the module interval L (X+1,X+2) increases, and the module spacing L (X,X+1) Less than.
[0175] The page shown in Figure 5C may also include another page module. Based on the above embodiment, the slide effect of any module (Xn) and any module (X+n) may be derived in the same way, and the details are not described in this specification.
[0176] 6A to 6C show several page sliding effects based on sliding a user's finger on the display 194, provided in an embodiment of the present application.
[0177] As shown in Figures 6A and 6B, starting from time t21, the user's finger slides up by S3 on the display 194 by using the focus module X as the starting point. After detecting the user operation, the electronic device 100 controls each page module to slide up. The module interval L (X-n-1,X-n) decreases, and the module spacing L (X+n-1,X+n) increases. At time t22, the user's finger leaves the display 194. Based on the sliding speed before the user's finger leaves the display 194, the electronic device 100 uses the friction force model to determine the relative displacement S4 of the module X after time t22 and the relative displacement S3+S4 of the other modules after time t21, and controls each page module to slide up. For implementation, see FIG. 6A. After time t22, during the period from time t22 to time t26, the module interval L (X-n-1,X-n) decreases and then increases to the initial interval, and the module interval L (X+n-1,X+n) In another implementation, see FIG. 6B. t30 and t31 are further included after time t22. Between time t22 and time t31, the module interval L (X-n-1,X-n) increases to the initial interval, and the module interval L (X+n-1,X+n) decreases to the initial interval.
[0178] 6C, between time t21 and time t22, the user's finger slides up by S3 on the display 194 by using the focus module X as the starting point. After detecting the user operation, the electronic device 100 controls each page module to slide up. The module interval L (X-n-1,X-n) decreases, and the module spacing L (X+n-1,X+n) After time t22, the user's finger leaves the display 194, module X stops sliding, and the electronic device 100 determines that the relative displacement of each page module is S3. From time t22 to time t28, the module spacing L (X-n-1,X-n) increases to the initial interval, and the module interval L (X+n-1,X+n) decreases to the initial interval.
[0179] In this embodiment of the present application, the user performs a slide operation in a sixth period. See FIG. 6A to FIG. 6C. The sixth period may be a period corresponding to time t21 to time t22. In some embodiments, the cutoff time of the first period is later than the cutoff time of the sixth period. For example, as shown in FIG. 6A, the first period and the third period may be a period corresponding to time t21 to time t23, and the second period and the fourth period may be a period corresponding to time t23 to time t25.
[0180] In some embodiments, the cutoff time of the first period is equal to the cutoff time of the sixth period. For example, as shown in FIG. 6B, the first period and the third period may be a period corresponding to time t21 to time t22, and the second period and the fourth period may be a period corresponding to time t22 to time t31. For example, as shown in FIG. 6C, the first period and the third period may be a period corresponding to time t21 to time t22, and the second period and the fourth period may be a period corresponding to time t22 to time t32.
[0181] In some embodiments, the cutoff time point for the first period may be prior to the cutoff time point for the sixth period.
[0182] Another page sliding effect provided in the embodiment of the present application is described below by using the page module shown in Fig. 7A as an example. In the page sliding effect shown in Fig. 7A, the size of the page module may change by sliding the page module.
[0183] See FIG. 7A. The user slides up by using the focus module X as the starting point. After detecting the user operation, the electronic device 100 controls the page to slide up. During the page slide, the width of the module (Xn) in the sliding direction of the module X and the module interval L (X-n,X-n-1) first decreases and then increases, and the width of the module (X+n) in the direction opposite to the sliding direction of the module X and the module spacing L (X-n,X-n-1) first increases and then decreases. In this embodiment of the present application, the width of the page module (X+a) before the page slides is defined as the initial width of the module (X+a).
[0184] As shown in FIG. 7A, at time t21, the width of the module (X-1) is the initial width of the module (X-1), the width of the module X is the initial width of the module X, and the module interval L (X-1,X) is equal to the initial interval between modules (X-1) and X, and the module interval L (X,X+1) is equal to the initial spacing between module X and module (X+1). Starting from time t21, the user's finger slides up on the display 194 by using the focus module X as the starting point. Between time t21 and time t23, module (X-1), module X, and module (X+1) slide up. Compared to time t21, at time t22, the width of module (X-1) and the module spacing L (X-1,X) decreases, and the width of module (X+1) and the module spacing L (X,X+1) At time t23, compared with time t22, the width of the module (X-1) and the module spacing L (X-1,X) continues to decrease, and the width of module (X+1) and the module spacing L (X,X+1) continues to increase. Between time t23 and time t25, module (X-1), module X, and module (X+1) continue to slide up. Compared with time t23, at time t24, the width of module (X-1) and the module spacing L (X-1,X) increases, and the width of module (X+1) and the module spacing L (X,X+1) At time t25, compared with time t24, the width of the module (X-1) increases to the initial width of the module (X-1), and the module spacing L (X-1,X) increases to the initial spacing between module (X-1) and module X, the width of module (X+1) decreases to the initial width of module (X+1), and the module spacing L (X,X+1) decreases to the initial interval between module X and module (X+1). After time t25, each page module shown in FIG. 7A stops sliding.
[0185] In the implementation, while the page slides between time t21 and time t26, the width of the module (X-1) and the module interval L (X-1,X) increases or decreases at the same rate, and the width of module (X+1) and the module spacing L (X,X+1) For example, the width of the module (X-1) and the module spacing L at time t22 are increased or decreased by the same ratio compared to time t21. (X-1,X) decreases, and the width of module (X+1) and the module spacing L (X,X+1) At time t22, the ratio of the width of module (X-1) to the initial width of module (X-1) is 1, and the module spacing L to the initial spacing between the two modules (i.e., the initial spacing between module (X-1) and module X) is 1. (X-1,X) At time t22, the ratio of the width of module (X+1) to the initial width of module (X+1) is also 1. At time t22, the ratio of the width of module (X+1) to the initial width of module (X+1) is 2, and the ratio of the module spacing L to the initial spacing between the two modules (i.e., the initial spacing between module (X+1) and module X) is 1. (X,X+1) The ratio of the width of the module (X-1) and the module interval L is also 2. In another implementation, while the page slides from time t21 to time t26, (X-1,X) increases or decreases at different rates, and the width of module (X+1) and the module spacing L (X,X+1) also increase or decrease at different rates.
[0186] Another page slide effect provided in the embodiment of the present application is described below by using the page shown in Fig. 7B as an example. In the page slide effect shown in Fig. 7B, the size of the page module affects the change tendency of the module interval.
[0187] As shown in FIG. 7B, the initial width of the module (X-1) shown in FIG. 7B is smaller than that of the module (X-1) shown in FIG. 5A, and the initial width of the module (X+1) shown in FIG. 7B is smaller than that of the module (X+1) shown in FIG. 5A. At time t21, the user slides up by using the focus module X as the starting point. After detecting the user operation, the electronic device 100 controls the page to slide up. Similar to the page sliding effect shown in FIG. 5A, the module interval L (X-1,X) first decreases and then increases, and the module spacing L (X,X+1) 5A, in FIG. 7B, the module spacing L (X-1,X) and module spacing L (X,X+1) is greater than those at time t22 and time t23.
[0188] In the implementation, a chain connection with spring properties is used between adjacent page modules. A page module with a larger area has a larger mass, and the page module experiences a larger friction force. As shown in FIG. 7B, starting from time t21, module X slides upward. As the compression of virtual spring Y(X,X-1) increases, module (X-1) moves toward the top of electronic device 100 by the virtual spring Y(X,X-1). (X,X-1) The electronic device 100 is subjected to an increasing elastic force of a virtual spring Y (X,X-1) Only when the elastic force of the module (X-1) is greater than the frictional force experienced by the module (X-1), the module (X-1) starts to move toward the top of the electronic device 100. If the module (X-1) has a smaller area, the module (X-1) experiences a smaller frictional force, which causes the module (X-1) to require a smaller elastic force, i.e., a smaller amount of compression of the spring required, to slide up. Thus, compared to FIG. 5A, the module spacing L (X-1,X) is greater than those at time t22 and time t23. Starting from time t21, module X slides upward. The virtual spring Y (X,X+1) When the amount of tension of increases, the module (X+1) exerts a virtual spring Y (X,X+1) The module (X+1) is subjected to an increasing tensile force of a virtual spring Y (X,X+1) 5A, the module (X+1) starts moving toward the top of the electronic device 100 only if the tensile force of the module (X+1) is greater than the frictional force experienced by the module (X+1). If the module (X+1) has a larger area, the module (X+1) experiences a larger frictional force, which causes the module (X+1) to require a larger tensile force to slide up, i.e., the amount of spring tension required is greater. Thus, compared to FIG. 5A, the module spacing L (X,X+1) is greater than those at time t22 and time t23.
[0189] In some embodiments of the present application, the width of module (X-1) is not equal to that of module (X+1), and the distance between module (X-1) and module (X+1) increases between time t21 and time t23.
[0190] By using the page shown in Fig. 7C as an example, another page slide effect provided in the embodiment of the present application is described below: Fig. 7C provides a page slide effect where the page goes back.
[0191] As shown in FIG. 7C , starting from time t41, the user's finger slides up on the display 194 by using the focus module X as the starting point. After detecting the user operation applied to the focus module X, the electronic device 100 controls each page module to slide up. From time t41 to time t43, the module (X−1), the module X, and the module (X+1) slide up. Compared with time t41, at time t42, the module interval L (X-1,X) decreases, and the module spacing L (X,X+1) At time t43, compared to time t42, the module spacing L (X-1,X) continues to decrease, and the module spacing L (X,X+1) continues to increase. Between time t43 and time t44, module (X-1), module X, and module (X+1) continue to slide up. Compared to time t43, at time t44, the module spacing L (X-1,X) increases, and the module spacing L (X,X+1) Between time t44 and time t45, module X stops sliding, and modules (X-1) and (X+1) continue to slide up. Compared to time t44, at time t45, the module interval L (X-1,X) continues to increase, and the module spacing L (X,X+1) continues to decrease. Between time t45 and time t46, module (X-1), module X, and module (X+1) slide down. Compared to time t45, at time t46, the module spacing L (X-1,X) is reduced to the initial interval between modules (X-1) and X, and the module interval L (X,X+1) increases to the initial interval between module X and module (X+1). After time t46, the page module shown in FIG. 7C stops sliding.
[0192] In some embodiments of the present application, the movement tendency of the page module shown in FIG. 7C meets the light damping movement state of the spring. As shown in FIG. 7C, the sliding distance of the page is S1. During the page sliding, the relative displacement of the page module first exceeds S1 and then returns to S1. In some embodiments, the sliding of the page module may return to the original position multiple times during the page sliding. This is not particularly limited in this specification.
[0193] In some embodiments of the present application, see FIG. 7C. The second page module may be module (X-1), the third page module may be module (X+1), and the first interval is module interval L (X-1,X) and the second interval is the module interval L (X,X+1) See Figure 7C. The first and third periods may be periods corresponding to time t41 to time t43, and the second and fourth periods are periods corresponding to time t43 to time t45.
[0194] In some embodiments of the present application, the first interval decreases to the initial interval in the seventh period after the second period, and the second interval increases to the initial interval in the eighth period after the fourth period. The start time of the seventh period is equal to the cutoff time of the second period, and the start time of the eighth period is equal to the cutoff time of the fourth period. See FIG. 7C. The seventh period and the eighth period may correspond to the time from time t45 to time t46.
[0195] By using the page shown in FIG. 8A as an example, another page slide effect provided in the embodiment of the present application will be described later. As shown in FIG. 8A, module (X-2) is an edge module of the page shown in FIG. 8A. One side of module (X-2) is connected to module (X-1), and the other side is not connected to the page module. Please refer to FIG. 8A. When the user slides the page down, from time t53 to time t56, module (X-2) is displayed on the display 194, and the distance between the top end of module (X-2) and the top end of the display interface is greater than a preset value 1. This case is referred to as page overstep in this embodiment of the present application. In this case, this embodiment of the present application provides a page slide effect that restores overstep.
[0196] As shown in FIG. 8A , starting from time t51, the user's finger slides down on the display 194 by using the focus module X as the starting point. After detecting the user operation applied to the focus module X, the electronic device 100 controls each page module to slide. From time t51 to time t52, each page module slides down. Compared with time t51, at time t52, the module interval L (X-n-1,X-n) increases, and the module spacing L (X+n-1,X+n) Between time t52 and time t53, each page module continues to slide down. Compared to time t52, at time t53, the module interval L (X-n-1,X-n) decreases, and the module spacing L (X+n-1,X+n) continues to decrease. Between time t53 and time t54, each page module continues to slide down. Compared to time t53, at time t54, the module interval L (X-n-1,X-n) increases, and the module spacing L (X+n-1,X+n) Also increases. Between time t54 and time t55, each page module slides up. Compared to time t54, at time t55, the module interval L (X-n-1,X-n) continues to increase, and the module spacing L (X+n-1,X+n) continues to increase, and the module interval L(X+n-1,X+n) is greater than the initial interval between modules (X+n-1) and (X+n). Between time t55 and time t56, each page module continues to slide up. Compared to time t55, at time t56, edge module (X-2) slides to the top of display 194, and the module interval L (X-n-1,X-n) is reduced to the initial interval between modules (Xn) and (Xn-1), and the module interval L (X+n-1,X+n) increases to the initial interval between module (X+n-1) and module (X+n). After time t56, the page module shown in FIG. 8A stops sliding.
[0197] In some embodiments of the present application, see FIG. 8B. From time t51 to time t53, the user's finger slides on the display 194 by using the focus module as a starting point. The electronic device 100 detects the user operation and controls the page module to slide down with the finger. From time t51 to time t52, the page is not overstepped, and the electronic device 100 controls the slide distance of the module X along the long side of the electronic device 100 to be equal to the slide distance 1 of the finger. From time t52 to time t53, the page is overstepped, that is, the distance between the top end of the edge module (X-2) and the top end of the display interface is greater than the preset value 1, and the electronic device 100 controls the slide distance S5 of the module X along the long side of the electronic device 100 to be shorter than the slide distance S6 of the finger.
[0198] In the implementation, the ratio between S5 and S6 is ratio 2. Ratio 2 is smaller than 1, for example, ratio 2 is equal to 0.4. For example, the preset value 1 is 0 mm or 5 mm. It can be seen that when the page is not overstepped, the sliding speed of module X is lower than the sliding speed of the finger, and when the page is overstepped, the sliding speed of module X is the same as that of the finger.
[0199] See FIG. 8B. The finger leaves the display 194 at time t53. The electronic device 100 controls each page module to continue sliding downward from time t53 to time t54 based on the sliding speed before the user's finger leaves module X, and controls each page module to return upward after time t54. Between time t54 and time t56, each page module slides upward, and the edge module (X-2) slides to the top of the display 194 of the electronic device 100, and the module interval L (X-n-1,X-n) increases first and then decreases to the initial interval, and the module interval L (X+n-1,X+n) is increased to the initial interval. In the implementation, based on the sliding speed before the user's finger is lifted, the electronic device 100 uses a friction force model to determine the distance that the module X slides down from time t53 to time t54.
[0200] In some embodiments of the present application, see FIG. 8C. Time t57 and time t58 are further included after time t53. After time t53, the user's finger leaves the display 194, and the electronic device 100 immediately controls each page module to return to the top. Between time t53 and time t57, each page module slides up, and the module interval L (X-n-1,X-n) increases, and the module spacing L (X+n-1,X+n) Between time t57 and time t58, the edge module (X-2) slides onto the display 194 of the electronic device 100, and the module spacing L (X-n-1,X-n) is reduced to the initial interval, and the module interval L (X+n-1,X+n) increases to the initial interval.
[0201] In some embodiments of the present application, see Figures 8A to 8C. The second page module may be module (X+1), the third page module may be module (X-1), and the first interval is module interval L (X,X+1) and the second interval is the module interval L (X-1,X) It may be. See Figures 8A and 8B. The first period may be a period corresponding to time t51 to time t53, the second period may be a period corresponding to time t53 to time t56, the third period may be a period corresponding to time t51 to time t52, and the fourth period may be a period corresponding to time t52 to time t53. See Figure 8B. The second period and the fourth period may be a period corresponding to time t53 to time t56. See Figures 8A and 8B. The first period may be a period corresponding to time t51 to time t53, the first period may be a period corresponding to time t53 to time t58, the third period may be a period corresponding to time t51 to time t52, and the fourth period may be a period corresponding to time t52 to time t53.
[0202] In some embodiments of the present application, the second interval increases to the initial interval after the fourth period to a ninth period, the start time of the ninth period being later than or equal to the cutoff time of the fourth period, and the start time of the ninth period being earlier than the cutoff time of the second period.
[0203] In some embodiments of the present application, the second interval increases to a tenth period after the fourth period, and the second interval decreases to an initial interval to an eleventh period after the tenth period. The cutoff time of the tenth period is equal to the start time of the eleventh period, the start time of the tenth period is after or equal to the cutoff time of the fourth period, and the start time of the eleventh period is before the cutoff time of the second period. See Figures 8A and 8B. The tenth period may be a period corresponding to time t53 to time t55, and the eleventh period may be a period corresponding to time t55 to time t56. See Figure 8C. The tenth period may be a period corresponding to time t53 to time t57, and the eleventh period may be a period corresponding to time t57 to time t58.
[0204] The multitasking interface is hereinafter used as an example to describe the page slide processing method in the center layout.
[0205] As a user uses more and more applications, the user often needs to switch between different applications to use different services and functions provided by the different applications. The multitasking interface may include page modules corresponding to multiple applications that are started to be executed by the electronic device 100, and the user can quickly switch between different applications through the page modules in the multitasking interface.
[0206] For example, FIG. 9A illustrates a multitasking page according to an embodiment of the present application. As illustrated in FIG. 9A, applications launched by the electronic device 100 include applications such as calendar, short message, album, call, and contact. The multitasking page of the electronic device 100 includes page modules corresponding to the aforementioned applications, respectively. The page modules may be arranged on the multitasking page based on a plurality of classification policies, which are not particularly limited in the present specification. In implementation, the electronic device 100 classifies the page modules based on the recent foreground runtime of the launched application.
[0207] 9A, a page module 301 corresponding to a calling application displayed by the electronic device 100 includes a title bar 301A and a card 301B. The title bar 301A may be used to display the name and icon of the application, and the card 301B may display the content of the interface of the application.
[0208] For example, see Figures 9A to 9D. Other page sliding effects provided in the embodiments of the present application are described below.
[0209] As shown in FIG. 9A, at time t61, the user's finger slides right by using the page module 301 as a starting point. After detecting the user operation applied to the page module 301, the electronic device 100 slides each page module of the multitasking page right. For ease of description, in this embodiment of the present application, the page module 301 applied when the user slides the page right is called the focus module, and the focus module is numbered X. Then, other page modules are numbered by using the focus module as a reference. As shown in FIG. 9A, the page modules of the multitasking page are numbered X-1, X-2, X-3, X, and X+1 from left to right, respectively.
[0210] As shown in FIG. 9A, during the process of sliding the page to the right from time t61 to time t62, the module interval L between the module X and the module (X-1) (X-1,X) decreases, and the module spacing L between module (X+n) and module (X+n-1) (X+n-1,X+n) increases. Module spacing L (X+n-1,X+n) is the distance L between module X and module (X+1) (X,X+1) , the distance L between module (X+1) and module (X+2) (X+1,X+2) , and the distance L between modules (X+2) and (X+3) (X+2,X+3) where n is a positive integer.
[0211] As shown in FIGS. 9A and 9B, in the process of sliding the page to the right from time t62 to time t63, the module interval L (X-1,X) continues to decrease, and the module spacing L (X+n-1,X+n) As shown in FIG. 9B and FIG. 9C, in the process of sliding the page to the right from time t63 to time t64, the module interval L (X-1,X) increases to the initial interval between modules X and (X-1), and the module interval L (X+n-1,X+n) is reduced to the initial interval between module (X+n) and module (X+n-1).
[0212] From FIG. 9A-FIG. 9C, it can be recognized that when the user slides the page to the right, the module interval on the right side of the focus module applied by the user (i.e., the interval between module X and module (X-1)) first decreases from the initial interval and then increases to the initial interval, and the module interval on the left side of the focus module applied by the user (i.e., the interval between module (X+n) and module (X+n-1)) first increases from the initial interval and then decreases to the initial interval. Similarly, when the user slides the page to the left, the module interval on the left side of the focus module applied by the user first increases from the initial interval and then decreases to the initial interval, and the module interval on the right side of the focus module first decreases from the initial interval and then increases to the initial interval. After time t66, each module stops sliding. From time t61 to time t66, the relative displacement of each module is S2.
[0213] In some embodiments of the present application, see Figures 9A and 9B. The second page module may be module (X-1), the third page module may be module (X+1), and the first interval is module interval L (X-1,X) and the second interval is the module interval L (X,X+1) The first period and the third period may be periods corresponding to time t61 to time t63, and the second period and the fourth period may be periods corresponding to time t63 to time t64.
[0214] For example, another page sliding effect provided in an embodiment of the present application is described below by using the multitasking page shown in FIG. 9E as an example.
[0215] As shown in Fig. 9E, module (X+1) is an edge module of the page shown in Fig. 9E. One side of module (X+1) is connected to module X, and the other side is not connected to the page module. See Fig. 9E. When the user slides the page to the right, module (X+1) is displayed on the display 194. In this case, the present embodiment of the present application provides another page slide effect of returning overstep.
[0216] As shown in FIG. 9E, at time t71, the module interval L (X-n-1,X-n) is equal to the initial interval between modules (Xn) and (Xn-1), and the module interval L (X,X+1) is equal to the initial interval between module X and module (X+1). Starting from time t71, the user's finger slides right on the display 194 by using the focus module X as the starting point. After detecting the user operation applied to the focus module X, the electronic device 100 controls each page module of the multitasking page to slide. From time t71 to time t72, each page module slides right. Compared with time t71, at time t72, the module interval L (X,X+1) increases, and the module spacing L (X-n-1,X-n) Between time t72 and time t73, each page module continues to slide to the right. Compared to time t72, at time t73, the module interval L (X,X+1) continues to increase, and the module spacing L (X-n-1,X-n) continues to decrease. Between time t73 and time t74, each page module slides to the left. Compared to time t73, at time t74, the module interval L (X,X+1) decreases, and the module spacing L (X-n-1,X-n) At time t74, the module (X+1) slides to the center position of the page. Between time t74 and time t75, the module (X+1) stops sliding. Compared to time t74, at time t75, the module interval L (X,X+1) is reduced to the initial interval between modules X and (X+1), and the module interval L (X-n-1,X-n) increases to the initial interval between module (Xn) and module (Xn-1). After time t75, each page module shown in FIG. 9E stops sliding.
[0217] In some embodiments of the present application, see FIG. 9E. The second page module may be module (X-1), the third page module may be module (X+1), and the first interval is module interval L (X-1,X) and the second interval is the module interval L (X,X+1) The first period and the third period may be periods corresponding to time t71 to time t73, and the second period and the fourth period may be periods corresponding to time t73 to time t75.
[0218] Please note that in a page of the center layout, the page module may deform while the page module slides. For example, the width of the page module may increase or decrease while the page module slides. For details, please refer to the related embodiment of FIG. 7A. In a page of the center layout, the change in the module spacing may also be related to the size of the page module while the page module slides. For details, please refer to the related embodiment of FIG. 7B. In a page of the center layout, the page module may perform one or more page returns while the page module slides. For details, please refer to the related embodiment of FIG. 7C.
[0219] Please refer to Fig. 5A to Fig. 9E. In the page sliding processing method provided in the embodiment of the present application, the user's finger slides on the page, and slides the page. During the page sliding, the speed change mode of each page module may include one or more of the following speeds: constant speed, acceleration, deceleration, and parabolic speed, the module spacing between the page modules may change dynamically, and the width of the page module may also change dynamically. The module spacing in the user's sliding direction may first decrease and then restore to the initial spacing, and the module spacing in the direction opposite to the user's sliding direction may first increase and then restore to the initial spacing. The page sliding processing method provided in this embodiment of the present application provides multiple page sliding effects, thereby increasing the interest of the page sliding, enhancing the effect of the feedback generated for the user by the electronic device 100, and effectively improving the user experience.
[0220] The page slide system provided in the embodiment of the present application will be described later. For example, as shown in Fig. 10, the slide system includes a friction force model and an elastic force model.
[0221] In some embodiments of the present application, as shown in FIG. 10, the electronic device 100 detects the user's sliding operation applied to the focus module X and the sliding speed of the sliding operation by the detection module. The electronic device 100 may determine the relative displacement S of sliding the page by using a friction force model based on the sliding speed, and determine the movement start point and movement end point of the page. Furthermore, the electronic device 100 may determine the spring parameters of each page module by using a damping conduction algorithm based on the spring parameters of the module X, and control each page module to perform an elastic force model movement based on the spring parameters of each page module during the page sliding with the relative displacement S.
[0222] The friction force model provided in the embodiment of the present application is described below.
[0223] The friction force model provided in this embodiment of the present application is a friction force model based on an exponential function, and the following equations (1) and (2) are functions of velocity V, displacement S, and time t in the friction force model.
number
number
[0224] It can be understood that a larger friction force indicates that the object stops easily and indicates a shorter distance traveled by the object, whereas a smaller friction force indicates a longer distance traveled by the object. In this embodiment of the present application, the friction force may be set by the electronic device 100 based on a particular scenario, may be set as a default when the electronic device 100 is delivered, or may be set by a user.
[0225] 11A is a graph showing curves of velocity V and time t in a friction force model according to an embodiment of the present application. FIG. 11B is a graph showing curves of displacement S(t) and time t in a friction force model according to an embodiment of the present application.
[0226] In some embodiments of the present application, the electronic device 100 may match the user's sliding speed on the display 194 by using a velocity detection technique (such as the VelocityTracker algorithm), set the speed to V0, and then determine the relative displacement of the page slide by using at least one of equations (1) and (2). The unit of the sliding speed may be "pixels" per second.
[0227] For non-centered layout pages, it is described below how to determine the relative displacement of the page slide based on the user's sliding speed.
[0228] In some embodiments of the present application, the user's sliding speed is set to V0. See equation (1). V(t) tends to zero as t increases. If the speed difference between time t81 and time (t81-ε1) is less than a preset value λ1, that is, V(t81)-V(t81-ε1)<λ1, the electronic device 100 determines that S(t81) corresponding to time t81 in equation (2) is the relative displacement of the page slide. Both the preset value ε1 and the preset value λ1 are preset minimum values, for example, ε1 is equal to 0.1 and λ1 is equal to 0.01, respectively. In some embodiments, the electronic device 100 further determines that the sliding duration of the page slide is t81 by using a friction force model.
[0229] In some embodiments of the present application, see formula (2). S(t) tends to a certain value when t increases. If the displacement difference between time t81 and time (t81-ε2) is less than a preset value λ2, i.e., S(t81)-S(t81-ε)<λ2, the electronic device 100 determines that S(t81) corresponding to time t81 is the relative displacement of the slide of the page. In some embodiments, the electronic device 100 further determines that the slide duration of the slide of the page is t81 by using a friction force model.
[0230] For a centered layout page, how to determine the relative displacement of the slides on the page is described below.
[0231] In this embodiment of the present application, the page module on the page of the center layout is limited to be at the center position of the page. Therefore, in the page of the center layout, the relative displacement of the page may have one or more fixed displacement values. In some embodiments, the electronic device 100 first determines the intermediate displacement of the page of the center layout by using a friction force model, and then determines the relative displacement of the page to be the displacement value that has the smallest difference from the intermediate displacement among the one or more fixed displacement values. For how to determine the intermediate displacement of the page of the center layout by using a friction force model, please refer to the implementation of determining the relative displacement of the page of the non-center layout by using a friction force model.
[0232] For example, see FIG. 9A. The electronic device 100 detects a slide operation applied to the focus module X to slide right, and in response to the slide operation, the electronic device 100 controls each page module to slide up. When the page stops sliding, if the module (X+1) is at the center position of the page, the relative displacement of the page is the width of the module X and the module interval L. (X,X+1) When module (X+2) is at the center of the page, the relative displacement of the page is the sum of the width of module X, the width of module (X+1), and the module interval L. (X,X+1) , and module spacing L (X+1,X+2) When module (X+3) is at the center of the page, the relative displacement of the page is the sum of the width of module X, the width of module (X+1), the width of module (X+2), and the module interval L. (X,X+1) , module spacing L (X+1,X+2) , and module spacing L (X+2,X+3) From the above, it can be seen that there are only three possible relative displacements for the page shown in FIG.
[0233] The elastic force model provided in the embodiment of the present application is described below. The elastic movement satisfies the damped vibration equation in Hooke's law shown in Equation (3) and Equation (4).
number
number
[0234] The stiffness constant is the amount of elastic force required for a unit deformation of the spring. A larger stiffness constant k indicates a shorter time for the spring to return to the equilibrium position from the maximum amplitude. Conversely, a smaller stiffness constant k indicates a longer time for the spring to return to the equilibrium position from the maximum amplitude. In some embodiments, the stiffness constant k may range from 1 to 99, and a recommended value range for the stiffness constant k may be from 150 to 400.
[0235] The damping constant is a quantitative representation of the damping force (such as fluid resistance or friction force) of a spring during vibration. The damping force allows the amplitude of the spring to gradually decrease until the spring comes to rest at an equilibrium position. A larger damping constant indicates that the spring comes to rest at an equilibrium position more easily. Conversely, a smaller damping constant indicates that the spring comes to rest at an equilibrium position more difficultly. In some embodiments, the value of the damping constant d may range from 1 to 99, and the electronic device 100 may set the damping constant based on a particular scenario.
[0236] Based on the damping function of the spring, the moving state of the spring may be classified into three states: critically damped state, lightly damped state, and overdamped state. For example, Fig. 12A to Fig. 12C are curve graphs of the deformation amount x and time t of the spring in three states according to the embodiment of the present application. See Fig. 12A. In the critically damped state, the spring returns to the equilibrium position in the shortest time and at the most stable speed, then stops moving and does not vibrate any more. See Fig. 12B. In the lightly damped state, the spring slowly and gradually reduces the amplitude through multiple vibrations, and finally returns to the equilibrium position. See Fig. 12C. In the overdamped state, the spring barely vibrates, the amplitude gradually decreases, and the spring reaches the equilibrium position. In some embodiments, d 2 If = 4*m*k, the spring is critically damped;d 2 If < 4*m*k, the spring is lightly damped. In other words, d 2 If >4*m*k, the spring is overdamped.
[0237] In some embodiments of the present application, the electronic device 100 may determine the damping constant and stiffness constant of the focus module X, and determine the damping constant and stiffness constant corresponding to another page module by using a damping conduction algorithm based on the damping constant and stiffness constant of the focus module. The damping constant and stiffness constant of the focus module may be set by the electronic device 100 as default, may be set by the user, or may be determined by the electronic device 100 based on a specific scenario. For example, see FIG. 5C. The electronic device 100 detects a user's slide operation, determines a focus module X to be applied by the user based on the slide operation, and determines modules (X+c) on both sides of the focus module X (such as module (X+1), module (X-1), module (X+2), and module (X-2)) in the arrangement order of the modules by using the focus module X as a reference, where c is an integer not equal to 0. The stiffness constant of the module X is k X and the stiffness constant of module (X+c) is k X+c and the damping constant of module X is d X The damping constant of the module (X+c) is d X+c It is shown as:
[0238] In some embodiments, see equations (5) and (6). The stiffness constant k X and stiffness constant k X+c and the damping constant d X and the damping constant d X+c The relationship between may be expressed as follows:
number
number
[0239] In some embodiments, see Equations (7) and (8). The stiffness constant k X and stiffness constant k X+c and the damping constant d X and the damping constant d X+c The relationship between may be expressed as follows:
number
number
[0240] In some embodiments, the ratio of the damping constant to the stiffness constant of the module X is p X The ratio of the damping constant to the stiffness constant of the module (X+c) is p X+c See the damping conduction algorithm shown in equation (9). The parameter p X and parameter p X+c The relationship between is expressed as follows:
number
[0241] For example, the value of g is 0.9 and k X The value of is 30, and d X The value is 228.
[0242] From the damping conduction algorithm shown in any of equations (5) to (9), it can be seen that a larger conduction constant g indicates a larger difference between the spring functions corresponding to adjacent page modules and a larger difference between the elastic movements of adjacent page modules. Meanwhile, a smaller conduction constant g indicates a smaller difference between the spring functions corresponding to adjacent page modules and a smaller difference between the elastic movements of adjacent page modules. When the conduction constant g is 0, the damping constants of the page modules are equal, the stiffness constants of the page modules are equal, and the spring functions corresponding to adjacent page modules are the same.
[0243] For example, FIG. 13 is a schematic diagram of another page sliding effect according to an embodiment of the present application. The page shown in FIG. 13 has a smaller conduction constant g than the page shown in FIG. 5A. As shown in FIG. 13, the difference between the elastic forces of two adjacent page modules is smaller in FIG. 13 than in FIG. 5A, so that the change tendency of the module spacing between two adjacent page modules is relatively smaller. For example, compared with FIG. 5A, in FIG. 13, the module spacing L at time t22, time t23, and time t24 is smaller than that at time t22, time t23, and time t24. (X-1,X) is larger, and the module spacing L (X,X+1) is smaller.
[0244] Furthermore, from equations (5) to (9), it can be recognized that when g is greater than 0, the focus module X has the largest damping constant and stiffness constant, and the modules farther from the focus module X have smaller damping constants and stiffness constants. When the page module has a smaller damping constant and stiffness constant, the elastic movement of the page module to return to the equilibrium position is not as easy, that is, the page module has a long sliding time.
[0245] For example, the curve 1 shown in Figure 14A is the displacement curve graph of module X, and the curve 2 is the displacement curve graph of module (X-1), where the conduction constant of the page module satisfies g>0. From Figure 14A, it can be seen that for the same displacement (i.e., deformation amount x), the slide time point 1 corresponding to module X is later than the slide time point 2 corresponding to module (X-1).
[0246] See Fig. 5D. There may be a time difference Δt between the slide start time of adjacent page modules. For example, curve 3 shown in Fig. 14A is another moving curve graph of module (X-1), and the slide start time of module (X-1) corresponding to curve 3 is Δt later than that of module X. From Fig. 14A, it can be seen that for the same displacement (i.e., deformation amount x), the slide time 3 corresponding to module (X-1) in curve 3 is later than the slide time 1 corresponding to module X, and the difference between time 3 and time 1 is greater than the time difference Δt.
[0247] For example, the curve 4 shown in FIG. 14B is a moving curve graph of the module X, and the curve 5 is a moving curve graph of the module (X-1), where the conduction constant of the page module satisfies g=0, and the slide start time of the module (X-1) is later than that of the module X by Δt. From FIG. 14B, it can be recognized that, for the same slide time, the displacement (i.e., the deformation amount x) corresponding to the module X in the curve 4 is larger than the displacement corresponding to the module (X-1).
[0248] From Figures 14A and 14B, it can be seen that the displacements of module (X-1) and module X first increase and then decrease, and the total relative displacement (i.e., the maximum deformation amount shown in Figures 14A and 14B) is equal. Therefore, when module (X-1) is in the user's sliding direction, as time t increases, the module spacing L between module (X-1) and module X decreases. (X-1,X) may decrease and then increase. When the module (X-1) is in the opposite direction to the user's sliding direction, the module spacing L between the module (X-1) and the module X increases as the time t increases. (X-1,X) may increase and then decrease.
[0249] 15A to 15D are schematic diagrams of the sliding time of the page module when g and Δt have different values.
[0250] As shown in FIG. 15A, when Δt=0, there is no time difference between the slide start time of adjacent page modules, and the page modules move simultaneously. When g>0, the module farther from the focus module X has a longer slide duration. As shown in FIG. 15B, when Δt>0 and g>0, compared with FIG. 15A, the module farther from the focus module X has a later slide start time and a longer slide duration, and therefore the module farther from the focus module X has a later slide stop time. As shown in FIG. 15C, when Δt>0 and g=0, the page modules have the same slide duration, and the time difference between the slide start time of adjacent page modules is equal to the time difference between the slide stop time of adjacent page modules. As shown in FIG. 15D, when Δt=0 and g=0, the page modules have the same slide duration, and the slide start time of adjacent page modules is the same, that is, the movement tendency of the page modules is the same, and the module interval between the page modules remains unchanged.
[0251] The page slide animation implementation principle provided in the embodiment of the present application will be described later.
[0252] For example, Figure 16 is a diagram of an animation implementation principle according to an embodiment of the present application. As shown in Figure 16, elements for implementing animation include an initial state of the animation, a final state of the animation, an animation duration, and an animation Interpolator. The Interpolator is used to set the change logic for the transition of the property value of the animation from the initial state to the final state and control the change speed of the animation, so that the animation effect can change at one or more of the following speeds: constant speed, acceleration, deceleration, and parabolic speed.
[0253] In some embodiments of the present application, the electronic device 100 may determine the duration of the animation, the initial state of the animation, and the final state of the animation based on the friction force model, and set the change logic for the property value of the animation by a system interpolator (such as an elastic force interpolator or a friction force interpolator) or a customized interpolator. When the animation is performed, the electronic device 100 determines that the property value of the animation has changed based on the change logic, and the electronic device 100 draws a frame image and updates the display page based on the property value of the animation. Figures 5A to 9E show some animation effects of page slides provided in embodiments of the present application.
[0254] In some embodiments of the present application, if it is determined that the animation property value has changed based on the interpolator change logic, the electronic device 100 calls the invalidate() function based on the animation property value and updates the view, i.e., calls the onDraw() function, redraws the view, and displays the view.
[0255] In some embodiments of the present application, the electronic device 100 customizes the elastic force interpolator. For example, the function code of the elastic force interpolator may be expressed as one of the following: "SpringInterpolator(float stiffness, float damping)", "SpringInterpolator(float stiffness, float damping, float endPos)", "SpringInterpolator(float stiffness, float damping, float endPos, float velocity)", and "SpringInterpolator(float stiffness, float damping, float endPos, float velocity, float valueThreshold)". In implementation, the parameters in the function of the elastic force interpolator include at least a stiffness constant and a damping constant.
[0256] The parameter endPos represents the relative displacement, i.e. the difference between the initial position and the retracted position of the spring. In the present embodiment of the present application, endPos may represent the relative displacement of the slide of the page.
[0257] The parameter valueThreshold represents a threshold value for determining that the animation has stopped. If the displacement (or another property) difference between two adjacent frames is less than the threshold value, the animation stops running. If the threshold value is greater, the animation is more likely to stop and the running time will be shorter. Conversely, if the threshold value is smaller, the running time of the animation will be longer. The value of the threshold value may be set based on the properties of a particular animation. In some embodiments, the default of the elastic force interpolator parameter FloatValueHold is shown as 1 / 1000, and in another construction method, the value of the threshold value is 1. In some embodiments, if the threshold value is customized, the suggested values shown in Table 1 may be used based on the properties of the animation. [Table 1]
[0258] Additionally, the thresholds may be directly the following constants provided by the DynamicAnimation class: MIN_VISIBLE_CHANGE_PIXELS, MIN_VISIBLE_CHANGE_ROTATION_DEGREES, MIN_VISIBLE_CHANGE_ALPHA, and MIN_VISIBLE_CHANGE_SCALE.
[0259] For example, the specific code for a customized elastic force interpolator animation class may be represented as follows: "PhysicalInterpolatorBase interpolator = new SpringInterpolator(400F, 40F, 200F, 2600F, 1F); ObjectAnimator animator=ObjectAnimator.ofFloat(listView, "translationY", 0, 346); animator.setDuration(interpolator.getDuration( )); / / obtaining the animation duration animator.setInterpolator(interpolator); / / setting the customized interpolator for the animation class animator.start( ); / / running the animation'.
[0260] In some embodiments of the present application, the electronic device 100 customizes the friction force interpolator. For example, the function code of the friction force interpolator may be expressed as "FlingInterpolator(float initVelocity, float friction)", where initVelocity represents the initial velocity.
[0261] For example, specific code for an animation class that uses a friction force interpolator may be expressed as follows: “PhysicalInterpolatorBase interpolator=new FlingInterpolator(600F, 0.5F); ObjectAnimator animator=ObjectAnimator.ofFloat(listView, "translationY", 0, interpolator.getEndOffset( )); animator.setDuration(interpolator.getDuration( )); / / obtaining the animation duration animator.setInterpolator(interpolator); / / setting the customized interpolator for the animation class animator.start( );" / / running the animation".
[0262] In some embodiments of the present application, the electronic device 100 may set the duration and start position of the animation by itself, or may call an engine model to obtain the duration and end position of the animation, and then set the duration and end position of the animation class (Animator class).
[0263] For example, the code for calling the engine model by the electronic device 100 to get the duration of the animation may be represented as "com.huawei.dynamicanimation.interpolator.PhysicalInterpolatorBase#getDuration".
[0264] For example, the code for calling the engine model to get the end position of the spring may be represented as "com.huawei.dynamicanimation.interpolator.PhysicalInterpolatorBase#getEndOffset".
[0265] For example, the code for setting the parameter valueThreshold may be represented as "com.huawei.dynamicanimation.interpolator.PhysicalInterpolatorBase#setValueThreshold".
[0266] In some embodiments of the present application, the code for an animation class that uses the elasticity engine is the following code: <k>property, float stiffness, float damping, float startValue, float endValue, float velocity)」、および「HWSpringAnimation(K object, FloatPropertyCompat <k>The parameter may be expressed as one of the following: "float property, float stiffness, float damping, float endValue, float velocity".
[0267] The parameter "object" represents the target of the animation, and "Property" represents the property target to which the animation class or interpolator is applied. See Table 1. The parameter may be used to indirectly set the valueThreshold. The parameter is optional in the interpolator version, and the parameter may not be set if the valueThreshold is set in another way, i.e., the construction method without the property parameter is used directly. The parameter is a required parameter in the animation class version. The DynamicAnimation class provides the following constants that can be used directly: "TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, SCALE_X, SCALE_Y, ROTATION, ROTATION_X, ROTATION_Y, X, Y, Z, ALPHA, SCROLL_X, and SCROLL_Y". The electronic device 100 may customize the ViewProperty interface.
[0268] For example, specific code for an animation class that uses a spring engine may be expressed as follows: "HWSpringAnimation animation=HWSpringAnimation (listView, DynamicAnimation.TRANSLATION_Y, 400F, 40F, 0, 1000F); animation.start( );
[0269] In some embodiments of the present application, the code for an animation class that uses a friction engine may be expressed as follows: 「HWFlingAnimation (K object, FloatPropertyCompat <k>property, float initVelocity, float friction).
[0270] For example, specific code for an animation class that uses friction forces may be expressed as follows: "HWFlingAnimation animation=HWFlingAnimation (listView, DynamicAnimation.TRANSLATION_Y, 2000F, 0.5F); animation.start( );
[0271] All or part of the above-mentioned embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions of the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable device. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line) or wireless (e.g., infrared, radio wave, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or may be a data storage device (e.g., a server or data center) that integrates one or more available media. The usable media may be magnetic media (eg, a floppy disk, hard disk drive, or magnetic tape), optical media (eg, a DVD), semiconductor media (eg, a solid state drive), and the like.
[0272] Those skilled in the art can understand that all or part of the steps of the method in the above embodiment can be implemented by a computer program that instructs relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, the steps of the method in the above embodiment can be included. The above storage medium includes any medium that can store program code, such as a ROM, a random access memory RAM, a magnetic disk, or an optical disk. Other possible items (Item 1) A page slide processing method, comprising: displaying, by an electronic device, a first page module, a second page module, and a third page module on a first page, where the second page module, the first page module, and the third page module are sequentially arranged on the first page, a first spacing exists between the first page module and the second page module, and a second spacing exists between the first page module and the third page module; and receiving, by the electronic device, a slide operation to be applied to the first page module in a first direction, where the first direction is from the first page module to the second page module; Equipped with the first page module, the second page module, and the third page module slide in the first direction in response to the slide operation; the first interval decreases during a first period and increases during a second period; a start time of the second period is equal to a cutoff time of the first period; the second interval increases during a third period and decreases during a fourth period; and The start time of the fourth period is equal to the cutoff time of the third period. method. (Item 2) The width of the second page module in the first direction decreases during the first period and increases during the second period; the width of the third page module in the first direction increases during the third period and decreases during the fourth period. The method according to item 1. (Item 3) The width of the second page module in the first direction is not equal to the width of the third page module in the first direction, the start time of the first period is the same as that of the third period, and the distance in the first direction between the second page module and the third page module increases during the first period. The method according to item 1 or 2. (Item 4) the start time point of the first time period is the same as that of the third time period and the cut-off time point of the first time period is the same as that of the third time period; the cut-off time point of the first time period is later than the cut-off time point of the third time period; or The cut-off time point of the first time period may be prior to the cut-off time point of the third time period. 4. The method according to any one of items 1 to 3. (Item 5) the duration of the sliding operation is a sixth time period, the start time of the sixth time period is the same as that of the first time period, and the cutoff time of the first time period is prior to the cutoff time of the sixth time period; said cutoff time point for said first time period is equal to a cutoff time point for said sixth time period; or The cutoff time of the first period is later than the cutoff time of the sixth period. 5. The method according to any one of items 1 to 4. (Item 6) 6. The method of claim 5, wherein after the sixth period, the first page module stops sliding. (Item 7) 6. The method of claim 5, wherein after the sixth period, the first page module continues to slide. (Item 8) 6. The method of claim 5, wherein before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the first spacing increases to the first value during the second period, and the second spacing decreases to the second value during the fourth period. (Item 9) Before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to a first value and the second interval is equal to a second value; the first interval decreases to the first value in a seventh period and the second interval increases to the second value in an eighth period; a start time of the seventh period is equal to a cutoff time of the second period and a start time of the eighth period is equal to a cutoff time of the fourth period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the seventh period and the eighth period, and the first direction is opposite to the second direction. 6. The method according to any one of items 1 to 5. (Item 10) Before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the second interval increases to the second value in a ninth time period and the first interval increases to the first value in the second time period; the start time of the ninth time period is after or equal to a cutoff time of the fourth time period and the start time of the ninth time period is before a cutoff time of the second time period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the ninth period, and the first direction is opposite to the second direction. 6. The method according to any one of items 1 to 5. (Item 11) Before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the second interval increases during a tenth time period and decreases to the first value during an eleventh time period, and the first interval increases to the first value during the second time period; a cutoff time for the tenth time period is equal to a start time for the eleventh time period, the start time for the tenth time period being later than or equal to a cutoff time for the fourth time period, and the start time for the eleventh time period being prior to a cutoff time for the second time period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the ninth period and the tenth period, and the first direction is opposite to the second direction. 6. The method according to any one of items 1 to 5. (Item 12) 9. The method of claim 8, wherein the third page module stops sliding during a ninth period, and among the first page module, the second page module, and the third page module, the third page module is closest to a first edge of the electronic device, and the first edge is the edge of the electronic device toward which the second direction faces. (Item 13) The method described in item 12, wherein, in the sixth period, if the display content of the electronic device does not include all of the content of the third page module, the slide distance of the first page module is equal to the slide distance of the slide operation in the first direction; or, if the display content of the electronic device includes all of the content of the third page module, the slide distance of the first page module is shorter than the slide distance of the slide operation in the first direction. (Item 14) 6. The method according to any one of items 1 to 5, wherein the second page module and the third page module start sliding after the first page module. (Item 15) Item 15. The method according to item 14, wherein the second page module and the third page module start sliding simultaneously. (Item 16) 6. The method of any one of items 1 to 5, wherein the distance between the second page module and the third page module remains unchanged in the first direction. (Item 17) 6. The method according to any one of items 1 to 5, wherein the second page module and the third page module stop sliding after the first page module. (Item 18) 6. The method according to item 5, wherein after the sixth period of time, a sliding distance of the first page module in the first direction is determined based on a sliding speed of the sliding operation. (Item 19) The method of any one of items 1 to 5, wherein a fourth page module, the second page module, the first page module, the third page module, and a fifth page module are arranged sequentially on the first page, and a third interval exists between the second page module and the fourth page module, and a fourth interval exists between the third page module and the fifth page module; and the step of the first page module, the second page module, and the third page module sliding in the first direction in response to the slide operation includes the step of the first page module, the second page module, the third page module, the fourth page module, and the fifth page module sliding in the first direction in response to the slide operation, the third interval decreasing in the first period and increasing in the second period, and the fourth interval increasing in the third period and decreasing in the fourth period. (Item 20) 20. The method of claim 19, wherein at a first time point of the first time period, a decrease amplitude of the third interval is less than an increase amplitude of the first interval, compared to the start time point of the first time period; and at a second time point of the third time period, a increase amplitude of the fourth interval is less than an increase amplitude of the second interval, compared to the start time point of the third time period. (Item 21) 20. The method of claim 19, wherein at a first time point of the first time period relative to the start time point of the first time period, a decrease in amplitude of the third interval is equal to a decrease in amplitude of the first interval; and at a second time point of the third time period relative to the start time point of the third time period, a increase in amplitude of the fourth interval is equal to an increase in amplitude of the second interval. (Item 22) 22. An electronic device comprising a display, a memory, one or more processors, and one or more programs, the one or more programs being stored in the memory; when the one or more processors execute the one or more programs, the electronic device is capable of implementing the method according to any one of claims 1 to 21. (Item 23) 22. A computer storage medium comprising computer instructions, which, when executed on an electronic device, enable the electronic device to perform the method according to any one of items 1 to 21.< / k> < / k> < / k> < / canvas> < / video> < / videoview> < / imgview> < / textview>
Claims
1. A page slide processing method, comprising: displaying, by an electronic device, a first page module, a second page module, and a third page module on a first page, where the second page module, the first page module, and the third page module are sequentially arranged on the first page, a first spacing exists between the first page module and the second page module, and a second spacing exists between the first page module and the third page module; and receiving, by the electronic device, a slide operation to be applied to the first page module in a first direction, where the first direction is from the first page module to the second page module; Equipped with the first page module, the second page module, and the third page module slide in the first direction in response to the slide operation; the first interval decreases during a first period and increases during a second period; a start time of the second period is equal to an end time of the first period; the second interval increases during a third period and decreases during a fourth period; and a start time of the fourth period is equal to an end time of the third period; the start time of the first time period is the same as that of the third time period and the end time of the first time period is the same as that of the third time period; the end of the first time period is later than the end of the third time period; or The end of the first time period may be prior to the end of the third time period; and a width of the second page module in the first direction decreases during the first period and increases during the second period; a width of the third page module in the first direction increases during the third period and decreases during the fourth period; method.
2. The width of the second page module in the first direction is not equal to the width of the third page module in the first direction, the start time of the first period is the same as that of the third period, and the distance in the first direction between the second page module and the third page module increases during the first period. The method of claim 1.
3. a duration of the sliding operation is a sixth period, a start time of the sixth period is the same as that of the first period, and the end time of the first period is before an end time of the sixth period; the end of the first time period is equal to the end of the sixth time period; or The end point of the first period is later than the end point of the sixth period. The method according to claim 1 or 2.
4. Before the first page module, the second page module, and the third page module slide in the first direction, the first interval is equal to a first value and the second interval is equal to a second value; the first interval decreases to the first value in a seventh period and the second interval increases to the second value in an eighth period; a start time of the seventh period is equal to an end time of the second period and a start time of the eighth period is equal to an end time of the fourth period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the seventh period and the eighth period, and the first direction is opposite to the second direction.
4. The method according to any one of claims 1 to 3.
5. Before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the second interval increases to the second value in a ninth time period and the first interval increases to the first value in the second time period; a start of the ninth time period is after or equal to an end of the fourth time period and the start of the ninth time period is before an end of the second time period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the ninth period, and the first direction is opposite to the second direction.
4. The method according to any one of claims 1 to 3.
6. Before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the second interval increases during a tenth time period and decreases to the first value during an eleventh time period, the first interval increasing to the first value during the second time period; an end of the tenth time period is equal to a start of the eleventh time period, the start of the tenth time period is after or equal to an end of the fourth time period, and the start of the eleventh time period is before an end of the second time period; The sliding direction of the first page module is the first direction during the first period and the second period, and the sliding direction of the first page module is a second direction during the eleventh period and the tenth period, and the first direction is opposite to the second direction.
4. The method according to any one of claims 1 to 3.
7. The method of claim 1 , wherein the distance between the second page module and the third page module remains unchanged in the first direction.
8. The method according to claim 1 , wherein the second page module and the third page module stop sliding after the first page module.
9. The method of claim 3 , wherein after the sixth period, the first page module stops sliding.
10. The method of claim 3 , wherein after the sixth period, the first page module continues to slide.
11. The method of claim 3 , wherein after the sixth period of time, a sliding distance of the first page module in the first direction is determined based on a sliding speed of the sliding operation.
12. 4. The method of claim 3, wherein before the first page module, the second page module, and the third page module slide in the first direction, the first spacing is equal to a first value and the second spacing is equal to a second value; the first spacing increases to the first value during the second period, and the second spacing decreases to the second value during the fourth period.
13. 13. The method of claim 12, wherein the third page module stops sliding, and among the first page module, the second page module, and the third page module, the third page module is closest to a first edge of the electronic device, the first edge being the edge of the electronic device toward which a second direction faces, and the second direction being opposite to the first direction.
14. The method of claim 13, wherein, during the sixth period, if the display content of the electronic device does not include all of the content of the third page module, the slide distance of the first page module is equal to the slide distance of the slide operation in the first direction; or, if the display content of the electronic device includes all of the content of the third page module, the slide distance of the first page module is shorter than the slide distance of the slide operation in the first direction.
15. A page slide processing method, comprising: displaying, by an electronic device, a first page module, a second page module, and a third page module on a first page, where the second page module, the first page module, and the third page module are sequentially arranged on the first page, a first spacing exists between the first page module and the second page module, and a second spacing exists between the first page module and the third page module; and receiving, by the electronic device, a slide operation to be applied to the first page module in a first direction, where the first direction is from the first page module to the second page module; Equipped with the first page module, the second page module, and the third page module slide in the first direction in response to the slide operation; the first interval decreases during a first period and increases during a second period; a start time of the second period is equal to an end time of the first period; the second interval increases during a third period and decreases during a fourth period; and a start time of the fourth period is equal to an end time of the third period; the start time of the first time period is the same as that of the third time period and the end time of the first time period is the same as that of the third time period; the end of the first time period is later than the end of the third time period; or The end of the first time period may be prior to the end of the third time period; a duration of the sliding operation is a sixth period, a start time of the sixth period is the same as that of the first period, and the end time of the first period is before an end time of the sixth period; the end of the first time period is equal to the end of the sixth time period; or the end of the first time period is after the end of the sixth time period; and In the sixth period, when the display content of the electronic device does not include all of the content of the third page module, the slide distance of the first page module is equal to the slide distance of the slide operation in the first direction; or, when the display content of the electronic device includes all of the content of the third page module, the slide distance of the first page module is shorter than the slide distance of the slide operation in the first direction. method.
16. 16. An electronic device comprising a display, a memory, one or more processors, and one or more programs, the one or more programs being stored in the memory; and when the one or more processors execute the one or more programs, the electronic device is capable of implementing a method according to any one of claims 1 to 15.
17. A computer program product causing a computer to carry out the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Portable terminal device
JP2012137821A
Display control unit and control method thereof
JP2012150558A
Information processing device, display control method, and program
JP2013088974A
Scroll method and scroll device for portable terminal
JP2013164700A
Display device and display method thereof
JP2015537299A
