Display method and folding screen electronic equipment
By automatically adjusting the interface layout of foldable screen electronic devices, the problem of poor display effects in both unfolded and folded states of multi-foldable devices has been solved, achieving automatic adaptation without requiring users to manually rotate the device, thus improving the user experience.
Patent Information
- Application Number
- CN202410652294.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2025-11-25
AI Technical Summary
Foldable screen electronic devices suffer from poor display adaptation during repeated folding, especially when switching between unfolded and folded states, requiring users to manually adjust the screen orientation, which affects the user experience.
A display method is provided that automatically switches the interface layout mode according to the state of the foldable screen electronic device, from portrait to landscape or vice versa, to adapt to the display form of multi-foldable devices without requiring the user to manually rotate the device.
It improves the display adaptability of foldable screen electronic devices in different states, saves users operation steps, and enhances the user experience.
Smart Images

Figure CN121008762A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electronic devices, and more particularly, to a display method and a foldable-screen electronic device. BACKGROUND
[0002] More and more users begin to use foldable-screen electronic devices. Although foldable-screen electronic devices provide a larger screen, there is a problem of poor adaptation in many application scenarios. In addition, in order to provide a larger display area for users while ensuring that the foldable-screen electronic device can be held by a user with one hand after being folded, the foldable-screen electronic device will gradually evolve into a multi-fold electronic device, that is, can be folded multiple times, which brings greater challenges to the adaptation of application scenarios (for example, playing videos, navigation, etc.). Based on this, how to ensure the display effect of the foldable-screen electronic device has become a technical problem to be solved. SUMMARY
[0003] The present application provides a display method and a foldable-screen electronic device. When the foldable-screen electronic device is in a folded state and a portrait state, the current interface is displayed in a portrait layout mode. When the foldable-screen electronic device is switched from the folded state to an unfolded state, the current interface is automatically switched to be displayed in a landscape layout mode. When the foldable-screen electronic device is in the unfolded state, the current interface is displayed in the landscape layout mode. When the foldable-screen electronic device is switched from the unfolded state to the portrait state, the current interface is automatically switched to be displayed in the portrait layout mode. The technical solution provided by the present application can better adapt to the form of the display screen of the unfolded foldable-screen electronic device, can better utilize the screen of the foldable-screen electronic device, and saves the steps of user operation, without the need for the user to manually rotate the device, which helps to improve the user experience.
[0004] In a first aspect, a display method is provided. The method is applied to a foldable-screen electronic device. The method includes: displaying a first interface in a portrait layout mode. When the first interface is displayed in the portrait layout mode, the foldable-screen electronic device is in a folded state and a portrait state, and a display direction of the first interface is a portrait direction. In response to switching from the folded state to an unfolded state, the display direction of the first interface is switched to a landscape direction and the first interface is displayed in a landscape layout mode. A second interface is displayed in the landscape layout mode. When the second interface is displayed in the landscape layout mode, the foldable-screen electronic device is in the unfolded state, and the second interface is in the landscape direction. In response to switching from the unfolded state to the folded state, the display direction of the second interface is switched to the portrait direction and the second interface is displayed in the portrait layout mode.
[0005] In the embodiments of the present application, the folding screen electronic device displays the current interface in a vertical screen layout when in a folded state and a vertical screen state. When the folding screen electronic device switches from the folded state to an unfolded state, the folding screen electronic device automatically switches to display the current interface in a horizontal screen layout. When the folding screen electronic device is in the unfolded state, the folding screen electronic device displays the current interface in the horizontal screen layout. When the folding screen electronic device switches from the unfolded state to the vertical screen state, the folding screen electronic device automatically switches to display the current interface in the vertical screen layout. The technical solution provided in the present application can better utilize the screen of the folding screen electronic device, and saves the steps of user operation, without the need for the user to manually rotate the device, which helps to improve the user experience.
[0006] With reference to the first aspect, in some implementations of the first aspect, after switching the display direction of the first interface to the horizontal screen direction and displaying the first interface in the horizontal screen layout in response to switching from the folded state to the unfolded state, the method further includes: in response to the rotation angle being greater than or equal to the first threshold, switching the display direction of the first interface to the vertical screen direction and displaying the first interface in the vertical screen layout.
[0007] With reference to the first aspect, in some implementations of the first aspect, before switching the display direction of the first interface to the vertical screen direction and displaying the first interface in the vertical screen layout, the method further includes: determining that the folding screen electronic device is a multi-fold electronic device.
[0008] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state, the multi-fold electronic device can display the interface in a horizontal screen layout. When the multi-fold electronic device rotates, the multi-fold electronic device switches from the horizontal screen state to the vertical screen state, and therefore, the multi-fold electronic device also automatically switches to display the interface in a vertical screen layout, which can better adapt to the display screen form of the multi-fold electronic device after unfolding and in the vertical screen state, can better utilize the screen of the folding screen electronic device, and helps to improve the user experience.
[0009] With reference to the first aspect, in some implementations of the first aspect, after switching the display direction of the first interface to the vertical screen direction and displaying the first interface in the vertical screen layout in response to the rotation angle being greater than or equal to the first threshold, the method further includes: in response to switching from the unfolded state to the folded state, switching the display direction of the first interface to the horizontal screen direction and displaying the first interface in the horizontal screen layout.
[0010] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state and the portrait screen state, the interface can be displayed in a portrait screen layout mode. When the multi-fold electronic device is switched from the unfolded state to the folded state, the multi-fold electronic device is also switched from the portrait screen state to the landscape screen state, and therefore, the multi-fold electronic device is also automatically switched to display the interface in a landscape screen layout mode, which can better adapt to the display screen shape when the multi-fold electronic device is folded and in the landscape screen state, and help improve the user experience.
[0011] With reference to the first aspect, in some implementations of the first aspect, the switching, in response to the switching from the folded state to the unfolded state, of the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode comprises: outputting first prompt information in response to the switching from the folded state to the unfolded state, the first prompt information being used to prompt the user to confirm whether to switch to the landscape screen layout mode; and switching, in response to an operation of the user confirming to switch to the landscape screen layout mode, the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode.
[0012] With reference to the first aspect, in some implementations of the first aspect, the first interface is an interface of a first application program, and before the switching to display the first interface in the landscape screen layout mode, the method further comprises: determining that the first application program is an application program in a white list, the white list being a list of application programs allowed to be automatically switched to the landscape screen layout mode.
[0013] With reference to the first aspect, in some implementations of the first aspect, the switching, in response to the switching from the folded state to the unfolded state, of the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode comprises: changing direction data detected by a direction sensor in response to the switching from the folded state to the unfolded state; and switching, in response to the change of the direction data detected by the direction sensor, the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode.
[0014] With reference to the first aspect, in some implementations of the first aspect, the folding-screen electronic device includes N folding pivots, N≥2 and N is an integer, the foldable display screen of the folding-screen electronic device is divided into N+1 sub-displays by the N folding pivots, and the switching of the display direction of the first interface to the landscape direction and the display of the first interface in the landscape layout manner include: switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner through the N+1 sub-displays; or switching the display direction of the first interface to the landscape direction, displaying the first interface in the landscape layout manner through M adjacent sub-displays in the N+1 sub-displays, and displaying a third interface through the remaining sub-displays in the N+1 sub-displays, the second interface is an interface associated with the first interface, and M≥2 and M is an integer.
[0015] In the embodiments of the present application, when the multi-folding electronic device is in a folded state and a portrait state, the interface is displayed in a portrait layout manner. When the multi-folding electronic device is switched from the folded state to the unfolded state, the interface is automatically displayed in a landscape layout manner through part of the sub-displays, and the remaining sub-displays can display another interface. This can better adapt to the form of the display screen of the multi-folding electronic device after unfolding, can better utilize the screen of the folding-screen electronic device, and saves the steps of user operation, thereby helping to improve the user experience.
[0016] With reference to the first aspect, in some implementations of the first aspect, the first interface is a playing interface of a first video, the third interface is a comment interface of the first video; or the first interface is a playing interface of a first song, the third interface is a comment interface of the first song; or the first interface is a main interface of a first commodity, and the third interface is an evaluation interface of the first commodity.
[0017] With reference to the first aspect, in some implementations of the first aspect, the display direction of the second interface is a portrait direction.
[0018] With reference to the first aspect, in some implementations of the first aspect, the method further includes: displaying a fourth interface in a landscape layout manner, wherein when the fourth interface is displayed in the landscape layout manner, the folding-screen electronic device is in a folded state and a portrait state, the display direction of the fourth interface is the portrait direction; and in response to the switching of the folding-screen electronic device from the folded state to the unfolded state, the display direction of the fourth interface is switched to the landscape direction.
[0019] In the embodiments of the present application, when the folding screen electronic device is in a folded state and a vertical screen state and runs an application program that only supports a horizontal screen layout mode, the user can unfold the folding screen electronic device. The folding screen electronic device can automatically rotate the interface of the application program in response to the folding state being switched to an unfolded state, without the user manually rotating the device, saving the user's operation and helping to improve the user's use experience.
[0020] In a second aspect, a folding screen electronic device is provided, which includes one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by the one or more processors, the above-mentioned aspect or any possible implementation manner of the above-mentioned aspect is executed.
[0021] In a third aspect, a computer readable storage medium is provided, which includes a computer program or instructions, when the computer program or instructions are run on a computer, the method of the first aspect and any possible implementation of the first aspect is executed.
[0022] In a fourth aspect, a computer program product is provided, which includes a computer program or instructions, when the computer program or instructions are run on a computer, the method of the first aspect and any possible implementation of the first aspect is executed.
[0023] In a fifth aspect, a computer program is provided, when it is run on a computer, the method in the first aspect and any possible implementation manner thereof is executed.
[0024] In a sixth aspect, an electronic device provided by the embodiments of the present application includes a module / unit for executing the method of the above-mentioned aspect or any possible implementation manner of the above-mentioned aspect; these modules / units can be realized by hardware or by hardware executing corresponding software.
[0025] In a seventh aspect, a smart driving device is provided, which includes the electronic device in the fourth aspect.
[0026] The beneficial effects of the second aspect to the seventh aspect can be referred to the beneficial effects of the first aspect, which will not be repeated. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is a structural schematic diagram of an electronic device provided by the embodiments of the present application.
[0028] Figure 2 is a software structure block diagram of an electronic device provided by the embodiments of the present application.
[0029] Figure 3 is a schematic diagram of a single-fold electronic device provided by an embodiment of the present application.
[0030] Figure 4 is a schematic diagram of a multi-fold electronic device provided by an embodiment of the present application.
[0031] Figure 5 is a set of GUIs provided by an embodiment of the present application.
[0032] Figure 6 is a set of GUIs provided by an embodiment of the present application.
[0033] Figure 7 is a set of GUIs provided by an embodiment of the present application.
[0034] Figure 8 is a set of GUIs provided by an embodiment of the present application.
[0035] Figure 9 is a set of GUIs provided by an embodiment of the present application.
[0036] Figure 10 is a set of GUIs provided by an embodiment of the present application.
[0037] Figure 11 is a set of GUIs provided by an embodiment of the present application.
[0038] Figure 12 is a set of GUIs provided by an embodiment of the present application.
[0039] Figure 13 is a set of GUIs provided by an embodiment of the present application.
[0040] Figure 14 is a schematic flowchart of a display method provided by an embodiment of the present application.
[0041] Figure 15 is a schematic diagram of internal data flow provided by an embodiment of the present application.
[0042] Figure 16 is a schematic diagram of a three-axis coordinate system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0044] The terminology used in the following description merely for the purpose of describing particular embodiments and is not intended to be limiting of the application. As used in this description and the accompanying claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "or" as used herein is used to denote exclusive, at least, or other (e.g., logically exclusive, within a set or group that means "one", "the other", "at least one but not both", or "one, the other, or both").
[0045] Reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in other embodiments" or "in still other embodiments" or "in yet other embodiments" in various places throughout this specification are not necessarily all referring to the same embodiment, unless otherwise are specifically so stated. Furthermore, the terms "comprise", "have", "contain" and variations thereof, as used in this specification, are open-ended transitional phrases and terms that do not exclude additional unrecited elements or method steps. The terms "comprise", "have", "contain" and variations thereof, as used in this specification, are open-ended transitional phrases and terms that do not exclude additional unrecited elements or method steps.
[0046] Embodiments of electronic devices and methods for using such electronic devices are described below. In some embodiments, the electronic device can be a portable electronic device that also contains other functionality such as personal digital assistant and / or music player functionality, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, a mobile phone, a tablet computer, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), etc. that runs an operating system such as iOS®, Android®, Windows® Phone, Windows® (trademarks of Microsoft Corporation, Redmond, Washington), etc. or other operating systems. The portable electronic device described above can also be other portable electronic devices such as a laptop computer, etc. It should also be understood that in other embodiments, the electronic device described above can not be a portable electronic device, but rather a desktop computer. In some embodiments, the electronic device can be one of the devices in a smart vehicle.
[0047] Exemplary, Figure 1A structural diagram of the electronic device 100 is shown. The electronic device 100 can 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, a headset interface 170D, a sensor module 180, a key 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 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric 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.
[0048] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0049] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.
[0050] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching instructions and executing instructions.
[0051] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using in a loop. If the processor 110 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the latency of the processor 110, thus improving the efficiency of the system.
[0052] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include 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 subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0053] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0054] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0055] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate as electromagnetic waves through the antenna 1. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the function modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.
[0056] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other function modules.
[0057] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.
[0058] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidu navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0059] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.
[0060] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.
[0061] The electronic device 100 can implement a photographing function through an ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor.
[0062] The internal memory 121 can be configured to store computer-executable program codes including instructions. The processor 110 performs various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, and the like), and the like. The data storage area can store data (such as audio data, a phone book, and the like) created during use of the electronic device 100, and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
[0063] The electronic device 100 can implement an audio function through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. For example, music playing, recording, and the like.
[0064] The audio module 170 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some of the functions of the audio module 170 can be disposed in the processor 110.
[0065] The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0066] The receiver 170B, also referred to as a "earpiece", is configured to convert an audio electrical signal into a sound signal. When the electronic device 100 receives a call or a voice message, the user can listen to the voice through the receiver 170B by placing the receiver 170B close to the ear.
[0067] The microphone 170C, also referred to as a "microphone", "microphone", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can make a sound through the mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, in addition to collecting sound signals, it can also realize the function of noise reduction. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, which can realize the functions of collecting sound signals, noise reduction, identifying sound sources, realizing directional recording, etc.
[0068] Figure 2 is a software structure block diagram of the electronic device 100 of the embodiments of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and the system library, and the kernel layer. The application layer can include a series of application packages.
[0069] As shown in Figure 2 , the application layer can include a camera, a setting, a third-party application, etc. Among them, the third-party application can include a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, a music, a video, a short message, etc.
[0070] The application framework layer provides the application programming interface (API) and the programming framework for the application of the application layer. The application framework layer can include some pre-defined functions.
[0071] As Figure 2 shown, the application framework layer can include window manager services (WMS), content providers, view system, phone manager, resource manager, notification manager, display manager services (DMS), etc.
[0072] The window manager is used to manage window programs. The window manager can acquire the size of the display screen, determine whether there is a status bar, lock the screen, and intercept the screen, etc. The window manager can also change the display direction of the window, for example, from a vertical screen direction to a horizontal screen direction. The description for the horizontal screen direction and the vertical screen direction can be referred to below, and is not described here.
[0073] The display manager is a module for managing the display screen, for example, for a folding screen electronic device, the display manager can determine that the folding screen electronic device is in a folded state, or in a half unfolded state, or in an unfolded state.
[0074] The content provider is used to store and obtain data, and make the data accessible to the application program. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phonebook, etc.
[0075] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc., such as the indication information for prompting the virtual shutter key in the embodiments of the present application, etc. The view system can be used to build an application program. The display interface can be composed of one or more views. For example, the display interface including the short message notification icon can include a view for displaying text and a view for displaying pictures.
[0076] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including connection, hang up, etc.).
[0077] The resource manager provides various resources for the application program, such as localized strings, icons, pictures, layout files, video files, etc.
[0078] The notification manager enables the application program to display notification information in the status bar, which can be used to convey the type of message, which can automatically disappear after a short stay, without user interaction. For example, the notification manager is used to inform the completion of the download, message reminder, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the top status bar of the system, such as the notification of the application program running in the background, and can also be a notification in the form of a dialogue window appearing on the screen. For example, prompting text information in the status bar, issuing a prompt sound, the electronic device vibrating, the indicator light flashing, etc.
[0079] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0080] The core library contains two parts: one part is a function function that the java language needs to call, and the other part is the core library of Android.
[0081] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.
[0082] The system library can include multiple functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: OpenGL ES), a 2D graphics engine (for example: SGL), etc.
[0083] The surface manager is used to manage the display subsystem and provides 2D and 3D layer fusion for multiple applications.
[0084] The media library supports multiple commonly used audio, video format playback and recording, and static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0085] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.
[0086] The 2D graphics engine is a drawing engine for 2D drawing.
[0087] In addition, the system library can also include state monitoring service modules, such as a physical state identification module for analyzing and identifying user gestures; a sensor service module for monitoring sensor data uploaded by various sensors in the hardware layer to determine the physical state of the electronic device 100.
[0088] The kernel layer is the layer between hardware and software. The kernel layer at least contains display drivers, camera drivers, audio drivers, and sensor drivers.
[0089] The hardware layer can include various sensors, such as Figure 1 The various sensors introduced in the foregoing embodiments, the acceleration sensor, the gyroscope sensor, the touch sensor, etc.
[0090] It should be noted that, Figure 2The above-mentioned only takes one way of dividing system framework as an example, and should not be understood as a specific limitation on the embodiments of the present application. In the embodiments of the present application, different frameworks can be used for different operating systems when the operating systems carried by the electronic device are different. It can be understood that when different frameworks are used, the division of each layer of the framework, the specific naming, and the specific location of each module in the layer can be different.
[0091] When a user uses an electronic device, the electronic device can be in a landscape state or a portrait state. The landscape state is the state of the electronic device when the electronic device is in a landscape display. The portrait state is the state of the electronic device when the electronic device is in a portrait display. In the landscape state, the display screen of the electronic device is in a horizontal strip shape, and in the portrait state, the display screen of the electronic device is in a vertical strip shape.
[0092] Since the electronic device includes a landscape state and a portrait state, the display direction of the electronic device will have a landscape direction and a portrait direction, that is, the interface direction of the display of the electronic device includes a landscape direction and a portrait direction. The width of the display interface corresponding to the landscape direction is greater than the height of the display interface. In other words, when the width of the interface displayed by the electronic device is greater than the height, the display direction of the electronic device can be referred to as a landscape direction, that is, the display interface is in a horizontal strip shape. The width of the display interface of the screen corresponding to the portrait direction is less than the height of the display interface. In other words, when the width of the interface displayed by the electronic device is less than the height, the display direction of the electronic device can be referred to as a portrait direction, that is, the display interface is in a vertical strip shape.
[0093] With the progress of screen technology and folding shaft technology, more and more users begin to use folding screen electronic devices. The folding screen electronic device provides a larger screen for the user. For the folding screen electronic device, according to the folding angle of the folding screen electronic device from large to small, the use form of the folding screen electronic device can include an unfolded state, a half-unfolded state, and a folded state. For example, as shown in (a) of FIG. 1, Figure 3 The unfolded state of the folding screen electronic device can include a display screen 301 and a display screen 302. The display screen 301 and the display screen 302 can be different sub-displays of the same display screen. It can be understood that when the folding screen electronic device is in the unfolded state, the included angle between the display screen 301 and the display screen 302 can be 180°.
[0094] As shown in (a) of FIG. 1, Figure 3 The axis k can be the axis when the folding screen electronic device is folded, the display screen 301 is located on the left side of the axis k, and the display screen 302 is located on the right side of the axis. The back of the display screen 301 or the display screen 302 can include a camera.
[0095] As shown in (a) of FIG. 1, Figure 3As shown in (b) above, an external display screen 303 may also be included on the back side of the display screen 301. Figure 3 The folding state of the folding screen electronic device shown in (b) is such that when the folding screen electronic device is in the folding state, the included angle between the two displays can be 0°, that is, the displays 301 and 302 are relatively close together. This folding method is inward folding.
[0096] In other examples, the backs of displays 301 and 302 can be fitted together, which is an outward folding method.
[0097] like Figure 3 As shown in (a) and (b) of the figure, the folding screen electronic device shown is a single-fold device, meaning it can be folded once. This type of folding screen electronic device can be called a single-fold electronic device. When the single-fold electronic device is in the folded state, its length in the y-direction is greater than its length in the x-direction, meaning its height is greater than its width. When the single-fold electronic device is in the unfolded state, its length in the y-direction is still greater than its length in the x-direction, meaning its height is still greater than its width.
[0098] In other examples, for a single-folding electronic device, when the single-folding electronic device is in the unfolded state, the length of the folding screen electronic device in the y direction can be less than or equal to the length in the x direction, that is, the height of the single-folding electronic device is less than or equal to the width.
[0099] In this embodiment of the application, the state in which the length of the foldable screen electronic device in the y direction is greater than the length in the x direction is called the vertical screen state, that is, the display screen of the foldable screen electronic device is vertical. The state in which the length of the foldable screen electronic device in the x direction is greater than the length in the y direction is called the horizontal screen state, that is, the display screen of the foldable screen electronic device is horizontal.
[0100] In this embodiment of the application, when the single-fold electronic device is in a folded state or a portrait state, it switches from the folded state to the unfolded state. The single-fold electronic device can still be in a portrait state, that is, as shown below. Figure 3 As shown in (a), the screen can also be changed from portrait mode to landscape mode.
[0101] Foldable screen electronic devices include not only single-fold devices but also multi-fold devices, meaning they can be folded multiple times. These multi-fold devices represent the future development direction of foldable screen electronic devices. Figure 4 A schematic diagram of a multi-fold electronic device provided in an embodiment of this application is shown.
[0102] like Figure 4Image (a) shows the unfolded state of the multi-folding electronic device, which can include display screens 401, 402, and 403 after unfolding. Display screens 401, 402, and 403 can be different sub-display screens of the same display screen. Display screens 401 and 402 are unfolded or folded via one folding hinge, while display screens 402 and 403 are unfolded or folded via another folding hinge, meaning they can be folded twice.
[0103] like Figure 4 (b) shows one folding method of the multi-fold electronic device. The folding method between display screen 401 and display screen 402 is outward folding, and the folding method between display screen 402 and display screen 403 is inward folding.
[0104] According to embodiments of this application, the multi-folding electronic device can be folded twice, thereby allowing the screen ratio of the foldable screen device in the unfolded state to better adapt to various application scenarios. For example, the unfolded screen ratio of the multi-folding electronic device can be 16:9, 18:9, 21:9, etc., which can better adapt to the aspect ratio of mainstream videos.
[0105] Depend on Figure 4 As shown in (a) and (c), when the multi-fold electronic device is in a folded state, its length in the y-direction is greater than its length in the x-direction, meaning its height is greater than its width. When the multi-fold electronic device is in an unfolded state, its length in the y-direction is less than its length in the x-direction, meaning its height is less than its width. In other words, for a multi-fold electronic device, when it changes from a folded state to an unfolded state, it also simultaneously changes from a portrait state to a landscape state.
[0106] It should be noted that, Figure 4 (b) shows only one folding method for a multi-fold electronic device and should not be construed as a specific limitation on the embodiments of this application. For example, in some other embodiments of this application, such as Figure 4 As shown in (d), the folding method between display screens 401 and 402 is inward folding, and the folding method between display screens 402 and 403 is inward folding, with display screen 403 covering display screen 401 after folding. Figure 4 The multi-folding electronic device described in (d) may further include an external display screen 404 on the back side of the display screen 403, and a camera may further be included on the back side of the display screen 402.
[0107] It should also be noted that, Figure 4The multi-fold electronic device includes only two folding rotation shafts as an example, but the embodiments of the present application are not limited thereto, and the multi-fold electronic device in the embodiments of the present application can also include more folding rotation shafts.
[0108] Although the folding screen electronic device provides a larger display area, there are problems of poor adaptation in many application scenarios. In addition, in order to provide a larger display area to the user while ensuring that the folding screen electronic device can be held by the user with one hand after folding, the folding screen electronic device will gradually evolve into a multi-fold electronic device, which brings greater challenges to the adaptation of application scenarios (such as playing videos, navigation, etc.).
[0109] At present, when the folding screen electronic device is folded, the user often holds the folding screen electronic device vertically, that is, the folding screen electronic device is in a folded state and a vertical screen state at the same time, at this time, the folding screen electronic device will display the current interface in a vertical screen layout mode, when the folding screen electronic device is switched from the folded state to the unfolded state, the current interface will still be displayed in the vertical screen layout mode, which will be introduced in combination with Figure 5 and Figure 6 .
[0110] Figure 5 A set of graphical user interfaces (GUIs) are shown.
[0111] As shown in (a) in Figure 5 , the single-fold electronic device can display interface 501 in a vertical screen layout mode when the single-fold electronic device is in a folded state and a vertical screen state at the same time. The interface 501 is the interface of a video application program.
[0112] Exemplarily, the single-fold electronic device can display the interface 501 in a vertical screen layout mode through an outer display screen when the single-fold electronic device is in a folded state and a vertical screen state at the same time, wherein the outer display screen is a non-foldable display screen, the single-fold electronic device further includes an inner display screen, the inner display screen is a foldable display screen, and the folding manner corresponding to the single-fold electronic device is inner folding. For example, the single-fold electronic device is a folding screen electronic device as shown in (b) in Figure 3 , the single-fold electronic device can display the interface 501 using the display screen 303 (i.e., the outer display screen).
[0113] Exemplarily, the single-fold electronic device can display the interface 501 in a vertical screen layout mode through one sub-display screen of the foldable display screen when the single-fold electronic device is in a folded state and a vertical screen state at the same time.
[0114] The single-fold electronic device can play video #1 on interface 501, and display information about video #1 and other videos associated with video #1 (such as video #2 and video #3). The aspect ratio of video #1 can be 16:9. The information about video #1 can include the publisher of video #1, the publication time of video #1, and the name of video #1. Since the aspect ratio of video #1 is 16:9, to ensure that the aspect ratio of video #1 does not change, when the single-fold electronic device displays interface 501 in portrait layout, the area occupied by video #1 on interface 501 is smaller than the area occupied by the information of video #1 and other videos on interface 501. When the single-fold electronic device detects the user's operation of unfolding the single-fold electronic device, it can display, for example... Figure 5 The GUI shown in (b) is shown in the image.
[0115] like Figure 5 As shown in (b), the single-fold electronic device can respond to the user's operation of unfolding the single-fold electronic device and adjust the interface elements of interface 501 according to the area of the unfolded display screen. For example, the display area of video #1 can be enlarged and videos #2 and #3 can no longer be displayed.
[0116] It should be noted that, Figure 5 The GUI interface 501 shown in (b) is still in portrait layout, only the display area of video #1 and the information of video #1 are enlarged.
[0117] like Figure 5 As shown in (b) and (c), when the single-folding electronic device detects a user's leftward rotation, it can display the following in response to the operation: Figure 5 The GUI shown in (c) is shown in the image.
[0118] like Figure 5 As shown in (c), the single-folding electronic device, in response to the user's leftward rotation, can switch to displaying interface 501 in landscape mode. Displaying interface 501 in landscape mode can be understood as the single-folding electronic device further enlarging video #1 according to its aspect ratio, without displaying any information related to video #1. Since video #1 has an aspect ratio of 16:9, and... Figure 5 The foldable screen electronic device shown is nearly square when unfolded. Therefore, the single-fold electronic device will use black borders to fill part of the display screen and place the interface 501 in the middle area of the display screen.
[0119] As described above, after a single-fold electronic device switches from a folded state to an unfolded state, it will still display the interface 501 in a portrait layout. Only when the user's rotation operation is detected will it switch from a portrait layout to a landscape layout.
[0120] In addition, due to Figure 5 The single-fold electronic device shown is nearly square in its unfolded state. If the single-fold electronic device is in a position such as... Figure 5 In the portrait mode shown in (b), interface 501 can be displayed in a landscape layout, and the display area of video #1 is basically the same as that of the foldable screen electronic device. Figure 5 As shown in (c) above, the display area of video #1 is the same in landscape mode. Therefore, the user's rotation operation is essentially an operation that can be omitted.
[0121] Figure 5 The foldable screen electronic device shown is a single-fold electronic device. When the foldable screen electronic device is a multi-fold electronic device, if it is still followed... Figure 6 The operating logic shown may not fully utilize the advantages of multi-foldable electronic devices. The following section will explain... Figure 6 Please provide an explanation.
[0122] Figure 6 Another set of GUIs is shown.
[0123] like Figure 6 As shown in (a), when the multi-foldable electronic device is simultaneously in folded and portrait modes, it can display interface 601 in a portrait layout. This interface 601 is the interface for a video application, wherein the multi-foldable electronic device can be folded twice.
[0124] The multi-folding electronic device can play video #1 on interface 601, and display information about video #1 and other videos associated with video #1 (such as video #2 and video #3), wherein the aspect ratio of video #1 can be 16:9. When the multi-folding electronic device detects a user unfolding the folding screen electronic device, it can display, as shown below... Figure 6 The GUI shown in (b) is shown in the image.
[0125] like Figure 6 As shown in (b), the multi-folding electronic device can adjust the interface elements of interface 601 in response to the user's operation of unfolding the multi-folding electronic device. For example, the display area of video #1 can be enlarged and videos #2 and #3 can no longer be displayed.
[0126] It should be noted that, Figure 5 The GUI interface 601 shown in (b) is still in portrait layout, only the display area of video #1 and the concise information of video #1 have been enlarged.
[0127] It should also be noted that, in order to ensure the normal aspect ratio of video #1, when the multi-folding electronic device displays interface 501 in portrait layout in the unfolded state, black borders will be used to fill part of the area on both sides of the display screen.
[0128] As can be known from the above description, after the multi-folded electronic device is switched from the folded state to the unfolded state, the interface 601 is still displayed in the vertical screen layout mode, and in order to ensure the proportion of the video 1, the black border is used to fill the part of the area on both sides of the display screen, and the display screen is not fully utilized.
[0129] In combination Figure 6 and Figure 7 As can be known, no matter the single-folded electronic device or the multi-folded electronic device, when switched from the folded state to the unfolded state, the interface is still displayed in the vertical screen layout mode, which may not meet the user's operation psychological expectation. For example, when the folded screen electronic device is in the folded state and the vertical screen state, the video can be played in the vertical screen layout mode. At this time, if the user unfolds the folded screen electronic device, the user's operation psychological expectation may be to play the video in full screen, but the folded screen electronic device still plays the video in the vertical screen layout mode, and the related information of the video is displayed on the interface, which does not meet the user's operation psychological expectation, and will cause the user's use experience to decrease.
[0130] In addition, the interface of part of the application programs (for example, the game application program) only supports the horizontal screen layout mode, that is, no matter the folded screen electronic device is in the horizontal screen state or the vertical screen state, the interface of the application program is in the horizontal screen layout mode. The following will be described in combination with Figure 7 .
[0131] Figure 7 Another set of GUIs is shown.
[0132] As shown in (a) of FIG. 7, Figure 7 , the single-folded electronic device in the folded state and the vertical screen state displays the interface 701 in the horizontal screen layout mode. The interface 701 is the interface of the game application program. In order for the user to normally use the game application program, the user needs to rotate the single-folded electronic device 90° to the left, so that the single-folded electronic device is switched from the vertical screen state to the horizontal screen state, that is, as shown in (b) of FIG. 7. Figure 7
[0133] As shown in (a) and (c) of FIG. 7, Figure 7 , the single-folded electronic device can enlarge the interface 701 according to the area of the display screen after being switched from the folded state to the unfolded state. However, in order for the user to normally use the game application program, the user still needs to rotate 90° to the left, that is, as shown in (d) of FIG. 7. Figure 7
[0134] It can be understood that when the user rotates the single-folded electronic device 90° to the left, the display direction of the single-folded electronic device changes from the vertical screen direction to the horizontal screen direction.
[0135] Similarly, the multi-folded electronic device also has the problem ofFigure 8 The issue shown is that the user needs to manually rotate the device to use the application properly.
[0136] In summary, foldable screen electronic devices suffer from poor compatibility in many application scenarios, leading to unnecessary operations for users. Furthermore, to provide users with a larger display area while ensuring one-handed operation when folded, foldable screen electronic devices will gradually evolve into multi-fold devices, meaning they can be folded multiple times. This presents an even greater challenge in adapting to different application scenarios.
[0137] Based on this, the display method provided in this application embodiment can synchronously adjust the layout of the interface when the foldable screen electronic device switches from a folded state to an unfolded state, switching from a portrait layout to a landscape layout. The following is in conjunction with... Figure 8 - A detailed introduction to the GUI shown in the figure.
[0138] Figure 8 A set of GUIs provided in embodiments of this application is shown.
[0139] like Figure 8 As shown in (a), when the single-fold electronic device is simultaneously in folded and portrait modes, it displays interface 801 in a portrait layout. This interface 801 is the interface for a video application. The single-fold electronic device can play video #1 on interface 801. Figure 8 The display orientation of interface 801 shown in (a) is portrait orientation.
[0140] When a single-fold electronic device detects a user unfolding the device, it can display something like: Figure 8 The GUI shown in (b) is shown in the image.
[0141] like Figure 8 As shown in (b), in response to the user's operation of unfolding the single-fold electronic device, the display orientation of the interface 801 can be switched to landscape orientation and the interface 801 can be displayed in landscape layout mode, that is, the video #1 is enlarged and played according to the ratio of the video #1, and no longer the information related to the video #1 is displayed.
[0142] It is understandable that if a single-fold electronic device switches from an unfolded state to a folded state, it can also simultaneously switch to displaying interface 801 in a portrait layout, and change the display direction of interface 801 from landscape to portrait.
[0143] It should be noted that because video #1 is in a 16:9 aspect ratio, and Figure 9The single-fold electronic device shown is nearly square when unfolded. Therefore, when playing video #1, the single-fold electronic device will fill part of the display screen with black borders and place interface 801 in the middle area of the display screen.
[0144] In this embodiment, the single-fold electronic device displays the interface in portrait mode when it is in folded or portrait mode. When the single-fold electronic device switches from folded to unfolded mode, it automatically switches to landscape mode, eliminating the need for the user to rotate the device. This allows for better utilization of the foldable screen and saves user steps, thus improving the user experience.
[0145] Figure 9 A set of GUIs provided in embodiments of this application is shown.
[0146] like Figure 9 As shown in (a), when the multi-foldable electronic device is simultaneously in folded and portrait modes, it displays interface 901 in a portrait layout. This interface 901 is the interface for a video application. The multi-foldable electronic device can play video #1 on interface 901. Figure 9 The display orientation of interface 901 shown in (a) is portrait orientation.
[0147] When a multi-folding electronic device detects a user unfolding the foldable screen, it can display something like... Figure 9 The GUI shown in (b) is shown in the image.
[0148] like Figure 9 As shown in (b), the multi-folding electronic device can switch the display orientation of interface 901 to landscape mode and display interface 901 in landscape layout in response to the user's operation of unfolding the folding screen electronic device, that is, play the video #1 in full screen.
[0149] It should be noted that, since video #1 is in a 16:9 aspect ratio, Figure 9 The multi-fold electronic device shown can have a 16:9 aspect ratio or a ratio close to 16:9 when unfolded (e.g., 18:9, 18.5:9, etc.). Therefore, the multi-fold electronic device can play the video #1 in full screen, which improves the utilization of the display screen. The switching logic is more in line with the user's psychological expectations and helps to improve the user experience.
[0150] It is understandable that when a multi-foldable electronic device switches from an unfolded state to a folded state, it can also simultaneously switch to displaying interface 901 in a portrait layout, and change the display orientation of interface 901 from landscape to portrait.
[0151] In this embodiment, the multi-foldable electronic device displays its interface in a portrait layout when it is in a folded or portrait state. When the multi-foldable electronic device switches from a folded state to an unfolded state, it can automatically switch to a landscape layout to better adapt to the unfolded display screen of the multi-foldable electronic device, make better use of the screen, and save user operation steps, thus improving the user experience.
[0152] like Figure 9 As shown in (b) and (c), the multi-folding electronic device detects the user's operation of rotating 90° to the left. In response to this operation, the display orientation of interface 901 can be switched to portrait orientation and the interface 901 can be displayed in portrait layout.
[0153] In this embodiment, when the multi-foldable electronic device is in the unfolded state, the interface can be displayed in a landscape layout. When the multi-foldable electronic device is rotated, it switches from a landscape state to a portrait state. Therefore, the multi-foldable electronic device will automatically switch to a portrait layout to display the interface. This better adapts to the display screen form when the multi-foldable electronic device is unfolded and in portrait mode, making better use of the screen and improving the user experience.
[0154] contrast Figure 9 As can be seen from (a) and (c), although both display interface 901 in a portrait layout, Figure 8 The multi-fold electronic device in (c) has a larger display area because it is in the unfolded state, so the various interface elements in interface 901 can be magnified.
[0155] like Figure 9 As shown in (c) and (d) in the figure, the multi-folding electronic device detects the user's folding operation and, in response to the operation, can switch the display orientation of interface 901 to landscape orientation and display interface 901 in landscape layout.
[0156] In this embodiment, the multi-foldable electronic device can display the interface in a portrait layout when it is in an unfolded state or a portrait state. When the multi-foldable electronic device switches from an unfolded state to a folded state, it also switches from a portrait state to a landscape state. Therefore, the multi-foldable electronic device will automatically switch to displaying the interface in a landscape layout, which can better adapt to the display screen shape when the multi-foldable electronic device is folded and in a landscape state, thus improving the user experience.
[0157] The above Figure 10 and Figure 11The application simultaneously supports horizontal screen layout and vertical screen layout in the illustrated GUI. In some embodiments of the application, some applications only support horizontal screen layout. In this case, the folding screen electronic device can also adjust the interface of the application according to its own state. The following describes the embodiments of the application in detail. Figure 10 and Figure 10
[0158] Figure 10 Another set of GUIs provided by the embodiments of the application is shown.
[0159] As shown in (a) of FIG. 10, the single folding electronic device displays the interface 1001 in a horizontal screen layout when it is in the folded state and the vertical screen state at the same time. The interface 1001 is the interface of a game application. Figure 10
[0160] As shown in (a) and (b) of FIG. 10, the single folding electronic device can switch the display direction of the interface 1001 to the horizontal screen direction in response to the switching from the folded state to the unfolded state, and can also adjust the size of the interface 1001 according to the area of the display screen after unfolding. Figure 10 In the embodiments of the application, when the single folding electronic device is in the folded state and the vertical screen state and runs an application that only supports horizontal screen layout, the user can unfold the single folding electronic device. The single folding electronic device can automatically rotate the interface of the application in response to the switching from the folded state to the unfolded state, without the need for the user to manually rotate the device, thereby saving the user's operation and improving the user's experience.
[0161] In some other embodiments of the application, as shown in (a) and (c) of FIG. 10, the single folding electronic device can rotate the interface 1001 to the left by 90° in response to the switching from the folded state to the unfolded state, and adjust the size of the interface 1001 according to the area of the display screen after unfolding to display the interface 1001 in full screen. It can be understood that
[0162] (c) of FIG. 10 shows that the display direction of the interface 1001 is still the vertical screen direction. Figure 11 Figure 11 Another set of GUIs provided by the embodiments of the application is shown.
[0163] Figure 11 As shown in (a) of FIG. 11, the multi-folding electronic device displays the interface 1101 in a horizontal screen layout when it is in the folded state and the vertical screen state at the same time. The interface 1101 is the interface of a game application.
[0164] As shown in (a) of FIG. 11, the multi-folding electronic device displays the interface 1101 in a horizontal screen layout when it is in the folded state and the vertical screen state at the same time. The interface 1101 is the interface of a game application. Figure 8
[0165] Figure 9 As shown in (a) and (b), in response to switching from a folded state to an unfolded state, the multi-folding electronic device can switch the display orientation of interface 1101 to landscape orientation and adjust the size of interface 1101 according to the area of the unfolded display screen to display interface 1101 in full screen.
[0166] In this embodiment, when the multi-foldable electronic device is in a folded state and running an application that only supports landscape layout in portrait mode, the user can unfold the multi-foldable electronic device. In response to switching from a folded state to an unfolded state, the multi-foldable electronic device can automatically rotate the application interface, eliminating the need for manual device rotation by the user, thus saving user effort and improving the user experience.
[0167] The above targets Figure 12 and Figure 12 In the description, the foldable screen electronic device can display the interface in portrait layout when it is in folded or portrait mode, and can automatically switch to landscape layout in response to switching from folded to unfolded mode. In some other embodiments of this application, when the foldable screen electronic device switches to landscape layout, it can first output a prompt message, and then switch to landscape layout after detecting user confirmation. The following is a detailed explanation... Figure 12 Provide a detailed description.
[0168] Figure 12 Another set of GUIs provided in the embodiments of this application is shown.
[0169] like Figure 12 As shown in (a), when the multi-foldable electronic device is simultaneously in folded and portrait modes, it displays interface 1201 in a portrait layout. This interface 1201 is the interface for a video application. The multi-foldable electronic device can play video #1 on interface 1201.
[0170] When a multi-fold electronic device detects a user unfolding the device, it can display something like: Figure 12 The GUI shown in (b) is shown in the image.
[0171] like Figure 6 As shown in (b), the multi-folding electronic device can display a prompt message 1202 in response to switching from a folded state to an unfolded state. This prompt message is used to prompt the user to confirm whether to switch from a portrait layout mode to a landscape layout mode.
[0172] like Figure 13 As shown in (b) and (c), the multi-folding electronic device can switch to display the interface 1201 in a landscape layout in response to the user's click on the control 1203.
[0173] It can be understood that if the user clicks the control 1204, the multi-fold electronic device can maintain the interface 1201 in the portrait screen layout mode in response to the operation of the user, that is, similar to the GUI shown in (b) of FIG. 12. Figure 13
[0174] In the embodiments of the present application, the multi-fold electronic device displays the interface in the portrait screen layout mode when it is in the folded state and the portrait screen state. When the multi-fold electronic device is switched from the folded state to the unfolded state, it can first ask the user whether to switch to the landscape screen layout mode. When it detects the operation of the user to switch to the landscape screen layout mode, it can switch to the landscape screen layout mode to display the interface, which can better adapt to the form of the display screen of the multi-fold electronic device after unfolding, can better utilize the screen of the folding screen electronic device after unfolding, saves the steps of user operation, and does not mis-trigger, which helps to improve the user experience.
[0175] In the embodiments of the present application, the folding screen electronic device can first ask the user whether to switch to the landscape screen layout mode before switching from the portrait screen layout mode to the landscape screen layout mode, to determine whether to finally switch to the landscape screen layout mode. In addition, in some other embodiments of the present application, the folding screen electronic device is further configured with a white list including one or more application programs, which can be preset (for example, preset by the user or preset when the folding screen electronic device is shipped). Assuming that a certain application program is an application program in the white list, the folding screen electronic device displays the interface of the application program in the portrait screen layout mode when it is in the folded state and the portrait screen state. When the folding screen electronic device is switched from the folded state to the unfolded state, it can automatically switch from the portrait screen layout mode to the landscape screen layout mode, and the folding screen electronic device in the unfolded state displays the interface of the application program in the landscape screen layout mode. When the folding screen electronic device is switched from the unfolded state to the folded state and the folding screen electronic device is in the portrait screen state, it displays the interface of the application program in the portrait screen layout mode. Assuming that a certain application program is not an application program in the white list, the folding screen electronic device displays the interface of the application program in the portrait screen layout mode when it is in the folded state and the portrait screen state. When the folding screen electronic device is switched from the folded state to the unfolded state, it can maintain the interface in the portrait screen mode, or output a prompt information to prompt the user whether to switch to the landscape screen layout mode.
[0176] In some embodiments of the present application, the application program is configured with an application attribute, which is used to indicate that the folding screen electronic device displays the interface of the application program in a vertical screen layout when the folding screen electronic device is in a folded state and a vertical screen state, and automatically switches the vertical screen layout to a horizontal screen layout when the folding screen electronic device is switched from the folded state to an unfolded state. In some other embodiments of the present application, the application program is configured with an application attribute, which is used to indicate that the folding screen electronic device displays the interface of the application program in a vertical screen layout when the folding screen electronic device is in a folded state and a vertical screen state, and allows automatic switching of the vertical screen layout to a horizontal screen layout when the folding screen electronic device is switched from the folded state to an unfolded state. In addition, the application attribute can also indicate that the folding screen electronic device displays the interface of the application program in a horizontal screen layout when the folding screen electronic device is in an unfolded state, and displays the interface of the application program in a vertical screen layout when the folding screen electronic device is switched from the unfolded state to the folded state and the folding screen electronic device is in a vertical screen state.
[0177] In the embodiments of the present application, when the folding screen electronic device is a multi-fold electronic device, the foldable display screen can be divided into at least three sub-display screens when the multi-fold electronic device is in an unfolded state. When the multi-fold electronic device displays an interface in a horizontal screen layout, the interface can be displayed in a horizontal screen layout by part of the sub-display screens (the number of which is greater than or equal to 2), and another interface can be displayed by the remaining sub-display screens. The following will be described in conjunction with Figure 13 .
[0178] Figure 13 A set of GUIs provided by the embodiments of the present application are shown.
[0179] As shown in (a) of Figure 13 , the multi-fold electronic device displays an interface 1301 in a vertical screen layout when the multi-fold electronic device is in a folded state and a vertical screen state at the same time. The interface 1301 is the interface of a video application program. The multi-fold electronic device can play a video #1 in the interface 1301.
[0180] When the multi-fold electronic device detects a user's operation of unfolding the folding screen electronic device, a GUI as shown in (b) of Figure 14 may be displayed.
[0181] As shown in (b) of Figure 14 , the multi-fold electronic device includes a sub-display screen #1, a sub-display screen #2, and a sub-display screen #3 after being unfolded. The multi-fold electronic device can switch the display direction of the interface 1301 to a horizontal screen direction and display the interface 1301 in a horizontal screen layout by the sub-display screen #1 and the sub-display screen #2, and display an interface 1302 by the sub-display screen #3 in response to the user's operation of unfolding the folding screen electronic device. The interface 1302 is also the interface of the video application program, for example, the interface 1302 can be a comment interface of the video #1. The display direction of the interface 1302 can be a vertical screen direction.
[0182] In the embodiments of the present application, when the multi-fold electronic device is in the folded state and the vertical screen state, the interface is displayed in a vertical screen layout mode. When the multi-fold electronic device is switched from the folded state to the unfolded state, the interface can be automatically switched to be displayed on part of the sub-display in a horizontal screen layout mode, and the remaining sub-display can display another interface, which can better adapt to the form of the display screen of the unfolded multi-fold electronic device, can better utilize the screen of the foldable screen electronic device, and saves the steps of user operation, thereby helping to improve the user experience.
[0183] It should be noted that, Figure 8 In the above, only the interface 1301 is taken as an example of the playing interface of video #1, and the interface 1302 is taken as an example of the comment interface of video #1, but the embodiments of the present application are not limited thereto. For example, the interface 1301 can be a playing interface of a song, and the interface 1302 can be a comment interface of the song.
[0184] For another example, the interface 1301 can be a main interface of a product, and the interface 1302 can be an evaluation interface of the product.
[0185] The display method provided by the embodiments of the present application is introduced above in combination with the GUI, and the display method provided by the embodiments of the present application will be introduced below in combination with the method flowchart.
[0186] Figure 9 A schematic flowchart of a display method provided by the embodiments of the present application is shown, and the method is applied to a foldable screen electronic device, such as Figure 8 As shown in the figure, the method comprises the following steps.
[0187] S1401, a first interface is displayed in a vertical screen layout mode, wherein when the first interface is displayed in the vertical screen layout mode, the foldable screen electronic device is in a folded state and a vertical screen state, and the display direction of the first interface is a vertical screen direction.
[0188] When the foldable screen electronic device is in the folded state and the vertical screen state, the first interface can be displayed in the vertical screen layout mode, and the first interface is an interface of a first application program, and the first application program also supports a horizontal screen layout mode.
[0189] In some embodiments, the foldable screen electronic device is a single-fold electronic device.
[0190] For example, as shown in (a) of FIG. 8, Figure 9 the single-fold electronic device displays an interface 801 in a vertical screen layout mode.
[0191] In some embodiments, the foldable screen electronic device is a multi-fold electronic device.
[0192] For example, as shown in (a) of FIG. 8, Figure 15 the multi-fold electronic device displays an interface 801 in a vertical screen layout mode.
[0193] S1402, in response to switching from the folded state to the unfolded state, switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout.
[0194] For example, as shown in (a) and (b) of FIG. 8, when the single-fold electronic device switches from the folded state to the unfolded state, the display direction of the interface 801 can be switched to the landscape direction and the interface 801 can be displayed in the landscape layout. Figure 15 For another example, as shown in (a) and (b) of FIG. 9, when the multi-fold electronic device switches from the folded state to the unfolded state, the display direction of the interface 901 can be switched to the landscape direction and the interface 901 can be displayed in the landscape layout.
[0195] Figure 16
[0196] In the embodiments of the present application, when the folding screen electronic device is in the folded state and the portrait state, the current interface is displayed in the portrait layout. When the folding screen electronic device switches from the folded state to the unfolded state, it can automatically switch to display the current interface in the landscape layout, which can better adapt to the form of the display screen after the folding screen electronic device is unfolded, can better utilize the screen of the folding screen electronic device, and saves the user's operation steps without the user manually rotating the device, which helps to improve the user's experience.
[0197] In the embodiments of the present application, the implementation of the folding screen electronic device switching from displaying the first interface in the portrait layout to displaying the first interface in the landscape layout is not specifically limited, and several possible implementation manners are exemplarily introduced below.
[0198] In one possible implementation manner, when the folding screen electronic device detects that it switches from the folded state to the unfolded state, it can call a system interface to change the window direction of the activity corresponding to the first interface, i.e., from the portrait direction to the landscape direction, and then load the display resource corresponding to the horizontal layout of the first interface. It can be understood that the display direction of the first interface is switched from the portrait direction to the landscape direction, and the folding screen electronic device can adjust the size of the first interface according to the size of the display screen after unfolding, and then display the first interface in the landscape layout.
[0199] In one possible implementation manner, when the folding screen electronic device detects that it switches from the folded state to the unfolded state, it can change the direction detected by the direction sensor, and then determine to switch from the portrait layout to the landscape layout according to the changed direction of the direction sensor. Figure 16 An internal data flow diagram is shown.
[0200] As shown in FIG. 10, the folding screen electronic device 1000 can include a processor 1001, a memory 1002, a display 1003, a direction sensor 1004, and a communication interface 1005. Figure 16 As shown, the screen manager can obtain the folding angle of the folding hinge of the foldable screen electronic device to determine the state of the foldable screen electronic device and its state changes based on the folding angle of the hinge. The state of the foldable screen electronic device includes a folded state, a half-unfolded state, and an unfolded state.
[0201] For example, a foldable screen electronic device is a multi-fold electronic device, which includes two folding hinges. If the screen manager determines that the angle of the two folding hinges is 180°, then the multi-fold electronic device can be determined to be in the unfolded state.
[0202] For example, a foldable screen electronic device is a multi-fold electronic device. The multi-fold electronic device includes two folding hinges. If the screen manager determines that the angle of both folding hinges changes from 0° to 180°, then it can be determined that the multi-fold electronic device switches from a folded state to an unfolded state.
[0203] When the screen manager determines that the state of the foldable electronic device has changed, it sends the current state information of the foldable electronic device to the sensor driver module. After receiving the state information, the sensor driver module can change the orientation data detected by the orientation sensor to adapt to the current state of the foldable electronic device.
[0204] In some embodiments, the screen manager can broadcast the current status information of the foldable screen electronic device through the kernel layer's display module.
[0205] For example, when a foldable screen electronic device is in a folded state and a portrait state, the three-axis coordinate system corresponding to the orientation sensor is as follows: Figure 16 As shown in (a), the z-axis is perpendicular to the outward-facing display screen. When the foldable screen electronic device switches from a folded state to an unfolded state, the screen manager can send information about the current unfolded state of the foldable screen electronic device to the sensor driver module. After receiving this information, the sensor driver module can transpose the three-axis coordinate system corresponding to the orientation sensor to adapt to the unfolded state. The transposed three-axis coordinate system is shown in Figure (a). Figure 16 As shown in (b) of the diagram.
[0206] Understandably, in Figure 16 In the examples shown in (a) and (b), when the foldable screen electronic device switches from a folded state to an unfolded state, the user does not manually rotate the foldable screen electronic device, and the orientation data detected by the orientation sensor should remain unchanged. However, in this embodiment, because the orientation data detected by the orientation sensor is changed by the sensor driving module, the changed orientation data can be made the same as the orientation data detected by the orientation sensor when the foldable screen electronic device is actually rotated. In other words, changing the orientation data detected by the orientation sensor by the sensor driving module can be understood as simulating the user rotating the foldable screen electronic device.
[0207] The sensor driving module can send the changed orientation data to a first application program, which is the application program corresponding to the first interface, after the orientation data detected by the orientation sensor is changed. After receiving the orientation data, the first application program can load the display resource corresponding to the landscape layout mode of the first interface.
[0208] In some embodiments, the sensor driving module can report the changed orientation data to the first application program through the framework layer.
[0209] When the folding-screen electronic device switches from the unfolded state to the folded state, the three-axis coordinate system switches from the state shown in (a) of FIG. 8 to the state shown in (b) of FIG. 8. Figure 16 It can be understood that, when the folding-screen electronic device switches from the unfolded state to the folded state again, the three-axis coordinate system can also switch from the state shown in (b) of FIG. 8 to the state shown in (a) of FIG. 8. Figure 8 It can be understood that, when the folding-screen electronic device switches from the unfolded state to the folded state again, the three-axis coordinate system can also switch from the state shown in (b) of FIG. 8 to the state shown in (a) of FIG. 8. Figure 9 It can be understood that, when the folding-screen electronic device switches from the unfolded state to the folded state again, the three-axis coordinate system can also switch from the state shown in (b) of FIG. 8 to the state shown in (a) of FIG. 8. Figure 9 It can be understood that, when the folding-screen electronic device switches from the unfolded state to the folded state again, the three-axis coordinate system can also switch from the state shown in (b) of FIG. 8 to the state shown in (a) of FIG. 8.
[0210] S1403, displaying the second interface in a landscape layout mode, wherein the folding-screen electronic device is in an unfolded state when the second interface is displayed in the landscape layout mode, and the second interface is in a landscape orientation.
[0211] S1404, in response to switching from the unfolded state to the folded state, switching the display orientation of the second interface to a portrait orientation and displaying the second interface in a portrait layout mode.
[0212] After the folding-screen electronic device switches from the unfolded state to the folded state, the folding-screen electronic device is in a portrait state.
[0213] For example, as shown in (a) and (b) of FIG. 8, when the single-fold folding-screen electronic device switches from the unfolded state to the folded state, the display orientation of the interface 801 can be switched to the portrait orientation and the interface 801 can be displayed in the portrait layout. Figure 9 For example, as shown in (a) and (b) of FIG. 8, when the single-fold folding-screen electronic device switches from the unfolded state to the folded state, the display orientation of the interface 801 can be switched to the portrait orientation and the interface 801 can be displayed in the portrait layout.
[0214] Figure 12 For example, as shown in (a) and (b) of FIG. 8, when the single-fold folding-screen electronic device switches from the unfolded state to the folded state, the display orientation of the interface 801 can be switched to the portrait orientation and the interface 801 can be displayed in the portrait layout.
[0215] In the embodiments of the present application, when the folding-screen electronic device is in the unfolded state, the current interface can be displayed in the landscape layout mode. When the folding-screen electronic device switches from the unfolded state to the portrait state, the folding-screen electronic device can automatically switch to display the current interface in the portrait layout mode, which can better adapt to the form of the display screen after the folding of the folding-screen electronic device.
[0216] In some embodiments, after switching the display orientation of the first interface to landscape mode and displaying the first interface in a landscape layout in response to switching from a folded state to an unfolded state, the method further includes:
[0217] In response to a rotation angle greater than or equal to a first threshold, the display orientation of the first interface is switched to portrait orientation and the first interface is displayed in portrait layout.
[0218] In some embodiments, before switching the display orientation of the first interface to portrait orientation and displaying the first interface in a portrait layout, the method further includes:
[0219] The foldable screen electronic device has been identified as a multi-foldable electronic device.
[0220] After unfolding from its folded and portrait states, the multi-foldable electronic device can also switch from portrait to landscape mode. At this point, when the multi-foldable electronic device detects a rotation angle greater than or equal to a first threshold, it switches back from landscape to portrait mode, allowing the first interface to be displayed in portrait orientation and in a portrait layout.
[0221] For example, such as Figure 13 As shown in (b) and (c), the multi-folding electronic device detects the user's operation of rotating 90° to the left. In response to this operation, the display orientation of interface 901 can be switched to portrait orientation and the interface 901 can be displayed in portrait layout.
[0222] In some embodiments, after switching the display orientation of the first interface to portrait mode and displaying the first interface in a portrait layout in response to a rotation angle greater than or equal to a first threshold, the method further includes:
[0223] In response to switching from an expanded state to a collapsed state, the display orientation of the first interface is switched to landscape mode and displayed in landscape layout.
[0224] Foldable electronic devices, after being folded from their unfolded and portrait states, can also switch from portrait to landscape mode. This allows the first screen to be displayed in landscape orientation and shown in a landscape layout.
[0225] like Figure 10 As shown in (c) and (d) in the figure, the multi-folding electronic device detects the user's folding operation and, in response to the operation, can switch the display orientation of interface 901 to landscape orientation and display interface 901 in landscape layout.
[0226] In some embodiments, in response to switching from a folded state to an unfolded state, switching the display orientation of the first interface to landscape mode and displaying the first interface in a landscape layout includes:
[0227] In response to switching from a folded state to an unfolded state, a first prompt message is output, which prompts the user to confirm whether to switch to landscape layout mode.
[0228] In response to the user's confirmation to switch to landscape mode, the display orientation of the first screen is switched to landscape and displayed in landscape layout.
[0229] For example, such as Figure 11 As shown, in response to switching from a folded state to an unfolded state, the multi-foldable electronic device can display a prompt message 1202, which prompts the user to confirm whether to switch from portrait to landscape layout. In response to the user clicking control 1203, the multi-foldable electronic device can switch to displaying the interface 1201 in landscape layout mode.
[0230] In some embodiments, the first interface is the interface of a first application. Before switching the display orientation of the first interface to landscape mode and displaying the first interface in landscape layout, the method further includes:
[0231] The first application is determined to be an application in the whitelist, which is a list of applications that are allowed to automatically switch to landscape layout.
[0232] In some embodiments, the foldable screen electronic device includes N folding hinges, where N ≥ 2 and is an integer. The foldable display screen of the foldable screen electronic device is divided into N+1 sub-display screens by the N folding hinges. Switching the display orientation of the first interface to landscape mode and displaying the first interface in a landscape layout includes:
[0233] Switch the display orientation of the first interface to landscape mode and display the first interface in landscape layout through N+1 sub-display screens; or switch the display orientation of the first interface to landscape mode, display the first interface in landscape layout through M adjacent sub-display screens among the N+1 sub-display screens, and display the third interface through the remaining sub-display screens among the N+1 sub-display screens. The second interface is an interface associated with the first interface, and M≥2 and is an integer.
[0234] For example, such as As shown, when the multi-folding electronic device detects a user unfolding the folding screen, it switches the display orientation of interface 1301 to landscape mode and displays interface 1301 in landscape layout via sub-displays #1 and #2. It also displays interface 1302 via sub-display #3. This interface 1302 is also the interface of the video application; for example, interface 1302 could be the comment interface for video #1. The display orientation of interface 1302 can be portrait mode.
[0235] In some embodiments, the method further includes:
[0236] The fourth interface is displayed in landscape mode. When the fourth interface is displayed in landscape mode, the foldable screen electronic device is in a folded state and a portrait state, and the display direction of the fourth interface is the portrait direction.
[0237] In response to switching from a collapsed state to an expanded state, the display orientation of the fourth interface is switched to landscape mode.
[0238] For example, such as As shown in (a) and (b), when the single-fold electronic device is simultaneously in folded and portrait modes, it displays interface 1001 in landscape mode. In response to switching from folded to unfolded mode, the single-fold electronic device can switch the display orientation of interface 1001 to landscape.
[0239] For example, such as As shown, when the multi-foldable electronic device is simultaneously in folded and portrait modes, it displays interface 1101 in landscape layout. In response to switching from a folded state to an unfolded state, the multi-foldable electronic device can switch the display orientation of interface 1101 to landscape.
[0240] The display method provided by the embodiments of this application has been described in detail above. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.
[0241] The above mainly describes the display method provided by the embodiments of the present application from the perspective of the electronic device. It can be understood that the electronic device comprises a hardware structure and / or a software module corresponding to the execution of each function in order to implement the above functions. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional 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 the present application.
[0242] The embodiments of the present application provide a computer program product, when the computer program product is run in an electronic device, so that the electronic device executes the technical solutions in the above embodiments. The implementation principle and technical effects are similar to the above method-related embodiments, and will not be repeated here.
[0243] The embodiments of the present application provide a readable storage medium, the readable storage medium contains instructions, when the instructions are run in an electronic device, so that the electronic device executes the technical solutions of the above embodiments. The implementation principle and technical effects are similar, and will not be repeated here.
[0244] The embodiments of the present application provide a chip, the chip is used for executing instructions, when the chip is run, executes the technical solutions in the above embodiments. The implementation principle and technical effects are similar, and will not be repeated here.
[0245] Those skilled in the art can realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, electronic hardware or a combination of computer software and electronic hardware can be used. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professional 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 the embodiments of the present application.
[0246] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0247] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. The division of the units is merely logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0248] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0249] In addition, each functional unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can be physically present separately, or two or more units can be integrated into one unit.
[0250] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0251] The above is merely specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the embodiments of the present application, which should be covered in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.
Claims
1. A display method characterized by comprising: The method is applied to a foldable-screen electronic device, and the method comprises: displaying a first interface in a portrait screen layout mode, wherein when the first interface is displayed in the portrait screen layout mode, the foldable-screen electronic device is in a folded state and a portrait screen state, and a display direction of the first interface is a portrait screen direction; in response to switching from the folded state to an unfolded state, switching the display direction of the first interface to a landscape screen direction and displaying the first interface in a landscape screen layout mode; displaying a second interface in the landscape screen layout mode, wherein when the second interface is displayed in the landscape screen layout mode, the foldable-screen electronic device is in the unfolded state, and the second interface is in the landscape screen direction; in response to switching from the unfolded state to the folded state, switching the display direction of the second interface to the portrait screen direction and displaying the second interface in the portrait screen layout mode.
2. The method of claim 1, wherein, After switching the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode in response to switching from the folded state to the unfolded state, the method further comprises: in response to the rotation angle being greater than or equal to a first threshold value, switching the display direction of the first interface to the portrait screen direction and displaying the first interface in the portrait screen layout mode.
3. The method of claim 2, wherein, Before switching the display direction of the first interface to the portrait screen direction and displaying the first interface in the portrait screen layout mode, the method further comprises: determining that the foldable-screen electronic device is a multi-fold electronic device.
4. The method according to claim 2 or 3, characterized in that, After switching the display direction of the first interface to the portrait screen direction and displaying the first interface in the portrait screen layout mode in response to the rotation angle being greater than or equal to the first threshold value, the method further comprises: in response to switching from the unfolded state to the folded state, switching the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode.
5. The method according to any one of claims 1 to 4, characterized in that, The switching of the display direction of the first interface to the landscape screen direction and the displaying of the first interface in the landscape screen layout mode in response to switching from the folded state to the unfolded state comprises: in response to switching from the folded state to the unfolded state, outputting first prompt information for prompting a user to confirm whether to switch to the landscape screen layout mode; in response to an operation of the user confirming to switch to the landscape screen layout mode, switching the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout mode.
6. The method according to any one of claims 1 to 4, characterized in that, The first interface is an interface of a first application program, and before the switching to display the first interface in the landscape screen layout mode, the method further comprises: determining that the first application program is an application program in a white list, the white list being a list of application programs allowed to automatically switch to the landscape screen layout mode.
7. The method according to any one of claims 1 to 6, characterized in that, The switching of the display direction of the first interface to the landscape screen direction and the displaying of the first interface in the landscape screen layout mode in response to switching from the folded state to the unfolded state comprises: in response to switching from the folded state to the unfolded state, changing direction data detected by a direction sensor; In response to a change in orientation data detected by the orientation sensor, switch a display direction of the first interface to the landscape orientation and display the first interface in the landscape layout.
8. The method according to any one of claims 1 to 7, characterized in that, The folding-screen electronic device includes N folding pivots, N≥2 and is an integer, and a foldable display screen of the folding-screen electronic device is divided into N+1 sub-displays by the N folding pivots, and the switching of the display direction of the first interface to the landscape orientation and the display of the first interface in the landscape layout includes: switching the display direction of the first interface to the landscape orientation and displaying the first interface in the landscape layout by the N+1 sub-displays; or switching the display direction of the first interface to the landscape orientation, displaying the first interface in the landscape layout by adjacent M sub-displays of the N+1 sub-displays, and displaying a third interface by the remaining sub-displays of the N+1 sub-displays, the second interface is an interface associated with the first interface, and M≥2 and is an integer.
9. The method of claim 8, wherein, The first interface is a playing interface of a first video, and the third interface is a comment interface of the first video; or The first interface is a playing interface of a first song, and the third interface is a comment interface of the first song; or The first interface is a main interface of a first commodity, and the third interface is an evaluation interface of the first commodity.
10. The method according to claim 8 or 9, characterized in that, The display direction of the second interface is a portrait orientation.
11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: displaying a fourth interface in a landscape layout, wherein when the fourth interface is displayed in the landscape layout, the folding-screen electronic device is in a folded state and a portrait state, the display direction of the fourth interface is the portrait orientation; and in response to the folding state being switched to the unfolded state, switching the display direction of the fourth interface to the landscape orientation.
12. A foldable-screen electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by the one or more processors, cause the method of any one of claims 1-11 to be performed.
13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions are run on a computer, cause the method of any one of claims 1-11 to be performed.
14. A chip, characterized by The chip includes a processor and a communication interface, the communication interface is used to receive a signal and transmit the signal to the processor, the processor processes the signal, so that the method of any one of claims 1-11 is executed.
15. A computer program product, characterised in that, When the computer program product is run on a computer, the method of any one of claims 1-11 is executed.
Citation Information
Cited By
Display method and electronic device having foldable screen
EP4760478A1
Display method and electronic device having foldable screen
WO2025241961A1