Display method and electronic equipment

CN118575160APending Publication Date: 2024-08-30HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202380018061.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-06-30
Filing Date
2023-05-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing foldable screen electronic devices cannot accurately adjust the display orientation under different postures, resulting in a poor user experience.

Method used

By setting motion sensors corresponding to the first and second displays in the foldable screen electronic device, data is collected to determine the folding angle and display orientation. Combining the folding angle information and the orientation of the two displays, the display orientation of the display is dynamically adjusted.

Benefits of technology

It enables adaptive adjustment of the display orientation of foldable screen electronic devices in various scenarios, meeting user needs and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575160A
    Figure CN118575160A
Patent Text Reader

Abstract

The invention relates to the field of terminals, and provides a display method and electronic equipment, the display method is applied to folding screen electronic equipment, the folding screen electronic equipment comprises a first display screen, a second display screen, a first motion sensor and a second motion sensor, and the display method comprises the following steps: obtaining information of first data, second data and a folding angle; based on the first data, a first direction is obtained, and the first direction is the direction of an interface displayed by the first display screen; based on the second data, a second direction is obtained, and the second direction is the direction of the interface displayed by the second display screen; based on the information of the folding angle, the first direction and the second direction, a third direction is obtained, and the third direction is the direction of the interface displayed by the first display screen and the second display screen. Based on the technical scheme of the invention, for the folding screen electronic equipment, the folding screen electronic equipment can adaptively adjust the display direction of the display interface based on different postures.
Need to check novelty before this filing date? Find Prior Art

Description

Display method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 30, 2022, with application number 202210760138.6 and application name “Display Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular, to a display method and electronic equipment. Background Art

[0003] With the popularization and rapid development of smart electronic devices, electronic devices have emerged with various functions and structures; for example, foldable screen electronic devices. Foldable screen electronic devices have the characteristic of being bendable and can realize a variety of usage forms. According to the folding angle of the foldable screen electronic device from large to small, the usage forms of the foldable screen electronic device can be divided into an unfolded state, a semi-folded state and a fully folded state. However, due to the current variable posture foldable screen electronic devices, during use, the display direction of the display interface in the foldable screen electronic device is mainly determined based on the data of the main display screen of the foldable screen electronic device; for some scenarios, the display direction of the display screen cannot be accurately adjusted, resulting in the foldable screen electronic device being unable to meet the user's usage needs in different scenarios.

[0004] Therefore, how to adaptively adjust the display direction of the display screen based on the various postures of foldable screen electronic devices has become an urgent problem that needs to be solved.

[0005] Summary of the Invention

[0006] The present application provides a display method and electronic device, which can ensure that the foldable screen electronic device can meet the user's usage needs in various scenarios and improve the user experience.

[0007] In a first aspect, a display method is provided, which is applied to a foldable screen electronic device, wherein the foldable screen electronic device includes a first display screen, a second display screen, a first motion sensor, and a second motion sensor. The display method includes:

[0008] Acquire first data, second data, and information about a folding angle, wherein the first data is data of the first display screen collected by the first motion sensor, the second data is data of the second display screen collected by the second motion sensor, and the folding angle is an angle between the first display screen and the second display screen;

[0009] Obtaining a first direction based on the first data, where the first direction is a direction of an interface displayed on the first display screen;

[0010] obtaining a second direction based on the second data, where the second direction is a direction of the interface displayed on the second display screen;

[0011] Obtaining a third direction based on the folding angle information, the first direction, and the second direction, where the third direction is a direction of the interface displayed on the first display screen and the second display screen;

[0012] The first display screen and / or the second display screen are based on the third direction display interface.

[0013] It should be understood that the first direction may refer to the direction of the interface displayed on the first display screen; for example, it may refer to the arrangement direction of the content information displayed on the first display screen; optionally, the first direction may include a vertical screen display direction, a left horizontal screen display direction, a right horizontal screen display direction or an inverted vertical display direction, etc.; similarly, the second direction may refer to the arrangement direction of the content information displayed on the second display screen; the third direction may refer to the arrangement direction of the content information displayed on the first display screen and the second display screen obtained based on the folding angle information, the first direction and the second direction.

[0014] In an embodiment of the present application, a foldable screen electronic device may include a first display screen and a second display screen, wherein the first display screen corresponds to a first motion sensor, and the second display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, it can be obtained that the direction of the interface displayed on the first display screen is a first direction, and based on the second data collected by the second motion sensor, it can be obtained that the direction of the interface displayed on the second display screen is a second direction; based on the information of the folding angle between the first display screen and the second display screen, the first direction and the second direction, it can be obtained that the direction of the interface displayed on the first display screen and the second display screen in the foldable screen electronic device is a third direction; the first display screen and / or the second display screen displays the interface based on the third direction; compared with determining the display direction of the foldable screen electronic device based on the data collected by the motion sensor of the main display screen in the foldable screen electronic device, since in this scheme the third direction of the interface displayed on the first display screen and the second display screen in the foldable screen electronic device is determined based on the data collected by the motion sensor corresponding to each display screen in the foldable screen electronic device and the folding angle between the first display screen and the second display screen, the display method in this scheme can ensure that the foldable screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience.

[0015] Optionally, the first display screen may refer to a display screen pre-configured in the folding screen electronic device, or the first display screen may refer to a display screen in the folding screen electronic device that includes an external camera.

[0016] In a possible implementation, the first motion sensor may include one or more of an acceleration sensor, a gyroscope sensor, or a Hall sensor.

[0017] In a possible implementation, the second motion sensor may include one or more of an acceleration sensor, a gyroscope sensor, or a Hall sensor.

[0018] In a possible implementation, the direction may include a first direction, a second direction, or a third direction; the direction may include any one of the following:

[0019] Portrait display orientation, left horizontal display orientation, inverted portrait display orientation or right horizontal display orientation; wherein, when the foldable screen electronic device is in portrait display orientation, the charging port in the foldable screen electronic device faces downward; when the foldable screen electronic device is in left horizontal display orientation, the charging port in the foldable screen electronic device faces right; when the foldable screen electronic device is in inverted portrait display orientation, the charging port in the foldable screen electronic device faces upward; when the foldable screen electronic device is in right horizontal display orientation, the charging port in the foldable screen electronic device faces left.

[0020] In combination with the first aspect, in some implementations of the first aspect, the information based on the folding angle, the first direction, and the second direction includes:

[0021] Determining a current posture of the folding screen electronic device based on the information of the folding angle, where the current posture is used to indicate whether the folding screen electronic device is currently in an unfolded state or a folded state;

[0022] The third direction is obtained based on the current posture, the first direction, and the second direction.

[0023] In an embodiment of the present application, the current posture of the folding screen electronic device can be determined based on the folding angle between the first display screen and the second display screen; the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device can be determined based on the current posture of the folding screen electronic device, thereby ensuring that the folding screen electronic device can meet the user's usage needs in various scenarios and improve the user experience.

[0024] In combination with the first aspect, in certain implementations of the first aspect, determining the current posture of the folding screen electronic device based on the information of the folding angle includes:

[0025] When the folding angle is less than or equal to a first preset threshold, determining that the current posture is a folding posture;

[0026] When the folding angle is less than or equal to a second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate an instantaneous posture of the folding screen electronic device, and the second preset threshold is greater than the first preset threshold;

[0027] When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0028] In an embodiment of the present application, the current posture of the folding screen electronic device can be determined based on the folding angle between the first display screen and the second display screen; for example, the current posture of the folding screen electronic device can be determined based on the size of the folding angle, and the direction of the interface displayed on the first display screen and the second display screen in the folding screen electronic device can be determined based on the current posture of the folding screen electronic device, thereby ensuring that the folding screen electronic device can meet the user's usage needs in various scenarios and improve the user experience.

[0029] In combination with the first aspect, in certain implementations of the first aspect, the folding angle is an angle between the first display screen and the second display screen obtained at time t, and when the folding angle satisfies a first preset range and the first display screen is horizontal, determining that the current posture is the first unfolded posture includes:

[0030] Acquire a first data set, where the first data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0031] When the included angle in the first data set satisfies the first preset range and the first display screen is horizontal, the current posture is determined to be the first unfolded posture.

[0032] In an embodiment of the present application, when determining the current posture of the folding screen electronic device based on the folding angle between the first display screen and the second display screen, in order to ensure the accuracy of the current posture, information of multiple frames of folding angles can be obtained; the current posture of the folding screen electronic device is determined when multiple frames of data meet the conditions; thereby effectively avoiding the problem of low accuracy in identifying the current posture of the folding screen electronic device due to false touches, and improving the accuracy of the current posture.

[0033] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0034] When the folding angle is less than or equal to a third preset threshold, the current posture is determined to be a second unfolding posture, and the third preset threshold is greater than the first preset threshold and less than the second preset threshold.

[0035] With reference to the first aspect, in certain implementations of the first aspect, the folding angle is an angle between the first display screen and the second display screen obtained at time t, and when the folding angle is less than or equal to a third preset threshold, determining that the current posture is the second unfolded posture includes:

[0036] Acquire a second data set, where the second data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0037] When the included angle in the second data set is less than or equal to the third preset threshold, the current posture is the second unfolded posture.

[0038] In an embodiment of the present application, when determining the current posture of the folding screen electronic device based on the folding angle between the first display screen and the second display screen, in order to ensure the accuracy of the current posture, information of multiple frames of folding angles can be obtained; the current posture of the folding screen electronic device is determined when multiple frames of data meet the conditions; thereby effectively avoiding the problem of low accuracy in identifying the current posture of the folding screen electronic device due to false touches, and improving the accuracy of the current posture.

[0039] In combination with the first aspect, in some implementations of the first aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the folding posture, the third direction is the same as the first direction.

[0040] In one possible implementation, the first display screen is a main display screen of the foldable screen electronic device. If the current posture of the foldable screen electronic device is a folded posture, the third direction is the same as the first direction.

[0041] In an embodiment of the present application, if the folding screen electronic device is in a folding posture, the direction of any display screen can be used as the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device; for example, if the folding screen electronic device is in a folding posture, the first direction of the main display screen can be set as the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device; that is, the third direction is the same as the first direction.

[0042] In combination with the first aspect, in certain implementations of the first aspect, the first data, the second data and the information on the folding angle are data acquired at time t, and when the current posture is the intermediate posture, the third direction is the historical direction, and the historical direction is the direction of the interface displayed by the first display screen and the second display screen obtained based on the data acquired at time t-1.

[0043] It should be understood that the intermediate posture may refer to an intermediate posture transitioning from the second unfolded posture (eg, tent posture) to the first unfolded posture (eg, notebook posture); the posture may be a transient posture for a short period of time.

[0044] In one possible implementation, if the current posture of the foldable screen electronic device is an intermediate posture, the third direction is the same as the historical direction.

[0045] In one possible implementation, if based on the first data, the second data and the folding angle information obtained at the time t-1, the third direction at the time t-1 is direction A; then based on the angle information obtained at the time t, it is determined that the current posture of the folding screen electronic device is the intermediate posture, then the third direction at the time t can be direction A.

[0046] In combination with the first aspect, in certain implementations of the first aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the first unfolded posture, the third direction is the same as the second direction.

[0047] In one possible implementation, when the current posture of the folding screen electronic device is the first unfolded posture, the display interfaces in the first display screen and the second display screen may be related and independent.

[0048] For example, the first unfolding posture may mean that the folding screen electronic device is in a notebook state. When the folding screen electronic device is in the notebook state, the first display screen can display the main interface (for example, the desktop), and the second display screen can display the display interface of the currently running application.

[0049] In one possible implementation, if the current posture of the foldable screen electronic device is a notebook state, the third direction is the same as the second direction.

[0050] In an embodiment of the present application, the first unfolded posture can be a notebook state. When the current posture of the folding screen electronic device is the notebook state and the main display screen of the folding screen electronic device is horizontal, the motion sensor of the main display screen cannot collect valid data at this time; therefore, the direction of the interface displayed on the second display screen can be used as the display direction of the folding screen electronic device.

[0051] In combination with the first aspect, in certain implementations of the first aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the second unfolded posture, the third direction is the same as the second direction.

[0052] In one possible implementation, if the current posture of the foldable screen electronic device is a tent state, the third direction is the same as the second direction.

[0053] In an embodiment of the present application, when the folding screen electronic device is in a tent state, the outer screen of the folding screen electronic device can be displayed. Normally, the outer screen of the folding screen electronic device and the secondary display screen are usually on different sides of one side. At this time, the second direction obtained based on the second data of the secondary display screen can be used as the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device, that is, the third direction is the same as the second direction.

[0054] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0055] In the case where the folding angle does not satisfy the first preset range, if the label value of the first direction is greater than or equal to the label value of the second direction, the third direction is the same as the first direction; or

[0056] If the label value of the first direction is smaller than the label value of the second direction, the third direction is the same as the second direction.

[0057] In a possible implementation, if the folding angle is greater than a first preset range, the third direction may be determined based on the label value of the first direction and the label value of the second direction.

[0058] In an embodiment of the present application, when the folding angle does not satisfy the first range, the label value based on the first direction can be compared with the label value based on the second direction, thereby outputting a valid third direction.

[0059] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:

[0060] The third direction is stored.

[0061] In an embodiment of the present application, the information of the third direction is stored in order to determine in a subsequent judgment whether it is necessary to adjust the display interface of the interface displayed by the foldable screen electronic device; for example, if the third direction obtained by the data at the previous moment is direction A (for example, the vertical screen display direction), and the third direction obtained based on the data at the current moment is also direction A, then the interface displayed by the foldable screen electronic device can remain unchanged; that is, the foldable screen electronic device may not adjust the display direction of the displayed interface; if the third direction obtained based on the data at the previous moment is direction A (for example, the vertical screen display direction), and the third direction obtained based on the data at the current moment is direction B (for example, the left horizontal screen display direction), then the foldable screen electronic device The device needs to adjust the display direction of the interface displayed in the foldable screen electronic device; or, when the output of the rotation direction recognition algorithm is an invalid state, it is necessary to obtain the stored direction information; for example, if the next frame data of the current frame is processed based on the display direction recognition algorithm, the output is an invalid state (for example, an invalid value is output or a lying posture is output), then the direction of the interface displayed by the foldable screen electronic device is the historical display direction obtained from the stored direction; in other words, when the output obtained by the foldable screen electronic device based on the rotation direction recognition algorithm is an invalid state, the direction of the interface displayed by the foldable screen electronic device can be the historical display direction; the foldable screen electronic device can not change the display direction of the displayed interface.

[0062] In conjunction with the first aspect, in some implementations of the first aspect, the first display screen and / or the second display screen is based on the third direction display interface, including:

[0063] The first display screen and the second display screen are based on the third direction display interface.

[0064] In an embodiment of the present application, the third direction is used to indicate the direction of the interface displayed on the first display screen and the second display screen; when the screen rotation function is turned on for both the first display screen and the second display screen, the first display screen and the second display screen can display the interface based on the third direction; at this time, the direction of the interface displayed on the first display screen and the second display screen is the same.

[0065] In conjunction with the first aspect, in some implementations of the first aspect, the first display screen and the second display screen are based on the third direction display interface, including:

[0066] A first operation is detected on the first display screen, where the first operation is an operation of instructing the first display screen to start screen rotation;

[0067] In response to the first operation, the first display screen displays an interface based on the third direction;

[0068] A second operation is detected on the second display screen, where the second operation is an operation of instructing the second display screen to start screen rotation;

[0069] In response to the second operation, the second display screen displays an interface based on the third direction.

[0070] In an embodiment of the present application, the first display screen and the second display screen can be controlled separately; that is, the control for starting screen rotation on the first display screen and the control for starting screen rotation on the second display screen can be set separately; when the operation of clicking the control for starting screen rotation on the first display screen and the operation of clicking the control for starting screen rotation on the second display screen are detected, the first display screen and the second display screen can display the interface based on the third direction.

[0071] Optionally, the first operation and the second operation may refer to operations that occur one after the other in time sequence, or may refer to operations that occur simultaneously in time.

[0072] In conjunction with the first aspect, in some implementations of the first aspect, the first display screen and the second display screen are based on the third direction display interface, including:

[0073] A third operation is detected on the first display screen, where the third operation is an operation of instructing the first display screen and the second display screen to start screen rotation;

[0074] In response to the third operation, the first display screen and the second display screen display an interface based on the third direction.

