Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a page switching method and device, a storage medium and electronic equipment.
The page switching device can be integrated into an electronic device having a storage unit and a microprocessor and having an operation capability, such as a tablet pc (personal computer), a mobile phone, and the like.
Referring to fig. 1, fig. 1 is a schematic flow chart of a page switching method according to an embodiment of the present application, and a specific flow may be as follows:
101. when a user carries out gesture operation on a current page, generating a vibration prompt according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation.
In this embodiment, the current page refers to a page currently being displayed on the display interface of the electronic device. The current page may display one or more of text information, image information, video information. The current page may be an application page of an application, and the application may be a browser, news information, social contact application, or the like. The current page may also be a web page.
The specific representation of the gesture operation can be set based on actual requirements, and corresponding operation instructions can be prepared for different gesture operations in advance. And the operation information is the representation of the related information or data when the gesture operation is performed. For example, the gesture operation may be a one-handed sliding operation, a two-finger clicking operation, a long-press operation, and so on. The operation information may include information of click strength, click times, touch duration, touch position, sliding direction, and the like.
In practical applications, there are various ways to obtain the operation information of the gesture operation. Specifically, the detection and collection of the external operation information may be performed by a sensor (e.g., a pressure sensor, an acceleration sensor, a gyroscope, or the like) provided in the electronic device.
In some embodiments, in order to avoid a misoperation, an effective operation area may be set for the current page, and the instruction to acquire the operation information may be triggered if and only if a gesture operation is performed on the current page within the effective operation area. That is, after the user performs the gesture operation on the current page, before generating the vibration prompt according to the gesture operation, the method may further include:
determining an operation position of the gesture operation corresponding to the current page;
and when the operation position is in the designated area in the current page, executing the step of generating a vibration prompt according to the gesture operation.
Specifically, a touch area may be specified on the current page, where the touch area includes an information input control, and a user may perform corresponding gesture operation input through the information input control. In practical applications, the information input control can be attached to the touch area to be displayed on the current page together, so that a user can conveniently search and execute gesture operations. In practical application, the touch area may be marked to distinguish other areas in the current page. When the operation information is acquired, the operation information input through the touch area can be acquired.
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 parameter may include a vibration frequency, a vibration amplitude, and other parameters. In this embodiment, the vibration of the mobile phone can be controlled in the form of a vibration signal according to the gesture operation of the user, so as to feed back and prompt the operation progress of the current gesture operation of the user, and thus the user can know an operation instruction which can be triggered by the current gesture operation.
In practical application, the information of the operation progress of the gesture operation can be displayed on the current page, so that the operation information of the gesture operation is visualized to prompt the current operation progress of the user. For example, the operation progress of the gesture operation may be shown in the form of text (e.g., data), image (e.g., a pointer bar, a progress bar, etc.), or voice.
In some embodiments, the current page is displayed with an indicator bar, and the gesture operation may be a swipe operation. Then, when the operation progress of the gesture operation is shown on the current page according to the operation information, specifically, the display state of the indicator bar on the current page may be updated based on the operation information (such as the sliding direction and the sliding distance) of the sliding operation, so as to show the operation progress of the gesture operation. That is, the state of the indicator bar indicates the slide progress of the slide operation.
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:
(11) acquiring the sliding direction and the sliding distance of the sliding operation;
(12) determining the progress variation of the indicator bar according to the sliding distance;
(13) determining the progress changing direction of the indication bar according to the sliding direction;
(14) and updating the display state of the indicator bar on the current page based on the progress variation and the progress changing direction.
The display state of the indicator bar on the current page may include display position information and display form information (such as length and area of the indicator bar).
In specific implementation, the current display state of the indicator bar on the current page needs to be obtained in advance, and the current position and the current display form of the indicator bar on the current page are further identified. Then, based on the sliding distance carried in the operation information, a corresponding progress variation is determined, and the display form of the indicator bar is adjusted and updated based on the progress variation. For example, the indicator bar may be lengthened or shortened based on the amount of progress change.
And meanwhile, determining the progress changing direction of the indication bar based on the sliding direction carried in the operation information and the area of the current position of the indication bar on the current page. Wherein, the progress changing direction comprises increasing progress and decreasing progress. For example, when the indicator bar is in the area near the left side of the current page, if the sliding direction is from left to right, the progress changing direction of the indicator bar may be determined as the progress increasing; when the indicator bar is in the area close to the left side of the current page, if the sliding direction is from right to left, the progress changing direction of the indicator bar can be determined to be the reduction progress; when the indicator bar is in the area close to the right side of the current page, if the sliding direction is from right to left, the progress changing direction of the indicator bar can be determined as the progress increasing; when the indicator bar is in the area near the right side of the current page, if the sliding direction is from left to right, the progress changing direction of the indicator bar can be determined to be the reduction progress.
Based on the operation, the display state of the indication bar on the current page is updated, so that the operation information visualization of the gesture operation of the user is realized.
In some embodiments, the gesture operation may be a slide operation, and the operation information may include a slide direction and a slide distance. Instead of displaying the indicator bar in advance, the indicator bar may be generated and a slide prompt may be given when an effective operation by the user is detected. That is, the page switching method may further include the following steps:
(21) acquiring the sliding direction and the sliding distance of the sliding operation;
(22) determining a target position from a plurality of designated positions in the current page according to the sliding direction;
(23) generating and displaying an indicator bar at the target location;
(24) and updating the display state of the indication bar on the current page according to the sliding distance.
Specifically, in this embodiment, two or more sample position areas are preset as the start positions of the indicator bars, and the corresponding relationship between the sliding direction and each sample position area is preset. In particular, when a valid sliding operation by the user is detected, and after the sliding direction is determined, the sample position area corresponding to the sliding direction may be determined based on the corresponding relationship. Then, an indication bar is generated and displayed at the determined sample region for prompting the user of the current sliding operation progress, and the display form of the indication bar is updated in real time according to the sliding distance of the sliding operation.
For the specific operation of updating the display form of the indicator bar, reference may be made to the above description, which is not repeated herein.
In some embodiments, the step of "generating a vibration prompt according to the operation information" may include the following steps:
when the sliding distance reaches a first threshold value, generating a vibration prompt based on a vibration parameter corresponding to the first threshold value;
and when the display state of the indication bar is stopped to be updated and the sliding distance reaches a second threshold value, generating a vibration prompt based on the vibration parameter corresponding to the second threshold value, wherein the second threshold value is larger than the first threshold value.
In a 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 practical application, in the process of performing sliding operation on the current page, each time a vibration prompt is detected, it is indicated that an operation instruction corresponding to current operation information can be triggered currently, and the operation instruction is in a state to be triggered. And through the vibration feedback mode, the user can know the current operation instruction which can be triggered under the condition of not watching the display content.
102. And when the gesture operation is completed, displaying a page switching effect of switching from the current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation.
Specifically, when the gesture operation stop is detected, a completion instruction of the gesture operation may be triggered. In some embodiments, to avoid the misoperation, a condition may be set to further confirm the completion of the gesture operation. For example, when it is detected that the gesture operation stops and the user's finger leaves the current page, it may be determined that the gesture operation is completed; for another example, when the duration of the gesture operation stop is detected to exceed the specified duration, the gesture operation can be determined to be completed; for another example, when the gesture operation is detected to stop and is pressed at the stop position with a force greater than a specified pressure value, it may be determined that the gesture operation is completed.
The page switching effect can be a preset switching special effect and can be set according to the requirements of users. In practical application, page switching with different properties can be set to correspond to different page switching special effects. Specifically, the same series of special effects are adopted for page switching in the same application, and another special effect is adopted for page switching between applications.
For example, for a scene that is switched from a current page to a previous history page, the previous history page may fade in from the left side while the current page fades out from the right side; for a scenario where the next page is switched from the current page, the next page may fade in from the right while the current page fades out from the left.
For another example, for an inter-application page-switching scenario, a designated page flash of another application may occur after the current page flash.
In this embodiment, the operation instruction corresponding to the gesture operation may be dynamically changed based on the operation information at different times during the execution of the same gesture operation. Because the gesture operation is a process quantity and the operation information is different at different moments, the corresponding operation instruction can be matched based on different operation information. In this embodiment, the matched operation instruction will indicate to switch from the current page to another page for display. And which page to switch to specifically can be set according to actual requirements. That is, in some embodiments, when determining the target page based on the operation progress of the gesture operation, the following process may be included:
(31) determining a plurality of candidate pages related to the current page;
(32) determining a sample distance interval where the sliding distance is located;
(33) generating a page switching instruction based on the distance interval and the sliding direction;
(34) and selecting a target page from the candidate pages according to the page switching instruction.
In practical application, a plurality of sample distance intervals can be divided in advance, and different sample distance intervals and sliding directions are arranged and combined to correspond to different page switching instructions. The page switching instruction is used for indicating a specific page switching strategy.
For example, in the first sample distance interval, the sliding direction is from left to right, and the corresponding page switching instruction indicates to move back from the current page to the previous history 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 to the application home page from the current page; for another example, in the third sample distance interval, the sliding direction is from left to right, and the corresponding page switching instruction indicates switching from the current page to the page of the other application.
In this embodiment, when determining a plurality of candidate pages associated with a current page, a current application to which the current page belongs may be specifically determined, and then, from applications running in the background, a target application that has multiple times of switching with the current application is determined. And determining a plurality of candidate pages related to the current page at least based on the historical open page (such as the last open page, the main page and the like of the current page) of the current application and the specified page (such as the main page, the frequently-used page and the like) of the target application. Therefore, the quick switching between different pages in the same application and the quick switching between the pages in different applications can be realized.
In some embodiments, when the page is switched rapidly between different applications, the target page to be switched to may also be determined based on the specific content of the current page in combination with the gesture operation of the user.
For example, when a page switch instruction indicating fast switching of a page between different applications is detected, content recognition and intention understanding can be performed on the current page through a relevant intention recognition model (such as a convolutional neural network model, a deep convolutional neural network model, and the like). Then, pages of target applications having similar contents are determined from the applications running in the background based on the recognition result. And finally, switching the current page to the page of the target application for display so as to realize the quick search of the similar page content.
According to the page switching method provided by the embodiment, when a user performs gesture operation on a current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation. And when the gesture operation is completed, displaying a page switching effect of switching from the current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation. The scheme can be switched to different pages based on one-time operation, and the page switching speed and the content searching efficiency can be improved; in addition, the current operation progress of the user is prompted in a vibration feedback mode, and the man-machine interaction effect is enhanced.
In an embodiment, a current page is taken as an example of a certain page (i.e., a current page) opened by a browser in a terminal device, and a detailed description is given to a scheme of the present application. Referring to fig. 2 and fig. 3a to 3e, fig. 2 is a schematic view of an application scenario of the page switching method according to the present embodiment; fig. 3a to 3e are schematic views of operation interfaces of a page switching method according to an embodiment of the present disclosure.
Referring to fig. 3a, when the gesture slide slides left to right on the current page, an indication bar S is generated at a left edge region of the current page. The sliding continues, the indicator strip S slowly comes out from the left side, its length increasing with the increase of the sliding distance.
Referring to fig. 3b, when the gesture slides to a first distance, the indication bar S is fully displayed in the current page. At the moment, the terminal equipment generates a vibration signal with first intensity and carries out vibration feedback prompt on the user. Referring to fig. 3d, if the user stops gesture sliding based on the vibration feedback, a page switching instruction is triggered, and the current page returns to the previous history page for displaying, and the indication bar S is also hidden. And if the gesture sliding of the previous history page by the user is detected, generating an indication bar S on the previous history page, and updating the display state of the indication bar S along with the operation information of the current gesture sliding operation.
Referring to fig. 3c, after the terminal device generates the vibration signal with the first intensity and performs the vibration feedback prompt to the user, if it is detected that the finger continues to slide, the indication bar S stops updating the length and keeps the original length unchanged (in some embodiments, the indication bar S may be hidden). When the gesture slides to a second distance, the terminal device generates a vibration signal with a second intensity (the second intensity is higher than the first intensity), and vibration feedback prompt is conducted on the user. Referring to fig. 3e, if the user stops gesture sliding based on the vibration feedback, another page switching instruction will be triggered to switch from the current page to the browser homepage for displaying, and the indication bar S will be hidden.
According to the scheme, vibration prompts with different intensities are given through different gesture sliding distances, so that a user can be fed back to jump different page scenes, and the jump logic of the page is enriched; meanwhile, the page switching speed and the content searching efficiency are improved.
In order to better implement the page switching method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the page switching method. The meaning of the noun is the same as that in the page switching method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a page switching apparatus according to an embodiment of the present disclosure, wherein the page switching apparatus 400 includes: the prompting unit 401 and the switching unit 402 may specifically be as follows:
the prompting unit 401 is configured to generate a vibration prompt according to the gesture operation when a user performs the gesture operation on the current page, where the vibration prompt is used to prompt an operation progress of the gesture operation.
The current page refers to a page currently displayed on the display interface of the electronic equipment. The current page may display one or more of text information, image information, video information. The current page may be an application page of an application, and the application may be a browser, news information, social contact application, or the like. The current page may also be a web page.
The specific representation of the gesture operation can be set based on actual requirements, and corresponding operation instructions can be prepared for different gesture operations in advance. And the operation information is the representation of the related information or data when the gesture operation is performed. For example, the gesture operation may be a one-handed sliding operation, a two-finger clicking operation, a long-press operation, and so on. When the manual operation of the user is executed, the generated operation information may include information of click strength, click times, touch duration, touch position, sliding direction, and the like.
The vibration parameter may include a vibration frequency, a vibration amplitude, and other parameters. In this embodiment, the vibration of the mobile phone can be controlled in the form of a vibration signal according to the gesture operation of the user, so as to feed back and prompt the operation progress of the current gesture operation of the user, and thus the user can know an operation instruction which can be triggered by the current gesture operation.
A switching unit 402, configured to, when the gesture operation is completed, show a page switching effect of switching from a current page to a target page, where the target page is determined based on an operation progress of the gesture operation.
In this embodiment, the operation instruction corresponding to the gesture operation may be dynamically changed based on the operation information at different times during the execution of the same gesture operation. Because the gesture operation is a process quantity and the operation information is different at different moments, the corresponding operation instruction can be matched based on different operation information. In this embodiment, the matched operation instruction will indicate to switch from the current page to another page for display. And which page to switch to specifically can be set according to actual requirements.
Specifically, the information of the operation progress of the gesture operation can be displayed on the current page, so that the operation information of the gesture operation is visualized to prompt the current operation progress of the user. In practical application, the operation progress of the gesture operation can be shown in the forms of characters (such as data), images (such as a pointer bar, a progress bar and the like), or voices and the like.
Therefore, in some embodiments, the current page is displayed with an indication bar, and the gesture operation is a sliding operation; the page switching apparatus 400 may further include a first presentation unit for:
acquiring the sliding direction and the sliding distance of the sliding operation;
and updating the display state of the indicator bar on the current page based on the sliding direction and the sliding distance.
In some embodiments, the first presentation unit is further operable to:
determining the progress variation of the indicator bar according to the sliding distance;
determining the progress changing direction of the indicator bar according to the sliding direction;
and updating the display state of the indicator bar on the current page based on the progress variation and the progress changing direction.
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 apparatus 400 may further include a second presentation unit for:
acquiring the sliding direction and the sliding distance of the sliding operation;
displaying the operation progress of the gesture operation on the current page according to the operation information, wherein the operation progress comprises the following steps:
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;
and updating the display state of the indication bar on the current page according to the sliding distance.
In some embodiments, hinting unit 401 may be configured to:
when the sliding distance reaches a first threshold value, generating a vibration prompt based on a vibration parameter corresponding to the first threshold value;
and when the display state of the indicator bar is stopped to be updated and the sliding distance reaches a second threshold value, generating a vibration prompt based on the vibration parameter corresponding to the second threshold value, wherein the second threshold value is larger than the first threshold value.
In some embodiments, the intensity at which the vibration alert is generated based on the vibration parameter corresponding to the second threshold is higher than the intensity at which the vibration alert is generated based on the vibration parameter corresponding to the first threshold.
In some embodiments, the switching unit 402 may be configured to:
the page determining subunit is used for determining a plurality of candidate pages related to the current page;
the interval determining subunit is used for determining a sample distance interval where the sliding distance is located;
the instruction generating subunit is used for generating a page switching instruction based on the sample distance interval and the sliding direction;
and the selecting subunit is used for selecting a target page from the multiple candidate pages according to the page switching instruction.
In some embodiments, the switching unit 402 may be further configured to:
determining a current application to which a current page belongs;
determining a target application which has multiple times of switching with the current application from the applications running in the background;
and determining a plurality of candidate pages related to the current page at least based on the historical open page of the current application and the specified page of the target application.
Referring to fig. 5, in some embodiments, the page switching apparatus 400 may further include:
a determining unit 403, configured to determine, after a user performs a gesture operation on a current page and before a vibration prompt is generated according to the gesture operation, that the gesture operation corresponds to an operation position of the current page;
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 in a specified area in the current page.
According to the page switching device provided by the embodiment of the application, when a user performs gesture operation on a current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation. And when the gesture operation is completed, displaying a page switching effect of switching from the current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation. The scheme can be switched to different pages based on one-time operation, and the page switching speed and the content searching efficiency can be improved; in addition, the current operation progress of the user is prompted in a vibration feedback mode, and the man-machine interaction effect is enhanced.
The embodiment of the application further provides electronic equipment, which can be terminal equipment such as a smart phone and a tablet computer, and the client of the embodiment is installed in the electronic equipment. As shown in fig. 6, the electronic device may include Radio Frequency (RF) circuitry 601, memory 602 including one or more computer-readable storage media, input unit 603, display unit 604, sensor 605, audio circuitry 606, Wireless Fidelity (WiFi) module 607, processor 608 including one or more processing cores, and power supply 609. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, 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, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating 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 program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing 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 and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 606, a speaker, and a microphone may provide an audio interface between a user and the electronic device. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal 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, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, another electronic device, or output to the memory 602 for further processing. The audio circuitry 606 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 607, and it provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the electronic device, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the mobile phone. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 608 via a power management system, such that the power management system may manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 608 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, so as to implement various functions:
when a user carries out gesture operation on a current page, generating a vibration prompt according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation;
and when the gesture operation is completed, displaying a page switching effect of switching from a current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation.
According to the electronic equipment provided by the embodiment of the application, when a user performs gesture operation on a current page, a vibration prompt is generated according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation. And when the gesture operation is completed, displaying a page switching effect of switching from the current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation. The scheme can be switched to different pages based on one-time operation, and the page switching speed and the content searching efficiency can be improved; in addition, the current operation progress of the user is prompted in a vibration feedback mode, and the man-machine interaction effect is enhanced.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the page switching methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
when a user carries out gesture operation on a current page, generating a vibration prompt according to the gesture operation, wherein the vibration prompt is used for prompting the operation progress of the gesture operation;
and when the gesture operation is completed, displaying a page switching effect of switching from a current page to a target page, wherein the target page is determined based on the operation progress of the gesture operation.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any page switching method provided in the embodiments of the present application, beneficial effects that can be achieved by any page switching method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The page switching method, the page switching device, the storage medium and the electronic device provided by the embodiment of the present application are described in detail above, a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.