Application interface display method and related apparatus
By independently sensing and judging the horizontal screen hover state by the terminal device, and avoiding displaying content at the bend of the hinge, the problem of poor user experience in the horizontal screen hover state of the application interface in the existing technology is solved, and better user interactivity and stability.
Patent Information
- Application Number
- PCT/CN2024/078488
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-26
AI Technical Summary
When existing terminal devices are hovering in the horizontal screen, the application interface lacks adaptive capabilities, causing the interface to bend and affect the user's viewing and operating experience.
The horizontal screen hovering state is determined through autonomous sensing of the electronic device, the content of the target application is displayed avoiding the hinge bend, and the controls and related pages are displayed on a split screen to improve the user experience.
It effectively avoids the screen bending area, improves the user's viewing and operating experience of the application interface, and enhances the stability and ease of use of the device.
Smart Images

Figure CN2024078488_26092024_PF_FP
Abstract
Description
Application interface display method and related device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 20, 2023, with application number 202310312941.8 and application name “A method for displaying an application interface and related devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to an application interface display method and related devices. Background Art
[0003] With the continuous development of terminal screen manufacturing technology in terminal technology, more and more foldable screen electronic devices have emerged. Electronic devices with foldable screens have an unfolded state, a hovering state, and a folded state.
[0004] Currently, when an electronic device with a foldable screen is in a horizontal hovering state, most applications (APPs) do not have the ability to adapt to the horizontal hovering state to display the application interface. The application interfaces of these applications are bent due to the folding curvature of the screen, affecting the user's viewing and / or operation of the content in the bent area of the application interface, resulting in a poor user experience.
[0005] Summary of the Invention
[0006] The present application provides an application interface display method and related devices to improve user experience.
[0007] In a first aspect, the present application provides an application interface display method, which can be executed by an electronic device, or the method can also be executed by a component configured in the electronic device (such as a chip, chip system, etc.), or can also be implemented by a logic module or software that can realize all or part of the functions of the electronic device, which is not limited by the present application. The electronic device has one or more applications installed.
[0008] Exemplarily, the method includes: entering a horizontal screen hover state in response to a user operation; obtaining a first display content of a target application, where the target application is an application running in the foreground, and the first display content is part or all of the content in the interface of the target application before the electronic device enters the horizontal screen hover state; displaying the first display content in a first area of the screen, where the first area is an area of the screen above the center line of the hinge in the horizontal screen hover state, and the hinge is used to control the opening and closing of the screen.
[0009] Based on the above solution, the electronic device autonomously senses and determines whether the electronic device is in a horizontal screen hovering state. In the horizontal screen hovering state, the electronic device displays the first display content of the target application avoiding the hinge bend, thereby not affecting the user's viewing and operation, and improving the user experience.
[0010] In combination with the first aspect, in some possible implementations, the first display content is part of the content in the interface of the target application before entering the horizontal screen hover state, and the interface also includes controls for controlling the first display content and / or related pages of the first display content.
[0011] In combination with the first aspect, in some possible implementations, the method further includes: displaying a control in a second area of the screen, the second area being the area of the screen below the hinge in a horizontal screen hovering state; or, displaying a control or one of the related pages, and a page turning control in the second area of the screen, the page turning control being used to control switching between the control and the related page; or, displaying the related page in the second area of the screen and displaying the control in the first area of the screen.
[0012] The second area is the area below the hinge when the screen is in landscape mode. Controls displayed in this area avoid the hinge area, or the curved area of the screen. This not only minimizes the user's viewing experience of the application interface but also facilitates user control operations. Furthermore, when the second area of the electronic device is placed parallel to a table, operating controls displayed in this area prevents the device from tipping over, further enhancing the user experience.
[0013] In combination with the first aspect, in some possible implementations, the target application includes: an application for playing videos, an application for taking photos or videos, or an application for online meetings.
[0014] For example, an application used to play videos is the target application. In the video playing scenario, the first display content is the video screen. The controls used to control the first display content include video controls, such as but not limited to controls for pausing / playing videos, progress bar controls, speed playback controls, etc.; the related pages of the first display content include but are not limited to the details page of the video screen, etc.
[0015] For another example, an application used for taking photos or videos is the target application. In the photo or video shooting scenario, the first display content is the picture captured by the camera, and the controls used to control the first display content include but are not limited to photo controls, video controls, focus adjustment controls, etc.; the related pages of the first display content include but are not limited to photo templates, video templates, etc.
[0016] For another example, an application used for online meetings is the target application. In the online meeting scenario, the first display content is the meeting screen (for example, including but not limited to the desktop sharing screen, etc.), and the controls of the first display content include brush controls, screen recording controls, controls for zooming in / out the meeting window, etc.; the related pages of the first display content include but are not limited to the meeting chat window, etc.
[0017] In combination with the first aspect, in some possible implementations, there are multiple applications running in the foreground, and the target application is the application that the user last operated before the electronic device enters the horizontal screen hovering state, and the operation is any operation except exiting the application; or, there are two applications displayed in split screen running in the foreground, and the target application is the application of the two applications that is located in the first area when the electronic device enters the horizontal screen hovering state.
[0018] In combination with the first aspect, in some possible implementations, the interface is an interface in a preset list, and the preset list includes an interface identifier and an application identifier corresponding to the interface identifier.
[0019] In combination with the first aspect, in some possible implementations, the method also includes: when it is detected that the electronic device is in landscape mode and the angle between the first screen and the second screen is within a preset range, determining that the electronic device is in a landscape hovering state, and the first screen and the second screen are screens on both sides of the hinge.
[0020] In combination with the first aspect, in some possible implementations, before displaying the first display content in the first area of the screen, the method also includes: when the electronic device is in a horizontal screen hovering state and it is detected that the automatic rotation function of the electronic device is turned off, turning on the automatic rotation function.
[0021] In combination with the first aspect, in some possible implementations, after displaying the first display content in the first area of the screen, the method also includes: turning off the automatic rotation function when it is detected that the electronic device exits the horizontal screen hovering state, or in response to the user's turning off operation of the automatic rotation function.
[0022] In a second aspect, the present application provides an electronic device that can be used to implement the method described in the first aspect and any possible implementation of the first aspect. The electronic device includes corresponding modules for performing the method described above. The modules included in the electronic device can be implemented in software and / or hardware.
[0023] In a third aspect, the present application provides an electronic device comprising at least one processor and at least one communication interface. The processor is coupled to the communication interface and can be configured to execute a computer program to implement the application interface display method of the first aspect and any possible implementation of the first aspect.
[0024] Optionally, the electronic device further includes a memory, and the processor is coupled to the memory.
[0025] In a fourth aspect, the present application provides a chip system comprising at least one processor for supporting the implementation of the functions involved in the above-mentioned first aspect and any possible implementation of the first aspect, for example, processing the data involved in the above-mentioned method.
[0026] In one possible design, the chip system also includes a memory, which is used to store program instructions and data. The memory is located inside or outside the processor.
[0027] The chip system can be composed of chips, or can include chips and other discrete devices.
[0028] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program (also referred to as code or instructions) is stored. When the computer program is run by a computer, the method in the above-mentioned first aspect and any possible implementation of the first aspect is executed.
[0029] In a sixth aspect, a computer program product is provided, comprising: a computer program (also referred to as code or instructions), which, when executed, causes the method of the first aspect and any possible implementation of the first aspect to be executed.
[0030] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is a schematic structural diagram of an electronic device applicable to the application interface display method provided in an embodiment of the present application;
[0032] FIG2 is a side view of an electronic device applicable to the application interface display method provided in an embodiment of the present application;
[0033] FIG3 is a schematic diagram of different states of an electronic device applicable to the application interface display method provided in an embodiment of the present application;
[0034] FIG4 is a schematic flow chart of an application interface display method provided in an embodiment of the present application;
[0035] FIG5 is a schematic diagram of a scenario for determining a target application according to an embodiment of the present application;
[0036] FIG6 is a schematic diagram of another scenario for determining a target application provided by an embodiment of the present application;
[0037] FIG7 is a schematic diagram of a first area and a second area applicable to the application interface display method provided in an embodiment of the present application;
[0038] FIG8 is a schematic diagram of an interface before an electronic device enters a horizontal screen hovering state, applicable to the application interface display method provided in an embodiment of the present application;
[0039] FIG9 is a schematic diagram of an interface after an electronic device enters a horizontal screen hovering state, applicable to the application interface display method provided in an embodiment of the present application;
[0040] FIG10 is another schematic diagram of the first area and the second area of the application interface display method provided in an embodiment of the present application;
[0041] FIG11 is another schematic diagram of the first area and the second area of the application interface display method provided in an embodiment of the present application;
[0042] FIG12 is another schematic diagram of the first area and the second area of the application interface display method provided in an embodiment of the present application;
[0043] FIG13 is another schematic flowchart of the application interface display method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solution in this application will be described below with reference to the accompanying drawings.
[0045] First, in the embodiments of this application, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first display content and the second display content are intended to distinguish different display contents and do not limit their order. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0046] Second, in the embodiments of the present application, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a device, system, product or equipment that includes a series of modules, modules or units is not necessarily limited to those modules, modules or units clearly listed, but may include other modules, modules or units that are not clearly listed or inherent to these devices, systems, products or equipment.
[0047] Third, in the embodiments of this application, "and / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects are in an "or" relationship, but it does not exclude the possibility of indicating an "and" relationship between the associated objects. The specific meaning of the symbol should be understood in the context.
[0048] Fourth, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0049] Before describing in detail the application interface display method provided in the embodiment of the present application, an electronic device applicable to the embodiment of the present application is first exemplarily described with reference to FIG1 .
[0050] The application interface display method provided in the embodiment of the present application can be applied to electronic devices with foldable screens, such as foldable mobile phones, etc. The embodiment of the present application does not impose any limitation on the specific type of electronic device.
[0051] In addition, the methods described in the embodiments of the present application can support operating systems such as Android operating system (Android OS), HarmonyOS, and OpenHarmony, but the embodiments of the present application do not impose any limitation on this.
[0052] FIG1 is a schematic structural diagram of an electronic device suitable for the application interface display method provided in an embodiment of the present application.
[0053] For example, FIG1 shows a schematic structural diagram of an electronic device 100. As shown in FIG1 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.
[0054] The processor 110 may include one or more processing units. For example, the processor 110 may include one or more of an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0055] The application processor outputs sound signals through the audio module 170 (such as the speaker 170A, etc.), or displays images or videos through the display screen 194.
[0056] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0057] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0058] The processor 110 can perform different operations to implement different functions by executing instructions. The instructions can be, for example, instructions pre-stored in the memory before the device leaves the factory, or instructions read from the APP after the user installs a new APP during use. This embodiment of the application does not impose any restrictions on this.
[0059] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface.
[0060] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as augmented reality (AR) devices, etc. It will be understood that the interface connection relationship between the modules illustrated in this application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0061] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.
[0062] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0063] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
[0064] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0065] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.
[0066] The wireless communication module 160 can provide wireless communication solutions for application 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) technology, infrared (IR) technology, etc.
[0067] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wide band code division multiple access (WCDMA), time-division code division multiple access (TD-CDMA), long term evolution (LTE), fifth generation (5G) communication system, BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a BeiDou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0068] Electronic device 100 can implement display functions using a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0069] Display screen 194 , also referred to as a screen, can be used to display images, videos, and the like. Display screen 194 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini LED (Mini LED), a micro LED (Micro LED), a micro-OLED (Micro-OLED), a quantum dot light-emitting diode (QLED), and the like. In some embodiments, electronic device 100 may include one or more display screens 194 .
[0070] It should be understood that the display screen 194 may also include additional components, such as a backlight panel and a driver circuit. The backlight panel may be used to provide a light source, and the display panel emits light based on the light provided by the backlight panel. The driver circuit may be used to control whether the liquid crystals in the liquid crystal layer are light-transmissive or light-impermeable.
[0071] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0072] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0073] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0074] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170 , such as the speaker 170A, the receiver 170B, the microphone 170C, and the headphone jack 170D, and the application processor.
[0075] It should be understood that the structure illustrated in this application does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0076] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture divides the software system of the electronic device 100 into several layers, each layer having a clear role and division of labor, and the layers communicate with each other through software interfaces. This application uses operating systems such as HarmonyOS, OpenHarmony, and Android with layered architectures as examples, but this should not limit the type of operating system of the electronic device used in the application interface display method provided in the embodiments of this application.
[0077] With the continuous development of terminal screen manufacturing technology in terminal technology, more and more foldable screen electronic devices have emerged. Electronic devices with foldable screens can have an unfolded state, a hovering state, and a folded state.
[0078] For ease of understanding, the different states of the electronic device with a foldable screen involved in this application are described below.
[0079] The following briefly describes different states of the electronic device with reference to FIG. 2 .
[0080] FIG2 is a side view of an electronic device suitable for the application interface display method provided in an embodiment of the present application.
[0081] For ease of description, the screens on both sides of the hinge of the screen are referred to as the first screen and the second screen respectively in this application. A hinge can be understood as a mechanical device used to connect two solid bodies and allow the two solid bodies to rotate relative to each other.
[0082] As shown in Figure 2, when the angle between the first screen and the second screen is less than or equal to the first angle threshold and greater than or equal to the second angle threshold, the electronic device is in a hovering state. When the angle between the first screen and the second screen is greater than the first angle threshold, the electronic device is in an unfolded state. When the angle between the first screen and the second screen is less than the second angle threshold, the electronic device is in a folded state.
[0083] It is understood that the values of the first angle threshold and the second angle threshold may vary for different models of foldable screen electronic devices, and this application does not limit the values of the first angle threshold and the second angle threshold. By way of example and not limitation, in some embodiments, the first angle threshold may be 140 degrees and the second angle threshold may be 25 degrees.
[0084] FIG3 is a schematic diagram of different states of an electronic device applicable to the application interface display method provided in an embodiment of the present application.
[0085] Electronic devices with foldable screens can have different states. For example, Figure 3a) shows the electronic device in a portrait-screen unfolded state; Figure 3b) shows the electronic device in a portrait-screen hovering state; Figure 3c) shows the electronic device in a portrait-screen folded state; Figure 3d) shows the electronic device in a landscape-screen unfolded state; Figure 3e) shows the electronic device in a landscape-screen hovering state; and Figure 3f) shows the electronic device in a landscape-screen folded state.
[0086] It should be understood that the dotted line portion shown in FIG. 3 represents the position of the hinge of the screen of the electronic device.
[0087] It can be understood that when the electronic device is in portrait mode and in a hovering state, the electronic device is in a portrait hovering state; when the electronic device is in landscape mode and in a hovering state, the electronic device is in a landscape hovering state.
[0088] Currently, when an electronic device with a foldable screen is in a horizontal hovering state, most applications (APPs) do not have the ability to adapt to the horizontal hovering state to display the application interface. The application interfaces of these applications are bent due to the folding curvature of the screen, affecting the user's viewing and / or operation of the content in the bent area of the application interface, resulting in a poor user experience.
[0089] In response to the above problems, the present application provides an application interface display method and related devices, in which the electronic device autonomously senses and determines whether the electronic device is in a horizontal screen hovering state. In the horizontal screen hovering state, the electronic device displays the first display content of the target application avoiding the hinge bend, thereby not affecting the user's viewing and operation, and improving the user experience.
[0090] In the embodiments of the present application, the applications involved include third-party applications and system applications.
[0091] The following describes the application interface display method provided by this application in conjunction with Figure 4.
[0092] FIG4 is a schematic flowchart of the application interface display method provided in an embodiment of the present application.
[0093] As shown in Figure 4, method 400 may include steps 410 to 430. The steps of method 400 may be performed by an electronic device, or the method 400 may be performed by a component (such as a chip, a chip system, etc.) configured in the electronic device, or may be implemented by a logic module or software that can implement all or part of the functions of the electronic device, which is not limited in this embodiment of the present application.
[0094] The electronic device may have the structure shown in FIG1 , which is not limited in the present embodiment.
[0095] Step 410: In response to user operation, enter the horizontal screen hovering state.
[0096] The electronic device can enter the horizontal screen hovering state in response to the user's screen rotation operation and / or screen angle adjustment operation (including screen folding operation or screen unfolding operation) of the electronic device.
[0097] For example, if the initial state of the electronic device is the vertical screen expanded state as shown in Figure 3 a), the electronic device can enter the horizontal screen expanded state as shown in Figure 3 d) in response to the user's screen rotation operation of the electronic device, and then enter the horizontal screen hovering state as shown in Figure 3 e) in response to the user's screen folding operation of the electronic device.
[0098] For another example, if the initial state of the electronic device is the vertical screen unfolded state as shown in FIG3 a), the electronic device can enter the vertical screen hovering state as shown in FIG3 b) in response to the user's screen folding operation of the electronic device, and then enter the horizontal screen hovering state as shown in FIG3 e) in response to the user's screen rotation operation of the electronic device.
[0099] For another example, if the initial state of the electronic device is the vertical screen folding state as shown in Figure 3 c), the electronic device can enter the vertical screen hovering state as shown in Figure 3 b) in response to the user's screen opening operation of the electronic device, and then enter the horizontal screen hovering state as shown in Figure 3 e) in response to the user's screen rotation operation of the electronic device.
[0100] It should be understood that in the embodiments of the present application, the initial state of the electronic device may include any state except the horizontal screen hovering state. The present application does not limit this, as long as the electronic device can enter the horizontal screen hovering state in response to the user's operation.
[0101] In some embodiments, method 400 also includes: when it is detected that the electronic device is in landscape mode and the angle between the first screen and the second screen is within a preset range, determining that the electronic device is in a landscape hovering state, and the first screen and the second screen are screens on both sides of the hinge.
[0102] In other words, the electronic device can autonomously sense and determine whether it is in a horizontal screen hovering state.
[0103] As an example and not a limitation, the electronic device can detect and determine whether it is in landscape mode based on a gyroscope sensor, and can also detect and determine whether the angle between the first screen and the second screen is within a preset range based on an angle sensor. When it detects that it is in landscape mode and the angle between the first screen and the second screen is within a preset range, the electronic device determines that it is in a landscape hovering state.
[0104] Step 420: Acquire the first display content of the target application.
[0105] The target application is an application running in the foreground of the electronic device. The first display content is part or all of the content in the interface of the target application before the electronic device enters the horizontal screen hovering state.
[0106] When the electronic device determines that it has entered the horizontal screen hovering state, it can obtain the first display content of the target application. The first display content is related to the type of the target application.
[0107] In some embodiments, the first display content is part of the content in the interface of the target application before entering the horizontal screen hover state, and the interface also includes controls for controlling the first display content and / or related pages of the first display content.
[0108] When the first displayed content is part of the target application's interface before the electronic device enters the horizontal hover state, the target application may be a predefined first category application. Furthermore, the target application's interface before entering the horizontal hover state also includes controls for controlling the first displayed content and / or pages related to the first displayed content.
[0109] Optionally, the target application may include, but is not limited to, an application for playing videos, an application for taking photos or videos, or an application for online meetings.
[0110] For example, an application used to play videos is the target application. In the video playing scenario, the first display content is the video screen. The controls used to control the first display content include video controls, such as but not limited to controls for pausing / playing videos, progress bar controls, speed playback controls, etc.; the related pages of the first display content include but are not limited to the details page of the video screen, etc.
[0111] For another example, an application used for taking photos or videos is the target application. In the photo or video shooting scenario, the first display content is the picture captured by the camera, and the controls used to control the first display content include but are not limited to photo controls, video controls, focus adjustment controls, etc.; the related pages of the first display content include but are not limited to photo templates, video templates, etc.
[0112] For another example, an application used for online meetings is the target application. In the online meeting scenario, the first display content is the meeting screen (for example, including but not limited to the desktop sharing screen, etc.), and the controls of the first display content include brush controls, screen recording controls, controls for zooming in / out the meeting window, etc.; the related pages of the first display content include but are not limited to the meeting chat window, etc.
[0113] In some embodiments, the target application is a preset second-category application, and the first displayed content is all the content in the interface of the target application before entering the horizontal screen hovering state.
[0114] Different from the first type of applications, when the target application is a second type of application, the first displayed content is part of the content in the interface of the target application before the electronic device enters the horizontal screen hovering state.
[0115] As an example and not a limitation, the second category of applications includes but is not limited to applications for navigation or sports and health applications.
[0116] The first category of applications and the second category of applications may be predefined application types.
[0117] Optionally, before an electronic device leaves the factory, a list of applications may be pre-deployed in the electronic device (for ease of description, this list of applications will be referred to as an application whitelist). This application whitelist may include the identifier of at least one application and the application type corresponding to each of the at least one application. This application list may support cloud updates. For example, the application whitelist may be updated as the version of the electronic device's operating system is updated, but this application is not limited to this.
[0118] Optionally, the operating system of the electronic device can provide a registration interface for applications. When a user uses the electronic device, during the application installation process, the application can call the registration interface to register the first or second category applications. This allows the electronic device to know which applications on the electronic device are first category applications, which applications are second category applications, and which applications are neither first category applications nor second category applications. This is equivalent to maintaining a set of application whitelists on the electronic device.
[0119] If an application in the application whitelist is running in the foreground of the electronic device, when the electronic device enters the horizontal screen hovering state, the application is the target application; if multiple applications in the application whitelist are running in the foreground of the electronic device, when the electronic device enters the horizontal screen hovering state, the electronic device can determine one application from these multiple applications as the target application based on the first preset condition.
[0120] Optionally, there are multiple applications running in the foreground, and the target application is the application that the user last operated before the electronic device enters the horizontal screen hovering state, and the operation is any operation except exiting the application.
[0121] That is, when multiple applications are running in the foreground of the electronic device, the first preset condition may include that the target application is the application that the user last operated before the electronic device enters the horizontal screen hovering state.
[0122] FIG5 is a schematic diagram of a scenario for determining a target application provided in an embodiment of the present application.
[0123] As shown in Figure 5, the electronic device has Application A, Application B, Application C, and Application D running in the foreground. Application A and Application B are two applications running in split-screen with the center line of the hinge (dashed area) as the split-screen dividing line, and Application C and Application D are two applications running in floating windows. For example, before the electronic device enters the horizontal hover state, if the user last operated on Application B, then when the electronic device enters the horizontal hover state, Application B will be the target application.
[0124] Optionally, two applications displayed in split screen are running in the foreground, and the target application is the application in the first area of the two applications when the electronic device enters the horizontal screen hovering state.
[0125] That is, when two applications are running in split-screen mode in the foreground of an electronic device, the first preset condition may include that the target application is an application located in a first area when the electronic device enters the horizontal hover state. The first area is the area of the electronic device's screen located above the centerline of the hinge in the horizontal hover state.
[0126] FIG6 is a schematic diagram of another scenario for determining a target application provided in an embodiment of the present application.
[0127] As shown in FIG6 a , the foreground of the electronic device runs application E and application F in a split-screen mode.
[0128] In an embodiment of the present application, when the electronic device is in a portrait hovering state and split screen, when the electronic device is rotated from a portrait hovering state or a portrait expanded state to a landscape hovering state, based on the rotation direction of the electronic device, the application in the area above the center line of the hinge after the electronic device is rotated is used as the target application.
[0129] For example, when the electronic device rotates to the right from the portrait hovering state as shown in FIG6 a) to the landscape hovering state as shown in FIG6 b), when the electronic device enters the landscape hovering state, application E is located in the first area, that is, application E is located in the area above the center line of the hinge, then application E is the target application.
[0130] For another example, when the electronic device rotates to the left from the portrait hovering state as shown in a) of FIG6 and enters the landscape hovering state as shown in c) of FIG6 , when the electronic device enters the landscape hovering state, application F is located in the first area, that is, application F is located in the area above the center line of the hinge, then application F is the target application.
[0131] In some embodiments, the interface is an interface in a preset list, and the preset list includes an interface identifier and an application identifier corresponding to the interface identifier.
[0132] Similar to the above-mentioned application whitelist, the preset list (for ease of description, the preset list is referred to as the application interface whitelist) can be pre-deployed before the electronic device leaves the factory, or it can be gradually formed by registering the application with the operating system of the electronic device when the application is installed.
[0133] Optionally, before an electronic device leaves the factory, an application interface whitelist may be pre-deployed in the electronic device. The application interface whitelist may include the interface identifier of at least one application interface and the application identifier of the application to which the at least one application interface belongs. The application interface whitelist may also include the type of application corresponding to the application identifier, such as the first category of applications and the second category of applications mentioned above. In this way, the application interface whitelist may include the first category of interfaces and the second category of interfaces, the first category of interfaces corresponding to the first category of applications, and the second category of interfaces corresponding to the second application. The application interface whitelist may support cloud updates. For example, the application interface whitelist may be updated as the version of the operating system of the electronic device is updated. This application is not limited to this.
[0134] Optionally, the operating system of the electronic device can provide a registration interface for the application, and the application can call the registration interface during the installation process to register the application interface, so that the electronic device can know which interfaces of which applications on the electronic device can be the interface that needs to display the first display content in the first area when the electronic device enters the horizontal hovering state (for the sake of convenience of description, this interface is recorded as an alternative interface).
[0135] By way of example and not limitation, in some embodiments, when an electronic device enters a horizontal hover state, the electronic device may determine whether the application interface is an alternative interface based on conditions such as the layout of the application interface and whether the application interface includes controls. If the application interface is determined to be an alternative interface, the electronic device may obtain the first display content in the alternative interface.
[0136] If, before the electronic device enters the horizontal screen hovering state, an application is running in the foreground of the electronic device, and the interface of the application belongs to the interface in the application interface whitelist, or the electronic device determines that the interface is an alternative interface, then when the electronic device enters the horizontal screen hovering state, the electronic device can obtain the first display content in the alternative interface; if the interface of the application does not belong to the interface in the application interface whitelist, or the electronic device determines that the interface is not an alternative interface, then when the electronic device enters the horizontal screen hovering state, the electronic device does not need to display the display content of the application away from the hinge bend.
[0137] If before the electronic device enters the horizontal screen hovering state, multiple applications are running in the foreground of the electronic device, and at least two of the interfaces displayed by these multiple applications belong to the interfaces in the application interface whitelist, or the electronic device determines that at least two of the interfaces displayed by these multiple applications are alternative interfaces, when the electronic device enters the horizontal screen hovering state, the electronic device can determine a target interface from the at least two alternative interfaces according to a second preset condition, and then obtain the first display content in the target interface.
[0138] As an example, the second preset condition may include that before the electronic device enters the horizontal screen hovering state, the alternative interface that the user last operated is the target interface. It can be understood that the application to which the target interface belongs is the target application. For example, as shown in Figure 5, if the interface of application A and the interface of application C belong to the interfaces in the application interface whitelist, or the electronic device determines that the interface of application A and the interface of application C are alternative interfaces, and before the electronic device enters the horizontal screen hovering state, the user last operated the interface of application A, then when the electronic device enters the horizontal screen hovering state, the interface of application A is the target interface, and accordingly, application A is the target application.
[0139] As another example, two applications are running in split-screen mode in the foreground of the electronic device, and the interfaces of these two applications are both interfaces in the application interface whitelist, or the electronic device determines that the interfaces of these two applications are both alternative interfaces, the second preset condition may include that the target interface is the interface of the application located in the first area when the electronic device enters the horizontal screen hovering state. For example, as shown in Figure 6, if the interface of application E and the interface of application F are interfaces in the application interface whitelist, or the electronic device determines that the interface of application E and the interface of application F are alternative interfaces. When the electronic device rotates to the right from the vertical screen hovering state as shown in Figure 6 a) and enters the horizontal screen hovering state as shown in Figure 6 b), when the electronic device enters the horizontal screen hovering state, the interface of application E is located in the first area, then the interface of application E is the target interface, and accordingly, application E is the target application. When the electronic device rotates right from the portrait hovering state as shown in FIG6 a) to enter the landscape hovering state as shown in FIG6 c), when the electronic device enters the landscape hovering state, the interface of application F is located in the first area, then the interface of application F is the target interface, and accordingly, application F is the target application.
[0140] It is understandable that if among multiple applications, only one application's interface belongs to the interface in the application interface whitelist, or is judged by the electronic device to be an alternative interface, then the interface of this application is the target interface, and accordingly, the application is the target application.
[0141] If the interfaces of multiple applications do not belong to the interfaces in the application interface whitelist, or the electronic device determines that the interfaces of these multiple applications are not alternative interfaces, then when the electronic device enters the horizontal screen hovering state, the electronic device does not need to display the display content of the application away from the hinge bend.
[0142] Step 430: Display first display content in a first area of the screen.
[0143] As mentioned above, the first area is the area of the screen above the midline of the hinge in the horizontal hovering state. The hinge is used to control the opening and closing of the screen.
[0144] If the target application belongs to the first category of applications, the electronic device can extract the first display content of the target application from the surface view, add a new display layer in the first area, and mount the extracted first display content on the new display layer in the first area for display.
[0145] For the first type of application, the electronic device may display other content besides the first display content in the second area.
[0146] The second area is the area below the hinge when the screen is in landscape hover mode. For example, if the hinge is 2 centimeters wide, the second area can be the area 1 cm (2 ÷ 2) below the hinge's centerline. Avoiding the hinge area effectively avoids areas where the curved shape of the screen would affect user viewing and operation.
[0147] The following describes in detail several possible implementations.
[0148] In some embodiments, method 400 may further include: displaying a control in the second area of the screen.
[0149] For a description of the controls, please refer to the relevant content above. For the sake of brevity, we will not go into details here.
[0150] FIG7 is a schematic diagram of a first area and a second area applicable to the application interface display method provided in an embodiment of the present application.
[0151] As shown in FIG7 , the first area is a display area for first display content, that is, the first area is used to display the first display content; the second area is a display area for controls, that is, the second area is used to display controls.
[0152] The electronic device can forcibly modify the activity record (also understood as the display area) of the target application to the second area, so that the control can be displayed in the second area of the screen; and, as mentioned above, the electronic device can extract the first display content of the target application from the surface view, and add a new display layer in the first area, and mount the extracted first display content on the newly added display layer in the first area for display.
[0153] FIG8 is a schematic diagram of an interface before an electronic device enters a horizontal screen hovering state applicable to the application interface display method provided in an embodiment of the present application.
[0154] As shown in Figure 8, taking the scenario of playing a video as an example, as shown in Figure 8 a), before the electronic device enters the horizontal screen hovering state, the electronic device plays the video in full screen in the horizontal screen expanded state; as shown in Figure 8 b), before the electronic device enters the horizontal screen hovering state, the electronic device plays the video in non-full screen in the horizontal screen expanded state on the application interface with the video details page.
[0155] When a user folds the screen of an electronic device and the electronic device responds to the user's operation and enters a horizontal screen hovering state, the electronic device obtains the video screen and controls as shown in Figure 8, and displays the video screen in the first area and displays the controls in the second area.
[0156] The second area is the area below the hinge when the screen is in landscape mode. Controls displayed in this area avoid the hinge area, or the curved area of the screen. This not only minimizes the user's viewing experience of the application interface but also facilitates user control operations. Furthermore, when the second area of the electronic device is placed parallel to a table, operating controls displayed in this area prevents the device from tipping over, further enhancing the user experience.
[0157] Optionally, when the electronic device enters the horizontal screen hovering state, it can display some dynamic effects (which may be referred to as motion effects for short) in combination with the rotation and / or folding of the screen.
[0158] It is understood that when an electronic device enters the horizontal hover state, dynamic effects can be set in combination with screen rotation and screen folding scenarios. For example, when the electronic device rotates from the portrait hover state to the landscape hover state, the electronic device will simultaneously perform dynamic effects such as window displacement, window rotation, window transparency, and window scaling.
[0159] FIG9 is a schematic diagram of an interface after an electronic device enters a horizontal screen hovering state applicable to the application interface display method provided in an embodiment of the present application.
[0160] As an example and not a limitation, taking the video playback scenario as an example, in the process of entering the horizontal screen hovering display interface from the video playback interface shown in a) or b) of Figure 8, as shown in a) of Figure 9, the video screen can move to the first area and the control can move to the second area. Finally, in the interface shown in b) of Figure 9, the video screen is displayed in the first area and the control is displayed in the second area.
[0161] When entering the horizontal screen hovering state from the vertical screen expanded state and the vertical screen hovering state, the dynamic effect can be more than the dynamic effect from Figure 9 a) to Figure 9 b) shown in Figure 9, in which the video screen and controls rotate with the rotation direction of the electronic device. For the sake of brevity, it will not be repeated here.
[0162] As an example and not a limitation, the parameters of the dynamic effect may include but are not limited to: window rotation parameters, window displacement parameters, window scaling parameters, window transparency parameters, information layer transparency parameters, background transparency parameters, etc.
[0163] In some embodiments, the method 400 may further include: displaying one of the control or the related page in the second area of the screen, and a page turning control for controlling switching between the control and the related page.
[0164] FIG10 is another schematic diagram of the first area and the second area applicable to the application interface display method provided in an embodiment of the present application.
[0165] As shown in Figure 10, the first area is the display area of the first display content, that is, the first area is used to display the first display content; the second area is the display area of the control and the display area of the related page, that is, the second area is used to display the control and the related page. As shown in Figure 10a), the first display content is displayed in the first area of the screen, and the control and the page turning control are displayed in the second area of the screen. The user can switch the display content of the first area by clicking the page turning control. For example, the electronic device can switch from the interface shown in Figure 10a) to the interface shown in Figure 10b) in response to the user clicking the page turning control. The second area in Figure 10b) displays the related page. It is understandable that the electronic device can also switch to the interface shown in Figure 10b) in response to the user's operation of the page turning control in the second area as shown in Figure 10b).
[0166] The embodiment of the present application does not impose any limitation on the specific form of the page turning control and the specific position in the second area.
[0167] In some embodiments, the method 400 may further include: displaying the related page in the second area of the screen, and displaying the control in the first area of the screen.
[0168] FIG11 is another schematic diagram of the first area and the second area applicable to the application interface display method provided in an embodiment of the present application.
[0169] As shown in a) of Figure 11, the first area is the display area for the first display content and controls, that is, the first area is used to display the first display content and controls; the second area is the display area for the related pages, that is, the second area is used to display the related pages. Taking the video playback scenario as an example, if before the electronic device enters the horizontal screen hovering state, the electronic device displays the interface shown in b) of Figure 8, then after the electronic device enters the horizontal screen hovering state, as shown in b) of Figure 11, the first area is used to display the video screen and controls, and the second area is used to display the details page of the video screen.
[0170] As an example and not a limitation, to enhance the aesthetics of the display interface, the area from the centerline of the hinge to the upper boundary of the second area may be filled with a background color that is the same as the background color of the relevant page. In other words, the area from the centerline of the hinge to the upper boundary of the second area displays a background color that is the same as the background color of the relevant page. This application does not impose any limitation on this.
[0171] If the target application belongs to the second category of applications, the electronic device can forcibly modify the display area of the target application to the first area, so that the first display content can be displayed in the first area of the screen. In addition, as an example and not a limitation, a surface layer with a preset color background can be added to the second area of the screen.
[0172] FIG12 is another schematic diagram of the first area and the second area applicable to the application interface display method provided in an embodiment of the present application.
[0173] As shown in FIG12 , the first area is a display area for the first display content, that is, the first area is used to display the first display content; the second area may not display content, or may display a background of a preset color, such as a black background.
[0174] In some embodiments, before displaying the first display content in the first area of the screen, method 400 further includes: when the electronic device is in a horizontal screen hovering state and it is detected that the automatic rotation function of the electronic device is turned off, turning on the automatic rotation function.
[0175] It is understandable that when the automatic rotation function of the electronic device (such as the automatic rotation switch) is turned on, the interface of the application can rotate as the electronic device rotates. However, when the automatic rotation function of the electronic device is turned off, the screen displayed by the electronic device is locked in a certain display direction (horizontal display direction or vertical display direction), and the interface of the application cannot rotate as the electronic device rotates. Therefore, before the first display content is displayed in the first area of the screen, when the electronic device is in a horizontal screen hovering state and the electronic device detects that the automatic rotation function is turned off, the electronic device can actively turn on the automatic rotation function so that the interface of the application can rotate as the electronic device rotates.
[0176] In some embodiments, when the electronic device rotates, when the first area before rotation is transformed into the second area, and the second area before rotation is transformed into the first area, the display content of the first area before rotation and the display content of the second area before rotation can exchange positions as the electronic device rotates.
[0177] In some embodiments, after displaying the first display content in the first area of the screen, method 400 further includes: turning off the automatic rotation function when detecting that the electronic device exits the horizontal screen hovering state, or in response to a user's turning off operation of the automatic rotation function.
[0178] After the first display content is displayed in the first area of the screen, the electronic device may automatically disable the previously enabled auto-rotation function when it detects that it has exited the horizontal hovering state, that is, when it detects that the electronic device is not in the horizontal position, or detects that the angle between the first screen and the second screen is not within a preset range. In addition, the electronic device may exit the display of the first display content in the first area and display the application interface in the same layout as before entering the horizontal hovering state, that is, restore the application interface to the state before entering the horizontal hovering state.
[0179] When the electronic device exits the horizontal screen hover state, the electronic device can also have a dynamic effect during the process of restoring the application interface to the application interface before entering the horizontal screen hover state. For a detailed description of the dynamic effect, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0180] When displaying the interfaces of multiple applications in split-screen mode and / or floating window mode, in some embodiments, before displaying the first display content in the first area of the screen, the electronic device may automatically end the split-screen mode and / or floating window mode of the multiple applications, that is, exit other applications except the target application in the foreground. In this way, after displaying the first display content in the first area of the screen, when the electronic device exits the horizontal screen hovering state, the electronic device can display the target application according to the layout of the target application, without displaying the interfaces of other applications except the target application that were previously running in the foreground; in other embodiments, before displaying the first display content in the first area of the screen, the electronic device may not end the split-screen mode and / or floating window mode of the multiple applications. In this way, after displaying the first display content in the first area of the screen, when the electronic device exits the horizontal screen hovering state, the electronic device can display the interfaces of multiple applications including the target application that were previously running in the foreground.
[0181] For better understanding, the application interface display method provided by this application is briefly described again below in conjunction with FIG13 .
[0182] FIG13 is another schematic flowchart of the application interface display method provided in an embodiment of the present application.
[0183] The steps in Figure 13 can be performed by an electronic device, or can be performed by components configured in the electronic device (such as chips, chip systems, etc.), or can be implemented by a logic module or software that can realize all or part of the functions of the electronic device. The embodiments of the present application are not limited to this.
[0184] Step 131: In response to a user viewing a first interface of a first application, displaying a first interface of the first application.
[0185] In response to a user's operation of viewing the first interface of the first application, the electronic device may draw and render the first interface of the first application and display the first interface on the screen.
[0186] Step 132: Determine whether the first interface of the first application is an interface in the application interface whitelist.
[0187] The electronic device can determine whether the first interface of the first application belongs to the interface in the application interface whitelist. If the first interface is an interface in the application interface whitelist, step 133 can be executed; if the first interface is not an interface in the application interface whitelist, the electronic device may not process it.
[0188] For a detailed description of the application interface whitelist, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0189] Step 133: Determine whether the electronic device has entered a horizontal screen hovering state.
[0190] When the first interface is an interface in the application interface whitelist, the electronic device can determine whether the electronic device enters the horizontal screen hovering state. When the electronic device enters the horizontal screen hovering state, the electronic device can execute step 134; when the electronic device does not enter the horizontal screen hovering state, the electronic device may not perform any processing.
[0191] It should be noted that this application does not limit the execution order of step 132 and step 134. That is to say, in actual application scenarios, step 132 can be executed first and then step 133; or step 133 can be executed first and then step 132.
[0192] For a detailed description of the horizontal screen hover state, please refer to the relevant description above. For the sake of brevity, it will not be repeated here.
[0193] Step 134: Determine whether the first interface is a first-type interface.
[0194] The electronic device may determine whether the first interface is a first-category interface. If the first interface is a first-category interface, step 135 may be executed; if the first interface is not a first-category interface, step 136 may be executed.
[0195] Step 135: forcibly constrain the display area of the first application to the second area, create a new layer in the first area, and mount the extracted first display content of the first interface to the newly added display layer in the first area for display.
[0196] When the first interface is a first-type interface, the electronic device can forcibly modify the display area of the first application to the second area, so that the controls or related pages can be displayed in the second area of the screen; and the electronic device can extract the first display content of the target application from the surface view, and add a new display layer in the first area, and mount the extracted first display content on the newly added display layer in the first area for display.
[0197] Step 136: The display area of the first application is constrained to the first area, and the second area does not display content.
[0198] In step 132, it has been determined that the first interface belongs to an interface in the application interface whitelist. In the case that the first interface is not a first-category interface, the first interface is a second-category interface. In the case that the first interface is a second-category interface, the electronic device can forcibly modify the display area of the first application to the first area, so that the first display content can be displayed in the first area of the screen. The second area may not display content. In addition, as an example and not a limitation, a surface layer with a preset color background can be added to the second area of the screen, that is, the second area can display a preset color background, such as a black background.
[0199] For detailed descriptions of the first region and the second region, please refer to the relevant content above, and for the sake of brevity, they will not be repeated here.
[0200] Based on the above scheme, the electronic device autonomously senses and determines whether the electronic device is in a horizontal screen hovering state. In the horizontal screen hovering state, the electronic device displays the first display content of the target application avoiding the hinge bend, so as not to affect the user's viewing and operation, thereby improving the user experience. In addition, the method is deployed in the operating system of the electronic device. During the entire process, there is no need for the target application to adapt to the horizontal screen hovering state to display the application interface, and the display of the first display content of the target application avoiding the hinge bend can be achieved, which has good universality. Furthermore, the second area is the area below the hinge of the screen in the horizontal screen hovering state. Displaying controls in the second area can avoid the hinge area, that is, avoid the area where the screen is bent into an arc. Not only does it not affect the user's viewing of the application interface, but it also facilitates the user's operation of the controls. And when the second area of the electronic device is placed parallel to the desktop, it is not easy to overturn the electronic device when operating the controls displayed on the second area, which further improves the user experience.
[0201] The present application also provides an electronic device including corresponding modules for executing the steps in the embodiment described in Figure 4 or Figure 13. The modules included in the electronic device can be implemented in software and / or hardware.
[0202] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, wherein the memory is used to store computer programs, and the processor is used to call and execute the computer programs, so that the electronic device performs the steps in the embodiments described in Figure 4 or Figure 13 above.
[0203] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the steps of the embodiments described in Figure 4 or Figure 13 above.
[0204] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0205] The chip system can be composed of chips, or can include chips and other discrete devices.
[0206] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer executes the steps in the embodiment described in FIG. 4 or FIG. 13 .
[0207] An embodiment of the present application further provides a computer program product, including a computer program. When the computer program is executed, the computer executes the steps in the embodiment described in FIG. 4 or FIG. 13 .
[0208] It should be understood that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.
[0209] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0210] The terms "unit," "module," and the like used in this specification may be used to refer to a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution.
[0211] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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. In the several embodiments provided in this application, it should be understood that the disclosed devices, equipment, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not implemented. In addition, the coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or modules, and can be electrical, mechanical, or other forms.
[0212] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.
[0213] In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more units may be integrated into one module.
[0214] In the above embodiments, the functions of each functional module can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (program) are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0215] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0216] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for displaying an application interface, characterized in that: Applied to electronic equipment, the method comprises: In response to user operation, entering a horizontal screen hovering state; Acquire a first display content of a target application, where the target application is an application running in the foreground, and the first display content is part or all of the content in the interface of the target application before entering the horizontal screen hovering state; The first display content is displayed in a first area of the screen, where the first area is an area of the screen located above a midline of a hinge in the horizontal screen hovering state, and the hinge is used to control the opening and closing of the screen.
2. The method according to claim 1, characterized in that The first display content is part of the content in the interface of the target application before entering the horizontal screen hovering state, and the interface also includes a control for controlling the first display content and / or a related page of the first display content.
3. The method according to claim 2, characterized in that The method further comprises: Displaying the control in a second area of the screen, where the second area is an area of the screen below the hinge in the horizontal screen hovering state; or, Displaying one of the control or the related page and a page turning control in a second area of the screen, wherein the page turning control is used to control switching between the control and the related page; or, The related page is displayed in the second area of the screen, and the control is displayed in the first area of the screen.
4. The method according to claim 2 or 3, characterized in that The target application includes: an application for playing videos, an application for taking photos or videos, or an application for online meetings.
5. The method according to any one of claims 1 to 4, characterized in that There are multiple applications running in the foreground, the target application is the application most recently operated by the user before the electronic device enters the horizontal screen hovering state, and the operation is any operation except exiting the application; or, Two split-screen applications are running in the foreground, and the target application is the application in the first area when the electronic device enters the horizontal screen hovering state.
6. The method according to claim 5, characterized in that The interface is an interface in a preset list, and the preset list includes an interface identifier and an application identifier corresponding to the interface identifier.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When it is detected that the electronic device is in the horizontal screen and the angle between the first screen and the second screen is within a preset range, it is determined that the electronic device is in the horizontal screen hovering state, and the first screen and the second screen are screens on both sides of the hinge.
8. The method according to any one of claims 1 to 7, characterized in that Before displaying the first display content in the first area of the screen, the method further includes: When the electronic device is in the horizontal screen hovering state and it is detected that the automatic rotation function of the electronic device is turned off, the automatic rotation function is turned on.
9. The method according to claim 8, characterized in that After displaying the first display content in the first area of the screen, the method further includes: When it is detected that the electronic device exits the horizontal screen hovering state, or in response to a user's closing operation of the automatic rotation function, the automatic rotation function is closed.
10. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is configured to call the computer program so that the electronic device executes the method according to any one of claims 1 to 9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the computer is caused to perform the method according to any one of claims 1 to 9.
12. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for intelligently setting screen rotation and mobile terminal
CN105260093A
Display method of flexible screen and electronic equipment
CN110389802A
Application control method and electronic equipment
CN115562535A
Interface display method and device, terminal and storage medium
CN115562556A
Split-screen display method, folding screen equipment and computer readable storage medium
CN116339569A