[0075] In an embodiment of the present application, the first display screen and the second display screen can be controlled as a whole; that is, a control can be set to realize the function of turning on / off screen rotation of the first display screen and the second display screen; thereby improving the convenience of operation.

[0076] In one possible implementation, the first display screen and / or the second display screen are based on the third direction display interface, including:

[0077] The first display screen is based on the third direction display interface; or the second display screen is based on the third direction display interface.

[0078] In one possible implementation direction, when the screen rotation function is turned on on the first display and the screen rotation function is not turned on on the second display, the first display can display the interface based on the third direction; the second display can display the interface based on the historical direction, that is, the direction of the interface displayed on the second display can remain unchanged.

[0079] In one possible implementation direction, when the screen rotation function is turned on on the first display and the screen rotation function is not turned on on the second display, the first display can display the interface based on the third direction; the second display can display the interface based on the historical direction, that is, the direction of the interface displayed on the second display can remain unchanged.

[0080] In one possible implementation direction, when the screen rotation function is turned on on the second display and the screen rotation function is not turned on on the first display, the second display can display the interface based on the third direction; the first display can display the interface based on the historical direction, that is, the direction of the interface displayed on the first display can remain unchanged.

[0081] In conjunction with the first aspect, in certain implementations of the first aspect, the first data, the second data, and the information about the folding angle are data acquired at time t, further comprising:

[0082] Get the interface display data at time t-1;

[0083] The first display screen and / or the second display screen are based on the third direction display interface and include:

[0084] The first display screen and / or the second display screen displays the interface based on the interface display data at the time t-1 and the third direction.

[0085] In an embodiment of the present application, the interface display data of the previous moment before the current moment can be obtained; when the interface is displayed at the current moment, the interface rendering can be realized based on the display interface data and the third direction, thereby effectively reducing the power consumption of the folding screen electronic device.

[0086] With reference to the first aspect, in certain implementations of the first aspect, obtaining the first direction based on the first data includes:

[0087] The first data is processed using a rotation direction recognition algorithm to obtain the first direction.

[0088] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining the second direction based on the second data includes:

[0089] The second data is processed using a rotation direction recognition algorithm to obtain the second direction.

[0090] In a second aspect, an electronic device is provided, comprising a module / unit for executing the display method according to the first aspect and any one of the first aspects.

[0091] According to a third aspect, an electronic device is provided, comprising one or more processors, a memory, a first display screen, a second display screen, a first motion sensor, and a second motion sensor; the memory is coupled to the one or more processors, the memory being configured to store computer program code, the computer program code comprising computer instructions, and the one or more processors invoking the computer instructions to cause the electronic device to execute:

[0092] Acquire first data, second data, and information about a folding angle, wherein the first data is data of the first display screen collected by the first motion sensor, the second data is data of the second display screen collected by the second motion sensor, and the folding angle is an angle between the first display screen and the second display screen;

[0093] Obtaining a first direction based on the first data, where the first direction is a direction of an interface displayed on the first display screen;

[0094] obtaining a second direction based on the second data, where the second direction is a direction of the interface displayed on the second display screen;

[0095] Obtaining a third direction based on the folding angle information, the first direction, and the second direction, where the third direction is a direction of the interface displayed on the first display screen and the second display screen;

[0096] The first display screen and / or the second display screen are based on the third direction display interface.

[0097] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0098] In conjunction with the third aspect, in certain implementations of the third aspect, obtaining the third direction based on the folding angle information, the first direction, and the second direction includes:

[0099] Determining a current posture of the folding screen electronic device based on the information of the folding angle, where the current posture is used to indicate whether the folding screen electronic device is currently in an unfolded state or a folded state;

[0100] The third direction is obtained based on the current posture, the first direction, and the second direction.

[0101] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0102] When the folding angle is less than or equal to a first preset threshold, determining that the current posture is a folding posture;

[0103] When the folding angle is less than or equal to a second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate an instantaneous posture of the folding screen electronic device, and the second preset threshold is greater than the first preset threshold;

[0104] When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0105] With reference to the third aspect, in certain implementations of the third aspect, the folding angle is an included angle between the first display screen and the second display screen obtained at time t, and the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0106] Acquire a first data set, where the first data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0107] When the included angle in the first data set satisfies the first preset range and the first display screen is horizontal, the current posture is determined to be the first unfolded posture.

[0108] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0109] When the folding angle is less than or equal to a third preset threshold, the current posture is determined to be a second unfolding posture, and the third preset threshold is greater than the first preset threshold and less than the second preset threshold.

[0110] With reference to the third aspect, in certain implementations of the third aspect, the folding angle is an included angle between the first display screen and the second display screen obtained at time t, and the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0111] Acquire a second data set, where the second data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0112] When the included angle in the second data set is less than or equal to the third preset threshold, the current posture is the second unfolded posture.

[0113] In combination with the third aspect, in certain implementations of the third aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the folding posture, the third direction is the same as the first direction.

[0114] In combination with the third aspect, in certain implementations of the third aspect, the first data, the second data and the information on the folding angle are data acquired at time t, and when the current posture is the intermediate posture, the third direction is the historical direction, and the historical direction is the direction of the interface displayed by the first display screen and the second display screen obtained based on the data acquired at time t-1.

[0115] In combination with the third aspect, in certain implementations of the third aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the first unfolded posture, the third direction is the same as the second direction.

[0116] In combination with the third aspect, in certain implementations of the third aspect, the first display screen is the main display screen of the folding screen electronic device, and when the current posture is the second unfolded posture, the third direction is the same as the second direction.

[0117] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0118] In the case where the folding angle does not satisfy the first preset range, if the label value of the first direction is greater than or equal to the label value of the second direction, the third direction is the same as the first direction; or

[0119] If the label value of the first direction is smaller than the label value of the second direction, the third direction is the same as the second direction.

[0120] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0121] The third direction is stored.

[0122] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0123] The first display screen and the second display screen are based on the third direction display interface.

[0124] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0125] A first operation is detected on the first display screen, where the first operation is an operation of instructing the first display screen to start screen rotation;

[0126] In response to the first operation, the first display screen displays an interface based on the third direction;

[0127] A second operation is detected on the second display screen, where the second operation is an operation of instructing the second display screen to start screen rotation;

[0128] In response to the second operation, the second display screen displays an interface based on the third direction.

[0129] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0130] A third operation is detected on the first display screen, where the third operation is an operation of instructing the first display screen and the second display screen to start screen rotation;

[0131] In response to the third operation, the first display screen and the second display screen display an interface based on the third direction.

[0132] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0133] Get the interface display data at time t-1;

[0134] The first display screen and / or the second display screen are based on the third direction display interface and include:

[0135] The first display screen and / or the second display screen displays the interface based on the interface display data at the time t-1 and the third direction.

[0136] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0137] The first data is processed using a rotation direction recognition algorithm to obtain the first direction.

[0138] In conjunction with the third aspect, in some implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to execute:

[0139] The second data is processed using a rotation direction recognition algorithm to obtain the second direction.

[0140] In a fourth aspect, an electronic device is provided, comprising one or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code comprising computer instructions, and the one or more processors calling the computer instructions to enable the electronic device to execute the display method of the first aspect and any one of the first aspects.

[0141] In a fifth aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the display method of the first aspect and any one of the first aspects.

[0142] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the display method of the first aspect and any one of the first aspects.

[0143] In a seventh aspect, a computer program product is provided, comprising: a computer program code, which, when executed by an electronic device, enables the electronic device to execute the display method of the first aspect and any one of the first aspects.

[0144] In an embodiment of the present application, a foldable screen electronic device may include a first display screen and a second display screen, wherein the first display screen corresponds to a first motion sensor, and the second display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, it can be obtained that the direction of the interface displayed on the first display screen is a first direction, and based on the second data collected by the second motion sensor, it can be obtained that the direction of the interface displayed on the second display screen is a second direction; based on the information of the folding angle between the first display screen and the second display screen, the first direction and the second direction, it can be obtained that the direction of the interface displayed on the first display screen and the second display screen in the foldable screen electronic device is a third direction; the first display screen and / or the second display screen displays the interface based on the third direction; compared with determining the display direction of the foldable screen electronic device based on the data collected by the motion sensor of the main display screen in the foldable screen electronic device, since in this scheme the direction of the interface displayed on the first display screen and the second display screen in the foldable screen electronic device, that is, the third direction is determined based on the data collected by the motion sensor corresponding to each display screen in the foldable screen electronic device and the folding angle between the display screens, the display method in this scheme can ensure that the foldable screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0145] FIG1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;

[0146] FIG2 is a schematic diagram of a software system of an electronic device applicable to the present application;

[0147] FIG3 is a schematic diagram of a foldable screen electronic device provided in an embodiment of the present application;

[0148] FIG4 is a schematic diagram of a foldable screen electronic device in different postures provided by an embodiment of the present application;

[0149] FIG5 is a schematic diagram of a foldable screen electronic device in a notebook state provided by an embodiment of the present application;

[0150] FIG6 is a schematic diagram of a foldable screen electronic device in a notebook state provided by an embodiment of the present application;

[0151] FIG7 is a schematic diagram of a foldable screen electronic device in a tent state provided by an embodiment of the present application;

[0152] FIG8 is a schematic flow chart of a display method provided in an embodiment of the present application;

[0153] FIG9 is a schematic diagram of the direction of an interface displayed on a display screen provided by an embodiment of the present application;

[0154] FIG10 is a schematic diagram of the direction of an interface displayed on a display screen provided by an embodiment of the present application;

[0155] FIG11 is a schematic flow chart of another display method provided in an embodiment of the present application;

[0156] FIG12 is a schematic flow chart of another display method provided in an embodiment of the present application;

[0157] FIG13 is a schematic flow chart of a rotation direction identification method provided in an embodiment of the present application;

[0158] FIG14 is a schematic diagram of a tilt angle or rotation angle of a foldable screen electronic device provided by an embodiment of the present application;

[0159] FIG15 is a schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0160] FIG16 is a schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0161] FIG17 is a schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0162] FIG18 is a schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0163] FIG19 is a schematic diagram of a foldable screen electronic device from a folded state to a notebook state provided by an embodiment of the present application;

[0164] FIG20 is a schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0165] FIG21 is a schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0166] FIG22 is a schematic diagram of another graphical user interface provided in an embodiment of the present application;

[0167] FIG23 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0168] FIG24 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0170] In order to facilitate the understanding of the embodiments of the present application, the relevant concepts involved in the embodiments of the present application are first briefly described.

[0171] 1. Accelerometer

[0172] An accelerometer is a device that can measure acceleration force.

[0173] 2. Hall sensor

[0174] A Hall effect sensor is a magnetic field sensor based on the Hall effect. Its output voltage is proportional to the strength of the magnetic field. As the name suggests, this device operates on the principle of the Hall effect, which states that when a conductor is energized and subjected to a magnetic field, a voltage is generated across the conductor.

[0175] 3. Motion sensor

[0176] Motion sensors may include acceleration, gravity, rotation vector, and other sensors.

[0177] 4. Gyroscope sensor

[0178] The gyroscope sensor (gyro-sensor) is used to measure the rotation rate around the x, y, and z axes of the device.

[0179] FIG1 shows a hardware system of an electronic device suitable for the present application.

[0180] The electronic device 100 can be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device 100.

[0181] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0182] It should be noted that the structure shown in FIG1 does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG1, or the electronic device 100 may include a combination of some of the components shown in FIG1, or the electronic device 100 may include sub-components of some of the components shown in FIG1. ​​The components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.

[0183] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). The different processing units may be independent devices or integrated devices. The controller may generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.

[0184] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0185] In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and a USB interface.

[0186] Exemplarily, in an embodiment of the present application, the processor 110 can be used to execute the display method provided by the embodiment of the present application; for example, obtaining first data, second data and information on a folding angle, the first data being data of the first display screen collected by the first motion sensor, the second data being data of the second display screen collected by the second motion sensor, and the folding angle being the angle between the first display screen and the second display screen; based on the first data, obtaining a first direction, which is the direction of the interface displayed on the first display screen; based on the second data, obtaining a second direction, which is the direction of the interface displayed on the second display screen; based on the information on the folding angle, the first direction and the second direction, obtaining a third direction, which is the direction of the interface displayed on the first display screen and the second display screen; the first display screen and / or the second display screen displays the interface based on the third direction.

[0187] 1 is merely a schematic illustration and does not limit the connection relationship between the modules of the electronic device 100. Optionally, the modules of the electronic device 100 may also adopt a combination of the multiple connection modes in the above embodiments.

[0188] The wireless communication function of the electronic device 100 can be implemented through components such as the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.

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

[0190] Electronic device 100 can implement display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0191] Display screen 194 may be used to display images or videos.

[0192] Optionally, the display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0193] For example, in an embodiment of the present application, the electronic device 100 may be a folding screen electronic device; the display screen 194 may include at least two display screens.

[0194] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0195] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the camera to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can perform algorithmic optimization on image noise, brightness, and color. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0196] The camera 193 (also called the lens) is used to capture still images or videos. It can be triggered to turn on through application instructions to realize the photo function, such as capturing images of any scene. The camera may include components such as an imaging lens, a filter, and an image sensor. The light emitted or reflected by the object enters the imaging lens, passes through the filter, and finally converges on the image sensor. The imaging lens is mainly used to focus the light emitted or reflected by all objects in the photographic field of view (also called the scene to be photographed, the target scene, or the scene image that the user expects to capture) to form an image; the filter is mainly used to filter out excess light waves in the light (for example, light waves other than visible light, such as infrared); the image sensor can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The image sensor is mainly used to perform photoelectric conversion on the received light signal, convert it into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB, YUV, etc.

[0197] In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.

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

[0199] For example, a video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. This allows the electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0200] Exemplarily, the gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x-axis, the y-axis, and the z-axis) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyroscope sensor 180B can also be used in scenarios such as navigation and somatosensory games.

[0201] For example, the accelerometer 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (typically the x-axis, y-axis, and z-axis). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The accelerometer 180E can also be used to identify the posture of the electronic device 100, which can be used as an input parameter for applications such as landscape / portrait switching and pedometers.

[0202] Exemplarily, the distance sensor 180F is used to measure distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, for example, in a shooting scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0203] For example, ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0204] For example, the fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement functions such as unlocking, accessing application locks, taking photos, and answering calls.

[0205] For example, the touch sensor 180K is also referred to as a touch-sensitive device. The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also referred to as a touch screen. The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180K can transmit the detected touch operations to an application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100 and at a different location from the display screen 194.

[0206] For example, in an embodiment of the present application, the electronic device 100 may refer to a folding screen electronic device; the display screen 194 may include at least two display screens.

[0207] The hardware system of the electronic device 100 is described in detail above. The software system of the electronic device 100 is introduced below.

[0208] FIG2 is a schematic diagram of a software system of an electronic device provided in an embodiment of the present application.

[0209] As shown in FIG. 2 , the system architecture may include an application layer 210 , an application framework layer 220 , a hardware abstraction layer 230 , and a hardware layer 240 .

[0210] The application layer 210 may include a settings application or other applications; other applications include but are not limited to: camera application, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0211] The application framework layer 220 provides an application programming interface (API) and a programming framework for application programs in the application layer; the application framework layer may include some predefined functions.

[0212] For example, in an embodiment of the present application, the application framework layer 220 may include a predefined function or interface for automatically rotating the display direction.

[0213] The hardware abstraction layer 230 is used to abstract the hardware.

[0214] Exemplarily, the hardware abstraction layer 230 may include a hardware abstraction module 231; wherein, the hardware abstraction module 231 may include a display algorithm of the folding screen electronic device (for example, as shown in Figure 8, Figure 11 or Figure 12) and a rotation direction recognition algorithm (for example, as shown in Figure 13); for example, the hardware abstraction module 231 can be used to run the display algorithm of the folding screen electronic device to execute the display method provided by the embodiment of the present application; through the display method provided by the embodiment of the present application, the current posture of the folding screen electronic device can be identified, so that the folding screen electronic device can determine the display direction of the display interface in the display screen based on the current posture.

[0215] The hardware layer 240 is located at the bottom layer of the operating system; for example, the hardware layer 240 may include motion sensor 1, motion sensor 2, display screen 1 and display screen 2; wherein, motion sensor 1 corresponds to display screen 1; motion sensor 2 corresponds to display screen 2.

