Page display method and electronic device

By listening to page scrolling operations at the underlying level of the electronic device system and controlling the hiding or removal of text processing controls, the stuttering problem caused by the asynchronous scrolling of text processing controls and TextView controls was solved, improving the smoothness of page scrolling and user experience.

CN117270720BActive Publication Date: 2024-09-13HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311138485.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-09-13
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

In electronic devices, asynchronous scrolling of text processing controls and TextView controls can cause page lag and negatively impact user experience.

Method used

By improving the system layer of electronic devices, the text processing controls can be hidden or removed by listening to page swiping operations and then restored to their display after the swiping stops, thus avoiding the desynchronization between the controls and page swiping.

Benefits of technology

It improves the smoothness of page scrolling, reduces lag, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117270720B
    Figure CN117270720B
Patent Text Reader

Abstract

A page display method and electronic device, relating to the technical field of electronic devices. The page display method comprises: the electronic device displays a first page area of ​​a target page, the first page area includes text content; in response to a trigger operation on a target text in the text content, the target text is in a selected state, and a floating toolbar and a text selector are displayed in the first page area; in response to a sliding operation on the first page area, the electronic device slides to display a second page area of ​​the target page; the target text is in a selected state, and the floating toolbar and text selector are stopped from being displayed in the second page display area; in response to the target page stopping sliding, the electronic device displays a third page area; the target text is in a selected state, and the floating toolbar and text selector are displayed in the third page area.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number 202310481914.3 submitted to the State Intellectual Property Office of China, application date April 28, 2023, and invention name “A page display method and electronic device”. Technical Field

[0002] The present application relates to the technical field of electronic devices, and in particular to a page display method and electronic device. Background Art

[0003] With the development of electronic devices, various applications (APPs) emerge in an endless stream, allowing users to handle many things through applications on electronic devices, providing convenience for users. For example, users can chat with friends through social APPs, learn about various information through news APPs, and so on.

[0004] When an electronic device displays text on a display page through a text control TextView, the electronic device responds to a user's trigger operation (e.g., a long press operation) on a certain area in the display page, determines the text selection area, and can display at least one text processing control in the display page. When the electronic device receives a user's sliding operation on the display page, at least one text processing control in the display page will slide along with the page. At present, during the sliding process, the display page is prone to freeze, resulting in a poor user experience. Summary of the invention

[0005] An embodiment of the present application provides a page display method and an electronic device. In the method, when the electronic device displays a first page area including a text processing control, in response to a sliding operation on the first page area, the electronic device controls the text processing control to stop displaying based on a view system, and the electronic device slides to display a second page area that does not display the text processing control, thereby reducing the jamming phenomenon during the sliding of the target page, making the sliding of the target page smoother and improving the user experience.

[0006] To achieve the above objectives, the embodiments of the present application may adopt the following technical solutions:

[0007] In a first aspect, the present application provides a page display method, which is applied to an electronic device, wherein the electronic device includes an application framework layer, and the application framework layer includes a view system. The page display method may include:

[0008] When the electronic device displays a first page area including text content in a target page, in response to a trigger operation on the target text in the text content, a text processing control is displayed in the first page area, and the target text in the first page area is in a selected state; in response to a sliding operation on the first page area, the electronic device controls the text processing control to stop displaying based on the view system, and the electronic device slides to display a second page area where the text processing control is not displayed.

[0009] The triggering operation on the target text in the text content may be a long press operation on the target text, or a gesture control operation on the target text, etc., which is not limited here. The text processing controls displayed in the first page area may be one or more, which is not limited here.

[0010] In an embodiment of the present application, when the target text in the first page area is in a selected state and a text processing control is displayed in the first page area, the electronic device detects that the first page area is sliding, and the view system controls the text processing control to stop displaying. In the process of the electronic device detecting that the target page is sliding, the electronic device displays a second page area that does not include a text processing control. Thus, in the process of the target page displayed by the electronic device sliding, the text processing control is not displayed in the second page area that the electronic device slides, thereby avoiding the problem of the text processing control sliding being out of sync with the target page and the text processing control sliding being stuck, thereby improving the user experience.

[0011] As a possible implementation of the present application, the page display method may further include:

[0012] When the electronic device determines, based on the view system, that the sliding of the target page stops, the electronic device displays a third page area, on which the target text and text processing controls are displayed.

[0013] It can be understood that when the electronic device determines based on the view system that the sliding of the target page stops, the target text is still displayed on the display screen of the electronic device, that is, the target text in the selected state is still displayed on the display screen, and the electronic device controls the text processing control that stops displaying based on the view system to resume display. In this case, the target text and the text processing control in the selected state are displayed on the third page area displayed on the display screen of the electronic device. The text processing control in this scenario may include a floating toolbar and / or a text selector.

[0014] As another possible implementation of the present application, the text processing control may be a control that is displayed in a suspended state. The text processing control may include a suspended toolbar and / or a text selector. The suspended toolbar is used to perform editing operations on the target text. For example, the suspended toolbar may include at least one of a translation control, a copy control, a select all control, or a share control. It can also be understood that the suspended control may be used to translate, copy, select all, or share the target text in a selected state.

[0015] The above-mentioned text selector is used to determine the range of the target text in the selected state. Here, the text selector can be composed of two text processing controls, one text processing control is located at the starting end of the target text, and the other text processing control is located at the ending end of the target text. The electronic device adjusts the range of the target text in the selected state in response to the user's triggering operation on at least one of the two text processing controls. For example, when the user drags the text processing control located at the starting end of the target text, the electronic device adjusts the position of the starting end of the target text in response to the user's dragging operation.

[0016] As another possible implementation of the present application, the text processing control includes a floating toolbar and a text selector, and the method further includes:

[0017] When the electronic device determines based on the view system that the sliding of the target page stops, the electronic device displays a fourth page area, a floating toolbar is displayed on the fourth page area, and the target text and the text selector are not displayed.

[0018] It can be understood that when the electronic device determines that the sliding of the target page stops based on the view system, the target text is not displayed on the display screen of the electronic device, that is, the target text in the selected state is not displayed on the display screen, and the electronic device resumes display of the text processing control that stops displaying based on the view system control. In this case, a floating toolbar is displayed on the fourth page area displayed in the display screen of the electronic device, and the target text and text selector are not displayed. In other words, when the sliding of the target page stops, and a floating toolbar is displayed in the fourth page area displayed by the electronic device, and the target text and text selector are not displayed, the user does not need to slide the target page back to the page area where the target text is displayed, and the electronic device can respond to the user's triggering operation of the floating toolbar and perform editing processing operations on the target text.

