Display method, display apparatus, and electronic device

By detecting screen occlusion and dynamically switching interfaces, the problem of low interaction efficiency caused by screen occlusion on foldable electronic devices is solved, achieving efficient interaction and optimizing user experience in unobstructed areas.

WO2026237724A1PCT designated stage Publication Date: 2026-11-19HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/093628
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2026-04-28
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

When the screen of a foldable electronic device is partially obscured during use, the user's interaction with the elements on the screen becomes inefficient, impacting the user experience.

Method used

By detecting screen occlusion, responding to user input, and dynamically switching the screen display area, the obscured interface is moved to the unobscured area. Combined with fade-in/fade-out effects, this improves the accuracy of interface switching and user experience.

Benefits of technology

When the screen is partially obscured, dynamic interface transitions and fade-in/fade-out effects ensure that users can effectively interact in the unobstructed area, improving the efficiency and experience of user interaction with electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026093628_19112026_PF_FP_ABST
    Figure CN2026093628_19112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a display method, a display apparatus, and an electronic device. The method is applied to an electronic device, the electronic device comprising a first display region and a second display region. The method comprises: controlling the first display region to display a first interface and controlling the second display region to display a second interface; and in response to detecting that at least a portion of the second display region is obscured and a first input of a user is detected in the first display region, controlling the first display region to switch from displaying the first interface to displaying the second interface. According to the display method, the display apparatus, and the electronic device of the present application, when a certain display region is obscured, an obscured interface can be displayed in an unobscured region, so as to enable a user to interact with the interface in the unobscured region, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Display methods, display devices, and electronic devices

[0001] This application claims priority to Chinese Patent Application No. 202510630311.4, filed on May 15, 2025, entitled "Display Method, Display Device and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of electronic devices, and more specifically, to a display method, display device, and electronic device. Background Technology

[0003] With the continuous development of electronic device technology, various electronic devices with different usage forms have emerged, such as foldable electronic devices. During the use of foldable electronic devices, there may be situations where certain parts of the screen are obstructed, affecting the user's interaction with on-screen elements such as controls, icons, and sliders.

[0004] Therefore, improving the efficiency of user interaction with work elements on electronic devices, thereby enhancing user experience, is an urgent problem to be solved. Summary of the Invention

[0005] This application provides a display method, display device, and electronic device. These can improve the efficiency of user interaction with functional elements on the electronic device, thereby enhancing the user experience.

[0006] In a first aspect, a display method is provided, applied to an electronic device including a first display area and a second display area. The method includes: controlling the first display area to display a first interface and controlling the second display area to display a second interface; in response to detecting that at least a portion of the second display area is obscured and detecting a first input from a user in the first display area, controlling the first display area to switch from displaying the first interface to displaying the second interface.

[0007] Based on the above solution, when at least a portion of a display area of ​​an electronic device is obscured, the obscured second interface can be moved and displayed in the unobscured display area according to the user's input, allowing the user to interact with the content on the second interface in the unobscured display area, thereby improving the user experience.

[0008] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: controlling the first display area to display the fade-out effect of the first interface based on the first input.

[0009] Based on the above scheme, based on the user's first input, the first interface originally displayed in the first display area has a dynamic fade-out display effect. As the first interface dynamically fades out of the first display area, the second interface also dynamically fades into the first display area.

[0010] In conjunction with the first aspect, in some implementations of the first aspect, controlling the first display area to display the fade-out effect of the first interface based on the first input includes: when the first distance corresponding to the first input is within a preset distance range, controlling the first display area to display the fade-out effect of the first interface based on the first input.

[0011] For example, the preset distance range can be understood as a movable range, and the preset distance range can be related to the size of the first display area and the second display area.

[0012] For example, the first distance corresponding to the first input can be understood as the distance the first interface moves in response to the first input, or the distance the first interface fades out.

[0013] Based on the above scheme, preset conditions can be set for the first input. When the first input meets the preset conditions, the first display area is triggered to switch from displaying the first interface to displaying the second interface, further improving the accuracy of interface switching.

[0014] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: in response to detecting a second input from a user in the first display area, controlling the first display area to switch from displaying the second interface to displaying the first interface.

[0015] For example, the second input can be a sliding operation in the opposite direction to the first input.

[0016] Based on the above scheme, based on the user's second input, the first display area can switch back to displaying the first interface, so that the user can interact with the content on the first interface.

[0017] In conjunction with the first aspect, in some implementations of the first aspect, the first interface and the second interface belong to the first desktop. The method includes: obtaining a third input; when the second distance corresponding to the third input is greater than the maximum value within a preset distance range, based on the third input, controlling the first display area to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the third interface, wherein the third interface is the same as the first interface.

[0018] Based on the above scheme, and based on the user's third input, the system controls the first display area to fade out at a distance greater than the maximum value within a preset distance range. As the first interface fades out, the third interface also dynamically displays. When the user's third input ends, the first display area switches from displaying the first interface to displaying the third interface. The third interface can be a backup desktop of the first desktop, and the content displayed on the third interface can be consistent with the content displayed on the first interface. Responding to the user's third input, the dynamic display effects of each interface can improve the user experience.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, the first interface and the second interface belong to the first desktop. The method further includes: obtaining a fourth input; when the third distance corresponding to the fourth input is greater than the maximum value within a preset distance range, based on the fourth input, controlling the first display area to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the fourth interface, wherein the fourth interface belongs to the second desktop, and the first desktop is different from the second desktop.

[0020] Based on the above scheme, based on the user's fourth input, the system controls the first display area to fade out from the first interface at a distance greater than the maximum value within a preset distance range. As the first interface fades out, the fourth interface also dynamically displays. When the user's fourth input ends, the first display area switches from displaying the first interface to displaying the fourth interface. The fourth interface is a second desktop, different from the first desktop, and the content displayed on the fourth interface differs from that displayed on the first interface. Responding to the user's fourth input can trigger switching between different desktops, thereby improving the user experience.

[0021] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device is a foldable electronic device, and the physical screen of the foldable electronic device is divided into the first display area and the second display area according to the folding axis.

[0022] Based on the above solution, when the electronic device is a foldable electronic device, such as a foldable personal computer, the physical screen can be divided into multiple display areas according to the folding axis. When at least part of any display area is blocked, the blocked display area can be switched to the unblocked display area to facilitate user interaction.

[0023] In a second aspect, a display device is provided, the device including a first display area and a second display area, the device including: a processing module, configured to control the first display area to display a first interface and control the second display area to display a second interface; further configured to control the first display area to switch from displaying the first interface to displaying the second interface in response to detecting that at least a portion of the second display area is occluded and detecting a first input from a user in the first display area.

[0024] In conjunction with the second aspect, in some implementations of the second aspect, the processing module is also used to control the first display area to display the fade-out effect of the first interface based on the first input.

[0025] In conjunction with the second aspect, in some implementations of the second aspect, the processing module is specifically used to control the first display area to display the fade-out effect of the first interface based on the first input when the first distance corresponding to the first input is within a preset distance range.

[0026] In conjunction with the second aspect, in some implementations of the second aspect, the processing module is further configured to control the first display area to switch from displaying the second interface to displaying the first interface in response to detecting a second input from the user in the first display area.

[0027] In conjunction with the second aspect, in some implementations of the second aspect, the first interface and the second interface belong to the first desktop. The processing module is also used to obtain a third input; and is also used to control the first display area to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the third interface, based on the third input, when the second distance corresponding to the third input is greater than the maximum value within a preset distance range. The third interface is the same as the first interface.