[0216] Optionally, the motion sensor 1 may include an acceleration sensor 1 and a Hall sensor 1 , and the motion sensor 2 may include an acceleration sensor 2 and a Hall sensor 2 .

[0217] Optionally, a driver layer may be included between the hardware abstraction layer 230 and the hardware layer 240 ; the driver layer may be used to provide drivers for different hardware devices.

[0218] Generally, for foldable electronic devices, the usage modes of the foldable electronic device can include: an unfolded state, a semi-folded state, or a folded state, according to the folding angle of the foldable electronic device from large to small. For example, as shown in (a) of Figure 3, the unfolded state of the foldable electronic device is shown. The two display screens included in the foldable electronic device can be display screen 201 and display screen 202; when the foldable electronic device is in the unfolded state, the angle between the two display screens can be 180°.

[0219] Optionally, as shown in (a) in Figure 3, the axis k can be the axis when the folding screen electronic device is bent; the display screen 201 can be located on the left side of the axis k, that is, it can refer to the B side of the folding screen electronic device; the display screen can be located on the right side of the axis k, that is, it can refer to the A side of the folding screen electronic device; the back side of the display screen 202 (for example, the side not used for display) can include a camera.

[0220] Optionally, an external display screen may be further included on the back side of the display screen 201 , that is, the other side of the B surface in the opposite direction to the display screen 201 .

[0221] For example, the folding state of the folding screen electronic device is shown in (b) in Figure 3; when the folding screen electronic device is in the folded state, the angle between the two display screens can be 0°; for example, the backs of the two display screens (the side not used for display) can be relatively fitted together, and at this time the folding method of the folding screen electronic device can be called outward folding.

[0222] Optionally, the posture of the foldable screen electronic device may include an unfolded state, a folded state, a tent state or a notebook state.

[0223] For example, the unfolded state of the foldable screen electronic device can be as shown in (a) in Figure 4, wherein the display screen 201 can be the secondary display screen of the foldable screen electronic device, and the display screen 202 can be the main display screen of the foldable screen electronic device; the back of the main display screen (for example, the side not used for display) includes a camera; when the foldable screen electronic device is in the unfolded state, the display screen 201 and the display screen 202 can be used for display.

[0224] Exemplarily, the folded state of the folding screen electronic device can be as shown in (b) of Figure 4. When the folding screen electronic device is in the folded state, only the outer display screen in the folding screen electronic device can be used for display; wherein, the outer display screen and the secondary display screen can be located on different sides of the same surface of the folding screen electronic device.

[0225] Exemplarily, the tent state of the folding screen electronic device can be as shown in (c) or (d) in Figure 4. When the folding screen electronic device is in the tent state, the outer display screen of the folding screen electronic device can be in a working state, and the angle between the display screen 201 and the display screen 202 can be an acute angle (for example, the angle can be less than 45 degrees).

[0226] Exemplarily, the notebook state of the foldable screen electronic device can be as shown in (e) or (f) in Figure 4. When the foldable screen electronic device is in the notebook state, the two display screens in the foldable screen electronic device can support independent display of content; for example, one of the two display screens of the foldable screen electronic device can be used to display the main interface, and the other display screen can be used to display the interface of the running application.

[0227] It should be understood that the above is an example of the posture of a foldable screen electronic device, and this application does not impose any limitation on the posture of a foldable screen electronic device.

[0228] It should be understood that for foldable screen electronic devices, they can transition from an unfolded state to a semi-expanded state (for example, a tent state or a notebook state), and then switch to a folded state; they can also transition from a folded state to a semi-expanded state, and then switch to an unfolded state. This process is dynamic and reversible.

[0229] At present, for single-screen electronic devices, the display direction of the electronic device's display screen is only related to the state of the display screen itself; however, for folding-screen electronic devices, folding-screen electronic devices usually include two display screens, and each display screen has a corresponding motion sensor; since folding-screen electronic devices have relatively many posture positions, if only the data collected by the motion sensor of the main display screen in the folding-screen electronic device is used to determine the display direction of the folding-screen electronic device, it is impossible to accurately identify the posture of the electronic device during use, and adjust the direction, split screen, etc. of the display screen accordingly, thereby failing to meet the user's usage needs in different scenarios.

[0230] In one example, if based on the existing posture recognition algorithm of the folding screen electronic device, that is, using the data collected by the motion sensor of the main display screen of the electronic device to identify the posture of the folding screen electronic device; when the folding screen electronic device is in the notebook state, some scenarios cannot support the automatic rotation of the display interface.

[0231] For example, (a) in FIG5 is a main view of the foldable screen electronic device when it is in the notebook state, and (b) in FIG5 is a side view of the foldable screen electronic device when it is in the notebook state; if based on the existing posture recognition algorithm of the foldable screen electronic device, the posture of the foldable screen electronic device is usually identified by the data collected by the motion sensor corresponding to the main display screen, that is, the posture of the foldable screen electronic device is identified by the data collected by the motion sensor corresponding to the display screen 201 (side B); when the foldable screen electronic device is in the notebook state as shown in FIG5, since the main display screen 201 generates movement, the foldable screen electronic device can realize automatic rotation based on the data of the motion sensor corresponding to the main display screen 201, and after the rotation The display interface is shown in (a) in Figure 5; however, if the folding screen electronic device is in the notebook state as shown in Figure 6, wherein (a) in Figure 6 is the main view of the folding screen electronic device when it is in the notebook state, and (b) in Figure 6 is the side view of the folding screen electronic device when it is in the notebook state; as shown in (b) in Figure 6, since the main display screen 201 (side A) may have been in a horizontal state without moving, the motion sensor corresponding to the main display screen 201 cannot collect corresponding data, then when the folding screen electronic device is in the notebook state as shown in (a) in Figure 6, the display interface in the folding screen electronic device does not achieve automatic rotation; thus resulting in a poor user experience.

[0232] In one example, if based on the existing posture recognition algorithm of the folding screen electronic device, that is, using the data collected by the motion sensor of the main display screen of the electronic device to identify the posture of the folding screen electronic device; when the folding screen electronic device is in the tent state, some scenes cannot support the automatic rotation of the display interface, or the display direction of some scenes is opposite to the display direction expected by the user.

[0233] For example, (a) in Figure 7 is a front view of the folding screen electronic device when it is in a tent state, and (b) in Figure 7 is a side view of the folding screen electronic device when it is in a tent state; as shown in (b) in Figure 7, the x-axis recognized by the motion sensor corresponding to the display screen 201 (side B) is opposite to the x-axis recognized by the motion sensor corresponding to the display screen 202 (side A), and the recognized z-axis directions are also different; therefore, the accuracy of identifying the posture of the folding screen electronic device based on data collected by the motion sensor of one display screen in the folding screen electronic device is low.

[0234] In view of this, an embodiment of the present application provides a display method suitable for a foldable screen electronic device; in the scheme of the present application, the foldable screen electronic device may include a first display screen and a second display screen, wherein the first display screen corresponds to the first motion sensor, and the second display screen corresponds to the second sensor; based on the first data collected by the first motion sensor, it can be obtained that the direction of the interface displayed on the first display screen is the first direction, and based on the second data collected by the second motion sensor, it can be obtained that the direction of the interface displayed on the second display screen is the second direction; based on the information of the folding angle between the first display screen and the second display screen, the first direction and the second direction, it can be obtained that the direction of the interface displayed on the first display screen and the second display screen is the third direction; compared with determining the display direction of the foldable screen electronic device based on the data collected by the motion sensor of the main display screen in the foldable screen electronic device, the third direction in the embodiment of the present application is determined based on the data collected by each motion sensor in the foldable screen electronic device and the folding angle information. Therefore, the display method in the embodiment of the present application can be applicable to various postures of the foldable screen electronic device, thereby ensuring that the direction of the interface displayed by the foldable screen electronic device in various scenarios can meet the user's usage needs and improve the user's usage experience.

[0235] Optionally, the display method provided in the embodiment of the present application is applicable to identifying different postures of the folding screen electronic device, and the different postures of the folding screen electronic device may include any posture as shown in Figure 4.

[0236] The display method provided in the embodiment of the present application is described in detail below with reference to Figures 8 to 22.

[0237] FIG8 is a schematic flow chart of a display method provided by an embodiment of the present application. The method can be executed by the electronic device shown in FIG1 ; the method 300 includes steps S310 to S340 , which are described in detail below.

[0238] It should be understood that the display method provided in the embodiments of the present application is applicable to foldable screen electronic devices; the foldable screen electronic device may include a first display screen and a second display screen; each display screen in the foldable screen electronic device may correspond to a motion sensor; for example, the foldable screen electronic device also includes a first motion sensor and a second motion sensor, wherein the first motion sensor is used to collect data from the first display screen, and the second motion sensor is used to collect data from the second display screen.

[0239] Step S310: Obtain first data, second data, and folding angle information.

[0240] The first data is data of the first display screen collected by the first motion sensor; the second data is data of the second display screen collected by the second motion sensor; and the folding angle may be the angle between the first display screen and the second display screen.

[0241] Optionally, the first motion sensor may include a first acceleration sensor, which is used to collect acceleration data of the first display screen; the second motion sensor may include a second acceleration sensor, which is used to collect acceleration data of the second display screen.

[0242] Optionally, the first motion sensor may further include a first Hall sensor and / or a first gyroscope sensor; and the second motion sensor may further include a second Hall sensor and / or a second gyroscope sensor.

[0243] It should be understood that for foldable screen electronic devices, different display screens can correspond to different motion sensors; for example, one motion sensor can be used to collect data for one display screen.

[0244] Optionally, the data may include, but is not limited to, acceleration data, gyroscope data, or other display screen data collected by a display screen motion sensor.

[0245] Optionally, as shown in (a) in Figure 4, the folding angle may refer to the angle between the inner screen of side A and the inner screen of side B in a folding screen electronic device.

[0246] For example, the folding angle may be as shown in (a) of FIG. 5 , and the folding angle may be referred to as the folding angle C.

[0247] Optionally, the folding angle information may be obtained based on data from an acceleration sensor, a gyroscope sensor, or a Hall sensor corresponding to the first display screen and the second display screen, respectively.

[0248] For example, the Hall signal is read by the Hall sensor in the foldable screen electronic device, and then the angle corresponding to the Hall signal is obtained by looking up the table; or, the acceleration sensor and gyroscope sensor set on the two display screens in the foldable screen electronic device are used to read the acceleration signal and angular velocity signal corresponding to each display screen respectively; then, the folding state of the foldable screen electronic device is detected; according to the different folding states of the foldable screen electronic device, different algorithms are used to determine the folding angle of the foldable screen electronic device with the two sets of acceleration signals and angular velocity signals, or in combination with the two sets of angular velocity signals.

[0249] It should be understood that the above is an example of how to obtain the folding angle, and this application does not impose any limitation on this.

[0250] Step S320: Obtain a first direction based on the first data.

[0251] The first direction is the direction of the interface displayed on the first display screen.

[0252] It should be understood that the first direction may refer to an arrangement direction of content information displayed on the first display screen.

[0253] Optionally, the first data may be processed by a rotation direction recognition algorithm to obtain the first direction. Optionally, the rotation direction recognition algorithm may refer to the subsequent description of FIG13 .

[0254] Optionally, the first direction may include but is not limited to any of the following:

[0255] Portrait display orientation, left horizontal display orientation, inverted portrait display orientation or right horizontal display orientation; wherein, when the foldable screen electronic device is in portrait display orientation, the charging port in the foldable screen electronic device faces downward; when the foldable screen electronic device is in left horizontal display orientation, the charging port in the foldable screen electronic device faces right; when the foldable screen electronic device is in inverted portrait display orientation, the charging port in the foldable screen electronic device faces upward; when the foldable screen electronic device is in right horizontal display orientation, the charging port in the foldable screen electronic device faces left.

[0256] For example, Figure 9 is taken as an example for explanation; Figure 9 takes a single display as an example, and the single display screen can be any display screen in a folding screen electronic device; as shown in (a) in Figure 9, it is a vertical screen display direction. When the direction of the interface displayed on the display screen is the vertical screen display direction, the content information displayed in the interface is arranged toward the positive direction of the y-axis; as shown in (b) in Figure 9, it is a left horizontal screen display direction. When the direction of the interface displayed on the display screen is the left horizontal screen display direction, the content information displayed in the interface is arranged toward the negative direction of the x-axis; as shown in (c) in Figure 9, it is an inverted vertical display direction. When the direction of the interface displayed on the display screen is the inverted vertical display direction, the content information displayed in the interface is arranged toward the negative direction of the y-axis; as shown in (d) in Figure 9, it is a right horizontal screen display direction. When the direction of the interface displayed on the display screen is the right horizontal screen display direction, the content information displayed in the interface is arranged toward the negative direction of the x-axis.

[0257] Optionally, a main interface and a floating window can also be included in a display screen; for example, as shown in (a) in Figure 10, the electronic device includes a first side 371, a second side 372, a third side 373 and a fourth side 374; the display screen includes a main interface 380 and a floating window 381; at this time, the direction of the interface displayed on the display screen may refer to the direction in which the interface is facing; as shown in (a) in Figure 10, the direction of displaying the main interface 380 and the floating window 381 may be pointing upward, that is, the display directions of the main interface 380 and the floating window 381 are both toward the first side 371; similarly, as shown in (b) in Figure 10, the direction of displaying the main interface 382 and the floating window 383 may be pointing to the right, that is, the display directions of the main interface 382 and the floating window 383 are both toward the second side 372.

[0258] It should be understood that Figure 10 takes a single display screen as an example to illustrate the direction of the display interface of the display screen; the display screen in Figure 10 can also be any display screen in a folding screen electronic device; the descriptions in Figures 9 and 10 are also applicable to folding screen electronic devices.

[0259] Step S330: Obtain a second direction based on the second data.

[0260] The second direction is the direction of the interface displayed on the second display screen.

[0261] It should be understood that the second direction may refer to the arrangement direction of the content information displayed on the second display screen.

[0262] For example, the second data may be processed by a rotation direction recognition algorithm to obtain the second direction. Optionally, the rotation direction recognition algorithm may refer to the subsequent description of FIG13 .

[0263] Optionally, the second direction may include but is not limited to any of the following:

[0264] Portrait display direction, left horizontal display direction, inverted portrait display direction or right horizontal display direction, etc.; for specific descriptions, please refer to the relevant descriptions of Figures 9 and 10 above, which will not be repeated here.

[0265] Step S340: Obtain a third direction based on the folding angle information, the first direction, and the second direction.

[0266] The third direction is the direction of the interface displayed on the first display screen and the second display screen.

[0267] It should be understood that the first direction may be the direction of the interface displayed on the first display screen; the second display screen may be the direction of the interface displayed on the second display screen; based on the folding angle between the first display screen and the second display screen, the third direction that can be obtained by the first direction and the second direction, the third direction may be the direction of the interface displayed on the first display screen and the second display screen; that is, the third direction obtained through the embodiment of the present application can be used at the same time to indicate the direction of the interface displayed on the first display screen and the second display screen.

[0268] Optionally, obtaining a third direction based on the folding angle information, the first direction, and the second direction includes:

[0269] Determining a current posture of the foldable screen electronic device based on the folding angle information, where the current posture is used to indicate whether the foldable screen electronic device is currently in an unfolded state or a folded state;

[0270] A third direction is obtained based on the current posture, the first direction, and the second direction.

[0271] In an embodiment of the present application, the current posture of the folding screen electronic device can be determined based on the folding angle; the display direction of the folding screen electronic device in the current posture, that is, the third direction, can be obtained based on the current posture and the first direction and the second direction; in an embodiment of the present application, the third direction is obtained based on the data collected by the first motion sensor in the first display screen, the data collected by the second motion sensor in the second display screen, and the folding angle. Therefore, compared with the display direction obtained only based on the data collected by the motion sensor in the main display screen of the folding screen electronic device, the display method provided by the embodiment of the present application can be applied to more application scenarios, that is, it can be applicable to more postures of the folding screen electronic device; avoid the problem of the display direction being opposite to the user's expected direction in some scenarios, thereby meeting the user's usage needs in different scenarios; and improve the user experience.

[0272] Optionally, in an embodiment of the present application, the current posture of the folding screen electronic device may include an unfolded state, a folded state, a tent state or a notebook state; wherein the unfolded state may be as shown in (a) in Figure 4; the folded state may be as shown in (b) in Figure 4; the tent state may be as shown in (c) in Figure 4, or, as shown in (d) in Figure 4; the notebook state may be as shown in (e) in Figure 4, or, as shown in (f) in Figure 4.