[0019] As another possible implementation of the present application, the electronic device controls the text processing control to stop displaying based on the view system, including:

[0020] The electronic device controls the text processing control to be in a hidden state based on the view system, or removes the text processing control.

[0021] When the electronic device controls the text processing control to be in a hidden state based on the view system, the text processing control in the target page still exists but is not displayed.

[0022] When the electronic device removes the text processing control based on the view system, the text processing control in the target page does not exist.

[0023] It can be understood that when the electronic device determines that the target page is sliding based on the view system, the view system controls the text processing control to be hidden, or removes the text processing control. During the sliding of the target page of the electronic device, the view system does not need to control the display of the text processing control, thereby saving the time of drawing each frame of the interface of the view system, making the display of the sliding target page smoother.

[0024] As another possible implementation of the present application, the electronic device controls the text processing control to stop display based on the view system, further comprising:

[0025] The electronic device obtains the first position information of the text processing control based on the view system; when the first position information obtained by the view system twice in a row is different, the electronic device determines that the target page is in the sliding process based on the view system, and the electronic device controls the text processing control to stop displaying based on the view system.

[0026] It can be understood that when the display screen of the electronic device displays the text processing control, the view system can obtain the position information of the text processing control in real time or periodically. The view system determines that the position information of the text processing control obtained twice in a row is different, and the view system determines that the target page starts to slide. In this case, the view system controls the text processing control to stop displaying. Therefore, during the sliding of the target page, the text processing control is not displayed on the display screen, and the display screen slides to display the page area without the text processing control, avoiding the problem of the text processing control sliding stuck.

[0027] As another possible implementation of the present application, the electronic device controls the text processing control to stop display based on the view system, further comprising:

[0028] The electronic device obtains second position information of the first text in the target page based on the view system; when the second position information obtained by the view system twice in a row is different, the electronic device determines that the target page is in the sliding process based on the view system, and the electronic device controls the text processing control to stop displaying based on the view system.

[0029] It can be understood that when the display screen of the electronic device displays the text processing control, the view system can obtain the position information of any text in the target page in real time or periodically. The view system determines that the position information of the text obtained twice in a row is different, and the view system determines that the target page starts to slide. In this case, the view system controls the text processing control to stop displaying. Therefore, during the sliding of the target page, the text processing control is not displayed on the display screen, and the display screen slides to display the page area without the text processing control, avoiding the problem of the text processing control sliding being stuck.

[0030] As another possible implementation of the present application, when the second position information acquired by the view system twice in succession is different, the electronic device determines, based on the view system, that the target page is in a sliding process, including:

[0031] When the electronic device determines that the second position information of the first text has changed based on the view system calling the first drawing function, the first drawing function sends the page sliding status to the first callback function, and the page sliding status indicates that the target page is in the sliding process. The change in the second position information is determined by the view system based on the second position information obtained twice in a row.

[0032] The first drawing function may be an addOnScrollChangedListener function. The addOnScrollChangedListener method may obtain information that the position information has changed from FloatingActionMode.java, and then the sliding monitoring module determines that the target page is in a sliding state according to the information that the position information has changed.

[0033] As another possible implementation of the present application, when the second position information acquired by the view system twice in succession is different, the electronic device determines, based on the view system, that the target page is in a sliding process, including:

[0034] When the electronic device calls the second drawing function based on the view system to obtain the second position information of the first text, and the second drawing function determines that the position of the first text has changed according to the second position information obtained twice in succession, the second drawing function sends a page sliding status to the second callback function, and the page sliding status indicates that the target page is in the sliding process.

[0035] The first drawing function may be an addOnPredrawListener function. After the addOnPredrawListener function obtains the position information of the first text in the target page, when the addOnPredrawListener function determines that the position information of the first text in two consecutive target pages is different, the addOnPredrawListener method determines that the target page is in a sliding state.

[0036] As another possible implementation of the present application, the target page supports the text control TextView, and the target page is a page of any application.

[0037] In a second aspect, the present application provides an electronic device, comprising a display screen; one or more processors; and a memory; wherein the memory stores one or more computer programs, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to perform the above-mentioned page display method.

[0038] In a third aspect, the present application provides an electronic device having the function of implementing the method described in the first aspect above. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the electronic device may include a sliding monitoring module and a display control module, wherein the sliding monitoring module is used to monitor whether the page displayed by the electronic device is in a sliding process. The display control module is used to control the text processing control to stop displaying. For example, the display control module can be used to control the text processing control to be in a hidden state, or to remove the text processing control.

[0039] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the page display method as described in any one of the first aspects.

[0040] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the page display method as described in any one of the first aspects.

[0041] It can be understood that the electronic device described in the second and third aspects, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 An example diagram of a page display provided in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0044] Figure 3 A software structure diagram of an electronic device provided in an embodiment of the present application;

[0045] Figure 4 An interactive schematic diagram of a page display method provided in an embodiment of the present application;

[0046] Figure 5 An example diagram of a page display method provided in an embodiment of the present application;

[0047] Figure 6 A schematic diagram of a page display method provided in an embodiment of the present application;

[0048] Figure 7 A timing diagram of a page display method provided in an embodiment of the present application;

[0049] Figure 8 This is an example diagram of the time consumption for drawing the interface of application A before and after the interface optimization provided in the embodiment of the present application;

[0050] Fig. 9 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0052] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0053] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0054] With the evolution of Android hardware devices, the screen refresh rate of electronic devices is getting higher and higher. For example, the screen refresh rate of electronic devices has evolved from 60hz (about 16.6ms / frame) to 120hz (about 8.3ms / frame). When the screen of an electronic device displays new content, every pixel in the display page needs to be updated. Therefore, each time the screen updates all pixels from top to bottom, it is called a refresh, and the screen refresh rate refers to the frequency of screen updates or refreshes. When the screen refresh rate is set to 60hz, the user feels smooth when sliding the page of the electronic device. However, when the screen refresh rate is set to a high refresh rate of 120hz, the jamming of the display page becomes particularly obvious when the user slides the page.

[0055] In one possible scenario, when a browser of an electronic device or an application that displays text through a TextView control displays text, when the electronic device detects a user's long press operation on a certain area in the text, at least one text processing control is displayed in the display page of the application. When the electronic device detects that the user slides the TextView control, the at least one text processing control slides along with the TextView control. However, when the text processing control slides along with the TextView control, there may be a lack of synchronization between the sliding of the text processing control and the TextView control, causing the text processing control to freeze.

[0056] The above-mentioned text processing control is a control that is displayed floatingly in the page. The text processing control may include a floating toolbar (FL) and / or a text selector (SHV), wherein the floating toolbar is used to perform editing operations on the text in the selected state, and the text selector is used to determine the range of the text in the selected state.