[0028] In conjunction with the second aspect, in some implementations of the second aspect, the first interface and the second interface belong to the first desktop. The processing module is also used to obtain a fourth input; and is also used to control the first display area to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the fourth interface based on the fourth input when the third distance corresponding to the fourth input is greater than the maximum value within a preset distance range. The fourth interface belongs to the second desktop, and the first desktop is different from the second desktop.

[0029] In conjunction with the second aspect, in some implementations of the second aspect, the device is a foldable electronic device, the physical screen of which is divided into the first display area and the second display area according to the folding axis.

[0030] Thirdly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the methods of the first aspect and any possible implementation thereof.

[0031] Fourthly, a display device is provided, comprising a processor coupled to a memory for storing a computer program, the processor for running the computer program such that the display device performs the methods of the first aspect and any possible implementation thereof.

[0032] In conjunction with the fourth aspect, some implementations of the fourth aspect also include one or more of the memory and the transceiver, the transceiver being used to receive and / or transmit signals.

[0033] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a computer, causes the computer to implement the methods of the first aspect and any possible implementation thereof.

[0034] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the methods of the first aspect and any possible implementation thereof.

[0035] In a seventh aspect, a chip is provided, the chip including a processor and a data interface, the processor reading instructions stored in memory through the data interface to execute methods as described in the first aspect and any possible implementation thereof.

[0036] In conjunction with the seventh aspect, in one possible implementation, the processor is coupled to the memory via an interface.

[0037] In conjunction with the seventh aspect, in one possible implementation, the chip system further includes a memory in which computer programs or computer instructions are stored. Attached Figure Description

[0038] Figure 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0039] Figure 2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application;

[0040] Figure 3 is a schematic diagram of a display method provided in an embodiment of this application;

[0041] Figure 4 is a schematic diagram of a scenario provided in an embodiment of this application;

[0042] Figure 5 is a schematic diagram of a system architecture provided in an embodiment of this application;

[0043] Figure 6 is a schematic flowchart of a display method provided in an embodiment of this application;

[0044] Figure 7 is a schematic diagram of the interface of a foldable personal computer provided in an embodiment of this application;

[0045] Figure 8 is a schematic diagram of a partitioning method provided in an embodiment of this application;

[0046] Figure 9 is a schematic diagram of a display interface switching provided in an embodiment of this application;

[0047] Figure 10 is a schematic diagram of a display method provided in an embodiment of this application;

[0048] Figure 11 is a schematic diagram of a display method provided in an embodiment of this application;

[0049] Figure 12 is a schematic diagram of a display method provided in an embodiment of this application;

[0050] Figure 13 is a schematic diagram of a display method provided in an embodiment of this application;

[0051] Figure 14 is a schematic diagram of a display method provided in an embodiment of this application;

[0052] Figure 15 is a schematic diagram of a backup desktop provided in an embodiment of this application;

[0053] Figure 16 is a schematic diagram of a display method provided in an embodiment of this application;

[0054] Figure 17 is a schematic diagram of a display method provided in an embodiment of this application;

[0055] Figure 18 is a schematic diagram of a desktop provided in an embodiment of this application;

[0056] Figure 19 is a schematic diagram of a display method provided in an embodiment of this application;

[0057] Figure 20 is a schematic diagram of a display method provided in an embodiment of this application;

[0058] Figure 21 is a schematic diagram of a display method provided in an embodiment of this application;

[0059] Figure 22 is a schematic diagram of a display method provided in an embodiment of this application;

[0060] Figure 23 is a schematic diagram of a display method provided in an embodiment of this application;

[0061] Figure 24 is a schematic diagram of a display method provided in an embodiment of this application;

[0062] Figure 25 is a schematic diagram of a partitioning method provided in an embodiment of this application;

[0063] Figure 26 is a schematic flowchart of a display method provided in an embodiment of this application;

[0064] Figure 27 is a schematic block diagram of a display device provided in an embodiment of this application;

[0065] Figure 28 is a schematic block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0066] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0067] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0068] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0069] The following describes an electronic device, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or music player, such as a mobile phone, tablet computer, wearable electronic device with wireless communication capabilities (such as a smartwatch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, those equipped with Harmony. Alternatively, it could be a portable electronic device with another operating system. The aforementioned portable electronic device could also be other portable electronic devices, such as laptops. It should also be understood that in some other embodiments, the aforementioned electronic device may not be a portable electronic device, but rather a desktop computer.

[0070] For example, Figure 1 shows a schematic diagram of the structure of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, 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.

[0071] It is understood that the structures illustrated in the embodiments of this application 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.

[0072] The processor 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), a baseband processor, and / or a neural network processing unit (NPU).

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

[0074] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0075] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use on electronic devices 100.

[0076] 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), infrared (IR) technology, etc.

[0077] 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, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

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

[0079] Display screen 194 is used to display images, videos, etc. 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 flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc.

[0080] Camera 193 is used to capture still images or videos.

[0081] NPU stands for Neural-Network (NN) Computing Processor. By drawing inspiration from the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can quickly process input information and continuously learn on its own.

[0082] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.

[0083] Internal memory 121 can be used to store computer executable program code, which includes instructions.

[0084] Electronic device 100 can implement audio functions through audio module 170 and application processor, such as music playback and recording.

[0085] Audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. Audio module 170 can also be used for encoding and decoding audio signals.

[0086] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals.

[0087] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." 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. In this embodiment, window movement commands can be executed by dragging and tossing the window.

[0088] Figure 2 is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the 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 system library layer, and the kernel layer. The application layer may include a series of application packages.

[0089] As shown in Figure 2, the application layer can include camera, settings, skin modules, user interface (UI), and third-party applications. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0090] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer may include some predefined functions. Several functional modules included in the system architecture provided in this application embodiment belong to the application framework layer.

[0091] As shown in Figure 2, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0092] A window manager is used to manage window programs. The window manager can obtain the screen size, determine if a status bar exists, lock the screen, and capture the screen, etc. In this embodiment, the window manager can be used to implement cross-screen display of windows. A content provider is used to store and retrieve data, and make this data accessible to applications. The data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

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

[0094] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0095] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0096] The notification manager allows applications to display notification information in the status bar.

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

[0098] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0099] The media library supports playback and recording of various commonly used audio and video formats, as well as still image files.

[0100] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0101] A 2D graphics engine is a graphics engine for 2D drawing.

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

[0103] The hardware layer can include various types of sensors, such as those shown in Figure 1.

[0104] Based on the electronic devices described in Figures 1 and 2 above, in the embodiments of this application, the electronic devices may be terminal devices with screens, such as mobile terminals, tablet computers, personal computers, smart screens, etc.

[0105] The content displayed on the screen of current electronic devices can be switched. As shown in Figure 3, taking a tablet computer as an example, a schematic diagram of a display method is illustrated.

[0106] As shown in Figure 3(a), a schematic diagram of a desktop 1 is illustrated. The content displayed on the desktop 1 may include wallpaper, time information, and various interactive elements. The wallpaper may be a striped wallpaper as shown in the figure, the time information may be 8:00, and the interactive elements include icons for a clock application, a calendar application, a gallery application, and a memo application.

[0107] Figure 3(b) shows a schematic diagram of a desktop 2. The content displayed on desktop 2 may include wallpaper and various interactive elements. The wallpaper shown in Figure 3(b) can be the same as the wallpaper shown in Figure 3(a), which is a striped wallpaper, or it can be different. The interactive elements shown in Figure 3(b) are different from those shown in Figure 3(a). The interactive elements shown in Figure 3(b) may include icons for multiple applications, such as icons for a file management application, an email application, and a music application.