[0273] Optionally, when the foldable screen electronic device is in notebook state, the first display screen and the second display screen in the foldable screen electronic device can be related and independent; for example, the first display screen can display the main interface of the foldable screen electronic device, and the second display screen can display the display interface of the currently running application in the foldable screen electronic device.

[0274] The following describes in detail the process of obtaining the third direction based on the current posture, the first direction and the second direction when the folding screen electronic device is in different current postures.

[0275] Optionally, determining the current posture of the folding screen electronic device based on the folding angle information includes:

[0276] When the folding angle is less than or equal to a first preset threshold, determining the current posture as the folding posture;

[0277] When the folding angle is less than or equal to the second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate the instantaneous posture of the folding screen electronic device, and determining that the second preset threshold is greater than the first preset threshold;

[0278] When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0279] Optionally, when the folding angle is less than or equal to a third preset threshold, the current posture is determined to be the second unfolding posture, and the third preset threshold is greater than the first preset threshold and less than the second preset threshold.

[0280] Exemplarily, the first preset threshold may be 10 degrees; if the folding angle between the first display screen and the second display screen is less than or equal to 10 degrees, it may be considered that the folding screen electronic device is in a folded state.

[0281] Exemplarily, the third preset threshold may be 45 degrees, and the second unfolding posture may mean that the folding screen electronic device is in a tent state.

[0282] Exemplarily, the second preset threshold may be 70 degrees, and the second unfolding posture may refer to the folding screen electronic device being in an intermediate state of transitioning from a tent state to a notebook state.

[0283] Exemplarily, the first preset range may be [70, 135], and the first unfolding posture may refer to the folding screen electronic device being in a notebook state.

[0284] In an embodiment of the present application, when determining whether a foldable screen electronic device is in the first or second unfolded posture, the determination can be made based on information from multiple frames of folding angles. Since the tent and laptop positions are not instantaneous, if the foldable screen electronic device is in either the tent or laptop position, the information from multiple frames of folding angles can satisfy the condition. Furthermore, determining whether the foldable screen electronic device is in the tent or laptop position based on multiple frames of data can also avoid false touch data generated by accidentally touching the foldable screen electronic device, thereby improving the accuracy of identifying the current posture.

[0285] Optionally, the folding angle is angle information obtained based on current frame data, and when the folding angle satisfies a first preset range and the first display screen is horizontal, determining the current posture as the first unfolded posture includes:

[0286] A first data frame set is acquired, the first data frame set including current frame data; and when a folding angle of the first data frame set satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0287] In an embodiment of the present application, when determining the current posture of the folding screen electronic device based on the folding angle between the first display screen and the second display screen, in order to ensure the accuracy of the current posture, information of multiple frames of folding angles can be obtained; the current posture of the folding screen electronic device is determined when multiple frames of data meet the conditions; thereby effectively avoiding the problem of low accuracy in identifying the current posture of the folding screen electronic device due to false touches, and improving the accuracy of the current posture.

[0288] Optionally, the folding angle is angle information obtained based on current frame data, and when the folding angle is less than or equal to a third preset threshold, determining the current posture as the second unfolded posture includes:

[0289] A second data frame set is acquired, where the second data frame set includes current frame data; when the folding angle of the second data frame set is less than or equal to the third preset threshold, the current posture is a second unfolding posture.

[0290] In an embodiment of the present application, when determining the current posture of the folding screen electronic device based on the folding angle between the first display screen and the second display screen, in order to ensure the accuracy of the current posture, information of multiple frames of folding angles can be obtained; the current posture of the folding screen electronic device is determined when multiple frames of data meet the conditions; thereby effectively avoiding the problem of low accuracy in identifying the current posture of the folding screen electronic device due to false touches, and improving the accuracy of the current posture.

[0291] Optionally, the first data frame set and the second data frame set may include data of the same number of frames; or, the first data frame set and the second data frame set may include data of different numbers of frames.

[0292] Exemplarily, the third direction is related to the information of the folding angle of the folding screen electronic device; due to different folding angles, the current posture of the folding screen electronic device is different; therefore, the third direction is related to the current posture of the folding screen electronic device, which may include the following situations.

[0293] Scenario 1: The first display screen is the main display screen of the foldable screen electronic device. If the current posture of the foldable screen electronic device is a folded state, the third direction is the same as the first direction.

[0294] It should be understood that the main display screen may refer to a display screen pre-configured in a folding screen electronic device, or the main display screen may refer to a display screen in a folding screen electronic device that includes an external camera.

[0295] Optionally, the first display screen is a main display screen of the folding screen electronic device. When the current posture is a folding posture, the third direction is the same as the first direction.

[0296] In an embodiment of the present application, if the folding screen electronic device is in a folded state, the direction of any display screen can be used as the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device; for example, if the folding screen electronic device is in a folded state, the first direction of the main display screen can be set as the display direction of the folding screen electronic device; that is, the third direction is the same as the first direction.

[0297] Scenario 2: If the current posture of the foldable screen electronic device is an intermediate posture, the third direction is the same as the historical direction.

[0298] Optionally, the first data, the second data and the folding angle information are data obtained at time t. When the current posture is an intermediate posture, the third direction is the historical direction, and the historical direction is the direction of the interface displayed on the first display screen and the second display screen based on the data obtained at time t-1.

[0299] For example, the intermediate posture may refer to an intermediate posture from the tent posture to the notebook posture; the posture may be a transient posture for a short moment.

[0300] For example, if based on the first data, second data and folding angle information obtained at time t-1, the third direction at time t-1 is direction A; then based on the angle information obtained at time t, it is determined that the current posture of the folding screen electronic device is the intermediate posture, then the third direction at time t is direction A.

[0301] Scenario three: If the current posture of the foldable screen electronic device is a notebook state, the third direction is the same as the second direction.

[0302] Optionally, the first display screen is a main display screen of the folding screen electronic device, and when the current posture is the first unfolded posture, the third direction is the same as the second direction.

[0303] In an embodiment of the present application, when the current posture of the folding screen electronic device is a notebook state and the main display screen of the folding screen electronic device is horizontal, the motion sensor of the main display screen cannot collect valid data at this time; therefore, the display direction of the second display screen can be used as the display direction of the folding screen electronic device.

[0304] Scenario 4: If the current posture of the foldable screen electronic device is a tent state, the third direction is the same as the second direction.

[0305] Optionally, the first display screen is a main display screen of the folding screen electronic device, and when the current posture is the second unfolded posture, the third direction is the same as the second direction.

[0306] In an embodiment of the present application, when the folding screen electronic device is in a tent state, the direction of the interface displayed by the first display screen and the second display screen in the folding screen electronic device is the second direction; since the outer screen of the folding screen electronic device can be displayed when the folding screen electronic device is in a tent state, usually the outer screen of the folding screen electronic device and the secondary display screen are usually on different sides of one side. At this time, the second direction obtained based on the secondary display screen can be used as the display direction of the folding screen electronic device, that is, the third direction is the same as the second direction.

[0307] Case 5: If the folding angle is greater than the first preset range, the third direction may be determined based on the label value of the first direction and the label value of the second direction.

[0308] Optionally, when the folding angle does not meet the first preset range, if the label value of the first direction is greater than or equal to the label value of the second direction, the third direction is the same as the first direction; or,

[0309] If the label value of the first direction is smaller than the label value of the second direction, the third direction is the same as the second direction.

[0310] For example, assume that the label value of the portrait display direction is 0; the label value of the left landscape display direction is 1; the label value of the inverted portrait display direction is 2; the label value of the right landscape display direction is 3; when the folding angle does not meet the first preset range, the first direction is the left landscape display direction and the second direction is the portrait display direction, then the label value of the first direction is 0 and the label value of the second direction is 1. At this time, the label value of the first direction is less than the label value of the second direction, then the third direction is the same as the second direction.

[0311] In an embodiment of the present application, when the folding angle does not satisfy the first range, the label value of the first direction can be compared with the label value of the second direction, thereby outputting a valid display direction.

[0312] Step S350: The first display screen and / or the second display screen displays an interface based on the third direction.

[0313] Optionally, the first display screen and the second display screen may be based on a third direction display interface.

[0314] Optionally, it may be determined first whether the screen rotation function is enabled for the first display screen and the second display screen. If the screen rotation function is enabled, the first display screen and / or the second display screen may display an interface based on the third orientation.

[0315] In one example, if the screen rotation function is enabled on both the first display screen and the second display screen, the first display screen and the second display screen may display an interface based on a third orientation.

[0316] In one example, if the screen rotation function is enabled on the first display and the screen rotation function is not enabled on the second display, the first display may display the interface based on the third orientation; the orientation of the interface displayed on the second display may remain unchanged.

[0317] For example, as shown in Figure 18, the first display screen can be display screen 201, the second display screen can be display screen 202, and the third direction is the vertical screen display direction; at this time, since the screen rotation function of display screen 202 is turned on, the game display interface displayed by display screen 201 does not turn on the screen rotation function. Therefore, the interface displayed by display screen 202 is the vertical screen display direction, and the interface displayed by display screen 201 is the right horizontal screen display direction.

[0318] In one example, if the screen rotation function is enabled on the second display and the screen rotation function is not enabled on the first display, the second display may display the interface based on the third orientation; the orientation of the interface displayed on the first display may remain unchanged.

[0319] In one example, in an embodiment of the present application, two independent controls may be used to control whether the first display screen and the second display screen have screen rotation functions enabled.

[0320] Optionally, the first display screen and the second display screen are based on a third-direction display interface, including:

[0321] A first operation is detected on the first display screen, where the first operation is an operation of instructing the first display screen to start screen rotation;

[0322] In response to the first operation, the first display screen displays an interface based on the third direction;

[0323] A second operation is detected on the second display screen, where the second operation is an operation of instructing the second display screen to start screen rotation;

[0324] In response to the second operation, the second display screen displays the interface based on the third direction.

[0325] Exemplarily, a foldable screen electronic device may include a first control, which is a control for turning on / off the screen rotation function of the first display screen; the first operation may refer to an operation of turning on the screen rotation function of the first display screen; for example, the first operation may refer to an operation of clicking the first control.

[0326] Exemplarily, the foldable screen electronic device may include a second control, which is a control for turning on / off the screen rotation function of the second display screen; the second operation may refer to the operation of turning on the screen rotation function of the second display screen; for example, the second operation may refer to the operation of clicking the second control.

[0327] In one example, in an embodiment of the present application, one control can be used to control whether the screen rotation function of the first display screen and the second display screen is enabled.

[0328] Optionally, the first display screen and the second display screen are based on a third-direction display interface, including:

[0329] A third operation is detected on the first display screen, where the third operation is an operation of instructing the first display screen and the second display screen to start screen rotation;

[0330] In response to the third operation, the first display screen and the second display screen display an interface based on the third direction.

[0331] Exemplarily, the foldable screen electronic device may include a third control, which is a control for turning on / off the screen rotation function of the first display screen and the second display screen; the third operation may refer to the operation of turning on the screen rotation function of the first display screen and the second display screen; for example, the third operation may refer to the operation of clicking the third control.

[0332] Optionally, the first data, the second data and the information about the folding angle are data acquired at time t, and further include:

[0333] Get the interface display data at time t-1;

[0334] The first display screen and / or the second display screen is based on a third-direction display interface, including:

[0335] The first display screen and / or the second display screen displays the interface in the third direction based on the interface display data at time t-1.

[0336] In an embodiment of the present application, the interface display data of the previous moment before the current moment can be obtained; when the interface is displayed at the current moment, the interface rendering can be realized based on the display interface data and the third direction, thereby effectively reducing the power consumption of the folding screen electronic device.

[0337] Optionally, in an embodiment of the present application, the method further includes storing a third direction. It should be understood that the purpose of storing the direction information is to determine in a subsequent judgment whether the display interface of the interface displayed by the foldable screen electronic device needs to be adjusted; for example, if the third direction obtained based on the data obtained at the previous moment before the current moment is direction A (for example, a vertical screen display direction), and the third direction obtained based on the data obtained at the current moment is also direction A, then the direction of the interface displayed by the foldable screen electronic device can remain unchanged; that is, the foldable screen electronic device can not adjust the display direction of the displayed interface. If the third direction obtained based on the data obtained at the previous moment of the current moment is direction A (for example, vertical screen display direction), and the third direction obtained based on the data obtained at the current moment is direction B (for example, left horizontal screen display direction), then the folding screen electronic device needs to adjust the display direction of the interface displayed in the folding screen electronic device; or, when the rotation direction recognition algorithm outputs an invalid state, it is necessary to obtain the stored third direction information; for example, if the data of the next moment of the current moment is processed based on the display direction recognition algorithm, the output is an invalid state (for example, an invalid value is output or a lying posture is output), then the direction of the interface displayed by the folding screen electronic device is the historical direction obtained from the stored directions; in other words, when the output obtained by the folding screen electronic device based on the rotation direction recognition algorithm is an invalid state, the direction of the interface displayed by the folding screen electronic device can be the historical direction; the folding screen electronic device can not change the display direction of the displayed interface.

[0338] In an embodiment of the present application, a foldable screen electronic device may include a first display screen and a second display screen, wherein the first display screen corresponds to a first motion sensor, and the second display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, it can be obtained that the direction of the interface displayed on the first display screen is a first direction, and based on the second data collected by the second motion sensor, it can be obtained that the direction of the interface displayed on the second display screen is a second direction; based on the information of the folding angle between the first display screen and the second display screen, the first direction and the second direction, it can be obtained that the direction of the interface displayed on the first display screen and the second display screen in the foldable screen electronic device is a third direction; the first display screen and / or the second display screen displays the interface based on the third direction; compared with determining the display direction of the foldable screen electronic device based on the data collected by the motion sensor of the main display screen in the foldable screen electronic device, since in this scheme the third direction is determined based on the data collected by the motion sensor corresponding to each display screen in the foldable screen electronic device and the folding angle between the display screens, the display method in this scheme can ensure that the foldable screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience.

[0339] FIG11 is a schematic flow chart of a display method provided by an embodiment of the present application. The method can be executed by the electronic device shown in FIG1 ; the method 400 includes steps S401 to S420 , which are described in detail below.

[0340] Step S401: Obtain information about the folding angle C between the main display screen and the auxiliary display screen.

[0341] Exemplarily, the folding screen electronic device includes a Hall sensor, which can output information about the folding angle C between the main display screen and the sub-display screen in the folding screen electronic device.

[0342] For example, for a folding screen electronic device, information about the folding angle C between the main display screen and the sub-display screen can be obtained based on data from acceleration sensors, gyroscope sensors, or Hall sensors of the main display screen and the sub-display screen.

[0343] For example, the Hall signal is read by the Hall sensor in the folding screen electronic device, and then the angle corresponding to the Hall signal is obtained by looking up the table; or, the acceleration sensor and gyroscope sensor set on the two display screens in the folding screen electronic device are used to read the acceleration signal and angular velocity signal corresponding to each display screen respectively; then, the folding state of the folding screen electronic device is detected, and according to the different folding states of the folding screen electronic device, the two sets of acceleration signals and angular velocity signals are combined, or the two sets of angular velocity signals are combined, and different algorithms are used to determine the information of the folding angle C of the folding screen electronic device.

[0344] It should be understood that the above is an example of how to obtain the folding angle, and this application does not impose any limitation on this.

[0345] Step S402: Acquire acceleration data of the main display screen (an example of acquiring first data).

[0346] It should be understood that the foldable screen electronic device may include a main display screen and a sub-display screen; wherein the main display screen and the sub-display screen may respectively have an acceleration sensor.

[0347] Exemplarily, data from an acceleration sensor of the main display screen may be collected to obtain acceleration data of the main display screen.

[0348] Step S403: Processing is performed using a rotation direction recognition algorithm.

[0349] Exemplarily, the acceleration data of the main display screen may be processed based on a rotation direction recognition algorithm to obtain direction information of the main display screen.

[0350] Optionally, the specific implementation of the rotation direction recognition algorithm can be found in the subsequent description of FIG13 and will not be repeated here.

