Display state switching method and device, electronic equipment and storage medium
By obtaining and utilizing the glyph change information between the display screens and generating and playing animations, the visual splitting problem when switching between the screen-off display and the lock screen display is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202311370258.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2025-04-22
AI Technical Summary
In the prior art, the switching method between the screen-off display and the lock screen display is mainly to directly switch the page, resulting in large differences in text shapes, and users feel the visual separation, which affects the user experience.
By responding to the status switching command triggered by the user, the first display state of the current display screen is determined and the first glyph change information is obtained, which represents the glyph change information required by the display screen to change from the text displayed in the first display state to the text displayed in the target display state. Then, based on this information, a glyph change animation is generated and played, and the display screen is gradually switched from the first display state to the target display state.
Through gradually changing glyph animation, the visual splitting brought by direct page switching is avoided, the user experience is enhanced, and the state switching is smoother and more natural.
Smart Images

Figure CN119865548A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal devices, and in particular to a display state switching method, device, electronic device and storage medium. Background Art
[0002] The always-on display is a common feature on smartphones with OLED screens. It can continuously display graphics and text (such as time, date, and notifications) on the always-on display, so that users can understand the status of their phones without turning on the screen, and it can ensure low energy consumption. The lock screen display is often used by users to protect their phone privacy. After the screen is locked, you need to enter a password or other user-set unlocking method to enter.
[0003] In order to save the power consumption of the mobile phone as much as possible, it is usually switched to the off-screen display after entering the lock screen display for a period of time. Correspondingly, when the user needs to use the mobile phone, the off-screen display can also be switched to the lock screen display. However, the current switching method is mostly a direct switch of pages. If the fonts of the text on the off-screen display and the lock screen display are very different, the user will feel a strong sense of visual fragmentation, which will affect the user experience. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, electronic device and storage medium for switching a display state.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for switching a display state is provided, the method comprising:
[0006] In response to a state switching instruction triggered by a user, determining a first display state of a display screen of a current terminal;
[0007] According to the first display state, first font change information corresponding to the display screen is obtained; the first font change information is used to represent font change information required for the display screen to change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched;
[0008] According to the first font change information, the display screen is switched from the first display state to the target display state.
[0009] Optionally, the first display state includes a screen-off state, the target display state includes a screen-locked state, and switching the display screen from the first display state to the target display state according to the first font change information includes:
[0010] generating a corresponding first glyph change animation according to the first glyph change information;
[0011] The first glyph change animation is played, and the display screen is switched from the first display state to the target display state.
[0012] Optionally, the first display state includes a locked screen state, the target display state includes a screen off state, and switching the display screen from the first display state to the target display state according to the first font change information includes:
[0013] generating a corresponding first glyph change animation according to the first glyph change information;
[0014] After playing the first font change animation and maintaining the display screen in the first display state for a preset time, the display screen is switched from the first display state to the target display state.
[0015] Optionally, the method further comprises:
[0016] During the playing of the first font shape change animation, if it is determined that the current time information has changed, updating the time information in the first font shape change information;
[0017] Playing the first glyph change animation comprises:
[0018] Generate a corresponding second glyph change animation according to the updated first glyph change information;
[0019] Play the second glyph change animation.
[0020] Optionally, playing the second glyph change animation includes:
[0021] Determine the first playback progress corresponding to the first glyph change animation when the current time information changes;
[0022] According to the first playing progress, the second font change animation is played.
[0023] Optionally, the method further comprises:
[0024] In the process of switching the display screen from the first display state to the target display state, in response to the switching interruption instruction triggered by the user, obtaining second font change information corresponding to the display screen; the second font change information is used to represent font change information required for the display screen to change from the second display text to the first display text;
[0025] According to the second font change information, the display screen is switched to the first display state.
[0026] Optionally, switching the display screen to the first display state according to the second font change information includes:
[0027] generating a corresponding third glyph change animation according to the second glyph change information;
[0028] Determining the font information of the target display text displayed on the display screen when the switching interruption instruction is received;
[0029] Determining, according to the glyph information, a second playback progress corresponding to the third glyph change animation;
[0030] According to the second playing progress, the third glyph changing animation is played, and the display screen is switched to the first display state.
[0031] According to a second aspect of an embodiment of the present disclosure, a device for switching a display state is provided, the device comprising:
[0032] A determination module, configured to determine a first display state of a display screen of a current terminal in response to a state switching instruction triggered by a user;
[0033] an acquisition module configured to acquire first font change information corresponding to the display screen according to the first display state; the first font change information is used to represent font change information required for the display screen to change from a first display text currently displayed in the first display state to a second display text displayed in a target display state to be switched;
[0034] The switching module is configured to switch the display screen from the first display state to the target display state according to the first font change information.
[0035] Optionally, the first display state includes a screen-off state, the target display state includes a screen-locked state, and the switching module is configured to generate a corresponding first glyph change animation based on the first glyph change information; play the first glyph change animation, and switch the display screen from the first display state to the target display state.
[0036] Optionally, the first display state includes a locked screen state, the target display state includes a screen off state, and the switching module is configured to generate a corresponding first glyph change animation based on the first glyph change information; play the first glyph change animation, and after maintaining the display screen in the first display state for a preset time, switch the display screen from the first display state to the target display state.
[0037] Optionally, the switching module is configured to update the time information in the first glyph change information if it is determined that the current time information has changed during the playing of the first glyph change animation; generate a corresponding second glyph change animation based on the updated first glyph change information; and play the second glyph change animation.
[0038] Optionally, the switching module is configured to determine a first play progress corresponding to the first glyph change animation when current time information changes; and play the second glyph change animation according to the first play progress.
[0039] Optionally, the acquisition module is further configured to acquire second glyph change information corresponding to the display screen in response to a switching interrupt instruction triggered by the user during the process of switching the display screen from the first display state to the target display state; the second glyph change information is used to represent the glyph change information required for the display screen to change from the second display text to the first display text;
[0040] The switching module is further configured to switch the display screen to the first display state according to the second glyph change information.
[0041] Optionally, the switching module is configured to generate a corresponding third glyph change animation based on the second glyph change information; determine the glyph information of the target display text displayed on the display screen when the switching interrupt instruction is received; determine the second playback progress corresponding to the third glyph change animation based on the glyph information; play the third glyph change animation based on the second playback progress, and switch the display screen to the first display state.
[0042] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the steps of the display state switching method provided in the first aspect of the present disclosure when calling the executable instructions stored on the memory.
[0043] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the display state switching method provided in the first aspect of the present disclosure are implemented.
[0044] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: First, in response to the state switching instruction triggered by the user, the first display state of the display screen of the current terminal is determined. Secondly, according to the first display state, the first font change information corresponding to the display screen is obtained; the first font change information is used to characterize the font change information required for the display screen to change from the first display text displayed in the current first display state to the second display text displayed in the target display state to be switched. Finally, according to the first font change information, the display screen is switched from the first display state to the target display state. Through the above technical solution, in response to the state switching instruction triggered by the user, the first display state of the current display screen is determined, and the first font change information corresponding to the change from the first display text displayed in the current first display state to the second display text displayed in the target display state to be switched is obtained. Then, through the first font change information, the display screen is gradually changed from the text displayed in the first display state to the text displayed in the target display state, instead of directly switching the page, which improves the user experience.
[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0047] Figure 1 The present invention is a flowchart of a method for switching a display state according to an exemplary embodiment.
[0048] Figure 2 The diagram is a schematic diagram of an example scenario according to an exemplary embodiment.
[0049] Figure 3 is a schematic diagram of a scene showing yet another example according to an exemplary embodiment.
[0050] Figure 4 is a schematic diagram of a scene showing yet another example according to an exemplary embodiment.
[0051] Figure 5 The flowchart of another display state switching method is shown according to an exemplary embodiment.
[0052] Figure 6 The flowchart of another display state switching method is shown according to an exemplary embodiment.
[0053] Figure 7The flowchart of another display state switching method is shown according to an exemplary embodiment.
[0054] Figure 8 The flowchart of another display state switching method is shown according to an exemplary embodiment.
[0055] Fig. 9 The invention is a block diagram showing a device for switching a display state according to an exemplary embodiment.
[0056] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0057] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0058] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar objects and do not have to be understood as a specific order or sequence. In addition, in the description with reference to the drawings, the same symbols in different drawings represent the same elements.
[0059] In the description of the present disclosure, unless otherwise specified, "multiple" means two or more than two, and other quantifiers are similar thereto; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one item a can represent any number of a; for another example, one item or multiple items among a, b and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple; "and / or" is a kind of description of the association relationship of associated objects, indicating that there can be three kinds of relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " indicates that the associated objects before and after are in an "or" relationship.
[0060] Although operations or steps are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or to perform all the operations or steps shown to obtain the desired results. In the embodiments of the present disclosure, these operations or steps can be performed in series; these operations or steps can also be performed in parallel; or some of these operations or steps can be performed.
[0061] As mentioned in the background technology, the screen-off display is a common function on smartphones with OLED screens. It can continuously display graphics and text (such as time, date, and notifications) on the screen-off display. Users can understand the status of the phone without turning on the screen, and can ensure low energy consumption. The lock screen display is often used by users to protect the privacy of their mobile phones. After the screen is locked, they need to enter the password or other unlocking methods set by other users to enter. In order to save the power consumption of the mobile phone as much as possible, it is usually switched to the screen-off display after entering the lock screen display for a period of time. Correspondingly, when the user needs to use the mobile phone, he can also switch from the screen-off display to the lock screen display. However, most of the current switching methods are direct switching of pages. If the fonts of the text on the screen-off display and the lock screen display are very different, the user will feel a strong sense of visual fragmentation, which will affect the user's experience.
[0062] In view of this, the present invention provides a display state switching method, device, electronic device and storage medium, which, in response to a state switching instruction triggered by a user, determines the first display state of the current display screen, and obtains the first font change information corresponding to the change from the first display text displayed in the current first display state to the second display text displayed in the target display state to be switched. Then, through the first font change information, the display screen gradually changes from the text displayed in the first display state to the text displayed in the target display state, rather than directly switching pages, thereby improving the user experience.
[0063] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.
[0064] Figure 1 The present invention is a flow chart of a display state switching method according to an exemplary embodiment. The method is applied to a terminal. The terminal may be a mobile terminal such as a smart phone, a tablet computer, a smart TV, a smart watch, a PDA (Personal Digital Assistant), a portable computer, or a smart home device such as a sweeping robot, an air purifier, an air conditioner, a lighting lamp, a speaker, a robot, etc. Figure 1 As shown, the method may include the following steps:
[0065] In step S101, in response to a state switching instruction triggered by a user, a first display state of a display screen of a current terminal is determined.
[0066] Among them, the user can trigger the state switching instruction by pressing the power button of the terminal or double-clicking to light up the display screen of the terminal. The first display state can be, for example, a locked screen state or an always on display (AOD) state.
[0067] In step S102, first font change information corresponding to the display screen is obtained according to the first display state.
[0068] Among them, the first glyph change information is used to represent the glyph change information required for the display screen to change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched. Specifically, the first glyph change information can be, for example, an SVG (Scalable Vector Graphics) file. The first glyph change information can be a pre-set SVG file that can be used to generate a glyph change animation. The font, size, position and weight of the first display text and the second display text can be all different or partially different, and the present disclosure does not make specific limitations on this.
[0069] When the first display state includes the locked screen state, the target display state includes the off-screen state. When the first display state includes the off-screen state, the target display state includes the locked screen state. In the off-screen state and the locked screen state, the size, position, font, and weight of the text (which may include Chinese characters, numbers, and letters) displayed on the display screen may be different. For example, Figure 2 This is a schematic diagram of the display screen in the screen-off state. Figure 3 This is a schematic diagram of the screen display in the locked state. Figure 2 and Figure 3 The time information (16:25), date information (Tuesday afternoon, May 20) and power information (100%) are all included in the Figure 2 and Figure 3 The display position, size, font weight, etc. are different. Figure 2 and Figure 3It can be seen that the position, size, font, and weight of the text displayed on the display screen are different in the screen-off state and the screen-locked state. In this embodiment, in order to make the switching between the two states smoother and more natural, when a state switching instruction triggered by the user is received, the target display state to be switched can be determined according to the first display state of the current display screen. That is, if the current state is the screen-locked state, the display state to be switched is the screen-off state, and if the current state is the screen-off state, the display state to be switched is the screen-locked state. Then, the corresponding first glyph change information can be obtained according to the current display state and the display state to be switched. The first glyph change information records the glyph change information required to change from the first display text to the second display text. In other words, a glyph change animation from the first display text to the second display text can be generated according to the first glyph change information.
[0070] In step S103, the display screen is switched from the first display state to the target display state according to the first font change information.
[0071] For example, a font change animation from the first display text to the second display text can be generated according to the first font change information, and then the font change animation is played, and the display screen is switched from the first display state to the target display state to enter the target display scene. In this way, during the state switching process, the text on the display screen can be gradually changed to the second display text in the target display state in the form of animation, and the user will not feel a sense of visual fragmentation, which greatly improves the user experience.
[0072] In order to show the change effect more intuitively, refer to Figures 2 to 4 , Figure 2 (Screen off state) First change to Figure 4 , then by Figure 4 Change to Figure 3 (Lock screen state), that is, the switching of the display state is completed. That is, when the display screen is in the screen-off state, the user can enter the lock screen state by pressing the power button or double-clicking to light up the display screen. At this time, the font of the screen-off state will change to the font displayed in the lock screen state through a font change animation. In other words, in this process, the text on the display screen is gradually changing, including but not limited to changes in position, font, size, font weight, etc. The user will feel the flexibility of the switching process. The screen-off state and the lock screen state can achieve linkage changes, which can greatly improve the personalized design style and user experience of the system, bring smooth dynamic effects, and thus bring users a better user experience.
[0073] By adopting the above method, in response to the state switching instruction triggered by the user, the first display state of the current display screen is determined, and the first font change information corresponding to the change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched is obtained. Then, through the first font change information, the display screen is gradually changed from the text displayed in the first display state to the text displayed in the target display state, rather than directly switching the page, thereby improving the user experience.
[0074] The above step S103 is described in detail below.
[0075] In a possible implementation, the first display state includes a screen-off state, and the target display state includes a screen-locked state. Figure 5 As shown, the above step S103, switching the display screen from the first display state to the target display state according to the first font change information, may include:
[0076] S1031: Generate a corresponding first font change animation according to the first font change information.
[0077] For example, the corresponding first font change animation may be obtained by parsing the first font change information.
[0078] S1032, playing the first font change animation, and switching the display screen from the first display state to the target display state.
[0079] When the first display state includes a screen-off state and the target display state includes a screen-locked state, the first glyph change animation can be directly played, and the display screen can be switched from the first display state to the target display state.
[0080] In another possible implementation, the first display state includes a locked screen state, and the target display state includes an off-screen state. Figure 6 As shown, the above step S103, switching the display screen from the first display state to the target display state according to the first font change information, may include:
[0081] S1033: Generate a corresponding first font change animation according to the first font change information.
[0082] For example, the corresponding first font change animation may be obtained by parsing the first font change information.
[0083] S1034, playing the first font change animation, and after maintaining the display screen in the first display state for a preset time, switching the display screen from the first display state to the target display state.
[0084] When the first display state includes a lock screen state and the target display state includes an off-screen state, due to the underlying logic design principle of the system, the off-screen state is often implemented through the bottom system of the terminal, and if it is directly switched to the off-screen state, the bottom system of the terminal cannot play the first glyph change animation. Therefore, in order to ensure the playback effect of the first glyph change animation, when the first display state includes a lock screen state and the target display state includes an off-screen state, the display screen can be maintained in the first display state, and at the same time, the first glyph change animation can be played. After maintaining the display screen in the first display state for a preset time (for example, 5S), the display screen is switched from the first display state to the target display state. In this way, it is possible to smoothly switch to the target display state, and the playback integrity and fluency of the first glyph change animation can also be guaranteed, giving users a smoother and more natural dynamic change effect.
[0085] In addition, considering the actual scenario, if the time information changes during the display state switching process, for example, from 21:20 to 21:21, in order to ensure the accuracy of the time display, such as Figure 7 As shown, the following steps may also be included:
[0086] S1035: During the process of playing the first font shape change animation, if it is determined that the current time information has changed, update the time information in the first font shape change information.
[0087] When the current time information changes, the time information in the first glyph change information needs to be updated to ensure the accuracy of time display during the switching process.
[0088] Correspondingly, playing the first font change animation in S1032 or S1034 may include: generating a corresponding second font change animation according to the updated first font change information, and playing the second font change animation.
[0089] Furthermore, since the size, position, font, and weight of the text on the display screen may have changed during the switching process, in order to ensure the continuity of the animation effect after updating the time information, the first playback progress corresponding to the first glyph change animation can also be determined when the current time information changes. That is, when the current time information changes, the text on the display screen is at what playback position of the first glyph change animation. Then, the second glyph change animation can be played according to the first playback progress. For example, the second glyph change animation can be played from the first playback progress, ensuring the continuity of the animation effect and the accuracy of the time display.
[0090] Figure 8 Another display state switching method is shown according to an exemplary embodiment. Figure 8 As shown, the method may also include the following steps:
[0091] In step S104, in the process of switching the display screen from the first display state to the target display state, in response to the switching interruption instruction triggered by the user, second font change information corresponding to the display screen is obtained.
[0092] For example, in the process of switching the display screen from the first display state to the target display state, the user can press the power button of the terminal or double-click to light up the display screen of the terminal, thereby triggering the switching interruption instruction. In actual scenarios, it is considered that when the user is switching the state, due to some circumstances, the current switching operation may need to be interrupted. For example, in the process of switching from the lock screen state to the off screen state, the user sees a notification message pop up on the lock screen interface. At this time, the user may want to check the notification message in time. In the related art, the lock screen state can only be re-entered by the user after the switching is completed and the state switching instruction is re-initiated. In this embodiment, in the process of switching the display screen from the first display state to the target display state, the user can interrupt the display state switching process by triggering the switching interruption instruction.
[0093] The second font change information is used to represent the font change information required for the display screen to change from the second display text to the first display text. That is, at this time, the text on the display screen can be returned to the text effect of the first display state before the display state is switched in the form of animation through the second font change information.
[0094] In step S105, the display screen is switched to the first display state according to the second font change information.
[0095] Specifically, according to the second font change information, a corresponding third font change animation is generated. Then, the font information of the target display text displayed on the display screen when the switching interrupt instruction is received is determined. That is, the position information, size information, font information, font weight information, etc. of the text displayed on the display screen are determined when the switching interrupt instruction is received. Afterwards, the second playback progress corresponding to the third font change animation can be determined according to the font information. Since the third font change animation is an animation process from the second display text to the first display text, and the current target display text is in an intermediate state of change from the first display text to the second display text. Therefore, the font information of the target display text can be used to determine which intermediate state of the third font change animation the current font information corresponds to, that is, to determine the corresponding second playback progress. Furthermore, according to the second playback progress, the third font change animation can be played, and the display screen can be switched to the first display state. That is, the third font change animation can be played from the second playback progress, and the display screen can be switched to the first display state.
[0096] In this way, the user can trigger the linkage animation of entering the display state switching by pressing the power button or double-clicking to light up the screen. In the process of switching the display screen from the first display state to the target display state, that is, before the glyph change animation is completed, if the user wants to interrupt the current display state switching operation, he can press the power button again or double-click to light up the screen to trigger the switching interruption instruction. At this time, the glyph change animation on the display screen will immediately reverse and return to the first display state to re-enter the first display scene.
[0097] By adopting the above method, in response to the state switching instruction triggered by the user, the first display state of the current display screen is determined, and the first font change information corresponding to the change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched is obtained. Then, through the first font change information, the display screen is gradually changed from the text displayed in the first display state to the text displayed in the target display state, rather than directly switching the page, thereby improving the user experience.
[0098] Fig. 9 is a block diagram of a display state switching device according to an exemplary embodiment. Fig. 9 , the device 200 comprises:
[0099] The determination module 201 is configured to determine the first display state of the display screen of the current terminal in response to a state switching instruction triggered by a user;
[0100] The acquisition module 202 is configured to acquire first font change information corresponding to the display screen according to the first display state; the first font change information is used to represent font change information required for the display screen to change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched;
[0101] The switching module 203 is configured to switch the display screen from the first display state to the target display state according to the first font change information.
[0102] Optionally, the first display state includes a screen-off state, the target display state includes a screen-locked state, and the switching module 203 is configured to generate a corresponding first glyph change animation based on the first glyph change information; play the first glyph change animation, and switch the display screen from the first display state to the target display state.
[0103] Optionally, the first display state includes a locked screen state, the target display state includes a screen off state, and the switching module 203 is configured to generate a corresponding first glyph change animation based on the first glyph change information; play the first glyph change animation, and after maintaining the display screen in the first display state for a preset time, switch the display screen from the first display state to the target display state.
[0104] Optionally, the switching module 203 is configured to update the time information in the first font change information if it is determined that the current time information has changed during the playing of the first font change animation; generate a corresponding second font change animation based on the updated first font change information; and play the second font change animation.
[0105] Optionally, the switching module 203 is configured to determine a first play progress corresponding to the first font change animation when the current time information changes; and play the second font change animation according to the first play progress.
[0106] Optionally, the acquisition module 202 is further configured to, in the process of switching the display screen from the first display state to the target display state, in response to the switching interruption instruction triggered by the user, acquire second glyph change information corresponding to the display screen; the second glyph change information is used to represent the glyph change information required for the display screen to change from the second display text to the first display text;
[0107] The switching module 203 is further configured to switch the display screen to the first display state according to the second font change information.
[0108] Optionally, the switching module 203 is configured to generate a corresponding third glyph change animation based on the second glyph change information; determine the glyph information of the target display text displayed on the display screen when the switching interrupt instruction is received; determine the second playback progress corresponding to the third glyph change animation based on the glyph information; play the third glyph change animation based on the second playback progress, and switch the display screen to the first display state.
[0109] With the above device, in response to the state switching instruction triggered by the user, the first display state of the current display screen is determined, and the first font change information required to change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched is obtained. Then, through the first font change information, the display screen is gradually changed from the text displayed in the first display state to the text displayed in the target display state, rather than directly switching the page, thereby improving the user experience.
[0110] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0111] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the display state switching method provided by the present disclosure are implemented.
[0112] Fig.10 is a block diagram of an electronic device 300 according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0113] Reference Fig.10 , the electronic device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .
[0114] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned display state switching method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0115] The memory 304 is configured to store various types of data to support operations on the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0116] The power supply component 306 provides power to the various components of the electronic device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 300.
[0117] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the electronic device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0118] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0119] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0120] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the electronic device 300. For example, the sensor assembly 314 can detect the open / closed state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300, and the sensor assembly 314 can also detect the position change of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0121] The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0122] In an exemplary embodiment, the electronic device 300 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned display state switching method.
[0123] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the electronic device 300 to complete the above display state switching method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0124] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above display state switching method when executed by the programmable device.
[0125] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0126] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for switching a display state, characterized in that: The method comprises: In response to a state switching instruction triggered by a user, determining a first display state of a display screen of a current terminal; According to the first display state, first font change information corresponding to the display screen is obtained; the first font change information is used to represent font change information required for the display screen to change from the first display text currently displayed in the first display state to the second display text displayed in the target display state to be switched; According to the first font change information, the display screen is switched from the first display state to the target display state.
2. The method according to claim 1, characterized in that: The first display state includes a screen-off state, the target display state includes a screen-locked state, and the switching of the display screen from the first display state to the target display state according to the first font change information includes: generating a corresponding first glyph change animation according to the first glyph change information; The first glyph change animation is played, and the display screen is switched from the first display state to the target display state.
3. The method according to claim 1, characterized in that The first display state includes a locked screen state, the target display state includes an off screen state, and switching the display screen from the first display state to the target display state according to the first font change information includes: generating a corresponding first glyph change animation according to the first glyph change information; After playing the first font change animation and maintaining the display screen in the first display state for a preset time, the display screen is switched from the first display state to the target display state.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: During the playing of the first font shape change animation, if it is determined that the current time information has changed, updating the time information in the first font shape change information; Playing the first glyph change animation comprises: Generate a corresponding second glyph change animation according to the updated first glyph change information; Play the second glyph change animation.
5. The method according to claim 4, characterized in that Playing the second glyph change animation comprises: Determine the first playback progress corresponding to the first glyph change animation when the current time information changes; According to the first playing progress, the second font change animation is played.
6. The method according to any one of claims 1 to 3, characterized in that The method further comprises: In the process of switching the display screen from the first display state to the target display state, in response to the switching interruption instruction triggered by the user, obtaining second font change information corresponding to the display screen; the second font change information is used to represent font change information required for the display screen to change from the second display text to the first display text; According to the second font change information, the display screen is switched to the first display state.
7. The method according to claim 6, characterized in that The switching the display screen to the first display state according to the second font change information comprises: generating a corresponding third glyph change animation according to the second glyph change information; Determining the font information of the target display text displayed on the display screen when the switching interruption instruction is received; Determining, according to the glyph information, a second playback progress corresponding to the third glyph change animation; According to the second playing progress, the third glyph changing animation is played, and the display screen is switched to the first display state.
8. A display state switching device, characterized in that: The device comprises: A determination module, configured to determine a first display state of a display screen of a current terminal in response to a state switching instruction triggered by a user; an acquisition module configured to acquire first font change information corresponding to the display screen according to the first display state; the first font change information is used to represent font change information required for the display screen to change from a first display text currently displayed in the first display state to a second display text displayed in a target display state to be switched; The switching module is configured to switch the display screen from the first display state to the target display state according to the first font change information.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method described in any one of claims 1 to 7 when calling the executable instructions stored in the memory.
10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.