[0108] Electronic devices display various interactive elements on their screens, including icons, controls, cards, options, input boxes, and dialog boxes. For example, when a user clicks the icon for the clock application shown in Figure 3(a), the electronic device can display the clock application's interface.

[0109] For example, both desktop 1 and desktop 2 described above can be displayed on a tablet computer.

[0110] As shown in Figure 3(c), the tablet's screen is unobstructed, displaying the entire desktop 1. In response to the user's rightward swipe, the tablet can display the interface shown in Figure 3(d).

[0111] As shown in Figure 3(d), in response to the user's swipe to the right, desktop 2 is fully displayed on the tablet. It can be seen that, in response to the user's action, the electronic device can switch from displaying desktop 1 to displaying desktop 2.

[0112] If the tablet screen is obstructed, as shown in Figure 3(e), the tablet displays a desktop 1, and a floating window A is displayed on the right side of the screen, obscuring the right half of desktop 1. The user cannot interact with the work elements on the right half of desktop 1. In response to the user's rightward swipe, the tablet can display the interface shown in Figure 3(f).

[0113] As shown in Figure 3(f), in response to the user's swipe to the right, desktop 2 is displayed on the tablet, and a floating window A is displayed on the right side of the screen, obscuring the right half of desktop 2. The user cannot interact with the work elements on the right half of desktop 2 because the floating window A obscures the right half.

[0114] For example, what obstructs the screen can be a window, interface, virtual keyboard, or physical keyboard displayed on the screen, and this application embodiment does not limit this.

[0115] As can be seen, when the screen of an electronic device is obstructed, the above-mentioned interaction method causes the desktop displayed on the electronic device to switch, but the obstructed content is still not displayed and the user cannot interact with it.

[0116] Therefore, in order to enable the obscured content to be moved to the unobscured part of the electronic device for display, facilitating user interaction, this application provides a display method, display device, and electronic device that can flexibly move the obscured working elements to improve the interaction efficiency between the user and the working elements on the electronic device, thereby enhancing the user experience.

[0117] With the continuous development of electronic device technology, the usage forms of electronic devices are constantly changing. The display method provided in this application embodiment can be applied to foldable electronic devices, such as foldable personal computers.

[0118] Figure 4 illustrates a scenario provided by an embodiment of this application. Figure 4 shows a foldable electronic device, such as a foldable personal computer. Figure 4 illustrates three forms of the foldable personal computer: full-screen mode, hover mode, and single-screen mode.

[0119] Figure 4(a) illustrates a schematic diagram of a foldable personal computer in full-screen mode. The full-screen mode of the foldable personal computer is its fully unfolded state, including screens 401 and 402. Screens 401 and 402 belong to the same physical screen. In this embodiment, screens 401 and 402 can be referred to as display areas, where screen 401 can be a first display area and screen 402 can be a second display area. The content displayed in each display area can be referred to as an interface. For example, a first interface is displayed in the first display area, and a second interface is displayed in the second display area. The axis k can be the axis along which the foldable personal computer is bent. Screen 401 is located above axis k, and screen 402 is located below axis k. When the foldable personal computer is in full-screen mode, the angle between the two screens can be considered to be 180°.

[0120] Figure 4(b) illustrates a schematic diagram of a folded PC in a hovering state. The hovering state of the folded PC is similar to the current usage state of the PC. When the folded PC is in the hovering state (also known as the folded state), the angle between screens 401 and 402 can be considered to be between 0° and 180°. In the hovering state, the user can freely adjust the angle between these two screens.

[0121] Figure 4(c) illustrates a schematic diagram of a foldable PC in single-screen mode. In single-screen mode, the foldable PC is in its hovered state, with the physical keyboard obscuring the view. In single-screen mode, screen 402 is obscured by the physical keyboard, and screen 401 is used to display content.

[0122] Figure 5 illustrates a system architecture provided in an embodiment of this application, which can be applied to foldable personal computers.

[0123] For example, the system architecture includes a desktop module, a management module, and a rendering module. The desktop module includes an icon module, a card module, a toolbar module, and a status bar module. The management module includes a status module, a multi-modal module, a user interface (UI) module, and an animation module.

[0124] The control module can be housed in the application framework layer shown in Figure 2. It can collect information, obtain user commands and device status data (e.g., full-screen state, hover state, or single-screen state), and transmit this data to the desktop module. This includes a status module for identifying device status. The multi-modal module can be the framework layer of the multi-modal input subsystem in the open-source HarmonyOS (OH) system architecture, which can transmit user commands (e.g., clicks, touches, folding sensors) to the application layer. The UI module can be the ArkUI framework in the OH system architecture, which can be used to control controls (e.g., icons, text, cards) and manage the properties of these controls, such as size, position, shadow, blur, rounded corners, and other effect attributes. The animation module can be the framework layer of the graphics subsystem in the OH system architecture, which can generate animation commands based on animation parameters issued by the application layer (e.g., UI properties at the control's endpoint, animation duration, delay, animation curve), and control the rendering service to draw the animation.

[0125] The desktop module can be hosted in the application layer shown in Figure 2. It can handle desktop-related commands and control the display elements on the desktop. This includes the icon module, card module, toolbar module, and status bar module, which are used to control various display elements on the desktop (e.g., icons, cards, toolbars, and status bars).

[0126] The rendering module can be the service layer of the graphics subsystem in the OH system architecture, and it can perform rendering and compositing based on instructions issued by the UI module, animation module, etc.

[0127] The display method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0128] Figure 6 shows a schematic flowchart of a display method provided in an embodiment of this application. This method can be applied to a foldable personal computer, and the method includes:

[0129] S601, in response to the form change of the electronic device, determines the movable range and at least two display areas.

[0130] For example, an electronic device can be a foldable personal computer. Foldable personal computers can be in full-screen, hover, and single-screen states.

[0131] Figure 7 shows a schematic diagram of the interface of a foldable personal computer.

[0132] Figure 7(a) illustrates a desktop scenario where work elements include a clock application, a calendar card, and a weather card. These work elements support user interaction.

[0133] Figure 7(b) illustrates the interface of a foldable PC in full-screen mode without obstruction, showing the effect of displaying the desktop shown in Figure 7(a) in its full-screen, unobstructed state. In response to the foldable PC switching from full-screen to hover mode, the foldable PC can display the interface shown in Figure 7(c).

[0134] As shown in Figure 7(c), a schematic diagram of a personal computer interface in a hovered and unobstructed state is shown, illustrating the effect of fully displaying the desktop shown in Figure 7(a) when the personal computer is folded and hovered in an unobstructed state.

[0135] Optionally, in response to the foldable PC switching from a full-screen state to a hover state, a movable range and at least two display areas are determined. The division of the display areas may be related to the folding method of the foldable PC, and the movable range is related to the size of the display area. Taking the folding method shown in Figure 7 as an example, folding along axis k divides the display area of ​​the foldable PC into two display areas.

[0136] For example, the movable range is a virtual range, or a virtual distance, or a virtual boundary.

[0137] Figure 8 shows a schematic diagram of a partitioning method.

[0138] As shown in Figure 8(a), the folded PC can fully display the desktop 1 in full-screen mode.