[0057] For example, Figure 1 (A) in FIG. 1 shows a user interface diagram of a mobile phone. When the mobile phone detects that a user clicks on the icon 102 of application A on the desktop 101, application A can be started and a user interface such as Figure 1When the mobile phone detects that the user has long pressed the text in a certain area of ​​the page area 103, the mobile phone determines the text selected area and can display a floating display on the text in the area. Figure 1 The text processing control 11, the text processing control 12 and the text processing control 13 in the page area 104 shown in (C) in the figure are displayed, and the text selection area is highlighted. The text processing control 11 can be a floating toolbar, and the text processing control 12 and the text processing control 13 can form a text selector. The floating toolbar can include multiple controls for operating the text in the selected state, such as Figure 1 The floating toolbar shown in (C) may include four controls for translating, selecting all, copying, and sharing the selected text. The text processing control 12 constituting the text selector may be located at the start end of the selected area, and the text processing control 13 constituting the text selector may be located at the end end of the selected area. After the mobile phone detects the user's dragging operation on the text processing control 12 and / or the text processing control 13, the range of the text selection area is adjusted in response to the user's dragging operation.

[0058] When the mobile phone detects that the user slides down the displayed page of application A, the floating toolbar and the text selector in the page area 104 slide together with the page, and the displayed page after sliding is as follows: Figure 1 As shown in (D) in .

[0059] However, from Figure 1 It can be seen from the page area 105 shown in (D) that in the process of the floating toolbar and the text selector sliding with the displayed page, the floating toolbar, the text selector and the page do not slide synchronously, and the floating toolbar and the text selector slide slowly, causing the page to freeze.

[0060] It needs to be explained that the above Figure 1 In the example, application A set in the mobile phone is used as an example. The above problem may also exist in applications in the mobile phone that support TextView to display text, which will not be described in detail here. Figure 1 The number of text processing controls in the display page is three only as an example. When the text in the display page of application A is selected, the display page may only display text processing control 11, or only display text processing control 12 and text processing control 13. In the embodiment of the present application, the number of text processing controls displayed in the display page is not limited. In addition, Figure 1 The positions of the three text processing controls in the display page are only used as an example, and the positions of the text processing controls displayed in the display page are not limited in the embodiments of the present application.

[0061] In the related art, some application developers have improved the browser kernel of electronic devices to avoid the text processing control from freezing when the page is swiped. For example, when the electronic device detects that the user has selected any text in a certain application display page, and the display page displays the text processing control, when the electronic device detects that the user has slid the TextView control, the electronic device controls the text processing control to be hidden, and when the electronic device detects that the user has stopped swiping the TextView control, the electronic device controls the text processing control to be displayed on the page again, which solves the problem of the text processing control freezing due to the unsynchronized sliding between the text processing control and the TextView control.

[0062] However, the above method for improving the browser kernel of the electronic device is implemented at the application layer, that is, the developer of the application implements the above method inside a certain application, which does not involve the functional implementation of the underlying electronic device system, and can only solve the problem of text processing controls being stuck when the display page of the application supported by the browser kernel slides. When the display page of other applications that display text through the TextView control in the electronic device displays the text processing control, the electronic device detects the sliding operation of the TextView control by the user, and there is still a problem of the sliding of the text processing control and the TextView control being out of sync, and the text processing control being stuck.

[0063] To this end, the embodiment of the present application provides a page display method, which is improved in the system bottom layer of the electronic device to solve the problem of the text processing control being stuck when the text processing control follows the sliding of the TextView control when the text processing control is displayed in all applications that display text through the TextView control in the electronic device. In this method, when the display screen of the electronic device shows that the target text in the target page is selected, and the target page displays at least one text processing control, the electronic device monitors the user's sliding operation on the TextView control, and the electronic device controls at least one text processing control in the target page to be hidden or removes at least one text processing control in the target page until the electronic device detects that the sliding of the TextView control stops, and the electronic device controls at least one text processing control in the target page to resume display. Thus, during the sliding of the TextView control in the target page, the electronic device controls the text processing control in the target page to be hidden or removes the text processing control in the target page, which solves the problem of the text processing control sliding out of sync with the TextView control when the page slides in the text selection scenario, and the text processing control is stuck, thereby improving the user experience.

[0064] Exemplarily, the page display method provided in the embodiments of the present application can be applied to mobile phones, tablet computers, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, wearable electronic devices, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart cars, smart speakers and other electronic devices with display screens, and the embodiments of the present application do not impose any restrictions on this.

[0065] like Figure 2 As shown, Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0066] The electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0067] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0068] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0069] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0070] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0071] In some embodiments, the processor 210 may include one or more interfaces. The interface 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, and / or a universal serial bus (USB) interface, etc.

[0072] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).

[0073] The I2S interface can be used for audio communication. In some embodiments, the processor 210 can include multiple groups of I2S buses. The processor 210 can be coupled to the audio module 270 via the I2S bus to achieve communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 can transmit an audio signal to the wireless communication module 260 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0074] The PCM interface can also be used for audio communication to sample, quantize and encode analog signals.

[0075] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.

[0076] The MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 294 and the camera 293. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.

[0077] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 with the camera 293, the display screen 294, the wireless communication module 260, the audio module 270, the sensor module 280, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0078] The USB interface 230 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transfer data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0079] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0080] The charging management module 240 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0081] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).

[0082] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.

[0083] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0084] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.

[0085] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device.

[0086] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR), etc. applied to the electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0087] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device 200 can communicate with the network and other devices through 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-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

[0088] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0089] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294, where N is a positive integer greater than 1.

[0090] In the embodiment of the present application, the display screen 394 can be used to display the page area of ​​any application, wherein the page area of ​​the application may include text content.

[0091] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0092] The ISP is used to process the data fed back by the camera 293. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 293.

[0093] The camera 293 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 RGB, YUV or other format. In some embodiments, the electronic device 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.

[0094] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 200 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0095] Video codecs are used to compress or decompress digital videos. The electronic device 200 may support one or more video codecs. Thus, the electronic device 200 may play or record videos in a variety of coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0096] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 200 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0097] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0098] The internal memory 221 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0099] The electronic device 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor.

[0100] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be set on the display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 294, the electronic device 200 detects the touch operation intensity according to the pressure sensor 280A. The electronic device 200 can also calculate the touch position according to the detection signal of the pressure sensor 280A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0101] The gyro sensor 280B may be used to determine the motion posture of the electronic device 200 .

[0102] The air pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates the altitude through the air pressure value measured by the air pressure sensor 280C to assist in positioning and navigation.

