Display method and electronic device having foldable screen
By automatically switching the interface display orientation, the problem of poor display effect of foldable screen electronic devices during multiple folding processes is solved, achieving better display adaptation and user experience.
Patent Information
- Application Number
- PCT/CN2025/094863
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-22
- Filing Date
- 2025-05-14
- Publication Date
- 2025-11-27
AI Technical Summary
Existing foldable screen electronic devices have poor display quality during multiple folding processes, making it difficult to adapt to different usage scenarios. Furthermore, users need to manually adjust the display orientation, which affects the user experience.
A display method is provided in which a foldable screen electronic device automatically switches the interface display orientation between a folded state and an unfolded state, and adopts a vertical screen layout and a horizontal screen layout to switch between each other to adapt to different forms and save user operation.
It improves the display adaptability of foldable screen electronic devices in different forms, enhances the user experience, and reduces manual operation steps.
Smart Images

Figure CN2025094863_27112025_PF_FP_ABST
Abstract
Description
Display method and folding screen electronic device
[0001] The present application claims priority to the Chinese patent application No. 202410652294.X, filed on May 22, 2024, and entitled "A display method and folding screen electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of electronic devices, and more particularly, to a display method and folding screen electronic device. BACKGROUND
[0003] More and more users begin to use folding screen electronic devices. Although folding screen electronic devices provide a larger screen, there are problems of poor adaptation in many application scenarios. In addition, in order to provide users with a larger display area while ensuring that the folding screen electronic device can be held by a user with one hand after folding, folding screen electronic devices will gradually evolve into multi-folding electronic devices, i.e., can be folded multiple times, which brings greater challenges to the adaptation of application scenarios (e.g., playing videos, navigation, etc.). Based on this, how to ensure the display effect of the folding screen electronic device has become a technical problem to be solved. SUMMARY
[0004] The present application provides a display method and folding screen electronic device. The folding screen electronic device displays the current interface in a portrait screen layout mode when in a folded state and a portrait screen state. 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 a landscape screen layout mode. When the folding screen electronic device is in the unfolded state, it displays the current interface in the landscape screen layout mode. When the folding screen electronic device switches from the unfolded state to the portrait screen state, it can automatically switch to display the current interface in the portrait screen layout mode. The technical solution provided by the present application can better adapt to the form of the display screen of the unfolded folding screen electronic device, can better utilize the screen of the folding screen electronic device, and saves the user's operation steps, without the need for the user to manually rotate the device, which helps to improve the user's experience.
[0005] In a first aspect, a display method is provided. The method is applied to a foldable-screen electronic device. The method comprises: displaying a first interface in a portrait layout mode, wherein 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, switching the display direction of the first interface to a landscape direction and displaying the first interface in a landscape layout mode; displaying a second interface in the landscape layout mode, wherein 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; and in response to switching from the unfolded state to the folded state, switching the display direction of the second interface to the portrait direction and displaying the second interface in the portrait layout mode.
[0006] In the embodiments of the present application, when the foldable-screen electronic device is in the folded state and the portrait state, the current interface is displayed in the portrait layout mode. When the foldable-screen electronic device is switched from the folded state to the unfolded state, the current interface is automatically switched to be displayed in the 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 in the present application can better utilize the screen of the foldable-screen electronic device, and saves the steps of user operation, so that the user no longer needs to manually rotate the device, thereby improving the user experience.
[0007] In combination with the first aspect, in some implementations of the first aspect, after the display direction of the first interface is switched to the landscape direction and the first interface is displayed in the landscape 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, switching the display direction of the first interface to the portrait direction and displaying the first interface in the portrait layout mode.
[0008] In combination with the first aspect, in some implementations of the first aspect, before the display direction of the first interface is switched to the portrait direction and the first interface is displayed in the portrait layout mode, the method further comprises: determining that the foldable-screen electronic device is a multi-fold electronic device.
[0009] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state, the interface can be displayed in the landscape layout mode. When the multi-fold electronic device is rotated, the multi-fold electronic device is switched from the landscape state to the portrait state, and therefore, the multi-fold electronic device is automatically switched to display the interface in the portrait layout mode, which can better adapt to the display screen form when the multi-fold electronic device is unfolded and in the portrait state, can better utilize the screen of the foldable-screen electronic device, and improves the user experience.
[0010] With reference to the first aspect, in some implementations of the first aspect, after switching the display direction of the first interface to the portrait direction and displaying the first interface in the portrait layout manner in response to the rotation angle being greater than or equal to the first threshold, the method further includes: switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the switch from the unfolded state to the folded state.
[0011] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state and the portrait state, the interface can be displayed in the portrait layout manner. 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 state to the landscape state, and therefore the multi-fold electronic device is also automatically switched to display the interface in the landscape layout manner, which can better adapt to the display screen shape when the multi-fold electronic device is folded and in the landscape state, and helps to improve the user experience.
[0012] With reference to the first aspect, in some implementations of the first aspect, the switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the switch from the folded state to the unfolded state includes: outputting first prompt information in response to the switch 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 layout manner; and switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the user's operation of confirming the switch to the landscape layout manner.
[0013] 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 layout manner, the method further includes: 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 layout manner.
[0014] With reference to the first aspect, in some implementations of the first aspect, the switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the switch from the folded state to the unfolded state includes: changing the direction data detected by the direction sensor in response to the switch from the folded state to the unfolded state; and switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the change of the direction data detected by the direction sensor.
[0015] With reference to the first aspect, in some implementations of the first aspect, the folding-screen electronic device includes N folding pivots, N is an integer greater than or equal to 2, and 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 the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner includes: 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 is an integer greater than or equal to 2.
[0016] 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 display screen form of the unfolded multi-folding electronic device, better utilize the screen of the folding-screen electronic device, save the user operation steps, and improve the user experience.
[0017] 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.
[0018] With reference to the first aspect, in some implementations of the first aspect, the display direction of the second interface is a portrait direction.
[0019] 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 from the folded state to the unfolded state, switching the display direction of the fourth interface to the landscape direction.
[0020] In the embodiments of this 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] In a sixth aspect, an electronic device of the embodiments of this application is provided, which includes modules / cells for executing the method of the above-mentioned aspect or any possible implementation manner of the above-mentioned aspect; these modules / cells can be realized by hardware or by hardware executing corresponding software.
[0026] In a seventh aspect, a smart driving device is provided, which includes the electronic device in the fourth aspect.
[0027] The beneficial effects of the second aspect to the seventh aspect are described in the beneficial effects of the first aspect, and are not repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0028] FIG. 1 is a structural schematic diagram of an electronic device provided by the embodiments of this application.
[0029] FIG. 2 is a software structure block diagram of an electronic device provided by the embodiments of this application.
[0030] FIG. 3 is a schematic diagram of a single folding electronic device provided by the embodiments of this application.
[0031] FIG. 4 is a schematic diagram of a multi-fold electronic device according to an embodiment of the present application.
[0032] FIG. 5 is a set of GUIs according to an embodiment of the present application.
[0033] FIG. 6 is a set of GUIs according to an embodiment of the present application.
[0034] FIG. 7 is a set of GUIs according to an embodiment of the present application.
[0035] FIG. 8 is a set of GUIs according to an embodiment of the present application.
[0036] FIG. 9 is a set of GUIs according to an embodiment of the present application.
[0037] FIG. 10 is a set of GUIs according to an embodiment of the present application.
[0038] FIG. 11 is a set of GUIs according to an embodiment of the present application.
[0039] FIG. 12 is a set of GUIs according to an embodiment of the present application.
[0040] FIG. 13 is a set of GUIs according to an embodiment of the present application.
[0041] FIG. 14 is a schematic flowchart of a display method according to an embodiment of the present application.
[0042] FIG. 15 is a schematic diagram of internal data flow according to an embodiment of the present application.
[0043] FIG. 16 is a schematic diagram of a three-axis coordinate system according to an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
[0045] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and the appended claims of the application, the singular forms "a," "an" and "the" are intended to include both the singular and the plural forms, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises", "comprising", "includes" and / or "including", as used herein, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. In addition, it should also be understood that, in the following embodiments of the present application, "at least one" and "one or more" refer to one, two or more than two. The term "and / or", used to describe the relationship between associated objects, means that there can be three relationships; for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects.
[0046] Reference to“one embodiment” or“some embodiments” etc. in the present disclosure means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrases“in one embodiment”,“in some embodiments”,“in other embodiments”,“in additional embodiments” etc. in various places in the specification are not necessarily all referring to the same embodiment, but can refer to one or more but not all embodiments, unless otherwise specifically specified. The terms“comprising”,“including”,“having” and their variants mean“including but not limited to”, unless otherwise specifically specified.
[0047] The following introduces electronic devices and embodiments for using such electronic devices. In some embodiments, the electronic device can be a portable electronic device that also contains other functions such as personal digital assistant and / or music player functions, such as a mobile phone, a tablet computer, a wearable electronic device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, mobile phones, tablet computers, wearable electronic devices with wireless communication function (such as smart watches), etc. equipped with or other operating systems. The above-mentioned portable electronic device can also be other portable electronic devices, such as a laptop computer, etc. It should also be understood that in other embodiments, the above-mentioned electronic device can also not be a portable electronic device, but a desktop computer. In some embodiments, the electronic device can be one device in a smart driving device.
[0048] Exemplarily, FIG. 1 shows a structural schematic diagram of an electronic device 100. 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 loudspeaker 170A, a receiver 170B, a microphone 170C, a headset jack 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, and the like. 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, and the like.
[0049] 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 arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0050] 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), and the like. Different processing units can be independent devices, or can be integrated in one or more processors.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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 the same to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate the same as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional 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.
[0057] 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 functional modules.
[0058] 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.
[0059] 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), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0060] 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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] FIG. 2 is a software structure block diagram of the electronic device 100 according to an embodiment 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.
[0070] As shown in FIG. 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.
[0071] 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.
[0072] As shown in FIG. 2, 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.
[0073] 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 will not be described here.
[0074] 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.
[0075] 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.
[0076] 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. 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.
[0077] 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.).
[0078] The resource manager provides various resources for the application program, such as localized strings, icons, pictures, layout files, video files, etc.
[0079] 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, vibrating the electronic device, and flashing the indicator light, etc.
[0080] The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0081] The core library includes 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.
[0082] 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.
[0083] The system library can include multiple functional modules. For example: a surface manager, media libraries, a three-dimensional graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), and the like.
[0084] The surface manager is used to manage the display subsystem and provides fusion of 2D and 3D layers for multiple applications.
[0085] The media library supports playback and recording of multiple commonly used audio, video formats, 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, and the like.
[0086] The three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing, and the like.
[0087] The 2D graphics engine is a drawing engine for 2D drawing.
[0088] 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, and 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.
[0089] The kernel layer is the layer between hardware and software. The kernel layer at least includes display drivers, camera drivers, audio drivers, and sensor drivers.
[0090] The hardware layer can include various sensors, such as the various sensors introduced in FIG. 1, the acceleration sensor, the gyroscope sensor, the touch sensor, and the like involved in the embodiments of the present application.
[0091] It should be noted that only one way of dividing the system framework is taken as an example in FIG. 2, and should not be understood as a specific limitation of the embodiments of the present application. In the embodiments of the present application, when the operating system carried by the electronic device is different, different frameworks can be used for different operating systems. It can be understood that when different frameworks are used, the division manner of each layer of the framework, the specific naming, and the specific location of each module in the above layers can be different.
[0092] 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 landscape display. The portrait state is the state of the electronic device when the electronic device is in 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.
[0093] Since the electronic device includes the landscape state and the portrait state, the display direction of the electronic device includes the landscape direction and the portrait direction, that is, the interface direction of the display of the electronic device includes the landscape direction and the 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 the 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 the portrait direction, that is, the display interface is in a vertical strip shape.
[0094] 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. 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°.
[0095] As shown in (a) of FIG. 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.
[0096] As shown in (b) of FIG. 3, the back side of the display screen 301 can further include an outer display screen 303. As shown in the folding state of the folding screen electronic device in (b) of FIG. 3, the included angle between the two display screens can be 0° when the folding screen electronic device is in the folding state, that is, the display screen 301 and the display screen 302 are relatively attached together, and this folding manner is inner folding.
[0097] In other examples, the back sides of the display screen 301 and the display screen 302 can be relatively attached together, and this folding manner is outer folding.
[0098] As shown in (a) and (b) of FIG. 3, the folding manner of the folding screen electronic device shown in the figure is single folding, that is, the folding screen electronic device can be folded once, and this folding screen electronic device can be referred to as a single folding electronic device. When the single folding electronic device is in the folding state, the length of the single folding electronic device in the y direction is greater than the length in the x direction, that is, the height of the single folding electronic device is greater than the width. When the single folding electronic device is in the unfolded state, the length of the single folding electronic device in the y direction is still greater than the length in the x direction, that is, the height of the single folding electronic device is still greater than the width.
[0099] In other examples, for the 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.
[0100] In the embodiments of the present application, the state in which the length of the folding screen electronic device in the y direction is greater than the length in the x direction is referred to as a portrait state, that is, the display screen of the folding screen electronic device is in a vertical strip shape, and the state in which the length of the folding screen electronic device in the x direction is greater than the length in the y direction is referred to as a landscape state, that is, the display screen of the folding screen electronic device is in a horizontal strip shape.
[0101] In the embodiments of the present application, when the single folding electronic device is in the folding state and the portrait state and is switched from the folding state to the unfolded state, the single folding electronic device can still be in the portrait state, that is, as shown in (a) of FIG. 3, or can also be changed from the portrait state to the landscape state.
[0102] In addition to the single folding electronic device, the folding screen electronic device can also include a multi-folding electronic device, that is, the folding screen electronic device can be folded multiple times, and this folding screen electronic device can be referred to as a multi-folding electronic device. The multi-folding electronic device is also a future development direction of the folding screen electronic device. FIG. 4 shows a schematic diagram of a multi-folding electronic device provided in an embodiment of the present application.
[0103] As shown in (a) of FIG. 4, the unfolded state of the multi-fold electronic device can include display screens 401, 402 and 403. The display screens 401, 402 and 403 can be different sub-displays of the same display screen. The display screens 401 and 402 are unfolded or folded by one folding hinge, and the display screens 402 and 403 are unfolded or folded by another folding hinge, i.e., the multi-fold electronic device can be folded twice.
[0104] As shown in (b) of FIG. 4, one folding mode of the multi-fold electronic device is shown. The folding mode between the display screens 401 and 402 is outer folding, and the folding mode between the display screens 402 and 403 is inner folding.
[0105] According to the embodiments of the present application, the multi-fold electronic device can be folded twice, so that the screen ratio of the folding screen device in the unfolded state can better adapt to various application scenarios. For example, the screen ratio of the unfolded multi-fold electronic device can be 16:9, 18:9, 21:9, etc., which can better adapt to the ratio of mainstream videos.
[0106] As shown in (a) and (c) of FIG. 4, when the multi-fold electronic device is in the folded state, the length of the multi-fold electronic device in the y direction is greater than the length in the x direction, i.e., the height of the multi-fold electronic device is greater than the width. When the multi-fold electronic device is in the unfolded state, the length of the multi-fold electronic device in the y direction is less than the length in the x direction, i.e., the height of the multi-fold electronic device is less than the width. In other words, for the multi-fold electronic device, when the multi-fold electronic device changes from the folded state to the unfolded state, the multi-fold electronic device also changes from the vertical screen state to the horizontal screen state.
[0107] It should be noted that (b) of FIG. 4 only shows one folding mode of the multi-fold electronic device, which should not be understood as a specific limitation of the embodiments of the present application. For example, as shown in (d) of FIG. 4, the folding mode between the display screens 401 and 402 is inner folding, and the folding mode between the display screens 402 and 403 is inner folding, and after folding, the display screen 403 covers the display screen 401. The multi-fold electronic device described in (d) of FIG. 4 can further include an outer display screen 404 on the back side of the display screen 403, and a camera on the back side of the display screen 402.
[0108] It should be further noted that FIG. 4 only takes the multi-fold electronic device including two folding hinges as an example for introduction, but the embodiments of the present application do not make a specific limitation thereon. The multi-fold electronic device in the embodiments of the present application can further include more folding hinges.
[0109] Although the folding-screen electronic device provides a larger display area, there are still some problems in adapting to many application scenarios. In addition, in order to provide a larger display area for the user while ensuring that the folding-screen electronic device can be held by the user with one hand after being folded, the folding-screen electronic device will gradually evolve into a multi-folding electronic device, which brings greater challenges to the adaptation of application scenarios (such as playing videos, navigation, etc.).
[0110] 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 displays the current interface in a vertical screen layout, when the folding-screen electronic device is switched from the folded state to the unfolded state, the current interface is still displayed in the vertical screen layout, which will be introduced below in combination with FIG. 5 and FIG. 6.
[0111] FIG. 5 shows a set of graphical user interfaces (GUIs).
[0112] As shown in (a) of FIG. 5, the single-folding electronic device can display interface 501 in a vertical screen layout when it is in a folded state and a vertical screen state at the same time. The interface 501 is the interface of a video application.
[0113] Exemplarily, the single-folding electronic device can display the interface 501 in a vertical screen layout through an outer display screen when it 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-folding 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-folding electronic device is inner folding. For example, the single-folding electronic device is the folding-screen electronic device as shown in (b) of FIG. 3, and the single-folding electronic device can display the interface 501 using the display screen 303 (i.e., the outer display screen).
[0114] Exemplarily, the single-folding electronic device can display the interface 501 in a vertical screen layout through one sub-display screen of the foldable display screen when it is in a folded state and a vertical screen state at the same time.
[0115] The single-fold electronic device can play video #1 in the interface 501, and display information of video #1 and other videos (e.g., video #2 and video #3) associated with video #1, and the proportion of video #1 can be 16:9. The information of video #1 can be the publisher of video #1, the publishing time of video #1, the name of video #1, and the like. Since the proportion of video #1 is 16:9, in order to ensure that the proportion of video #1 does not change, when the single-fold electronic device displays the interface 501 in the vertical screen layout mode, the area proportion of video #1 in the interface 501 is less than the area proportion of the information of video #1 and other videos in the interface 501. When the single-fold electronic device detects the operation of the user unfolding the single-fold electronic device, the GUI as shown in (b) of FIG. 5 can be displayed.
[0116] As shown in (b) of FIG. 5, the single-fold electronic device can adjust the interface elements of the interface 501 according to the area of the unfolded display screen in response to the operation of the user unfolding the single-fold electronic device, for example, the display area of video #1 can be enlarged, and video #2 and video #3 are no longer displayed.
[0117] It should be noted that the interface 501 in the GUI shown in (b) of FIG. 5 is still in the vertical screen layout mode, and only the display area of video #1 is enlarged and the information of video #1 is enlarged.
[0118] As shown in (b) and (c) of FIG. 5, when the single-fold electronic device detects the operation of the user rotating to the left, in response to the operation, the GUI as shown in (c) of FIG. 5 can be displayed.
[0119] As shown in (c) of FIG. 5, the single-fold electronic device can switch to display the interface 501 in the horizontal screen layout mode in response to the operation of the user rotating to the left. The single-fold electronic device displaying the interface 501 in the horizontal screen layout mode can be understood as the single-fold electronic device further enlarging video #1 according to the proportion of video #1, and no longer displaying the information related to video #1. Since the proportion of video #1 is 16:9, and the single-fold electronic device shown in FIG. 5 is close to a square in the unfolded state, the single-fold electronic device will fill part of the display screen with black borders, and the interface 501 will be located in the middle area of the display screen.
[0120] As described above, after the single-fold electronic device is switched from the folded state to the unfolded state, the interface 501 is still displayed in the vertical screen layout mode, and only after detecting the operation of the user rotating, the interface 501 is switched from the vertical screen layout mode to the horizontal screen layout mode.
[0121] In addition, since the single-fold electronic device shown in FIG. 5 is close to a square in the unfolded state, if the single-fold electronic device is in the portrait screen state as shown in (b) of FIG. 5, the interface 501 can be displayed in the landscape screen layout, and the display area of the video #1 is basically the same as the display area of the video #1 when the foldable screen electronic device is in the landscape screen state as shown in (c) of FIG. 5. Thus, it can be analyzed that the operation of rotating by the user is essentially an operation that can be omitted.
[0122] The foldable screen electronic device shown in FIG. 5 is a single-fold electronic device. If the operation logic shown in FIG. 5 is still followed when the foldable screen electronic device is a multi-fold electronic device, the advantages of the multi-fold electronic device can not be fully utilized. This will be described below with reference to FIG. 6.
[0123] FIG. 6 shows another set of GUIs.
[0124] As shown in (a) of FIG. 6, the multi-fold electronic device can display the interface 601 in the portrait screen layout when the multi-fold electronic device is in the folded state and the portrait screen state at the same time. The interface 601 is the interface of a video application, and the multi-fold electronic device can be folded twice.
[0125] The multi-fold electronic device can play the video #1 in the interface 601, and display the information of the video #1 and other videos (such as the video #2 and the video #3) associated with the video #1. The ratio of the video #1 can be 16:9. When the multi-fold electronic device detects the operation of unfolding the foldable screen electronic device by the user, the GUI shown in (b) of FIG. 6 can be displayed.
[0126] As shown in (b) of FIG. 6, the multi-fold electronic device can adjust the interface elements of the interface 601 in response to the operation of unfolding the multi-fold electronic device by the user. For example, the display area of the video #1 can be enlarged, and the video #2 and the video #3 can no longer be displayed.
[0127] It should be noted that the interface 601 in the GUI shown in (b) of FIG. 6 is still in the portrait screen layout, and only the display area of the video #1 and the concise information of the video #1 are enlarged.
[0128] It should be further noted that in order to ensure the normal ratio of the video #1, the multi-fold electronic device will use black borders to fill the partial areas on both sides of the display screen when the interface 601 is displayed in the portrait screen layout in the unfolded state.
[0129] As described above, after the multi-fold screen electronic device is switched from the folded state to the unfolded state, the interface 601 is still displayed in the portrait screen layout, and in order to ensure the ratio of the video #1, black borders are used to fill the partial areas on both sides of the display screen, and the display screen is not fully utilized.
[0130] It can be seen from FIGS. 5 and 6 that, whether it is a single-fold electronic device or a multi-fold electronic device, the interface is still displayed in a portrait screen layout when switching from a folded state to an unfolded state, which may not meet the user's operational psychological expectation. For example, when the foldable screen electronic device is in a folded state and a portrait screen state, a video can be played in a portrait screen layout. At this time, if the user unfolds the foldable screen electronic device, the user's operational psychological expectation can be to play the video in full screen, but the foldable screen electronic device still plays the video in a portrait screen layout and displays related information of the video on the interface, which does not meet the user's operational psychological expectation and will cause a decrease in the user's use experience.
[0131] In addition, the interface of some application programs (for example, a game application program) only supports a landscape screen layout, that is, whether the foldable screen electronic device is in a landscape screen state or a portrait screen state, the interface of the application program is in a landscape screen layout. The following will be described in combination with FIG. 7.
[0132] FIG. 7 shows another set of GUIs.
[0133] As shown in (a) of FIG. 7, the single-fold electronic device displays an interface 701 in a landscape screen layout when being in a folded state and a portrait screen state at the same time. The interface 701 is the interface of a game application program. The user wants to normally use the game application program, and needs to rotate the single-fold electronic device 90° to the left, so that the single-fold electronic device switches from a portrait screen state to a landscape screen state, that is, as shown in (b) of FIG. 7.
[0134] As shown in (a) and (c) of FIG. 7, the single-fold electronic device can enlarge the interface 701 according to the area of the display screen after unfolding in response to switching from a folded state to an unfolded state. However, the user still needs to rotate 90° to the left to normally use the game application program, that is, as shown in (d) of FIG. 7.
[0135] It can be understood that, when the user rotates the single-fold electronic device 90° to the left, the display direction of the single-fold electronic device changes from a portrait screen direction to a landscape screen direction.
[0136] Similarly, the multi-fold electronic device also has the problems shown in FIG. 7 when running an application program that only supports a landscape screen layout, that is, the user needs to manually rotate the device to normally use the application program.
[0137] In summary, the foldable screen electronic device has the problem of poor adaptation in many application scenarios, which brings some unnecessary operations to the user. In addition, in order to provide a larger display area to the user while ensuring that the user can hold the foldable screen electronic device with one hand after folding, the foldable screen electronic device will gradually evolve into a multi-fold electronic device, that is, the foldable screen electronic device can be folded multiple times, which brings greater challenges to the adaptation of application scenarios.
[0138] Based on this, the display method provided in the embodiments of the present application can adjust the layout mode of the interface synchronously from a portrait screen layout mode to a landscape screen layout mode when the folding screen electronic device is switched from a folded state to an unfolded state. The following will be described in detail in combination with the GUIs shown in FIG. 8.
[0139] FIG. 8 shows a set of GUIs provided in the embodiments of the present application.
[0140] As shown in (a) of FIG. 8, the single folding electronic device displays the interface 801 in a portrait screen layout mode when it is in both the folded state and the portrait screen state. The interface 801 is the interface of a video application. The single folding electronic device can play video #1 in the interface 801. The display direction of the interface 801 shown in (a) of FIG. 8 is a portrait screen direction.
[0141] When the single folding electronic device detects the operation of the user unfolding the single folding electronic device, the GUI shown in (b) of FIG. 8 can be displayed.
[0142] As shown in (b) of FIG. 8, the single folding electronic device switches the display direction of the interface 801 to a landscape screen direction and displays the interface 801 in a landscape screen layout mode in response to the operation of the user unfolding the single folding electronic device, that is, plays the video #1 according to the scale of the video #1 and no longer displays the information related to the video #1.
[0143] It can be understood that if the single folding electronic device is switched from the unfolded state to the folded state again, it can also be switched synchronously to display the interface 801 in the portrait screen layout mode and switch the display direction of the interface 801 from the landscape screen direction to the portrait screen direction.
[0144] It should be noted that since the scale of the video #1 is 16:9 and the single folding electronic device shown in FIG. 8 is close to a square in the unfolded state, the single folding electronic device will use black edges to fill part of the display screen when playing the video #1 and make the interface 801 located in the middle area of the display screen.
[0145] In the embodiments of the present application, the single folding electronic device displays the interface in a portrait screen layout mode when it is in the folded state and the portrait screen state. When the single folding electronic device is switched from the folded state to the unfolded state, it can automatically switch to display the interface in a landscape screen layout mode without the user rotating the device again, which can better utilize the screen of the folding screen electronic device and save the steps of the user operation, thus helping to improve the user experience.
[0146] FIG. 9 shows a set of GUIs provided in the embodiments of the present application.
[0147] As shown in (a) of FIG. 9, when the multi-fold electronic device is in the folded state and the vertical screen state at the same time, the multi-fold electronic device displays an interface 901 in a vertical screen layout. The interface 901 is an interface of a video application. The multi-fold electronic device can play a video #1 in the interface 901. The display direction of the interface 901 shown in (a) of FIG. 9 is a vertical screen direction.
[0148] When the multi-fold electronic device detects a user operation of unfolding the folding screen electronic device, the multi-fold electronic device can display a GUI as shown in (b) of FIG. 9.
[0149] As shown in (b) of FIG. 9, in response to the user operation of unfolding the folding screen electronic device, the multi-fold electronic device can switch the display direction of the interface 901 to a horizontal screen direction and display the interface 901 in a horizontal screen layout, i.e., play the video #1 in full screen.
[0150] It should be noted that since the ratio of the video #1 is 16:9, the ratio of the multi-fold electronic device shown in FIG. 9 in the unfolded state can be 16:9 or a ratio close to 16:9 (for example, 18:9, 18.5:9, etc.), so the multi-fold electronic device can play the video #1 in full screen, improve the utilization rate of the display screen, and the switching logic is more in line with the psychological expectation of the user, which helps to improve the user experience.
[0151] It can be understood that when the multi-fold electronic device is switched from the unfolded state to the folded state, the multi-fold electronic device can also be switched to display the interface 901 in a vertical screen layout, and switch the display direction of the interface 901 from the horizontal screen direction to the vertical screen direction.
[0152] In the embodiments of the present application, when the multi-fold electronic device is in the folded state and the vertical screen state, the multi-fold electronic device displays an interface in a vertical screen layout. When the multi-fold electronic device is switched from the folded state to the unfolded state, the multi-fold electronic device can automatically switch to display the interface in a horizontal screen layout, 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, and saves the user's operation steps, which helps to improve the user experience.
[0153] As shown in (b) and (c) of FIG. 9, the multi-fold electronic device detects a user operation of rotating 90° to the left, and in response to the operation, the multi-fold electronic device can switch the display direction of the interface 901 to a vertical screen direction and display the interface 901 in a vertical screen layout.
[0154] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state, the interface can be displayed in the landscape layout mode. After the multi-fold electronic device is rotated, the multi-fold electronic device switches from the landscape state to the portrait state, and therefore, the multi-fold electronic device is automatically switched to display the interface in the portrait layout mode, which can better adapt to the display screen form of the multi-fold electronic device in the unfolded state and in the portrait state, can better utilize the screen of the foldable electronic device, and helps to improve the user experience.
[0155] As can be seen from (a) and (c) in FIG. 9, although both are displayed in the portrait layout mode, the multi-fold electronic device in (c) in FIG. 9 has a larger display area because it is in the unfolded state, and therefore, the interface 901 can be enlarged.
[0156] As shown in (c) and (d) in FIG. 9, the multi-fold electronic device detects the user folding operation, and in response to the operation, 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 mode.
[0157] In the embodiments of the present application, when the multi-fold electronic device is in the unfolded state and in the portrait state, the interface can be displayed in the portrait layout mode. After 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 state to the landscape state, and therefore, the multi-fold electronic device is automatically switched to display the interface in the landscape layout mode, which can better adapt to the display screen form of the multi-fold electronic device in the folded state and in the landscape state, helps to improve the user experience.
[0158] The GUIs shown in FIGS. 8 and 9 are examples of the application simultaneously supporting the landscape layout mode and the portrait layout mode. In other embodiments of the present application, some application programs can only support the landscape layout mode, and for these application programs, the foldable electronic device can also adjust the interface of the application program according to its own state. This will be described in detail below with reference to FIGS. 10 and 11.
[0159] FIG. 10 shows another set of GUIs provided in the embodiments of the present application.
[0160] As shown in (a) in FIG. 10, the single-fold electronic device displays the interface 1001 in the landscape layout mode when it is in the folded state and in the portrait state at the same time. The interface 1001 is the interface of a game application.
[0161] As shown in (a) and (b) in FIG. 10, the single-fold electronic device switches the display direction of the interface 1001 to the landscape direction in response to 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.
[0162] In the embodiments of this application, when the single-fold electronic device is in the folded state and the vertical screen state and runs the application program that only supports the horizontal screen layout mode, the user can unfold the single-fold electronic device. The single-fold electronic device can automatically rotate the interface of the application program 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 helping to improve the user's use experience.
[0163] In some other embodiments of this application, as shown in (a) and (c) of FIG. 10, in response to the switching from the folded state to the unfolded state, the single-fold electronic device can rotate the interface 1001 by 90° to the left, and adjust the size of the interface 1001 according to the area of the unfolded display screen to display the interface 1001 in full screen. It can be understood that the display direction of the interface 1001 shown in (c) of FIG. 10 is still the vertical screen direction.
[0164] FIG. 11 shows another set of GUIs provided by the embodiments of this application.
[0165] As shown in (a) of FIG. 11, when the multi-fold electronic device is in the folded state and the vertical screen state, the interface 1101 will be displayed in the horizontal screen layout mode. The interface 1101 is the interface of a game application program.
[0166] As shown in (a) and (b) of FIG. 11, in response to the switching from the folded state to the unfolded state, the multi-fold electronic device can switch the display direction of the interface 1101 to the horizontal screen direction, and adjust the size of the interface 1101 according to the area of the unfolded display screen to display the interface 1101 in full screen.
[0167] In the embodiments of this application, when the multi-fold electronic device is in the folded state and the vertical screen state and runs the application program that only supports the horizontal screen layout mode, the user can unfold the multi-fold electronic device. The multi-fold electronic device can automatically rotate the interface of the application program 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 helping to improve the user's use experience.
[0168] In the above description of FIGS. 8 and 9, the folding screen electronic device can display the interface in the vertical screen layout mode when it is in the folded state and the vertical screen state, and can automatically switch to display the interface in the horizontal screen layout mode in response to the switching from the folded state to the unfolded state. In some other embodiments of this application, when the folding screen electronic device switches to display the interface in the horizontal screen layout mode, it can first output a prompt information, and then switch to display the interface in the horizontal screen layout mode after detecting the user's confirmation operation, which will be described in detail below with reference to FIG. 12.
[0169] FIG. 12 shows another set of GUIs provided by the embodiments of this application.
[0170] As shown in (a) of FIG. 12, when the multi-fold electronic device is in the folded state and the vertical screen state at the same time, the multi-fold electronic device displays an interface 1201 in the vertical screen layout. The interface 1201 is an interface of a video application. The multi-fold electronic device can play a video #1 in the interface 1201.
[0171] When the multi-fold electronic device detects an operation of unfolding the multi-fold electronic device by the user, the multi-fold electronic device can display a GUI as shown in (b) of FIG. 12.
[0172] As shown in (b) of FIG. 12, in response to switching from the folded state to the unfolded state, the multi-fold electronic device can display a prompt information 1202 for prompting the user to confirm whether to switch from the vertical screen layout to the horizontal screen layout.
[0173] As shown in (b) and (c) of FIG. 12, in response to an operation of the user clicking a control 1203, the multi-fold electronic device can switch to display the interface 1201 in the horizontal screen layout.
[0174] It can be understood that if the user clicks the control 1204, the multi-fold electronic device can keep displaying the interface 1201 in the vertical screen layout in response to the operation of the user, that is, similar to the GUI shown in (b) of FIG. 6.
[0175] In the embodiments of the present application, when the multi-fold electronic device is in the folded state and the vertical screen state, the multi-fold electronic device displays an interface in the vertical screen layout. When the multi-fold electronic device switches from the folded state to the unfolded state, the multi-fold electronic device can first ask the user whether to switch to the horizontal screen layout, and when detecting an operation of the user confirming to switch to the horizontal screen layout, the multi-fold electronic device can switch to display the interface in the horizontal screen layout, 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 unfolded multi-fold electronic device, saves the steps of the user operation, and does not mis-trigger, which helps to improve the user experience.
[0176] In the embodiments of the present application, the folding screen electronic device can first ask the user whether to switch to the horizontal screen layout mode before switching from the vertical screen layout mode to the horizontal screen layout mode, to determine whether to finally switch to the horizontal screen layout mode. In addition, in some other embodiments of the present application, the folding screen electronic device is also configured with a whitelist, which includes one or more application programs. The whitelist 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 whitelist, the folding screen electronic device displays the interface of the application program in the vertical screen layout mode when it is in the folded state and the vertical screen state. When the folding screen electronic device is switched from the folded state to the unfolded state, it can automatically switch from the vertical screen layout mode to the horizontal screen layout mode. When the folding screen electronic device is in the unfolded state, it displays the interface of the application program in the horizontal 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 vertical screen state, it displays the interface of the application program in the vertical screen layout mode. Assuming that a certain application program is not an application program in the whitelist, the folding screen electronic device displays the interface of the application program in the vertical screen layout mode when it is in the folded state and the vertical screen state. When the folding screen electronic device is switched from the folded state to the unfolded state, it can maintain the vertical screen mode to display the interface, or output a prompt information to prompt the user whether to switch to the horizontal screen layout mode.
[0177] 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 the vertical screen layout mode when it is in the folded state and the vertical screen state. When the folding screen electronic device is switched from the folded state to the unfolded state, it is allowed to automatically switch from the vertical screen layout mode to the horizontal screen layout mode. It can also indicate that the folding screen electronic device displays the interface of the application program in the horizontal screen layout mode when it is in the unfolded state. 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 vertical screen state, it displays the interface of the application program in the vertical screen layout mode.
[0178] In the embodiments of the present application, when the folding screen electronic device is a multi-folding electronic device, the foldable display screen can be divided into at least three sub-displays when the multi-folding electronic device is in the unfolded state. When the multi-folding electronic device displays an interface in the horizontal screen layout mode, it can display the interface in the horizontal screen layout mode through part of the sub-displays (the number is greater than or equal to 2), and display another interface through the remaining sub-displays. The following will be described in combination with FIG. 13.
[0179] FIG. 13 shows a set of GUIs provided by the embodiments of the present application.
[0180] As shown in (a) of FIG. 13, when the multi-fold electronic device is in the folded state and the vertical screen state at the same time, the multi-fold electronic device displays an interface 1301 in a vertical screen layout. The interface 1301 is an interface of a video application. The multi-fold electronic device can play a video #1 in the interface 1301.
[0181] When the multi-fold electronic device detects a user operation of unfolding the folding screen electronic device, a GUI as shown in (b) of FIG. 13 can be displayed.
[0182] As shown in (b) of FIG. 13, after the multi-fold electronic device is unfolded, the multi-fold electronic device includes a sub-display #1, a sub-display #2, and a sub-display #3. In response to the user operation of unfolding the folding screen electronic device, the multi-fold electronic device can switch the display direction of the interface 1301 to a horizontal screen direction, display the interface 1301 in a horizontal screen layout through the sub-display #1 and the sub-display #2, and display an interface 1302 through the sub-display #3. The interface 1302 is also an interface of the video application, 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.
[0183] In the embodiments of the present application, when the multi-fold electronic device is in the folded state and the vertical screen state, the multi-fold electronic device displays an interface in a vertical screen layout. When the multi-fold electronic device is switched from the folded state to the unfolded state, the multi-fold electronic device can automatically switch to display an interface in a horizontal screen layout 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 after the multi-fold electronic device is unfolded, can better utilize the screen of the folding screen electronic device, and saves the user operation steps, which helps to improve the user experience.
[0184] It should be noted that in FIG. 13, only the interface 1301 is taken as an example of a play interface of the video #1, and the interface 1302 is taken as an example of a comment interface of the video #1, but the embodiments of the present application are not limited thereto. For example, the interface 1301 can be a play interface of a song, and the interface 1302 can be a comment interface of the song.
[0185] 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.
[0186] 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 a method flowchart.
[0187] FIG. 14 shows a schematic flowchart of a display method provided by an embodiment of the present application, which is applied to a folding screen electronic device. As shown in FIG. 14, the method includes the following steps.
[0188] S1401, display a first interface in a portrait screen layout, wherein when the first interface is displayed in the portrait screen layout, the folding 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.
[0189] When the folding screen electronic device is in the folded state and the portrait screen state, the first interface, which is an interface of a first application, can be displayed in the portrait screen layout.
[0190] In some embodiments, the folding screen electronic device is a single folding electronic device.
[0191] For example, as shown in (a) of FIG. 8, the single folding electronic device displays an interface 801 in a portrait screen layout.
[0192] In some embodiments, the folding screen electronic device is a multi-folding electronic device.
[0193] For example, as shown in (a) of FIG. 9, the multi-folding electronic device displays an interface 801 in a portrait screen layout.
[0194] S1402, in response to switching from the folded state to the 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.
[0195] For example, as shown in (a) and (b) of FIG. 8, when the single folding electronic device is switched from the folded state to the unfolded state, the display direction of the interface 801 can be switched to the landscape screen direction and the interface 801 is displayed in the landscape screen layout.
[0196] For another example, as shown in (a) and (b) of FIG. 9, when the multi-folding electronic device is switched from the folded state to the unfolded state, the display direction of the interface 901 can be switched to the landscape screen direction and the interface 901 is displayed in the landscape screen layout.
[0197] In the embodiments of the present application, when the folding screen electronic device is in the folded state and the portrait screen state, the current interface is displayed in the portrait screen layout. When the folding screen electronic device is switched from the folded state to the unfolded state, the current interface can be automatically displayed in the landscape screen layout, which can better adapt to the display screen form of the unfolded folding screen electronic device, can better utilize the screen of the folding screen electronic device, and saves the user's operation steps without the need for the user to manually rotate the device, which helps to improve the user's experience.
[0198] In the embodiments of the present application, the implementation manner of switching from displaying the first interface in the portrait screen layout to displaying the first interface in the landscape screen layout is not specifically limited, and several possible implementation manners are exemplarily introduced below.
[0199] In a possible implementation, when the folding screen electronic device detects a change from the folded state to the unfolded state, the folding screen electronic device can call a system interface to change the window direction of an activity corresponding to the first interface, that is, change from the vertical screen direction to the horizontal screen direction, and then load a display resource corresponding to a horizontal screen layout mode of the first interface. It can be understood that the display direction of the first interface is switched from the vertical screen direction to the horizontal screen direction, and the folding screen electronic device can adjust the size of the first interface according to the size of the unfolded display screen, and then display the first interface in the horizontal screen layout mode.
[0200] In a possible implementation, when the folding screen electronic device detects a change from the folded state to the unfolded state, the folding screen electronic device can change the direction detected by the direction sensor, and then determine to switch from the vertical screen layout mode to the horizontal screen layout mode according to the changed direction of the direction sensor. FIG. 15 shows an internal data flow diagram.
[0201] As shown in FIG. 15, the screen manager can obtain the folding angle of the folding shaft of the folding screen electronic device, to determine the state of the folding screen electronic device and the change of the state according to the folding angle of the folding shaft. The state of the folding screen electronic device includes the folded state, the half-unfolded state, and the unfolded state.
[0202] For example, the folding screen electronic device is a multi-fold electronic device including two folding shafts, and the screen manager determines that the angles of the two folding shafts are both 180°, and it can be determined that the multi-fold electronic device is in the unfolded state.
[0203] For another example, the folding screen electronic device is a multi-fold electronic device including two folding shafts, and the screen manager determines that the angles of the two folding shafts are both changed from 0° to 180°, and it can be determined that the multi-fold electronic device is switched from the folded state to the unfolded state.
[0204] When the screen manager determines that the state of the folding screen electronic device changes, the screen manager can send the state information of the current folding screen electronic device to the sensor driving module. After receiving the state information of the folding screen electronic device, the sensor driving module can change the direction data detected by the direction sensor to adapt to the current state of the folding screen electronic device.
[0205] In some embodiments, the screen manager can broadcast and issue the state information of the current folding screen electronic device through a display module of a kernel layer.
[0206] For example, when the folding-screen electronic device is in the folded state and the portrait state, the three-axis coordinate system corresponding to the direction sensor is as shown in (a) of FIG. 16, where the z-axis is perpendicular to the display screen and outward. When the folding-screen electronic device is switched from the folded state to the unfolded state, the screen manager can send information that the folding-screen electronic device is currently in the unfolded state to the sensor driving module. After receiving the information, the sensor driving module can transpose the three-axis coordinate system corresponding to the direction sensor to adapt to the unfolded state. The transposed three-axis coordinate system is as shown in (b) of FIG. 16.
[0207] It can be understood that in the examples shown in (a) and (b) of FIG. 16, when the folding-screen electronic device is switched from the folded state to the unfolded state, the user does not manually rotate the folding-screen electronic device, and the direction data detected by the direction sensor should not change. However, in the embodiment of the present application, the direction data detected by the direction sensor is changed by the sensor driving module, so that the changed direction data can be the same as the direction data detected by the direction sensor when the folding-screen electronic device is actually rotated. In other words, changing the direction data detected by the direction sensor by the sensor driving module can be understood as simulating that the user rotates the folding-screen electronic device.
[0208] After the sensor driving module changes the direction data detected by the direction sensor, the changed direction data can be sent to the first application, which is the application corresponding to the first interface. After receiving the direction data, the first application can load the display resource corresponding to the landscape layout mode of the first interface.
[0209] In some embodiments, the sensor driving module can report the changed direction data to the first application through the framework layer.
[0210] The above changes the three-axis coordinate system from the state shown in (a) of FIG. 16 to the state shown in (b) of FIG. 16 when the folding-screen electronic device is switched from the folded state to the unfolded state. It can be understood that when the folding-screen electronic device is switched from the unfolded state to the folded state again, the three-axis coordinate system can also be switched from the state shown in (b) of FIG. 16 to the state shown in (a) of FIG. 16.
[0211] S1403, displaying the second interface in a landscape layout mode, wherein when the second interface is displayed in the landscape layout mode, the folding-screen electronic device is in the unfolded state, and the second interface is in a landscape direction.
[0212] S1404, in response to switching from the unfolded state to the folded state, switching the display direction of the second interface to a portrait direction and displaying the second interface in a portrait layout mode.
[0213] In the folding screen electronic device, when switching from the unfolded state to the folded state, the folding screen electronic device is in a portrait screen state.
[0214] For example, as shown in (a) and (b) of FIG. 8, when the single-fold electronic device switches from the unfolded state to the folded state, the display direction of the interface 801 can be switched to the portrait screen direction and the interface 801 is displayed in the portrait screen layout.
[0215] For another example, as shown in (a) and (b) of FIG. 9, when the multi-fold electronic device switches from the unfolded state to the folded state, the display direction of the interface 901 can be switched to the portrait screen direction and the interface 901 is displayed in the portrait screen layout.
[0216] In the folding screen electronic device, when switching from the unfolded state to the folded state, the folding screen electronic device is in a portrait screen state.
[0217] In some embodiments, in response to switching from the folded state to the unfolded state, after switching the display direction of the first interface to the landscape screen direction and displaying the first interface in the landscape screen layout, the method further comprises:
[0218] In response to the rotation angle being greater than or equal to the first threshold, the display direction of the first interface is switched to the portrait screen direction and the first interface is displayed in the portrait screen layout.
[0219] In some embodiments, before switching the display direction of the first interface to the portrait screen direction and displaying the first interface in the portrait screen layout, the method further comprises:
[0220] It is determined that the folding screen electronic device is a multi-fold electronic device.
[0221] After the multi-fold electronic device is unfolded from the folded state and the portrait screen state, the multi-fold electronic device also switches from the portrait screen state to the landscape screen state. At this time, when the multi-fold electronic device detects that the rotation angle is greater than or equal to the first threshold, the multi-fold electronic device switches from the landscape screen state to the portrait screen state again, and the display direction of the first interface can be switched to the portrait screen direction and the first interface is displayed in the portrait screen layout.
[0222] For example, as shown in (b) and (c) of FIG. 9, the multi-fold electronic device detects a user's operation of rotating 90° to the left, and in response to the operation, the display direction of the interface 901 can be switched to the portrait screen direction and the interface 901 is displayed in the portrait screen layout.
[0223] In some embodiments, after switching the display direction of the first interface to the portrait direction and displaying the first interface in the portrait layout manner in response to the rotation angle being greater than or equal to the first threshold, the method further includes:
[0224] switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to switching from the unfolded state to the folded state.
[0225] After the multi-fold electronic device is folded from the unfolded state and the portrait state, the multi-fold electronic device also switches from the portrait state to the landscape state. Then the display direction of the first interface can be switched to the landscape direction and the first interface can be displayed in the landscape layout manner.
[0226] As shown in (c) and (d) of FIG. 9, the multi-fold electronic device detects the user's folding operation, and in response to the operation, 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 manner.
[0227] In some embodiments, switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to switching from the folded state to the unfolded state includes:
[0228] outputting first prompt information in response to 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 layout manner;
[0229] switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner in response to the user's operation of confirming to switch to the landscape layout manner.
[0230] For example, as shown in FIG. 12, the multi-fold electronic device can display prompt information 1202 in response to switching from the folded state to the unfolded state, the prompt information being used to prompt the user to confirm whether to switch from the portrait layout manner to the landscape layout manner. The multi-fold electronic device can switch to display the interface 1201 in the landscape layout manner in response to the user's operation of clicking the control 1203.
[0231] In some embodiments, the first interface is an interface of a first application, and before switching the display direction of the first interface to the landscape direction and displaying the first interface in the landscape layout manner, the method further includes:
[0232] determining that the first application is an application in a white list, the white list being a list of applications allowed to automatically switch to the landscape layout manner.
[0233] In some embodiments, the folding-screen electronic device includes N folding pivots, N ≥ 2 and 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, the display direction of the first interface is switched to a landscape direction, and the first interface is displayed in a landscape layout; comprising:
[0234] The display direction of the first interface is switched to a landscape direction, and the first interface is displayed in a landscape layout by the N+1 sub-displays; or the display direction of the first interface is switched to a landscape direction, the first interface is displayed in a landscape layout by adjacent M sub-displays of the N+1 sub-displays, and a third interface is displayed 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.
[0235] For example, as shown in FIG. 13, when the multi-folding electronic device detects the operation of the user unfolding the folding-screen electronic device, the display direction of the interface 1301 is switched to a landscape direction, and the interface 1301 is displayed in a landscape layout by the sub-display #1 and the sub-display #2, and the interface 1302 is displayed by the sub-display #3, which is also an interface of the video application, for example, the interface 1302 can be a comment interface of video #1. The display direction of the interface 1302 can be a portrait direction.
[0236] In some embodiments, the method further comprises:
[0237] displaying the fourth interface in a landscape layout, wherein when the fourth interface is displayed in a landscape layout, the folding-screen electronic device is in a folded state and a portrait state, the display direction of the fourth interface is a portrait direction;
[0238] In response to switching from the folded state to the unfolded state, the display direction of the fourth interface is switched to a landscape direction.
[0239] For example, as shown in (a) and (b) of FIG. 10, the single-folding electronic device displays the interface 1001 in a landscape layout when it is in a folded state and a portrait state at the same time. In response to switching from the folded state to the unfolded state, the single-folding electronic device can switch the display direction of the interface 1001 to a landscape direction.
[0240] For another example, as shown in FIG. 11, the multi-folding electronic device displays the interface 1101 in a landscape layout when it is in a folded state and a portrait state at the same time. In response to switching from the folded state to the unfolded state, the multi-folding electronic device can switch the display direction of the interface 1101 to a landscape direction.
[0241] The display method provided by the embodiments of the present application is described in detail above. In various embodiments of the present application, the terms and / or descriptions between various embodiments are consistent and can be referred to each other if there is no special description and logical conflict. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.
[0242] The display method provided by the embodiments of the present application is described above mainly from the perspective of the electronic device. It can be understood that the electronic device contains the hardware structure and / or software module corresponding to the execution of each function in order to realize 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 realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving 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.
[0243] The embodiments of the present application provide a computer program product, when the computer program product is run on an electronic device, 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.
[0244] The embodiments of the present application provide a readable storage medium, the readable storage medium contains instructions, when the instructions are run on an electronic device, 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.
[0245] The embodiments of the present application provide a chip, the chip is used to execute instructions, when the chip is run, the technical solutions in the above embodiments are executed. The implementation principle and technical effects are similar, and will not be repeated here.
[0246] 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, each example can be realized in the form of electronic hardware or a combination of computer software and electronic hardware. Whether the function is executed in the form of 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.
[0247] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0248] 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. For example, the division of the units is only a 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.
[0249] 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 purposes of the embodiments.
[0250] In addition, each functional unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.
[0251] If the functions are implemented 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.
[0252] 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 switching of the folding state 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 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 runs on a computer, the method of any one of claims 1-11 is executed.
Citation Information
Patent Citations
Display method and folding screen electronic equipment
CN121008762A
Touch screen input method and electronic device
CN106919329A
Image processing method, electronic equipment and storage medium
CN114003161A
Application interface display method, electronic equipment and storage medium
CN116466849A
Display method and device
CN117093301A