[0139] As shown in Figure 8(b), when the foldable PC is in a hovering state, on the one hand, the foldable PC divides the desktop 1 into two interfaces, desktop 1B and desktop 1C, along the k-axis, dividing the screen of the foldable PC into two display areas. Different display areas are used to display different parts of the desktop (i.e., the two interfaces, desktop 1B and desktop 1C). Desktop 1B displays the area designated as display area 1, and desktop 1C displays the area designated as display area 2. On the other hand, a movable range is set as shown by the red dotted line in the figure. The movable range includes a first part and a second part. The size of the first part of the movable range is related to the size of desktop 1B (i.e., the size of display area 1), and the size of the second part of the movable range is related to the size of desktop 1C (i.e., the size of display area 2). In short, the size of the first part of the movable range along the y-axis is the same as or within the same tolerance range as the size of desktop 1B along the y-axis; the size of the second part of the movable range along the y-axis is the same as or within the same tolerance range as the size of desktop 1C along the y-axis.

[0140] It is understood that the vertical partitioning shown in Figure 8 is merely an illustrative example; horizontal partitioning or diagonal partitioning is also possible, and this application embodiment does not limit this. This application embodiment primarily describes a display method, display device, and electronic device using a vertical partitioning method.

[0141] S602 determines whether the user command meets preset conditions when any display area is completely or partially obscured.

[0142] For example, the display area can be obscured by physical objects or by virtual windows or virtual keyboards. This application embodiment does not limit the specific method of obscuring the display area.

[0143] For example, user instructions can be instructions for swiping on the screen, air gesture instructions, or shortcut instructions. This application embodiment will take the instruction for swiping with four fingers as an example.

[0144] Taking a swipe gesture as an example, a user command meeting preset conditions can be understood as the swipe distance being within a certain range, which is related to the aforementioned movable range. When the swipe distance is within a certain range, it indicates that the user currently intends to switch the display interface.

[0145] For example, referring to Figure 8(b), when the user slides upwards, the sliding distance is greater than or equal to the trigger threshold and less than or equal to the dimension of the first part of the movable range along the y-axis, indicating that the user command meets the preset conditions; when the user slides downwards, the sliding distance is greater than or equal to the trigger threshold and less than or equal to the dimension of the second part of the movable range along the y-axis, indicating that the user command meets the preset conditions. Specifically, when the user slides upwards, the trigger threshold can be 1 / 2 or 1 / 3 of the dimension of the desktop 1C area along the y-axis; when the user slides downwards, the trigger threshold can be 1 / 2 or 1 / 3 of the dimension of the desktop 1B along the y-axis. The trigger threshold can be preset by the system or defined by the user. This application embodiment does not limit the specific value of the trigger threshold. Of course, Figure 8 is an example of a folded personal computer with vertical partitions. This application embodiment does not limit the specific partitioning method. User commands are related to the partitioning method. If it is a left-right partition, the user command can be a left-right sliding operation, a left-right air gesture, etc. This application embodiment does not limit this.

[0146] S603 switches between multiple interfaces when the user command meets preset conditions.

[0147] It is understandable that the multiple interfaces switched in step S603 are different parts of the same desktop. The user command that meets the preset conditions is the command that triggers the switching between different parts of the same desktop.

[0148] For example, the multiple interfaces that can be switched can be the two interfaces, Desktop 1B and Desktop 1C, on the same desktop 1 as described above.

[0149] In one implementation, as shown in Figure 9, taking a foldable personal computer as an example, a schematic diagram of the switching of the display interface is shown.

[0150] As shown in Figure 9(a), when the folded PC is in a hovering state and unobstructed, desktop 1 can be fully displayed. The folded PC divides desktop 1 into two interfaces, desktop 1B and desktop 1C, along the k-axis, thus dividing the screen into two display areas. Different display areas are used to display different parts of the desktop (i.e., desktop 1B and desktop 1C). Desktop 1B displays area 1, and desktop 1C displays area 2. The movable range includes a first part and a second part. The dimension of the first part of the movable range along the y-axis is the same as or within the tolerance range of the dimension of desktop 1B along the y-axis; the dimension of the second part of the movable range along the y-axis is the same as or within the tolerance range of the dimension of desktop 1C along the y-axis.

[0151] As shown in Figure 9(b), when the folded PC is in single-screen mode with obstructions, the display area 2 where the desktop 1C area is located is obstructed. The display area 1 where the desktop 1B area is located is also obstructed. The obstruction area can be a physical object, a virtual keyboard, a virtual window, etc. The user can execute user commands within the display area 1 where the desktop 1B area is located, such as a sliding operation.

[0152] As shown in Figure 9(c), in response to the user's upward swipe, the entire desktop 1 moves upward a distance of 1. This distance 1 is greater than or equal to a trigger threshold, and less than or equal to the dimension of the first portion of the movable range along the y-axis. The trigger threshold can be 1 / 2 or 1 / 3 of the dimension of area C of desktop 1 along the y-axis. The trigger threshold can be preset by the system or defined by the user; this embodiment does not limit the specific value of the trigger threshold. In other words, if the entire desktop 1 moves upward greater than or equal to the trigger threshold, but area B of desktop 1 does not exceed the upper boundary of the movable range, the user command in this case satisfies the preset conditions.

[0153] As shown in Figure 9(d), the switch is successful in response to the user stopping the upward swipe. The display area 1, which originally displayed desktop area 1B, can now be switched to display desktop area 1C.

[0154] As can be seen, when the user's command meets the preset conditions, the interface that was originally in the obscured area (desktop 1C area) can be moved to the unobscured area (display area 1) and displayed, allowing the user to interact with the working elements of the interface that was originally in the obscured area (desktop 1C area).

[0155] For ease of understanding, in the following text, the unobstructed area on the folded personal computer will be referred to as display area 1, and the obstructed area will be referred to as display area 2.

[0156] For example, taking physical object occlusion as an example, Figure 10 shows a schematic diagram of a display method.

[0157] As shown in Figure 10(a), a foldable personal computer is displayed in a hovering, unobstructed state. Its screen comprises an upper and lower half, where the upper half can be understood as display area 1 and the lower half as display area 2. Display area 1 displays the clock application icon and calendar card; display area 2 displays the weather card. It is evident that, in an unobstructed state, the foldable personal computer can fully display the clock application icon, calendar card, and weather card, allowing the user to interact with any of the elements.

[0158] As shown in Figure 10(b), a foldable PC in single-screen mode with the physical keyboard obstructing the view is displayed. Display area 2 is obstructed by the physical keyboard, while display area 1 can fully display the icons and calendar cards of the work element clock application. In contrast to Figure 10(a), the weather card is obstructed by the physical keyboard and cannot be displayed.

[0159] As shown in Figure 10(c), a foldable personal computer in single-screen mode with physical obstruction is illustrated. The user slides four fingers a certain distance in display area 1, and the sliding distance is within a certain range, meaning the user's command meets preset conditions. The work elements move with the user's sliding operation. Compared to Figure 10(b), the weather card moves upwards, and Figure 10(c) can display only a portion of the weather card.

[0160] As shown in Figure 10(d), a foldable personal computer is displayed in single-screen mode with the physical keyboard obstructing the view. Upon the user stopping the swipe operation, the switch is successful, and display area 1 can fully display the weather card, facilitating user interaction with the weather card.

[0161] The above describes the interface switching when the user command meets preset conditions. Of course, there are also cases where the user command does not meet the preset conditions. In cases where the user command does not meet the preset conditions, there are multiple display methods available.

[0162] In one implementation, if the sliding distance is less than the trigger threshold, meaning the sliding distance is outside the range, it falls under the category of a situation where the user command does not meet the preset conditions. Figure 11 shows a schematic diagram of one display method, using a foldable personal computer as an example.

[0163] As shown in Figure 11(a), when the folded PC is obstructed and in single-screen mode, the display area 2 where the desktop 1C area is located is obstructed. The folded PC includes the display area 1 where the desktop 1B area is located and the obstructed area. The obstructed area can be a physical object, or it can be obstructed by a virtual keyboard, virtual window, etc. The user can execute user commands within the display area 1 where the desktop 1B area is located, such as a sliding operation. The movable range includes a first part and a second part of the movable range.