[0103] The magnetic sensor 280D includes a Hall sensor. The electronic device 200 can use the magnetic sensor 280D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 200 is a flip phone, the electronic device 200 can detect the opening and closing of the flip cover according to the magnetic sensor 280D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.

[0104] The acceleration sensor 280E can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0105] The distance sensor 280F is used to measure the distance. The electronic device 200 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 200 can use the distance sensor 280F to measure the distance to achieve fast focusing.

[0106] The proximity light sensor 280G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode.

[0107] The ambient light sensor 280L is used to sense the ambient light brightness. The electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived ambient light brightness. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the electronic device 200 is in a pocket to prevent accidental touch.

[0108] The fingerprint sensor 280H is used to collect fingerprints. The electronic device 200 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.

[0109] The temperature sensor 280J is used to detect the temperature.

[0110] The touch sensor 280K is also called a "touch panel". The touch sensor 280K can be set on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen". The touch sensor 280K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor 280K can also be set on the surface of the electronic device 200, which is different from the position of the display screen 294.

[0111] The bone conduction sensor 280M can acquire vibration signals.

[0112] The key 290 includes a power key, a volume key, etc. The key 290 can be a mechanical key or a touch key. The electronic device 200 can receive key input and generate key signal input related to user settings and function control of the electronic device 200.

[0113] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0114] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0115] The SIM card interface 295 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295. The electronic device 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 can also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.

[0116] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0117] Figure 3 A software structure diagram of an electronic device provided in an embodiment of the present application.

[0118] It is understandable that the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), a system library, and a kernel layer.

[0119] The above-mentioned application layer may include a series of application packages.

[0120] like Figure 3 As shown, the application package may include system applications. System applications refer to applications that are set in the electronic device before leaving the factory. For example, the system applications may include programs such as camera, gallery, calendar, music, memo, short message, and weather.

[0121] The application package may also include third-party applications, which are applications that users install after downloading the installation package from an application store (or application market), such as map applications, food delivery applications, reading applications (such as e-books), social applications, and travel applications.

[0122] The application framework layer provides an application programming interface (API) and a programming framework for the application programs in the application layer. The application framework layer includes some predefined functions.

[0123] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0124] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0125] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0126] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0127] The view system may include a sliding monitoring module and a display control module.

[0128] The sliding monitoring module is used to monitor whether the target page is in the sliding process.

[0129] In an embodiment of the present application, the sliding monitoring module may include a first sliding monitoring module and a second sliding monitoring module. The first sliding monitoring module and the second sliding monitoring module are both used to monitor whether the target page is in the sliding process.

[0130] The display control module is used to control the text processing control in the target page to be hidden, or to remove the text processing control in the target page when the sliding monitoring module monitors that the target page is in the sliding process. The display control module is also used to control the text processing control in the target page to resume display when the sliding monitoring module monitors that the sliding of the target page ends.

[0131] In an embodiment of the present application, the display control module may include a first display control module and a second display control module. The first display control module and the second display control module are respectively used to control the states of different text processing controls in the target page. For example, when the first sliding monitoring module monitors that the target page is in a sliding state, the first display control module controls the first text processing control in the target page to be in a hidden state, or removes the first text processing control in the target page. When the second sliding monitoring module monitors that the target page is in a sliding state, the second display control module controls the second text processing control in the target page to be in a hidden state, or removes the second text processing control in the target page.

[0132] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0133] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0134] The notification manager allows applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a reminder sound is emitted, the phone vibrates, the indicator light flashes, etc.

[0135] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0136] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0137] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0138] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0139] The surface manager is used to manage the display subsystem and provide the fusion of two-dimensional and three-dimensional layers for multiple applications.

[0140] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0141] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0142] A 2D graphics engine is a drawing engine for 2D drawings.

[0143] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver and sensor driver.

[0144] The technical solutions involved in the following embodiments can all be implemented in the electronic device 200 having the above hardware structure and software architecture. The following still takes the electronic device 200 as a mobile phone as an example, and illustrates the page display method of the embodiment of the present application in combination with the accompanying drawings.

[0145] Figure 4 An interactive schematic diagram of a page display method provided in an embodiment of the present application, such as Figure 4 As shown, the page display method may include the following steps:

[0146] Step 401: The display screen of the mobile phone displays the first page area of ​​the target page.

[0147] The target page includes text content. The first page area is the page area corresponding to the target page currently displayed on the display screen. The target page can be any page displayed on the mobile phone, and can be a page of any application on the mobile phone. Here, the target page is the display page of application A as an exemplary description. The target page in the embodiment of the present application is not limited to the display page of application A.

[0148] Step 402: The mobile phone detects a user triggering operation on a target text in the text content, and determines that the target text is in a selected state.

[0149] In an embodiment of the present application, when a user uses a mobile phone, when the user operates the target text displayed in the target page of application A, for example, the user copies a certain text displayed in the target page of application A, the user can long press the target text in the target page of application A. After the mobile phone detects the user's long press operation on the area where the target text is located in the target page of application A, the mobile phone determines that the target text in the area is in a selected state, highlights the selected area, and displays at least one text processing control on the target page of application A. The number of text processing controls displayed on the target page of application A here can be 1, 3 or 6, and so on. The number of text processing controls is not limited in the embodiment of the present application. Among them, the text processing control is a control that is displayed in suspension. The text processing control includes a floating toolbar and / or a text selector.

[0150] The above-mentioned application A can be any application that supports TextView displaying text in the mobile phone. Application A can be a system application or a third-party application (for example, a translation APP, a reading APP or a news APP, etc.), which is not limited in the embodiments of the present application. In addition, the position where at least one text processing control is displayed in the target page of application A is not limited in the embodiments of the present application. For example, at least one text processing control can be displayed in the upper area of ​​the target text in the selected state, or it can be displayed in the lower area of ​​the target text in the selected state.

[0151] As an example, Figure 5 An example diagram of a page display provided in an embodiment of the present application, such as Figure 5 As shown in (A) in FIG. 1 , the user starts the application A by clicking the icon 502 of the application A on the mobile phone desktop 501. The mobile phone detects the user's operation of starting the application A, and when the application A is running in the foreground, the display screen of the mobile phone may display the following Figure 5 In the page area 503 of the target page shown in (B), the user can interact with the page area 503 of the application A currently displayed on the display screen of the mobile phone.

[0152] like Figure 5 As shown in (C), when the mobile phone detects a user triggering operation on a certain area in the page area 504 of application A, the first text processing control 51, the second text processing control 52 and the third text processing control 53 are displayed in the page area 504 of application A, and the area corresponding to the text selected by the user is highlighted.