[0351] It should be understood that based on the rotation direction recognition algorithm, the direction of the interface displayed on a display screen (for example, the main display screen) (for example, the label value of the display direction) can be obtained; the direction of the displayed interface can indicate the arrangement of the content information displayed on the display screen; for example, the vertical screen display direction, the left horizontal screen display direction, the rear horizontal screen display direction or the inverted vertical display direction, etc.; optionally, for specific instructions on the display direction, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0352] Step S404: Obtain direction A (an example of a first direction).

[0353] It should be understood that direction A may refer to the display direction of the interface displayed on the main display screen; in other words, the display direction may be regarded as the arrangement direction of the displayed content.

[0354] Optionally, direction A may refer to the first direction as shown in FIG. 8 .

[0355] For example, based on processing the acceleration data of the main display screen through a rotation direction recognition algorithm, the direction A of the main display screen can be obtained; the direction A is the direction of the interface displayed on the main display screen.

[0356] For example, direction A may include any of the following display directions:

[0357] Portrait display orientation, left landscape display orientation, inverted portrait display orientation or right landscape display orientation; wherein, when the folding screen electronic device is in portrait display orientation, the charging port in the folding screen electronic device faces downward; when the folding screen electronic device is in left landscape display orientation, the charging port in the folding screen electronic device faces right; when the folding screen electronic device is in inverted portrait display orientation, the charging port in the folding screen electronic device faces upward; when the folding screen electronic device is in right landscape display orientation, the charging port in the folding screen electronic device faces left.

[0358] It should be understood that different display directions can correspond to different label values; for example, the label value of the portrait display direction can be 0; the label value of the left landscape display direction can be 1; the label value of the inverted portrait display direction can be 2; the label value of the right landscape display direction can be 3; different label values ​​can be output based on the rotation direction recognition algorithm, and different label values ​​can correspond to different display directions of the display screen.

[0359] Optionally, the tag value corresponding to the display direction may further include -1; for example, the tag value -1 may be used to indicate an erroneous rotation instruction; when the output tag value is -1, the display direction of the display interface may not be changed.

[0360] Step S405: Acquire acceleration data of the secondary display screen (an example of acquiring second data).

[0361] For example, data from an acceleration sensor of the secondary display screen may be collected to obtain acceleration data of the primary display screen.

[0362] Optionally, before executing step S402 and step S405, the acceleration sensor corresponding to the main display screen and the acceleration sensor corresponding to the secondary display screen in the folding screen electronic device can be calibrated.

[0363] Step S406: Processing is performed using a rotation direction recognition algorithm.

[0364] For example, the acceleration data of the secondary display screen may be processed based on a rotation direction recognition algorithm to obtain the direction of the interface displayed on the secondary display screen.

[0365] Optionally, the specific implementation of the rotation direction recognition algorithm can be found in the subsequent description of FIG13 and will not be repeated here.

[0366] It should be understood that for the specific description of the display direction, please refer to the relevant description of Figures 9 and 10, which will not be repeated here.

[0367] Optionally, step S406 and step S403 may use the same rotation direction recognition algorithm.

[0368] Step S407: Obtain direction B (an example of the second direction).

[0369] Optionally, direction B may refer to the second direction as shown in FIG. 8 .

[0370] For example, based on processing the acceleration data of the secondary display screen through a rotation direction recognition algorithm, it can be obtained that the direction of the interface displayed on the secondary display screen is direction B.

[0371] For example, direction B may include any of the following display directions:

[0372] Portrait display direction, left horizontal display direction, inverted portrait display direction or right horizontal display direction; optionally, specific descriptions can be found in Figures 9 and 10, which will not be repeated here.

[0373] It should be understood that different display directions can correspond to different label values; for example, the label value of the portrait display direction can be 0; the label value of the left landscape display direction can be 1; the label value of the inverted portrait display direction can be 2; the label value of the right landscape display direction can be 3; different label values ​​can be output based on the rotation direction recognition algorithm, and different label values ​​can correspond to different display directions of the display screen.

[0374] Optionally, the tag value corresponding to the display direction may further include -1; for example, the tag value -1 may be used to indicate an erroneous rotation instruction; when the output tag value is -1, the display direction of the display interface may not be changed.

[0375] Step S408: Determine whether the folding angle C is less than or equal to a threshold value 1; if so, execute step S409; if not, execute step S410.

[0376] In an embodiment of the present application, whether the folding angle C is less than or equal to a threshold value 1 is used to determine whether the folding screen electronic device is in a folded state; if the folding screen electronic device is in a folded state, the direction of any display screen can be used as the display direction; for example, if the folding screen electronic device is in a folded state, the direction A of the main display screen can be set as the display direction of the interface in the folding screen electronic device.

[0377] It should be understood that as shown in (b) in Figure 4, the foldable screen electronic device is in a folded state; when the foldable screen electronic device is in the folded state, only the outer screen of the foldable screen electronic device can be used; in addition, the directions of the x-axis and the z-axis obtained by the devices based on the main display screen 201 and the sub-display screen 202 are opposite, so when the foldable screen electronic device is in the folded state, the display direction of any display screen can be used as the display direction of the foldable screen electronic device.

[0378] Exemplarily, threshold 1 may be 10 degrees; if the folding angle C between the main display screen and the sub-display screen is less than or equal to 10 degrees, the folding screen electronic device may be considered to be in a folded state.

[0379] Step S409: output direction A (an example of the third direction).

[0380] It should be understood that direction A can refer to the direction of the interface displayed on the main display and auxiliary display of the foldable screen electronic device obtained based on the display method provided by this application; the direction of the displayed interface can refer to the interface display direction; and the interface display direction can refer to the direction in which the displayed content information in the interface is arranged. For a detailed description of the display direction, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0381] It should also be understood that direction A refers to the direction of the interface displayed on the main display screen and the sub-display screen in the folding screen electronic device obtained based on the display method provided in the embodiment of the present application; the main display screen and the sub-display screen in the folding screen electronic device can determine whether to display the interface based on this direction based on whether the screen rotation function is turned on; for example, if the screen rotation function is turned on for both the main display screen and the sub-display screen, the directions of the interfaces displayed on the main display screen and the sub-display screen are both direction A; if the screen rotation function is turned on for the main display screen and the screen rotation function is not turned on for the sub-display screen, the direction of the interface displayed on the main display screen can be direction A, and the direction of the interface displayed on the sub-display screen can remain unchanged.

[0382] Step S410, determine whether the folding angle C is less than or equal to threshold 2; if so, execute step S411; if not, execute step S412.

[0383] In an embodiment of the present application, whether the folding angle C is less than or equal to a threshold value 2 is used to determine whether the folding screen electronic device is in the process of changing from a tent state to a notebook state. During this process, the display direction of the interface displayed by the folding screen electronic device may not be changed; wherein, the tent state may be as shown in (d) in Figure 4; the notebook state may be as shown in (e) in Figure 4 or (f) in Figure 4.

[0384] Exemplarily, the threshold 2 may be 45 degrees.

[0385] It should be understood that the above is an example of threshold 2, and this application does not impose any limitation on the size of threshold 2.

[0386] Optionally, when the folding screen electronic device is in the tent state, the outer screen of the folding screen electronic device can be used.

[0387] Step S411: output direction P (an example of the third direction).

[0388] For example, direction P may refer to a display direction obtained based on acceleration data of a frame preceding the current frame (for example, the current time may be time t, and the acceleration data of the frame preceding the current frame may refer to data from an acceleration sensor acquired at time t-1). For example, if the direction obtained based on the acceleration data of the previous frame is direction A, then the current display direction is direction A; if the direction obtained based on the acceleration data of the previous frame is direction B, then the current display direction is direction B.

[0389] Step S412: Determine whether C meets the first range; if so, execute step S413; if not, execute step S417.

[0390] In an embodiment of the present application, whether the folding angle C satisfies the first range is determined in order to determine whether the folding screen electronic device is currently in a notebook state; the notebook state can be as shown in (e) in Figure 4 or (f) in Figure 4.

[0391] Exemplarily, the first range may be [70, 135] degrees.

[0392] It should be understood that the above is an example of the first range, and this application does not impose any limitation on the specific numerical values ​​of the first range.

[0393] Step S413: Determine whether the foldable screen electronic device is in notebook state; if so, execute step 414; if not, execute step S411.

[0394] Optionally, when determining whether the folding screen electronic device is in the notebook state, information of the folding angle C of multiple consecutive frames can be obtained; it is determined whether the folding angle C corresponding to the multiple consecutive frames of data meets the first range; if the information of the folding angle C of multiple frames meets the first range, it can indicate that the folding screen electronic device is in the notebook state; if part of the folding angle C of multiple frames does not meet the first range, it can indicate that the folding screen electronic device is not in the notebook state.

[0395] Step S414: Determine whether the main display screen is horizontal; if so, execute step S415; if not, execute step S416.

[0396] For example, when the folding screen electronic device is in notebook state, the main display screen is in a horizontal state, as shown in (f) in Figure 4; at this time, the direction B corresponding to the acceleration data of the secondary display screen is used as the direction of the interface displayed by the main display screen and the secondary display screen in the folding screen electronic device.

[0397] For example, if the multi-frame folding angle C satisfies the first range and any one of the two display screens is in a horizontal state, it may indicate that the folding screen electronic device is in a notebook state; or, if the multi-frame folding angle C satisfies the first range and both display screens are not in a horizontal state, it may indicate that the folding screen electronic device is not in a notebook state; or, if the multi-frame folding angle C does not satisfy the first range and any one of the two display screens is in a horizontal state, it may indicate that the folding screen electronic device is not in a notebook state.

[0398] It should be understood that when the foldable screen electronic device is in the notebook state as shown in (f) in Figure 4, since the main display screen is in a horizontal state; if the direction A obtained based on the acceleration data of the main display screen is used as the direction of the interface displayed on the main display screen and the sub-display screen in the foldable screen electronic device, then when the foldable screen electronic device is in a landscape posture, the direction of the interface displayed on the main display screen and the sub-display screen may not be automatically adjusted. For example, as shown in (a) in Figure 6, when the foldable screen electronic device is in a landscape posture, the direction of the interface displayed in the foldable screen electronic device is still the portrait display direction, and the direction of the displayed interface is not automatically adjusted to the landscape display direction. Therefore, when the foldable screen electronic device is in the notebook state and the main display screen is horizontal, the direction B based on the acceleration data of the sub-display screen can be used as the direction of the interface displayed on the main display screen and the sub-display screen, that is, the display direction is direction B.

[0399] Step S415: output direction B (an example of the third direction).

[0400] Exemplarily, when the folding screen electronic device is in notebook state and the main display screen is horizontal, the direction of outputting the interface displayed by the main display screen and the sub-display screen in the folding screen electronic device is direction B.

[0401] Step S416: output direction A (an example of the third direction).

[0402] Exemplarily, when the folding screen electronic device is in notebook state and the main display screen is not horizontal, the direction of outputting the interface displayed by the main display screen and the sub-display screen in the folding screen electronic device is direction A.

[0403] Step S417: Determine whether the label value of direction A is greater than or equal to the label value of direction B; if so, execute step S418; if not, execute step S419.

[0404] For example, assume that the label value of the vertical screen display direction is 0; the label value of the left horizontal screen display direction is 1; the label value of the reverse vertical display direction is 2; the label value of the right horizontal screen display direction is 3; if the label value of direction A is 0 and the label value of direction B is 1, then the label value of direction A is less than the label value of direction B, then the display direction is direction B.

[0405] In an embodiment of the present application, when the folding angle C does not meet the first range, the label value of direction A can be compared with the label value of direction B, thereby outputting a valid display direction.

[0406] Step S418: output direction A (an example of the third direction).

[0407] Exemplarily, direction A may refer to the direction of the interface displayed on the main display screen and the sub-display screen in a folding screen electronic device.

[0408] Step S419: output direction B (an example of the third direction).

[0409] Exemplarily, direction B may refer to the direction of the interface displayed on the main display screen and the sub-display screen in a folding screen electronic device.

[0410] Step S420: store direction information.

[0411] It should be understood that the purpose of storing direction information is to determine in subsequent judgments whether the display interface of the interface displayed by the foldable screen electronic device needs to be adjusted; for example, if the direction obtained based on the previous frame data of the current frame is direction A (for example, vertical screen display direction), and the direction obtained based on the data of the current frame is also direction A, then the interface displayed by the foldable screen electronic device can remain unchanged; that is, the foldable screen electronic device may not adjust the display direction of the displayed interface; if the direction obtained based on the previous frame data of the current frame is direction A (for example, vertical screen display direction), and the direction obtained based on the frame data of the current frame is also direction B (for example, left horizontal screen display direction), then the foldable screen electronic device needs to adjust the display direction of the displayed interface. or, when the rotation direction recognition algorithm outputs an invalid state, it is necessary to obtain the stored direction information; for example, if the next frame data of the current frame is processed based on the display direction recognition algorithm, the output is an invalid state (for example, an invalid value is output or a lying posture is output), then the direction of the interface displayed by the folding screen electronic device is the historical display direction obtained from the stored directions; in other words, when the output obtained by the folding screen electronic device based on the rotation direction recognition algorithm is an invalid state, the direction of the interface displayed by the folding screen electronic device may be the historical display direction; the folding screen electronic device may not change the display direction of the displayed interface.

[0412] It should be understood that the direction A, direction B, or direction P outputted in steps S409, S411, S415, S416, S418, and S419 shown in FIG11 is the direction of the interface displayed on the main display and the secondary display of the foldable screen electronic device, obtained based on the display method provided in the embodiment of the present application; the main display and / or the secondary display of the foldable screen electronic device can be displayed based on this direction; for example, if the output is a portrait display direction, if the screen rotation function is enabled on both the main display and the secondary display, the direction of the interface displayed on both the main display and the secondary display is the portrait display direction; if the screen rotation function is partially or completely disabled on the main display or the secondary display, the display direction of the display on the main display or the secondary display that does not enable the screen rotation function can be the previous display direction, and the interface can be displayed in a non-portrait display direction. Optionally, if the screen rotation function is enabled on the main display and the secondary display is not enabled, and the secondary display is currently in the left landscape display direction, the main display can display the interface based on the portrait display direction, and the secondary display can display the interface based on the left landscape display direction.

[0413] In an embodiment of the present application, a folding screen electronic device may include a main display screen and a sub-display screen, wherein the main display screen corresponds to a first motion sensor, and the sub-display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, the direction of the interface displayed on the main display screen can be obtained as direction A, and based on the second data collected by the second motion sensor, the direction of the interface displayed on the sub-display screen can be obtained as direction B; based on the information of the folding angle between the main display screen and the sub-display screen, direction A and direction B, the direction of the interface displayed on the main display screen and the sub-display screen in the folding screen electronic device can be obtained; compared with determining the display direction of the folding screen electronic device based on the data collected by the motion sensor of the main display screen in the folding screen electronic device, since in this scheme the output direction is determined based on the data collected by the motion sensor corresponding to each display screen in the folding screen electronic device and the folding angle between the display screens, the display method in this scheme can ensure that the folding screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience.

[0414] FIG12 is a schematic flow chart of a display method provided by an embodiment of the present application. The method can be executed by the electronic device shown in FIG1 ; the method 500 includes steps S501 to S523 , which are described in detail below.

[0415] Step S501: Obtain information about the folding angle C between the main display screen and the auxiliary display screen.

[0416] Exemplarily, the folding screen electronic device includes a Hall sensor, which can output information about the folding angle C between the main display screen and the sub-display screen in the folding screen electronic device.

[0417] For example, for a folding screen electronic device, information about the folding angle C between the main display screen and the sub-display screen can be obtained based on data from acceleration sensors, gyroscope sensors, or Hall sensors of the main display screen and the sub-display screen.

[0418] For example, the Hall signal is read by the Hall sensor in the folding screen electronic device, and then the angle corresponding to the Hall signal is obtained by looking up the table; or, the acceleration sensor and gyroscope sensor set on the two display screens in the folding screen electronic device are used to read the acceleration signal and angular velocity signal corresponding to each display screen respectively; then, the folding state of the folding screen electronic device is detected, and according to the different folding states of the folding screen electronic device, the two sets of acceleration signals and angular velocity signals are combined, or the two sets of angular velocity signals are combined, and different algorithms are used to determine the information of the folding angle C of the folding screen electronic device.

[0419] It should be understood that the above is an example of how to obtain the folding angle, and this application does not impose any limitation on this.

[0420] Step S502: Acquire acceleration data of the main display screen.