[0164] As shown in Figure 11(b), in response to the user's upward swipe, the desktop 1 moves upward a distance of 2. This distance of 2 is less than a trigger threshold, which can be 1 / 2 or 1 / 3 of the dimension of area C of desktop 1 along the y-axis. The trigger threshold can be preset by the system or defined by the user; this embodiment does not limit the specific value of the trigger threshold. In other words, when the desktop 1 moves upward a distance of 2, the user command does not meet the preset conditions.

[0165] As shown in Figure 11(c), in response to the user stopping the upward swiping operation, the desktop 1B area bounces back, that is, the desktop 1B area of ​​the folded personal computer can be fully displayed in display area 1, but the desktop 1C area is still obscured.

[0166] For example, taking physical object occlusion as an example, Figure 12 shows a schematic diagram of a display method.

[0167] As shown in Figure 12(a), a foldable personal computer in single-screen mode with the physical keyboard obstructing the view is illustrated. The screen consists of an upper half and a lower half, where the upper half can be understood as display area 1 and the lower half as display area 2. Display area 1 displays work elements including the clock application icon and calendar cards; display area 2 is obstructed by the physical keyboard and cannot be displayed.

[0168] As shown in Figure 12(b), a foldable personal computer in single-screen mode with physical obstruction is displayed. The user slides a four-finger across display area 1 a certain distance, and if the sliding distance is less than a trigger threshold (i.e., the user's command does not meet the preset conditions), the work element moves with the user's sliding action. Compared to Figure 12(a), the work element only moves upwards a small distance; Figure 12(b) can display part of the weather card.

[0169] As shown in Figure 12(c), a foldable PC is displayed in single-screen mode with the physical keyboard obscuring the view. In response to the user ceasing the swiping action, the clock application icon and calendar card previously displayed in display area 1 bounce back, the interface does not switch, and display area 1 still displays the original working elements: the clock application icon and calendar card.

[0170] Understandably, the above description allows the interface to bounce back when the user's swipe distance is less than the trigger threshold, meaning the display returns to its original state when the user stops swiping. However, since the work element can move with the user's swipe, if the swipe distance is less than the trigger threshold, the work element will stop moving and will not bounce back; it will remain displayed at its current position.

[0171] In another implementation, the sliding distance is greater than the dimension along the y-axis of the first or second part of the movable range, meaning the sliding distance is outside the range, which is another case where the user command does not meet the preset conditions. Figure 13 shows a schematic diagram of one display method, taking a foldable personal computer as an example.

[0172] As shown in Figure 13(a), when the folded PC is obstructed and in single-screen mode, the display area 2 where the desktop 1C area is located is obstructed. The folded PC includes the display area 1 where the desktop 1B area is located and the obstructed area. The obstructed area can be a physical object, or it can be obstructed by a virtual keyboard, virtual window, etc. The user can execute user commands in the display area 1 where the desktop 1B area is located, such as a sliding operation. The movable range includes a first part and a second part of the movable range.

[0173] As shown in Figure 13(b), in response to the user's upward swipe, the desktop 1 moves upward a distance of 3. This distance 3 is greater than the dimension of the first portion of the movable range along the y-axis, meaning the upper edge of area B of the desktop 1 exceeds the upper edge of the first portion of the movable range. Since the user's upward swipe causes the desktop 1 to move upward a distance of 3, this user command does not meet the preset conditions.

[0174] As shown in Figure 13(c), in response to the user stopping the upward swiping operation, the desktop 1B area bounces back, that is, the desktop 1B area of ​​the folded personal computer can be fully displayed in display area 1, but the desktop 1C area is still obscured.

[0175] For example, taking physical object occlusion as an example, Figure 14 shows a schematic diagram of a display method.

[0176] As shown in Figure 14(a), a foldable personal computer in single-screen mode with the physical keyboard obstructing the view is illustrated. The screen comprises an upper half and a lower half. The upper half can be understood as display area 1, and the lower half as display area 2. Display area 1 displays work elements including the clock application icon and calendar cards; display area 2 is obstructed by the physical keyboard and cannot display anything.

[0177] As shown in Figure 14(b), a foldable personal computer in single-screen mode with physical obstruction is illustrated. The user slides a four-finger across display area 1 a certain distance, and this distance exceeds the dimension of the first portion of the movable range along the y-axis, indicating that the user's command does not meet the preset conditions. The work element moves with the user's sliding action. Compared to Figure 14(a), the work element has moved upwards by a larger distance; in Figure 14(b), there is no work element to display.

[0178] As shown in Figure 14(c), a foldable PC is displayed in single-screen mode with the physical keyboard obscured. In response to the user ceasing the swiping operation, the clock application icon and calendar card previously displayed in display area 1 bounce back, the interface does not switch, and display area 1 still displays the original working elements: the clock application icon and calendar card.

[0179] Understandably, the above description allows the interface to bounce back when the user's swipe distance exceeds the y-axis dimension of the first or second movable range. That is, when the user stops swiping, the display returns to its original state. However, since the work element can move with the user's swipe, if the user stops swiping when the swipe distance exceeds the y-axis dimension of the first or second movable range, the work element will stop moving and will not bounce back; it will remain displayed at its current position.

[0180] When the sliding distance exceeds the dimension of the first or second portion of the movable range along the y-axis, one display method, namely interface bounce, was described above. Below, with reference to the accompanying drawings, two different display methods are illustrated under the same conditions.

[0181] In one implementation, the backup desktop is displayed when the user commands the user to stop.

[0182] Figure 15 shows a schematic diagram of a desktop backup.

[0183] Figure 15(a) shows a schematic diagram of a desktop 1. When the folded personal computer is in a hovering state, desktop 1 can be divided into two interfaces: desktop 1B and desktop 1C.

[0184] Figure 15(b) illustrates a schematic diagram of a desktop 1'. When the folded PC is in a hovering state, desktop 1' can be divided into two interfaces: desktop 1'B and desktop 1'C. Desktop 1' is a backup desktop of desktop 1, and the content included in both desktops is the same.

[0185] Figure 16 shows a schematic diagram of a display method, taking a foldable personal computer as an example.

[0186] As shown in Figure 16(a), when the folded PC is in single-screen mode with obstructions, the display area 2 where the desktop 1C area is located is obstructed. The folded PC includes the display area 1 where the desktop 1B area is located and the obstructed area. The obstructed area can be a physical object, or it can be obstructed by a virtual keyboard, virtual window, etc. The user can execute user commands within the display area 1 where the desktop 1B area is located, such as a sliding operation. The movable range includes a first part and a second part of the movable range.

[0187] As shown in Figure 16(b), in response to the user's upward swipe, desktop 1 moves upward a distance of 4. This distance 4 is greater than the dimension of the first portion of the movable range along the y-axis, meaning the upper edge of desktop 1B exceeds the upper edge of the first portion of the movable range. As the user swipes upward, desktop 1 moves upward a distance of 4, and desktop 1' also moves upward, displaying a portion of desktop 1'.

[0188] As shown in Figure 16(c), in response to the user stopping the upward swipe, display area 1 displays desktop 1'B. Since desktop 1' is a backup desktop of desktop 1, the specific content included in desktop 1'B is the same as that included in desktop 1B. From the overall effect, in response to the user stopping the upward swipe, display area 1 can display desktop 1B.

[0189] For example, taking physical object occlusion as an example, Figure 17 shows a schematic diagram of a display method.

[0190] As shown in Figure 17(a), a foldable personal computer in single-screen mode with the physical keyboard obstructing the view is illustrated. The screen consists of an upper half and a lower half. The upper half can be understood as display area 1, and the lower half as display area 2. Display area 1 displays work elements including the clock application icon and calendar cards; display area 2 is obstructed by the physical keyboard and cannot be displayed.

[0191] As shown in Figure 17(b), a foldable personal computer in single-screen mode with physical obstruction is illustrated. The user slides a four-finger across display area 1 a certain distance, and this distance exceeds the dimension of the first portion of the movable range along the y-axis, indicating that the user's command does not meet the preset conditions. The working element moves accordingly with the user's slide. Compared to Figure 17(a), the working element has moved upwards by a larger distance. The clock application icon shown in Figure 17(b) is the same as the icon for the clock application on the backup desktop.

[0192] As shown in Figure 17(c), a foldable PC is displayed in single-screen mode with the physical keyboard obscuring the view. In response to the user stopping the swiping action, the backup desktop 1'B area is displayed. The backup desktop 1'B area displays the same working elements as the original desktop 1B area, including the clock application icon and everyday cards.

[0193] As can be seen, in this situation, when the user stops sliding, the display area 1 of the folded PC switches from desktop 1B area to desktop 1'B area, but the actual displayed work elements remain unchanged.

[0194] In another implementation, desktop switching is achieved in response to user commands.

[0195] Figure 18 shows a schematic diagram of a desktop.

[0196] Figure 18(a) shows a schematic diagram of a desktop 1. When the folded personal computer is in a hovering state, desktop 1 can be divided into two interfaces: desktop 1B and desktop 1C.

[0197] Figure 18(b) shows a schematic diagram of a desktop 2. When the folded PC is in a hovering state, desktop 2 can be divided into two interfaces: desktop 2B and desktop 2C. The working elements included in desktop 1 and desktop 2 can be different.

[0198] Figure 19 shows a schematic diagram of a display method, taking a foldable personal computer as an example.

[0199] As shown in Figure 19(a), when the folded PC is in single-screen mode with some obstruction, the display area 2 where desktop 1C is located is obstructed. The folded PC includes the display area 1 where desktop 1B is located and the obstructed area. The obstructed area can be a physical object, or it can be obstructed by a virtual keyboard, virtual window, etc. The user can execute user commands within the display area 1 where desktop 1B is located, such as a sliding operation. The movable range includes a first part and a second part of the movable range.

[0200] As shown in Figure 19(b), in response to the user's upward swipe, desktop 1 moves upward a distance of 5. This distance 5 is greater than the dimension of the first portion of the movable range along the y-axis, meaning the upper edge of area B of desktop 1 extends beyond the upper edge of the first portion of the movable range. As the user swipes upward, desktop 1 moves upward a distance of 5, and desktop 2 also moves upward, displaying a portion of desktop 2.

[0201] As shown in Figure 19(c), in response to the user stopping the upward swipe, desktop area 2B is displayed in display area 1. That is, in response to the user's upward swipe, switching between different desktops can be achieved.

[0202] For example, taking physical object occlusion as an example, Figure 20 shows a schematic diagram of a display method.

[0203] Figure 20(a) shows a schematic diagram of desktop 1. The working elements on desktop 1 include an icon for the clock application, a calendar card, and a weather card.

[0204] Figure 20(b) shows a schematic diagram of desktop 2. The working elements on desktop 2 include icons for the weather application and the music application.

[0205] As shown in Figure 20(c), a personal computer in single-screen mode with the physical keyboard obscuring the view is illustrated. The screen consists of an upper half and a lower half. The upper half can be understood as display area 1, and the lower half as display area 2. Display area 1 displays elements including the clock application icon and calendar cards; display area 2 is obscured by the physical keyboard and cannot be displayed. That is, the upper half of the screen displays the upper half of desktop 1 as shown in Figure 20(a), including the work elements: the clock application icon and calendar cards.

[0206] As shown in Figure 20(d), a foldable personal computer is displayed in single-screen mode with the physical keyboard obscuring the view. The user slides four fingers a certain distance in display area 1, and this distance exceeds the dimension of the first portion of the movable range along the y-axis, indicating that the user's command does not meet the preset conditions. The work element moves with the user's sliding operation. Compared to Figure 20(c), the work element has moved upwards by a larger distance; in Figure 20(c), there are no work elements to display.

[0207] As shown in Figure 20(e), a personal computer in single-screen mode with the physical keyboard obscured is displayed. In response to the user stopping the swiping action, desktop area 2B is displayed, including work elements such as the icons for the Calendar application, the Gallery application, and the Notes application.

[0208] As can be seen, in this situation, when the user stops sliding, the display area 1 of the folded PC switches from desktop 1B area to desktop 2B area, which can realize the switching of different display areas on different desktops.

[0209] As described above in Figures 9 and 10, when the user's command meets the preset conditions, different interfaces on the same desktop can be switched in the display area 1 of the folded personal computer. Furthermore, it is also possible to switch back to the original interface; two methods for switching back to the original interface are described below.

[0210] In one implementation, as shown in Figure 21, a schematic diagram of a display method is illustrated using a foldable personal computer as an example.

[0211] As shown in Figure 21(a), when the folded personal computer is obscured and in single-screen mode, the unobstructed area (display area 1) displays desktop area 1C, while desktop area 1B is not displayed.

[0212] As shown in Figure 21(b), in response to the user's downward swipe, the entire desktop 1 moves downward a distance of 6. This distance 5 is greater than or equal to a trigger threshold, and less than or equal to the dimension of the second portion of the movable range along the y-axis. The trigger threshold can be 1 / 2 or 1 / 3 of the dimension of the desktop 1B area along the y-axis. The trigger threshold can be preset by the system or defined by the user; this embodiment does not limit the specific value of the trigger threshold. In other words, the entire desktop 1 moves downward greater than or equal to the trigger threshold, but the desktop 1C area does not exceed the lower boundary of the movable range.

[0213] As shown in Figure 21(c), the switch is successful in response to the user stopping the downward swipe. Folding the PC will display desktop area 1B.

[0214] As can be seen, in response to user commands that meet preset conditions, the display area 1 of the foldable personal computer can be switched from displaying desktop area 1B to displaying desktop area 1C, and it also supports switching back from displaying desktop area 1C to desktop area 1B.

[0215] For example, taking physical object occlusion as an example, Figure 22 shows a schematic diagram of a display method.

[0216] As shown in Figure 22(a), a foldable personal computer in single-screen mode with the physical keyboard obstructing the view is illustrated. The screen comprises an upper half and a lower half. The upper half can be understood as display area 1, and the lower half as display area 2. Display area 1 displays work elements including a weather card; display area 2 is obstructed by the physical keyboard and cannot display anything.

[0217] As shown in Figure 22(b), a foldable personal computer in single-screen mode with physical obstruction is illustrated. The user slides four fingers a certain distance in display area 1, and the sliding distance is within a certain range, meaning the user's command meets preset conditions. The work elements move with the user's sliding operation. Compared to Figure 22(a), the weather card moves downwards; Figure 22(b) can display both the calendar card and part of the weather card.

[0218] As shown in Figure 22(c), a foldable PC in single-screen mode with physical obstruction is illustrated. Upon the user ceasing the swipe operation, the switch is successful, and display area 1 shows the clock application icon and calendar card.

[0219] In another implementation, as shown in Figure 23, a schematic diagram of a display method is illustrated using a foldable personal computer as an example.

[0220] As shown in Figure 23(a), when the folded personal computer is obstructed and in single-screen mode, display area 1 shows desktop area 1C, while desktop area 1B is not displayed.

[0221] As shown in Figure 23(b), in response to the removal of the obstruction, when the folded PC is unobstructed and in a hovering state, along the k-axis, display area 1 shows desktop area 1B, and display area 2 shows desktop area 1C. That is, in response to the removal of the obstruction, desktop area 1B springs back, and desktop 1 can be fully displayed on the folded PC screen. Alternatively, it can be understood that in response to the removal of the obstruction, display area 1 switches from displaying desktop area 1C to displaying desktop area 1B.

[0222] For example, taking physical occlusion as an example, Figure 24 shows a schematic diagram of a display method.

[0223] As shown in Figure 24(a), a foldable personal computer in single-screen mode with the physical keyboard obstructing the view is illustrated. The screen comprises an upper half and a lower half. The upper half can be understood as display area 1, and the lower half as display area 2. Display area 1 displays work elements including a weather card; display area 2 is obstructed by the physical keyboard and cannot display anything.

[0224] As shown in Figure 24(b), the foldable PC is in a hovering state after the obstruction is removed. Compared to Figure 24(a), the weather card is displayed in display area 2, and the foldable PC can fully display the work elements on the desktop, including the clock application icon, commission card, and weather card.

[0225] It is easy to understand that the display method described above is based on the example of a foldable personal computer with vertical partitioning. For example, Figure 25 shows a schematic diagram of a partitioning method using horizontal partitioning as an example.

[0226] As shown in Figure 25(a), the folded PC can fully display the desktop 1 in full-screen mode.

[0227] As shown in Figure 25(b), when the foldable PC is in a hovering state, on the one hand, the foldable PC divides desktop 1 into two interfaces, desktop 1B and desktop 1C, along the k-axis, dividing the screen of the foldable PC into two display areas. Different display areas are used to display different parts of the desktop (i.e., desktop 1B and desktop 1C interfaces). Desktop 1B displays the area designated as display area 1, and desktop 1C displays the area designated as display area 2. On the other hand, a movable range is set as shown by the red dotted line in the figure. The movable range includes a first part and a second part. The size of the first part of the movable range is related to the size of desktop 1B (i.e., the size of display area 1), and the size of the second part of the movable range is related to the size of desktop 1C (i.e., the size of display area 2). In short, the size of the first part of the movable range along the x-axis is the same as or within the same tolerance range as the size of desktop 1B along the x-axis; the size of the second part of the movable range along the x-axis is the same as or within the same tolerance range as the size of desktop 1C along the x-axis.

[0228] It is understandable that when the display area is obscured in the left and right partitions, the interface can still be switched in response to user commands. The specific display method is as described above and will not be repeated here.

[0229] Figure 26 shows a schematic flowchart of a display method provided in an embodiment of this application. This method can be applied to electronic devices. The method will be described in detail below.

[0230] S2601, control the first display area to display the first interface and control the second display area to display the second interface.

[0231] For example, an electronic device may include a first display area and a second display area.

[0232] For example, the electronic device is a foldable electronic device, such as a foldable personal computer. The physical screen of the foldable electronic device is divided into a first display area and a second display area along the folding axis.

[0233] For example, referring to the hovering state of the folding personal computer shown in Figure 4(b), the physical screen of the folding personal computer is divided into screen 401 and screen 402 along the k-axis, where screen 401 is the first display area and screen 402 is the second display area.

[0234] For example, the first interface and the second interface belong to the same desktop.

[0235] For example, referring to Figure 8(b), the first interface can be desktop 1B area, the second interface can be desktop 1C area, and the first interface and the second interface belong to desktop 1.

[0236] It is understood that the first display area is the display area 1 described in the above embodiment, and the second display area is the display area 2 described in the above embodiment.

[0237] S2602, in response to detecting that at least a portion of the second display area is obscured and detecting a first input from the user in the first display area, the first display area is controlled to switch from displaying a first interface to displaying a second interface.

[0238] For example, referring to Figure 9(b), the folded personal computer is obstructed, and the display area 2 where the desktop 1C area is located is obstructed. That is, at least a portion of the second display area is obstructed.

[0239] The occlusion of at least a portion of the second display area can be understood as the occlusion of at least some of the working elements in the second display area, preventing the user from interacting with these working elements.

[0240] Alternatively, the obstruction can be made with a physical object, or with a virtual keyboard, virtual window, etc.

[0241] For example, the first input can be a swipe, an air gesture, or a shortcut.

[0242] For example, referring to (c) and (d) in Figure 9, when the display area 2 is obscured and the user slides upward in the display area 1, the desktop 1 moves upward as a whole, and the display area 1 switches from displaying desktop 1B area to displaying desktop 1C area.

[0243] It is understandable that the first screen will have a certain dynamic display effect based on the user's first input.

[0244] For example, based on the first input, the fade-out effect of the first interface is controlled to be displayed in the first display area.

[0245] For example, referring to (c) in Figure 10, the user slides four fingers in display area 1, and the calendar card moves upward as the user slides four fingers.

[0246] Of course, you can switch back to the original interface within the first display area.

[0247] For example, in response to detecting a second input from the user in the first display area, the first display area is controlled to switch from displaying a second interface to displaying a first interface.

[0248] Optionally, the second input can be a swipe operation in the opposite direction to the first input. Referring to Figure 22, the user swipes four fingers in display area 1. As the user swipes four fingers, the weather card moves downwards, and the display area 1 switches from displaying the weather card back to displaying the calendar card and the clock application icon.

[0249] For example, in response to removing the obstruction of the second display area, the first display area is controlled to switch from displaying the second interface to displaying the first interface.

[0250] Optionally, removing the obstruction of the second display area can be done by removing the obstruction of the physical keyboard, or by removing the obstruction of the virtual window and virtual keyboard. Referring to Figure 24, after the user removes the physical keyboard obstructing display area 2, display area 1 switches back from displaying the weather card to displaying the calendar card and clock application icon, and display area 2 is no longer obstructed and can also display the weather card. That is, after removing the obstruction, the electronic device can fully display the desktop.

[0251] It is understandable that the aforementioned first input is the operation that triggers the switching of the first interface to the second interface within the first display area. To further improve the accuracy of triggering the interface switching, the first input needs to meet certain preset conditions.

[0252] For example, if the first distance corresponding to the first input is within a preset distance range, the first display area is controlled to display the fade-out effect of the first interface based on the first input.

[0253] The first distance corresponding to the first input can be understood as the distance the first interface moves in response to the first input, or the distance the first interface fades out.

[0254] For example, referring to Figure 8(b), the preset distance range can be a range greater than or equal to the trigger threshold and less than or equal to the size of the first part of the movable range along the y-axis. Based on the first input, the desktop 1B area moves within the movable range. The movable range includes a first part and a second part, wherein the size of the first part of the movable range is related to the size of the desktop 1B area (the size of display area 1), and the size of the second part of the movable range is related to the size of the desktop 1C area (the size of display area 2). If the distance moved by the desktop 1B area based on the first input is greater than or equal to the trigger threshold and less than or equal to the size of the first part of the movable range along the y-axis, it indicates that the first input meets the preset conditions, and the user currently intends to switch the display interface. In this case, the user ends the first input, and the first display area switches from displaying the first interface to displaying the second interface, thus completing the switching of the display interface.

[0255] Optionally, if the user input does not meet the preset conditions, there are also multiple display methods.

[0256] In one implementation, if the distance entered by the user is outside the preset distance range, the first display area is controlled to gradually expand the first interface by a certain distance before bouncing back, based on the user's input. After the user finishes inputting, the first display area continues to display the first interface.

[0257] Optionally, if the distance entered by the user is not within the preset distance range, it means that the distance of the first interface fades out is not within the preset distance range, including: the distance of the first interface fades out is less than the trigger preset value, or the distance of the first interface fades out is greater than the dimension of the first part of the movable range along the y-axis.

[0258] For example, see Figures 11 and 13.

[0259] In one implementation, the first interface and the second interface belong to the first desktop. A third input is obtained; if the second distance corresponding to the third input is greater than the maximum value within a preset distance range, based on the third input, the first display area is controlled to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the third interface, with the third interface being the same as the first interface.

[0260] In other words, based on the user's third input, the distance at which the first display area displays the first interface fades out is greater than the size of the first portion of the movable range along the y-axis. As the first interface fades out, the third interface also dynamically displays. When the user's third input ends, the first display area switches from displaying the first interface to displaying the third interface. The third interface can be a backup desktop of the first desktop, and the content displayed on the third interface can be consistent with the content displayed on the first interface.

[0261] For example, refer to the content shown in Figure 16. The third interface can be the desktop area 1'B.

[0262] In one implementation, the first interface and the second interface belong to the first desktop. A fourth input is obtained; if the third distance corresponding to the fourth input is greater than the maximum value within a preset distance range, based on the fourth input, the first display area is controlled to sequentially display the fade-out effect of the first interface, the fade-in effect of the second interface, the fade-out effect of the second interface, and the fade-in effect of the fourth interface. The fourth interface belongs to the second desktop, and the first desktop is different from the second desktop.

[0263] In other words, based on the user's fourth input, the distance at which the first display area displays the first interface fades out is greater than the first portion of the movable range along the y-axis, and as the first interface fades out, the fourth interface also has a dynamic display effect. When the user's fourth input ends, the first display area switches from displaying the first interface to displaying the fourth interface. The fourth interface is a second desktop, different from the first desktop, and the content displayed on the fourth interface is different from the content displayed on the first interface.

[0264] For example, refer to the content shown in Figure 19. The fourth desktop can be desktop area 2B.

[0265] The display method provided in this application can be applied to foldable electronic devices. When the foldable electronic device is in a hovering state, it can be divided into two display areas according to the folding axis. If all or part of one of the display areas is obscured, the interface corresponding to the obscured display area can be moved to the unobscured display area according to user instructions, facilitating user interaction and improving the user experience.

[0266] The display method according to embodiments of this application has been described above. The apparatus and device according to embodiments of this application are described below with reference to Figures 27 and 28. It should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments; therefore, any parts not described in detail can be referred to the foregoing method embodiments.

[0267] Figure 27 is a structural example diagram of a display device 2700 provided in an embodiment of this application. This display device 2700 may possess the functions of the electronic device (foldable electronic device, foldable personal computer) in the above method embodiments, and can be used to execute the steps performed by the functions of the electronic device in the above method embodiments. This function can be implemented by hardware, or by software or hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0268] In one possible implementation, the display device 2700 includes a transceiver module 2710 and a processing module 2720. The transceiver module 2710 and the processing module 2720 are coupled to each other. The processing module 2720 is used to perform processing operations in the electronic device, including performing some or all of the steps in the method of FIG26.