[0153] It should be explained that the number of text processing controls displayed in the target page in the embodiment of the present application is not limited to Figure 5 The three text processing controls shown in (C) in the figure are: Figure 5The display of three text processing controls in the page area 504 shown in (C) is only an example. For example, the page area 504 may only display the first text processing control 51, or the page area 504 may only display the second text processing control 52 and the third text processing control 53. In addition, Figure 5 The positions of the three text processing controls shown in (C) in the page area 504 are only described as examples. The three text processing controls can be displayed at any position in the page area 504 and are not limited here.

[0154] In the embodiments of the present application, Figure 5 As shown in (C), the first text processing control 51 may include a translation control, a copy control, a select all control, and a share control. When the mobile phone detects that the user clicks or touches a control in the first text processing control 51, the mobile phone can respond to the user's click or touch operation and perform a corresponding editing operation on the text in the selected area. For example, assuming that the mobile phone detects that the user clicks the translation control in the first text processing control 51, the mobile phone responds to the user's click operation and displays the translation text corresponding to the text in the selected area on the target page of application A. For another example, assuming that the mobile phone detects that the user clicks the select all control in the first text processing control 51, the mobile phone responds to the user's click operation, and all texts in the target page of application A are in a selected state, and all texts in a selected state are highlighted.

[0155] When the second text processing control 52 and the third text processing control 53 are displayed in the page area 504 of application A, the user can perform a trigger operation on the second text processing control 52 and / or the third text processing control 53, for example, the trigger operation can be a drag operation to adjust the selected range of the text in the selected state in the target page. When the mobile phone detects the user's drag operation on the second text processing control 52 and / or the third text processing control 53, the mobile phone responds to the drag operation and determines the range of the text in the selected state in the target page of application A, such as Figure 5 As shown in (C) in .

[0156] It should be explained that at least one text processing control displayed in the target page of application A is an Android native control. At least one text processing control displayed in the target page can be a floating toolbar, such as Figure 5 The first text processing control 51 shown in (C) is a floating toolbar. The at least one text processing control displayed in the target page may also be a text selector, such as Figure 5The second text processing control 52 and the third text processing control 53 shown in (C) constitute a text selector. When the text processing control is a floating toolbar, the floating toolbar can be implemented by calling the FloatingToolbar function by the view system. When the text processing control is a text selector, the text selector can be implemented by calling the SelectionHandleView function by the view system.

[0157] Step 403: The view system of the mobile phone controls the text processing control to start the sliding monitoring module.

[0158] In an embodiment of the present application, when the target text in the target page of application A is in a selected state and at least one text processing control is displayed in the target page, the view system of the mobile phone controls the text processing control to start the corresponding sliding monitoring module to monitor whether the target page is in the sliding process.

[0159] It should be explained that when the multiple text processing controls displayed in the target page of application A are text processing controls implemented by the system calling different functions, different text processing controls correspond to different sliding monitoring modules. For example, Figure 5 The first text processing control 51 in (C) corresponds to the first sliding monitoring module, and the second text processing control 52 and the third text processing control correspond to the second sliding monitoring module.

[0160] like Figure 6 As shown, in a possible scenario, when only a floating toolbar consisting of a first text processing control is displayed in the target page of application A, the view system can control the first text processing control to start a first sliding monitoring module to monitor whether the target page of application A is in the sliding process.

[0161] In another possible case, when only a text selector consisting of a second text processing control and a third text processing control is displayed in the target page of application A, the view system can control the second text processing control and the third text processing control to start a second sliding monitoring module to monitor whether the target page of application A is in the sliding process.

[0162] In another possible case, when the target page of application A simultaneously displays a floating toolbar composed of a first text processing control and a text selector composed of a second text processing control and a third text processing control, the view system can respectively control the first text processing control to start a first sliding monitoring module, and control the second text processing control and the third text processing control to start a second sliding monitoring module, so as to monitor whether the target page of application A is in the sliding process.

[0163] Step 404: The view system determines whether the sliding monitoring module monitors the user's sliding operation on the target page.

[0164] As a possible implementation method of an embodiment of the present application, when a user touches the display screen of a mobile phone and slides, a pressure sensor arranged in the mobile phone detects that a pressure signal has changed. When a sliding monitoring module monitors that the pressure signal has changed, the sliding monitoring module determines that the target page is in the sliding process.

[0165] As another possible implementation of the embodiment of the present application, when application A draws each frame of the target page, the sliding monitoring module can obtain the position information of the first text in the target page, and if the position information of the first text obtained by the sliding monitoring module twice in a row is different, the sliding monitoring module determines that the target page is in the sliding process. The position information of the first text can be the horizontal coordinate value and the vertical coordinate value of the coordinate point where the first text is located.

[0166] It should be explained that in the embodiment of the present application, the first text corresponding to the position information obtained by the sliding monitoring module is not limited. For example, the sliding monitoring module can obtain the position information of the text in the selected state, or the position information of the text in the target page that is not in the selected state. In addition, the first text can be the text displayed in the page area of ​​the display screen, or it can be the text not displayed in the page area of ​​the display screen, which is not limited here.

[0167] As another possible implementation method of the embodiment of the present application, when application A draws each frame of the target page, the sliding monitoring module can obtain the position information of at least one text processing control in the target page. If the position information of the same text processing control obtained by the sliding monitoring module twice in a row is different, the sliding monitoring module determines that the target page is in the sliding process. Among them, the position information of the text processing control can be the horizontal coordinate value and the vertical coordinate value of any coordinate point in the text processing control. In the embodiment of the present application, the position in the text processing control corresponding to the position information of the text processing control is not limited. For example, the position information of the text processing control can be the coordinate value corresponding to the coordinate point of the upper left corner of the text processing control, or the position information of the text processing control can also be the coordinate value corresponding to the center point of the text processing control.

[0168] Step 405: the display control module in the view system controls the text processing control to stop displaying.

[0169] In the embodiment of the present application, when the sliding monitoring module in the view system monitors that the target page is in the sliding process, the display control module in the view system can control the text processing control to stop displaying. For example, the display control module controls the text processing control to be in a hidden state, or removes the text processing control in the target page, so that the text processing control is not displayed in the target page during the sliding process of the target page, and the problem of freezing when the text processing control slides with the target page is solved.

[0170] like Figure 5 As shown in (C) in FIG. 5 , when the first sliding monitoring module corresponding to the first text processing control 51 detects the user's downward sliding operation on the page area 504, the display screen of the mobile phone displays the page area 505, such as Figure 5 When the first sliding monitoring module corresponding to the first text processing control 51 detects the user's downward sliding operation on the page area 504, the first display control module can control the first text processing control 51 in the page area 504 to be in a hidden state, or remove the first text processing control 51 in the page area 504.

