A window display method and an electronic device
By keeping the second window unchanged and rotating the display orientation of the first window when the screen orientation changes, the problem of floating windows or split-screen windows not being able to rotate freely is solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, floating windows or split-screen windows cannot be rotated freely, which affects the user experience.
When an electronic device detects a change in screen orientation, it keeps the display orientation of the second window unchanged and rotates the first window to adapt its display orientation to the new screen orientation.
It enables free rotation of floating or split-screen windows when the screen orientation changes, improving the user experience.
Smart Images

Figure CN115421619B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a window display method and an electronic device. Background Technology
[0002] Mobile devices are becoming increasingly diverse in form and size, leading to more frequent scenarios involving multitasking and running multiple windows simultaneously. To meet user needs, more and more electronic devices support displaying one or more other application interfaces in the form of floating windows or split-screen windows while displaying the interface of one application window.
[0003] However, in existing technologies, floating windows or split-screen windows generally cannot be rotated freely, which affects the user experience. Summary of the Invention
[0004] Firstly, this application provides a window display method applied to electronic devices, including:
[0005] The electronic device displays a first window and a second window. The screen orientation of the electronic device is the first orientation, which can be one of portrait orientation, landscape orientation, reverse portrait orientation, and reverse landscape orientation. The display orientation of the first window is the first orientation.
[0006] When the electronic device detects that the screen orientation of the electronic device has changed from the first orientation to the second orientation, it keeps the display orientation of the second window unchanged and rotates the first window so that the display orientation of the first window is the second orientation. Based on the method shown in this application, the first window can be rotated freely.
[0007] In one embodiment of this application, the first window is a floating window. In this embodiment, when the first window is a floating window, the electronic device can rotate the display direction of the floating window according to the screen orientation of the electronic device when the screen orientation of the electronic device changes.
[0008] In one embodiment of this application, the second window is a full-screen window, or the second window and the third window displayed on the electronic device are displayed in a split-screen configuration. In this embodiment, when the second window is a full-screen window, the display orientation of the full-screen window can remain unchanged when the screen orientation of the electronic device changes, and the first window can rotate within the full-screen window. Alternatively, when the second window is a split-screen window composed of the second and third windows, the split-screen window can maintain its display orientation when the screen orientation of the electronic device changes, and the first window can rotate within the split-screen window.
[0009] In one embodiment of this application, rotating the first window includes rotating the first window when it is determined that the first window meets preset conditions. In this embodiment, the electronic device can determine whether to rotate the first window based on preset conditions set by the user, thereby improving the user experience.
[0010] In one embodiment of this application, the first window includes a first control, which has a closed state and an open state. Determining that the first window meets a preset condition includes: determining that the first control is in an open state, the open state indicating that the first window supports display based on the screen orientation of the electronic device. In this embodiment, the preset condition is a user setting for the first control, which can be located on the first window for convenient user operation.
[0011] In one embodiment of this application, the method further includes: after rotating the first window, adjusting the size of the first window. In this embodiment, the electronic device can adjust the size of the first window according to the size of the second window or the size of the first window, making it convenient for the user to view and operate the content of the first window.
[0012] In one embodiment of this application, the first window and the second window are windows for different applications.
[0013] Secondly, this application provides a window display method applied to an electronic device, comprising:
[0014] The electronic device displays a first window. The screen orientation of the electronic device is the first orientation, which can be one of the following: portrait orientation, landscape orientation, reverse portrait orientation, or reverse landscape orientation. The display orientation of the first window is the first orientation.
[0015] When an electronic device opens a second window and displays it in a preset display orientation, the display orientation of the first window remains unchanged. The preset display orientation of the second window differs from the first orientation, and the second window is a non-floating window. Based on the method described in this application, when the electronic device opens the second window, the display orientation of the first window can be determined according to the screen orientation of the electronic device and is independent of the display orientation of the second window. That is, the electronic device can make the display orientation of the first window different from the display orientation of the second window.
[0016] In one embodiment of this application, the second window is a full-screen window, or the second window is a split-screen window displayed in parallel with the first window and / or the third window. In this embodiment, the second window is a full-screen window, and when the electronic device opens the full-screen window, the first window can still maintain the same screen orientation as the electronic device without adjusting its display orientation according to the full-screen window. Alternatively, the second window is a split-screen window displayed in parallel with the first window and / or the third window, so that when the split-screen window is opened, the first window can still maintain the same screen orientation as the electronic device without adjusting its display orientation according to the split-screen window.
[0017] In one embodiment of this application, the first window is a floating window. In this embodiment, since the first window is a floating window, when the second window is opened, regardless of whether the second window is a full-screen window or a split-screen window, the display orientation of the floating window does not need to be adjusted according to the display orientation of the second window, and the floating window can still maintain consistency with the screen orientation of the electronic device.
[0018] In one embodiment of this application, keeping the display orientation of the first window unchanged includes maintaining the display orientation of the first window unchanged when it is determined that the first window meets preset conditions. In this embodiment, the electronic device can determine whether to keep the display orientation of the first window unchanged based on preset conditions set by the user, thereby improving the user experience.
[0019] In one embodiment of this application, the first window includes a first control, which has a closed state and an open state. Determining that the first window meets preset conditions includes: determining that the first control is in the open state, wherein the open state indicates that the first window is displayed based on the screen orientation of the electronic device. In this embodiment, the preset conditions can be user settings for the first control, which can be located on the first window for convenient user operation.
[0020] In one embodiment of this application, the first window and the second window are windows of different applications. In this embodiment, the first window and the second window are windows of different applications, and the user can freely rotate the window of one of the applications as needed when using multiple applications.
[0021] Thirdly, this application provides an electronic device, including a processor and a storage device, wherein the storage device stores program instructions, and the program instructions, when executed by the processor, cause the electronic device to perform the window display method shown in the first aspect.
[0022] Fourthly, this application provides an electronic device, including a processor and a storage device, wherein the storage device stores program instructions, and the program instructions, when executed by the processor, cause the electronic device to perform the window display method shown in the second aspect.
[0023] Fifthly, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the window display method shown in the first aspect.
[0024] In a sixth aspect, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the window display method shown in the second aspect.
[0025] Based on the method shown in this application, the floating window can be freely rotated. Attached Figure Description
[0026] Figure 1 This is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present invention;
[0027] Figure 2 This is a software structure block diagram of the electronic device 100 in an embodiment of the present invention;
[0028] Figure 3 for Figure 2 A diagram illustrating the working mechanism of the window manager in China;
[0029] Figures 4A-4B for Figure 2 A diagram illustrating the working mechanism of the window manager;
[0030] Figures 5A-5D This is a schematic diagram showing the screen orientation and application display orientation of the electronic device 100;
[0031] Figures 6A-6B For the image interface of electronic device 100 in related technologies;
[0032] Figures 7A-7B This is a schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0033] Figures 8A-8B This is a schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0034] Figures 9A-9B This is a schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0035] Figures 10A-10B A schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0036] Figure 11 This is a flowchart of a window display method in an embodiment of this application.
[0037] Figures 12A-12B A schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0038] Figures 13A-13B A schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0039] Figures 14A-14B A schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0040] Figures 15A-15B A schematic diagram of the image interface of the window display method provided in the embodiments of this application;
[0041] Figure 16This is a flowchart of a window display method according to an embodiment of this application;
[0042] Figure 17 This is a schematic diagram of the structure of a window display device according to an embodiment of this application;
[0043] Figure 18 This is a schematic diagram of the structure of a window display device according to another embodiment of this application; Detailed Implementation
[0044] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the term "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0045] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, "a plurality of" means two or more.
[0046] Figure 1 A schematic diagram of the structure of the electronic device 100 is shown.
[0047] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0048] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0049] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0050] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0051] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0052] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0053] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0054] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.
[0055] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0056] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.
[0057] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0058] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0059] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0060] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0061] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0062] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0063] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0064] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0065] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0066] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the 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. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0067] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0068] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may 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-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0069] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0070] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0071] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0072] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0073] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0074] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0075] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0076] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0077] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0078] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0079] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0080] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0081] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0082] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0083] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0084] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0085] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0086] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0087] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0088] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0089] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0090] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0091] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0092] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0093] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0094] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0095] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0096] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.
[0097] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0098] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0099] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0100] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0101] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0102] Figure 2 This is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0103] A layered architecture divides software into several layers, each with a clear role and function. 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, the hardware abstraction layer, and the kernel layer, where the kernel layer can also be represented as the driver layer.
[0104] The application layer can include a series of application packages.
[0105] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0106] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0107] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0108] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0109] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0110] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0111] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0112] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0113] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0114] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0115] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0116] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0117] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0118] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0119] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0120] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0121] A 2D graphics engine is a graphics engine for 2D drawing.
[0122] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0123] The following example illustrates the workflow of the software and hardware of the electronic device 100 by having a user click on a control in the floating window of the electronic device 100 shown below. The on / off state of the control in the floating window indicates whether the display of the floating window can rotate with the screen orientation of the electronic device, so the control can also be called a rotation control.
[0124] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a single touch operation as an example, the electronic device application calls the interface of the application framework layer to change the control from a closed state to an open state.
[0125] See Figure 3 ,for Figure 2 A diagram illustrating the working mechanism of the window manager.
[0126] like Figure 2The window manager shown is a service; it is a global, system-unique service, independent of the application itself, and shared by all applications. The window management system is based on a client / service (C / S) model, consisting of two main parts: the server (service) and the client (client). The client, i.e., the application, is responsible for requesting and using windows; the server, i.e., the window manager service (Window ManagerService, WMS), is responsible for window maintenance and display. The client does not interact directly with the window manager service, but rather with the local object window manager (WindowManager), which then handles the interaction with the window manager service (WindowManagerService). This interaction is transparent to the application; the application is unaware of the window manager service's existence. For example, application 1 can interact with the local object window manager 1 (Window Manager), enabling Window Manager 1 to interact with the window manager service, thereby creating and using windows.
[0127] refer to Figure 4A Specifically, this relates to a schematic diagram of the working mechanism of the window manager in the embodiments of this application.
[0128] When the screen orientation of electronic device 100 (the definition of screen orientation is provided below) changes, the accelerometer driver in the kernel layer reports the rotation angle to the sensor manager in the framework layer via the HAL (Hardware Abstraction Layer). The sensor manager is responsible for sensor data management and sends the detected new screen orientation rotation to the WMS (Windows Management System) in real time.
[0129] As shown above, WMS is responsible for managing the display, size, and hierarchy of application windows. When WMS receives a direction change callback from SensorManager, WMS determines whether a full-screen application window, multiple split-screen applications, or floating windows can be freely rotated (depending on whether the foreground full-screen application, split-screen applications, or multiple floating applications support rotation).
[0130] Specifically, the electronic device 100 can call the RotationPolicy module and determine whether there is a freely rotatable window based on the orientation configuration of the visible window.
[0131] See Figure 4B WMS can determine whether a currently visible window is freely rotatable based on the state of each visible window. Each window state can be represented by `WindowState`, which stores information such as the window's position, size, and name. The window's independent rotation switch is stored in the variable `canRotate`, which is set to `true` when the user clicks to enable the rotation switch corresponding to that `WindowState`. The `RotationPolicy` module iterates through all `WindowState` window objects, and if it finds a `WindowState` window object with `canRotate` set to `true`, it determines that a freely rotatable window exists. Furthermore, when a freely rotatable window exists, it is displayed according to the screen orientation of the electronic device, ensuring that the application window's display orientation corresponds to the electronic device's screen orientation.
[0132] See also Figure 4B , Figure 4B The document also illustrates ActivityManagerService (AMS), which manages application startup, resources, and visibility. RotationManager manages application-level window orientation. When it receives a window rotation notification from WMS, RotationManager calculates the window position, size, and orientation of each freely rotating window based on preset settings. It can then enlarge or shrink the rotated window as needed and packages this information into a Config. Furthermore, AMS sends the Config back to each application, which then refreshes the display orientation and size based on the Config, ultimately completing the free rotation of the window.
[0133] This application manages the rotation of individual windows by adding a RotationPolicy module to the existing WMS. The WMS can rotate individual windows through the newly added RotationManager module, thereby increasing the freedom of window rotation.
[0134] See Figures 5A-5D This is a schematic diagram specifically relating to the screen orientation of electronic device 100.
[0135] The electronic device 100 includes four screen orientations: portrait, landscape, reverse portrait, and reverse landscape. The screen orientation can be used to indicate the physical orientation of the electronic device 100. It can also be understood that the screen orientation indicates the physical orientation of the electronic device 100.
[0136] See Figure 5AWhen the screen of electronic device 100 is placed face up, its screen orientation is portrait orientation. See also Figure 5B When electronic device 100 is placed upside down, the screen orientation of the electronic device is the opposite of the portrait orientation. Further, see... Figure 5C When an electronic device is rotated 90° counterclockwise from its portrait orientation, the screen orientation of the electronic device becomes landscape orientation. See also Figure 5D When an electronic device is rotated 90° clockwise from its vertical orientation, its screen orientation becomes the reverse of its horizontal orientation.
[0137] See Figures 6A-6B This is a schematic diagram of the application window display of electronic device 100 in related technologies.
[0138] like Figure 6A As shown, the electronic device 100 displays a window of a first application 602 and a window of a second application 604, wherein the window of the first application 602 is displayed in full-screen mode and the window of the second application 604 is displayed in floating window mode.
[0139] In this application, full-screen mode, also known as full-screen display, refers to the entire screen of the electronic device 100 displaying the interface content of an application, meaning the application's interface fills the entire screen. In this embodiment, when an application window is displayed in full-screen mode, the state of that window is defined as full-screen mode, and correspondingly, the application displayed in that window is defined as a full-screen application. In one embodiment, when the electronic device 100 is running a first application, it can force the first application to be displayed in full-screen mode. For example, the first application can be a video application or a game application, etc.
[0140] Furthermore, the floating mode in this application, also known as floating display, refers to at least one application window floating above and partially covering other user interfaces. When the user does not interact with the floating application window, it remains in a fixed position and does not change with changes in other user interfaces. These at least one application window are stacked on the screen, and the application windows can partially or completely overlap each other. Each application window can be resized and moved. In the embodiments of this application, when a window is floating, for example, floating above a full-screen window or a split-screen window, the state of that window is defined as floating. Correspondingly, the application displayed by that window is defined as a floating application, and the window displaying that application is defined as a floating window.
[0141] Figure 6A In this example, the screen orientation of electronic device 100 is landscape, and the display orientation of both the first application 602 window and the second application 604 window is landscape. The user can adjust the screen orientation of electronic device 100. For example, the user can change the screen orientation of electronic device 100 from... Figure 6AAdjust the screen orientation to landscape mode. Figure 6B The screen orientation is shown in the portrait orientation. In related technologies, when the screen orientation of an electronic device changes from landscape to portrait, the display orientation of the window of the first application 602 and the window of the second application 604 cannot change and remains in landscape orientation.
[0142] Specifically, in the related technology, the window of the second application 604 is a floating window, and the display direction of the floating window is always consistent with the display direction of the window of the first application 602. The electronic device 100 cannot rotate the application window according to the user's needs.
[0143] Furthermore, since the width of the electronic device in the second direction is relatively small, the floating window cannot rotate and therefore cannot occupy more of the display area of the screen, thus affecting the user experience.
[0144] See Figures 7A-7B This is a schematic diagram of the graphical interface of a window display method provided in one embodiment of this application.
[0145] like Figure 7A As shown, the screen orientation of electronic device 100 is landscape, as... Figure 7B As shown, the screen of the electronic device is in portrait orientation.
[0146] Figure 7A In the first application window 702, the display orientation is landscape, and the second application window 704 is a floating window, also with the display orientation in landscape mode.
[0147] In one example, the floating window includes a control 706. Specifically, when the control is open, it indicates that the display orientation of the floating window can be changed based on the screen orientation of the electronic device. When the control is closed, it indicates that the display orientation of the floating window cannot be changed based on the screen orientation of the electronic device.
[0148] It is understood that the image, shape, and position of this control are not limited to... Figure 7A As shown, there are many more settings available, but we will not limit them here.
[0149] Figure 7A The control 706 is in the off state when the screen orientation of the electronic device changes from... Figure 7A The landscape orientation in the middle becomes Figure 7B When the screen is in portrait orientation, the windows of the first application 702 and the second application 704 will still be displayed in landscape orientation.
[0150] Referring to Figure 8, it is a schematic diagram of the graphical interface of the window display method provided in one embodiment of this application.
[0151] likeFigure 8A As shown, the screen orientation of the electronic device 100 is landscape, the window of the first application 802 is displayed in landscape orientation, and the window of the second application 804 is also displayed in landscape orientation. The window of the first application 802 is a full-screen window, and the window of the second application 804 is a floating window, and the control 806 in the window of the second application is in an open state.
[0152] When an electronic device detects that its screen orientation has changed from landscape to portrait, such as Figure 8B The electronic device 100 keeps the display orientation of the first application 802 window unchanged (still in landscape orientation) and rotates the window of the second application, adjusting its display orientation from landscape to portrait orientation, so that the window of the second application is consistent with the screen orientation of the electronic device.
[0153] In one embodiment, when the screen orientation of the electronic device changes from landscape to portrait, the display orientation of the second application 804's window changes accordingly to better display the second application's window. When the display orientation of the first application's window changes from landscape to portrait, the second application's window can be enlarged, for example, by a preset ratio or a preset multiplier. In another possible embodiment, when the display orientation of the second application 804 changes, the second application's window can also be reduced, for example, by a preset ratio.
[0154] In another embodiment of this application, the window of the second application further includes a zoom-in control and a zoom-out control. When the screen orientation of the electronic device is changed from landscape to portrait, the display orientation of the window of the second application is also changed from landscape to portrait. The user can click the zoom-in control, causing the electronic device 100 to respond to the user's click operation and zoom in on the window of the second application 804. The user can also click the zoom-out control, causing the electronic device 100 to respond to the user's click operation and zoom out on the window of the second application 804.
[0155] In one embodiment of this application, the first application 802 and the second application 804 may be the same application or different applications.
[0156] Referring to Figure 9, it is a schematic diagram of the graphical interface of the window display method provided in one embodiment of this application.
[0157] like Figure 9AAs shown, the screen orientation of the electronic device 100 is landscape. The electronic device 100 displays the windows of a first application 9022, a second application 9024, and a third application 904. The windows of the first application 9022, the second application 9024, and the third application 904 are all displayed in landscape orientation. The windows of the first application 9022 and the second application 9024 are displayed in a split-screen configuration, while the window of the third application 904 is a floating window.
[0158] It should be noted that split-screen display, also known as split-screen mode, refers to two or more application windows each occupying a portion of the screen, with no overlap between any two application windows. Each application window can be resized, positioned, or may be immovable, or may only be able to move to a fixed position, such as swapping the positions of two application windows. In this embodiment, when a window is displayed in split-screen mode, the state of that window is defined as split-screen state, and correspondingly, the application displayed in that window is defined as a split-screen display application.
[0159] The window of the third application 904 includes a control 906 that is in an open state. When the electronic device detects that its screen orientation has changed... Figure 9A The landscape orientation shown has changed. Figure 9B When the screen is in portrait orientation, the electronic device 100 keeps the display orientation of the windows of the first application 9022 and the second application 9024 unchanged (still in landscape orientation), and rotates the window of the third application 904 to change the display orientation of the third application window from landscape to portrait orientation, so that the window of the third application is consistent with the screen orientation of the electronic device.
[0160] In one embodiment of this application, the first application 9022, the second application 9024, and / or the third application 904 may be the same application.
[0161] Referring to Figure 10, it is a schematic diagram of the graphical interface of the window display method provided in one embodiment of this application.
[0162] like Figure 10A As shown, the screen orientation of the electronic device is portrait orientation, such as... Figure 10B As shown, the screen orientation of the electronic device 100 is landscape.
[0163] Figure 10A In this embodiment, the electronic device displays a window of a first application 1002 and a window of a second application 1004, the window of the second application 1004 including a control 1006. The windows of the first application 1002 and the second application 1004 are displayed in a split-screen configuration. The first application 1002 is displayed in landscape orientation, and the window of the second application 1004 is displayed in portrait orientation.
[0164] In one embodiment, the controls of the window of the second application 1004 are in an open state. When the screen orientation of the electronic device 100 changes from portrait to landscape, the electronic device 100 keeps the display orientation of the window of the first application 1002 unchanged (still in landscape orientation), and rotates the window of the second application 1004 to adjust its display orientation from portrait to landscape, so that the window of the second application 1004 is consistent with the screen orientation of the electronic device.
[0165] In one possible implementation of this application, the first application 1002 and the second application 1004 may be the same application.
[0166] See Figure 11 This is a flowchart of a window display method provided in one embodiment of this application. The window display method is applied to the above-mentioned electronic device 100 and may include the following steps:
[0167] Step 1102: Electronic device 100 displays a first window and a second window. The screen orientation of the electronic device is a first orientation, which can be one of portrait orientation, landscape orientation, reverse portrait orientation, and reverse landscape orientation. The display orientation of the first window is the first orientation.
[0168] In one embodiment of this application, the first window and the second window can be windows of different applications or windows of the same application.
[0169] In one embodiment of this application, the first window is a floating window.
[0170] In one embodiment of this application, the second window is displayed in full-screen mode, or the second window is displayed in split-screen mode with the first window, or the second window is displayed in split-screen mode with other windows.
[0171] Step 1104: When the electronic device detects that the screen orientation of the electronic device has changed from the first orientation to the second orientation, it keeps the display orientation of the second window unchanged and rotates the first window so that the display orientation of the first window is the second orientation.
[0172] In this step, when the electronic device detects a change in the screen orientation, it rotates the first window so that the display orientation of the first window corresponds to the changed screen orientation of the electronic device.
[0173] In one embodiment, when the electronic device detects that the screen orientation of the electronic device has changed from the first orientation to the second orientation, the display orientation of the second window remains unchanged, and it is determined whether the second window meets the preset conditions. If the preset conditions are met, the first window is rotated.
[0174] In one embodiment, the first window includes a first control, which has open and closed states. When the first control is in the open state, the display orientation of the first window can change based on the screen orientation of the electronic device. When the electronic device rotates the first window, it can determine whether the first control is in the open state; if the first control is in the open state, the first window is rotated.
[0175] Step 1104: Adjust the size of the first window.
[0176] In one embodiment of this application, after the first window has been rotated, it can be enlarged or reduced according to the screen orientation of the electronic device.
[0177] See Figures 12A-12B This is a graphical interface for a window display method provided in one embodiment of this application.
[0178] See Figures 12A-12B In this embodiment, the screen orientation of electronic device 100 is portrait. Electronic device 100 displays a window 1202 of a first application, which includes a control 1204 that is open. The screen orientation of electronic device 100 is portrait, and the display orientation of the window of the first application 1202 is also portrait.
[0179] When control 1204 is in the open state, it indicates that the display orientation of the first application's window can be based on the screen orientation of the electronic device. When the control is in the closed state, it indicates that the display orientation of the first application's window cannot be changed based on the screen orientation of the electronic device.
[0180] In one embodiment of this application, when the electronic device 100 opens the window of the second application 1206, the display orientation of the window of the first application 1202 remains unchanged, and the window of the second application is displayed in landscape orientation. Specifically, the display orientation of the window of the second application can be preset in advance; for example, the window of the second application can only be displayed in landscape orientation or reverse landscape orientation.
[0181] See Figures 13A-13B This is a graphical interface for a window display method provided in one embodiment of this application.
[0182] Figures 13A-13B In China, the screen orientation of electronic devices is portrait. Figure 13A In the electronic device 100, a window of a first application 1302 and a window of a second application 1304 are displayed. The window of the second application can be a floating window, and the window of the second application includes a control 1306, which is in an open state. Figure 13A In the example, the display orientation of the first application window and the second application window are both portrait orientation.
[0183] In one embodiment, see Figure 13B When the electronic device 100 opens the window of the third application 1308, it keeps the display orientation of the second application 1304 window unchanged, and displays the windows of the third application 1308 and the first application 1302 in a split-screen manner, with the window of the third application 1308 displayed in landscape orientation. Specifically, the display orientation of the third application can be preset in advance; for example, the window of the third application can be displayed only in landscape orientation or reverse landscape orientation.
[0184] See Figures 14A-14B This is a graphical interface for a window display method provided in one embodiment of this application.
[0185] Figures 14A-14B In China, the screen orientation of electronic devices is portrait. Figure 14A In the electronic device 100, the window of the first application 1402 is displayed in portrait orientation, and the window of the first application 1402 includes a control 1406, which is in an open state.
[0186] In one embodiment, see Figure 14B When the electronic device 100 opens the window of the second application 1404, it keeps the display orientation of the first application window unchanged, and displays the windows of the first application 1402 and the second application 1404 in a split-screen format, with the window of the second application 1404 displayed in landscape orientation. Specifically, the display orientation of the window of the second application 1404 can be preset in advance; for example, the window of the second application 1404 can only be displayed in landscape orientation or reverse landscape orientation.
[0187] See Figures 15A-15B This is a graphical interface for a window display method provided in one embodiment of this application.
[0188] Figures 15A-15B In the above, the screen orientation of electronic device 100 is portrait orientation. Figure 15A In the electronic device 100, the windows of the first application 1502 and the second application 1504 are displayed in a split-screen manner. The window of the first application 1502 is displayed in portrait orientation, and the window of the first application 1502 includes a control 1506, which is in an open state. The window of the second application 1504 in the electronic device 100 is displayed in portrait orientation, and the window of the second application 1504 includes a control 1508, which is in an open state.
[0189] In one embodiment, see Figure 15BWhen the electronic device 100 opens the window of the third application 1510, it keeps the display orientation of the windows of the first application 1502 and the second application 1504 unchanged, and displays the windows of the first application 1502, the second application 1504 and the third application 1510 in a split-screen format, wherein the display orientation of the window of the third application 1510 is landscape. Specifically, the display orientation of the window of the third application 1510 can be preset in advance, for example, the window of the third application 1510 can only be displayed in landscape or reverse landscape orientation.
[0190] See Figure 16 This is a flowchart of a window display method provided in one embodiment of this application. The window display method is applied to the above-mentioned electronic device 100 and may include the following steps:
[0191] Step 1602: The electronic device displays a first window. The screen orientation of the electronic device is a first orientation, which can be one of portrait orientation, landscape orientation, reverse portrait orientation, or reverse landscape orientation. The display orientation of the first window is the first orientation.
[0192] In one embodiment of this application, the first window is a floating window.
[0193] Step 1604: When the electronic device opens the second window and displays the second window in the preset display direction of the second window, the display direction of the first window remains unchanged. The preset display direction of the second window is different from the first direction. The second window is a full-screen window, or the second window is displayed in a split-screen manner with the first window and / or the third window.
[0194] In one embodiment of this application, the first window and the second window can be windows of different applications or windows of the same application.
[0195] In one embodiment of this application, when the electronic device 100 opens a second application window, it can determine whether the first window meets preset conditions. If so, the display orientation of the first window remains unchanged. Specifically, it can determine whether a first control on the second window is in an open state. If it is in an open state, the electronic device 100 maintains the display orientation of the first window unchanged. The first control being in an open state indicates that the first window is displayed based on the screen orientation of the electronic device.
[0196] The window display method shown in this application allows for flexible and free rotation of various windows on electronic devices.
[0197] In one embodiment of this application, a window display device 1700 is also provided, comprising:
[0198] Display module 1702, the electronic device displays a first window and a second window, the screen orientation of the electronic device is a first orientation, the screen orientation is one of portrait orientation, landscape orientation, reverse portrait orientation and reverse landscape orientation, and the display orientation of the first window is the first orientation;
[0199] The rotation module 1704 is used to keep the display direction of the second window unchanged and rotate the first window so that the display direction of the first window is the second direction when the electronic device detects that the screen orientation of the electronic device has changed from the first direction to the second direction.
[0200] In one embodiment of this application, a window display device 1800 is also provided, comprising:
[0201] Display module 1802 is used to display a first window on the electronic device. The screen orientation of the electronic device is a first orientation, which is one of portrait orientation, landscape orientation, reverse portrait orientation, and reverse landscape orientation. The display orientation of the first window is the first orientation.
[0202] When the electronic device described in module 1804 opens the second window and displays the second window in a preset display direction, the display direction of the first window remains unchanged. The preset display direction of the second window is different from the first direction. The second window is a full-screen window, or the second window is displayed in a split-screen manner with the first window and / or the third window.
[0203] This application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform the window display method provided in this application.
[0204] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0205] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.
[0206] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A window display method, applied to an electronic device, characterized in that, include: The electronic device displays a first window and a third window. The first window is a floating window, and the third window is a non-floating window. The screen orientation of the electronic device is a first orientation, which is one of portrait orientation, landscape orientation, reverse portrait orientation, and reverse landscape orientation. The display orientation of the first window and the third window is the first orientation. When the electronic device opens the second window and displays the second window in a second direction, the second direction is the preset display direction of the second window, the display direction of the first window remains unchanged, the second window and the third window are displayed in a split screen, the display direction of the third window is the second direction, the second direction is different from the first direction, and the second window is a non-floating window; The step of keeping the display orientation of the first window unchanged includes keeping the display orientation of the first window unchanged when it is determined that the first window meets the preset conditions; The first window includes a first control, which includes a closed state and an open state. Determining that the first window meets the preset conditions includes: determining that the first control is in the open state, wherein the open state indicates that the first window is displayed based on the screen orientation of the electronic device.
2. The display method according to claim 1, characterized in that, The first window and the second window are windows for different applications.
3. An electronic device, characterized in that, It includes a processor and a storage device, the storage device storing program instructions that, when executed by the processor, cause the electronic device to perform the window display method as described in claim 1 or 2.
4. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on the electronic device, cause the electronic device to perform the window display method as described in claim 1 or 2.
Citation Information
Patent Citations
Display apparatus, display control method, and program
CN103370681A
Method for displaying plurality of application windows by mobile terminal and mobile terminal
CN110324489A
System and method for locking the orientation of a display on a mobile
US20130162684A1