[0269] Figure 28 illustrates an electronic device 2800 provided in an embodiment of this application. As shown, the electronic device 2800 includes at least one processor 2810 and a transceiver 2820. The processor 2810 is coupled to a memory 2830 and is used to execute instructions stored in the memory to control the transceiver 2820 to transmit and / or receive signals.

[0270] In some embodiments, the processor 2810 and the memory 2830 can be combined into a single processing device, with the processor 2810 executing program code stored in the memory 2830 to achieve the aforementioned functions. Specifically, the memory 2830 can be integrated into the processor 2810 or independent of it.

[0271] In some embodiments, transceiver 2820 may include a receiver and a transmitter.

[0272] The transceiver 2820 may further include an antenna, and the number of antennas may be one or more. The transceiver 2820 may be a communication interface or an interface circuit.

[0273] This embodiment also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on a computer, the computer performs the aforementioned method steps to implement the display method in the above embodiment.

[0274] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the display method described in the above embodiment.

[0275] Furthermore, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. When the apparatus is a chip, the chip may include a connected processor and a memory. The memory stores computer execution instructions, and when the chip is running, the processor executes the computer execution instructions stored in the memory to cause the chip to perform the display methods described in the above-described method embodiments.

[0276] In one possible implementation, the chip implementing the display method provided in this application includes a transceiver module and a processing module. The transceiver module can be an input / output circuit or a communication interface; the processing module can be a processor, microprocessor, or integrated circuit integrated on the chip.