[0421] It should be understood that the foldable screen electronic device may include a main display screen and a sub-display screen; wherein the main display screen and the sub-display screen may respectively have an acceleration sensor.

[0422] Exemplarily, data from an acceleration sensor of the main display screen may be collected to obtain acceleration data of the main display screen.

[0423] Step S503: Processing is performed using a rotation direction recognition algorithm.

[0424] Exemplarily, the acceleration data of the main display screen may be processed based on a rotation direction recognition algorithm to obtain direction information of the main display screen.

[0425] Optionally, the specific implementation of the rotation direction recognition algorithm can be found in the subsequent description of FIG13 and will not be repeated here.

[0426] It should be understood that based on the rotation direction recognition algorithm, the direction of the interface displayed on a display screen (for example, the main display screen) (for example, the label value of the display direction) can be obtained; the direction of the displayed interface can indicate the arrangement of the content information displayed on the display screen; for example, the vertical screen display direction, the left horizontal screen display direction, the rear horizontal screen display direction or the inverted vertical display direction, etc.; optionally, for specific instructions on the display direction, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0427] Step S504: Get direction A.

[0428] It should be understood that direction A may refer to the direction of the display interface in the main display screen; in other words, the direction of the display interface may be regarded as the arrangement direction of the display content.

[0429] Optionally, direction A may refer to the first direction as shown in FIG. 8 .

[0430] For example, based on processing the acceleration data of the main display screen through a rotation direction recognition algorithm, the direction A of the main display screen can be obtained; the direction A is the direction of the interface displayed on the main display screen.

[0431] For example, direction A may include any of the following display directions:

[0432] Portrait display orientation, left landscape display orientation, inverted portrait display orientation, or right landscape display orientation; wherein, when the foldable screen electronic device is in portrait display orientation, the charging port of the foldable screen electronic device faces downward; when the foldable screen electronic device is in left landscape display orientation, the charging port of the foldable screen electronic device faces right; when the foldable screen electronic device is in inverted portrait display orientation, the charging port of the foldable screen electronic device faces upward; when the foldable screen electronic device is in right landscape display orientation, the charging port of the foldable screen electronic device faces left. Optionally, for a specific description of the display orientation, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0433] It should be understood that different display directions can correspond to different label values; for example, the label value of the portrait display direction can be 0; the label value of the left landscape display direction can be 1; the label value of the inverted portrait display direction can be 2; the label value of the right landscape display direction can be 3; different label values ​​can be output based on the rotation direction recognition algorithm, and different label values ​​can correspond to different display directions of the display screen.

[0434] Optionally, the tag value corresponding to the display direction may further include -1; for example, the tag value -1 may be used to indicate an erroneous rotation instruction; when the output tag value is -1, the display direction of the display interface may not be changed.

[0435] Step S505: Acquire acceleration data of the secondary display screen.

[0436] Exemplarily, data from an acceleration sensor of the secondary display screen may be collected to obtain acceleration data of the primary display screen.

[0437] Optionally, before executing step S502 and step S505, the acceleration sensor corresponding to the main display screen and the acceleration sensor corresponding to the secondary display screen in the folding screen electronic device can be calibrated.

[0438] Step S506: Processing is performed using a rotation direction recognition algorithm.

[0439] For example, the acceleration data of the secondary display screen may be processed based on a rotation direction recognition algorithm to obtain direction information of the secondary display screen.

[0440] Optionally, the specific implementation of the rotation direction recognition algorithm can be found in the subsequent description of FIG13 and will not be repeated here.

[0441] It should be understood that for specific instructions on the display direction, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0442] Optionally, step S506 and step S503 may use the same rotation direction recognition algorithm.

[0443] Step S507: Get direction B.

[0444] Optionally, direction B may refer to the second direction as shown in FIG. 8 .

[0445] For example, based on processing the acceleration data of the secondary display screen through a rotation direction recognition algorithm, it can be obtained that the direction of the interface displayed on the secondary display screen is direction B.

[0446] For example, direction B may be any of the following directions:

[0447] Portrait display direction, left horizontal display direction, inverted portrait display direction or right horizontal display direction; optionally, specific descriptions can be found in Figures 9 and 10, which will not be repeated here.

[0448] It should be understood that different display directions can correspond to different label values; for example, the label value of the portrait display direction can be 0; the label value of the left landscape display direction can be 1; the label value of the inverted portrait display direction can be 2; the label value of the right landscape display direction can be 3; different label values ​​can be output based on the rotation direction recognition algorithm, and different label values ​​can correspond to different display directions of the display screen.

[0449] Optionally, the tag value corresponding to the display direction may further include -1; for example, the tag value -1 may be used to indicate an erroneous rotation instruction; when the output tag value is -1, the display direction of the display interface may not be changed.

[0450] Step S508: Determine whether the folding angle C is less than or equal to a threshold value 1; if so, execute step S509; if not, execute step S510.

[0451] In an embodiment of the present application, whether the folding angle C is less than or equal to a threshold value 1 is used to determine whether the folding screen electronic device is in a folded state; if the folding screen electronic device is in a folded state, the direction of any display screen can be used as the display direction; for example, if the folding screen electronic device is in a folded state, the direction A of the main display screen can be set as the display direction of the interface in the folding screen electronic device.

[0452] It should be understood that as shown in (b) in Figure 4, the foldable screen electronic device is in a folded state; when the foldable screen electronic device is in the folded state, only the outer screen of the foldable screen electronic device can be used; in addition, the directions of the x-axis and the z-axis obtained by the devices based on the main display screen 201 and the sub-display screen 202 are opposite, so when the foldable screen electronic device is in the folded state, the direction output by the rotation direction recognition algorithm of any display screen can be used as the display direction.

[0453] Exemplarily, threshold 1 may be 10 degrees; if the folding angle C between the main display screen and the sub-display screen is less than or equal to 10 degrees, the folding screen electronic device may be considered to be in a folded state.

[0454] Step S509: output direction A.

[0455] It should be understood that direction A can refer to the direction of the interface displayed on the main display and auxiliary display of the foldable screen electronic device obtained based on the display method provided by this application; the direction of the displayed interface can refer to the interface display direction; and the interface display direction can refer to the direction in which the displayed content information in the interface is arranged. For a detailed description of the display direction, please refer to the relevant descriptions of Figures 9 and 10, which will not be repeated here.

[0456] It should also be understood that direction A refers to the direction of the interface displayed on the main display screen and the sub-display screen in the folding screen electronic device obtained based on the display method provided in the embodiment of the present application; the main display screen and the sub-display screen in the folding screen electronic device can determine whether to display the interface based on this direction based on whether the screen rotation function is turned on; for example, if the screen rotation function is turned on for both the main display screen and the sub-display screen, the directions of the interfaces displayed on the main display screen and the sub-display screen are both direction A; if the screen rotation function is turned on for the main display screen and the screen rotation function is not turned on for the sub-display screen, the direction of the interface displayed on the main display screen can be direction A, and the direction of the interface displayed on the sub-display screen can remain unchanged.

[0457] Step S510, determine whether the folding angle C is less than or equal to the threshold 2; if so, execute step S511; if not, execute step S512.

[0458] In an embodiment of the present application, whether the folding angle C is less than or equal to a threshold value 2 is used to determine whether the folding screen electronic device is in the process of changing from a tent state to a notebook state. During this process, the direction of the interface displayed by the folding screen electronic device may not be changed; wherein, the tent state may be as shown in (d) in Figure 4; the notebook state may be as shown in (e) in Figure 4 or (f) in Figure 4.

[0459] Exemplarily, the threshold 2 may be 45 degrees.

[0460] It should be understood that the above is an example of threshold 2, and this application does not impose any limitation on the size of threshold 2.

[0461] Optionally, when the folding screen electronic device is in the tent state, the outer screen of the folding screen electronic device can be used.

[0462] Step S511, determine whether the folding screen electronic device is in tent state; if so, execute step S512; if not, execute step S514.

[0463] Optionally, when determining whether the folding screen is in a tent state, multiple frames of data can be obtained. If the folding angles C corresponding to the multiple frames of data are the same, and each folding angle C in the folding angles C corresponding to the multiple frames of data satisfies [threshold 1, threshold 2]; it can be indicated that the folding screen electronic device is in a tent state.

[0464] Optionally, when determining whether the folding screen is in a tent state, multiple frames of data can be obtained. If the folding angles C corresponding to the multiple frames of data are the same, and each folding angle C in the folding angles C corresponding to the multiple frames of data satisfies [threshold 1, threshold 2]; in addition, the z-axis amplitude of the two display screens is less than threshold 4 (for example, 20), then it can be indicated that the folding screen electronic device is in a tent state.

[0465] Step S512: Output direction B.

[0466] For example, when the folding screen electronic device is in a tent state, the display direction of the folding screen electronic device is direction B obtained based on the acceleration data of the secondary display screen; since the outer screen of the folding screen electronic device can be displayed when the folding screen electronic device is in a tent state, usually the outer screen of the folding screen electronic device and the secondary display screen are usually on different sides of one side. At this time, the direction B obtained based on the secondary display screen can be used as the display direction of the folding screen electronic device, that is, the output direction is direction B.

[0467] Step S513: determine whether the folding angle C is less than or equal to the threshold value 3; if so, execute step S514; if not, execute step S515.

[0468] Exemplarily, the threshold 3 may be 70 degrees.

[0469] In an embodiment of the present application, whether the folding angle C is less than or equal to the threshold value 3 is used to determine whether the folding screen electronic device is in an intermediate state; for example, whether the folding screen electronic device is in the process of changing from a tent state to a notebook state, and the direction of the interface displayed by the folding screen electronic device may not be changed during this process.

[0470] Step S514: output direction P.

[0471] For example, direction P may refer to a display direction obtained based on acceleration data of a frame preceding the current frame (for example, the current time may be time t, and the acceleration data of the frame preceding the current frame may refer to data from an acceleration sensor acquired at time t-1). For example, if the direction obtained based on the acceleration data of the previous frame is direction A, then the current display direction is direction A; if the direction obtained based on the acceleration data of the previous frame is direction B, then the current display direction is direction B.

[0472] Step S515: determine whether C meets the first range; if so, execute step S516; if not, execute step S520.

[0473] In an embodiment of the present application, whether the folding angle C satisfies the first range is determined in order to determine whether the folding screen electronic device is currently in a notebook state; the notebook state can be as shown in (e) in Figure 4 or (f) in Figure 4.

[0474] Exemplarily, the first range may be [70, 135] degrees.

[0475] It should be understood that the above is an example of the first range, and this application does not impose any limitation on the specific numerical values ​​of the first range.

[0476] Step S516: Determine whether the foldable screen electronic device is in notebook state; if so, execute step S517; if not, execute step S514.

[0477] Optionally, when determining whether the folding screen electronic device is in the notebook state, information of the folding angle C of multiple consecutive frames can be obtained; it is determined whether the folding angle C corresponding to the multiple consecutive frames of data meets the first range; if the information of the folding angle C of multiple frames meets the first range, it can indicate that the folding screen electronic device is in the notebook state; if part of the folding angle C of multiple frames does not meet the first range, it can indicate that the folding screen electronic device is not in the notebook state.

[0478] Step S517: Determine whether the main display screen is horizontal; if so, execute step S518; if not, execute step S519.

[0479] For example, when the folding screen electronic device is in a notebook state, the main display screen is in a horizontal state, as shown in (f) in Figure 4; at this time, the direction B obtained by the acceleration data of the secondary display screen can be used as the direction of the interface displayed by the main display screen and the secondary display screen in the folding screen electronic device.

[0480] For example, if the multi-frame folding angle C satisfies the first range and any one of the two display screens is in a horizontal state, it may indicate that the folding screen electronic device is in a notebook state; or, if the multi-frame folding angle C satisfies the first range and both display screens are not in a horizontal state, it may indicate that the folding screen electronic device is not in a notebook state; or, if the multi-frame folding angle C does not satisfy the first range and any one of the two display screens is in a horizontal state, it may indicate that the folding screen electronic device is not in a notebook state.

[0481] It should be understood that when the foldable screen electronic device is in the notebook state as shown in (f) in Figure 4, since the main display screen is in a horizontal state; if the direction A corresponding to the acceleration data of the main display screen is used as the direction of the interface displayed on the main display screen and the sub-display screen in the foldable screen electronic device, the foldable screen electronic device may not be able to automatically adjust the display direction. For example, as shown in (a) in Figure 6, when the foldable screen electronic device is in a landscape posture, the interface displayed in the foldable screen electronic device is still in a portrait display direction, and the displayed interface does not adjust the display direction based on the landscape posture of the foldable screen electronic device. Therefore, when the foldable screen electronic device is in the notebook state and the main display screen is horizontal, the direction B corresponding to the acceleration data of the sub-display screen is used as the direction of the interface displayed on the main display screen and the sub-display screen in the foldable screen electronic device, that is, the display direction is direction B.

[0482] Step S518: Output direction B.

[0483] Exemplarily, when the folding screen electronic device is in notebook state and the main display screen is horizontal, the direction of outputting the interface displayed by the main display screen and the sub-display screen in the folding screen electronic device is direction B.

[0484] Step S519: Output direction A.

[0485] Exemplarily, when the folding screen electronic device is in notebook state and the main display screen is not horizontal, the direction of outputting the interface displayed by the main display screen and the sub-display screen in the folding screen electronic device is direction A.

[0486] Step S520: Determine whether the label value of direction A is greater than or equal to the label value of direction B; if so, execute step S521; if not, execute step S522.

[0487] For example, assume that the label value of the vertical screen display direction is 0; the label value of the left horizontal screen display direction is 1; the label value of the reverse vertical display direction is 2; the label value of the right horizontal screen display direction is 3; if the label value of direction A is 0 and the label value of direction B is 1, then the label value of direction A is less than the label value of direction B, then the display direction is direction B.

[0488] In an embodiment of the present application, when the folding angle C does not meet the first range, the label value of direction A can be compared with the label value of direction B, thereby outputting a valid display direction.

[0489] Step S521: Output direction A.

[0490] Exemplarily, direction A may refer to the direction of the interface displayed on the main display screen and the sub-display screen in a folding screen electronic device.

[0491] Step S522: Output direction B.

[0492] Exemplarily, direction B may refer to the direction of the interface displayed on the main display screen and the sub-display screen in a folding screen electronic device.

[0493] Step S523: store the current direction information.

[0494] It should be understood that the purpose of storing direction information is to determine in subsequent judgments whether the display interface of the interface displayed by the foldable screen electronic device needs to be adjusted; for example, if the direction obtained based on the previous frame data of the current frame is direction A (for example, vertical screen display direction), and the direction obtained based on the data of the current frame is also direction A, then the interface displayed by the foldable screen electronic device can remain unchanged; that is, the foldable screen electronic device may not adjust the display direction of the displayed interface; if the direction obtained based on the previous frame data of the current frame is direction A (for example, vertical screen display direction), and the direction obtained based on the frame data of the current frame is direction B (for example, left horizontal screen display direction), then the foldable screen electronic device needs to adjust the display direction of the displayed interface. The display direction of the displayed interface is adjusted; or, when the output of the rotation direction recognition algorithm is an invalid state, it is necessary to obtain the stored direction information; for example, if the next frame data of the current frame is processed based on the display direction recognition algorithm, the output is an invalid state (for example, an invalid value is output or a lying posture is output), then the direction of the interface displayed by the folding screen electronic device is the historical display direction obtained from the stored directions; in other words, when the output obtained by the folding screen electronic device based on the rotation direction recognition algorithm is an invalid state, the direction of the interface displayed by the folding screen electronic device can be the historical display direction; the folding screen electronic device may not change the display direction of the displayed interface.

[0495] It should be understood that the direction A, direction B, or direction P outputted in steps S509, S512, S514, S518, S519, S521, and S522 shown in FIG12 is the direction of the interface displayed on the main display and the secondary display of the foldable screen electronic device, obtained based on the display method provided in the embodiment of the present application; the main display and / or the secondary display of the foldable screen electronic device can be displayed based on this direction; for example, if the output is a portrait display direction, if the screen rotation function is enabled on both the main display and the secondary display, the direction of the interface displayed on both the main display and the secondary display is the portrait display direction; if the screen rotation function is partially or completely disabled on the main display or the secondary display, the display direction of the display on the main display or the secondary display that does not enable the screen rotation function can be the previous display direction, and the interface can be displayed in a non-portrait display direction. Optionally, if the screen rotation function is enabled on the main display and the secondary display is not enabled, and the secondary display is currently in the left landscape display direction, the main display can display the interface based on the portrait display direction, and the secondary display can display the interface based on the left landscape display direction.

