Display control method and electronic equipment
By setting multiple sliding processing strategies in electronic devices and dynamically switching according to usage scenarios, the problem of poor user experience caused by a single sliding strategy in the existing technology is solved, and better user experience and power consumption management are achieved.
Patent Information
- Application Number
- CN202310846564.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
Existing electronic devices use a single sliding strategy when sliding operations, and cannot adapt to different usage scenarios, resulting in poor user experience.
A display control method is provided, by setting multiple sliding processing strategies (such as a first sliding processing strategy and a second sliding processing strategy) in an electronic device, and dynamically switching strategies according to usage scenarios to achieve effects of different sliding durations and distances.
By adapting the sliding strategy to different usage scenarios, the user experience is improved, the problem of too much or too little newly loaded content after sliding operations is avoided, power consumption is reduced, and the appearance of white or black blocks is reduced.
Smart Images

Figure CN119311182A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic devices, and in particular to a display control method and electronic device. Background Art
[0002] With the development of electronic device technology, users can slide on the screens of electronic devices such as mobile phones, so that the electronic devices can scroll and display corresponding content.
[0003] When a user performs a sliding operation on the screen of an electronic device such as a mobile phone, the sliding strategy used by the electronic device is usually a single sliding strategy that cannot be applied to different usage scenarios. Summary of the invention
[0004] The embodiments of the present application provide a display control method and an electronic device, which enable the electronic device to use different sliding strategies in different usage scenarios, thereby improving the user experience.
[0005] In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a display control method, which is applied to an electronic device, and the electronic device may include at least two sliding processing strategies. The display control method may include: the electronic device displays a first page; the electronic device receives a first sliding operation of a user sliding along a first direction on the first page; in response to the first sliding operation, the electronic device controls the first page to slide along the first direction based on a target sliding processing strategy; wherein the at least two sliding processing strategies include a first sliding processing strategy and a second sliding processing strategy; when the target sliding processing strategy is the first sliding processing strategy, the duration of the first page sliding along the first direction is a first duration, and the distance the first page slides is a first distance; when the target sliding processing strategy is the second sliding processing strategy, the duration of the first page sliding along the first direction is a second duration, and the distance the first page slides is a second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0007] Based on the method described in the first aspect, the electronic device can determine different sliding processing strategies according to the use scenario of the electronic device, so that the electronic device can control the page sliding based on different sliding processing strategies. Due to different sliding processing strategies, the duration of the page sliding and the sliding distance of the electronic device are different when the page slides. Therefore, when the electronic device controls the page sliding of the electronic device based on the fast sliding processing strategy (i.e., the first sliding processing strategy), the duration of the page sliding of the electronic device can be made longer, and the distance of the page sliding is longer. The page of the electronic device responds to the sliding operation and has more newly loaded content, which can make the user's subjective fluency feel better. When the electronic device controls the page sliding of the electronic device based on the slow sliding processing strategy (i.e., the second sliding processing strategy), the duration of the page sliding of the electronic device can be made shorter, and the distance of the page sliding is shorter. The page of the electronic device responds to the sliding operation and has less newly loaded content, which can make the user see clearly and focus more easily. Therefore, the scheme of the present application enables the electronic device to use different sliding strategies in different use scenarios, so as to improve the user's use experience in different use scenarios.
[0008] In combination with the first aspect, in another possible implementation, when the electronic device executes the first sliding processing strategy, the first page can slide at a first initial speed and a first friction coefficient; when the electronic device executes the second sliding processing strategy, the first page can slide at a second initial speed and a second friction coefficient, the first initial speed is greater than the second initial speed, and the first friction coefficient is less than the second friction coefficient.
[0009] Based on this possible implementation, since the first initial speed corresponding to the first sliding processing strategy is relatively large, and the first friction coefficient corresponding to the first sliding processing strategy is relatively small, when the electronic device controls the page sliding of the electronic device based on the first sliding processing strategy, the page sliding duration of the electronic device can be relatively long, and the page sliding distance can be relatively long, so that the page of the electronic device responds to the sliding operation and has more newly loaded content, which can make the user's subjective fluency feel better. Since the second initial speed corresponding to the second sliding processing strategy is relatively small, and the second friction coefficient corresponding to the second sliding processing strategy is relatively large, when the electronic device controls the page sliding of the electronic device based on the second sliding processing strategy, the page sliding duration of the electronic device can be relatively short, and the page sliding distance can be relatively short, so that the page of the electronic device responds to the sliding operation and has less newly loaded content, which can make the user see clearly and focus more easily.
[0010] In combination with the first aspect, in another possible implementation, the electronic device is a foldable electronic device. Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the display control method may further include: when the usage scenario of the foldable electronic device is a large-screen scenario, determining the target sliding processing strategy to be the second sliding processing strategy; wherein the large-screen scene includes the foldable electronic device being in an unfolded state; when the usage scenario of the foldable electronic device is a small-screen scene, determining the target sliding processing strategy to be the first sliding processing strategy; wherein the small-screen scene includes the foldable electronic device being in a folded state.
[0011] Based on this possible implementation, when the foldable electronic device is in the unfolded state, the foldable electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the foldable electronic device shorter and the page sliding distance shorter, so that the page of the electronic device responds to the sliding operation with less newly loaded content, which can make it easier for the user to see clearly and focus. And when the foldable electronic device is in the unfolded state, since the page sliding time is shorter and the page sliding distance is shorter, the page of the electronic device responds to the sliding operation with less newly loaded content, thereby reducing the power consumption of the electronic device. And it can avoid the problem of white blocks or black blocks displayed on the electronic device due to the large amount of newly loaded content and the slow loading of the newly loaded content, thereby improving the user experience.
[0012] In combination with the first aspect, in another possible implementation, before the above-mentioned electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the above-mentioned display control method may also include: when the usage scenario of the electronic device is a power saving mode scenario, determining the target sliding processing strategy to be the second sliding processing strategy; when the usage scenario of the electronic device is a non-power saving mode scenario, determining the target sliding processing strategy to be the first sliding processing strategy.
[0013] Based on this possible implementation, when the use scenario of the electronic device is a power saving mode scenario, the electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the electronic device shorter and the page sliding distance shorter, so that the page of the electronic device responds to the sliding operation with less newly loaded content, which allows the user to see clearly and focus more easily. And when the use scenario of the electronic device is a power saving mode scenario, because the electronic device is based on the second sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, so the page of the electronic device responds to the sliding operation with less newly loaded content, which can reduce the power consumption of the electronic device, thereby achieving the effect of power saving.
[0014] In combination with the first aspect, in another possible implementation, before the above-mentioned electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the above-mentioned display control method may also include: when the use scenario of the electronic device is a high temperature scenario, determining the target sliding processing strategy to be the second sliding processing strategy; wherein the high temperature scenario includes the temperature of the electronic device being greater than or equal to the temperature threshold; when the use scenario of the electronic device is a non-high temperature scenario, determining the target sliding processing strategy to be the first sliding processing strategy; wherein the non-high temperature scenario includes the temperature of the electronic device being less than the temperature threshold.
[0015] Based on this possible implementation, when the temperature of the electronic device is higher than the temperature threshold, the electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the electronic device shorter and the page sliding distance shorter, so that the page of the electronic device responds to the sliding operation with less newly loaded content, which allows the user to see clearly and focus more easily. And when the temperature of the electronic device is higher than the temperature threshold, since the page sliding time is shorter and the page sliding distance is shorter, the page of the electronic device responds to the sliding operation with less newly loaded content, which can reduce the power consumption of the electronic device, thereby reducing the temperature of the electronic device.
[0016] In combination with the first aspect, in another possible implementation, before the above-mentioned electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the above-mentioned display control method may also include: when the use scenario of the electronic device is a non-text scenario, determining that the target sliding processing strategy is a second sliding processing strategy; wherein, the non-text scenario includes that the data amount of the content to be displayed is greater than or equal to the data amount threshold, or, the type of the content to be displayed includes a picture type or a video type, or, the data amount of the text type in the content to be displayed is less than the data amount of the picture type and / or the video type; when the use scenario of the electronic device is a text scene, determining that the target sliding processing strategy is a first sliding processing strategy; wherein, the text scenario includes that the data amount of the content to be displayed is less than the data amount threshold, or, the type of the content to be displayed is a text type, or, the data amount of the text type in the content to be displayed is greater than the data amount of the picture type and / or the video type; wherein, the content to be displayed is the content newly loaded by the first page after responding to the first sliding operation.
[0017] Based on this possible implementation, when the data volume of the content to be displayed is greater than or equal to the data volume threshold, or the type of the content to be displayed includes a picture type or a video type, or the data volume of the text type in the content to be displayed is less than the data volume of the picture type and / or the video type, the electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the electronic device shorter and the page sliding distance shorter, so that the page of the electronic device responds to the sliding operation with less newly loaded content, which can make the user see clearly and focus more easily. And because the electronic device uses the second sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, so the page of the electronic device responds to the sliding operation with less newly loaded content, which can reduce the power consumption of the electronic device, so that the user's subjective fluency can be better. And it can avoid the problem of white blocks or black blocks displayed by the electronic device due to the large amount of newly loaded content and the slow loading of the newly loaded content, thereby improving the user's use experience.
[0018] In combination with the first aspect, in another possible implementation, before the above-mentioned electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the above-mentioned display control method may also include: when the application corresponding to the first page is an application in the slow sliding application list, determining that the target sliding processing strategy is the second sliding processing strategy; when the application corresponding to the first page is an application in the fast sliding application list, determining that the target sliding processing strategy is the first sliding processing strategy.
[0019] Based on this possible implementation method, the type of the first application can be quickly determined by quickly sliding the application list or the slow sliding application list, so that according to the type of the first application, it can be quickly determined whether the target sliding processing strategy used by the electronic device is the fast sliding processing strategy (i.e., the first sliding processing strategy) or the slow sliding processing strategy (i.e., the second sliding processing strategy).
[0020] In combination with the first aspect, in another possible implementation, after the above-mentioned electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the above-mentioned display control method may also include: determining whether the usage scenario of the foldable electronic device is a power saving mode scenario; when the usage scenario of the foldable electronic device is a power saving mode scenario, adjusting the target sliding processing strategy to a second sliding processing strategy; the foldable electronic device receives a second sliding operation of the user sliding along the first direction on the first page; in response to the second sliding operation, the foldable electronic device controls the first page to slide along the first direction based on the second sliding processing strategy; determining whether the usage scenario of the foldable electronic device is a text scene; when the usage scenario of the foldable electronic device is a text scene, adjusting the target sliding processing strategy to the first sliding processing strategy; the foldable electronic device receives a third sliding operation of the user sliding along the first direction on the first page; in response to the third sliding operation, the foldable electronic device controls the first page to slide along the first direction based on the first sliding processing strategy.
[0021] Based on this possible implementation method, when determining the usage scenario of the foldable electronic device, it is possible to determine in turn whether the scenario of the foldable electronic device is a small screen scenario, a power saving mode scenario, and a text scenario, so as to accurately determine the sliding processing strategy.
[0022] In a second aspect, an embodiment of the present application also provides a display control method, which is applied to a foldable electronic device. The foldable electronic device may include a first screen and a second screen that are relatively arranged, and the display area of the second screen is larger than the display area of the first screen. The display control method may include: when the foldable electronic device is in a folded state, controlling the first screen to display a first page; receiving a first sliding operation of a user on the first screen along a first direction; in response to the first sliding operation, the first page slides along the first direction for a first time length, and the sliding distance of the first page is a first distance; when the foldable electronic device is in an unfolded state, controlling the second screen to display the first page; receiving a first sliding operation of the user on the second screen along the first direction; in response to the first sliding operation, the first page slides along the first direction for a second time length, and the sliding distance of the first page is a second distance; wherein the first time length is greater than the second time length, and the first distance is greater than the second distance.
[0023] Based on the method described in the second aspect, when the foldable electronic device is in the unfolded state, the foldable electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the foldable electronic device shorter and the page sliding distance shorter, so that the page of the electronic device responds to the sliding operation with less newly loaded content, which can make the user see clearly and focus more easily. And when the foldable electronic device is in the unfolded state, since the foldable electronic device is based on the second sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, therefore, the page of the foldable electronic device responds to the sliding operation with less newly loaded content, thereby reducing the power consumption of the foldable electronic device. And it can avoid the problem of white blocks or black blocks displayed by the foldable electronic device due to the large amount of newly loaded content and the slow loading of the newly loaded content, thereby improving the user experience.
[0024] In a third aspect, an embodiment of the present application provides a display control device, which can be applied to an electronic device to implement the method in the first aspect. The functions of the display control device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, such as a display module, a receiving module, and a control module.
[0025] The display module may be used to display the first page.
[0026] The receiving module may be configured to receive a first sliding operation performed by a user on a first page along a first direction.
[0027] A control module can be used to control the first page to slide along a first direction in response to a first sliding operation based on a target sliding processing strategy; wherein, at least two sliding processing strategies include a first sliding processing strategy and a second sliding processing strategy; when the target sliding processing strategy is the first sliding processing strategy, the duration of the first page sliding along the first direction is a first duration, and the distance the first page slides is a first distance; when the target sliding processing strategy is the second sliding processing strategy, the duration of the first page sliding along the first direction is a second duration, and the distance the first page slides is a second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0028] In a fourth aspect, a display control device is provided, which has the function of implementing the method described in the first aspect or the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0029] In a fifth aspect, a display control device is provided, comprising: a processor and a memory; the memory is used to store computer execution instructions, and when the display control device is running, the processor executes the computer execution instructions stored in the memory to enable the display control device to perform a display control method as described in any one of the first aspect or the second aspect above.
[0030] In a sixth aspect, a display control device is provided, comprising: a processor; the processor is used to couple with a memory, and after reading instructions in the memory, execute a display control method as described in any one of the first aspect or the second aspect according to the instructions.
[0031] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by an electronic device, the electronic device implements the display control method as described in the first aspect or any one of the possible implementations of the first aspect, or the electronic device implements the display control method as described in the second aspect.
[0032] In an eighth aspect, an embodiment of the present application provides a computer program product, comprising a computer readable code. When the computer readable code is executed in an electronic device, the electronic device implements a display control method as described in the first aspect or any possible implementation of the first aspect, or implements a display control method as described in the second aspect.
[0033] In a ninth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the first aspect or the second aspect. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.
[0034] It should be understood that the beneficial effects of the second to ninth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Schematic diagram of a display interface of an electronic device in the related art Figure 1 ;
[0036] Figure 2 Schematic diagram of a display interface of an electronic device in the related art Figure 2 ;
[0037] Figure 3 A schematic diagram of the principle of the sliding curve strategy provided in the embodiment of the present application;
[0038] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0039] Figure 5 A flow chart of a display control method provided in an embodiment of the present application Figure 1 ;
[0040] Figure 6 A schematic diagram of a display interface of an electronic device provided in an embodiment of the present application;
[0041] Figure 7 A flow chart of a display control method provided in an embodiment of the present application Figure 2 ;
[0042] Figure 8 A flow chart of a display control method provided in an embodiment of the present application Figure 3 ;
[0043] Fig. 9 A schematic diagram of the structure of a display control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0046] With the development of electronic device technology, users can slide on the screens of electronic devices such as mobile phones, so that the electronic devices can scroll and display corresponding content.
[0047] When a user performs a sliding operation on the screen of an electronic device such as a mobile phone, in order to ensure the accuracy of the electronic device's recognition of the user's sliding operation, the electronic device uses a slow sliding curve rate strategy.
[0048] The sliding curve rate strategy (also called sliding strategy or sliding processing strategy) refers to the strategy by which the operating system of an electronic device processes and adjusts the response speed and curve of sliding events when the user slides his finger on the touch screen. In other words, the sliding curve rate strategy adjusts the response speed of sliding events during the sliding process according to the user's gesture input to achieve a smoother and more natural sliding effect. This can improve the user experience and make the sliding operation smoother and more responsive. Among them, common scenarios for sliding curves include list sliding, page following hand sliding, etc. The negative exponential function of e commonly used for sliding curves is a gentle attenuation curve, which can be used for the attenuation of speed or displacement.
[0049] The sliding curve rate strategy may include a speed gain parameter. By adjusting the speed gain parameter, the sliding curve strategy may be adjusted. The speed gain parameter may include an initial speed gain and a friction coefficient. The initial speed gain is the initial speed at which the electronic device processes the sliding event when the electronic device recognizes the beginning of the sliding operation. That is, the initial speed gain may determine the starting state and initial speed of the sliding.
[0050] The friction coefficient is the coefficient at which the electronic device gradually adjusts the speed of sliding event processing according to the strength and direction of the sliding operation to simulate the physical effects in the real world.
[0051] The slow sliding curve rate strategy means that when a user slides a finger on the touch screen, the electronic device processes and adjusts the response speed and curve of the sliding event (i.e., the sliding curve when the user slides on the screen of the electronic device) at a slower rate. The slow sliding curve rate strategy includes a relatively small initial speed gain and a relatively large friction coefficient, so that the electronic device can process and adjust the response speed and curve of the sliding event at a slower rate through the slow sliding curve rate strategy.
[0052] However, when a user performs a fast sliding operation on the screen of an electronic device such as a mobile phone, the electronic device uses a slow sliding curve rate strategy, so the electronic device responds to the sliding event and processes and adjusts the curve at a slow rate. This causes the user to feel that the electronic device responds slowly, thus affecting the user's experience.
[0053] The following is a detailed description of the slow rate at which the electronic device processes and adjusts the response speed and curve of the sliding event (i.e., the sliding curve when the user slides on the screen of the electronic device) through the slow sliding curve rate strategy, which causes the user to feel that the electronic device responds slowly. When the electronic device uses the slow sliding curve rate strategy, regardless of whether the user slides fast or slow on the screen of the electronic device, the electronic device uses the same slow sliding curve rate strategy. For example, as shown in Table 1, when the user's sliding speed is slow, medium or fast, the slow sliding curve rate strategy used by the electronic device is the same speed gain parameter.
[0054] Table 1
[0055]
[0056] As shown in Table 1, when a user slides a certain distance at a relatively slow speed on the screen of an electronic device, the electronic device uses a relatively small initial speed gain corresponding to the slow sliding curve rate strategy, and a relatively large friction coefficient, which will make the screen of the electronic device scroll smaller, that is, the electronic device scrolls and displays less content. When a user slides the same distance at a faster speed on the screen of an electronic device at the same angle, the same curve, and the same force, because the electronic device uses the same friction coefficient and initial speed gain, the initial speed gain is relatively small and the friction coefficient is relatively large, so the screen of the electronic device scrolls still smaller, that is, the electronic device scrolls and displays less content. This will cause the user to feel that the electronic device reacts slowly, thus affecting the user experience.
[0057] In addition, the code of the slow sliding curve rate strategy used by electronic devices in the related art is as follows:
[0058] <param name="high freq_smart slide model config">
[0059] <slide_param name="switch”value="1" / >
[0060] <slideparam name="low_velocity_friction_gain”value="0.7" / >
[0061] <slide_param name="low_velocity_init_velocity_gain”value="0.6" / >
[0062] <slideparam name="medium_velocity_level”value="5000.0" / >
[0063] <slide_param name="medium_velocity_friction_gain"value="0.7" / >
[0064] <slide_param name="medium_velocity_init_velocity_gain"value="0.6" / >
[0065] <slideparam name-"high_velocity_level”value"15000.0" / >
[0066] <slide_param name="high_velocity_frictiongain”value="0.7" / >
[0067] <slide_param name="high_velocity_init_velocity_gain"value="0.6" / >
[0068] According to the code of the above slow sliding curve rate strategy, when the electronic device uses the slow sliding curve rate strategy, when the user's sliding speed is fast, the initial velocity gain (i.e., high_velocity_init_velocity_gain) is 0.6, and the friction coefficient (i.e., high_velocity_friction_gain) is 0.7. When the user's sliding speed is medium, the initial velocity gain (i.e., medium_velocity_init_velocity_gain) is 0.6, and the friction coefficient (i.e., medium_velocity_friction_gain) is 0.7. When the user's sliding speed is fast, the initial velocity gain (i.e., low_velocity_init_velocity_gain) is 0.6, and the friction coefficient (i.e., low_velocity_friction_gain) is 0.7. Therefore, combined with the code of the above-mentioned slow sliding curve rate strategy, it can be known that no matter whether the user slides fast or slow on the screen of the electronic device, or when the usage scenarios of the electronic device are different (such as the folding screen of a folding screen mobile phone is in the unfolded state or the folding screen is in the folded state), the electronic device uses the same slow sliding curve rate strategy.
[0069] Since all electronic devices use the same slow sliding curve rate strategy, when a user slides on the screen of an electronic device at a fast speed, the user will feel that the electronic device responds slowly, thereby affecting the user's usage experience.
[0070] In order to solve the problem that the above-mentioned electronic device uses a slow sliding curve rate strategy to process and adjust the response speed and curve of the sliding event (that is, the sliding curve when the user performs a sliding operation on the screen of the electronic device) at a slow rate, causing the user to feel that the electronic device responds slowly, the related technology can use a fast sliding curve rate strategy through the electronic device to make the electronic device respond to the sliding event and the rate at which the curve is processed and adjusted is relatively fast, thereby avoiding the user feeling that the electronic device responds slowly.
[0071] The initial speed gain of the fast sliding curve rate strategy is larger than the initial speed gain of the slow sliding curve rate strategy, and the friction coefficient of the fast sliding curve rate strategy is smaller than the friction coefficient of the slow sliding curve rate strategy. That is to say, when the electronic device uses the fast curve rate strategy, if the electronic device recognizes the start of the sliding operation, the initial speed of the electronic device processing the sliding event is larger, and in the process of identifying the sliding operation, the friction coefficient is relatively small, so that the electronic device can respond to the sliding event faster and the speed of processing and adjusting the curve is faster.
[0072] When an electronic device uses a fast sliding curve rate strategy, regardless of whether the user slides fast or slow on the screen of the electronic device, or when the usage scenarios of the electronic device are different (such as the folding screen of a foldable screen mobile phone is in an unfolded state or in a folded state), the electronic device uses the same slow sliding curve rate strategy.
[0073] The code of the fast sliding curve rate strategy used by the electronic device in the related art is as follows:
[0074] <param name="highfreq_smartslidemodelconfig">
[0075] <slide_param name="switch”value="1" / >
[0076] <slideparam name="low_velocity_friction_gain”value="0.6" / >
[0077] <slide_param name="low_velocity_init_velocity_gain”value="0.8" / >
[0078] <slideparam name="medium_velocity_level”value="5000.0" / >
[0079] <slide_param name="medium_velocity_friction_gain"value="0.6" / >
[0080] <slide_param name="medium_velocity_init_velocity_gain"value="0.8" / >
[0081] <slideparam name-"high_velocity_level”value"15000.0" / >
[0082] <slide_param name="high_velocity_frictiongain”value="0.6" / >
[0083] <slide_param name="high_velocity_init_velocity_gain"value="0.8" / >
[0084] According to the code of the above fast sliding curve rate strategy, when the electronic device uses the fast sliding curve rate strategy, when the user's sliding speed is fast, the initial velocity gain (i.e., high_velocity_init_velocity_gain) is 0.8, and the friction coefficient (i.e., high_velocity_friction_gain) is 0.6. When the user's sliding speed is medium, the initial velocity gain (i.e., medium_velocity_init_velocity_gain) is 0.8, and the friction coefficient (i.e., medium_velocity_friction_gain) is 0.6. When the user's sliding speed is fast, the initial velocity gain (i.e., low_velocity_init_velocity_gain) is 0.8, and the friction coefficient (i.e., low_velocity_friction_gain) is 0.6. Therefore, combined with the code of the above-mentioned fast sliding curve rate strategy, it can be known that no matter whether the user slides fast or slow on the screen of the electronic device, or when the usage scenarios of the electronic device are different (such as the folding screen of a foldable screen mobile phone is in the unfolded state or the folding screen is in the folded state), the electronic device uses the same fast sliding curve rate strategy.
[0085] When a user slides a certain distance at a relatively slow speed on the screen of an electronic device, the electronic device uses a relatively large initial speed gain corresponding to the fast sliding curve rate strategy, and a relatively small friction coefficient, which makes the screen of the electronic device scroll over a larger range, that is, the electronic device scrolls and displays more content. When a user slides the same distance at a relatively fast speed on the screen of an electronic device, following the same angle, the same curve, and the same force, because the electronic device uses the same friction coefficient and initial speed gain, the initial speed gain is relatively large and the friction coefficient is relatively small, so the screen of the electronic device still scrolls over a larger range, that is, the electronic device still scrolls and displays more content.
[0086] Since all electronic devices use the same fast sliding curve rate strategy, the screen scrolling range of the electronic device will be larger, that is, the electronic device scrolls and displays more content. When the screen scrolling range of the electronic device is larger and the electronic device scrolls and displays more content, if the electronic device displays the content to be displayed slowly, or the content to be displayed is not fully displayed or the amount of data of the content to be displayed is large, the electronic device will display a white block or a black block at the corresponding position, or display the words "loading", which causes the user to feel that the display of the electronic device is slow, thereby affecting the user's experience.
[0087] For example, taking a mobile phone as an electronic device, the mobile phone uses a fast sliding curve rate strategy as an example, combined with Figure 1 In (a), after the user opens the shopping application on the mobile phone, the mobile phone displays the interface corresponding to the shopping application. When the user quickly slides upward on the screen of the mobile phone, because the mobile phone uses a fast sliding curve rate strategy, the initial speed gain corresponding to the fast sliding curve rate strategy is large, and the friction coefficient is small, the mobile phone screen scrolls over a large range, that is, the mobile phone scrolls and displays more content. Since the mobile phone scrolls and displays more content, that is, the mobile phone displays more content, if the mobile phone displays the content to be displayed slowly, that is, the displayed content is not fully displayed, such as Figure 1 As shown in (b) in FIG. 1 , the mobile phone will display a black block 01 at the corresponding position of the unfinished content. This causes the user to feel that the display or loading of the mobile phone is slow, thereby affecting the user's experience.
[0088] Since the electronic device uses a relatively large initial speed gain corresponding to the fast sliding curve rate strategy, and a relatively small friction coefficient, the screen of the electronic device scrolls over a larger range, that is, the electronic device scrolls to display more content, which causes the electronic device to consume more power. In some scenarios, the electronic device may be a folding screen electronic device, which may also be called a foldable electronic device. When the folding screen of the electronic device is in an unfolded state (that is, the electronic device uses a large screen to display pages), the foldable electronic device is in an unfolded state, and the electronic device uses a relatively large initial speed gain corresponding to the fast sliding curve rate strategy, and a relatively small friction coefficient, so that the screen of the electronic device scrolls over a larger range, that is, the electronic device scrolls to display more content, which causes the electronic device to consume more power.
[0089] For example, the electronic device is a foldable screen mobile phone, and the mobile phone uses a fast sliding curve rate strategy. When the foldable screen mobile phone is in a large screen state (that is, the foldable screen of the mobile phone is in an unfolded state), after the user opens the shopping application on the foldable screen mobile phone, combined with Figure 2 In (a), the foldable phone can display the interface corresponding to the shopping application. When the user quickly slides upward on the screen of the foldable phone, since the foldable phone uses a fast sliding curve rate strategy, the initial speed gain corresponding to the fast sliding curve rate strategy is large, and the friction coefficient is small, the foldable phone's screen scrolling range is large, that is, the phone scrolls and displays more content. Since the foldable phone scrolls and displays more content, that is, the foldable phone displays more content, if the foldable phone displays the content to be displayed slowly, that is, when the displayed content is not fully displayed, such as Figure 2 As shown in (b) in the figure, the foldable screen mobile phone will display white blocks 02 and 03 at the corresponding positions of the unfinished content. This causes the user to feel that the display of the mobile phone is slow, thus affecting the user's experience. In addition, since the foldable screen mobile phone has to display more content, it will cause the power consumption of the electronic device to be higher.
[0090] The following is combined with Table 2 to illustrate that when the folding screen of the electronic device is in the unfolded state and the electronic device uses the fast sliding curve rate strategy, the power consumption of the electronic device is relatively high.
[0091] Table 2
[0092] Number of slides first Second time The third time average contrast Fast sliding curve rate strategy 1259.43 1268.38 1263.62 1263.81 Slow Slide Curve Rate Strategy 1222.64 1204.53 1166.34 1197.837 -65.9733
[0093] Combined with Table 2, it can be seen that when the electronic device uses the fast sliding curve rate strategy and the user slides on the screen of the electronic device, the average power consumption of the electronic device is 1263.81 milliamperes (mA). When the electronic device uses the slow sliding curve rate strategy, the user uses the same sliding speed on the screen of the electronic device, according to the same angle, the same curve and the same force, and slides the same distance, the average power consumption of the electronic device is 1197.837mA. It can be seen that when the folding screen of the electronic device is in the unfolded state and the fast sliding curve rate strategy is used, the power consumption of the electronic device is 65mA worse than when the folding screen of the electronic device is in the unfolded state and the slow fast sliding curve rate strategy is used. That is, when the folding screen of the electronic device is in the unfolded state and the electronic device uses the fast sliding curve rate strategy, the power consumption of the electronic device is larger.
[0094] In other scenarios, the electronic device may be a folding screen electronic device, which may also be called a foldable electronic device. When the folding screen of the electronic device is in a folded state (that is, the electronic device uses a small screen to display pages), the foldable electronic device is in a folded state. The electronic device uses a relatively large initial velocity gain corresponding to a fast sliding curve rate strategy, and a relatively small friction coefficient, which will also make the screen scrolling range of the electronic device larger and cause the electronic device to consume more power.
[0095] For example, it can be known through measurement that when the folding screen of an electronic device (such as a mobile phone) is in a folded state and a fast sliding curve rate strategy is used, the power consumption of the electronic device is 16mA worse than when the folding screen of the electronic device is in a folded state and a slow fast sliding curve rate strategy is used. That is, when the folding screen of the electronic device is in a folded state and the electronic device uses a fast sliding curve rate strategy, the power consumption of the electronic device will also be relatively large.
[0096] It can be seen that the above-mentioned related technology uses the scheme of the fast sliding curve rate strategy by the electronic device, although it can make the electronic device's response speed to the sliding event and the rate of processing and adjusting the curve relatively fast, avoiding the user's feeling that the electronic device reacts slowly, but this related technology will cause the electronic device to display white blocks or black blocks at the corresponding position due to the large range of the electronic device scrolling display and the slow display speed of the electronic device, or when the amount of data of the content to be displayed is large, causing the user to feel that the display of the electronic device is slow, affecting the user's experience. Moreover, this related technology will cause the electronic device to consume more power due to the large range of the electronic device scrolling display and the large amount of content displayed by the electronic device. Therefore, this scheme of using the fast sliding curve rate strategy by the electronic device does not solve the problem that the response speed of the sliding event and the rate of processing and adjusting the curve by the slow sliding curve rate strategy are slow, causing the user to feel that the electronic device reacts slowly.
[0097] In response to the above problems, an embodiment of the present application provides a display control method, which is applied to an electronic device, and the electronic device may include a slow sliding curve rate strategy and a fast sliding curve rate strategy. During the use of the electronic device, the electronic device can determine the usage scenario of the electronic device, and thus use different sliding curve rate strategies according to the usage scenario of the electronic device. When the usage scenario is a scenario that requires the use of a fast sliding curve rate strategy, the electronic device can use the fast sliding curve rate strategy, and when the usage scenario is a scenario that requires the use of a slow sliding curve rate strategy, the electronic device can use the slow sliding curve rate strategy.
[0098] Since the electronic device can use the fast sliding curve rate strategy when the usage scenario requires the use of a fast sliding curve rate strategy (such as when the screen of a foldable electronic device is in a folded state), it can avoid the user feeling that the electronic device is slow to respond when the user performs a fast sliding operation on the screen of an electronic device such as a mobile phone, thereby improving the user experience.
[0099] When the usage scenario requires the use of a slow sliding curve rate strategy (such as a scenario where the screen of a folding screen electronic device is in an unfolded state), the electronic device can use a slow sliding curve rate strategy. Therefore, it can avoid the electronic device displaying white blocks or black blocks at corresponding positions when the display speed of the electronic device is slow, thereby improving the user experience and reducing the power consumption of the electronic device.
[0100] Since the initial speed gain and friction coefficient of the fast sliding curve rate strategy and the slow sliding curve rate strategy are different, when the electronic device uses the fast sliding curve rate strategy or the slow sliding curve rate strategy, if the electronic device receives the sliding operation of the user, the duration of the page scrolling display of the electronic device and the distance the page slides are different. The starting time of the duration of the page scrolling display of the electronic device is the time when the electronic device receives the sliding operation of the user and the user's finger is lifted (that is, the time when the user's finger leaves the screen of the electronic device). The stop time of the duration of the page scrolling display of the electronic device is the time when the electronic device receives the sliding operation of the user and the user's finger is lifted, the electronic device starts to scroll and display based on the initial speed gain and friction coefficient until the scrolling display stops. The distance the page slides of the electronic device is the distance of the page scrolling display of the electronic device within the time when the electronic device receives the sliding operation of the user and the user's finger is lifted, the electronic device starts to scroll and display based on the initial speed gain and friction coefficient until the scrolling display stops, that is, the distance the page slides, which can also be called the physical distance the page slides.
[0101] When the electronic device uses the fast sliding curve rate strategy, if the electronic device receives a sliding operation from the user, the duration of the page scrolling display of the electronic device is the first duration, and the distance the page of the electronic device slides is the first distance. When the electronic device uses the fast sliding curve rate strategy, if the electronic device receives a sliding operation from the user, and the target sliding processing strategy is the second sliding processing strategy, the duration of the page scrolling display of the electronic device is the second duration, and the distance the electronic device slides is the second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0102] Through measurement, it can be known that when the use scenario of the electronic device is the same (such as the use scenario of the electronic device is a large-screen scenario or a small-screen scenario), and the sliding parameters of the sliding operation of the user on the screen of the electronic device (i.e., sliding distance, sliding curve, sliding time, sliding force, etc.) are the same, if the electronic device uses a fast sliding curve rate strategy, the page scrolling display duration of the electronic device (i.e., the first duration) is 300 milliseconds. When the use scenario of the electronic device is the same (such as the use scenario of the electronic device is a large-screen scenario or a small-screen scenario), and the sliding parameters of the user on the screen of the electronic device (i.e., sliding distance, sliding curve, sliding time, sliding force, etc.) are the same, if the electronic device uses a slow sliding curve rate strategy, the page scrolling display duration of the electronic device (i.e., the second duration) is 200 milliseconds. That is to say, when the usage scenarios of the electronic device are the same and the sliding parameters of the user on the screen of the electronic device are the same, when the electronic device uses the fast sliding processing strategy, the length of time that the page of the electronic device is scrolled and displayed is greater than when the electronic device uses the fast sliding processing strategy, and when the electronic device uses the fast sliding processing strategy, the distance that the page of the electronic device slides is greater than when the electronic device uses the fast sliding processing strategy.
[0103] Combine the following Figure 3 , the principles of the slow sliding curve rate strategy and the fast sliding curve rate strategy included in the electronic device are schematically explained.
[0104] Combination Figure 3As shown, taking the use scenario of the electronic device as a large screen scenario (i.e., the screen of the folding screen electronic device is in an unfolded state) or the use scenario of the electronic device as a small screen scenario (i.e., the screen of the folding screen electronic device is in a folded state) as an example, that is, the use scenario of the electronic device is the same use scenario, when the electronic device uses a fast sliding curve rate strategy, the electronic device uses a relatively large initial speed gain corresponding to the fast sliding curve rate strategy, and a relatively small friction coefficient. When the user slides on the screen of the electronic device, because the electronic device uses a relatively small friction coefficient, the initial speed gain (i.e., speed V1) will be decelerated more slowly, so that the screen scrolling range of the electronic device is larger, that is, the page scrolling display time of the electronic device is longer, and the page of the electronic device slides over a longer distance. Since the screen scrolling range of the electronic device is larger, the electronic device scrolls and displays content faster, and the content that can be scrolled and displayed is more, that is, the area swept by the electronic device is larger. That is to say, when the electronic device uses a fast sliding curve rate strategy, the electronic device scrolls and displays faster, and the number of electronic devices scrolls and displays content is larger. Since the electronic device scans a large area, when encountering a scene with more displays (that is, the electronic device has more content to display), the electronic device will display white or black blocks at the corresponding positions, or display prompt information, such as the words "Loading".
[0105] When the electronic device uses a slow sliding curve rate strategy, the electronic device uses a relatively small initial speed gain corresponding to the slow sliding curve rate strategy, and a relatively large friction coefficient. When the user uses the same sliding parameters on the screen of the electronic device, such as using the same speed, sliding the same distance at the same angle, the same curve and the same force (that is, when the electronic device uses a fast sliding curve rate strategy and the electronic device uses a slow sliding curve rate strategy, the user's sliding rate is the same, the sliding angle is the same, the sliding curve is the same, the sliding force is the same, and the sliding distance is also the same), because the electronic device uses a relatively large friction coefficient, the initial speed gain (that is, the speed V2) will be decelerated faster, so that the screen scrolling range of the electronic device is smaller, that is, the page scrolling display time of the electronic device is shorter, and the page of the electronic device slides a shorter distance. Since the screen scrolling range of the electronic device is smaller, the content of the electronic device scrolling display is slower, and the content that can be scrolled is less, that is, the area swept by the electronic device is smaller. That is to say, when the electronic device uses a slow sliding curve rate strategy, the speed of the electronic device scrolling display speed is smaller, and the amount of content scrolled by the electronic device is smaller.
[0106] Combination Figure 3The principles of the slow sliding curve rate strategy and the fast sliding curve rate strategy included in the electronic device shown can be known, and the electronic device using the slow sliding curve rate strategy and the electronic device using the fast sliding curve rate strategy have different advantages and disadvantages. Therefore, the slow sliding curve rate strategy and the fast sliding curve rate strategy can be applied to different usage scenarios.
[0107] In conjunction with Table 3, the advantages and disadvantages of the slow sliding curve rate strategy and the fast sliding curve rate strategy, as well as the applicable usage scenarios are described in detail below.
[0108] Table 3
[0109]
[0110] Combined with Table 3, it can be seen that when the electronic device uses the fast sliding curve rate strategy, because the electronic device uses the relatively large initial speed gain corresponding to the fast sliding curve rate strategy, and the relatively small friction coefficient, therefore, when the user slides the same distance at the same speed on the screen of the electronic device, the electronic device sweeps a larger area and needs to display more content. When encountering a scene with more display, the electronic device will display a prompt that it is loading, or the electronic device will display a white block or a black block at the corresponding position. Therefore, the advantage of the fast sliding curve rate strategy is that it is applicable to scenes with less content display, such as text scenes (such as address book lists, etc.), which can make users feel better subjectively smooth. The disadvantages of the fast sliding curve rate strategy include: 1. The power consumption of electronic devices is relatively large; 2. For applications that mainly display pictures or videos (such as shopping, food, news applications, etc.), black blocks or white blocks are prone to appear, which can easily cause users to subjectively feel stuck; 3. It is easily affected by network quality, server bandwidth, etc., such as when encountering cellular or wireless fidelity (Wi-Fi) signals are poor, 4G networks, and other scenes with slow display cache, it is easy to display and cache slowly, the page stops scrolling, and the page is stuck, which makes users feel slow and the signal is poor; 5. The electronic device scrolls too fast, and it is not easy for users to focus on specific content, making users feel that it flashes by. Therefore, the scenarios adapted to the fast sliding curve rate strategy can be scenarios with less displayed content, or scenarios with less data volume of displayed content, such as scenarios with mainly text content.
[0111] Combined with Table 3, it can be seen that when the electronic device uses the slow sliding curve rate strategy, since the electronic device uses the relatively small initial speed gain corresponding to the slow sliding curve rate strategy, and the relatively large friction coefficient, when the user slides the same distance at the same speed on the screen of the electronic device, the area swept by the electronic device is small, and less content needs to be displayed. When the user slides at a faster speed, since the area swept by the electronic device is small, less content needs to be displayed, which will cause the user to feel that the electronic device responds slowly. Therefore, the advantages of the slow sliding curve rate strategy include: 1. The power consumption of the electronic device is low; 2. It is suitable for scenes with less content displayed, and white blocks or black blocks are not easy to appear; 3. It can make users see clearly and focus more easily. The disadvantages of the slow sliding curve rate strategy include: 1. The power consumption of the electronic device is large; 2. For applications whose main content is pictures or videos (such as shopping, food, news applications, etc.), black blocks or white blocks are prone to appear, which easily leads to users' subjective feeling of card; 3. In the use scenarios of electronic devices such as contacts, e-books, etc., where there is less content displayed, the scrolling speed is slow and the user's fluency is poor. Therefore, the slow sliding curve rate strategy may be adapted to a scenario with a large amount of displayed content, or a scenario with a large amount of data of the displayed content, such as a scenario dominated by video or picture content.
[0112] The display control method provided in the embodiment of the present application is described below.
[0113] The display control method provided in the embodiment of the present application can be applied to electronic devices. In some embodiments, the electronic device can be a mobile phone, a tablet computer, a handheld computer, a personal computer (PC), a cellular phone, a personal digital assistant (PDA), a wearable device, etc., which can include a fast sliding curve rate strategy and a slow sliding curve rate strategy. The embodiment of the present application does not limit the specific form of the electronic device.
[0114] In some examples, when the electronic device is a mobile phone, the mobile phone may be a folding screen mobile phone or a non-folding screen mobile phone. The specific form of the mobile phone is not limited in the embodiments of the present application.
[0115] It should be noted that when the electronic device is a mobile phone with a folding screen, the folding screen mobile phone can be divided into two categories. One is a folding screen that folds outward (referred to as the outward-folding folding screen), and the other is a folding screen that folds inward (referred to as the inward-folding folding screen). Among them, for the inward-folding folding screen, the folding screen can be folded into an outer screen and an inner screen as an example. When the inward-folding folding screen is in a folded state, only the outer screen displays content. When the inward-folding folding screen is in a fully expanded state, the inner screen displays the content and the outer screen becomes a black screen. It can be understood that the folding screen can be folded up and down or left and right, and the embodiment of the present application does not limit this. The embodiment of the present application is explained by taking the inward folding as an example.
[0116] For example, taking the electronic device as a mobile phone, Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.
[0117] like Figure 4 As shown, the electronic device may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 460, an audio module 470, a speaker 470A, a receiver 470B, a microphone 470C, an earphone interface 470D, a sensor module 480, a button 490, a motor 491, an indicator 492, a camera 493, a display screen 494, and a subscriber identification module (SIM) card interface 495, etc. Among them, the sensor module 480 may include a pressure sensor 380A, a gyroscope sensor 480B, an air pressure sensor 480C, a magnetic sensor 480D, an acceleration sensor 480E, a distance sensor 480F, a proximity light sensor 480G, a fingerprint sensor 480H, a temperature sensor 480J, a touch sensor 480K, an ambient light sensor 480L, a bone conduction sensor 480M, etc.
[0118] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0119] Of course, it is understandable that the above Figure 4The figure is only an exemplary description when the electronic device is in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (such as a smart watch, etc.), the structure of the electronic device may include Figure 4 The structure shown in the figure is less than Figure 4 More structures are shown in the figure, which are not limited here.
[0120] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure.
[0121] It should be noted that the usage scenarios of electronic devices may include multiple scenarios, such as large-screen scenarios (i.e., the screen of the folding-screen electronic device is in an unfolded state), small-screen scenarios (i.e., the screen of the folding-screen electronic device is in a folded state), power saving mode scenarios, non-power saving mode scenarios, scenarios with little displayed content (such as scenarios where the displayed content is text-based content), and scenarios with a lot of displayed content (such as scenarios where the displayed content is pictures or video-based content).
[0122] In the embodiments of the present application, the specific types of usage scenarios of the electronic device are not limited. In the embodiments of the present application, the usage scenarios of the electronic device include large screen scenario, small screen scenario, power saving mode scenario, non-power saving mode scenario, scenario with little display content, and scenario with much display content.
[0123] It is understandable that the use scenarios of electronic devices may also include other scenarios. For example, a scenario with good network speed (i.e., a scenario where the network speed of the electronic device is greater than or equal to the network speed threshold), a scenario with poor network speed (i.e., a scenario where the network speed of the electronic device is less than the network speed threshold), a scenario with less battery remaining percentage (i.e., a scenario where the percentage of the remaining battery power of the electronic device is less than the percentage threshold), a scenario with less battery remaining percentage (i.e., a scenario where the percentage of the remaining battery power of the electronic device is greater than or equal to the percentage threshold), a geo-fence scenario (i.e., a scenario where the electronic device is within the range of a preset geo-fence), a non-geo-fence scenario (i.e., a scenario where the electronic device is not within the range of a preset geo-fence), a low-battery continuation scenario (i.e., a scenario where the battery usage time needs to be extended when the remaining battery power of the electronic device is less than the power threshold), and a scenario where the battery usage time needs to be extended when the remaining battery power of the electronic device is greater than or equal to the power threshold).
[0124] When the electronic device is in use, the use scenario of the electronic device can be determined, so that different sliding curve rate strategies are used according to the use scenario of the electronic device. Since the use scenario of the electronic device may include multiple scenarios, when determining the use scenario of the electronic device, the electronic device can determine which scenario the use scenario of the electronic device is according to the priority of the scenario (i.e., the importance of the scenario) and in the order of priority.
[0125] In some examples, the priority of the scene can be preset. For example, the priority of the large screen scene can be preset to be higher than the priority of the power saving mode scene, and the priority of the power saving mode scene can be higher than the priority of the scene with less displayed content. That is, when the electronic device determines the usage scene, the electronic device first determines whether it is a large screen scene, then determines whether it is a power saving mode scene, and finally determines whether it is a scene with less displayed content.
[0126] In other examples, the priority of the scene can also be determined based on the usage information of different scenes used by the user. Such as power consumption information, usage times information, usage duration information, and usage frequency information of different scenes. For example, when the large-screen scene is used more times and the power-saving mode scene is used less times, it can be determined that the priority of the large-screen scene is higher than the priority of the power-saving mode scene. The method for determining the priority of the scene in the embodiments of the present application is not limited.
[0127] In the following, the electronic device is taken as a folding screen electronic device (also referred to as a foldable electronic device), the sliding curve rate strategy of the electronic device includes a slow sliding curve rate strategy and a fast sliding curve rate strategy, the usage scenarios of the electronic device include a large screen scene, a small screen scene, a power saving mode scene, a non-power saving mode scene, a scene with little display content, and a scene with much display content, and the priority of the large screen scene is higher than the priority of the power saving mode scene, and the priority of the power saving mode scene is higher than the priority of the scene with less display content. As an example, the display control method provided in an embodiment of the present application is described in detail.
[0128] Figure 5 A flow chart of a display control method provided in an embodiment of the present application. Figure 5 As shown, the display control method may include the following S501-S522.
[0129] S501. The electronic device displays a first interface, where the first interface is an interface corresponding to a first application.
[0130] In the embodiment of the present application, the electronic device may be a folding screen electronic device (also referred to as a foldable electronic device) or a non-folding screen electronic device. In the embodiment of the present application, the electronic device is a folding screen electronic device as an example for schematic illustration. When the electronic device is a foldable electronic device, the foldable electronic device may include a first screen body and a second screen body arranged relatively to each other, and the display area of the second screen body is larger than the display area of the first screen body. When the foldable electronic device is in a folded state, the foldable electronic device can control the first screen body to display the first page, that is, when the foldable electronic device is in a folded state, the first screen body can also be referred to as a small screen. When the foldable electronic device is in an unfolded state, the foldable electronic device can control the second screen body to display the first page, and the second screen body can also be referred to as a large screen.
[0131] The sliding curve rate strategy of the electronic device (which may also be referred to as the sliding processing strategy in the embodiment of the present application) may include a slow sliding curve rate strategy (which may also be referred to as the second sliding processing strategy in the embodiment of the present application) and a fast sliding curve rate strategy (which may also be referred to as the first sliding processing strategy in the embodiment of the present application). That is, the slow sliding curve rate strategy and the fast sliding curve rate strategy may be set in advance in the electronic device.
[0132] The initial speed gain corresponding to the fast sliding curve rate strategy is the first initial speed gain (which may also be referred to as the first initial speed in the embodiment of the present application), and the friction coefficient corresponding to the fast sliding curve rate strategy is the first friction coefficient. The initial speed gain corresponding to the slow sliding curve rate strategy is the second initial speed gain (which may also be referred to as the second initial speed in the embodiment of the present application), and the friction coefficient corresponding to the slow sliding curve rate strategy is the second friction coefficient. The first initial speed gain is greater than the second initial speed gain, and the first friction coefficient is less than the second friction coefficient. For example, the first initial speed gain may be 0.8, the first friction coefficient may be 0.6, the second initial speed gain may be 0.6, and the first friction coefficient may be 0.7.
[0133] For example, the code for presetting the slow sliding curve rate strategy and the fast sliding curve rate strategy in the electronic device may be as follows.
[0134] The code for the slow sliding curve rate strategy can be:
[0135] <! --high treg slrde model-->
[0136] <param name="high freq_smart slide model config">
[0137] <slide_param name="switch”value="1" / >
[0138] <slideparam name="low_velocity_friction_gain”value="0.7" / >
[0139] <slide_param name="low_velocity_init_velocity_gain”value="0.6" / >
[0140] <slideparam name="medium_velocity_level”value="5000.0" / >
[0141] <slide_param name="medium_velocity_friction_gain"value="0.7" / >
[0142] <slide_param name="medium_velocity_init_velocity_gain"value="0.6" / >
[0143] <slideparam name-"high_velocity_level”value"15000.0" / >
[0144] <slide_param name="high_velocity_frictiongain”value="0.7" / >
[0145] <slide_param name="high_velocity_init_velocity_gain"value="0.6" / >
[0146]
[0147] Combined with the code of the above slow sliding curve rate strategy, it can be known that when the electronic device uses the slow sliding curve rate strategy, when the user's sliding speed is fast, the second initial velocity gain (i.e., high_velocity_init_velocity_gain) is 0.6, and the second friction coefficient (i.e., high_velocity_friction_gain) is 0.7. When the user's sliding speed is medium, the second initial velocity gain (i.e., medium_velocity_init_velocity_gain) is 0.6, and the second friction coefficient (i.e., medium_velocity_friction_gain) is 0.7. When the user's sliding speed is fast, the second initial velocity gain (i.e., low_velocity_init_velocity_gain) is 0.6, and the second friction coefficient (i.e., low_velocity_friction_gain) is 0.7. That is, no matter how fast or slow the user slides on the screen of the electronic device, when the electronic device uses the slow sliding curve rate strategy, the corresponding initial velocity gain and friction coefficient are the same.
[0148] The code for the fast sliding curve rate strategy can be:
[0149] <! --high treg slrde model-->
[0150] <param name="highfreq_smartslidemodelconfig">
[0151] <slide_param name="switch”value="1" / >
[0152] <slideparam name="low_velocity_friction_gain”value="0.6" / >
[0153] <slide_param name="low_velocity_init_velocity_gain”value="0.8" / >
[0154] <slideparam name="medium_velocity_level”value="5000.0" / >
[0155] <slide_param name="medium_velocity_friction_gain"value="0.6" / >
[0156] <slide_param name="medium_velocity_init_velocity_gain"value="0.8" / >
[0157] <slideparam name-"high_velocity_level”value"15000.0" / >
[0158] <slide_param name="high_velocity_frictiongain”value="0.6" / >
[0159] <slide_param name="high_velocity_init_velocity_gain"value="0.8" / >
[0160]
[0161] Combined with the code of the above-mentioned fast sliding curve rate strategy, it can be known that when the electronic device uses the fast sliding curve rate strategy, when the user's sliding speed is fast, the first initial velocity gain (i.e., high_velocity_init_velocity_gain) is 0.8, and the first friction coefficient (i.e., high_velocity_friction_gain) is 0.6. When the user's sliding speed is medium, the first initial velocity gain (i.e., medium_velocity_init_velocity_gain) is 0.8, and the first friction coefficient (i.e., medium_velocity_friction_gain) is 0.6. When the user's sliding speed is fast, the first initial velocity gain (i.e., low_velocity_init_velocity_gain) is 0.8, and the first friction coefficient (i.e., low_velocity_friction_gain) is 0.6. That is, no matter how fast or slow the user slides on the screen of the electronic device, when the electronic device uses the fast sliding curve rate strategy, the corresponding initial velocity gain and friction coefficient are the same.
[0162] It should be noted that the sliding curve rate strategy of the electronic device may also include more than two sliding curve rate strategies. The initial speed gain and friction coefficient corresponding to different sliding curve rate strategies may be different, that is, different sliding curve strategies may correspond to different usage scenarios of the electronic device. For example, the sliding curve rate strategy of the electronic device may include three sliding curve rate strategies, namely, a slow sliding curve rate strategy, a medium sliding curve rate strategy, and a fast sliding curve rate strategy. The initial speed gain corresponding to the medium sliding curve strategy may be greater than the initial speed gain corresponding to the slow sliding curve rate strategy, and the initial speed gain corresponding to the medium sliding curve strategy is less than the initial speed gain corresponding to the fast sliding curve rate strategy. The friction coefficient corresponding to the medium sliding curve strategy may be less than the friction coefficient corresponding to the slow sliding curve rate strategy, and the friction coefficient corresponding to the medium sliding curve strategy is greater than the friction coefficient corresponding to the fast sliding curve rate strategy. The slow sliding curve rate strategy may correspond to a scene with a lot of displayed content (such as a scene where the displayed content is a video), the medium sliding curve strategy may correspond to a scene with a lot of displayed content (such as a scene where the displayed content is a picture), and the fast sliding curve rate strategy may correspond to a scene with less displayed content (such as a scene where the displayed content is text).
[0163] In the embodiment of the present application, the specific number of sliding curve rate strategies of the electronic device is not limited. In the embodiment of the present application, the sliding curve rate strategy of the electronic device includes two sliding curve rate strategies, namely a slow sliding curve rate strategy and a fast sliding curve rate strategy.
[0164] After the electronic device pre-sets the slow sliding curve rate strategy and the fast sliding curve rate strategy, the user can open the first application included in the electronic device, so that the electronic device can display the first interface. The first interface can be the interface of the first application included in the electronic device.
[0165] In some examples, the first application may be a text application, that is, the content displayed by the first application is mainly text content, that is, the first application may be an application that displays less content or displays a smaller amount of data. For example, the text application may be an address book application, a communication application, an e-book application, etc. The first application may be a third-party application or an application in a system of an electronic device, which is not limited in the embodiments of the present application.
[0166] In other examples, the first application may be a picture application or a video application, that is, the content displayed by the first application is mainly picture or video content, that is, the first application may be an application that displays more content or displays a large amount of data. For example, the picture application or the video application may be a shopping application, a food application, or a news application.
[0167] It should be noted that the specific type of the first application is not limited in the embodiments of the present application.
[0168] S502: The electronic device determines whether it is a large-screen scene.
[0169] After the electronic device receives the sliding operation of the user, in response, the electronic device can determine whether it is a large-screen scene, that is, the electronic device can determine whether the folding screen of the electronic device is in an unfolded state. When the folding screen of the electronic device is in an unfolded state, it can be determined that the use scene of the electronic device is a large-screen scene. When the folding screen of the electronic device is in a folded state, it can be determined that the use scene of the electronic device is a small-screen scene.
[0170] In some examples, the electronic device determines whether it is a large-screen scene, which may include: the electronic device determines whether the use scenario of the electronic device is a large-screen scene through a sensor (such as an unfolding sensor). That is, the electronic device can obtain data from the corresponding sensor, and thus determine whether the electronic device is a large-screen scene based on the sensor data. When the sensor data is data corresponding to a large-screen scene, it can be determined that the use scenario of the electronic device is a large-screen scene. When the sensor data is data corresponding to a small-screen scene, it can be determined that the use scenario of the electronic device is a small-screen scene.
[0171] In other examples, the electronic device determines whether it is a large-screen scene, which may include: the electronic device determines whether the use scenario of the electronic device is a large-screen scene through the main interface resolution of the electronic device (such as the resolution of the current display interface). That is, the electronic device can obtain the main interface resolution of the electronic device, and thus determine whether the electronic device is a large-screen scene based on the main interface resolution. When the main interface resolution is the resolution corresponding to the large-screen scene, it can be determined that the use scenario of the electronic device is a large-screen scene. When the main interface resolution is the resolution corresponding to the small-screen scene, it can be determined that the use scenario of the electronic device is a small-screen scene.
[0172] In other examples, the electronic device determines whether it is a large-screen scene, which may include: the electronic device determines whether the use scenario of the electronic device is a large-screen scene through the size of the L (Left)-R (Right) four-corner coordinates of the layer. That is, the electronic device can obtain the size of the LR four-corner coordinates of the layer of the electronic device, and thus determine whether the electronic device is a large-screen scene according to the size of the LR four-corner coordinates of the layer. When the size of the LR four-corner coordinates of the layer is the size of the LR four-corner coordinates corresponding to the large-screen scene, it can be determined that the use scenario of the electronic device is a large-screen scene. When the size of the LR four-corner coordinates of the layer is the size of the LR four-corner coordinates corresponding to the small-screen scene, it can be determined that the use scenario of the electronic device is a small-screen scene. The LR four-corner coordinates of the layer generally refer to the left, right, top, and bottom four boundary coordinates of the layer, and the LR four-corner coordinates can represent the position and size of the layer on the screen.
[0173] It should be noted that the specific method for determining whether the electronic device is in a large-screen scene is not limited in the embodiments of the present application, and it is sufficient to be able to determine whether the electronic device is in a large-screen scene.
[0174] When it is determined that the electronic device is not in a large-screen scenario (i.e., the electronic device is in a small-screen scenario), the sliding curve rate strategy of the electronic device can be determined to be a fast sliding curve rate strategy, i.e., the electronic device can continue to execute the following S503-S505. When it is determined that the electronic device is in a large-screen scenario, the sliding curve rate strategy of the electronic device can be determined to be a slow sliding curve rate strategy, i.e., the electronic device can continue to execute the following S506-S508.
[0175] S503: The electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0176] When the electronic device determines that it is not a large-screen scene (i.e., a small-screen scene), that is, the folding screen of the electronic device is in a folded state, the electronic device can determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, determine the target sliding processing strategy as the first sliding processing strategy.
[0177] S504: The electronic device receives a sliding operation by the user.
[0178] After the electronic device determines that the sliding curve rate strategy is the fast sliding curve rate strategy, the electronic device can receive a sliding operation of the user (which may also be referred to as a first sliding operation in the embodiment of the present application). That is, when the user needs to view content that is not displayed in the first interface (i.e., the content to be displayed of the first application), the user can perform a sliding operation in the first interface, so that the electronic device can scroll and display the content to be displayed.
[0179] It should be noted that the electronic device determines whether the electronic device is a large-screen scene, which may be after the electronic device receives the user's sliding operation, the electronic device determines whether the electronic device is a large-screen scene, thereby determining different sliding processing strategies according to whether the electronic device is a large-screen scene. The electronic device may also first determine whether the electronic device is a large-screen scene, thereby determining the corresponding sliding curve rate strategy. Afterwards, when the electronic device receives the user's sliding operation, the electronic device may determine different sliding processing strategies according to whether the electronic device is a large-screen scene or a small-screen scene. In the embodiment of the present application, the order between the electronic device determining whether the electronic device is a large-screen scene and the electronic device receiving the user's sliding operation is not limited. In the embodiment of the present application, the electronic device receives the user's sliding operation after the electronic device determines whether the electronic device is a large-screen scene (that is, determines the corresponding sliding curve rate strategy) as an example for schematic explanation.
[0180] S505: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0181] When the electronic device receives a sliding operation from the user, in response, the electronic device may scroll and display the content to be displayed based on the first initial velocity gain and the first friction coefficient. The content to be displayed may include the content newly loaded on the first interface in response to the sliding operation. That is, when the electronic device scrolls and displays the content to be displayed based on the first initial velocity gain and the first friction coefficient, the interface of the electronic device may include the content newly loaded in response to the sliding operation, and the interface of the electronic device may also include part of the content originally loaded in the first interface.
[0182] When the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the fast sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the first initial speed gain and the first friction coefficient corresponding to the fast sliding curve rate strategy.
[0183] Since the first initial velocity gain is relatively large and the first friction coefficient is relatively small, when the electronic device scrolls to display the content not displayed in the first interface based on the first initial velocity gain and the first friction coefficient corresponding to the fast sliding curve rate strategy, the electronic device can scroll to display more content to be displayed, which can make the user feel better subjectively about smoothness.
[0184] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device can continue to determine whether it is a power saving mode scene, that is, the electronic device can continue to execute the following S509. After the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device can also continue to determine whether it is a large-screen scene, that is, the electronic device can continue to execute the above S502. When the electronic device determines that it is a large-screen scene, the electronic device can determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, the electronic device can continue to execute the following S506-S508. In the embodiment of the present application, the example of the electronic device continuing to determine whether it is a power saving mode scene after the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient is used for schematic explanation.
[0185] For example, taking a foldable screen mobile phone as an example, after a user opens a shopping application on the foldable screen mobile phone, Figure 6 As shown in (a), the foldable screen mobile phone can display the interface corresponding to the shopping application (i.e., the first interface), and the first interface may include relevant information of XX mobile phone model 1, relevant information of XX mobile phone model 2, relevant information of XX mobile phone model 3, and relevant information of XX mobile phone model 4. When the electronic device receives a sliding operation of the user on the first interface, such as sliding upward, in response, the mobile phone can determine whether the usage scenario of the mobile phone is a large-screen scenario, that is, the mobile phone can determine whether the folding screen of the mobile phone is in an unfolded state. When the usage scenario of the mobile phone is a small-screen scenario (i.e., the folding screen of the mobile phone is in a folded state), the mobile phone can determine that the sliding curve rate strategy is a fast sliding curve rate strategy, and then the mobile phone can scroll and display the content to be displayed based on the first initial speed gain and the first friction coefficient corresponding to the fast sliding curve rate strategy. Since the first initial speed gain corresponding to the fast sliding curve rate strategy is large, and the first friction coefficient is small, the speed at which the mobile phone scrolls to display the content to be displayed is faster. And as Figure 6 As shown in (b), the mobile phone can display the content to be displayed, and the content to be displayed may include relevant information of XX mobile phone model 5, relevant information of XX mobile phone model 6, relevant information of XX mobile phone model 7, relevant information of XX mobile phone model 8, and relevant information of XX mobile phone model 9. Since the mobile phone uses a fast sliding curve rate strategy, when the mobile phone scrolls to display the content to be displayed, the length of time the mobile phone scrolls to display is shorter than when the mobile phone is a small screen scenario and the mobile phone uses a slow sliding processing strategy. And the distance that the page of the mobile phone slides is shorter than when the mobile phone is a small screen scenario and the mobile phone uses a fast sliding processing strategy.
[0186] S506: The electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0187] When the electronic device determines that it is a large-screen scenario, that is, the folding screen of the electronic device is in the unfolded state, the electronic device can determine the sliding curve rate strategy as a slow sliding curve rate strategy, that is, determine the target sliding processing strategy as the second sliding processing strategy.
[0188] S507: The electronic device receives a sliding operation by the user.
[0189] After the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device may receive a sliding operation of the user.
[0190] S508: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0191] When the electronic device receives a sliding operation from the user, in response, the electronic device can scroll and display the content to be displayed based on the second initial speed gain and the second friction coefficient. That is, when the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the slow sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the second initial speed gain and the second friction coefficient corresponding to the slow sliding curve rate strategy.
[0192] Since the second initial velocity gain is relatively small and the first friction coefficient is relatively large, when the electronic device scrolls to display the content not displayed in the first interface based on the second initial velocity gain and the second friction coefficient corresponding to the slow sliding curve rate strategy, the electronic device can scroll to display less content to be displayed, and no white or black blocks appear in the display interface of the electronic device, affecting the user's experience. And since the electronic device scrolls to display less content to be displayed, the user can see clearly and focus more easily, and the power consumption of the electronic device is lower.
[0193] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a power saving mode scene, that is, the electronic device may continue to execute the following S509. After the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a large-screen scene, that is, the electronic device may continue to execute the above S502. When the electronic device determines that it is a small-screen scene, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, the electronic device may continue to execute the above S503-S505.
[0194] For example, taking the foldable screen mobile phone as an example, after the user opens the shopping application on the foldable screen mobile phone, combined with Figure 6 As shown in (c), the foldable screen mobile phone can display the interface corresponding to the shopping application (i.e., the first interface), and the first interface may include relevant information of XX mobile phone model 1, relevant information of XX mobile phone model 2, relevant information of XX mobile phone model 3, relevant information of XX mobile phone model 4, relevant information of XX mobile phone model 5, and relevant information of XX mobile phone model 6. When the electronic device receives a sliding operation of the user on the first interface, such as sliding upward, in response, the mobile phone can determine whether the usage scenario of the mobile phone is a large-screen scenario, that is, the mobile phone can determine whether the folding screen of the mobile phone is in an unfolded state. When the usage scenario of the mobile phone is a large-screen scenario (that is, the folding screen of the mobile phone is in an unfolded state), the mobile phone can determine that the sliding curve rate strategy is a slow sliding curve rate strategy, and then the mobile phone can scroll to display the content to be displayed based on the second initial speed gain and the second friction coefficient corresponding to the slow sliding curve rate strategy. Since the second initial speed gain corresponding to the slow sliding curve rate strategy is small, and the second friction coefficient is large, the speed at which the mobile phone scrolls to display the content to be displayed is slow. And, as Figure 6 As shown in (d), the mobile phone can display the content to be displayed, and the content to be displayed may include relevant information of XX mobile phone model 1, relevant information of XX mobile phone model 2, relevant information of XX mobile phone model 3, relevant information of XX mobile phone model 4, relevant information of XX mobile phone model 5, and relevant information of XX mobile phone model 6. The content to be displayed may also include scrolling display content, i.e., relevant information of XX mobile phone model 7, relevant information of XX mobile phone model 8, and relevant information of XX mobile phone model 9. Since the mobile phone uses a slow sliding curve rate strategy, when the mobile phone scrolls to display the content to be displayed, the length of time the mobile phone scrolls to display is longer than when the mobile phone is a large-screen scene and the mobile phone uses a slow sliding processing strategy. And the distance that the page of the mobile phone slides over is longer than when the mobile phone is a large-screen scene and the mobile phone uses a slow sliding processing strategy.
[0195] S509: The electronic device determines whether it is a power saving mode scenario.
[0196] When the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient corresponding to the fast sliding curve rate strategy. Afterwards, the electronic device can continue to determine whether it is a power saving mode scenario, so that when the electronic device is in the power saving mode scenario, the fast sliding curve rate strategy can be adjusted to a slow sliding curve rate strategy, thereby reducing the power consumption of the electronic device and achieving a power saving effect.
[0197] In some examples, the electronic device determines whether it is a power saving mode scenario, which may include: the electronic device determines whether the use scenario of the electronic device is a power saving mode scenario through the state of the power saving mode switch. That is, the electronic device can obtain the state of the power saving mode switch, and thus determine whether the electronic device is a power saving mode scenario according to the state of the power saving mode switch. When the state of the power saving mode switch is on, it can be determined that the use scenario of the electronic device is a power saving mode scenario. When the state of the power saving mode switch is off, it can be determined that the use scenario of the electronic device is a non-power saving mode (i.e., a non-power saving mode scenario, which may also be referred to as a heating mode scenario).
[0198] It should be noted that the specific method for determining whether the electronic device is in the power saving mode scenario is not limited in the embodiments of the present application, and it is sufficient to be able to determine whether the electronic device is in the power saving mode scenario.
[0199] When it is determined that the electronic device is in a power saving mode scenario, the sliding curve rate strategy of the electronic device can be determined to be a slow sliding curve rate strategy, that is, the electronic device can continue to execute the following S510-S512. When it is determined that the electronic device is not in a power saving mode scenario (that is, a non-power saving mode scenario, which can also be called a heating mode scenario), the sliding curve rate strategy of the electronic device can be determined to be a fast sliding curve rate strategy, that is, the electronic device can continue to execute the following S513-S515.
[0200] S510: The electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0201] When the electronic device determines that the scenario is the power saving mode, the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, adjust the target sliding processing strategy to the second sliding processing strategy.
[0202] S511. The electronic device receives a sliding operation by the user.
[0203] After the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device may receive a sliding operation of the user (which may also be referred to as a second sliding operation in the embodiment of the present application). The sliding parameters of the second sliding operation of the user are the same as those of the first sliding operation of the user, that is, when the user performs the second sliding operation, the sliding distance, sliding curve, sliding time, sliding force, etc. are the same as those of the first sliding operation.
[0204] It should be noted that the electronic device determines whether the electronic device is in a power saving mode scenario, which may be after the electronic device receives the user's sliding operation, the electronic device determines whether the electronic device is in a power saving mode scenario, thereby determining different sliding processing strategies according to whether the electronic device is in a power saving mode scenario. The electronic device may also first determine whether the electronic device is in a power saving mode scenario, thereby determining the corresponding sliding curve rate strategy. Afterwards, when the electronic device receives the user's sliding operation, the electronic device may determine different sliding processing strategies according to whether the electronic device is in a power saving mode scenario. In the embodiment of the present application, the order between the electronic device determining whether the electronic device is in a power saving mode scenario and the electronic device receiving the user's sliding operation is not limited. In the embodiment of the present application, the electronic device receives the user's sliding operation after the electronic device determines whether the electronic device is in a power saving mode scenario (i.e., determines the corresponding sliding curve rate strategy) as an example for schematic explanation.
[0205] S512: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0206] When the electronic device receives a sliding operation from the user, in response, the electronic device can scroll and display the content to be displayed based on the second initial speed gain and the second friction coefficient, that is, the electronic device can display a third interface, and the third interface can include the content to be displayed corresponding to the second sliding operation. That is, when the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the slow sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the second initial speed gain and the second friction coefficient corresponding to the slow sliding curve rate strategy.
[0207] Since the second initial velocity gain is relatively small and the first friction coefficient is relatively large, when the electronic device scrolls to display the content not displayed in the first interface based on the second initial velocity gain and the second friction coefficient corresponding to the slow sliding curve rate strategy, the electronic device can scroll to display less content to be displayed, thereby reducing the power consumption of the electronic device and achieving a power saving effect.
[0208] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the following S516. After the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a large-screen scene, that is, the electronic device may continue to execute the above S502. When the electronic device determines that it is a small-screen scene, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, the electronic device may continue to execute the following S503-S505. After the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a power saving mode scene, that is, the electronic device may continue to execute the above S509. When the electronic device determines that it is a non-power saving mode scene, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, the electronic device may continue to execute the following S513-S515.
[0209] In the embodiment of the present application, after the electronic device scrolls and displays the content to be displayed based on the second initial velocity gain and the second friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the following S516 as an example for schematic illustration.
[0210] S513: The electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0211] When the electronic device determines that the scenario is not the power saving mode, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy (ie, a first sliding processing strategy).
[0212] S514: The electronic device receives a sliding operation by the user.
[0213] After the electronic device determines that the sliding curve rate strategy is the fast sliding curve rate strategy, the electronic device may receive a sliding operation of the user.
[0214] S515: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0215] When the electronic device receives a sliding operation from the user, in response, the electronic device can scroll and display the content to be displayed based on the first initial speed gain and the first friction coefficient. That is, when the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the fast sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the first initial speed gain and the first friction coefficient corresponding to the fast sliding curve rate strategy.
[0216] Since the first initial velocity gain is relatively large and the first friction coefficient is relatively small, when the electronic device scrolls to display the content not displayed in the first interface based on the first initial velocity gain and the first friction coefficient corresponding to the fast sliding curve rate strategy, the electronic device can scroll to display more content to be displayed, which can make the user feel better subjectively about smoothness.
[0217] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the following S516. After the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether it is a large screen scene, that is, the electronic device may continue to execute the above S502. When the electronic device determines that it is a large screen scene, the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, the electronic device may continue to execute the above S506-S508. After the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether it is a power saving mode scene, that is, the electronic device may continue to execute the above S509. When the electronic device determines that it is a power saving mode scene, the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, the electronic device may continue to execute the following S510-S512.
[0218] In the embodiment of the present application, after the electronic device scrolls and displays the content to be displayed based on the second initial velocity gain and the second friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the following S516 as an example for schematic illustration.
[0219] S516: The electronic device determines whether the first application is a scene with little display content.
[0220] When the electronic device determines the power saving mode scenario, the electronic device scrolls and displays the content to be displayed based on the second initial speed gain corresponding to the slow sliding curve rate strategy and the first friction coefficient. Afterwards, the electronic device can continue to determine whether the first application is a scenario with little display content, so that when the first application is not a scenario with little display content, the slow sliding curve rate strategy can be adjusted to a fast sliding curve rate strategy, so that the electronic device can scroll and display more content to be displayed, which can make the user feel better subjectively smooth.
[0221] In the scenario of displaying little content (which may also be referred to as a text scenario in the embodiment of the present application), that is, a scenario in which the data volume of the displayed content is less than the data volume threshold, such as a scenario in which the displayed content is text content, the first application may be determined to be a scenario in which the displayed content is little. In the scenario of displaying much content (which may also be referred to as a non-text scenario in the embodiment of the present application), that is, a scenario in which the data volume of the displayed content is greater than or equal to the data volume threshold, such as a scenario in which the displayed content is picture content or video content, the first application may be determined to be a scenario in which the displayed content is much. The specific value of the data volume threshold may be set according to actual conditions, and is not limited in the embodiment of the present application.
[0222] It should be noted that the data volume of the displayed content refers to the number or size of the data of the content to be displayed by the electronic device, that is, the data volume of the displayed content can represent the total amount of data of the displayed content or the size of the resources occupied in the electronic device. The unit of the data volume of the displayed content can be bits, bytes or other larger units. When the displayed content is text content, the data volume of the displayed content is the number or size of the text content, that is, the size of the resources occupied by the text content in the electronic device. When the displayed content is picture content or video content, the data volume of the displayed content is the number or size of the picture content or video content, that is, the size of the resources occupied by the picture content or video content in the electronic device.
[0223] In some examples, the electronic device determines whether the first application is a scene with less display content, and the electronic device can determine whether the first application is a scene with less display content based on an identifier of the first application (such as the package name of the first application, etc.) and a whitelist of less display content. The whitelist of less display content may include an identifier of at least one application with less display content. The application with less display content may be an address book application, a communication application, an e-book application, etc.
[0224] That is to say, the electronic device can first obtain the identifier of the first application, such as obtaining the package name of the foreground application (i.e., the first application) through the activity manager service (AMS) in the application framework layer (framework) of the electronic device. After obtaining the identifier of the first application, it can be determined whether the identifier of the first application is included in the whitelist of displaying less content. In the case where the identifier of the first application is included in the whitelist of displaying less content, it can be determined that the first application is a scene of displaying less content. In the case where the identifier of the first application is not included in the whitelist of displaying less content, it can be determined that the first application is not a scene of displaying less content, that is, the first application is a scene of displaying more content.
[0225] It should be noted that the whitelist of displayed content with less content can be a whitelist of displayed content with less content pre-stored by the electronic device. During the use of the electronic device, the electronic device can also update the identifier of the whitelist application in the whitelist of displayed content with less content. For example, when the electronic device receives the user's operation to add the application to the whitelist of displayed content with less content, in response, the electronic device can add the identifier of the application to the whitelist of displayed content with less content.
[0226] In other examples, the electronic device determines whether the first application is in a scene with little display content, and can also obtain the activity (i.e., activity) corresponding to the first application through the registration system interface for the electronic device. In the case where the activity corresponding to the first application is that the display content is small, it can be determined that the first application is in a scene with little display content. In the case of the activity corresponding to the first application, it can be determined that the first application is not in a scene with little display content, that is, the first application is in a scene with much display content.
[0227] In other examples, the electronic device determines whether the first application is a scene with little display content, and the electronic device can also identify whether the first application is a scene with little display content through a video decoder in the electronic device. The video decoder can be used to decode the compressed video data into a playable or processable original video signal, that is, to restore the compressed and encoded video data so that it can be played, edited or transmitted on the electronic device.
[0228] That is, the electronic device can determine whether the video decoder in the electronic device needs to decode the compressed video data into a playable or processable original video signal. In the case where it is determined that the video decoder in the electronic device does not need to decode the compressed video data into a playable or processable original video signal, it can be determined that the first application is a scene with little display content. In the case where it is determined that the video decoder in the electronic device needs to decode the compressed video data into a playable or processable original video signal, it can be determined that the first application is not a scene with little display content, that is, the first application is a scene with much display content.
[0229] In other examples, the electronic device determines whether the first application is in a scenario with little display content, and can also determine whether the first application is in a scenario with little display content based on the current load of the first application. The load of an application refers to the workload or task volume undertaken by the application when it is running, and generally indicates the degree of demand for computing resources, storage resources, network bandwidth, etc. by the application.
[0230] That is to say, the electronic device can first obtain the current load of the first application, and determine whether the current load of the first application is less than the load threshold. When the current load of the first application is less (that is, the current load of the first application is less than the load threshold), it can be determined that the first application is a scene with less display content. When the current load of the first application is more (that is, the current load of the first application is greater than or equal to the load threshold), it can be determined that the first application is not a scene with less display content, that is, the first application is a scene with more display content. The load threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application.
[0231] In other examples, the electronic device determines whether the first application is in a less-displayed content scenario, and the electronic device may also determine whether the first application is in a less-displayed content scenario based on the real-time traffic of the electronic device. The real-time traffic of the electronic device refers to the network data transmission rate currently being used by the electronic device, which may indicate the speed at which the electronic device sends and receives data through the network within a specific time period.
[0232] That is to say, the electronic device can first obtain the real-time traffic of the electronic device, and determine whether the real-time traffic of the electronic device is less than the traffic threshold. When the real-time traffic of the electronic device is less than the traffic threshold, it can be determined that the first application is a scene with little display content. When the real-time traffic of the electronic device is greater than or equal to the traffic threshold, it can be determined that the first application is not a scene with little display content, that is, the first application is a scene with much display content. The traffic threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application.
[0233] In other examples, the electronic device determines whether the first application is in a scene with little display content, and the electronic device may also determine whether the first application is in a scene with little display content according to the current page frame rate of the electronic device. The current page frame rate is the number of times the electronic device displays an image per second.
[0234] That is to say, the electronic device can first obtain the current page frame rate of the electronic device, and determine whether the current page frame rate of the electronic device is less than the frame rate threshold. When the current page frame rate of the electronic device is less than the frame rate threshold, it can be determined that the first application is displaying a scene with little content. When the current page frame rate of the electronic device is greater than or equal to the frame rate threshold, it can be determined that the first application is not displaying a scene with little content, that is, the first application is displaying a scene with a lot of content. The frame rate threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application.
[0235] In other examples, the electronic device determines whether the first application is a scene with little display content, and the electronic device may also determine whether the first application is a scene with little display content based on a view (ie, View) tree structure node of the electronic device.
[0236] A View tree structure node refers to a node of an element in the application interface, representing a visual component or element, which can be the basis for building user interfaces such as text, images, buttons, and input boxes. The View tree structure is a way to organize and represent the interface in a tree structure. Each node represents a visual element and contains relevant information such as its attributes, style, and position. The nodes are connected to each other through parent-child relationships to form a hierarchical structure. In other words, through the View tree structure nodes, it can be determined whether text, images, or videos are displayed in the application interface.
[0237] That is to say, the electronic device can first traverse the View tree structure nodes of the electronic device to determine whether text, images, or videos are displayed in the application interface. When it is determined that text is displayed in the application interface, it can be determined that the first application is a scene with little display content. When it is determined that a picture or video is displayed in the application interface, it can be determined that the first application is not a scene with little display content, that is, the first application is a scene with much display content.
[0238] In other examples, the electronic device determines whether the first application is in a scene with little display content, which may include: the electronic device determines the type of content displayed by the first application (i.e., the content to be displayed by the first application), and the type of content displayed by the first application may include text type, picture type, or video type, etc. When it is determined that the type of content displayed by the first application is text type, it can be determined that the first application is in a scene with little display content. When it is determined that the type of content displayed by the first application is picture type or video type, it can be determined that the first application is not in a scene with little display content, that is, the first application is in a scene with much display content.
[0239] It should be noted that, when it is determined that the types of content displayed by the first application include at least two types of text type, picture type or video type, the data volume of the content corresponding to the text type and the content corresponding to the picture type or video type can be determined. When the data volume of the content corresponding to the text type is greater than or equal to the data volume of the content corresponding to the picture type or video type, it can be determined that the first application is displaying a scene with little content. In other words, among the contents displayed by the first application, there are more contents corresponding to the text type and fewer contents corresponding to the picture type or video type, that is, when the content displayed by the first application is mainly the content corresponding to the text type, it can be determined that the first application is displaying a scene with little content.
[0240] When the data volume of the content corresponding to the text type is less than the data volume of the content corresponding to the picture type or the video type, it can be determined that the first application is not displaying a scene with few contents, that is, the first application is displaying a scene with many contents. In other words, among the contents displayed by the first application, there are fewer contents corresponding to the text type and more contents corresponding to the picture type or the video type, that is, when the contents displayed by the first application are mainly contents corresponding to the picture type or the video type, it can be determined that the first application is displaying a scene with many contents.
[0241] That is to say, when the electronic device determines whether the first application is displaying a scene with little content, the electronic device can first determine the type of content displayed by the first application. When the type of content displayed by the first application includes at least two types, such as the type of content displayed by the first application includes a text type and a picture type, the electronic device can continue to determine the data amount of the content corresponding to the text type in the content displayed by the first application, and the data amount of the content corresponding to the picture type in the content displayed by the first application. When the data amount of the content corresponding to the text type is greater than or equal to the data amount of the content corresponding to the picture type, it can be determined that the first application is displaying a scene with little content. When the data amount of the content corresponding to the text type is less than the data amount of the content corresponding to the picture type, it can be determined that the first application is displaying a scene with many contents.
[0242] It should be noted that in the embodiments of the present application, the specific method for the electronic device to determine whether the first application is a scene with little display content is not limited. It is sufficient to be able to determine whether the first application is a scene with little display content.
[0243] When it is determined that the first application of the electronic device is not a scene with little display content (i.e., a scene with much display content), the sliding curve rate strategy of the electronic device can be determined to be a fast sliding curve rate strategy, that is, the electronic device can continue to execute the following S517-S519. When it is determined that the first application of the electronic device is a scene with little display content, the sliding curve rate strategy of the electronic device can be determined to be a slow sliding curve rate strategy, that is, the electronic device can continue to execute the following S520-S522.
[0244] S517: The electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0245] When the electronic device determines that the first application is not a scene with little display content (ie, a scene with much display content), the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0246] S518: The electronic device receives a sliding operation by the user.
[0247] After the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device may receive a sliding operation of the user.
[0248] It should be noted that the electronic device determines whether the electronic device is in a scenario with little display content, which may be after the electronic device receives the user's sliding operation, the electronic device determines whether the electronic device is in a scenario with little display content, thereby determining different sliding processing strategies according to whether the electronic device is in a scenario with little display content. The electronic device may also first determine whether the electronic device is in a scenario with little display content, thereby determining the corresponding sliding curve rate strategy. Afterwards, when the electronic device receives the user's sliding operation, the electronic device may determine different sliding processing strategies according to whether the electronic device displays little content. In the embodiment of the present application, the order between the electronic device determining whether the electronic device is in a scenario with little display content and the electronic device receiving the user's sliding operation is not limited. In the embodiment of the present application, the electronic device receives the user's sliding operation after the electronic device determines whether the electronic device has little display content (that is, determines the corresponding sliding curve rate strategy) as an example for schematic explanation.
[0249] S519: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0250] When the electronic device receives a sliding operation from the user, in response, the electronic device can scroll and display the content to be displayed based on the second initial speed gain and the second friction coefficient. That is, when the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the slow sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the second initial speed gain and the second friction coefficient corresponding to the slow sliding curve rate strategy.
[0251] Since the second initial velocity gain is relatively small and the first friction coefficient is relatively large, when the electronic device scrolls to display the content not displayed in the first interface based on the second initial velocity gain and the second friction coefficient corresponding to the slow sliding curve rate strategy, the electronic device can scroll to display less content to be displayed, thereby avoiding the appearance of white blocks or black blocks in the display interface of the electronic device, and the user can see clearly and focus more easily.
[0252] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the above S516. After the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a large-screen scene, that is, the electronic device may continue to execute the above S502. When the electronic device determines that it is a small-screen scene, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, the electronic device may continue to execute the following S503-S505. After the electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient, the electronic device may continue to determine whether it is a power saving mode scene, that is, the electronic device may continue to execute the above S509. When the electronic device determines that it is a non-power saving mode scene, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, the electronic device may continue to execute the following S513-S515.
[0253] S520: The electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0254] When the electronic device determines that the first application is a scene with little display content, the electronic device may determine that the sliding curve rate strategy is a fast sliding curve rate strategy, that is, adjust the target sliding processing strategy to the first sliding processing strategy.
[0255] S521. The electronic device receives a sliding operation by the user.
[0256] After the electronic device determines that the sliding curve rate strategy is the fast sliding curve rate strategy, the electronic device can receive the user's sliding operation (which may also be referred to as the third sliding operation in the embodiment of the present application). The user's third sliding operation has the same sliding parameters as the user's first sliding operation, that is, when the user performs the third sliding operation, the sliding distance, sliding curve, sliding time, sliding force, etc. are the same as those of the first sliding operation.
[0257] S522: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0258] When the electronic device receives a sliding operation from the user, in response, the electronic device can scroll and display the content to be displayed based on the first initial speed gain and the first friction coefficient, that is, the electronic device can display the fourth interface, and the fourth interface can include the content to be displayed corresponding to the third sliding operation. That is, when the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy, the electronic device can scroll and display the content to be displayed based on the fast sliding curve rate strategy. That is, the electronic device can scroll and display the content not displayed in the first interface based on the first initial speed gain and the first friction coefficient corresponding to the fast sliding curve rate strategy.
[0259] Since the first initial velocity gain is relatively large and the first friction coefficient is relatively small, when the electronic device scrolls to display the content not displayed in the first interface based on the first initial velocity gain and the first friction coefficient corresponding to the fast sliding curve rate strategy, the electronic device can scroll to display more content to be displayed, which can make the user feel better subjectively about smoothness.
[0260] It should be noted that after the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether the first application is a scene with little display content, that is, the electronic device may continue to execute the above S516. After the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether it is a large screen scene, that is, the electronic device may continue to execute the above S502. When the electronic device determines that it is a large screen scene, the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, the electronic device may continue to execute the above S506-S508. After the electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient, the electronic device may continue to determine whether it is a power saving mode scene, that is, the electronic device may continue to execute the above S509. When the electronic device determines that it is a power saving mode scene, the electronic device may determine that the sliding curve rate strategy is a slow sliding curve rate strategy, that is, the electronic device may continue to execute the following S510-S512.
[0261] The electronic device of the solution of the present application may include a slow sliding curve rate strategy and a fast sliding curve rate strategy. During the use of the electronic device, the electronic device may determine the use scenario of the electronic device, and thus use different sliding curve rate strategies according to the use scenario of the electronic device. When the use scenario is a scenario that requires the use of a fast sliding curve rate strategy, the electronic device may use the fast sliding curve rate strategy, and when the use scenario is a scenario that requires the use of a slow sliding curve rate strategy, the electronic device may use the slow sliding curve rate strategy.
[0262] When the usage scenario is a scenario where a fast sliding curve rate strategy is required (such as the above-mentioned small screen scenario, non-power saving mode scenario, and the first application is a scenario with little display content), the electronic device can use the fast sliding curve rate strategy. When the electronic device controls the page sliding of the electronic device (i.e., scrolling the content to be displayed), the page sliding time of the electronic device can be longer, and the page sliding distance can be longer, which can make the user's subjective fluency experience better.
[0263] When the usage scenario requires the use of a slow sliding curve rate strategy (such as the above-mentioned large-screen scenario, power saving mode scenario, and the first application is a scenario for displaying multiple contents), the electronic device can use a slow sliding curve rate strategy. Because when the electronic device controls the page sliding of the electronic device (i.e., scrolling the content to be displayed) based on the slow sliding processing strategy, the page sliding time of the electronic device can be shortened, and the page sliding distance can be shortened, which enables the user to see clearly and focus more easily. Therefore, the solution of the present application enables electronic devices to use different sliding strategies in different usage scenarios, thereby improving the user experience in different usage scenarios.
[0264] Therefore, it can be avoided that when the display speed of the electronic device is slow, the electronic device will display white blocks or black blocks at the corresponding positions, thereby improving the user experience and reducing the power consumption of the electronic device, so that the user can see clearly and focus more easily.
[0265] In addition, when determining the usage scenario of the electronic device, the electronic device can determine the usage scenario of the electronic device according to the priority of the scenario (i.e., the importance of the scenario) in order of priority, so as to accurately determine the sliding curve rate strategy to be used in different scenarios.
[0266] It should be noted that the above embodiments are illustrated by taking the example that when determining the usage scenario of the electronic device, the electronic device determines which scenario the usage scenario of the electronic device is according to the priority of the scenario (i.e., the importance of the scenario) in the order of priority. However, when determining the usage scenario of the electronic device, the electronic device may also determine which scenario the usage scenario of the electronic device is not according to the priority of the scenario (i.e., the importance of the scenario).
[0267] The following takes the electronic device as a folding screen electronic device, the sliding curve rate strategy of the electronic device includes a slow sliding curve rate strategy and a fast sliding curve rate strategy, and the usage scenarios of the electronic device include a large screen scene, a small screen scene, a power saving mode scene, a non-power saving mode scene, a scene with little display content, and a scene with a lot of display content as an example, and another display control method provided in an embodiment of the present application is described in detail.
[0268] Figure 7 A flow chart of another display control method provided in an embodiment of the present application. Figure 7 As shown, the display control method may include the following S701-S720.
[0269] S701. The electronic device displays a first interface, where the first interface is an interface corresponding to a first application.
[0270] The sliding curve rate strategy of the electronic device may include a slow sliding curve rate strategy and a fast sliding curve rate strategy. The initial speed gain corresponding to the fast sliding curve rate strategy is the first initial speed gain, and the friction coefficient corresponding to the fast sliding curve rate strategy is the first friction coefficient. The initial speed gain corresponding to the slow sliding curve rate strategy is the second initial speed gain, and the friction coefficient corresponding to the slow sliding curve rate strategy is the second friction coefficient. The first initial speed gain is greater than the second initial speed gain, and the first friction coefficient is less than the second friction coefficient.
[0271] The first application may be a text application, a picture application, or a video application, which is not limited in the embodiments of the present application.
[0272] Specifically, the specific implementation of the electronic device displaying the first interface in the embodiment of the present application can refer to the specific implementation in the above S501, which will not be described in detail in the embodiment of the present application.
[0273] S702: The electronic device determines a usage scenario of the electronic device.
[0274] The usage scenarios of the electronic device may include large screen scenarios, small screen scenarios, power saving mode scenarios, non-power saving mode scenarios, scenarios with little display content (i.e., the first application is a scenario with little display content), and scenarios with much display content (i.e., the first application is a scenario with much display content).
[0275] It is understandable that the use scenarios of electronic devices may also include other scenarios. For example, a scenario with good network speed (i.e., a scenario where the network speed of the electronic device is greater than or equal to the network speed threshold), a scenario with poor network speed (i.e., a scenario where the network speed of the electronic device is less than the network speed threshold), a scenario with less remaining battery percentage (i.e., a scenario where the percentage of remaining battery power of the electronic device is less than the percentage threshold), a scenario with more remaining battery percentage (i.e., a scenario where the percentage of remaining battery power of the electronic device is greater than or equal to the percentage threshold), a geo-fence scenario (i.e., a scenario where the electronic device is within the range of a preset geo-fence), a non-geo-fence scenario (i.e., a scenario where the electronic device is not within the range of a preset geo-fence), a low-battery continuation scenario (i.e., a scenario where the battery usage time needs to be extended when the remaining battery power of the electronic device is less than the power threshold), and a scenario where the battery usage time does not need to be extended when the remaining battery power of the electronic device is greater than or equal to the power threshold).
[0276] It should be noted that the specific value of the network speed threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application. The specific value of the percentage threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application. The preset geographic fence can be set according to actual conditions, and this is not limited in the embodiments of the present application. The specific value of the power threshold can be set according to actual conditions, and this is not limited in the embodiments of the present application.
[0277] When the electronic device is used in a scenario with good network speed, a high battery percentage, a geo-fenced scenario, or a low battery life scenario, the electronic device can determine the sliding curve rate strategy as a fast sliding curve rate strategy. When the electronic device is used in a scenario with poor network speed, a low battery percentage, a non-geo-fenced scenario, or a low battery life scenario, the electronic device can determine the sliding curve rate strategy as a slow sliding curve rate strategy.
[0278] In the embodiments of the present application, the specific types of usage scenarios of the electronic device are not limited. In the embodiments of the present application, the usage scenarios of the electronic device include large screen scenario, small screen scenario, power saving mode scenario, non-power saving mode scenario, scenario with little display content, and scenario with much display content.
[0279] Since the large screen scene and the small screen scene are relative scenes, the electronic device can determine whether the use scene of the electronic device is a large screen scene or a small screen scene by determining whether the use scene of the electronic device is a large screen scene. Specifically, the specific implementation method of the electronic device determining whether the use scene of the electronic device is a large screen scene in the embodiment of the present application can refer to the specific implementation method in S502 above, and will not be repeated in the embodiment of the present application.
[0280] Since the power saving mode scenario and the power saving mode scenario are relative scenarios, the electronic device can determine whether the use scenario of the electronic device is the power saving mode scenario or the non-power saving mode scenario by determining whether the use scenario of the electronic device is the power saving mode scenario. Specifically, the specific implementation method of the electronic device determining whether the use scenario of the electronic device is the power saving mode scenario in the embodiment of the present application can refer to the specific implementation method in S509 above, which will not be repeated in the embodiment of the present application.
[0281] Since the scene with less display content (i.e., the first application is a scene with less display content) and the scene with more display content (i.e., the first application is a scene with more display content) are relative scenes, the electronic device can determine whether the use scene of the electronic device is a scene with less display content or a scene with more display content by determining whether the use scene of the electronic device is a scene with less display content. Specifically, the specific implementation method of the electronic device determining whether the use scene of the electronic device is a scene with less display content in the embodiment of the present application can refer to the specific implementation method in S516 above, which will not be repeated in the embodiment of the present application.
[0282] It should be noted that when the electronic device determines the usage scenario of the electronic device, the electronic device can determine whether the usage scenario of the electronic device is a large screen scenario, or determine whether the usage scenario of the electronic device is a power saving mode scenario, or determine whether the usage scenario of the electronic device is a scenario with little displayed content. That is, when the electronic device determines the usage scenario of the electronic device, it can select one of determining whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little displayed content to determine.
[0283] When the electronic device determines the usage scenario of the electronic device, the electronic device may also select at least two items to determine whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little display content. When the electronic device determines whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little display content, the electronic device may determine in order of priority based on the priority of the large screen scene, the priority of the power saving mode scene, and the priority of the scenario with little display content. That is, the specific process of selecting at least two items to determine when the electronic device determines whether it is a large screen scene, whether it is a power saving mode scene, and whether it is a scenario with little display content can refer to S502-S522 in the above embodiment, and will not be repeated in this embodiment.
[0284] It should be noted that when the electronic device determines the usage scenario of the electronic device, the electronic device may also simultaneously determine whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little displayed content. After determining whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little displayed content, the usage scenario of the electronic device may be determined according to the priorities of the large screen scenario, the power saving mode scenario, and the scenario with little displayed content.
[0285] For example, the priority of a large screen scene is higher than the priority of a power saving mode scene, and the priority of a power saving mode scene is higher than the priority of a scene with less displayed content. When an electronic device determines the usage scenario of the electronic device, the electronic device may also simultaneously determine whether it is a large screen scene, whether it is a power saving mode scene, and whether it is a scene with less displayed content. When the electronic device determines a large screen scene, and it is a non-power saving mode scene, and it is a scene with less displayed content, since the large screen scene has the highest priority, it can be determined that the usage scenario of the electronic device is a large screen scene.
[0286] It should be noted that this embodiment is illustrated by taking as an example that when an electronic device determines the usage scenario of the electronic device, one of determining whether it is a large-screen scenario, whether it is a power saving mode scenario, and whether it is a scenario with little displayed content is selected for determination.
[0287] It should be noted that the electronic device determines the usage scenario of the electronic device, which may be after the electronic device receives the sliding operation of the user, the electronic device determines the usage scenario of the electronic device, thereby determining different sliding processing strategies according to the usage scenario of the electronic device. The electronic device may also first determine the usage scenario of the electronic device. Afterwards, when the electronic device receives the sliding operation of the user, the electronic device may determine different sliding processing strategies according to the usage scenario of the electronic device. In the embodiment of the present application, the order between the electronic device determining the usage scenario of the electronic device and the electronic device receiving the sliding operation of the user is not limited. In the embodiment of the present application, the electronic device determines the usage scenario of the electronic device after the electronic device receives the sliding operation of the user as an example for schematic explanation.
[0288] S703: When the usage scenario of the electronic device is a large-screen scenario, the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0289] S704: The electronic device receives a sliding operation by the user.
[0290] S705: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0291] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the second initial velocity gain and the second friction coefficient in the embodiment of the present application can refer to the specific implementation in the above S508, which will not be repeated in the embodiment of the present application.
[0292] S706: When the usage scenario of the electronic device is a small-screen scenario, the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0293] S707: The electronic device receives a sliding operation by the user.
[0294] S708: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0295] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the first initial velocity gain and the first friction coefficient in the embodiment of the present application can refer to the specific implementation in the above S505, which will not be repeated in the embodiment of the present application.
[0296] S709: When the usage scenario of the electronic device is the power saving mode scenario, the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0297] S710. The electronic device receives a sliding operation by a user.
[0298] S711: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0299] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the second initial velocity gain and the second friction coefficient in the embodiment of the present application can refer to the specific implementation in S512 above, which will not be repeated in the embodiment of the present application.
[0300] S712: When the usage scenario of the electronic device is a non-power saving mode scenario, the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0301] S713. The electronic device receives a sliding operation by the user.
[0302] S714: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0303] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the first initial velocity gain and the first friction coefficient in the embodiment of the present application can refer to the specific implementation in the above S515, which will not be repeated in the embodiment of the present application.
[0304] S715: When the usage scenario of the electronic device is that the first application displays multiple content scenarios, the electronic device determines that the sliding curve rate strategy is a slow sliding curve rate strategy.
[0305] S716. The electronic device receives a sliding operation by the user.
[0306] S717: The electronic device scrolls and displays the content to be displayed based on the second initial speed gain and the second friction coefficient.
[0307] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the second initial velocity gain and the second friction coefficient in the embodiment of the present application can refer to the specific implementation in S522 above, which will not be repeated in the embodiment of the present application.
[0308] S718: When the usage scenario of the electronic device is a scenario in which the first application displays little content, the electronic device determines that the sliding curve rate strategy is a fast sliding curve rate strategy.
[0309] S719. The electronic device receives a sliding operation by the user.
[0310] S720: The electronic device scrolls and displays the content to be displayed based on the first initial speed gain and the first friction coefficient.
[0311] The specific implementation of the electronic device scrolling and displaying the content to be displayed based on the first initial velocity gain and the first friction coefficient in the embodiment of the present application can refer to the specific implementation in S519 above, which will not be repeated in the embodiment of the present application.
[0312] The electronic device of the present application may include a slow sliding curve rate strategy and a fast sliding curve rate strategy. During the use of the electronic device, the electronic device may determine the use scenario of the electronic device, and thus use different sliding curve rate strategies according to the use scenario of the electronic device.
[0313] For ease of understanding, the following Figure 8 The display control method provided in the embodiment of the present application is described. Figure 8 As shown, the display control method may include the following S801-S805.
[0314] S801. The electronic device displays a first page.
[0315] The first page may be a page corresponding to the first application in the electronic device.
[0316] The first application may be a text type application, a picture type application or a video type application. A text type application means that the content displayed is mainly text type content, that is, the first application may be an application that displays less content or displays a small amount of data, such as an address book application, a communication application, an e-book application, etc. A picture type application or a video type application means that the content displayed is mainly picture type or video type content, that is, the first application may be an application that displays more content or displays a large amount of data, such as a shopping application, a food application or a news application, etc. The specific type of the first application is not limited in the embodiments of the present application. The first application may be a third-party application, or it may be an application in the system of an electronic device, which is not limited in the embodiments of the present application.
[0317] The electronic device may include at least two sliding processing strategies. When the electronic device adopts different sliding processing strategies, the duration of sliding the first page along the sliding direction of the user on the screen of the electronic device is different, and the sliding speed of the first page is different. In the embodiment of the present application, the specific number of the at least two sliding processing strategies is not limited. In the embodiment of the present application, the electronic device includes two sliding processing strategies, namely the first sliding processing strategy and the second sliding processing strategy.
[0318] In some examples, the first sliding processing strategy may include a first initial speed and a first friction coefficient. The second sliding processing strategy may include a second initial speed and a second friction coefficient. The second sliding processing strategy includes a second initial speed and a second friction coefficient, the first initial speed is greater than the second initial speed, and the first friction coefficient is less than the second friction coefficient. That is, when the electronic device executes the first sliding processing strategy, the first page slides at the first initial speed and the first friction coefficient. When the electronic device executes the second sliding processing strategy, the first page slides at the second initial speed and the second friction coefficient.
[0319] Initial speed, that is, the initial speed of the electronic device for processing the sliding event when the electronic device recognizes the start of the sliding operation. Friction coefficient, that is, the coefficient of the electronic device to gradually reduce the speed of the sliding event processing according to the intensity and direction of the sliding operation. Since the first initial speed is greater than the second initial speed and the first friction coefficient is less than the second friction coefficient, the first sliding processing strategy can be a fast sliding processing strategy and the second sliding processing strategy can be a slow sliding processing strategy. Since the first initial speed corresponding to the first sliding processing strategy is large and the first friction coefficient corresponding to the first sliding processing strategy is small, when the electronic device controls the page sliding of the electronic device based on the first sliding processing strategy, the page sliding time of the electronic device can be longer and the page sliding distance can be longer, so that the newly loaded content in the page can be more, which can make the user's subjective fluency feel better. Since the second initial speed corresponding to the second sliding processing strategy is small and the second friction coefficient corresponding to the second sliding processing strategy is large, when the electronic device controls the page sliding of the electronic device based on the second sliding processing strategy, the page sliding time of the electronic device can be shorter and the page sliding distance can be shorter, so that the newly loaded content in the page can be less, which can make the user see clearly and focus more easily.
[0320] It should be noted that the first page is a menu-type page (such as a listview-type page), that is, the content currently displayed on the first page is menu-type content. In other words, when the electronic device receives a sliding operation on the first page by the user, the electronic device can scroll to display the content that is not currently displayed on the first page. For example, a menu-type page can be a communication-type page or a shopping-type page, that is, when the electronic device displays a communication-type page, if the electronic device receives a sliding operation on the first page by the user, the electronic device can scroll to display the content that is not currently displayed on the first page.
[0321] When the first page is a menu-type page, the electronic device can determine the usage scenario of the electronic device, and thus can determine different sliding processing strategies based on the usage scenario of the electronic device. Based on different sliding processing strategies, the electronic device can display the second page corresponding to the first application (that is, the second page includes content that is not currently displayed in the first page).
[0322] When the first page is not a menu-type page (such as a game home page or a page for watching videos), the electronic device may not determine different sliding processing strategies, that is, at this time, the sliding processing strategy of the electronic device is fixed. Moreover, when the first page is not a menu-type page (such as a game home page or a page for watching videos), if the electronic device receives a sliding operation of the user on the first page, the electronic device still displays the first page.
[0323] That is, after the electronic device displays the first page, the electronic device may first determine the type of the first page. When the type of the first page is a menu-type page, the electronic device may determine the usage scenario of the electronic device, and may determine different sliding processing strategies according to the usage scenario of the electronic device. That is, when the type of the first page is a menu-type page, the electronic device may execute the display control method provided by the present application, thereby displaying the second page corresponding to the first application (that is, the second page includes content that is not currently displayed in the first page) according to different sliding processing strategies.
[0324] S802: The electronic device determines a usage scenario of the electronic device.
[0325] The electronic device may determine a usage scenario of the electronic device, and thus may determine a target sliding processing strategy from at least two sliding processing strategies according to the usage scenario of the electronic device.
[0326] In some examples, the use scenario of the electronic device may include at least two types of sliding scenarios, and different types of sliding scenarios correspond to different sliding processing strategies. For example, the types of sliding scenarios may include fast sliding scenarios, slow sliding scenarios, etc. The specific data of the at least two types of sliding scenarios are not limited in the embodiments of the present application. In the embodiments of the present application, the use scenario of the electronic device including two sliding scenarios is used as an example for schematic illustration. That is, the use scenario of the electronic device can be a fast sliding scenario and a slow sliding scenario.
[0327] The fast sliding scenario is a scenario where the electronic device needs to use a fast sliding processing strategy (ie, a first sliding processing strategy). The slow sliding scenario is a scenario where the electronic device needs to use a slow sliding processing strategy (ie, a second sliding processing strategy).
[0328] In some examples, the fast sliding scene may include multiple scenes. For example, the fast sliding scene may include a small screen scene, a non-power saving mode scene, a non-high temperature scene, and a text scene. In the embodiments of the present application, the specific type of the fast sliding scene is not limited. In the embodiments of the present application, the fast sliding scene includes a small screen scene, a non-power saving mode scene, and a text scene as an example for schematic illustration.
[0329] The small-screen scenario refers to that the electronic device is a folding-screen electronic device, and the folding screen of the electronic device is in a folded state.
[0330] The non-power saving mode scenario means that the mode of the electronic device is non-power saving mode.
[0331] In a non-high temperature scenario, the temperature of the electronic device is less than the temperature threshold. The specific value of the temperature threshold can be set according to actual conditions, and is not limited in the embodiments of the present application.
[0332] Text scenario, that is, the data volume of the content to be displayed is less than the data volume threshold, or the type of the content to be displayed is text type, or the data volume of the text type in the content to be displayed is greater than the data volume of the picture type and / or video type. The data volume threshold can be set specifically according to actual conditions, and is not limited in the embodiments of the present application. The content to be displayed is the newly loaded content of the first page in response to the first sliding operation. That is to say, when the electronic device responds to the user's sliding operation, the electronic device controls the page sliding based on the target sliding processing strategy, and the page after sliding may include the newly loaded content, and may also include part of the originally loaded content.
[0333] It should be noted that the quick sliding scenarios can also include scenarios with good network speed, scenarios with a large remaining battery percentage, geographic fence scenarios, and scenarios where low battery power will not continue battery life.
[0334] The scenario with good network speed, that is, the network speed of the electronic device is greater than or equal to the network speed threshold. The specific network speed threshold can be set according to the actual situation, and is not limited in the embodiments of the present application. The scenario with a large battery remaining percentage, that is, the percentage of the remaining battery power of the electronic device is greater than or equal to the percentage threshold. The specific percentage threshold can be set according to the actual situation, and is not limited in the embodiments of the present application. The geographic fence scenario, that is, the electronic device is located within the range of a preset geographic fence. The preset geographic fence can be the geographic fence where the user's home is located, or the ground fence where the user's office is located. The scenario with low battery and no continuation of battery life, that is, when the remaining battery power of the electronic device is greater than or equal to the power threshold, there is no need to extend the battery life. The specific power threshold can be set according to the actual situation, and is not limited in the embodiments of the present application.
[0335] In some examples, the slow sliding scene may include multiple scenes. For example, the slow sliding scene may include a large screen scene, a power saving mode scene, a high temperature scene, and a non-text scene. In the embodiments of the present application, the specific type of the slow sliding scene is not limited. In the embodiments of the present application, the slow sliding scene includes a large screen scene, a power saving mode scene, and a non-text scene as an example for schematic illustration.
[0336] Large screen scenario, that is, the electronic device is a folding screen electronic device, and the folding screen of the electronic device is in the unfolded state. Power saving mode scenario, that is, the mode of the electronic device is power saving mode. Non-text scenario, that is, the data volume of the content to be displayed of the first application is greater than or equal to the data volume threshold, or, the type of the content to be displayed includes picture type or video type, or, the data volume of the text type in the content to be displayed is less than the data volume of the picture type and / or video type. High temperature scenario, that is, the temperature of the electronic device is greater than or equal to the temperature threshold.
[0337] It should be noted that the slow sliding scenarios may also include scenarios with poor network speed, scenarios with low remaining battery percentage, non-geo-fence scenarios, and scenarios with low battery life. Poor network speed scenario, that is, the network speed of the electronic device is less than the network speed threshold. Low remaining battery percentage scenario, that is, the percentage of remaining battery power of the electronic device is less than the percentage threshold. Non-geo-fence scenario, that is, the electronic device is not within the range of the preset geo-fence. Low battery life scenario, that is, when the remaining battery power of the electronic device is less than the power threshold, the battery life needs to be extended.
[0338] In some examples, when the electronic device is a folding screen electronic device (also referred to as a foldable electronic device), the electronic device determines the usage scenario of the electronic device, which may include the electronic device determining whether the usage scenario of the foldable electronic device is a large screen scenario, so as to determine whether the usage scenario of the foldable electronic device is a large screen scenario or a small screen scenario. Specifically, the specific implementation method of the foldable electronic device determining whether the usage scenario of the foldable electronic device is a large screen scenario can refer to the specific implementation method in S502 above, which will not be repeated in the embodiments of the present application.
[0339] That is, when the electronic device is a folding screen electronic device (also referred to as a foldable electronic device), and the folding screen of the foldable electronic device is in an unfolded state, it can be determined that the usage scenario of the foldable electronic device is a large screen scenario, and the slow sliding scenario includes the large screen scenario. When the foldable electronic device is a folding screen electronic device, and the folding screen of the foldable electronic device is in a folded state, it can be determined that the usage scenario of the foldable electronic device is a small screen scenario, and the fast sliding scenario includes the small screen scenario.
[0340] When the folding screen of the foldable electronic device is in the unfolded state, the use scenario of the foldable electronic device is a slow sliding scenario, so that the foldable electronic device can use a slow sliding processing strategy to make the page sliding time of the foldable electronic device shorter and the page sliding distance shorter. Therefore, the page of the foldable electronic device responds to the sliding operation and the newly loaded content is less, which can reduce the power consumption of the foldable electronic device when the folding screen is in the unfolded state, and can avoid the white blocks or black blocks displayed by the foldable electronic device when the electronic device has more newly loaded content (i.e., content to be displayed) or the newly loaded content is slow, thereby improving the user's use experience. When the folding screen of the foldable electronic device is in the folded state, the use scenario of the foldable electronic device is a fast sliding scenario, so that the foldable electronic device can use a fast sliding processing strategy to make the page sliding time of the foldable electronic device longer and the page sliding distance longer. Therefore, the page of the foldable electronic device responds to the sliding operation and the newly loaded content is more, which can make the user's subjective fluency feel better, that is, it can avoid the user's slow response of the electronic device when the user performs a fast sliding operation on the screen of the foldable electronic device, thereby improving the user's use experience.
[0341] In other examples, the electronic device determines the usage scenario of the electronic device, which may include the electronic device determining whether the usage scenario of the electronic device is a power saving mode scenario, so as to determine whether the usage scenario of the electronic device is a power saving mode scenario or a non-power saving mode scenario. Specifically, the specific implementation method of the electronic device determining whether the usage scenario of the electronic device is a power saving mode scenario can refer to the specific implementation method in S509 above, which will not be repeated in the embodiments of the present application.
[0342] That is, when the mode of the electronic device is the power saving mode, it can be determined that the use scenario of the electronic device is the power saving mode scenario, and the slow sliding scenario includes the power saving mode scenario. When the mode of the electronic device is the non-power saving mode, it can be determined that the use scenario of the electronic device is the non-power saving mode scenario, and the fast sliding scenario includes the non-power saving mode scenario.
[0343] When the mode of the electronic device is the power saving mode, the usage scenario of the electronic device is the slow sliding scenario, so the electronic device can use the slow sliding processing strategy, the page sliding time of the electronic device is shorter, and the page sliding distance is shorter, which can make the user see clearly and focus more easily, and can reduce the power consumption of the electronic device. And when the usage scenario of the electronic device is the power saving mode scenario, because the electronic device is based on the slow sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, therefore, the page of the electronic device responds to the sliding operation. The newly loaded content is less, which can reduce the power consumption of the electronic device, so as to achieve the effect of power saving. When the mode of the electronic device is non-power saving mode, the usage scenario of the electronic device is the fast sliding scenario, so the electronic device can use the fast sliding processing strategy, which can make the user's subjective fluency feel better.
[0344] In other examples, the electronic device determining the usage scenario of the electronic device may include the electronic device determining whether the usage scenario of the electronic device is a high temperature scenario, that is, determining whether the temperature of the electronic device is greater than a temperature threshold.
[0345] That is, when the temperature of the electronic device is greater than the temperature threshold, it can be determined that the use scenario of the electronic device is a high temperature scenario, and the slow sliding scenario includes the high temperature scenario. When the temperature of the electronic device is less than the temperature threshold, it can be determined that the use scenario of the electronic device is a non-high temperature scenario, and the fast sliding scenario includes the non-high temperature scenario.
[0346] When the temperature of the electronic device is higher than the temperature threshold, the use scenario of the electronic device is a slow sliding scenario, so the electronic device can use a slow sliding processing strategy to make the page sliding time of the electronic device shorter and the page sliding distance shorter, so that the user can see clearly and focus more easily. And when the temperature of the electronic device is higher than the temperature threshold, because the electronic device uses a slow sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, therefore, the page of the electronic device responds to the sliding operation and has less newly loaded content, thereby reducing the power consumption of the electronic device, thereby reducing the temperature of the electronic device.
[0347] When the temperature of the electronic device is lower than the temperature threshold, the usage scenario of the electronic device is a fast sliding scenario, so the electronic device can use a fast sliding processing strategy, which can make the user's subjective fluency experience better.
[0348] In other examples, the electronic device determines the usage scenario of the electronic device, which may include the electronic device determining whether the usage scenario of the electronic device is a text scenario, so as to determine whether the usage scenario of the electronic device is a text scenario or a non-text scenario. Specifically, the specific implementation method of the electronic device determining whether the usage scenario of the electronic device is a text scenario can refer to the specific implementation method in S516 above, which will not be repeated in the embodiments of the present application.
[0349] That is, when the data volume of the content to be displayed is greater than or equal to the data volume threshold, or the type of the content to be displayed includes a picture type or a video type, it is determined that the use scenario of the electronic device is a non-text scenario, and the slow sliding scenario includes a non-text scenario. When the data volume of the content to be displayed is less than the data volume threshold, or the type of the content to be displayed is a text type, it can be determined that the use scenario of the electronic device is a text scenario, and the fast sliding scenario includes a text scenario.
[0350] When the data volume of the content to be displayed is greater than or equal to the data volume threshold, or the type of the content to be displayed includes a picture type or a video type, the use scenario of the electronic device is a slow sliding scenario, so that the electronic device can use a slow sliding processing strategy to make the page sliding time of the electronic device shorter and the page sliding distance shorter, so that the user can see clearly and focus more easily. And because the electronic device uses a slow sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, therefore, the page of the electronic device responds to the sliding operation with less newly loaded content, thereby reducing the power consumption of the electronic device, thereby enabling the user to have a better subjective sense of smoothness. And it can avoid the problem of white blocks or black blocks displayed on the electronic device due to a large amount of newly loaded content and slow loading of the newly loaded content, thereby improving the user's usage experience.
[0351] When the data volume of the content to be displayed is less than the data volume threshold, or the type of the content to be displayed is text type, the usage scenario of the electronic device is a fast sliding scenario, so that the electronic device can use a fast sliding processing strategy to enable the user to experience better subjective fluency.
[0352] It should be noted that when the electronic device determines the usage scenario of the electronic device, the electronic device can select one of the following to determine whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a text scenario. Figure 7 The specific implementation method shown will not be described in detail in the embodiments of this application.
[0353] When the electronic device determines the usage scenario of the electronic device, the electronic device can determine whether it is a large screen scenario, whether it is a power saving mode scenario, and whether it is a text scenario according to the priority of the scenario (i.e., the importance of different scenarios). The specific implementation method of the electronic device determining according to the priority of the scenario (i.e., the importance of different scenarios) can refer to the specific implementation methods in S502-S522 above, which will not be repeated in the embodiments of this application.
[0354] In other examples, the electronic device determines the usage scenario of the electronic device, which may also include: when the first application is an application in the fast sliding application list, determining the usage scenario of the electronic device as a fast sliding scenario. When the first application is an application in the slow sliding application list, determining the usage scenario of the electronic device as a slow sliding scenario.
[0355] The fast sliding application list may include at least one application, such as at least one application identifier, that is, the application included in the fast sliding application list is an application corresponding to the fast sliding scene. The slow sliding application list may include at least one application, such as at least one application identifier, that is, the application included in the slow sliding application list is an application corresponding to the slow sliding scene. The type of the first application is determined by the fast sliding application list or the slow sliding application list, so that according to the type of the first application, it can be quickly determined whether the usage scenario of the electronic device is a fast sliding scenario or a slow sliding scenario.
[0356] It should be noted that when the electronic device determines the usage scenario of the electronic device, it can also determine whether the usage scenario of the electronic device is a fast sliding scenario or a slow sliding scenario based on the fast sliding application list (or the slow sliding application list). That is, when the first application is an application in the fast sliding application list, it can be determined that the usage scenario of the electronic device is a fast sliding scenario, and when the first application is not an application in the fast sliding application list, it can be determined that the usage scenario of the electronic device is a slow sliding scenario. Alternatively, when the first application is an application in the slow sliding application list, it can be determined that the usage scenario of the electronic device is a slow sliding scenario, and when the first application is not an application in the slow sliding application list, it can be determined that the usage scenario of the electronic device is a fast sliding scenario.
[0357] In other examples, the electronic device determines the usage scenario of the electronic device, which may also include: large and small screen scenarios. The large and small screen scenarios, that is, when the folding screen of the folding screen electronic device is in the unfolded state, the large screen of the electronic device (that is, the folding screen of the electronic device, which may also be called the inner screen) and the small screen (that is, the outer screen corresponding to the inner screen of the electronic device) are in use at the same time (that is, the large screen and the small screen of the electronic device are in the bright screen state at the same time). When the usage scenario of the electronic device is the large and small screen scenario, the electronic device can determine that the usage scenario of the electronic device is a slow sliding scenario, that is, the electronic device can determine that the target sliding processing strategy is a slow sliding processing strategy.
[0358] It should be noted that when the usage scenario of the electronic device is a large and small screen scenario, the electronic device can also determine that the usage scenario of the electronic device is a fast sliding scenario, that is, the electronic device can determine that the target sliding processing strategy is a fast sliding processing strategy. In the embodiment of the present application, when the usage scenario of the electronic device is a large and small screen scenario, the specific type of the electronic device's usage scenario is determined by the electronic device without limitation. In the embodiment of the present application, when the usage scenario of the electronic device is a large and small screen scenario, the usage scenario of the electronic device is a slow sliding scenario as an example for schematic explanation.
[0359] In other examples, the electronic device determines the usage scenario of the electronic device, which may also include: a screen projection scenario. The screen projection scenario is that the electronic device mirrors the content of the screen to the screen of another electronic device in real time. When the usage scenario of the electronic device is a screen projection scenario, the electronic device may continue to determine whether the electronic device is a small-screen scenario (that is, determine whether the folded state of the folding screen of the folding-screen electronic device is a folded state). When the electronic device determines that it is not a small-screen scene (that is, a large-screen scene), the electronic device may determine that the usage scenario of the electronic device is a slow sliding scene, that is, the electronic device may determine that the target sliding processing strategy is a slow sliding processing strategy. When the electronic device determines that it is a small-screen scene, the electronic device may determine that the usage scenario of the electronic device is a fast sliding scene, that is, the electronic device may determine that the target sliding processing strategy is a fast sliding processing strategy.
[0360] It should be noted that the electronic device determines the usage scenario of the electronic device, which may be after the electronic device receives the sliding operation of the user, the electronic device determines the usage scenario of the electronic device, thereby determining different sliding processing strategies according to the usage scenario of the electronic device. The electronic device may also first determine the usage scenario of the electronic device. Afterwards, when the electronic device receives the sliding operation of the user, the electronic device may determine different sliding processing strategies according to the usage scenario of the electronic device. In the embodiment of the present application, the order between the electronic device determining the usage scenario of the electronic device and the electronic device receiving the sliding operation of the user is not limited. In the embodiment of the present application, the electronic device determines the usage scenario of the electronic device after the electronic device receives the sliding operation of the user as an example for schematic explanation.
[0361] S803: The electronic device determines a target sliding processing strategy from at least two sliding processing strategies based on a usage scenario of the electronic device.
[0362] In some examples, the electronic device determines the target sliding processing strategy from among at least two sliding processing strategies based on the usage scenario of the electronic device, which may include: when the usage scenario of the electronic device is a fast sliding scenario, the electronic device determines the target sliding processing strategy to be the first sliding processing strategy (i.e., the fast sliding processing strategy). When the usage scenario of the electronic device is a slow sliding scenario, the electronic device determines the target sliding processing strategy to be the second sliding processing strategy (i.e., the slow sliding processing strategy).
[0363] When the target sliding processing strategy is the first sliding processing strategy, the duration of the page scrolling display of the electronic device is the first duration, and the distance the page of the electronic device slides is the first distance. When the target sliding processing strategy is the second sliding processing strategy, the duration of the page scrolling display of the electronic device is the second duration, and the distance the electronic device slides is the second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0364] When the sliding processing strategy is the first sliding processing strategy, the content to be displayed of the first application is more than the content to be displayed of the first application when the sliding processing strategy is the second sliding processing strategy. That is to say, after the electronic device determines the usage scenario, if the electronic device uses the first sliding processing strategy (i.e., the fast sliding processing strategy) in the usage scenario, the electronic device displays the content to be displayed of the first application, and the speed of the electronic device displaying the content to be displayed of the first application is faster than that of the electronic device using the second sliding processing strategy (i.e., the slow sliding processing strategy) in the usage scenario. That is, after the electronic device determines the usage scenario, if the electronic device uses the first sliding processing strategy (i.e., the fast sliding processing strategy) in the usage scenario, the amount of data of the content to be displayed of the first application displayed by the electronic device is greater than that of the electronic device using the second sliding processing strategy (i.e., the slow sliding processing strategy) in the usage scenario.
[0365] Since the first sliding processing strategy can be a fast sliding processing strategy and the second sliding processing strategy can be a slow sliding processing strategy, when the usage scenario of the electronic device is a fast sliding scenario, the electronic device can respond to the user's sliding operation more quickly based on the first sliding processing strategy; when the usage scenario of the electronic device is a slow sliding scenario, the electronic device can respond to the user's sliding operation more slowly based on the second sliding processing strategy.
[0366] In some examples, when the use scenario of the electronic device is a large screen scenario, the target sliding processing strategy can be determined to be the second sliding processing strategy (i.e., the slow sliding processing strategy). When the use scenario of the electronic device is a small screen scenario, the target sliding processing strategy can be determined to be the first sliding processing strategy (i.e., the fast sliding processing strategy).
[0367] In other examples, when the use scenario of the electronic device is a power saving mode scenario, the target sliding processing strategy can be determined to be the second sliding processing strategy (i.e., the slow sliding processing strategy). When the use scenario of the electronic device is a non-power saving mode scenario, the target sliding processing strategy can be determined to be the first sliding processing strategy (i.e., the fast sliding processing strategy).
[0368] In other examples, when the use scenario of the electronic device is a non-text scenario, the target sliding processing strategy can be determined to be the second sliding processing strategy (i.e., the slow sliding processing strategy). When the use scenario of the electronic device is a text scenario, the target sliding processing strategy can be determined to be the first sliding processing strategy (i.e., the fast sliding processing strategy).
[0369] In other examples, when the first application is an application in the slow sliding application list, the target sliding processing strategy can be determined to be the second sliding processing strategy (i.e., the slow sliding processing strategy). When the first application is an application in the fast sliding application list, the target sliding processing strategy can be determined to be the first sliding processing strategy (i.e., the fast sliding processing strategy).
[0370] It should be noted that when the electronic device determines the usage scenario of the electronic device, and the electronic device is determined according to the priority of the scenario (i.e., the importance of different scenarios), the electronic device determines the target sliding processing strategy among at least two sliding processing strategies based on the usage scenario of the electronic device, which may include: when the usage scenario of the electronic device is a small screen scenario, determining the target sliding processing strategy to be the first sliding processing strategy. Afterwards, it can be determined whether the usage scenario of the electronic device is a power saving mode scenario. When the usage scenario of the electronic device is a power saving mode scenario, the target sliding processing strategy can be adjusted to the second sliding processing strategy. Afterwards, it can be determined whether the usage scenario of the electronic device is a text scene. When the usage scenario of the electronic device is a text scene, the target sliding processing strategy is adjusted to the first sliding processing strategy. When determining the usage scenario of the electronic device, it can be determined in turn whether the scene of the electronic device is a small screen scene, a power saving mode scene, and a text scene, so that the sliding processing strategy can be accurately determined.
[0371] S804: The electronic device receives a first sliding operation on a first page by a user sliding along a first direction.
[0372] In some examples, the first direction may be an upward direction on the first page, the first direction may be an upward direction on the first page, the first direction may be a rightward direction on the first page, the first direction may be a rightward direction on the first page, or other directions on the first page. The specific direction of the first direction in the embodiments of the present application is not limited.
[0373] S805. In response to the first sliding operation, the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy.
[0374] When the electronic device receives the first sliding operation, in response to the first sliding operation, the electronic device can control the first page to slide along the first direction based on the target sliding processing strategy. When the target sliding processing strategy is the first sliding processing strategy, the duration of the first page sliding along the first direction is the first duration, and the distance of the first page sliding is the first distance. When the target sliding processing strategy is the second sliding processing strategy, the duration of the first page sliding along the first direction is the second duration. The distance of the first page sliding is the second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0375] In some examples, when the usage scenario of the foldable electronic device is a small screen scenario, after the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, it may also include: determining whether the usage scenario of the foldable electronic device is a power saving mode scenario. When the usage scenario of the foldable electronic device is a power saving mode scenario, the target sliding processing strategy is adjusted to a second sliding processing strategy. Afterwards, the foldable electronic device may receive a second sliding operation of the user sliding along the first direction on the first page. In response to the second sliding operation, the foldable electronic device may control the first page to slide along the first direction based on the second sliding processing strategy. Afterwards, it may continue to determine whether the usage scenario of the foldable electronic device is a text scenario. When the usage scenario of the foldable electronic device is a text scenario, the target sliding processing strategy is adjusted to the first sliding processing strategy. Afterwards, the foldable electronic device may receive a third sliding operation of the user sliding along the first direction on the first page. In response to the third sliding operation, the foldable electronic device may control the first page to slide along the first direction based on the first sliding processing strategy.
[0376] It should be noted that the sliding parameters of the second sliding operation and the third sliding operation are the same as those of the first sliding operation, that is, the sliding distance, sliding curve, sliding time, and sliding force of the second sliding operation and the third sliding operation are the same as those of the first sliding operation.
[0377] According to the solution of the present application, when an electronic device receives a sliding operation from a user, the electronic device can determine different sliding processing strategies according to the usage scenario of the electronic device, so that the electronic device can control page sliding based on different sliding processing strategies.
[0378] Due to different sliding processing strategies, the duration and distance of the page sliding of the electronic device are different. When the electronic device controls the page sliding of the electronic device based on the fast sliding processing strategy (i.e., the first sliding processing strategy), the duration of the page sliding of the electronic device can be longer, and the distance of the page sliding can be longer, which can make the user's subjective sense of fluency better. When the electronic device controls the page sliding of the electronic device based on the slow sliding processing strategy (i.e., the second sliding processing strategy), the duration of the page sliding of the electronic device can be shorter, and the distance of the page sliding can be shorter, which can make the user see clearly and focus more easily. Therefore, the solution of the present application enables electronic devices to use different sliding strategies in different usage scenarios, thereby improving the user's usage experience in different usage scenarios.
[0379] It should be noted that when the electronic device is a foldable electronic device, the foldable electronic device may include a first screen and a second screen that are arranged relatively to each other, and the display area of the second screen is larger than the display area of the first screen. When the foldable electronic device is in a folded state, the foldable electronic device controls the first screen to display the first page, that is, when the foldable electronic device is in a folded state, the first screen can also be called a small screen. When the foldable electronic device is in an unfolded state, the foldable electronic device controls the second screen to display the first page, and the second screen can also be called a large screen.
[0380] The foldable electronic device may include a first sliding processing strategy and a second sliding processing strategy. When the sliding processing strategy of the foldable electronic device is the first sliding processing strategy, the duration of the first page of the foldable electronic device sliding along the first direction is the first duration, and the distance of the first page sliding is the first distance. When the sliding processing strategy of the foldable electronic device is the second sliding processing strategy, the duration of the first page of the foldable electronic device sliding is the second duration, and the distance of the first page sliding is the second distance. The first duration is greater than the second duration, and the first distance is greater than the second distance.
[0381] For a foldable electronic device, the display control method provided in the embodiment of the present application may include the following process: when the foldable electronic device is in a folded state, controlling the first screen to display a first page. Afterwards, the foldable electronic device may receive a first sliding operation of the user along a first direction on the first screen. In response to the first sliding operation, the first page slides along the first direction for a first time length, and the distance the first page slides is a first distance.
[0382] When the foldable electronic device is in the unfolded state, the second screen is controlled to display the first page. Afterwards, the foldable electronic device can receive a first sliding operation of the user on the second screen along the first direction. In response to the first sliding operation, the first page slides along the first direction for a second duration, and the distance of the first page sliding is a second distance. The first duration is greater than the second duration, and the first distance is greater than the second distance.
[0383] When the foldable electronic device is in the unfolded state, the foldable electronic device controls the page sliding based on the second sliding processing strategy (i.e., the slow sliding processing strategy), which can make the page sliding time of the foldable electronic device shorter and the page sliding distance shorter, so that the newly loaded content in the page is less, which can make the user see clearly and focus more easily. And when the foldable electronic device is in the unfolded state, since the foldable electronic device is based on the second sliding processing strategy, the page sliding time is shorter and the page sliding distance is shorter, therefore, the page of the foldable electronic device responds to the sliding operation. The newly loaded content is less, thereby reducing the power consumption of the foldable electronic device. And it can avoid the problem of white blocks or black blocks displayed on the foldable electronic device due to the large amount of newly loaded content and the slow loading of the newly loaded content, thereby improving the user experience.
[0384] Corresponding to the method in the above-mentioned embodiment, the embodiment of the present application further provides a display control device. The display control device can be applied to an electronic device to implement the method in the above-mentioned embodiment. The function of the display control device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.
[0385] For example, Fig. 9 A schematic diagram of the structure of a display control device 900 is shown. Fig. 9 As shown, the display control device 900 may include: a display module 901, a receiving module 902, a control module 903, etc.
[0386] The display module 901 may be used to display the first page.
[0387] The receiving module 902 may be configured to receive a first sliding operation of a user sliding along a first direction on a first page.
[0388] Control module 903 can be used to respond to a first sliding operation, and the electronic device controls the first page to slide along the first direction based on a target sliding processing strategy; wherein, at least two sliding processing strategies include a first sliding processing strategy and a second sliding processing strategy; when the target sliding processing strategy is the first sliding processing strategy, the duration of the first page sliding along the first direction is a first duration, and the distance the first page slides is a first distance; when the target sliding processing strategy is the second sliding processing strategy, the duration of the first page sliding along the first direction is a second duration, and the distance the first page slides is a second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
[0389] In another possible implementation, when the electronic device executes the first sliding processing strategy, the first page slides at a first initial speed and a first friction coefficient; when the electronic device executes the second sliding processing strategy, the first page slides at a second initial speed and a second friction coefficient, the first initial speed is greater than the second initial speed, and the first friction coefficient is less than the second friction coefficient.
[0390] In another possible implementation manner, the display control device 900 may further include a determination module 904 .
[0391] The determination module 904 can be used to determine that the target sliding processing strategy is the second sliding processing strategy when the usage scenario of the foldable electronic device is a large-screen scenario; wherein the large-screen scenario includes that the foldable electronic device is in an unfolded state.
[0392] The determination module 904 can also be used to determine that the target sliding processing strategy is the first sliding processing strategy when the usage scenario of the foldable electronic device is a small-screen scenario; wherein the small-screen scenario includes the foldable electronic device being in a folded state.
[0393] In another possible implementation, the determination module 904 may also be configured to determine that the target sliding processing strategy is the second sliding processing strategy when the usage scenario of the electronic device is a power saving mode scenario.
[0394] The determination module 904 may also be configured to determine that the target sliding processing strategy is the first sliding processing strategy when the usage scenario of the electronic device is a non-power saving mode scenario.
[0395] In another possible implementation, the determination module 904 can also be used to determine that the target sliding processing strategy is the second sliding processing strategy when the usage scenario of the electronic device is a high temperature scenario; wherein the high temperature scenario includes the temperature of the electronic device being greater than or equal to the temperature threshold.
[0396] The determination module 904 may also be used to determine that the target sliding processing strategy is the first sliding processing strategy when the usage scenario of the electronic device is a non-high temperature scenario; wherein the non-high temperature scenario includes that the temperature of the electronic device is less than a temperature threshold.
[0397] In another possible implementation, the determination module 904 can also be used to determine that the target sliding processing strategy is a second sliding processing strategy when the usage scenario of the electronic device is a non-text scenario; wherein the non-text scenario includes that the data amount of the content to be displayed is greater than or equal to the data amount threshold, or the type of the content to be displayed includes a picture type or a video type, or the data amount of the text type in the content to be displayed is less than the data amount of the picture type and / or the video type.
[0398] In another possible implementation, the determination module 904 can also be used to determine that the target sliding processing strategy is the first sliding processing strategy when the usage scenario of the electronic device is a text scenario; wherein the text scenario includes that the data amount of the content to be displayed is less than the data amount threshold, or the type of the content to be displayed is a text type, or the data amount of the text type in the content to be displayed is greater than the data amount of the picture type and / or video type; wherein the content to be displayed is the content newly loaded on the first page after responding to the first sliding operation.
[0399] In another possible implementation, the determination module 904 may also be used to determine that the target sliding processing strategy is the second sliding processing strategy when the application corresponding to the first page is an application in the slow sliding application list.
[0400] The determination module 904 may also be configured to determine that the target sliding processing strategy is the first sliding processing strategy when the application corresponding to the first page is an application in the fast sliding application list.
[0401] In another possible implementation, the determination module 904 may also be used to determine whether the usage scenario of the foldable electronic device is a power saving mode scenario.
[0402] The determination module 904 may also be configured to adjust the target sliding processing strategy to a second sliding processing strategy when the usage scenario of the foldable electronic device is a power saving mode scenario.
[0403] The receiving module 902 may also be configured to receive a second sliding operation of the user sliding along the first direction on the first page.
[0404] The control module 903 may also be configured to control the first page to slide along the first direction in response to the second sliding operation based on the second sliding processing strategy.
[0405] The determination module 904 may also be used to determine whether the usage scenario of the foldable electronic device is a text scenario.
[0406] The determination module 904 may also be configured to adjust the target sliding processing strategy to the first sliding processing strategy when the usage scenario of the foldable electronic device is a text scenario.
[0407] The receiving module 902 may also be configured to receive a third sliding operation of the user sliding along the first direction on the first page.
[0408] The control module 903 may also be configured to control the first page to slide along the first direction based on the first sliding processing strategy in response to the third sliding operation.
[0409] It should be understood that the division of units or modules (hereinafter referred to as units) in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; or all in the form of hardware; or some units can be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware.
[0410] For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in a memory in the form of a program, and called and executed by a certain processing element of the device. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be called a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software called by a processing element.
[0411] In one example, the unit in the above apparatus may be one or more integrated circuits configured to implement the above method, such as one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
[0412] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a CPU or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system on a chip SOC.
[0413] In one implementation, the units of the above apparatus implementing the corresponding steps in the above method can be implemented in the form of a processing element scheduling program. For example, the apparatus may include a processing element and a storage element, and the processing element calls the program stored in the storage element to execute the method described in the above method embodiment. The storage element may be a storage element on the same chip as the processing element, that is, an on-chip storage element.
[0414] In another implementation, the program for executing the above method may be in a storage element on a different chip from the processing element, i.e., an off-chip storage element. In this case, the processing element calls or displays the program on the on-chip storage element from the off-chip storage element to call and execute the method described in the above method embodiment.
[0415] For example, an embodiment of the present application may also provide a device, such as an electronic device, which may include a processor and a memory for storing instructions executable by the processor. When the processor is configured to execute the above instructions, the electronic device implements the display control method described in the above embodiment. The memory may be located inside the electronic device or outside the electronic device. And the processor includes one or more.
[0416] In another implementation, the unit of the device implementing each step in the above method may be configured as one or more processing elements, which may be arranged on the corresponding electronic device, and the processing element here may be an integrated circuit, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these integrated circuits. These integrated circuits may be integrated together to form a chip.
[0417] For example, the present application also provides a chip, which can be applied to the above electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the method described in the above method embodiment.
[0418] An embodiment of the present application also provides a computer program product, including computer instructions executed by the above-mentioned electronic device.
[0419] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0420] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0421] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0422] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0423] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, such as a program. The software product is stored in a program product, such as a computer-readable storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0424] For example, the embodiment of the present application may also provide a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by an electronic device, the electronic device implements the display control method described in the above method embodiment.
[0425] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A display control method, characterized in that: Applied to an electronic device, the electronic device includes at least two sliding processing strategies, and the method includes: The electronic device displays a first page; The electronic device receives a first sliding operation of a user sliding along a first direction on the first page; In response to the first sliding operation, the electronic device controls the first page to slide along the first direction based on a target sliding processing strategy; The at least two sliding processing strategies include a first sliding processing strategy and a second sliding processing strategy; when the target sliding processing strategy is the first sliding processing strategy, the duration of sliding the first page along the first direction is a first duration, and the distance the first page slides is a first distance; When the target sliding processing strategy is the second sliding processing strategy, the duration of the first page sliding along the first direction is the second duration, the distance of the first page sliding is the second distance, the first duration is greater than the second duration, and the first distance is greater than the second distance.
2. The method according to claim 1, characterized in that When the electronic device executes the first sliding processing strategy, the first page slides at a first initial speed and a first friction coefficient; When the electronic device executes the second sliding processing strategy, the first page slides at a second initial speed and a second friction coefficient, the first initial speed is greater than the second initial speed, and the first friction coefficient is less than the second friction coefficient.
3. The method according to claim 1 or 2, characterized in that: The electronic device is a foldable electronic device. Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: In a case where the usage scenario of the foldable electronic device is a large-screen scenario, determining that the target sliding processing strategy is the second sliding processing strategy; wherein the large-screen scenario includes that the foldable electronic device is in an unfolded state; When the usage scenario of the foldable electronic device is a small-screen scenario, the target sliding processing strategy is determined to be the first sliding processing strategy; wherein the small-screen scenario includes the foldable electronic device being in a folded state.
4. The method according to claim 1 or 2, characterized in that: Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: When the usage scenario of the electronic device is a power saving mode scenario, determining that the target sliding processing strategy is the second sliding processing strategy; When the usage scenario of the electronic device is a non-power saving mode scenario, the target sliding processing strategy is determined to be the first sliding processing strategy.
5. The method according to claim 1 or 2, characterized in that: Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: In the case where the usage scenario of the electronic device is a high temperature scenario, determining that the target sliding processing strategy is the second sliding processing strategy; wherein the high temperature scenario includes that the temperature of the electronic device is greater than or equal to a temperature threshold; When the usage scenario of the electronic device is a non-high temperature scenario, the target sliding processing strategy is determined to be the first sliding processing strategy; wherein the non-high temperature scenario includes that the temperature of the electronic device is less than the temperature threshold.
6. The method according to claim 1 or 2, characterized in that: Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: In the case where the usage scenario of the electronic device is a non-text scenario, determining that the target sliding processing strategy is the second sliding processing strategy; wherein the non-text scenario includes that the data amount of the content to be displayed is greater than or equal to the data amount threshold, or the type of the content to be displayed includes a picture type or a video type, or the data amount of the text type in the content to be displayed is less than the data amount of the picture type and / or the video type; In the case where the usage scenario of the electronic device is a text scenario, determining that the target sliding processing strategy is the first sliding processing strategy; wherein the text scenario includes that the data amount of the content to be displayed is less than the data amount threshold, or the type of the content to be displayed is a text type, or the data amount of the text type in the content to be displayed is greater than the data amount of the picture type and / or the video type; The content to be displayed is the content newly loaded by the first page in response to the first sliding operation.
7. The method according to claim 1 or 2, characterized in that: Before the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: When the application corresponding to the first page is an application in the slow sliding application list, determining that the target sliding processing strategy is the second sliding processing strategy; When the application corresponding to the first page is an application in the fast sliding application list, the target sliding processing strategy is determined to be the first sliding processing strategy.
8. The method according to claim 3, characterized in that In a case where the usage scenario of the electronic device is a small screen scenario, after the electronic device controls the first page to slide along the first direction based on the target sliding processing strategy, the method further includes: Determining whether the usage scenario of the foldable electronic device is a power saving mode scenario; When the usage scenario of the foldable electronic device is a power saving mode scenario, adjusting the target sliding processing strategy to the second sliding processing strategy; The foldable electronic device receives a second sliding operation by a user sliding along the first direction on the first page; In response to the second sliding operation, the foldable electronic device controls the first page to slide along the first direction based on the second sliding processing strategy; Determining whether the usage scenario of the foldable electronic device is a text scenario; When the usage scenario of the foldable electronic device is a text scenario, adjusting the target sliding processing strategy to the first sliding processing strategy; The foldable electronic device receives a third sliding operation of a user sliding along the first direction on the first page; In response to the third sliding operation, the foldable electronic device controls the first page to slide along the first direction based on the first sliding processing strategy.
9. A display control method, characterized in that: Applied to a foldable electronic device, the foldable electronic device comprises a first screen body and a second screen body arranged opposite to each other, the display area of the second screen body is larger than the display area of the first screen body, the method comprises: When the foldable electronic device is in a folded state, controlling the first screen to display a first page; Receiving a first sliding operation of a user along a first direction on the first screen; In response to the first sliding operation, the first page slides along the first direction for a first time period, and the first page slides a first distance; When the foldable electronic device is in an unfolded state, controlling the second screen to display the first page; receiving the first sliding operation performed by the user on the second screen along the first direction; In response to the first sliding operation, the first page slides along the first direction for a second time period, and the first page slides a second distance; The first duration is greater than the second duration, and the first distance is greater than the second distance.
10. An electronic device, characterized in that: The electronic device comprises a processor and a memory for storing instructions executable by the processor; when the processor is configured to execute the instructions, the electronic device implements the method as claimed in any one of claims 1 to 9.
11. A computer-readable storage medium having computer program instructions stored thereon; characterized in that: When the computer program instructions are executed by an electronic device, the electronic device implements the method according to any one of claims 1 to 9.
Citation Information
Cited By
Display control method and electronic device
EP4715555A1
Display control method and electronic device
WO2025011092A1