[0277] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0278] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0279] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0280] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or split into more modules, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or modules may be electrical, mechanical, or other forms.

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

[0282] In addition, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module.

[0283] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, 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.) 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 USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0284] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology 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

A display method characterized by comprising: The method is applied to an electronic device including a first display area and a second display area, and the method includes: controlling the first display area to display a first interface and controlling the second display area to display a second interface; in response to detecting that at least part of the second display area is blocked and detecting a first input of a user at the first display area, controlling the first display area to switch from displaying the first interface to displaying the second interface. The method of claim 1, wherein The method further includes: based on the first input, controlling the first display area to display a fade-out effect of the first interface. The method according to claim 2, characterized in that The controlling, based on the first input, the first display area to display the fade-out effect of the first interface includes: in a case where a first distance corresponding to the first input is within a preset distance range, based on the first input, controlling the first display area to display the fade-out effect of the first interface. The method according to any one of claims 1 to 3, characterized in that The method further includes: in response to detecting a second input of a user at the first display area, controlling the first display area to switch from displaying the second interface to displaying the first interface. The method according to claim 4, characterized in that The first interface and the second interface belong to a first desktop, and the method includes: obtaining a third input; in a case where a second distance corresponding to the third input is greater than a maximum value within a preset distance range, based on the third input, controlling the first display area to display, in sequence, a fade-out effect of the first interface, a fade-in effect of the second interface, a fade-out effect of the second interface, and a fade-in effect of a third interface, the third interface being the same as the first interface. The method according to claim 4, characterized in that The first interface and the second interface belong to a first desktop, and the method further includes: obtaining a fourth input; in a case where a third distance corresponding to the fourth input is greater than a maximum value within a preset distance range, based on the fourth input, controlling the first display area to display, in sequence, a fade-out effect of the first interface, a fade-in effect of the second interface, a fade-out effect of the second interface, and a fade-in effect of a fourth interface, the fourth interface belonging to a second desktop, the first desktop being different from the second desktop. The method according to any one of claims 1 to 6, characterized in that The electronic device is a foldable electronic device, and a physical screen of the foldable electronic device is divided into the first display area and the second display area according to a folding axis. An electronic device, characterized by comprising: The electronic device includes: one or more processors; one or more memories; the one or more memories store one or more computer programs including instructions, which, when executed by the one or more processors, cause the electronic device to perform the method of any one of claims 1 to 7. A display device characterized by comprising: a processor coupled with a memory for storing a computer program, the processor being configured to execute the computer program to cause the display device to perform the method of any one of claims 1 to 7. A computer-readable storage medium, characterized by, a computer program stored thereon, which, when executed by a computer, causes the computer to implement the method of any one of claims 1 to 7. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, it causes the computer to perform the method of any one of claims 1 to 7. A chip characterized by The chip comprises a processor and a data interface, the processor reading instructions stored on a memory through the data interface to perform the method of any one of claims 1 to 7.