Page switching method, device, storage medium and electronic device
By using gesture operations to generate vibration prompts and display switching effects during page switching, the problem of cumbersome page switching operations in the existing technology is solved, the page switching speed and efficiency are improved, and human-computer interaction is enhanced.
Patent Information
- Application Number
- CN201911378763.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-27
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-02-03
AI Technical Summary
When opening different application pages multiple times, the existing technology leads to cumbersome page switching operations, slow query speed, and affect efficiency.
The user generates a vibration prompt when gesture operation on the current page, and displays the page switching effect according to the progress of gesture operation, thereby achieving quick switching to the target page.
It improves page switching speed and content search efficiency, enhances human-computer interaction effect, and simplifies page switching operations.
Smart Images

Figure CN113050863B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of page switching, and in particular to a page switching method, device, storage medium and electronic device. Background Art
[0002] With the development of the Internet and mobile communication networks, as well as the rapid development of terminal processing and storage capabilities, a large number of applications have been rapidly spread and used, and their information content and presentation methods have become increasingly rich.
[0003] In the related art, if different application pages of the application are opened multiple times during the use of the application, the page switching operation needs to be performed multiple times before returning to find the page that is really needed. This method is cumbersome to operate and results in a slow page query speed. Summary of the invention
[0004] The embodiments of the present application provide a page switching method, device, storage medium and electronic device, which can improve page switching speed and content search efficiency.
[0005] The present application provides a page switching method, which includes:
[0006] When the user performs a gesture operation on the current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt the operation progress of the gesture operation;
[0007] When the gesture operation is completed, a page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation.
[0008] Accordingly, the embodiment of the present application further provides a page switching device, which is characterized by comprising:
[0009] A prompting unit, configured to generate a vibration prompt according to a gesture operation when a user performs a gesture operation on a current page, wherein the vibration prompt is used to prompt an operation progress of the gesture operation;
[0010] A switching unit is used to display a page switching effect from a current page to a target page when the gesture operation is completed, wherein the target page is determined based on the operation progress of the gesture operation.
[0011] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, characterized in that the storage medium stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps of the page switching method as described above.
[0012] Correspondingly, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the program, the steps of the page switching method described above are implemented.
[0013] In the embodiment of the present application, when the user performs a gesture operation on the current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt the operation progress of the gesture operation. When the gesture operation is completed, the page switching effect from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation. This solution can switch to different pages based on a single operation, which can improve the page switching speed and content search efficiency; in addition, the user is prompted with the current operation progress by means of vibration feedback, thereby enhancing the human-computer interaction effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 It is a flow chart of the page switching method provided in the embodiment of the present application.
[0016] Figure 2 It is a schematic diagram of an application scenario of the page switching method provided in an embodiment of the present application.
[0017] Figures 3a to 3e A schematic diagram of the operation interface of the page switching method provided in an embodiment of the present application.
[0018] Figure 4 It is a structural schematic diagram of a page switching device provided in an embodiment of the present application.
[0019] Figure 5 It is another structural schematic diagram of the page switching device provided in an embodiment of the present application.
[0020] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0022] Embodiments of the present application provide a page switching method, device, storage medium, and electronic device.
[0023] Specifically, the page switching device can be integrated into electronic devices such as tablet PCs (Personal Computers) and mobile phones that have storage units and are equipped with microprocessors and have computing capabilities.
[0024] See also Figure 1 , Figure 1 The following is a flow chart of the page switching method provided in the embodiment of the present application. The specific flow can be as follows:
[0025] 101. When a user performs a gesture operation on a current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt an operation progress of the gesture operation.
[0026] In this embodiment, the current page refers to the page currently displayed on the display interface of the electronic device. The current page can display one or more of text information, image information, and video information. The current page can be an application page of an application, and the application can be a browser, news information, social networking, and other applications. In addition, the current page can also be a web page.
[0027] The specific performance of the gesture operation can be set based on actual needs, and different gesture operations can be equipped with corresponding operation instructions in advance. The operation information is the performance of relevant information or data when performing the gesture operation. For example, the gesture operation can be a one-handed sliding operation, a two-finger clicking operation, a long press operation, etc. The operation information can include information such as click strength, number of clicks, touch duration, touch position, sliding direction, etc.
[0028] In practical applications, there are many ways to obtain the operation information of gesture operations. Specifically, sensors (such as pressure sensors, acceleration sensors, gyroscopes, etc.) can be set in electronic devices to detect and collect external operation information through the sensors.
[0029] In some embodiments, in order to avoid misoperation, an effective operation area may be set for the current page, and the instruction to obtain operation information may be triggered only when a gesture operation is performed on the current page within the effective operation area. That is, after the user performs a gesture operation on the current page and before a vibration prompt is generated according to the gesture operation, the following may also be included:
[0030] Determine the operation position of the gesture operation corresponding to the current page;
[0031] When the operation position is within a specified area in the current page, a step of generating a vibration prompt according to the gesture operation is performed.
[0032] Specifically, a touch area can be specified on the current page, and the touch area includes an information input control, through which the user can perform corresponding gesture operation input. In actual applications, the information input control can be attached to the touch area and displayed together on the current page to facilitate the user to check and perform gesture operations. In actual applications, the touch area can be marked to distinguish it from other areas in the current page. When obtaining operation information, the operation information input through the touch area can be obtained.
[0033] Specifically, the vibration parameters corresponding to the operation information can be obtained, and vibration prompts of different degrees can be generated based on different vibration parameters. The vibration parameters may include parameters such as vibration frequency and vibration amplitude. In this embodiment, the vibration of the mobile phone can be controlled in the form of a vibration signal according to the user's gesture operation to provide feedback to the user on the operation progress of the current gesture operation, so that the user knows the operation instructions that can be triggered by the current gesture operation.
[0034] In actual applications, the operation progress information of the gesture operation can also be displayed on the current page to visualize the operation information of the gesture operation to prompt the user of the current operation progress. For example, the operation progress of the gesture operation can be displayed in the form of text (such as data), images (such as indicator bars, progress bars, etc.) or voice.
[0035] In some embodiments, the current page displays an indicator bar, and the gesture operation may be a sliding operation. Then, when displaying the operation progress of the gesture operation on the current page according to the operation information, the display state of the indicator bar on the current page may be updated based on the operation information of the sliding operation (such as the sliding direction and sliding distance, etc.) to display the operation progress of the gesture operation. That is, the state of the indicator bar indicates the sliding progress of the sliding operation.
[0036] In some embodiments, when the display state of the indicator bar on the current page is updated according to the sliding direction and the sliding distance, the following process may be specifically included:
[0037] (11) Obtaining the sliding direction and sliding distance of the sliding operation;
[0038] (12) determining the progress change of the indicator bar according to the sliding distance;
[0039] (13) Determine the progress change direction of the indicator bar according to the sliding direction;
[0040] (14) Based on the progress change amount and progress change direction, the display status of the indicator bar on the current page is updated.
[0041] The display status of the indicator bar on the current page may include display position information and display form information (such as the length and area of the indicator bar).
[0042] In specific implementation, it is necessary to obtain the current display state of the indicator bar on the current page in advance, and further identify the current position and current display form of the indicator bar on the current page. Then, based on the sliding distance carried in the operation information, the corresponding progress change is determined, and the display form of the indicator bar is adjusted and updated based on the progress change. For example, the indicator bar can be lengthened or shortened based on the progress change.
[0043] At the same time, based on the sliding direction carried in the operation information and the area where the indicator bar is currently located on the current page, the progress change direction of the indicator bar is determined. Among them, the progress change direction includes increasing progress and decreasing progress. For example, when the indicator bar is in the area on the left side of the current page, if the sliding direction is sliding from left to right, it can be determined that the progress change direction of the indicator bar is increasing progress; when the indicator bar is in the area on the left side of the current page, if the sliding direction is sliding from right to left, it can be determined that the progress change direction of the indicator bar is decreasing progress; when the indicator bar is in the area on the right side of the current page, if the sliding direction is sliding from right to left, it can be determined that the progress change direction of the indicator bar is increasing progress; when the indicator bar is in the area on the right side of the current page, if the sliding direction is sliding from left to right, it can be determined that the progress change direction of the indicator bar is decreasing progress.
[0044] Based on the above operations, the display status of the indicator bar on the current page is updated, thereby realizing visualization of the operation information of the user's gesture operation.
[0045] In some embodiments, the gesture operation may be a sliding operation, and the operation information may include the sliding direction and the sliding distance. Alternatively, the indicator bar may not be displayed in advance, but an indicator bar may be generated to provide a sliding prompt when a valid operation of the user is detected. That is, the page switching method may also include the following process:
[0046] (21) Obtaining the sliding direction and sliding distance of the sliding operation;
[0047] (22) determining a target position from a plurality of designated positions in the current page according to the sliding direction;
[0048] (23) generating and displaying an indicator bar at the target location;
[0049] (24) The display status of the indicator bar on the current page is updated according to the sliding distance.
[0050] Specifically, in this embodiment, two or more sample position areas need to be pre-set as the starting position of the indicator bar, and the corresponding relationship between the sliding direction and each sample position area is pre-set. In specific implementation, when a valid sliding operation of the user is detected and the sliding direction is determined, the sample position area corresponding to the sliding direction can be determined based on the corresponding relationship. Then, an indicator bar is generated and displayed at the determined sample area to prompt the user of the current sliding operation progress, and the display form of the indicator bar is updated in real time according to the sliding distance of the sliding operation.
[0051] Among them, the specific operation of updating the display form of the indicator bar can be referred to the above description, which will not be repeated here.
[0052] In some embodiments, the step of “generating a vibration prompt according to the operation information” may include the following process:
[0053] When the sliding distance reaches a first threshold, generating a vibration prompt based on a vibration parameter corresponding to the first threshold;
[0054] When the display state of the indicator bar stops being updated and the sliding distance reaches a second threshold, a vibration prompt is generated based on a vibration parameter corresponding to the second threshold, wherein the second threshold is greater than the first threshold.
[0055] In the specific implementation process, the vibration intensity when the vibration prompt is generated based on the vibration parameter corresponding to the second threshold is higher than the vibration intensity when the vibration prompt is generated based on the vibration parameter corresponding to the first threshold. That is, the longer the sliding distance, the stronger the intensity of the vibration signal. In actual applications, during the sliding operation of the current page, whenever a vibration prompt is detected, it indicates that the operation instruction corresponding to the current operation information can be triggered at present, and the operation instruction is in a state to be triggered. By means of vibration feedback, users can also know the operation instructions that can be triggered at present without watching the displayed content.
[0056] 102. When the gesture operation is completed, a page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation.
[0057] Specifically, when it is detected that the gesture operation has stopped, a completion instruction of the gesture operation may be triggered. In some embodiments, in order to avoid misoperation, conditions may be set to further confirm the completion of the gesture operation. For example, when it is detected that the gesture operation has stopped and the user's finger leaves the current page, it may be determined that the gesture operation is completed; for another example, when it is detected that the duration of the gesture operation stopping exceeds a specified duration, it may be determined that the gesture operation is completed; for another example, when it is detected that the gesture operation has stopped and a force greater than a specified pressure value is pressed at the stop position, it may be determined that the gesture operation is completed.
[0058] The page switching effect may be a pre-set switching effect, which may be set according to user needs. In actual applications, different page switching effects may be set for different natures of page switching. Specifically, the same series of effects may be used for page switching within the same application, and another series of effects may be used for page switching between applications.
[0059] For example, for the scenario of switching from the current page to the previous history page, the current page can be gradually removed from the right while the previous history page is gradually introduced from the left; for the scenario of switching from the current page to the next page, the current page can be gradually removed from the left while the next page is gradually introduced from the right.
[0060] For another example, in a page switching scenario between applications, after the current page flashes back, a designated page of another application flashes in.
[0061] It should be noted that in this embodiment, the operation instruction corresponding to the gesture operation can be dynamically changed based on the operation information at different times during the execution of the same gesture operation. Since the gesture operation is a process quantity, and the operation information at different times is different, the corresponding operation instruction can be matched based on different operation information. In this embodiment, the matched operation instruction will indicate switching from the current page to other pages for display. The specific page to switch to can be set according to actual needs. That is, in some embodiments, when determining the target page based on the operation progress of the gesture operation, the following process can be included:
[0062] (31) determining multiple candidate pages associated with the current page;
[0063] (32) Determine the sample distance interval where the sliding distance lies;
[0064] (33) Generate a page switching instruction based on the distance interval and the sliding direction;
[0065] (34) According to the page switching instruction, a target page is selected from multiple candidate pages.
[0066] In practical applications, multiple sample distance intervals may be pre-divided, and different sample distance intervals are arranged and combined with sliding directions to correspond to different page switching instructions, wherein the page switching instruction is used to indicate a specific page switching strategy.
[0067] For example, in the first sample distance interval, the sliding direction is from left to right, and the corresponding page switching instruction indicates to go back from the current page to the previous historical page; for another example, in the second sample distance interval, the sliding direction is from left to right, and the corresponding page switching instruction indicates to return from the current page to the application homepage; for another example, in the third sample distance interval, the sliding direction is from left to right, and the corresponding page switching instruction indicates to switch from the current page to the page of other applications.
[0068] In this embodiment, when determining multiple candidate pages associated with the current page, the current application to which the current page belongs can be specifically determined, and then the target application that has multiple switches with the current application can be determined from the applications running in the background. The multiple candidate pages associated with the current page are determined based at least on the historical opening pages of the current application (such as the previous opening page of the current page, the main page, etc.) and the designated pages of the target application (such as the main page, the frequently used page, etc.). Thus, fast switching between different pages in the same application and fast switching between pages of different applications can be achieved.
[0069] In some embodiments, when quickly switching pages between different applications, the target page to be switched to can also be determined based on the specific content of the current page in combination with the user's gesture operation.
[0070] For example, when a page switching instruction indicating a quick switch between pages of different applications is detected, the current page can be identified and the intent understood through a related intent recognition model (such as a convolutional neural network model, a deep convolutional neural network model, etc.). Then, based on the recognition result, a page of a target application with similar content is determined from the applications running in the background. Finally, the current page is switched to the page of the target application for display, so as to realize a quick search for similar page content.
[0071] The page switching method provided in this embodiment generates a vibration prompt according to the gesture operation when the user performs a gesture operation on the current page, wherein the vibration prompt is used to prompt the operation progress of the gesture operation. When the gesture operation is completed, the page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation. This solution can switch to different pages based on a single operation, which can improve the page switching speed and content search efficiency; in addition, the user is prompted with the current operation progress by means of vibration feedback, thereby enhancing the human-computer interaction effect.
[0072] In one embodiment, the present application scheme is described in detail by taking the current page as a page opened by a browser in a terminal device (i.e., the current page) as an example. Figure 2 ,and Figures 3a to 3e , Figure 2 A schematic diagram of an application scenario of the page switching method provided in this embodiment; Figures 3a to 3e A schematic diagram of the operation interface of the page switching method provided in an embodiment of the present application.
[0073] refer to Figure 3a When the gesture slides from left to right on the current page, an indicator bar S is generated in the left edge area of the current page. As the sliding continues, the indicator bar S slowly appears from the left, and its length increases with the sliding distance.
[0074] refer to Figure 3b When the gesture slides to the first distance, the indicator bar S is fully displayed in the current page. At this time, the terminal device generates a vibration signal of the first intensity to provide vibration feedback prompts to the user. Figure 3d If the user stops the gesture sliding based on the vibration feedback, the page switching instruction will be triggered, and the display will return from the current page to the previous history page, and the indicator bar S will be hidden. If it is detected that the user performs a gesture sliding on the previous history page, the indicator bar S will be generated on the previous history page, and the display state of the indicator bar S will be updated with the operation information of the current gesture sliding operation.
[0075] refer to Figure 3c When the terminal device generates a vibration signal of the first intensity and provides vibration feedback to the user, if it detects that the finger continues to slide, the indicator bar S will stop updating its length and keep its original length unchanged (in some embodiments, the indicator bar S can be hidden). When the gesture slides to a second distance, the terminal device will generate a vibration signal of the second intensity (the second intensity is higher than the first intensity) and provide vibration feedback to the user. Figure 3e If the user stops the sliding gesture based on this vibration feedback, another page switching instruction will be triggered, switching from the current page to the browser homepage for display, and the indicator bar S will also be hidden.
[0076] This solution uses different gesture sliding distances to give vibration prompts of different intensities, feedback users to jump to different page scenarios, enriching the page jump logic; at the same time, it improves the page switching speed and content search efficiency.
[0077] In order to better implement the page switching method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above page switching method. The meanings of the terms are the same as those in the above page switching method, and the specific implementation details can refer to the description in the method embodiment.
[0078] See also Figure 4 , Figure 4 The schematic diagram of the structure of the page switching device provided in the embodiment of the present application, wherein the page switching device 400 may include: a prompt unit 401 and a switching unit 402, which may be specifically as follows:
[0079] The prompt unit 401 is used to generate a vibration prompt according to the gesture operation when the user performs a gesture operation on the current page, wherein the vibration prompt is used to prompt the operation progress of the gesture operation.
[0080] The current page refers to the page currently displayed on the display interface of the electronic device. The current page may display one or more of text information, image information, and video information. The current page may be an application page of an application, which may be a browser, news information, social networking, or other application. In addition, the current page may also be a web page.
[0081] The specific performance of gesture operation can be set based on actual needs, and different gesture operations can be equipped with corresponding operation instructions in advance. The operation information is the performance of relevant information or data when performing the gesture operation. For example, the gesture operation can be a one-handed sliding operation, a two-finger clicking operation, a long press operation, and so on. When performing manual operation, the operation information generated can include click strength, number of clicks, touch duration, touch position, sliding direction, and other information.
[0082] The vibration parameters may include parameters such as vibration frequency and vibration amplitude. In this embodiment, the vibration of the mobile phone may be controlled in the form of a vibration signal according to the user's gesture operation to provide feedback to the user on the operation progress of the current gesture operation, so that the user knows the operation instructions that can be triggered by the current gesture operation.
[0083] The switching unit 402 is used to display a page switching effect of switching from the current page to the target page when the gesture operation is completed, wherein the target page is determined based on the operation progress of the gesture operation.
[0084] It should be noted that in this embodiment, the operation instruction corresponding to the gesture operation can be dynamically changed based on the operation information at different times during the execution of the same gesture operation. Since the gesture operation is a process quantity, and the operation information at different times is different, the corresponding operation instruction can be matched based on different operation information. In this embodiment, the matched operation instruction will indicate switching from the current page to other pages for display. The specific page to switch to can be set according to actual needs.
[0085] Specifically, the operation progress information of the gesture operation can be displayed on the current page to visualize the operation information of the gesture operation, so as to prompt the user of the current operation progress. In actual applications, the operation progress of the gesture operation can be displayed in the form of text (such as data), images (such as indicator bars, progress bars, etc.) or voice.
[0086] Therefore, in some embodiments, the current page displays an indicator bar, and the gesture operation is a sliding operation; the page switching device 400 may further include a first display unit for:
[0087] Get the sliding direction and sliding distance of the sliding operation;
[0088] Based on the sliding direction and the sliding distance, the display state of the indicator bar on the current page is updated.
[0089] In some embodiments, the first display unit can further be used to:
[0090] Determine the progress change of the indicator bar according to the sliding distance;
[0091] Determining a progress change direction of the indicator bar according to the sliding direction;
[0092] Based on the progress change amount and the progress change direction, the display state of the indicator bar on the current page is updated.
[0093] In some embodiments, the gesture operation is a sliding operation, and the operation information includes a sliding direction and a sliding distance; the page switching device 400 may further include a second display unit for:
[0094] Obtaining a sliding direction and a sliding distance of the sliding operation;
[0095] Displaying the operation progress of the gesture operation on the current page according to the operation information includes:
[0096] Determining a target position from a plurality of designated positions in the current page according to the sliding direction;
[0097] generating and displaying an indicator bar at the target location;
[0098] The display status of the indicator bar on the current page is updated according to the sliding distance.
[0099] In some embodiments, the prompt unit 401 may be used to:
[0100] When the sliding distance reaches a first threshold, generating a vibration prompt based on a vibration parameter corresponding to the first threshold;
[0101] When the display state of the indicator bar stops being updated and the sliding distance reaches a second threshold, a vibration prompt is generated based on a vibration parameter corresponding to the second threshold, wherein the second threshold is greater than the first threshold.
[0102] In some embodiments, the intensity of the vibration prompt generated based on the vibration parameter corresponding to the second threshold is higher than the intensity of the vibration prompt generated based on the vibration parameter corresponding to the first threshold.
[0103] In some embodiments, the switching unit 402 may be configured to:
[0104] A page determination subunit, used to determine multiple candidate pages associated with the current page;
[0105] An interval determination subunit, used to determine a sample distance interval where the sliding distance is located;
[0106] An instruction generation subunit, used for generating a page switching instruction based on the sample distance interval and the sliding direction;
[0107] The selection subunit is used to select a target page from a plurality of candidate pages according to the page switching instruction.
[0108] In some embodiments, the switching unit 402 may further be configured to:
[0109] Determine the current application to which the current page belongs;
[0110] Determine, from the applications running in the background, a target application that has been switched multiple times with the current application;
[0111] A plurality of candidate pages associated with the current page are determined based at least on the historical opening pages of the current application and the designated page of the target application.
[0112] refer to Figure 5 In some embodiments, the page switching device 400 may further include:
[0113] A determination unit 403 is used to determine, after the user performs a gesture operation on the current page and before generating a vibration prompt according to the gesture operation, an operation position on the current page corresponding to the gesture operation;
[0114] The prompt unit 401 may be specifically configured to execute the step of generating a vibration prompt according to the gesture operation when the operation position is within a specified area in the current page.
[0115] The page switching device provided in the embodiment of the present application generates a vibration prompt according to the gesture operation when the user performs a gesture operation on the current page, wherein the vibration prompt is used to prompt the operation progress of the gesture operation. When the gesture operation is completed, the page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation. This solution can switch to different pages based on a single operation, which can improve the page switching speed and content search efficiency; in addition, the user is prompted with the current operation progress by means of vibration feedback, thereby enhancing the human-computer interaction effect.
[0116] The present application also provides an electronic device, which may be a terminal device such as a smart phone or a tablet computer, in which the client of the above embodiment is installed. Figure 6 As shown, the electronic device may include a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0117] The RF circuit 601 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 608 for processing; in addition, the data related to the uplink is sent to the base station. Usually, the RF circuit 601 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0118] The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein 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 according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 602 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, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 with access to the memory 602.
[0119] The input unit 603 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 608, and can receive and execute the command sent by the processor 608. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0120] The display unit 604 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 604 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 608 to determine the type of touch event. Subsequently, the processor 608 provides a corresponding visual output on the display panel according to the type of touch event. Although in Figure 6 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.
[0121] The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0122] The audio circuit 606, the speaker, and the microphone can provide an audio interface between the user and the electronic device. The audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, and then the audio data is output to the processor 608 for processing, and then sent to another electronic device through the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuit 606 may also include an earplug jack to provide communication between an external headset and the electronic device.
[0123] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi module 607. It provides users with wireless broadband Internet access. Figure 6 A WiFi module 607 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the invention.
[0124] The processor 608 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the electronic device and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 608.
[0125] The electronic device also includes a power supply 609 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 608 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 609 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0126] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 608 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 608 will run the applications stored in the memory 602 to achieve various functions:
[0127] When the user performs a gesture operation on the current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt the operation progress of the gesture operation;
[0128] When the gesture operation is completed, a page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation.
[0129] The electronic device provided by the embodiment of the present application generates a vibration prompt according to the gesture operation when the user performs a gesture operation on the current page, wherein the vibration prompt is used to prompt the operation progress of the gesture operation. When the gesture operation is completed, the page switching effect from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation. This solution can switch to different pages based on a single operation, which can improve the page switching speed and content search efficiency; in addition, the user is prompted with the current operation progress by means of vibration feedback, thereby enhancing the human-computer interaction effect.
[0130] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0131] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the page switching methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0132] When the user performs a gesture operation on the current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt the operation progress of the gesture operation;
[0133] When the gesture operation is completed, a page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation.
[0134] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0135] Since the instructions stored in the storage medium can execute the steps in any one of the page switching methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the page switching methods provided in the embodiments of the present application can be achieved. For details, please refer to the previous embodiments and will not be repeated here.
[0136] The page switching method, device, storage medium and electronic device provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A page switching method, characterized in that: include: When the user performs a gesture operation on the current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used to prompt the operation progress of the gesture operation; When the gesture operation is completed, a page switching effect of switching from the current page to the target page is displayed, wherein the target page is determined based on the operation progress of the gesture operation; When quickly switching pages between different applications, obtain page switching instructions; Identify and understand the current page based on the intent recognition model, and determine a page of a target application with similar content from applications running in the background; Switching the current page to a page of the target application to switch from the current page to the target page, wherein the target page includes a plurality of candidate pages associated with the current page determined based on at least a historical opening page of the current application and a designated page of the target application; The target page is determined based on the operation progress of the gesture operation, including: Determine multiple candidate pages associated with the current page; Determine the sample distance interval where the sliding distance lies; Generate page switching instructions based on the distance interval and sliding direction; According to the page switching instruction, a target page is selected from multiple candidate pages.
2. The page switching method according to claim 1, characterized in that: The current page displays an indicator bar, the gesture operation is a sliding operation, and the method further includes: Obtaining a sliding direction and a sliding distance of the sliding operation; Based on the sliding direction and the sliding distance, the display state of the indicator bar on the current page is updated.
3. The page switching method according to claim 2, characterized in that: The updating of the display state of the indicator bar on the current page according to the sliding direction and the sliding distance includes: Determine the progress change of the indicator bar according to the sliding distance; Determining a progress change direction of the indicator bar according to the sliding direction; Based on the progress change amount and the progress change direction, the display state of the indicator bar on the current page is updated.
4. The page switching method according to claim 1, characterized in that: The gesture operation is a sliding operation, and the method further includes: Obtaining a sliding direction and a sliding distance of the sliding operation; Determining a target position from a plurality of designated positions in the current page according to the sliding direction; generating and displaying an indicator bar at the target location; The display status of the indicator bar on the current page is updated according to the sliding distance.
5. The page switching method according to any one of claims 2 to 4, characterized in that: Generating a vibration prompt according to the gesture operation includes: When the sliding distance reaches a first threshold, generating a vibration prompt based on a vibration parameter corresponding to the first threshold; When the display state of the indicator bar stops being updated and the sliding distance reaches a second threshold, a vibration prompt is performed based on a vibration parameter corresponding to the second threshold, wherein the second threshold is greater than the first threshold.
6. The page switching method according to claim 5, characterized in that: The intensity of the vibration prompt generated based on the vibration parameter corresponding to the second threshold is higher than the intensity of the vibration prompt generated based on the vibration parameter corresponding to the first threshold.
7. The page switching method according to any one of claims 2 to 4, characterized in that: The target page is determined based on the operation progress of the gesture operation, including: Determine multiple candidate pages associated with the current page; Determine the sample distance interval where the sliding distance lies; Generate a page switching instruction based on the sample distance interval and the sliding direction; According to the page switching instruction, a target page is selected from a plurality of candidate pages.
8. The page switching method according to claim 7, characterized in that: The determining of multiple candidate pages associated with the current page includes: Determine the current application to which the current page belongs; Determine, from the applications running in the background, a target application that has been switched multiple times with the current application; A plurality of candidate pages associated with the current page are determined based at least on the historical opening pages of the current application and the designated page of the target application.
9. The page switching method according to claim 1, characterized in that: After the user performs a gesture operation on the current page and before generating a vibration prompt according to the gesture operation, the method further includes: Determine the operation position of the gesture operation corresponding to the current page; When the operation position is within a specified area in the current page, a step of generating a vibration prompt according to the gesture operation is performed.
10. A page switching device, characterized in that: include: A prompting unit, configured to generate a vibration prompt according to a gesture operation when a user performs a gesture operation on a current page, wherein the vibration prompt is used to prompt an operation progress of the gesture operation; A switching unit, configured to display a page switching effect of switching from a current page to a target page when the gesture operation is completed, wherein the target page is determined based on the operation progress of the gesture operation; When quickly switching pages between different applications, obtain page switching instructions; Identify and understand the current page based on the intent recognition model, and determine a page of a target application with similar content from applications running in the background; Switching the current page to a page of the target application to switch from the current page to the target page, wherein the target page includes a plurality of candidate pages associated with the current page determined based on at least a historical opening page of the current application and a designated page of the target application; The target page is determined based on the operation progress of the gesture operation, including: Determine multiple candidate pages associated with the current page; Determine the sample distance interval where the sliding distance lies; Generate page switching instructions based on the distance interval and sliding direction; According to the page switching instruction, a target page is selected from multiple candidate pages.
11. The page switching device according to claim 10, characterized in that: The current page displays an indicator bar, and the gesture operation is a sliding operation; the device also includes a first display unit, which is used to: Obtaining a sliding direction and a sliding distance of the sliding operation; Based on the sliding direction and the sliding distance, the display state of the indicator bar on the current page is updated.
12. The page switching device according to claim 10, characterized in that: The gesture operation is a sliding operation, and the sliding operation includes a sliding direction and a sliding distance; the device also includes a second display unit, which is used to: Obtaining a sliding direction and a sliding distance of the sliding operation; Determining a target position from a plurality of designated positions in the current page according to the sliding direction; generating and displaying an indicator bar at the target location; The display status of the indicator bar on the current page is updated according to the sliding distance.
13. The page switching device according to claim 11 or 12, characterized in that: The prompt unit is used for: When the sliding distance reaches a first threshold, generating a vibration prompt based on a vibration parameter corresponding to the first threshold; When the display state of the indicator bar stops being updated and the sliding distance reaches a second threshold, a vibration prompt is generated based on a vibration parameter corresponding to the second threshold, wherein the second threshold is greater than the first threshold.
14. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the page switching method according to any one of claims 1 to 9.
15. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the page switching method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Webpage switching method and device
CN108108113A
Display method and device for web page, terminal and storage medium
CN108776568A
Prompt information display method, apparatus and terminal
WO2017032153A1