[0171] like Figure 5 As shown in (C) in FIG. 5 , when the second sliding monitoring module corresponding to the second text processing control 52 and the third text processing control 53 detects the user's downward sliding operation on the page area 504, the second display control module controls the second text processing control 52 and the third text processing control 53 to be in a hidden state, or removes the second text processing control 52 and the third text processing control 53 in the page area 504, such as Figure 5 As shown in (D) in .

[0172] It needs to be explained that Figure 5 The downward sliding operation of the user on the target page is only an exemplary operation, and the direction in which the user slides the target page is not limited in the embodiment of the present application. For example, when the first sliding monitoring module detects the upward sliding operation of the user on the page area 504, the first display control module will also control the first text processing control 51 to be in a hidden state, or remove the first text processing control 51 in the page area 504.

[0173] In addition, in the embodiment of the present application, the first sliding monitoring module and the second sliding monitoring module can monitor the sliding state of the page area 504 at the same time, or can monitor the sliding state of the page area 504 one after another, which is not limited here. For example, after the first sliding monitoring module monitors that the page area 504 is in a sliding state, the second sliding monitoring module monitors that the page area 504 is in a sliding state, or after the second sliding monitoring module monitors that the page area 504 is in a sliding state, the first sliding monitoring module monitors that the page area 504 is in a sliding state.

[0174] In addition, in the embodiment of the present application, the control Figure 5 The order in which the three text processing controls shown in (C) become invisible is also not limited. For example, the first display control module controls the first text processing control 51 to be in a hidden state, or after removing the first text processing control 51 in the page area 504, the second display control module controls the second text processing control 52 and the third text processing control 53 to be in a hidden state, or the second display control module removes the second text processing control 52 and the third text processing control 53 in the page area 504. Alternatively, the second display control module controls the second text processing control 52 and the third text processing control 53 to be in a hidden state, or after the second display control module removes the second text processing control 52 and the third text processing control 53 in the page area 504, the first display control module controls the first text processing control 51 to be in a hidden state, or removes the first text processing control 51 in the page area 504. Alternatively, the first display control module controls the first text processing control 51 to be in a hidden state, or removes the first text processing control 51 in the first page area 504, and at the same time, the second display control module controls the second text processing control 52 and the third text processing control 53 to be in a hidden state, or the second display control module removes the second text processing control 52 and the third text processing control 53 in the page area 504.

[0175] Step 406: The view system determines that the sliding monitoring module detects that the sliding of the target page stops.

[0176] Step 407: the display control module in the view system controls the text processing control in the target page to resume display.

[0177] In an embodiment of the present application, when the user touches the display screen of the mobile phone and slides to the end, the pressure sensor arranged in the mobile phone detects that the pressure signal has changed, for example, the pressure sensor cannot detect the pressure signal. When the sliding monitoring module detects that the pressure signal has not changed, the sliding monitoring module determines that the target page is not in a sliding state. That is, the sliding monitoring module determines that the sliding of the target page has stopped. In this case, the display control module of the view system controls the text processing control in the target page to resume display, that is, the text processing control in the target page is in a display state until the mobile phone detects that the user cancels the selection operation of the target text in the target page, and the display control module controls the text processing control not to be displayed in the target page.

[0178] It should be explained that when the text processing control is in the hidden state, the text processing control of the target page of application A is in a transparent state, that is, the floating toolbar is not visible in the target page of application A. When the text processing control is in the displayed state, the text processing control is displayed in the target page of application A.

[0179] In a possible case, when the view system determines that the sliding monitoring module monitors that the sliding of the target page stops, the display screen of the mobile phone can display the third page area of ​​the target page. The third page area can display the target text and text processing controls.

[0180] It can be understood that when the user slowly slides the target page and the target page stops sliding, the target text in the target page is still displayed on the display screen, and when the view system determines that the sliding of the target page stops, the display screen may display the target text and text processing controls. The text processing controls here may include a floating toolbar and / or a text selector.

[0181] For example, Figure 5 In (D), when the first sliding monitoring module monitors the user's downward sliding operation on the page area 505, the first text processing control 51 is not displayed in the target page of application A until the first sliding monitoring module monitors the end of the user's sliding operation on the target page, and the first display control module controls the first text processing control 51 to be displayed in the page area 506, such as Figure 5 Similarly, when the second sliding monitoring module monitors the user's downward sliding operation on the second page area 505, the second text processing control 52 and the third text processing control 53 are not displayed in the page of application A until the second sliding monitoring module monitors the end of the user's sliding operation on the target page, and the second display control module controls the second text processing control 52 and the third text processing control 53 to be displayed in the page area 506, as shown in FIG. Figure 5 As shown in (E) in .

[0182] In another possible case, when the view system determines that the sliding monitoring module monitors that the sliding of the target page stops, the display screen of the mobile phone can display the fourth page area of ​​the target page. Among them, the fourth page area can display a floating toolbar, and no target text and text selector are displayed.

[0183] It can be understood that when the text processing control includes a floating toolbar and a text selector, when the user quickly slides the target page and the target page stops sliding, the target text in the target page is not displayed on the display screen. When the view system determines that the sliding of the target page stops, a floating toolbar can be displayed on the display screen, and the target text and text selector are not displayed on the display screen.

[0184] In the embodiment of the present application, after the mobile phone detects that the user touches or clicks any position in the target page, the mobile phone responds to the user's operation and cancels the selection operation of the text in the target page. Of course, the mobile phone can also respond to the user's voice control to cancel the selection operation of the text in the target page. In the embodiment of the present application, the implementation method of canceling the selected text in the target page is not limited.

[0185] When the mobile phone detects that the user cancels the selection operation on the text in the page area 506 of application A, the target page of application A does not display the text processing control, such as Figure 5 The text processing controls are not displayed in the page area 507 shown in (F).

[0186] As a possible implementation method of the embodiment of the present application, the code for implementing the above solution may be in the view system of the application framework layer of the mobile phone software architecture, and the code involves FloatingActionMode.java and Editor.java of the native Android components.

[0187] As an example, the view system can call FloatingActionMode.java to control the first text processing control 51. Figure 5 The view system can call Editor.java to control the display status of the text selector composed of the second text processing control 52 and the third text processing control 53 in the target page.

[0188] For example, Figure 7 A timing diagram of a page display method provided in an embodiment of the present application will be described below. Figure 7 The timing diagram describes the page display method, as follows.