[0496] In an embodiment of the present application, a folding screen electronic device may include a main display screen and a sub-display screen, wherein the main display screen corresponds to a first motion sensor, and the sub-display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, the direction of the interface displayed on the main display screen can be obtained as direction A, and based on the second data collected by the second motion sensor, the direction of the interface displayed on the sub-display screen can be obtained as direction B; based on the information of the folding angle between the main display screen and the sub-display screen, direction A and direction B, the direction of the interface displayed on the main display screen and the sub-display screen in the folding screen electronic device can be obtained; compared with determining the display direction of the folding screen electronic device based on the data collected by the motion sensor of the main display screen in the folding screen electronic device, since in this scheme the output direction is determined based on the data collected by the motion sensor corresponding to each display screen in the folding screen electronic device and the folding angle between the display screens, the display method in this scheme can ensure that the folding screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience.

[0497] For example, the rotation direction recognition algorithm in the embodiment of the present application is described in detail below with reference to FIG13 .

[0498] Optionally, the rotation recognition algorithm shown in Figure 13 can be used to execute steps S320 and S330 shown in Figure 8; or, it can be used to execute steps S403 and S406 shown in Figure 11; or, it can be used to execute part or all of steps S503 and S506 shown in Figure 12.

[0499] FIG13 is a schematic flow chart of a rotation direction identification method provided by an embodiment of the present application. The method can be executed by the electronic device shown in FIG1 ; the method 600 includes steps S601 to S614 , each of which is described in detail below.

[0500] It should be understood that the rotation direction recognition method shown in Figure 13 is used to output the direction of the interface displayed on a display screen; for a folding screen electronic device, as shown in (a) in Figure 4, the rotation direction recognition algorithm can be executed on the main display screen 202 and the sub-display screen 201 respectively to obtain the direction of the interface displayed on the main display screen 202 and the direction of the interface displayed on the sub-display screen 201 respectively.

[0501] Schematically, the rotation recognition method is illustrated by executing the rotation recognition method on the main display screen 202 in the folding screen; steps S601 to S614 are similarly applicable to the secondary display screen in the folding screen electronic device.

[0502] Step S601: Obtain current frame acceleration data.

[0503] For example, when determining the direction of the interface displayed on the main display screen of the foldable screen electronic device, that is, when determining the display direction of the main display screen, the acceleration data in the current frame acceleration sensor of the main display screen can be obtained.

[0504] Step S602 , determine whether the modulus value is greater than a first threshold; if the modulus value is greater than the first threshold, execute steps S603 and S604 ; if the modulus value is less than or equal to the first threshold, execute step S605 .

[0505] For example, the module of the acceleration data may be equal to the sum of the three-axis accelerations.

[0506] Optionally, the first threshold may be a standard module; for example, the first threshold may be 980.

[0507] Optionally, the first threshold may be any value between 900 and 1100.

[0508] In an embodiment of the present application, steps S602 and S606 are used to determine whether the foldable screen electronic device is in a stable state; if the modulus of the acceleration data does not exceed the first range, and the frame amplitude difference between the previous and next frames of acceleration data does not exceed the second range, it indicates that the foldable screen electronic device is in a stable state; if it is identified that the foldable screen electronic device is not in a stable state (for example, a shaking state), an invalid direction can be output; for example, step S604 can be executed to output an invalid value; in addition, when the foldable screen electronic device is not in a stable state, the current frame acceleration data can be used to overwrite the previous frame acceleration data.

[0509] Step S603: output an invalid value.

[0510] Exemplarily, the invalid value may be a preset threshold; for example, the invalid value may be -2.

[0511] Step S604: Overwrite the previous frame of acceleration data.

[0512] For example, the current frame acceleration data is X1, X1=A, and the previous frame acceleration data of the current frame is X0, X0=B; overwriting the previous frame acceleration data based on the current frame acceleration data may mean replacing the previous frame acceleration data with the current frame acceleration data, that is, X0=A.

[0513] Step S605: When the modulus value is less than or equal to the first threshold, obtain the previous frame of acceleration data.

[0514] For example, the previous frame acceleration data may refer to the previous frame acceleration data of the current frame.

[0515] Step S606: Determine whether the frame amplitude difference between the current frame acceleration data and the previous frame is greater than a second threshold; if the frame amplitude is greater than the second threshold, execute steps S603 and S604; if the frame amplitude difference is less than or equal to the second threshold, execute step S607.

[0516] It should be understood that if the current frame acceleration data is less than or equal to the first threshold, and the frame amplitude difference between the current frame acceleration data and the previous frame acceleration data is less than or equal to the second threshold, it indicates that the folding screen electronic device is in a stable state.

[0517] Optionally, the second threshold may be 160.

[0518] For example, it is possible to determine whether the foldable screen electronic device is in a relatively stable state by judging whether the frame amplitude difference between the current frame acceleration data and the previous frame is greater than 160.

[0519] Step S607 , determine whether the Y-axis amplitude is 0; if the Y-axis amplitude is 0, execute steps S603 and S604 ; if the Y-axis amplitude is not 0, execute step S608 .

[0520] It should be understood that when the Y-axis amplitude is 0, step S611 cannot be performed, that is, when the Y-axis amplitude is 0, a valid rotation angle b cannot be obtained.

[0521] Step S608: When the amplitude of the Y axis is not 0, calculate the tilt angle a of the display screen.

[0522] For example, the tilt angle a of the display screen as shown in (a) in Figure 14 may refer to the angle between the display screen and the horizontal plane; a folding screen electronic device typically includes two display screens, and for a folding screen electronic device, the tilt angle a between the main display screen and the horizontal plane, and the tilt angle a between the secondary display screen and the horizontal plane may be calculated separately.

[0523] Step S609, determine whether the tilt angle a is less than 45 degrees; if the tilt angle is less than 45 degrees, execute step S610 and step S604; if the tilt angle is greater than or equal to 45 degrees, execute step S611.

[0524] Alternatively, a=arcsin(z / (x 2 +y 2 +z 2 ), where a represents the tilt angle; x represents the amplitude of the x-axis; y represents the amplitude of the y-axis; and z represents the amplitude of the z-axis.

[0525] Step S610: output the lying posture.

[0526] It should be understood that the lying flat posture may mean that the angle between the display screen of the folding screen electronic device and the horizontal plane is small; for example, when the angle between the display screen and the horizontal plane is approximately 0, it may indicate that the folding screen electronic device is placed horizontally on the desktop; at this time, it may indicate that the folding screen electronic device is in a lying flat posture.

[0527] Exemplarily, in an embodiment of the present application, the label value corresponding to the output of the lying flat posture may be -1; when the folding screen electronic device is in the lying flat posture, if it is detected that the folding screen electronic device restarts the application, the default rotation state may be adopted; for example, the default rotation state may refer to the portrait screen state; when the folding screen electronic device is in the lying flat posture, if it is not detected that the folding screen electronic device restarts the application, the display direction of the display interface of the folding screen electronic device may not be changed.

[0528] Optionally, after outputting the lying posture, step S604 can also be executed; that is, the previous frame acceleration data is overwritten, because step S606 needs to be judged based on the frame amplitude difference between the two frames of acceleration data; therefore, when the display direction of the folding screen electronic device changes, the previous frame acceleration data needs to be updated in real time based on the current frame acceleration data.

[0529] Step S611: Calculate the rotation angle b.

[0530] Optionally, b=arctan2(-x / y); wherein b represents the rotation angle; x represents the amplitude of the x-axis; and y represents the amplitude of the y-axis.

[0531] Optionally, if the foldable screen electronic device is in the process of rotating from a portrait screen to a landscape screen, the rotation angle may be b1, as shown in (b) in FIG. 14 .

[0532] Optionally, if the foldable screen electronic device is in the process of rotating from a landscape orientation to a portrait orientation, the rotation angle may be b2, as shown in (c) of Figure 14. Step S612: perform angle correction processing on the rotation angle.

[0533] Exemplarily, angle correction processing may refer to normalization processing of the rotation angle; normally, the actual rotation angle range may be between -180° and 180°; since the direction of the interface displayed on the display screen, that is, the display direction may include: vertical screen display direction, left horizontal screen display direction, inverted vertical display direction or right horizontal screen display direction, etc.; the rotation angles corresponding to these display directions are usually 0°, 90°, 180° or 270°, etc.; therefore, the actual rotation angle may be normalized to any one of 0°, 90°, 180° or 270° to determine the corresponding display direction.

[0534] Step S613: Calculate the direction.

[0535] For example, the direction of the interface displayed on the display screen can be calculated in real time based on the angle after angle correction processing.

[0536] In one example, during the process of rotating the horizontal screen to the vertical screen, if the rotation angle after angle correction is 0°, the direction of the displayed interface can be the left horizontal screen display direction; if the rotation angle after angle correction is 90°, the direction of the displayed interface can be the vertical screen display direction; if the rotation angle after angle correction is 180°, the direction of the displayed interface can be the right horizontal screen display direction; if the rotation angle after angle correction is 270°, the direction of the displayed interface can be the inverted vertical display direction.

[0537] In one example, during the process of rotating the portrait screen to the landscape screen, if the rotation angle after angle correction is 0°, the direction of the displayed interface can be the portrait screen display direction; if the rotation angle after angle correction is 90°, the direction of the displayed interface can be the left landscape screen display direction; if the rotation angle after angle correction is 180°, the direction of the displayed interface can be the inverted portrait display direction; if the rotation angle after angle correction is 270°, the direction of the displayed interface can be the right landscape screen display direction.

[0538] Optionally, after the direction is calculated, step S604 may be executed.

[0539] Step S614: output direction.

[0540] For example, the direction may include any of the following:

[0541] Portrait display orientation, left landscape display orientation, inverted portrait display orientation or right landscape display orientation; wherein, the portrait display orientation may refer to the display orientation in which the charging port in the folding screen electronic device is facing downward; the left landscape display orientation may refer to the display orientation in which the charging port in the folding screen electronic device is facing right; the inverted portrait display orientation may refer to the display orientation in which the charging port in the folding screen electronic device is facing upward; the right landscape display orientation may refer to the display orientation in which the charging port in the folding screen electronic device is facing left.

[0542] The following describes, in conjunction with Figures 15 to 22, an example of the interface schematic diagram corresponding to turning on the automatic rotation screen in a folding screen electronic device and executing the display method of the embodiment of the present application.

[0543] In one example, in a graphical user interface (GUI) as shown in FIG15(a), a foldable electronic device displays a desktop 701 of the foldable electronic device on its main display screen, and displays the interface of a currently running application on its secondary display screen; wherein the desktop 701 includes an icon 702 for a settings application; as shown in FIG15(b), the electronic device detects that a user clicks on the icon 702 for the settings application on the desktop 701; after the electronic device detects that the user clicks on the icon 702 for the settings application on the desktop 701, it may display a display interface as shown in FIG15(c); in the display interface shown in FIG15(c), the main display screen displays the display interface of the settings application, and the secondary display screen displays the interface of the running application; the display interface of the settings application may include controls such as wireless network, Bluetooth, or display; for example, it includes a display control 703; the foldable electronic device detects an operation on the displayed control 703, as shown in FIG15(d). After the foldable electronic device detects the operation on the displayed control 703, it may enter the display settings interface.

[0544] In one example, as shown in (a) of FIG16 , the display setting interface may include an automatic rotation control 704 , a main screen automatic rotation control 705 , a secondary screen automatic rotation control 706 , or an external screen automatic rotation control 707 .

[0545] It should be understood that the automatic rotation control 704 may refer to the overall control for automatic rotation; that is, after turning on the automatic rotation control 704, the main screen automatic rotation, the secondary screen automatic rotation and the external screen automatic rotation may be automatically turned on; the main screen automatic rotation, the secondary screen automatic rotation and the external screen automatic rotation may be independent of each other.

[0546] Optionally, as shown in (b) of FIG16 , after the folding screen electronic device detects that the user clicks the automatic rotation control 704 , the automatic rotation of the main screen, the automatic rotation of the secondary screen, and the automatic rotation of the external screen of the folding screen electronic device may be enabled by default.

[0547] In one example, as shown in (a) of FIG17 , the display setting interface may include a control 708 for automatic rotation according to the application scenario; as shown in (b) of FIG17 , the folding screen electronic device detects the operation of clicking the control 708 for automatic rotation according to the application scenario; after the folding screen electronic device detects the operation of clicking the control 708 for automatic rotation according to the application scenario, the folding screen electronic device may enable the function of automatic rotation according to the application scenario; wherein, the user can set a scenario for turning off automatic rotation; for example, the display setting interface shown in (a) of FIG17 also includes a game control 709, and the user can set the function of automatic rotation to be turned off when playing games.

[0548] In one example, in combination with Figure 19, examples are given of the display direction of the display screen of a foldable screen electronic device transitioning from a folded state to a semi-expanded state and from a semi-expanded state to an expanded state; as shown in (a) in Figure 19, the foldable screen electronic device is in a folded state; when the foldable screen electronic device is in a folded state, the display direction of the display screen may be a default display direction; for example, the default display direction may be a vertical display direction; as shown in (b) in Figure 19, the foldable screen electronic device is in a semi-expanded state (for example, a tent state or a notebook state), and at this time the display direction of the foldable screen electronic device may be a vertical display direction; as shown in (c) in Figure 19, the foldable screen electronic device is in an expanded state, and at this time the display direction of the foldable screen electronic device may be a horizontal display direction.

[0549] Optionally, after the foldable screen electronic device is rotated from portrait to landscape, the display direction of the foldable screen electronic device may be automatically rotated; as shown in FIG20 , after the display direction of the foldable screen electronic device is automatically rotated, a prompt box 710 may be displayed on the main display screen of the foldable screen electronic device. The prompt box 710 is used to prompt the user whether to cancel the current rotation operation. If the foldable screen electronic device detects that the user clicks “Yes”, the foldable screen electronic device may switch to the original display direction, for example, switch to a portrait display direction; if the foldable screen electronic device detects that the user clicks “No”, the foldable screen electronic device may maintain the current display direction.

[0550] Optionally, as shown in FIG20 , the main display screen of the foldable screen electronic device may further include a control 711 indicating rotation; if the foldable screen electronic device detects that the user clicks the control 711 , the foldable screen electronic device will switch the display direction.

[0551] Optionally, after the foldable screen electronic device is rotated from portrait to landscape, the display direction of the foldable screen electronic device may be automatically rotated; as shown in FIG21 , after the display direction of the foldable screen electronic device is automatically rotated, a prompt box 712 may be displayed on the main display screen of the foldable screen electronic device. The prompt box 712 is used to prompt the user whether to switch the display direction. If the foldable screen electronic device detects that the user clicks “Yes”, the foldable screen electronic device may switch to the original display direction, for example, to a portrait display direction; if the foldable screen electronic device detects that the user clicks “No”, the foldable screen electronic device may maintain the current display direction.

[0552] Optionally, as shown in FIG21 , the main display screen of the foldable screen electronic device may further include a control 711 indicating rotation; if the foldable screen electronic device detects that the user clicks the control 711, the foldable screen electronic device will switch the display direction.

[0553] Optionally, after the foldable screen electronic device is rotated from portrait to landscape, the display direction of the foldable screen electronic device can be automatically rotated; as shown in Figure 22, after the display direction of the foldable screen electronic device is automatically rotated, a prompt box 713 can be displayed on the main display screen of the foldable screen electronic device. The prompt box 713 is used to prompt the user whether to rotate the display direction (for example, whether to rotate 90 degrees). If the foldable screen electronic device detects that the user clicks "Yes", the foldable screen electronic device can rotate the display direction; if the foldable screen electronic device detects that the user clicks "No", the foldable screen electronic device can maintain the current display direction.

[0554] Optionally, as shown in FIG22 , the main display screen of the foldable screen electronic device may further include a control 711 indicating rotation; if the foldable screen electronic device detects that the user clicks the control 711 , the foldable screen electronic device will switch the display direction.

[0555] In an embodiment of the present application, a folding screen electronic device may include a first display screen and a second display screen, wherein the first display screen corresponds to a first motion sensor, and the second display screen corresponds to a second sensor; based on the first data collected by the first motion sensor, the direction of the interface displayed on the first display screen can be obtained as a first direction, and based on the second data collected by the second motion sensor, the direction displayed on the second display screen can be obtained as a second direction; based on the information of the folding angle between the first display screen and the second display screen, the first direction and the second direction, the direction of the interface displayed on the first display screen and the second display screen in the folding screen electronic device can be obtained as a third direction; the first display screen and / or the second display screen can display the interface based on the third direction; compared with determining the display direction of the folding screen electronic device based on the data collected by the motion sensor of the main display screen in the folding screen electronic device, since the third direction in this scheme is determined based on the data collected by the motion sensor corresponding to each display screen in the folding screen electronic device and the folding angle between the display screens, the display method in this scheme can ensure that the folding screen electronic device can meet the user's usage needs in various scenarios and improve the user's usage experience.

[0556] It should be understood that the above examples are intended to help those skilled in the art understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific numerical values ​​or specific scenarios illustrated. Those skilled in the art can obviously make various equivalent modifications or variations based on the above examples, and such modifications or variations also fall within the scope of the embodiments of the present application.

[0557] The display method provided by the embodiment of the present application is described in detail above with reference to Figures 1 to 22; the device embodiment of the present application will be described in detail below with reference to Figures 23 and 24. It should be understood that the device in the embodiment of the present application can perform the various methods of the aforementioned embodiments of the present application. That is, the specific working processes of the various products below can refer to the corresponding processes in the aforementioned method embodiments.

[0558] FIG23 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 700 includes an acquisition module 730 and a processing module 720 .

[0559] Optionally, the electronic device 700 may refer to a folding screen electronic device, including a first display screen, a second display screen, a first motion sensor, and a second motion sensor.

[0560] Among them, the acquisition module 730 is used to obtain first data, second data and folding angle information, the first data is the data of the first display screen collected by the first motion sensor, the second data is the data of the second display screen collected by the second motion sensor, and the folding angle is the angle between the first display screen and the second display screen; the processing module 720 is used to obtain a first direction based on the first data, and the first direction is the direction of the interface displayed on the first display screen; based on the second data, obtain a second direction, and the second direction is the direction of the interface displayed on the second display screen; based on the folding angle information, the first direction and the second direction, obtain a third direction, and the third direction is the direction of the interface displayed on the first display screen and the second display screen; the first display screen and / or the second display screen displays the interface based on the third direction.

[0561] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0562] Determining a current posture of the folding screen electronic device based on the information of the folding angle, where the current posture is used to indicate whether the folding screen electronic device is currently in an unfolded state or a folded state;

