[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2024193298A1 - 一种应用界面显示方法及相关装置 - Google Patents

一种应用界面显示方法及相关装置 Download PDF

Info

Publication number
WO2024193298A1
WO2024193298A1 PCT/CN2024/078488 CN2024078488W WO2024193298A1 WO 2024193298 A1 WO2024193298 A1 WO 2024193298A1 CN 2024078488 W CN2024078488 W CN 2024078488W WO 2024193298 A1 WO2024193298 A1 WO 2024193298A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
screen
interface
area
Prior art date
Application number
PCT/CN2024/078488
Other languages
English (en)
French (fr)
Inventor
刘磊
山昌
周雨沛
张云逸
李创举
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024193298A1 publication Critical patent/WO2024193298A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • the present application relates to the field of terminal technology, and in particular to an application interface display method and related devices.
  • the present application provides an application interface display method and related devices to improve user experience.
  • 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 (such as a chip, a chip system, etc.) configured in the electronic device, or can also be implemented by a logic module or software that can realize all or part of the functions of the electronic device, and the present application does not limit this.
  • a component such as a chip, a chip system, etc.
  • One or more applications are installed in the electronic device.
  • the method includes: in response to a user operation, entering a horizontal screen hovering state; obtaining a first display content of a target application, the target application being an application running in the foreground, the first display content being part or all of the content in the interface of the target application before the electronic device enters the horizontal screen hovering state; displaying the first display content in a first area of the screen, the first area being an area of the screen above the midline of the hinge in the horizontal screen hovering state, the hinge being used to control the opening and closing of the screen.
  • the electronic device autonomously senses and determines whether the electronic device is in a 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.
  • 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.
  • the method also includes: displaying the control in the second area of the screen, the second area being the area of the screen below the hinge in the horizontal screen hovering state; or, displaying the 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.
  • the second area is the area below the hinge when the screen is in the horizontal 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, which not only does not affect the user's viewing of the application interface, but also facilitates the user's operation of the controls.
  • 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 in the second area, which further improves the user experience.
  • the target application includes: an application for playing videos, or an application for taking photos or videos, or an application for online meetings.
  • an application for playing videos is the target application.
  • the first display content is the video screen.
  • the controls for controlling the first display content include video controls, such as but not limited to controls for pausing/playing videos, progress bar controls, and 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.
  • an application used for taking photos or videos is the target application.
  • 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.
  • an application used for online meetings is the target application.
  • the first display content is the meeting screen (for example, including but not limited to the screen of desktop sharing, etc.)
  • 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.
  • 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 screens 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.
  • the interface is an interface in a preset list
  • the preset list includes an interface identifier and an application identifier corresponding to the interface identifier
  • the method also includes: when detecting 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 landscape hovering state, and the first screen and the second screen are screens on both sides of the hinge.
  • the method 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.
  • the method after displaying the first display content in the first area of the screen, the method also includes: when detecting that the electronic device exits the horizontal screen hovering state, or in response to the user's closing operation of the automatic rotation function, turning off the automatic rotation function.
  • the present application provides an electronic device, which can be used to implement the method in the first aspect and any possible implementation of the first aspect.
  • the electronic device includes a corresponding module for executing the above method.
  • the module included in the electronic device can be implemented by software and/or hardware.
  • the present application provides an electronic device, the electronic device comprising at least one processor and at least one communication interface.
  • the processor is coupled to the communication interface and can be used to execute a computer program to implement the application interface display method in the first aspect and any possible implementation of the first aspect.
  • the electronic device further includes a memory, and the processor is coupled to the memory.
  • 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 method of the first aspect, for example, processing the data involved in the above-mentioned method, etc.
  • the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
  • the chip system may be composed of the chip, or may include the chip and other discrete devices.
  • a computer-readable storage medium on which a computer program (also referred to as code or instruction) is stored.
  • a computer program also referred to as code or instruction
  • the method in the above-mentioned first aspect and any possible implementation of the first aspect is executed.
  • a computer program product comprising: a computer program (also referred to as code or instruction), which, when executed, enables the method in the first aspect and any possible implementation of the first aspect to be executed.
  • FIG1 is a schematic diagram of a structure of an electronic device applicable to the application interface display method provided in an embodiment of the present application;
  • FIG2 is a side view of an electronic device applicable to the application interface display method provided in an embodiment of the present application
  • 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
  • FIG4 is a schematic flow chart of an application interface display method provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a scenario for determining a target application provided by an embodiment of the present application.
  • FIG6 is a schematic diagram of another scenario for determining a target application provided in an embodiment of the present application.
  • FIG. 7 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;
  • 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;
  • FIG. 9 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;
  • FIG10 is another 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;
  • 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.
  • 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.
  • FIG. 13 is another schematic flowchart of the application interface display method provided in an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same functions and effects.
  • the first display content and the second display content are to distinguish different display contents, and their order is not limited.
  • words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different.
  • a device, system, product or equipment comprising 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.
  • a and/or B may represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B may be singular or plural.
  • the character "/” generally indicates that the associated objects before and after are in an "or” relationship, but does not exclude the situation where the associated objects before and after are in an "and” relationship. The specific meaning can be understood in conjunction with the context.
  • 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplarily” or “for example” is intended to present related concepts in a specific way.
  • 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 devices.
  • the methods described in the embodiments of the present application can support operating systems such as Android operating system (Android OS), HarmonyOS, and OpenHarmony.
  • Android OS Android operating system
  • HarmonyOS HarmonyOS
  • OpenHarmony OpenHarmony
  • FIG. 1 is a schematic diagram of the structure of an electronic device suitable for the application interface display method provided in an embodiment of the present application.
  • FIG1 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, 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 screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • 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.
  • 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 processor (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). Different processing units may be independent devices or integrated in one or more processors.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the application processor outputs a sound signal through the audio module 170 (such as the speaker 170A, etc.), or displays the audio signal through the display screen 194. Image or video.
  • 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.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 can perform different operations to achieve 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, and the embodiments of the present application do not impose any limitation on this.
  • the processor 110 may include one or more interfaces.
  • the interface 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.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM interface SIM interface
  • USB interface USB interface
  • 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.
  • AR augmented reality
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.
  • 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 supplies power to the processor 110, the internal memory 121, the external memory, the display screen 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 number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • 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.
  • 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 the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the wireless communication module 160 can provide wireless communication solutions for application in 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.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • 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 the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), 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, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wide band code division multiple access
  • TD-CDMA time-division code division multiple access
  • LTE long term evolution
  • 5G fifth generation
  • 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).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS BeiDou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 can realize the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • Display screen 194 which may also be referred to as a screen, may 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 or 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.
  • electronic device 100 may include one or more display screens 194.
  • the display screen 194 may also include more components, such as a backlight panel, a drive circuit, etc.
  • the backlight panel may be used to provide a light source, and the display panel emits light based on the light source provided by the backlight panel.
  • the drive circuit may be used to control whether the liquid crystal of the liquid crystal layer is light-transmissive or light-impermeable.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • 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 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • 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.
  • the program storage area may 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 may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • 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.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, such as the speaker 170A, the receiver 170B, the microphone 170C and the earphone interface 170D, and the application processor.
  • audio module 170 such as the speaker 170A, the receiver 170B, the microphone 170C and the earphone interface 170D, and the application processor.
  • the structure illustrated in the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some 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.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture, wherein the layered architecture divides the software system of the electronic device 100 into several layers, each layer has a clear role and division of labor, and the layers communicate with each other through software interfaces.
  • This application takes operating systems such as HarmonyOS, OpenHarmony and Android with a layered architecture as examples, but the type of operating system of the electronic device used in the application interface display method provided in the embodiments of this application should not be limited.
  • Electronic devices with foldable screens can have an unfolded state, a hovering state, and a folded state.
  • FIG. 2 is a side view of an electronic device applicable to the application interface display method provided in an embodiment of the present 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.
  • the electronic device 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.
  • the values of the first angle threshold and the second angle threshold of different models of foldable screen electronic devices may be different, and the present application does not limit the values of the first angle threshold and the second angle threshold.
  • the first angle threshold may be 140 degrees and the second angle threshold may be 25 degrees.
  • FIG. 3 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.
  • FIG. 3 a) shows that the electronic device is in a vertical screen unfolded state
  • FIG. 3 b) shows that the electronic device is in a vertical screen hovering state
  • FIG. 3 c) shows that the electronic device is in a vertical screen folded state
  • FIG. 3 d) shows that the electronic device is in a horizontal screen unfolded state
  • FIG. 3 e) shows that the electronic device is in a horizontal screen hovering state
  • FIG. 3 f) shows that the electronic device is in a horizontal screen folded state.
  • dotted line portion shown in FIG. 3 represents the position of the hinge of the screen of the electronic device.
  • the present application provides an application interface display method and related devices, whereby the electronic device autonomously senses and determines whether the electronic device is in a 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.
  • the applications involved include third-party applications and system applications.
  • the application interface display method provided by the present application is described below in conjunction with FIG. 4 .
  • FIG. 4 is a schematic flowchart of an application interface display method provided in an embodiment of the present application.
  • 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 capable of implementing all or part of the functions of the electronic device, which is not limited in the embodiments of the present application.
  • a component such as a chip, a chip system, etc.
  • the electronic device may have a structure as shown in FIG1 , which is not limited in the present embodiment. Detailed description is given below for each step in FIG4 .
  • Step 410 In response to user operation, enter the horizontal screen hovering state.
  • 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.
  • the electronic device can enter the horizontal screen unfolded state as shown in d) of FIG. 3 in response to the user's screen rotation operation of the electronic device, and then enter the horizontal screen hovering state as shown in e) of FIG. 3 in response to the user's screen folding operation of the electronic device.
  • 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.
  • 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.
  • the initial state of the electronic device may include any state except the horizontal screen hovering state, and 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.
  • method 400 also includes: when it is detected that the electronic device is in landscape orientation and the angle between the first screen and the second screen is within a preset range, determining that the electronic device is in landscape hovering state, and the first screen and the second screen are screens on both sides of the hinge.
  • the electronic device can autonomously sense and determine whether it is in a horizontal screen hovering state.
  • 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.
  • Step 420 Acquire the first display content of the target application.
  • the target application is the application running in the foreground of the electronic device.
  • the first display content is the current content of the electronic device before entering the horizontal screen hovering state. Part or all of the content in the interface of the target application.
  • 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.
  • 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.
  • the type of the target application may be a predefined first category application.
  • the interface of the target application before entering the horizontal screen hovering state also includes a control for controlling the first display content and/or a related page of the first display content.
  • 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.
  • an application for playing videos is the target application.
  • the first display content is the video screen.
  • the controls for controlling the first display content include video controls, such as but not limited to controls for pausing/playing videos, progress bar controls, and 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.
  • an application used for taking photos or videos is the target application.
  • 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.
  • an application used for online meetings is the target application.
  • the first display content is the meeting screen (for example, including but not limited to the screen of desktop sharing, etc.)
  • 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.
  • the target application is a preset second category application
  • the first displayed content is all the content in the interface of the target application before entering the horizontal screen hovering state.
  • 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.
  • the second category of applications includes but is not limited to applications for navigation or sports and health applications.
  • the first category of applications and the second category of applications may be predefined application types.
  • an application list may be pre-deployed in the electronic device (for ease of description, the application list is referred to as an application whitelist), and the application whitelist may include at least one application identifier and the application type corresponding to each application in the at least one application.
  • the application list may support cloud updates, for example, the application whitelist may be updated as the version of the operating system of the electronic device is updated, and this application is not limited to this.
  • the operating system of the electronic device can provide a registration interface for the application.
  • the application can call the registration interface to register the first category application or the second category application, so that the electronic device can 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. In this way, it is equivalent to maintaining a set of application whitelists on the electronic device.
  • 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 the multiple applications as the target application based on the first preset condition.
  • 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.
  • 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.
  • FIG. 5 is a schematic diagram of a scenario for determining a target application provided in an embodiment of the present application.
  • the electronic device has application A, application B, application C, and application D running in the foreground, where application A and application B are two applications running in split screen with the middle 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.
  • application A and application B are two applications running in split screen with the middle line of the hinge (dashed area) as the split screen dividing line
  • application C and application D are two applications running in floating windows.
  • application B is the target application.
  • 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.
  • the first preset condition may include that the target application is an application located in the first area when the electronic device enters the horizontal screen hovering state.
  • the first area is the area of the screen of the electronic device located above the midline of the hinge in the horizontal screen hovering state.
  • FIG. 6 is a schematic diagram of another scenario for determining a target application provided in an embodiment of the present application.
  • application E and application F are running in split-screen mode in the foreground of the electronic device.
  • the electronic device when the electronic device is in a portrait hovering state and split screen, when the electronic device is rotated from the portrait hovering state or the portrait expanded state to the landscape hovering state, based on the rotation direction of the electronic device, the application in the area above the midline of the hinge after the electronic device is rotated is used as the target application.
  • 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.
  • 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.
  • the interface is an interface in a preset list
  • the preset list includes an interface identifier and an application identifier corresponding to the interface identifier.
  • 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.
  • an application interface whitelist may be pre-deployed in the electronic device, and 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 described above.
  • 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, which is not limited in this application.
  • 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 interfaces that need to display the first display content in the first area when the electronic device enters the horizontal hovering state (for the sake of ease of description, this interface is recorded as an alternative interface).
  • the electronic device when the electronic device enters the horizontal screen hovering state, the electronic device can determine whether the application interface is an alternative interface based on the layout of the application interface, whether the application interface includes controls, etc. If it is determined that the application interface is an alternative interface, the electronic device can obtain the first display content in the alternative interface.
  • 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.
  • 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.
  • the second preset condition may include that before the electronic device enters the horizontal screen hovering state, the alternative interface most recently operated by the user is the target interface.
  • 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 most recently 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.
  • the second preset condition may include:
  • 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 belong to the 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.
  • the application's interface is the target interface, and accordingly, the application is the target application.
  • the electronic device determines that the interfaces of 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.
  • Step 430 Display first display content in a first area of the screen.
  • the first area is the area of the screen located above the midline of the hinge in the horizontal screen hovering state.
  • the hinge is used to control the opening and closing of the screen.
  • 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 newly added display layer in the first area for display.
  • the electronic device may display other content besides the first display content in the second area.
  • the second area is the area below the hinge when the screen is in horizontal hovering state. For example, if the width of the hinge is 2 centimeters (cm), the second area can be the area outside 1 (2 ⁇ 2) cm below the center line of the hinge. Avoiding the area where the hinge is located is equivalent to avoiding the area where the curvature of the screen folded affects the user's viewing and operation.
  • method 400 may further include: displaying the control in the second area of the screen.
  • FIG. 7 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.
  • 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.
  • the electronic device can forcibly modify the activity record (activity record) (which can also be 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 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.
  • activity record activity record
  • the electronic device can extract the first display content of the target application from the surface view, and add a 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.
  • 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.
  • the electronic device 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 FIG. 8 , and displays the video screen in the first area and displays the controls in the second area.
  • the second area is the area below the hinge when the screen is in the horizontal 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, which not only does not affect the user's viewing of the application interface, but also facilitates the user's operation of the controls.
  • 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 in the second area, which further improves the user experience.
  • the electronic device when it enters the horizontal screen hovering state, it can display some dynamic effects (which can be referred to as motion effects for short) in combination with the rotation and/or folding of the screen.
  • some dynamic effects which can be referred to as motion effects for short
  • the screen rotation and screen folding scenes can be combined to set the dynamic effect.
  • the electronic device when the electronic device rotates from the vertical screen hover state to the horizontal screen hover state, the electronic device will simultaneously perform window displacement, window rotation, and window folding. Dynamic effects such as transparency and window scaling.
  • FIG. 9 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.
  • the video screen in the process of entering the horizontal screen hovering state 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 be moved to the first area, and the controls can be moved 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 controls are displayed in the second area.
  • the dynamic effect can include an additional dynamic effect of the video screen and controls rotating in the rotation direction of the electronic device, which is superior to the dynamic effect from Figure 9 a) to Figure 9 b) shown in Figure 9.
  • the dynamic effect can include an additional dynamic effect of the video screen and controls rotating in the rotation direction of the electronic device, which is superior to the dynamic effect from Figure 9 a) to Figure 9 b) shown in Figure 9.
  • 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.
  • 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, wherein the page turning control is used to control switching between the control and the related page.
  • FIG. 10 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.
  • 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.
  • 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.
  • the electronic device can switch from the interface shown in FIG. 10 a) to the interface shown in FIG. 10 b) in response to the user clicking the page turning control, and the second area in FIG. 10 b) displays the related page.
  • the electronic device can also switch to the interface shown in FIG. 10 b) in response to the user's operation of the page turning control in the second area as shown in FIG. 10 b).
  • 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.
  • 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.
  • FIG. 11 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.
  • the first area is the display area of 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 of the related page, that is, the second area is used to display the related page.
  • the area from the center line of the hinge to the upper boundary of the second area may be filled with the same color background according to the background color of the relevant page, that is, the area from the center line of the hinge to the upper boundary of the second area may display the same background color as the background color of the relevant page.
  • This application does not make any limitation to this.
  • 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.
  • a surface layer with a background of a preset color can also be added to the second area of the screen.
  • FIG. 12 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.
  • 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 may not display content, or may display a background of a preset color, such as a black background.
  • method 400 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.
  • the automatic rotation function of the electronic device such as the automatic rotation switch
  • the interface of the application can rotate as the electronic device rotates.
  • 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.
  • 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.
  • method 400 further includes: upon detecting that the electronic device exits the horizontal screen hovering state, or in response to a user's closing operation of the automatic rotation function, turning off the automatic rotation function.
  • the electronic device may automatically turn off the previously automatically turned on automatic rotation function when it detects that it has exited the horizontal screen hovering state, that is, when it detects that the electronic device is not in the horizontal screen, or when it detects that the angle between the first screen and the second screen is not within a preset range.
  • the electronic device may exit the display of the first display content in the first area, and display the interface of the application in the interface layout before entering the horizontal screen hovering state, that is, restore to the application interface before entering the horizontal screen hovering state.
  • the electronic device 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, so that 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, and there is no need to display 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, so that 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.
  • FIG. 13 is another schematic flowchart of the application interface display method provided in an embodiment of the present application.
  • the steps in Figure 13 can be executed by an electronic device, or can be executed 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 implement all or part of the functions of the electronic device.
  • components configured in the electronic device such as chips, chip systems, etc.
  • a logic module or software that can implement all or part of the functions of the electronic device.
  • Step 131 In response to a user viewing a first interface of a first application, displaying a 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.
  • Step 132 Determine whether the first interface of the first application is an interface in the application interface whitelist.
  • the electronic device can determine whether the first interface of the first application is an 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.
  • Step 133 Determine whether the electronic device has entered a horizontal screen hovering state.
  • 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.
  • step 132 may be executed first, and then step 133; or step 133 may be executed first, and then step 132.
  • Step 134 Determine whether the first interface is a first type of interface.
  • the electronic device may determine whether the first interface is a first-category interface, and may execute step 135 if the first interface is a first-category interface; and may execute step 136 if the first interface is not a first-category interface.
  • Step 135 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.
  • the electronic device can forcibly modify the display area of the first application to the second area.
  • the control or related page 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, 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.
  • Step 136 The display area of the first application is constrained to the first area, and the second area does not display content.
  • step 132 it has been determined that the first interface belongs to an interface in the application interface whitelist. If the first interface is not a first-category interface, the first interface is a second-category interface. In the case where 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.
  • a surface layer with a background of a preset color can also be added to the second area of the screen, that is, the second area can display a background of a preset color, such as a black background.
  • first area and the second area please refer to the relevant content above, and for the sake of brevity, they will not be repeated here.
  • the electronic device autonomously senses and determines whether the electronic device is in a 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.
  • the method is deployed in the operating system of the electronic device.
  • the target application does not need to adapt to the horizontal screen hovering state to display the application interface, so that the display of the first display content of the target application avoiding the hinge bend can be achieved, which has good universality.
  • the second area is the area where the screen is located below the hinge in the horizontal screen hovering state.
  • the display of controls in the second area can avoid the hinge area, that is, avoid the area where the screen is bent into an arc, which not only does not affect the user's viewing of the application interface, but 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 in the second area, which further improves the user's experience.
  • the embodiment of the present application further provides an electronic device, which includes corresponding modules for executing the steps in the embodiment described in the above FIG4 or FIG13.
  • the modules included in the electronic device can be implemented in software and/or hardware.
  • 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 a computer program, and the processor is used to call and execute the computer program, so that the electronic device performs the steps in the embodiment described in Figure 4 or Figure 13 above.
  • 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 FIG. 4 or FIG. 13 above.
  • the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
  • the chip system may be composed of the chip, or may include the chip and other discrete devices.
  • An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the computer program When the computer program is executed by a computer, the computer executes the steps in the embodiment described in Figure 4 or Figure 13 above.
  • An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, enables a computer to execute the steps in the embodiment described in FIG. 4 or FIG. 13 .
  • the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities.
  • each step of the above method embodiment can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software.
  • the above processor can be a general processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general processor can be a microprocessor or the processor can also be any conventional processor.
  • the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor can be combined to perform.
  • the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • 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.
  • 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.
  • RAM random access memory
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • DR RAM direct memory bus random access memory
  • unit may be used to represent a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the device embodiments described above are merely schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment 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.
  • each functional module can be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software When implemented by 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 (programs) 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.
  • the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
  • 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.
  • the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disk (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
  • a magnetic medium e.g., a floppy disk, a hard disk, a magnetic tape
  • an optical medium e.g., a digital versatile disk (DVD)
  • DVD digital versatile disk
  • SSD solid state disk
  • 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.
  • 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform 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 USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请提供了一种应用界面显示方法及相关装置,该方法应用于电子设备,该方法包括:响应于用户操作,进入横屏悬停态;获取目标应用的第一显示内容,该目标应用是运行在前台的应用,该第一显示内容为该电子设备进入横屏悬停态之前,该目标应用的界面中的部分或全部内容;在屏幕的第一区域显示该第一显示内容,第一区域为屏幕在该横屏悬停态下位于铰链的中线以上的区域,铰链用于控制屏幕的开合。电子设备自主感知和判断电子设备是否处于横屏悬停态,在横屏悬停态下,电子设备对目标应用的第一显示内容避开铰链弯曲处进行显示,从而不影响用户的观看和操作,提高用户体验感。

Description

一种应用界面显示方法及相关装置
本申请要求于2023年03月20日提交中国专利局、申请号为202310312941.8、申请名称为“一种应用界面显示方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种应用界面显示方法及相关装置。
背景技术
随着终端技术中终端屏幕制造技术地不断发展,越来越多的折叠屏电子设备应运而生。屏幕可折叠的电子设备具有展开态、悬停态和折叠态。
目前,在屏幕可折叠的电子设备处于横屏悬停态时,大多数应用(application,APP)不具有自适应横屏悬停态来显示应用界面的能力,这些应用的应用界面因屏幕的折叠弧度而存在弯折,影响用户对应用界面中弯折区域的内容的观看和/或操作,用户体验感较差。
发明内容
本申请提供了一种应用界面显示方法及相关装置,以期提高用户体验感。
第一方面,本申请提供了一种应用界面显示方法,该方法可以由电子设备来执行,或者,该方法也可以由配置在电子设备中的部件(如芯片、芯片系统等)执行,或者,还可以由能够实现全部或部分电子设备功能的逻辑模块或软件实现,本申请对此不作限定。该电子设备中安装有一个或多个应用。
示例性地,该方法包括:响应于用户操作,进入横屏悬停态;获取目标应用的第一显示内容,该目标应用是运行在前台的应用,该第一显示内容为该电子设备进入横屏悬停态之前,该目标应用的界面中的部分或全部内容;在屏幕的第一区域显示该第一显示内容,第一区域为屏幕在该横屏悬停态下位于铰链的中线以上的区域,铰链用于控制屏幕的开合。
基于上述方案,电子设备自主感知和判断电子设备是否处于横屏悬停态,在横屏悬停态下,电子设备对目标应用的第一显示内容避开铰链弯曲处进行显示,从而不影响用户的观看和操作,提高用户体验感。
结合第一方面,在某些可能的实现方式中,该第一显示内容为进入横屏悬停态之前该目标应用的界面中的部分内容,该界面还包括用于控制第一显示内容的控件和/或第一显示内容的相关页。
结合第一方面,在某些可能的实现方式中,该方法还包括:在屏幕的第二区域显示控件,第二区域为屏幕在横屏悬停态下位于铰链以下的区域;或者,在屏幕的第二区域显示控件或相关页中的一项,以及翻页控件,该翻页控件用于控制该控件和该相关页之间的切换;或者,在屏幕的第二区域显示相关页,并在屏幕的第一区域显示控件。
第二区域为屏幕在横屏悬停态下位于铰链以下的区域,在第二区域显示控件可以避开铰链区域,也即避开屏幕弯折成弧度的区域,不仅不影响用户对应用界面的观看,而且还便于用户对控件的操作。且在电子设备的第二区域平行放置在桌面上时,对第二区域上显示的控件进行操作,不容易将该电子设备推翻倒,进一步提高了用户的体验感。
结合第一方面,在某些可能的实现方式中,目标应用包括:用于播放视频的应用、或用于拍照或摄像的应用、或用于线上会议的应用。
例如,用于播放视频的应用为目标应用,在播放视频的场景中,第一显示内容为视频画面,用于控制该第一显示内容的控件包括视频控件,例如包括但不限于暂定/播放视频的控件、进度条控件、倍速播放控件等;该第一显示内容的相关页包括但不限于该视屏画面的详情页等。
又例如,用于拍照或摄像的应用为目标应用,在拍照或摄像的场景中,第一显示内容为摄像头获取到的画面,用于控制该第一显示内容的控件包括但不限于拍照控件、摄像控件、焦距调节控件等;该第一显示内容的相关页包括但不限于拍照模板、摄像模板等。
再例如,用于线上会议的应用为目标应用,在线上会议场景中,第一显示内容为会议画面(例如包括但不限于桌面共享的画面等),第一显示内容的控件包括画笔控件、录屏控件、放大/缩小会议窗口的控件等;该第一显示内容的相关页包括但不限于会议聊天窗口等。
结合第一方面,在某些可能的实现方式中,所述前台运行有多个应用,该目标应用为在该电子设备进入横屏悬停态之前,用户最近一次操作的应用,该操作为除退出应用操作以外的任意操作;或者,前台运行有分屏显示的两个应用,该目标应用为这两个应用中,在该电子设备进入横屏悬停态时,位于第一区域的应用。
结合第一方面,在某些可能的实现方式中,所述界面为预设列表中的界面,该预设列表包括界面标识和界面标识所对应的应用标识。
结合第一方面,在某些可能的实现方式中,该方法还包括:在检测到该电子设备处于横屏,且第一屏幕与第二屏幕的夹角在预设范围内的情况下,确定该电子设备处于横屏悬停态,第一屏幕与第二屏幕是铰链两边的屏幕。
结合第一方面,在某些可能的实现方式中,在屏幕的第一区域显示第一显示内容之前,该方法还包括:在该电子设备处于横屏悬停态,且检测到该电子设备的自动旋转功能关闭的情况下,打开该自动旋转功能。
结合第一方面,在某些可能的实现方式中,在屏幕的第一区域显示第一显示内容之后,该方法还包括:在检测到该电子设备退出横屏悬停态的情况下,或者,响应于用户对自动旋转功能的关闭操作,关闭所述自动旋转功能。
第二方面,本申请提供了一种电子设备,该电子设备可以用于实现上述第一方面及第一方面任意一种可能实现方式中的方法。该电子设备包括用于执行上述方法的相应的模块。该电子设备包括的模块可以通过软件和/或硬件方式实现。
第三方面,本申请提供一种电子设备,该电子设备至少包括一个处理器和至少一个通信接口。该处理器与通信接口耦合,可用于执行计算机程序,以实现第一方面以及第一方面中任一种可能实现方式中的应用界面显示方法。
可选地,该电子设备还包括存储器,处理器与存储器耦合。
第四方面,本申请提供了一种芯片系统,该芯片系统包括至少一个处理器,用于支持实现上述第一方面以及第一方面任一种可能实现方式所涉及的功能例如,处理上述方法中所涉及的数据等。
在一种可能的设计中,该芯片系统还包括存储器,存储器用于保存程序指令和数据,存储器位于处理器之内或处理器之外。
该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
第五方面,提供了一种计算机可读存储介质,所述计算机存储介质上存储有计算机程序(也可以称为代码,或指令),当所述计算机程序在被计算机运行时,使得上述第一方面以及第一方面中任一种可能实现方式中的方法被执行。
第六方面,提供了一种计算机程序产品。所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得上述第一方面以及第一方面中任一种可能实现方式中的方法被执行。
应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1是适用于本申请实施例提供的应用界面显示方法的电子设备的一种结构示意图;
图2是适用于本申请实施例提供的应用界面显示方法的电子设备的侧视图;
图3是适用于本申请实施例提供的应用界面显示方法的电子设备不同状态的示意图;
图4是本申请实施例提供的应用界面显示方法的一种示意性流程图;
图5是本申请实施例提供的一种确定目标应用的场景示意图;
图6是本申请实施例提供的另一种确定目标应用的场景示意图;
图7是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的一种示意图;
图8是适用于本申请实施例提供的应用界面显示方法的在电子设备进入横屏悬停态之前的界面示意图;
图9是适用于本申请实施例提供的应用界面显示方法的在电子设备进入横屏悬停态之后的界面示意图;
图10是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的另一种示意图;
图11是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的又一种示意图;
图12是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的再一种示意图;
图13是本申请实施例提供的应用界面显示方法的另一种示意性流程图。
具体实施方式
下面将结合附图,对本申请中的技术方案进行描述。
第一,在本申请实施例中,采用了“第一”和“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一显示内容和第二显示内容是为了区别不同的显示内容,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”和“第二”等字样并不对数量和执行次序进行限定,并且“第一”和“第二”等字样也并不限定一定不同。
第二,在本申请实施例中,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列模组、模块或单元的装置、系统、产品或设备不必限于清楚地列出的那些模组、模块或单元,而是可包括没有清楚地列出的或对于这些装置、系统、产品或设备固有的其它模组、模块或单元。
第三,在本申请实施例中,“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系,但并不排除表示前后关联对象是一种“和”的关系的情况,具体表示的含义可以结合上下文进行理解。
第四,本申请实施例中,“示例性地”、“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
以下在详细说明本申请实施例提供的应用界面显示方法之前,先结合图1对适用于本申请实施例的电子设备进行示例性的说明。
本申请实施例提供的应用界面显示方法可以应用于屏幕可折叠的电子设备,例如可折叠手机等。本申请实施例对电子设备的具体类型不作任何限定。
此外,本申请实施例中所述的方法可以支持安卓操作系统(Android operating system,Android OS)、HarmonyOS、OpenHarmony等操作系统。本申请实施例对此不作任何限定。
图1是适用于本申请实施例提供的应用界面显示方法的电子设备的一种结构示意图。
示例性地,图1示出了电子设备100的结构示意图。如图1所示,该电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、按键190、马达191、指示器192、摄像头193、显示屏194、以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L和骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、存储器、视频编解码器、数字信号处理器(digital signal processor,DSP)、基带处理器及神经网络处理器(neural-network processing unit,NPU)等中的一个或多个。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,应用处理器通过音频模块170(如扬声器170A等)输出声音信号,或通过显示屏194显示 图像或视频。
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
处理器110可以通过执行指令,执行不同的操作,以实现不同的功能。该指令例如可以是设备出厂前预先保存在存储器中的指令,也可以是用户在使用过程中安装新的APP之后从APP中读取到的指令,本申请实施例对此不作任何限定。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口、集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、通用输入输出(general-purpose input/output,GPIO)接口、SIM接口和/或USB接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如增强现实(augmented reality,AR)设备等。可以理解的是,本申请示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。
电源管理模块141用于连接电池142、充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193、和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT)、全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信(near field communication,NFC)技术、红外(infrared,IR)技术等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)、第五代(5th generation,5G)通信系统、BT、GNSS、 WLAN、NFC、FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS)、全球导航卫星系统(global navigation satellite system,GLONASS)、北斗卫星导航系统(BeiDou navigation satellite system,BDS)、准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100可以通过GPU、显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194,也可以称为屏幕,可用于显示图像、视频等。显示屏194可包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flexible light-emitting diode,FLED)、迷你LED(Mini LED)、微Led(Micro LED)、微OLED(Micro-OLED)、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括一个或多个显示屏194。
应理解,显示屏194还可以包括更多的组件。例如,背光板、驱动电路等。其中,背光板可用于提供光源,显示面板基于背光板提供的光源而发光。驱动电路可用于控制液晶层的液晶透光或不透光。
电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,例如扬声器170A、受话器170B、麦克风170C和耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放、录音等。
可以理解的是,本申请示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
电子设备100的软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构或云架构,其中,分层架构将电子设备100的软件系统分成若干个层,每一层都有清晰的角色和分工,层与层之间通过软件接口通信。本申请以分层架构的HarmonyOS、OpenHarmony和安卓等操作系统为例,但不应对本申请实施例所提供的应用界面显示方法所使用的电子设备的操作系统的类型产生限定。
随着终端技术中终端屏幕制造技术地不断发展,越来越多的折叠屏电子设备应运而生。屏幕可折叠的电子设备可以具有展开态、悬停态和折叠态。
为了便于理解,以下对本申请中涉及到的屏幕可折叠的电子设备的不同状态进行说明。
以下结合图2对电子设备的不同状态进行简单说明。
图2是适用于本申请实施例提供的应用界面显示方法的电子设备的侧视图。
为了便于描述,本申请中将屏幕的铰链两边的屏幕分别记为第一屏幕和第二屏幕。铰链可以理解为用来连接两个固体并允许这两个固体之间做相对转动的机械装置。
如图2所示,第一屏幕与第二屏幕之间的夹角小于或等于第一夹角阈值,且大于或等于第二夹角阈值的情况下,电子设备处于悬停态。在第一屏幕与第二屏幕之间的夹角大于第一夹角阈值的情况下,电子设备处于展开态。在第一屏幕与第二屏幕之间的夹角小于第二夹角阈值的情况下,电子设备处于折叠态。
可以理解的是,不同型号的屏幕可折叠的电子设备的第一夹角阈值和第二夹角阈值的取值可能有所不同,本申请对第一夹角阈值和第二夹角阈值的取值不作限定。作为示例而非限定,在一些实施例中,第一夹角阈值可以为140度,第二夹角阈值可以为25度。
图3是适用于本申请实施例提供的应用界面显示方法的电子设备不同状态的示意图。
屏幕可折叠的电子设备可以具有不同的状态。例如,图3的a)示出了电子设备处于竖屏展开态;图3的b)示出了电子设备处于竖屏悬停态;图3的c)示出了电子设备处于竖屏折叠态;图3的d)示出了电子设备处于横屏展开态;图3的e)示出了电子设备处于横屏悬停态;图3的f)示出了电子设备处于横屏折叠态。
应理解,图3中示出的虚线部分表示电子设备的屏幕的铰链的位置。
可以理解的是,电子设备竖屏且处于悬停态,也即电子设备处于竖屏悬停态;电子设备横屏且处于悬停态,也即电子设备处于横屏悬停态。
目前,在屏幕可折叠的电子设备处于横屏悬停态时,大多数应用(application,APP)不具有自适应横屏悬停态来显示应用界面的能力,这些应用的应用界面因屏幕的折叠弧度而存在弯折,影响用户对应用界面中弯折区域的内容的观看和/或操作,用户体验感较差。
针对上述问题,本申请提供一种应用界面显示方法及相关装置,电子设备自主感知判断电子设备是否处于横屏悬停态,在横屏悬停态下,电子设备对目标应用的第一显示内容避开铰链弯曲处进行显示,从而不影响用户的观看和操作,提高用户体验感。
在本申请实施例中,涉及到的应用包括第三方应用和系统应用。
以下结合图4对本申请提供的应用界面显示方法进行说明。
图4是本申请实施例提供的应用界面显示方法的一种示意性流程图。
如图4所示,方法400可以包括步骤410至步骤430。该方法400的步骤可以由电子设备执行,或者,该方法400也可以由配置在电子设备中的部件(如芯片、芯片系统等)执行,或者,还可以由能够实现全部或部分电子设备功能的逻辑模块或软件实现,本申请实施例对此不作限定。
电子设备可以具有如图1所示的结构,本申请实施例对此不作限定。下面对图4中的各步骤做详细说明。
步骤410:响应于用户操作,进入横屏悬停态。
电子设备可以响应于用户对该电子设备的屏幕旋转操作和/或屏幕角度调整操作(包括屏幕折叠操作或屏幕打开操作),进入横屏悬停态。
例如,如果电子设备的初始状态为如图3的a)所示出的竖屏展开态,则电子设备可以响应于用户对该电子设备的屏幕旋转操作,进入如图3的d)所示出的横屏展开态,再响应于用户对该电子设备的屏幕折叠操作,进入如图3的e)所示出的横屏悬停态。
又例如,如果电子设备的初始状态为如图3的a)所示出的竖屏展开态,则电子设备可以响应于用户对该电子设备的屏幕折叠操作,进入如图3的b)所示出的竖屏悬停态,再响应于用户对该电子设备的屏幕旋转操作,进入如图3的e)所示出的横屏悬停态。
再例如,如果电子设备的初始状态为如图3的c)所示出的竖屏折叠态,则电子设备可以响应于用户对该电子设备的屏幕打开操作,进入如图3的b)所示出的竖屏悬停态,再响应于用户对该电子设备的屏幕旋转操作,进入如图3的e)所示出的横屏悬停态。
应理解,在本申请实施例中,电子设备的初始状态可以包括除横屏悬停态以外的任何一种状态,本申请对此不作限定,只要电子设备可以响应于用户的操作,进入横屏悬停态即可。
在一些实施例中,方法400还包括:在检测到电子设备处于横屏,且第一屏幕与第二屏幕的夹角在预设范围内的情况下,确定电子设备处于横屏悬停态,第一屏幕和第二屏幕是铰链两边的屏幕。
也就是说,电子设备可以自主感知和判断自身是否处于横屏悬停态。
作为示例而非限定,电子设备可以基于陀螺仪传感器,检测并判断自身是否处于横屏,并且还可以基于角度传感器检测并判断第一屏幕与第二屏幕的夹角是否在预设范围内,在检测到自身处于横屏,且第一屏幕与第二屏幕的夹角在预设范围内的情况下,电子设备确定自身处于横屏悬停态。
步骤420:获取目标应用的第一显示内容。
目标应用是运行在该电子设备的前台的应用。第一显示内容为该电子设备在进入横屏悬停态之前目 标应用的界面中的部分或全部内容。
电子设备在确定自身进入横屏悬停态的情况下,可以获取目标应用的第一显示内容。第一显示内容与目标应用的类型相关。
在一些实施例中,第一显示内容为进入横屏悬停态之前该目标应用的界面中的部分内容,该界面还包括用于控制该第一显示内容的控件和/或该第一显示内容的相关页。
在第一显示内容为该电子设备在进入横屏悬停态之前目标应用的界面中的部分内容的情况下,目标应用的类型可以是预先定义的第一类应用。另外,在进入横屏悬停态之前目标应用的界面中还包括用于控制该第一显示内容的控件和/或该第一显示内容的相关页。
可选地,目标应用可以包括但不限于用于播放视频的应用、用于拍照或摄像的应用或用于线上会议的应用。
例如,用于播放视频的应用为目标应用,在播放视频的场景中,第一显示内容为视频画面,用于控制该第一显示内容的控件包括视频控件,例如包括但不限于暂定/播放视频的控件、进度条控件、倍速播放控件等;该第一显示内容的相关页包括但不限于该视屏画面的详情页等。
又例如,用于拍照或摄像的应用为目标应用,在拍照或摄像的场景中,第一显示内容为摄像头获取到的画面,用于控制该第一显示内容的控件包括但不限于拍照控件、摄像控件、焦距调节控件等;该第一显示内容的相关页包括但不限于拍照模板、摄像模板等。
再例如,用于线上会议的应用为目标应用,在线上会议场景中,第一显示内容为会议画面(例如包括但不限于桌面共享的画面等),第一显示内容的控件包括画笔控件、录屏控件、放大/缩小会议窗口的控件等;该第一显示内容的相关页包括但不限于会议聊天窗口等。
在一些实施例中,目标应用为预设的第二类应用,第一显示内容为进入横屏悬停态之前目标应用的界面中的全部内容。
与第一类应用不同的是,在目标应用的类型为第二类应用的情况下,第一显示内容为该电子设备在进入横屏悬停态之前目标应用的界面中的部分内容。
作为示例而非限定,第二类应用包括但不限于用于导航的应用或运动健康类的应用。
第一类应用和第二类应用可以是预先定义的应用类型。
可选地,在电子设备出厂前,电子设备中可以预先部署有应用列表(为了便于描述,将该应用列表记为应用白名单),该应用白名单中可以包括至少一个应用的标识以及该至少一个应用中的每个应用所对应的应用类型。该应用列表可以支持云端更新,例如,该应用白名单可以随着该电子设备的操作系统的版本的更新而更新,本申请对此不作限定。
可选地,电子设备的操作系统可以为应用提供注册接口,用户在使用该电子设备时,在安装应用的过程中,应用可以调用该注册接口,以实现对第一类应用或第二类应用的注册,从而电子设备就可以知道该电子设备上的哪些应用是第一类应用,哪些应用是第二类应用,哪些应用既不是第一类应用,也不是第二类应用。这样一来,就相当于电子设备上维护有一套应用白名单。
如果应用白名单中的某一个应用在电子设备的前台运行,在电子设备进入横屏悬停态的情况下,则该应用就是目标应用;如果该应用白名单中的多个应用在电子设备的前台运行,在电子设备进入横屏悬停态的情况下,电子设备可以根据第一预设条件,从这多个应用中确定出一个应用作为目标应用。
可选地,前台运行有多个应用,目标应用为在电子设备进入横屏悬停态之前,用户最近一次操作的应用,该操作为除退出应用操作以外的任意操作。
也就是说,在电子设备的前台运行着多个应用的情况下,第一预设条件可以包括目标应用为在该电子设备进入横屏悬停态之前,用户最近一次操作的应用。
图5是本申请实施例提供的一种确定目标应用的场景示意图。
如图5所示,电子设备的前台运行有应用A、应用B、应用C和应用D,其中,应用A和应用B是以铰链(虚线区域)的中线为分屏分割线分屏运行的两个应用,应用C和应用D是以悬浮窗口运行的两个应用。例如,在电子设备进入横屏悬停态之前,用户最近一次是对应用B进行了操作,则在电子设备进入横屏悬停态时,应用B就是目标应用。
可选地,前台运行有分屏显示的两个应用,目标应用为这两个应用中,在电子设备进入横屏悬停态时,位于第一区域的应用。
也就是说,在电子设备的前台以分屏模式运行着两个应用的情况下,第一预设条件可以包括目标应用为在电子设备进入横屏悬停态时,位于第一区域的应用。第一区域为电子设备的屏幕在横屏悬停态下,位于铰链的中线以上的区域。
图6是本申请实施例提供的另一种确定目标应用的场景示意图。
如图6的a)所示,电子设备的前台以分屏模式运行着应用E和应用F。
本申请实施例中,电子设备处于竖屏悬停态且分屏时,当电子设备从竖屏悬停态或竖屏展开态旋转为横屏悬停态,根据电子设备的旋转方向,将电子设备旋转之后位于铰链的中线以上的区域的应用作为目标应用。
例如,在电子设备从如图6的a)所示的竖屏悬停态,向右旋转,进入如图6的b)所示的横屏悬停态,在电子设备进入横屏悬停态时,应用E位于第一区域,也即应用E位于铰链的中线以上的区域,则应用E为目标应用。
又例如,在电子设备从如图6的a)所示的竖屏悬停态,向左旋转,进入如图6的c)所示的横屏悬停态,在电子设备进入横屏悬停态时,应用F位于第一区域,也即应用F位于铰链的中线以上的区域,则应用F为目标应用。
在一些实施例中,界面为预设列表中的界面,预设列表包括界面标识和界面标识所对应的应用标识。
与上述应用白名单类似,该预设列表(为了便于描述,将该预设列表记为应用界面白名单)可以是在电子设备出厂前预先部署的,也可以是,通过安装应用时,应用向电子设备的操作系统注册而逐渐形成的。
可选地,在电子设备出厂前,电子设备中可以预先部署有应用界面白名单,该应用界面白名单中可以包括至少一个应用界面的界面标识以及该至少一个应用界面所属应用的应用标识。该应用界面白名单还可以包括,应用标识所对应的应用的类型,例如上文所述的第一类应用和第二类应用,这样一来,应用界面白名单就可以包括第一类界面和第二类界面,第一类界面对应于第一类应用,第二类界面对应于第二应用。该应用界面白名单可以支持云端更新,例如,该应用界面白名单可以随着该电子设备的操作系统的版本的更新而更新,本申请对此不作限定。
可选地,电子设备的操作系统可以为应用提供注册接口,应用在安装的过程中可以调用注册接口,以实现对应用界面的注册,从而电子设备就可以知道该电子设备上的哪些应用的哪些界面可以是在电子设备进入横向悬停态时需要在第一区域显示第一显示内容的界面(为了便于描述,将该界面记为备选界面)。
作为示例而非限定,在一些实施例中,在电子设备进入横屏悬停态的情况下,电子设备可以根据应用的界面的布局、应用界面是否包括控件等条件,来判断应用的界面是否为备选界面。在确定应用的界面为备选界面的情况下,电子设备可以获取该备选界面中的第一显示内容。
如果在电子设备进入横屏悬停态之前,电子设备的前台运行着一个应用,且该应用的界面属于应用界面白名单中的界面,或者,电子设备判断出该界面为备选界面,则在电子设备进入横屏悬停态的情况下,电子设备可以获取该备选界面中的第一显示内容;如果该应用的界面不属于应用界面白名单中的界面,或者,电子设备判断出该界面不是备选界面,则在电子设备进入横屏悬停态的情况下,电子设备不需要对该应用的显示内容避开铰链弯曲处进行显示。
如果在电子设备进入横屏悬停态之前,电子设备的前台运行着多个应用,且这多个应用显示的界面中有至少两个界面属于应用界面白名单中的界面,或者,电子设备判断出这多个应用显示的界面中有至少两个界面为备选界面,在电子设备进入横屏悬停态的情况下,电子设备可以根据第二预设条件,从这至少两个备选界面中确定出一个目标界面,进而获取该目标界面中的第一显示内容。
一示例,第二预设条件可以包括在该电子设备进入横屏悬停态之前,用户最近一次操作的备选界面为目标界面。可以理解的是,该目标界面所属的应用即为目标应用。例如,如图5所示,如果应用A的界面和应用C的界面属于应用界面白名单中的界面,或者,电子设备判断出应用A的界面和应用C的界面为备选界面,且在电子设备进入横屏悬停态之前,用户最近一次是对应用A的界面进行了操作,则在电子设备进入横屏悬停态时,应用A的界面为目标界面,相应地,应用A就是目标应用。
又一示例,在电子设备的前台以分屏模式运行着两个应用,且这两个应用的界面均属于应用界面白名单中的界面,或者,电子设备判断出这两个应用的界面均为备选界面的情况下,第二预设条件可以包 括目标界面为在电子设备进入横屏悬停态时,位于第一区域的应用的界面。例如,如图6所示,如果应用E的界面和应用F的界面属于应用界面白名单中的界面,或者,电子设备判断出应用E的界面和应用F的界面为备选界面。在电子设备从如图6的a)所示的竖屏悬停态,向右旋转,进入如图6的b)所示的横屏悬停态,在电子设备进入横屏悬停态时,应用E的界面位于第一区域,则应用E的界面为目标界面,相应地,应用E为目标应用。在电子设备从如图6的a)所示的竖屏悬停态,向右旋转,进入如图6的c)所示的横屏悬停态,在电子设备进入横屏悬停态时,应用F的界面位于第一区域,则应用F的界面为目标界面,相应地,应用F为目标应用。
可以理解的是,如果多个应用中,只有一个应用的界面属于应用界面白名单中的界面,或者,被电子设备判断是备选界面的界面,则该应用的界面就是目标界面,相应地,该应用就是目标应用。
如果多个应用的界面都不属于应用界面白名单中的界面,或者,电子设备判断出这多个应用的界面都不是备选界面,则在电子设备进入横屏悬停态的情况下,电子设备不需要对该应用的显示内容避开铰链弯曲处进行显示。
步骤430:在屏幕的第一区域显示第一显示内容。
上文已述及,第一区域为屏幕在横屏悬停态下位于铰链的中线以上的区域。铰链用于控制屏幕的开合。
如果目标应用属于第一类应用,电子设备可以将目标应用的第一显示内容从表面视图(surface view)中抽离出来,并在第一区域新增显示图层,将抽离出的第一显示内容挂载到第一区域新增的显示图层上显示。
对于第一类应用,电子设备可以在第二区域显示第一显示内容以外的其他内容。
第二区域为屏幕在横屏悬停态下位于铰链以下的区域。例如,铰链的宽度为2厘米(centimeter,cm),则第二区域可以为铰链的中线以下1(由2÷2得到)cm以外的区域。避开铰链所在的区域,也就相当于避开了因屏幕折叠形成弧度而影响用户观看和操作的区域。
以下结合几种可能的实现方式进行详细说明。
在一些实施例中,方法400还可以包括:在屏幕的第二区域显示控件。
关于控件的描述可以参看上文中的相关内容,为了简洁,此处不再赘述。
图7是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的一种示意图。
如图7所示,第一区域为第一显示内容的显示区域,也即第一区域用于显示第一显示内容;第二区域为控件的显示区域,也即第二区域用于显示控件。
电子设备可以将目标应用的活动记录(activity record)(也可以理解为显示区域)强制修改为第二区域,从而就可以在屏幕的第二区域显示控件;以及,上文已述及,电子设备可以将目标应用的第一显示内容从表面视图中抽离出来,并在第一区域新增显示图层,将抽离出的第一显示内容挂载到第一区域新增的显示图层上显示。
图8是适用于本申请实施例提供的应用界面显示方法的在电子设备进入横屏悬停态之前的界面示意图。
如图8所示,以播放视频的场景为例,如图8的a)所示,在电子设备进入横屏悬停态之前,电子设备以横屏展开态全屏播放视频;如图8的b)所示,在电子设备进入横屏悬停态之前,电子设备以横屏展开态在带有视频详情页的应用界面上非全屏播放视频。
在用户对电子设备进行屏幕折叠操作,电子设备响应于用户的操作,进入横屏悬停态时,电子设备获取到如图8所示的视频画面和控件,并在第一区域显示视频画面,在第二区域显示控件。
第二区域为屏幕在横屏悬停态下位于铰链以下的区域,在第二区域显示控件可以避开铰链区域,也即避开屏幕弯折成弧度的区域,不仅不影响用户对应用界面的观看,而且还便于用户对控件的操作。且在电子设备的第二区域平行放置在桌面上时,对第二区域上显示的控件进行操作,不容易将该电子设备推翻倒,进一步提高了用户的体验感。
可选地,电子设备在进入横屏悬停态时,可以结合屏幕的旋转和/或折叠,显示一些动态效果(可简称为动效)。
可以理解的是,在电子设备进入横向悬停态时可以结合屏幕旋转和屏幕折叠的场景,设置动效效果。例如,在电子设备从竖屏悬停态旋转到横屏悬停态时,电子设备会同时执行窗口位移、窗口旋转、窗口 透明度和窗口缩放等动态效果。
图9是适用于本申请实施例提供的应用界面显示方法的在电子设备进入横屏悬停态之后的界面示意图。
作为示例而非限定,以视屏播放场景为例,在从图8的a)或b)所示的视频播放界面进入横屏悬停态的显示界面的过程中,如图9的a)所示,视频画面可以向第一区域移动,控件可以向第二区域移动,最后,以如图9的b)所示的界面,在第一区域显示视频画面,在第二区域显示控件。
从竖屏展开态和竖屏悬停态进入横屏悬停态时,动态效果可以比图9所示的从图9的a)至图9的b)的动态效果多一个视屏画面和控件随着电子设备的旋转方向而旋转的动态效果,为了简洁,此处不再赘述。
作为示例而非限定,动态效果的参数可以包括但不限定:窗口旋转参数、窗口位移参数、窗口缩放参数、窗口透明度参数、信息层透明度参数、背景透明度参数等。
在一些实施例中,方法400还可以包括:在屏幕的第二区域显示控件或相关页中的一项,以及翻页控件,该翻页控件用于控制控件和相关页之间的切换。
图10是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的另一种示意图。
如图10所示,第一区域为第一显示内容的显示区域,也即第一区域用于显示第一显示内容;第二区域为控件的显示区域和相关页的显示区域,也即第二区域用于显示控件和相关页。如图10的a)所示,在屏幕的第一区域显示第一显示内容,在屏幕的第二区域显示控件和翻页控件,用户可以通过点击翻页控件,来切换第一区域的显示内容,例如,电子设备可以响应于用户点击翻页控件的操作,从如图10的a)所示的界面切换为如图10的b)所示的界面,图10的b)中的第二区域显示出了相关页。可以理解的是,电子设备还可以响应于用户对如图10的b)所示的第二区域中的翻页控件的操作,再切换到如图10的b)所示的界面。
本申请实施例对翻页控件的具体形态和在第二区域中的具体位置不作任何限定。
在一些实施例中,方法400还可以包括:在屏幕的第二区域显示相关页,并在屏幕的第一区域显示控件。
图11是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的又一种示意图。
如图11的a)所示,第一区域为第一显示内容和控件的显示区域,也即第一区域用于显示第一显示内容和控件;第二区域为相关页的显示区域,也即第二区域用于显示相关页。以视屏播放场景为例,如果在电子设备进入横屏悬停态之前,电子设备所显示如图8的b)所示的界面,则在电子设备进入横屏悬停态之后,如图11的b)所示,第一区域用于显示视频画面和控件,第二区域用于显示视屏画面的详情页。
作为示例而非限定,为了使显示界面更具有美感,可以根据相关页的底色来对铰链的中线至第二区域的上边界的区域进行同色背景填充,也就是说,在铰链的中线至第二区域的上边界的区域,显示与相关页的底色相同的背景。本申请对此不作任何限定。
如果目标应用属于第二类应用,电子设备可以将目标应用的显示区域强制修改为第一区域,从而就可以在屏幕的第一区域显示第一显示内容。另外,作为示例而非限定,还可以在屏幕的第二区域添加预设颜色的背景的表面图层。
图12是适用于本申请实施例提供的应用界面显示方法的第一区域和第二区域的再一种示意图。
如图12所示,第一区域为第一显示内容的显示区域,也即第一区域用于显示第一显示内容;第二区域可以不显示内容,或者,可以显示预设颜色的背景,例如黑色背景。
在一些实施例中,在屏幕的第一区域显示第一显示内容之前,方法400还包括:在电子设备处于横屏悬停态,且检测到电子设备的自动旋转功能关闭的情况下,打开自动旋转功能。
可以理解的是,在电子设备的自动旋转功能(例如自动旋转开关)为开启的情况下,应用的界面可以随着电子设备的旋转而发生旋转。但是,在电子设备的自动旋转功能为关闭的情况下,电子设备所显示的画面为以某个显示方向(横屏显示方向或竖屏显示方向)锁定的状态,应用的界面无法随着电子设备的旋转而发生旋转。因此,在屏幕的第一区域显示第一显示内容之前,在电子设备处于横屏悬停态,且电子设备检测到自动旋转功能关闭的情况下,电子设备可以主动打开自动旋转功能,以使得应用的界面可以随着电子设备的旋转而发生旋转。
在一些实施例中,电子设备旋转时,当旋转前的第一区域转变为第二区域,旋转前的第二区域转变为第一区域,旋转前的第一区域的显示内容和旋转前的第二区域的显示内容可以随着电子设备的旋转而交换位置。
在一些实施例中,在屏幕的第一区域显示第一显示内容之后,方法400还包括:在检测到电子设备退出横屏悬停态的情况下,或者,响应于用户对自动旋转功能的关闭操作,关闭自动旋转功能。
在屏幕的第一区域显示第一显示内容之后,电子设备在检测到自身退出横屏悬停态的情况下,也即,电子设备可以在检测到电子设备不处于横屏,或者,检测到第一屏幕与第二屏幕的夹角不在预设范围内的情况下,电子设备可以自动将之前自动打开的自动旋转功能进行关闭。另外,电子设备可以退出在第一区域对第一显示内容的显示,以进入横屏悬停态之前的界面布局,来显示应用的界面,也即,恢复到进入横屏悬停态之前的应用界面。
在电子设备退出横屏悬停态的情况下,电子设备将应用界面恢复到进入横屏悬停态之前的应用界面的过程中,也可以有动态效果。关于动态效果的详细描述可以参看上文中的相关描述,为了简洁,此处不再赘述。
在以分屏模式和/或悬浮窗口模式显示多个应用的界面的情况下,在一些实施例中,在屏幕的第一区域显示第一显示内容之前,电子设备可以自动将这多个应用结束分屏模式和/或悬浮窗口模式,也就是说,在前台退出除目标应用以外的其他应用,这样一来,在屏幕的第一区域显示第一显示内容之后,电子设备退出横屏悬停态的情况下,电子设备可以根据目标应用的布局显示目标应用即可,不需要显示之前运行在前台的除目标应用以外的其他应用的界面;在另一些实施例中,在屏幕的第一区域显示第一显示内容之前,电子设备可以不将这多个应用结束分屏模式和/或悬浮窗口模式,这样一来,在屏幕的第一区域显示第一显示内容之后,电子设备退出横屏悬停态的情况下,电子设备可以显示之前运行在前台的包括目标应用在内的多个应用的界面。
为了便于更好地理解,以下结合图13再次对本申请提供的应用界面显示方法进行简单说明。
图13是本申请实施例提供的应用界面显示方法的另一种示意性流程图。
图13中的步骤可以由电子设备执行,或者,也可以由配置在电子设备中的部件(如芯片、芯片系统等)执行,或者,还可以由能够实现全部或部分电子设备功能的逻辑模块或软件实现,本申请实施例对此不作限定。
步骤131:响应于用户查看第一应用的第一界面操作,显示第一应用的第一界面。
电子设备可以响应于用户查看第一应用的第一界面的操作,绘制渲染第一应用的第一界面,并在屏幕上显示给第一界面。
步骤132:判断第一应用的第一界面是否是应用界面白名单中的界面。
电子设备可以判断第一应用的第一界面是否属于应用界面白名单中的界面,在第一界面是应用界面白名单中的界面的情况下,可以执行步骤133;在第一界面不是应用界面白名单中的界面的情况下,电子设备可以不作处理。
关于应用界面白名单的详细描述可以参看上文中的相关描述,为了简洁,此处不再赘述。
步骤133:判断电子设备是否进入横屏悬停态。
在第一界面是应用界面白名单中的界面的情况下,电子设备可以判断电子设备是否进入横屏悬停态,在电子设备进入横屏悬停态的情况下,电子设备可以执行步骤134;在电子设备未进入横屏悬停态的情况下,电子设备可以不作处理。
需要说明的是,本申请对步骤132和步骤134的执行顺序不作限定,也就是说,在实际应用场景中,可以先执行步骤132,再执行步骤133;也可以先执行步骤133,再执行步骤132。
关于横屏悬停态的详细描述可以参看上文中的相关描述,为了简洁,此处不再赘述。
步骤134:判断第一界面是否为第一类界面。
电子设备可以判断第一界面是否为第一类界面,在第一界面为第一类界面的情况下,可以执行步骤135;在第一界面不是第一类界面的情况下,可以执行步骤136。
步骤135:将第一应用的显示区域强制约束到第二区域,在第一区域创建新的图层,将抽离出的第一界面的第一显示内容挂载到第一区域新增的显示图层上显示。
在第一界面为第一类界面的情况下,电子设备可以将第一应用的显示区域强制修改为第二区域,从 而就可以在屏幕的第二区域显示控件或相关页;以及,电子设备可以将目标应用的第一显示内容从表面视图中抽离出来,并在第一区域新增显示图层,将抽离出的第一显示内容挂载到第一区域新增的显示图层上显示。
步骤136:将第一应用的显示区域强制约束到第一区域,第二区域不显示内容。
在步骤132中已经判断出第一界面属于应用界面白名单中的界面,则第一界面在不是第一类界面的情况下,第一界面就是第二类界面。在第一界面为第二类界面的情况下,电子设备可以将第一应用的显示区域强制修改为第一区域,从而就可以在屏幕的第一区域显示第一显示内容。第二区域可以不显示内容。另外,作为示例而非限定,还可以在屏幕的第二区域添加具有预设颜色的背景的表面图层,也就是说,第二区域可以显示预设颜色的背景,例如黑色背景。
关于第一区域和第二区域的详细描述可以参看上文中的相关内容,为了简洁,此处不再赘述。
基于上述方案,电子设备自主感知和判断电子设备是否处于横屏悬停态,在横屏悬停态下,电子设备对目标应用的第一显示内容避开铰链弯曲处进行显示,从而不影响用户的观看和操作,提高用户体验感。另外,该方法部署在电子设备的操作系统中,整个过程中不需要目标应用自适应横屏悬停态来显示应用界面,就能够实现避开铰链弯曲处对目标应用的第一显示内容的显示,具有较好的普适性。再者,第二区域为屏幕在横屏悬停态下位于铰链以下的区域,在第二区域显示控件可以避开铰链区域,也即避开屏幕弯折成弧度的区域,不仅不影响用户对应用界面的观看,而且还便于用户对控件的操作。且在电子设备的第二区域平行放置在桌面上时,对第二区域上显示的控件进行操作,不容易将该电子设备推翻倒,进一步提高了用户的体验感。
本申请实施例还提供了一种电子设备,该电子设备包括用于执行上述图4或图13所述实施例中的步骤的相应的模块。该电子设备包括的模块可以通过软件和/或硬件方式实现。
本申请实施例还提供一种电子设备,该电子设备包括存储器和处理器,其中,存储器用于存储计算机程序,处理器用于调用并执行计算机程序,以使得该电子设备执行上述图4或图13所述实施例中的步骤。
本申请还提供了一种芯片系统,所述芯片系统包括至少一个处理器,用于实现上述图4或图13所述实施例的步骤中所涉及的功能。
在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存程序指令和数据,存储器位于处理器之内或处理器之外。
该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,当该计算机程序被计算机执行时,使得该计算机执行上述图4或图13所述实施例中的步骤。
本申请实施例还提供一种计算机程序产品,包括计算机程序,当该计算机程序被运行时,使得计算机执行上述图4或图13所述实施例中的步骤。
应理解,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
还应理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式 的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
本说明书中使用的术语“单元”、“模块”等,可用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。在本申请所提供的几个实施例中,应该理解到,所揭露的装置、设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上单元集成在一个模块中。
在上述实施例中,各功能模块的功能可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令(程序)。在计算机上加载和执行所述计算机程序指令(程序)时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通用光盘(digital video disc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种应用界面显示方法,其特征在于,应用于电子设备,所述方法包括:
    响应于用户操作,进入横屏悬停态;
    获取目标应用的第一显示内容,所述目标应用是运行在前台的应用,所述第一显示内容为进入所述横屏悬停态之前所述目标应用的界面中的部分或全部内容;
    在屏幕的第一区域显示所述第一显示内容,所述第一区域为所述屏幕在所述横屏悬停态下位于铰链的中线以上的区域,所述铰链用于控制所述屏幕的开合。
  2. 如权利要求1所述的方法,其特征在于,所述第一显示内容为进入所述横屏悬停态之前所述目标应用的界面中的部分内容,所述界面还包括用于控制所述第一显示内容的控件和/或所述第一显示内容的相关页。
  3. 如权利要求2所述的方法,其特征在于,所述方法还包括:
    在所述屏幕的第二区域显示所述控件,所述第二区域为所述屏幕在所述横屏悬停态下位于所述铰链以下的区域;或者,
    在所述屏幕的第二区域显示所述控件或所述相关页中的一项,以及翻页控件,所述翻页控件用于控制所述控件和所述相关页之间的切换;或者,
    在所述屏幕的第二区域显示所述相关页,并在所述屏幕的第一区域显示所述控件。
  4. 如权利要求2或3所述的方法,其特征在于,所述目标应用包括:用于播放视频的应用、用于拍照或摄像的应用或用于线上会议的应用。
  5. 如权利要求1至4中任一项所述的方法,其特征在于,所述前台运行有多个应用,所述目标应用为在所述电子设备进入所述横屏悬停态之前,用户最近一次操作的应用,所述操作为除退出应用操作以外的任意操作;或者,
    所述前台运行有分屏显示的两个应用,所述目标应用为所述两个应用中,在所述电子设备进入所述横屏悬停态时,位于所述第一区域的应用。
  6. 如权利要求5所述的方法,其特征在于,所述界面为预设列表中的界面,所述预设列表包括界面标识和所述界面标识所对应的应用标识。
  7. 如权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:
    在检测到所述电子设备处于横屏,且第一屏幕与第二屏幕的夹角在预设范围内的情况下,确定所述电子设备处于所述横屏悬停态,所述第一屏幕和所述第二屏幕是所述铰链两边的屏幕。
  8. 如权利要求1至7中任一项所述的方法,其特征在于,所述在屏幕的第一区域显示所述第一显示内容之前,所述方法还包括:
    在所述电子设备处于所述横屏悬停态,且检测到所述电子设备的自动旋转功能关闭的情况下,打开所述自动旋转功能。
  9. 如权利要求8所述的方法,其特征在于,所述在屏幕的第一区域显示所述第一显示内容之后,所述方法还包括:
    在检测到所述电子设备退出所述横屏悬停态的情况下,或者,响应于用户对所述自动旋转功能的关闭操作,关闭所述自动旋转功能。
  10. 一种电子设备,其特征在于,包括处理器和存储器,其中,
    所述存储器用于存储计算机程序;
    所述处理器用于调用所述计算机程序,以使得所述电子设备执行权利要求1至9中任一项所述的方法。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被执行时,使得计算机执行如权利要求1至9中任一项所述的方法。
  12. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被运行时,使得计算机执行如权利要求1至9中任一项所述的方法。
PCT/CN2024/078488 2023-03-20 2024-02-26 一种应用界面显示方法及相关装置 WO2024193298A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310312941.8A CN118672532A (zh) 2023-03-20 2023-03-20 一种应用界面显示方法及相关装置
CN202310312941.8 2023-03-20

Publications (1)

Publication Number Publication Date
WO2024193298A1 true WO2024193298A1 (zh) 2024-09-26

Family

ID=92729759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/078488 WO2024193298A1 (zh) 2023-03-20 2024-02-26 一种应用界面显示方法及相关装置

Country Status (2)

Country Link
CN (1) CN118672532A (zh)
WO (1) WO2024193298A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260093A (zh) * 2015-09-15 2016-01-20 广东欧珀移动通信有限公司 一种智能设置屏幕旋转的方法、装置及移动终端
CN110389802A (zh) * 2019-06-05 2019-10-29 华为技术有限公司 一种柔性屏幕的显示方法及电子设备
EP4068043A1 (en) * 2019-12-02 2022-10-05 Samsung Electronics Co., Ltd. Foldable electronic device comprising camera
CN115562535A (zh) * 2022-01-14 2023-01-03 荣耀终端有限公司 应用控制方法和电子设备
CN115562556A (zh) * 2022-09-01 2023-01-03 Oppo广东移动通信有限公司 界面显示方法、装置、终端及存储介质
CN116339569A (zh) * 2021-12-25 2023-06-27 荣耀终端有限公司 分屏显示的方法、折叠屏设备和计算机可读存储介质
CN117251126A (zh) * 2022-06-10 2023-12-19 华为技术有限公司 折叠屏电子设备显示以及控制方法以及折叠屏电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260093A (zh) * 2015-09-15 2016-01-20 广东欧珀移动通信有限公司 一种智能设置屏幕旋转的方法、装置及移动终端
CN110389802A (zh) * 2019-06-05 2019-10-29 华为技术有限公司 一种柔性屏幕的显示方法及电子设备
EP4068043A1 (en) * 2019-12-02 2022-10-05 Samsung Electronics Co., Ltd. Foldable electronic device comprising camera
CN116339569A (zh) * 2021-12-25 2023-06-27 荣耀终端有限公司 分屏显示的方法、折叠屏设备和计算机可读存储介质
CN115562535A (zh) * 2022-01-14 2023-01-03 荣耀终端有限公司 应用控制方法和电子设备
CN117251126A (zh) * 2022-06-10 2023-12-19 华为技术有限公司 折叠屏电子设备显示以及控制方法以及折叠屏电子设备
CN115562556A (zh) * 2022-09-01 2023-01-03 Oppo广东移动通信有限公司 界面显示方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN118672532A (zh) 2024-09-20

Similar Documents

Publication Publication Date Title
US20210132779A1 (en) Electronic device and method for configuring display thereof
US10659684B2 (en) Apparatus and method for providing dynamic panorama function
WO2020187157A1 (zh) 一种控制方法和电子设备
US10943563B2 (en) Electronic device and displaying method thereof
US20160037067A1 (en) Method for generating image and electronic device thereof
US11281814B2 (en) Screen-on method and related apparatus
US10347221B2 (en) Electronic device and method for controlling display thereof
WO2022135186A1 (zh) 设备控制方法和终端设备
AU2015307358A1 (en) Photographing method and electronic device
CN113553015B (zh) 一种显示方法及电子设备
US20150235366A1 (en) Method for processing image data and apparatus for the same
US20170244890A1 (en) Electronic device and method for controlling operation thereof
CN108605096A (zh) 一种电子设备拍摄方法和装置
CN114115769A (zh) 一种显示方法及电子设备
CN111338519B (zh) 一种显示方法及电子设备
CN108351743B (zh) 内容显示方法和用于实现该方法的电子设备
WO2018045961A1 (zh) 一种图片处理方法及终端、存储介质
WO2020228735A1 (zh) 一种显示应用的方法及电子设备
KR20160089079A (ko) 데이터 송수신 방법 및 장치
KR20160001076A (ko) 데이터 관리 방법 및 그 방법을 처리하는 전자 장치
WO2024193298A1 (zh) 一种应用界面显示方法及相关装置
US9264613B2 (en) Apparatus and method for controlling current consumption of mobile terminal
WO2021121036A1 (zh) 一种折叠设备的自定义按键方法、设备及存储介质
WO2021057565A1 (zh) 处理方法及移动设备
KR20190069268A (ko) 객체센서를 이용한 구도 설정 방법 및 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24773866

Country of ref document: EP

Kind code of ref document: A1