[0189] In one possible scenario, when Figure 5 When the floating toolbar composed of the first text processing control 51 is displayed in (C), the view system calls FloatingActionMode.java to implement the process of the present application scheme as follows. When the first text processing control 51 of the target page of application A is initialized, that is, Figure 5 During the display of the floating toolbar in the page area 504 of (C), the view system registers a sliding monitoring module in the FloatingActionMode.java file to monitor whether the target page is in a sliding state. After the view manager (e.g., ViewTreeObserver) determines that the view system has registered the sliding monitoring module in the FloatingActionMode.java file, the sliding monitoring module triggers the monitoring operation.

[0190] For example, the view system can call the addOnPredrawListener method or the addOnScrollChangedListener method to determine the position of the first text in the target page to determine whether the target page is in a sliding state. Among them, the addOnPredrawListener method is an existing code in FloatingActionMode.java. When application A draws each frame of the target page, the addOnPredrawListener method obtains the position information of the first text in the target page. If the addOnPredrawListener method determines that the position information of the first text in two consecutive frames of the target page has changed, the addOnPredrawListener method determines that the target page of application A is in a sliding state. The sliding monitoring of the addOnPredrawListener method is in its callback function onPreDraw, that is, the addOnPredrawListener method determines that the target page is in a sliding state through the information returned by the callback function onPreDraw.

[0191] In the embodiment of the present application, there is no limitation on the first text corresponding to the position information obtained by the addOnPredrawListener method. The addOnPredrawListener method can obtain the position information of the text in the selected state, or the position information of the text that is not in the selected state in the target page. The position information of the first text can be the horizontal coordinate value and the vertical coordinate value of the coordinate point where any text is located.

[0192] The addOnScrollChangedListener method can obtain the information that the position information has changed from FloatingActionMode.java, and then the sliding monitoring module determines that the target page is in the sliding state according to the information that the position information has changed. At this time, ViewTreeObserver returns the sliding monitoring result to FloatingActionMode (for example, returns onScrollChanged = true).

[0193] When FloatingActionMode determines that the target page is in a sliding state according to the sliding monitoring result, the view system controls the floating toolbar to be invisible in the target page by calling the setVisibility(View, INVISIBLE) function. Then, the view system calls the removeCallbacks function to remove the updateRunnable method, where the updateRunnable method is used to control the display of the floating toolbar in the target page. The setVisibility(View, VISIBLE) function can be executed when the view system calls the updateRunnable method. Thereafter, the view system calls the postDelayed function to delay the execution of the updateRunnable method. For example, the view system calls the postDelayed function to delay the execution of the updateRunnable method after 100ms, until the sliding monitoring module detects that the user stops sliding the target page, the view system calls the postDelayed function to execute the updateRunnable method, so that the floating toolbar is restored to display in the target page.

[0194] When FloatingActionMode determines that the target page is in a sliding state according to the sliding monitoring result, the view system can also call the dismiss function to remove the floating toolbar displayed in the page area 503, until the sliding monitoring module monitors that the user stops sliding the target page, the view system calls the postDelayed function to execute the updateRunnable method, so that the floating toolbar is restored in the target page. Figure 5 As shown in (E) in .

[0195] In another possible scenario, when Figure 5 When the text selector composed of the second text processing control 52 and the third text processing control 53 is displayed in (C), the system calls Editor.java to implement the process of the present application solution as follows. Figure 7 As shown, when the second text processing control 52 and the third text processing control 53 of the target page of application A are initialized, that is, Figure 5 During the display of the text selector in the page area 504 of (C), the view system registers a sliding monitoring module in the Editor.java file to monitor whether the target page is in a sliding state. After the view manager (e.g., ViewTreeObserver) determines that the view system has registered the sliding monitoring module in the Editor.java file, the sliding monitoring module triggers the monitoring operation.

[0196] For example, the view system can call the addOnPredrawListener method or the addOnScrollChangedListener method to determine the position of the first text in the target page to determine whether the target page is in a sliding state. The specific implementation process can be referred to the introduction in the above embodiment, which will not be repeated here.

[0197] The addOnScrollChangedListener method can obtain the information that the position information has changed from Editor.java, and then the sliding monitoring module determines that the target page is in the sliding state according to the information that the position information has changed. At this time, ViewTreeObserver returns the sliding monitoring result to Editor.java (for example, returns onScrollChanged = true).

[0198] When Editor.java determines that the target page is in a sliding state based on the sliding monitoring result, the view system controls the text selector to be invisible in the target page by calling the setVisibility(View, INVISIBLE) function. Then, the view system calls the removeCallbacks function to remove the updateRunnable method, where the updateRunnable method is used to control the display of the text selector in the target page. The setVisibility(View, VISIBLE) function can be executed when the view system calls the updateRunnable method. Thereafter, the view system calls the postDelayed function to delay the execution of the updateRunnable method. For example, the view system calls the postDelayed function to delay the execution of the updateRunnable method after 100ms, until the sliding monitoring module detects that the user stops sliding the target page. The view system calls the postDelayed function to execute the updateRunnable method, so that the text selector resumes display in the target page.

[0199] When Editor.java determines that the target page is in a sliding state according to the sliding monitoring result, the view system can also call the dismiss function to remove the text selector displayed in the page area 504, until the sliding monitoring module monitors that the user stops sliding the target page, the view system calls the postDelayed function to execute the updateRunnable method, so that the text selector is restored to display in the target page, such as Figure 5 As shown in (E) in .

[0200] It needs to be explained that when Figure 5When the floating toolbar and the text selector are displayed simultaneously in the page area 504 shown in (C), the view system can call FloatingActionMode.java and Editor.java in parallel to control the display status of the floating toolbar and the text selector in the target page. The view system can also call FloatingActionMode.java and Editor.java in series to control the display status of the floating toolbar and the text selector in the target page. In the embodiment of the present application, there is no limitation on the order in which the view system calls FloatingActionMode.java and Editor.java.

[0201] In the embodiment of the present application, after the target page displayed on the display screen of the mobile phone is switched to another page, when the other page is in the sliding process in the text selection scenario, the above process can also be used to control the text processing control in the other page to stop displaying, so that the page sliding is smoother. In other words, the above page display method is an improvement at the system level of the mobile phone, and is applicable to the page of any application in the mobile phone.