[0563] The third direction is obtained based on the current posture, the first direction, and the second direction.

[0564] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0565] When the folding angle is less than or equal to a first preset threshold, determining that the current posture is a folding posture;

[0566] When the folding angle is less than or equal to a second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate an instantaneous posture of the folding screen electronic device, and the second preset threshold is greater than the first preset threshold;

[0567] When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0568] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0569] When the folding angle is less than or equal to a first preset threshold, determining that the current posture is a folding posture;

[0570] When the folding angle is less than or equal to a second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate an instantaneous posture of the folding screen electronic device, and the second preset threshold is greater than the first preset threshold;

[0571] When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

[0572] Optionally, as an embodiment, the folding angle is an included angle between the first display screen and the second display screen obtained at time t, and the processing module 720 is specifically configured to:

[0573] Acquire a first data set, where the first data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0574] When the included angle in the first data set satisfies the first preset range and the first display screen is horizontal, the current posture is determined to be the first unfolded posture.

[0575] Optionally, as an embodiment, the processing module 720 is further configured to:

[0576] When the folding angle is less than or equal to a third preset threshold, the current posture is determined to be a second unfolding posture, and the third preset threshold is greater than the first preset threshold and less than the second preset threshold.

[0577] Optionally, as an embodiment, the folding angle is an included angle between the first display screen and the second display screen obtained at time t, and the processing module 720 is specifically configured to:

[0578] Acquire a second data set, where the second data frame set includes an angle between the first display screen and the second display screen acquired at the time t;

[0579] When the included angle in the second data set is less than or equal to the third preset threshold, the current posture is the second unfolded posture.

[0580] Optionally, as an embodiment, the first display screen is a main display screen of the folding screen electronic device, and when the current posture is the folding posture, the third direction is the same as the first direction.

[0581] Optionally, as an embodiment, the first data, the second data and the information on the folding angle are data obtained at time t, and when the current posture is the intermediate posture, the third direction is a historical direction, and the historical direction is the direction of the interface displayed by the first display screen and the second display screen obtained based on the data obtained at time t-1.

[0582] Optionally, as an embodiment, the first display screen is a main display screen of the folding screen electronic device, and when the current posture is the first unfolded posture, the third direction is the same as the second direction.

[0583] Optionally, as an embodiment, the first display screen is a main display screen of the folding screen electronic device, and when the current posture is the second unfolded posture, the third direction is the same as the second direction.

[0584] Optionally, as an embodiment, the processing module 720 is further configured to:

[0585] In the case where the folding angle does not satisfy the first preset range, if the label value of the first direction is greater than or equal to the label value of the second direction, the third direction is the same as the first direction; or

[0586] If the label value of the first direction is smaller than the label value of the second direction, the third direction is the same as the second direction.

[0587] Optionally, as an embodiment, the processing module 720 is further configured to:

[0588] The third direction is stored.

[0589] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0590] The first display screen and the second display screen are based on the third direction display interface.

[0591] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0592] A first operation is detected on the first display screen, where the first operation is an operation of instructing the first display screen to start screen rotation;

[0593] In response to the first operation, the first display screen displays an interface based on the third direction;

[0594] A second operation is detected on the second display screen, where the second operation is an operation of instructing the second display screen to start screen rotation;

[0595] In response to the second operation, the second display screen displays an interface based on the third direction.

[0596] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0597] A third operation is detected on the first display screen, where the third operation is an operation of instructing the first display screen and the second display screen to start screen rotation;

[0598] In response to the third operation, the first display screen and the second display screen display an interface based on the third direction.

[0599] Optionally, as an embodiment, the first data, the second data, and the information about the folding angle are data acquired at time t, and the acquisition module 730 is further configured to:

[0600] Get the interface display data at time t-1;

[0601] The processing module 720 is specifically configured to:

[0602] The first display screen and / or the second display screen displays the interface based on the interface display data at the time t-1 and the third direction.

[0603] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0604] The first data is processed using a rotation direction recognition algorithm to obtain the first direction.

[0605] Optionally, as an embodiment, the processing module 720 is specifically configured to:

[0606] The second data is processed using a rotation direction recognition algorithm to obtain the second direction.

[0607] It should be noted that the electronic device 700 is implemented in the form of a functional module. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.

[0608] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.

[0609] Therefore, the units of each example described in the embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0610] Figure 24 shows a schematic diagram of the structure of an electronic device provided by the present application. The dotted lines in Figure 24 indicate that the unit or module is optional; the electronic device 800 can be used to implement the method described in the above method embodiment.

[0611] The electronic device 800 includes one or more processors 801, which can support the electronic device 800 to implement the method of switching cameras in the method embodiment. The processor 801 can be a general-purpose processor or a special-purpose processor. For example, the processor 801 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.

[0612] The processor 801 can be used to control the electronic device 800, execute software programs, and process data of the software programs. The electronic device 800 can also include a communication unit 805 to implement signal input (reception) and output (transmission).

[0613] For example, the electronic device 800 may be a chip, the communication unit 805 may be an input and / or output circuit of the chip, or the communication unit 805 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic device.

[0614] For another example, the electronic device 800 may be a terminal device, and the communication unit 805 may be a transceiver of the terminal device, or the communication unit 805 may be a transceiver circuit of the terminal device.

[0615] The electronic device 800 may include one or more memories 802 on which a program 804 is stored. The program 804 can be executed by the processor 801 to generate instructions 803, so that the processor 801 executes the method of switching cameras described in the above method embodiment according to the instructions 803.

[0616] Optionally, data may also be stored in the memory 802 .

[0617] Optionally, the processor 801 may also read data stored in the memory 802 . The data may be stored at the same storage address as the program 804 , or may be stored at a different storage address from the program 804 .

[0618] The processor 801 and the memory 802 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of a terminal device.

[0619] Exemplarily, the memory 802 can be used to store the relevant program 804 of the display method provided in the embodiment of the present application, and the processor 801 can be used to call the relevant program 804 of the display method stored in the memory 802 when executing the display method of the folding screen electronic device, and execute the display method of the embodiment of the present application; for example, obtain the first data, the second data and the folding angle information, the first data is the data of the first display screen collected by the first motion sensor, the second data is the data of the second display screen collected by the second motion sensor, and the folding angle is the angle between the first display screen and the second display screen; based on the first data, obtain the first direction, the first direction is the direction of the interface displayed on the first display screen; based on the second data, obtain the second direction, the second direction is the direction of the interface displayed on the second display screen; based on the folding angle information, the first direction and the second direction, obtain the third direction, the third direction is the direction of the interface displayed on the first display screen and the second display screen; the first display screen and / or the second display screen displays the interface based on the third direction.

[0620] Optionally, the processor 801 may be configured to execute the various steps / functions of the embodiments shown in FIG. 8 to FIG. 13 .

[0621] The present application also provides a computer program product, which, when executed by the processor 801, implements the method for switching cameras in any method embodiment of the present application.

[0622] The computer program product may be stored in the memory 802 , for example, a program 804 , which is converted into an executable target file that can be executed by the processor 801 after undergoing preprocessing, compilation, assembly, and linking.

[0623] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method for switching cameras described in any method embodiment of this application. The computer program can be a high-level language program or an executable object program.

[0624] Optionally, the computer-readable storage medium is, for example, memory 802. Memory 802 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0625] It should be noted that although the electronic device 800 shown in FIG. 24 only shows a memory, a processor, and a communication interface, in the specific implementation process, those skilled in the art will understand that the electronic device 800 may also include other components necessary for normal operation. At the same time, according to specific needs, those skilled in the art will understand that the electronic device 800 may also include hardware components that implement other additional functions. In addition, those skilled in the art will understand that the electronic device 800 may also include only the components necessary to implement the embodiments of the present application, and does not necessarily include all the components shown in FIG. 24.

[0626] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0627] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0628] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0629] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0630] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0631] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, 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.

[0632] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0633] 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.

[0634] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute 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 a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0635] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be readily conceived by a person skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A display method, characterized in that: Applied to a foldable screen electronic device, the foldable screen electronic device includes a first display screen, a second display screen, a first motion sensor, and a second motion sensor, and the display method includes: Acquire first data, second data, and information about a folding angle, wherein the first data is data of the first display screen collected by the first motion sensor, the second data is data of the second display screen collected by the second motion sensor, and the folding angle is an angle between the first display screen and the second display screen; Obtaining a first direction based on the first data, where the first direction is a direction of an interface displayed on the first display screen; obtaining a second direction based on the second data, where the second direction is a direction of the interface displayed on the second display screen; Obtaining a third direction based on the folding angle information, the first direction, and the second direction, where the third direction is a direction of the interface displayed on the first display screen and the second display screen; The first display screen and / or the second display screen are based on the third direction display interface.

2. The display method according to claim 1, wherein: The obtaining of the third direction based on the information of the folding angle, the first direction, and the second direction includes: Determining a current posture of the folding screen electronic device based on the information of the folding angle, where the current posture is used to indicate whether the folding screen electronic device is currently in an unfolded state or a folded state; The third direction is obtained based on the current posture, the first direction, and the second direction.

3. The display method according to claim 2, wherein: The determining the current posture of the folding screen electronic device based on the information of the folding angle includes: When the folding angle is less than or equal to a first preset threshold, determining that the current posture is a folding posture; When the folding angle is less than or equal to a second preset threshold, determining that the current posture is an intermediate posture, wherein the intermediate posture is used to indicate an instantaneous posture of the folding screen electronic device, and the second preset threshold is greater than the first preset threshold; When the folding angle satisfies a first preset range and the first display screen is horizontal, the current posture is determined to be a first unfolding posture.

4. The display method according to claim 3, wherein: The folding angle is an included angle between the first display screen and the second display screen obtained at time t, and when the folding angle satisfies a first preset range and the first display screen is horizontal, determining that the current posture is a first unfolded posture includes: Acquire a first data set, where the first data frame set includes an angle between the first display screen and the second display screen acquired at the time t; When the included angle in the first data set satisfies the first preset range and the first display screen is horizontal, the current posture is determined to be the first unfolded posture.

5. The display method according to claim 3 or 4, wherein: Also includes: When the folding angle is less than or equal to a third preset threshold, the current posture is determined to be a second unfolding posture, and the third preset threshold is greater than the first preset threshold and less than the second preset threshold.

6. The display method according to claim 5, wherein: The folding angle is an included angle between the first display screen and the second display screen obtained at time t, and when the folding angle is less than or equal to a third preset threshold, determining that the current posture is the second unfolded posture includes: Acquire a second data set, where the second data frame set includes an angle between the first display screen and the second display screen acquired at the time t; When the included angle in the second data set is less than or equal to the third preset threshold, the current posture is the second unfolded posture.

7. The display method according to any one of claims 3 to 6, characterized in that: The first display screen is the main display screen of the folding screen electronic device. When the current posture is the folding posture, the third direction is the same as the first direction.

8. The display method according to any one of claims 3 to 6, characterized in that: The first data, the second data and the information of the folding angle are data obtained at time t. When the current posture is the intermediate posture, the third direction is the historical direction, and the historical direction is the direction of the interface displayed on the first display screen and the second display screen obtained based on the data obtained at time t-1.

9. The display method according to any one of claims 3 to 6, characterized in that: The first display screen is the main display screen of the folding screen electronic device. When the current posture is the first unfolded posture, the third direction is the same as the second direction.

10. The display method according to claim 5 or 6, wherein: The first display screen is the main display screen of the folding screen electronic device. When the current posture is the second unfolded posture, the third direction is the same as the second direction.

11. The display method according to any one of claims 3 to 10, characterized in that: Also includes: In the case where the folding angle does not satisfy the first preset range, if the label value of the first direction is greater than or equal to the label value of the second direction, the third direction is the same as the first direction; or If the label value of the first direction is smaller than the label value of the second direction, the third direction is the same as the second direction.

12. The display method according to any one of claims 1 to 11, characterized in that: Also includes: The third direction is stored.

13. The display method according to any one of claims 1 to 12, characterized in that: The first display screen and / or the second display screen are based on the third direction display interface and include: The first display screen and the second display screen are based on the third direction display interface.

14. The display method according to claim 13, wherein: The first display screen and the second display screen are based on the third direction display interface, including: A first operation is detected on the first display screen, where the first operation is an operation of instructing the first display screen to start screen rotation; In response to the first operation, the first display screen displays an interface based on the third direction; A second operation is detected on the second display screen, where the second operation is an operation of instructing the second display screen to start screen rotation; In response to the second operation, the second display screen displays an interface based on the third direction.

15. The display method according to claim 13, wherein: The first display screen and the second display screen are based on the third direction display interface, including: A third operation is detected on the first display screen, where the third operation is an operation of instructing the first display screen and the second display screen to start screen rotation; In response to the third operation, the first display screen and the second display screen display an interface based on the third direction.

16. The display method according to any one of claims 1 to 15, characterized in that: The first data, the second data and the information of the folding angle are data acquired at time t, and further comprising: Get the interface display data at time t-1; The first display screen and / or the second display screen are based on the third direction display interface and include: The first display screen and / or the second display screen displays the interface based on the interface display data at the time t-1 and the third direction.

17. The display method according to any one of claims 1 to 16, characterized in that: The obtaining a first direction based on the first data includes: The first data is processed using a rotation direction recognition algorithm to obtain the first direction.

18. The display method according to any one of claims 1 to 17, wherein: The obtaining a second direction based on the second data includes: The second data is processed using a rotation direction recognition algorithm to obtain the second direction.

19. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, where the computer program code includes computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the display method according to any one of claims 1 to 18.

20. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the display method according to any one of claims 1 to 18.

21. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to execute the display method according to any one of claims 1 to 18.

Citation Information

Cited By

  • Dynamic display method and system for display screen of mobile communication equipment

    CN120034605A

  • A dynamic display method and system for a display screen of a mobile communication device

    CN120034605B