[0202] In summary, in the embodiment of the present application, although the developer of the application can improve the browser kernel of the mobile phone, the text processing control is prevented from being stuck when the target page of the application supported by the browser kernel slides. However, when the target page of the application that supports TextView to display text in the mobile phone displays the text processing control, there is still a problem that the sliding between the text processing control and the target page is not synchronized, and the page is stuck. The embodiment of the present application is improved at the bottom system of the mobile phone, which solves the problem that the text processing control of all applications that support TextView to display text in the mobile phone slides out of sync with the target page, and the page is stuck. When the target text in the target page of the mobile phone application is in a selected state and the target page displays at least one text processing control, if the sliding monitoring module in the view system monitors the user's sliding operation on the target page, the display control module in the view system controls at least one text processing control in the target page to stop displaying, for example, the display control module controls the text processing control in the target page to be in a hidden state, or the display control module removes the text processing control in the target page until the sliding monitoring module monitors that the sliding of the target page stops, and the display control module controls at least one text processing control in the target page to resume display. As a result, when the target page of the application is sliding, the text processing control is not displayed in the target page, which solves the problem of the text processing control sliding out of sync with the page and the text processing control being stuck when the page is sliding in the text selection scenario, thereby improving the user experience.

[0203] As an example, Figure 8This is an example of the time taken to draw the interface of application A before and after the interface optimization provided in the embodiment of the present application. Figure 8 As shown, the view shows the time it takes to draw each frame of the interface during the page sliding process of application A before and after optimization. For example, Figure 8 Before optimizing the display page of application A, it may take 24.6ms, 21.4ms or 23ms to draw one frame of the interface. Figure 8 After optimizing the display page of application A, it may take 8.5ms, 10ms or 9ms to draw one frame of the interface.

[0204] It can be understood that before optimizing the display page of application A, the target text in the text content of the page of application A is in a selected state, and the page of application A includes a text processing control. When the page of application A is in the sliding process, the display control module controls the text processing control to be displayed in the interface when the system draws each frame of the interface, resulting in the system taking a long time to draw each frame of the interface. For example, when the second frame of the interface of application A is displayed on the display screen, the system completes the drawing of the first frame of the interface, resulting in part of the content of the first frame of the interface being displayed in the second frame of the interface, which results in the text processing control being stuck when sliding with the page during the sliding process of the page of application A.

[0205] After optimizing the display page of application A in this application, when the target text in the text content of the page of application A is in a selected state and the page of application A includes a text processing control, the mobile phone detects the user's sliding operation on the display page of application A. During the sliding of the page of application A, the mobile phone controls the text processing control in the page to be hidden or removes the text processing control in the page. Since the display control module controls the text processing control in the page to be hidden or removes the text processing control in the page when the sliding monitoring module monitors the sliding of the page of application A, the system does not need to draw the text processing control in the interface during the sliding of the page of application A, thereby shortening the time for drawing each frame of the interface and avoiding the problem of freezing when the text processing control follows the sliding of the page.

[0206] like Fig. 9As shown, an embodiment of the present application discloses an electronic device, which may be the mobile phone mentioned above. The electronic device may specifically include: a touch screen 901, wherein the touch screen 901 includes a touch sensor 906 and a display screen 907; one or more processors 902; a memory 903; one or more application programs (not shown); and one or more computer programs 904, and the above-mentioned components may be connected via one or more communication buses 905. Among them, the above-mentioned one or more computer programs 904 are stored in the above-mentioned memory 903 and are configured to be executed by the one or more processors 902, and the one or more computer programs 904 include instructions, which may be used to execute the relevant steps in the above-mentioned embodiment.

[0207] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.

[0208] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0209] In the case of dividing each functional module according to each function, a possible composition diagram of the electronic device involved in the above embodiment, the electronic device may include: a display unit, a transmission unit and a processing unit, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0210] The embodiment of the present application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the above-mentioned related method steps to implement the page display method in the above-mentioned embodiment.

[0211] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the page display method in the above-mentioned embodiment.

[0212] An embodiment of the present application further provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the page display method in the above-mentioned embodiment.

[0213] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the device executes the page display method executed by the electronic device in the above-mentioned method embodiments.

[0214] Among them, the electronic device, computer-readable storage medium, computer program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0215] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0216] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0217] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0218] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A page display method, characterized in that: Applied to an electronic device, the electronic device includes an application framework layer and an application layer, the application framework layer includes a view system, the electronic device also includes a display screen, the application layer includes multiple applications, the electronic device displays text through a text control (TextView), and the method includes: The display screen of the electronic device displays a first page area of ​​a target page of any application, wherein the first page area includes text content; In response to a triggering operation on a target text in the text content, the target text is in a selected state, and a floating toolbar (floating toolbar) and a text selector (selection handleview) are displayed in the first page area; In response to a sliding operation on the first page area, the electronic device controls the floating toolbar and the text selector to stop displaying in the second page display area based on the view system, and the display screen of the electronic device slides to display the second page area of ​​the target page; the target text is in a selected state; In response to the target page stopping sliding, the electronic device controls the floating toolbar and the text selector to be displayed in a third page area based on the view system; The target text is in a selected state, and the third page area displays the floating toolbar and the text selector.

2. The method according to claim 1, characterized in that: The floating toolbar is used to perform editing operations on the target text, and the text selector is used to determine the range of the target text in a selected state.

3. The method according to claim 2, characterized in that The stopping of displaying the floating toolbar and the text selector comprises: The floating toolbar and the text selector are hidden, or the floating toolbar and the text selector are removed.

4. The method according to claim 2 or 3, characterized in that: The stopping of displaying the floating toolbar and the text selector comprises: Obtaining first position information of the floating toolbar or the text selector; When the first position information obtained twice in succession is different, it is determined that the target page is in a sliding process, and the floating toolbar and the text selector are controlled to stop displaying.

5. The method according to claim 2 or 3, characterized in that: The stopping of displaying the floating toolbar and the text selector comprises: Acquire second position information of the first text in the target page; When the second position information obtained twice in succession is different, it is determined that the target page is in a sliding process, and the floating toolbar and the text selector are controlled to stop displaying.

6. The method according to claim 5, characterized in that When the second position information obtained twice in succession is different, determining that the target page is in the sliding process includes: When the first drawing function is called to determine that the second position information of the first text has changed, the first drawing function sends a page sliding status to the first callback function, and the page sliding status indicates that the target page is in a sliding process. The change in the second position information is determined based on the second position information obtained twice in a row.

7. The method according to claim 5, characterized in that When the second position information obtained twice in succession is different, determining that the target page is in the sliding process includes: When the second drawing function is called to obtain the second position information of the first text, and the second drawing function determines that the position of the first text has changed based on the second position information obtained twice in succession, the second drawing function sends a page sliding status to the second callback function, and the page sliding status indicates that the target page is in a sliding process.

8. An electronic device, characterized in that: include: Display screen; one or more processors; Memory; Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the page display method as described in any one of claims 1-7.

9. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on an electronic device, the electronic device executes the page display method as described in any one of claims 1 to 7.