WO2024114051A1 - 显示方法与装置、电子设备 - Google Patents

显示方法与装置、电子设备 Download PDF

Info

Publication number
WO2024114051A1
WO2024114051A1 PCT/CN2023/119109 CN2023119109W WO2024114051A1 WO 2024114051 A1 WO2024114051 A1 WO 2024114051A1 CN 2023119109 W CN2023119109 W CN 2023119109W WO 2024114051 A1 WO2024114051 A1 WO 2024114051A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface content
display area
content
view
interface
Prior art date
Application number
PCT/CN2023/119109
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 WO2024114051A1 publication Critical patent/WO2024114051A1/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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of display, and specifically to a display method and device, and electronic equipment.
  • the unfolded state can be understood as the foldable screen is not folded but in a fully unfolded state
  • the hovering state can be understood as the foldable screen is not completely folded (such as half folded) but in a state of a certain folding angle.
  • the embodiments of the present application provide a display method and device, and an electronic device, in order to solve the problem of how to perform relevant displays when the electronic device enters a hovering state.
  • the first aspect is a display method of the present application, comprising:
  • the first interface content does not provide the user with a function of operating the target application
  • the second interface content provides the user with a function of operating the target application
  • the first interface content has a function of not responding to a user's touch event on the first display area
  • the second interface content has a function of responding to a user's touch event on the second display area to operate the target application.
  • the embodiment of the present application can divide the interface content of the target application into two categories, namely, the first interface content and the second interface content, and display the first interface content and the second interface content on two display areas of the electronic device (folding screen), respectively, that is, the first display area displays the first interface content, and the second display area displays the second interface content, thereby achieving visual UI separation of the interface content of the target application.
  • the interface content of the target application is classified and displayed on different display areas respectively.
  • the interface content used to operate the target application can be displayed on the display area which is easier for the user to operate. This is helpful to avoid the display area swinging due to the user's touch to change the folding angle, etc., thereby improving the user experience.
  • a display device of the present application includes:
  • a display unit configured to display a first interface content of a target application on a first display area of the electronic device, and display a second interface content of the target application on a second display area of the electronic device in response to the electronic device entering a hovering state;
  • the first interface content does not provide the user with a function of operating the target application
  • the second interface content provides the user with a function of operating the target application
  • the first interface content has a function of not responding to a user's touch event on the first display area
  • the second has a function of responding to a user's touch event on the second display area to operate the target application.
  • the third aspect is an electronic device of the present application, comprising a processor, a memory, and a computer program or instructions stored in the memory, wherein the processor executes the computer program or instructions to implement the steps of the method described in the first aspect.
  • the fourth aspect is a computer-readable storage medium of the present application, wherein the computer-readable storage medium stores a computer program or instructions, and when the computer program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
  • the fifth aspect is a computer program product of the present application, comprising a computer program or instructions, wherein the computer program or instructions, when executed by a processor, implement the steps of the method described in the first aspect above.
  • FIG1 is a schematic structural diagram of a folding screen of an electronic device in an unfolded state and a hovering state, respectively, according to an embodiment of the present application;
  • FIG2 is a schematic structural diagram of split screens of a folding screen of an electronic device in an embodiment of the present application in a hovering state;
  • FIG3 is a schematic structural diagram of a split screen of a folding screen of another electronic device in an embodiment of the present application in a hovering state;
  • FIG4 is a schematic flow chart of a display method according to an embodiment of the present application.
  • FIG5 is a schematic diagram of a structure in which an application according to an embodiment of the present application may include multiple Activities
  • FIG6 is a schematic diagram of a process of displaying the first interface content and the second interface content in split screen according to an embodiment of the present application
  • FIG7 is a schematic diagram of a process of creating a new Surface for a first interface content according to an embodiment of the present application
  • FIG8 is a schematic diagram of another process of creating a new Surface for the first interface content according to an embodiment of the present application.
  • FIG. 9 is a flow chart of linking a Surface that comes with the first interface content with a Surface newly created for a view content that does not have a Surface that comes with the first interface content according to an embodiment of the present application;
  • FIG10 is a schematic diagram of a flow chart of linking a Surface provided by a SurfaceView with a new Surface according to an embodiment of the present application;
  • FIG. 11 is a schematic diagram of a process of displaying the first interface content and the second interface content on a split screen according to another embodiment of the present application.
  • FIG12 is a block diagram of functional units of a display device according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application.
  • a and/or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.
  • the symbol “/" can indicate that the objects associated with each other are in an "or” relationship.
  • the symbol “/” can also indicate a division sign, that is, performing a division operation.
  • A/B can indicate A divided by B.
  • the symbol "*" or " ⁇ ” can represent a multiplication sign, that is, a multiplication operation is performed.
  • A*B or A ⁇ B can represent A multiplied by B.
  • At least one item or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more.
  • at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c.
  • each of a, b, and c can be an element or a set containing one or more elements.
  • equal to can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than.
  • equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.
  • folding screen With the use of various types of folding screens, users will fold the folding screen inward or outward along the foldable part according to their own needs, so that the folding screen enters a hovering state from an unfolded state, and divides the entire display area of the folding screen into two display areas along the folding part.
  • FIG1 shows the folding screen 110 in an unfolded state, and the folding screen 110 can be folded inward or outward along the folding portion 120.
  • FIG1 (a) shows the unfolded state of the folding screen 110 in a full-screen landscape orientation
  • FIG1 (b) shows the unfolded state of the folding screen 110 in a full-screen portrait orientation.
  • the folding screen 210 enters the hovering state from the unfolded state so that the entire display area of the folding screen 210 is divided into a display area 2201 and a display area 2202, and an application window 2401 is displayed on the display area 2201, and an application window 2402 is displayed on the display area 2202.
  • FIG2 (a) shows that the folding screen 210 is folded inward along the folding portion 230, so that the folding screen is not completely folded and presents a folding angle between 0 degrees and 90 degrees;
  • FIG2 (b) shows that the folding screen 210 is folded inward along the folding portion 230, so that the folding screen is not completely folded and presents a folding angle between 90 degrees and 180 degrees;
  • FIG2 (c) shows that the folding screen 210 is folded inward along the folding portion 230, so that the folding screen is not completely folded and presents a folding angle between 90 degrees and 180 degrees.
  • the embodiment of the present application can also fold the folding screen outward along the foldable part, and there is no specific limitation on this.
  • the embodiment of the present application needs to specifically study how to display the content displayed in the entire display area of the folding screen in the unfolded state on the two display areas in the hovering state.
  • the electronic device described in the embodiments of the present application may be an entity/unit/module/device, etc., having a communication function of sending and receiving.
  • the types of electronic devices may include handheld devices, vehicle-mounted devices, vehicle-mounted terminals, wearable devices, augmented reality (AR) devices, virtual reality (VR) devices, Internet of Things (IOT) devices, projection devices, projectors, or other devices connected to a wireless modem, and may also include user equipment (UE), terminal device, terminal, mobile terminal, mobile phone, smart screen, smart TV, smart watch, laptop computer, smart speaker, camera, game controller, microphone, station (STA), access point (AP), mobile station (MS), personal digital assistant (PDA), personal computer (PC) or relay device, etc.
  • UE user equipment
  • terminal terminal
  • mobile terminal mobile phone
  • smart screen smart TV
  • smart watch laptop computer
  • smart speaker camera
  • game controller camera
  • STA station
  • AP access point
  • MS mobile station
  • PDA personal digital assistant
  • PC personal computer
  • the wearable device can also be called a smart wearable device, which is a general term for smart devices that use wearable technology to intelligently design and develop daily wearables, such as smart glasses, smart gloves, smart watches, smart bracelets for monitoring various specific features, smart jewelry, etc.
  • the wearable device is a portable device that can be worn directly on the body or integrated into the user's clothing or accessories.
  • the wearable device can not only be equipped with a dedicated hardware architecture, but also with a dedicated software architecture for data interaction, cloud interaction, etc.
  • the wearable smart device can achieve complete or partial functions without relying on other smart devices.
  • the embodiments of the present application do not specifically limit the specific structure of the execution subject of the display method, as long as it can be processed by running a computer program or instruction that records the method provided by the embodiments of the present application, and according to the method provided by the embodiments of the present application.
  • the execution subject of the method provided by the embodiments of the present application can be an electronic device, or a processor/device/module/unit in the electronic device that can call and execute a computer program or instruction, and there is no specific limitation on this.
  • the electronic device of the embodiment of the present application may include at least one of a processor, a sensor component, a display component, a camera component, an input driver, etc. Exemplary descriptions are given below.
  • the processor may be used to run or load an operating system, which may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, Windows operating system, Zephyr operating system, real-time operating system (RTOS), DOS operating system, Mac operating system, ThreadX operating system, embedded operating system, NucleusPlus operating system, etc.
  • an operating system may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, Windows operating system, Zephyr operating system, real-time operating system (RTOS), DOS operating system, Mac operating system, ThreadX operating system, embedded operating system, NucleusPlus operating system, etc.
  • the processor can be viewed as a complete system on chip (SOC).
  • SOC system on chip
  • the processor may include one or more processing units.
  • the processing unit may include at least one of a central processing unit (CPU), an application processor (AP), a microcontroller unit (MCU), a single chip microcomputer (SCM), a single chip microcomputer, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a baseband processor, a neural-network processing unit (NPU), etc.
  • different processing units may be separated or integrated together.
  • a processing unit may be a single core or multiple cores.
  • a processing unit may run or load a multi-core subsystem, wherein the multi-core subsystem may be an operating system with multi-core processing capabilities.
  • the processor may further include a memory for storing computer programs or instructions.
  • the processor may call a program stored in the memory to run an operating system.
  • the memory in the processor can store or cache instructions that the processor has just used or circulated. If the processor needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor and improving system efficiency.
  • the memory in the processor can also store or cache data, and synchronize or transmit the data to other processors for execution.
  • the memory in the processor can be a high-speed cache memory.
  • the processor may include one or more communication interfaces.
  • the communication interface may include at least one of a serial peripheral interface (SPI), an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, etc.
  • SPI serial peripheral 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 subscriber identity module
  • USB universal serial bus
  • the sensing component may be a sensor.
  • the sensing component may include at least one of a gravity sensor, a gyroscope sensor, a magnetometer sensor, an accelerometer, an inertial sensor (such as an inertial motion unit (IMU)), a pressure sensor, an air pressure sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, an ultra-wideband (UWB) sensor, a near field communication (NFC) sensor, a laser sensor and/or a visible light sensor, etc.
  • a gravity sensor such as an inertial motion unit (IMU)
  • IMU inertial motion unit
  • IMU inertial motion unit
  • a display component may be used to display at least one of a user interface, user interface elements and features, user-selectable controls, various displayable objects, and the like.
  • the display component may be a display screen of an electronic device, wherein the display screen may include a folding screen, and the folding screen may be touchable, clickable, and responsive to a touch event or a click event of a user.
  • the display component may include a display panel, wherein 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 quantum dot light-emitting diode (QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active-matrix organic light-emitting diode
  • FLED flexible light-emitting diode
  • QLED quantum dot light-emitting diode
  • the electronic device can realize the display function through a GPU, a display component, and a processor.
  • the GPU can be used to perform mathematical and geometric calculations and perform graphic rendering.
  • the GPU can be a microprocessor for image processing and connect the display component and the processor.
  • the processor may include one or more GPUs, which execute program instructions to generate or change display information.
  • the camera component may be a camera or a camera module, which is used to capture (shoot/scan/collect, etc.) static/dynamic images or videos.
  • the camera assembly may include a lens, a photosensitive element, etc.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal oxide semiconductor
  • the object can generate an optical image through the lens and project it onto the photosensitive element.
  • the photosensitive element can convert the light signal in the optical image into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the device can realize functions such as capturing (shooting/scanning, etc.) images through ISP, DSP, camera components, video codecs, GPU, display components and processors.
  • the ISP can be used to process data fed back by the camera assembly. For example, when taking a photo, the shutter is opened first, and then the light is transmitted through the lens of the camera assembly to the photosensitive element of the camera assembly to convert the light signal into an electrical signal, and finally the electrical signal is transmitted to the ISP through the photosensitive element to be processed and converted into a digital image.
  • the ISP can also perform algorithmic optimization on the noise, brightness, and skin color of the image.
  • the ISP can also optimize parameters such as exposure and color temperature of the shooting scene.
  • the ISP and/or DSP may be provided in the camera assembly.
  • an input driver may be used to process various inputs from a user-operated device.
  • the input driver may be operable to detect and process various click events or touch events, etc.
  • the click event or touch event on the touch screen can simultaneously indicate the area of interest and start scanning the object.
  • the object can be displayed on the touch screen as a preview of the image to be scanned, and the touch event at a specific position on the touch screen indicates the image that should be scanned.
  • the software architecture of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture.
  • the following embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software architecture of the electronic device.
  • the electronic device may include at least one of a kernel layer, a system runtime layer, an application framework layer, and an application layer.
  • the layers communicate with each other through software interfaces, and the kernel layer, system runtime layer and application framework layer belong to the operating system space.
  • the application layer belongs to the user space, and at least one application program (or simply referred to as "application”) runs on the application layer.
  • applications can be native applications that come with the operating system or third-party applications developed by third-party developers.
  • the application layer may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, message notification, video, and short message.
  • applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, message notification, video, and short message.
  • the application framework layer can provide various application programming interfaces (APIs) and programming frameworks that may be used by applications that build the application layer, so that developers can also build their own applications by using these APIs.
  • APIs application programming interfaces
  • programming frameworks that may be used by applications that build the application layer, so that developers can also build their own applications by using these APIs.
  • window manager For example, window manager, content providers, view system, telephony manager, resource manager, notification manager, message manager, activity manager, package manager, location manager and NFC service.
  • the window manager can be used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • content providers can be used to store and retrieve data and make the data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • content providers can allow applications to access the data of another application, such as a contact database, or share their own data.
  • the view system includes visual controls.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device, for example, management of call status (such as connected, hung up, etc.).
  • the resource manager can provide various resources for the application, such as localized strings, icons, images, layout files, video files, etc.
  • the notification manager enables applications to display notification messages in the status bar, etc., which can be used to convey the type of notification messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, message notifications, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text.
  • notifications of applications running in the background can also be notifications that appear on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device vibrates, the indicator light flashes, etc.
  • the message manager may be used to store the data of messages reported by each application and process the data reported by each application.
  • the activity manager can be used to manage the application life cycle and provide a common navigation back function.
  • the message manager can be a part of the notification manager.
  • the system runtime layer can provide major feature support for the Android system through some C/C++ libraries.
  • the SQLite library provides database support
  • the OpenGL/ES library provides 3D drawing support
  • the Webkit library provides browser kernel support.
  • the system runtime layer 340 also provides an Android Runtime library (Android Runtime), which mainly provides some core libraries that allow developers to use the Java language to write Android applications.
  • the kernel layer can provide underlying drivers for various hardware of electronic devices, such as display driver, audio driver, camera driver, Bluetooth driver, Wi-Fi driver, power management, NFC driver, UWB driver, etc.
  • the interface content displayed in the application window on the entire display area of the folding screen is usually placed in the upper display area by adjusting the size of the application window, and the application The entire interface content will be displayed in the upper display area, while only a touch panel window will be displayed in the lower display area.
  • the touch panel window can be a window customized by the device manufacturer, which is used to map the user's application touch events to operate the application, such as mapping left/right swiping to fast forward, swiping up and down to adjust brightness/volume, and other application touch events.
  • the upper display area will provide users with the functions of operating the entire application, while the lower display area will only provide users with partial functions of operating the application, and the functions are relatively simple.
  • users want to fully operate the application they can only touch the upper display area.
  • the folding screen is in a half-closed state, it will be difficult for users to touch the upper display area, and it is easy to exit the hover mode due to user operations, resulting in a poor user experience.
  • the folding screen 310 is in an unfolded state, and the interface content of the music playing application is displayed in the application window 320 on the entire display area of the folding screen 310.
  • the interface content may include view content such as a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, and view content such as text 3306 and a dynamic image 3307.
  • the user can operate/touch the view content such as the comment icon 3301 to operate the music playing application, but the user cannot operate/touch the view content such as the text 3306 to operate the music playing application.
  • the user can click the comment icon 3301 to comment on the music played by the music playing application.
  • the folding screen 310 enters the hovering state from the unfolded state so that the entire display area of the folding screen 310 is divided into a display area 3501 and a display area 3502 along the folding portion 340.
  • the interface content of the music playing application is entirely displayed in the application window 3601 on the display area 3501, while only one touch panel window is displayed in the application window 3602 on the display area 3502.
  • the user can slide left/right on the touch panel window to fast forward the music played by the music playing application, and can slide up and down on the touch panel window to adjust the volume of the music played by the music playing application, etc.
  • the functions that the touch panel window can provide are relatively simple and few, such as the touch panel window cannot provide functions such as commenting and sharing.
  • the user when the user needs to comment on or share the music played by the music player application, the user still needs to touch the display area 3501. Since the folding screen 310 is in a semi-closed state, the display area 3501 is in an inclined state, so it may be inconvenient for the user to touch the display area 3501. The user's touch may easily cause the display area 3501 and the display area 3502 to swing to change the folding angle, thereby affecting the user's experience of using the folding screen 310.
  • an embodiment of the present application proposes a display method to solve the inconvenience of user operation, avoid the display area swinging due to the user's touch to change the folding angle, etc., and enhance the user's experience of the folding screen.
  • a display method according to an embodiment of the present application is described below.
  • FIG. 4 is a schematic flow chart of a display method according to an embodiment of the present application.
  • the method can be applied to an electronic device and may include the following steps:
  • the first interface content of the target application is displayed on the first display area, and the second interface content of the target application is displayed on the second display area, wherein the first interface content has a function of not providing the user with an operation of the target application, and the second interface content has a function of providing the user with an operation of the target application; or, the first interface content has a function of not responding to a touch event of the user on the first display area, and the second interface content has a function of responding to a touch event of the user on the second display area to operate the target application.
  • the embodiment of the present application can divide the interface content of the target application into two categories, namely, the first interface content and the second interface content, and display the first interface content and the second interface content on two display areas respectively, namely, the first display area displays the first interface content, and the second display area displays the second interface content, thereby realizing the visual user interface (UI) separation of the interface content of the target application.
  • UI visual user interface
  • the interface content of the target application is classified and displayed on different display areas respectively.
  • the interface content used to operate the target application can be displayed on the display area which is easier for the user to operate. This is helpful to avoid the display area swinging due to the user's touch to change the folding angle, etc., thereby improving the user experience.
  • the folding screen 310 enters a hovering state from an unfolded state such that the entire display area of the folding screen 310 is divided into a display area 3501 and a display area 3502 along the folding portion 340 .
  • the interface content of the music playing application is classified, for example, the view content such as the comment icon 3301, the share icon 3302, the pause/play icon 3303, and the previous song icon 3304 are one type of view content, and the view content such as the text 3306 and the dynamic image 3307 are another type of view content.
  • the user can operate/touch the view content such as the comment icon 3301 and the share icon 3302 to operate the music playing application, but the user cannot operate/touch the view content such as the text 3306 to operate the music playing application.
  • view contents such as the comment icon 3301 and the share icon 3302 are displayed in the application window 3602 on the display area 3502
  • view contents such as the text 3306 and the dynamic image 3307 are displayed in the application window 3601 on the display area 3501 .
  • the folding screen of the electronic device when the folding screen of the electronic device is not folded, the folding screen is in a completely flat non-folding state. At this time, the electronic device is in a non-folding state, and the folding screen can display on the entire display area, as shown in FIG. 1 .
  • the entire display area of the foldable screen is divided into two display areas.
  • the two display areas are respectively referred to as the “first display area” and the “second display area”.
  • the electronic device enters a hovering state from an unfolded state so that the entire display area of the folding screen is divided into a first display area and a second display area.
  • the electronic device enters a hovering state from an unfolded state so that the entire display area of the folding screen is divided into a first display area and a second display area along the folding portion.
  • the first display area is the left display area (upper display area) of the folding screen
  • the second display area is the right display area (lower display area) of the folding screen, and there is no specific limitation on this.
  • the first display area is the right display area (lower display area) of the folding screen
  • the second display area is the left display area (upper display area) of the folding screen, and no specific limitation is made to this.
  • the first display area and the second display area may have the same area. That is, the entire display area of the folding screen is divided into two halves of the same area. In this way, the first display area and the second display area may completely overlap.
  • the first display area and the second display area may not have the same area. That is, the entire display area of the folding screen is divided into two display areas of different areas, and there is no specific limitation on this.
  • the electronic device with a foldable screen can run an application so that the foldable screen can display the interface content of the application.
  • An application can be called an application program.
  • An application program can refer to a program that is used to complete a specific task or has a certain function.
  • the program runs on an operating system and can run on the application layer to interact with the user. It has a visual user interface or application window.
  • the application may run on the application layer in the above-mentioned “3. Software architecture of electronic device”.
  • the target application of the embodiment of the present application specifically refers to the application running when the electronic device (folding screen) enters the hovering state. It is mainly used for distinction and is essentially an application.
  • the target applications may be of different types, such as video applications, music applications, live broadcast applications, etc.
  • the type of application displayed when the folding screen is in the unfolded state may be different from the type of the target application displayed when the folding screen is in the hovering state.
  • the application displayed when the folding screen is in the unfolded state is a video application
  • the application displayed when the folding screen enters the hovering state from the unfolded state is a music application.
  • the type of application displayed when the folding screen is in the unfolded state may be the same as the type of the target application displayed when the folding screen is in the hovering state.
  • the application displayed when the folding screen is in the unfolded state and the target application displayed when the folding screen is in the hovering state are the same application.
  • an application window corresponding to the application is usually displayed on the display area, and the interface content of the application can be displayed in the application window.
  • the size of the application window can occupy the entire display area of the foldable screen.
  • the size of the application window may occupy the entire display area of the folding screen 110 shown in FIG. 1 .
  • the size of the application window 2401 may occupy the entire display area 2201 ; the size of the application window 2402 may occupy the entire display area 2202 , and no specific limitation is made thereto.
  • the application window is displayed in a floating manner on the display area of the folding screen.
  • the interface content of the target application can be understood as all elements or contents used to constitute the view/interface of the target application after running the target application. The user can view them intuitively or touch the corresponding interface content to operate the application.
  • the interface content can be composed of multiple view contents, and different view contents can provide different functions or different
  • the view content can present different visual effects.
  • the embodiment of the present application can classify the interface content of the target application according to whether the target application can be operated.
  • the types of interface content can include non-operational interface content (or "inoperable interface content”) and operational interface content (or “operable interface content”).
  • the non-operational interface content may not provide the user with a function of operating the target application, or may not have a function of operating the target application. Therefore, the user cannot operate/touch this type of view content to operate the target application.
  • the non-operational interface content may include text 3306 , dynamic images 3307 , etc., and the user cannot operate/touch such view content to operate the music playback application.
  • the operation interface content may have the function of providing the user with the function of operating the target application, or have the function of operating the target application. Therefore, the user may operate/touch this type of view content to operate the target application.
  • the operation interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and the user can operate/touch this type of interface content to comment, share, pause/play, switch, fast-forward, etc. the music played by the music playback application.
  • the folding screen of the embodiment of the present application can be touch-controlled (clicked/touched, etc.). Therefore, the user can touch (clicked/touched, etc.) the folding screen to execute corresponding events. For example, the user can slide at a specific position in the display area of the folding screen to adjust the display brightness of the folding screen.
  • the embodiment of the present application can classify the interface content of the target application according to whether it can respond to the touch event of the folding screen.
  • the types of interface content can include non-responsive interface content (or “unresponsive interface content”) and responsive interface content (or “responsive interface content”).
  • the non-responsive interface content may have the function of not responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will not respond to the touch event, and thus the target application cannot be operated accordingly.
  • the non-responsive interface content may include text 3306 , dynamic images 3307 , etc., and this type of interface content cannot respond to the user's touch on the folding screen 310 .
  • the response interface content may have the function of responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will respond to the touch event, thereby performing a corresponding operation on the application.
  • the response interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and this type of interface content will respond to the user's touch on the folding screen 310, so as to comment, share, pause/play, switch, fast forward, etc. the music played by the music playback application.
  • the first interface content may be non-operational interface content
  • the second interface content may be operational interface content.
  • the first interface content may not provide the user with an operation target application, while the second interface content may provide the user with an operation target application.
  • the first interface content may be a non-responsive interface content
  • the second interface content may be a responsive interface content.
  • the first interface content may have a function of not responding to a user's touch event on the folding screen
  • the second interface content may have a function of responding to a user's touch event on the folding screen to operate an application.
  • the first interface content does not include a touchable control
  • the second interface content includes a touchable control
  • the touchable control may have a function of providing the user with an operation target application
  • both the first interface content and the second interface content may be composed of one or more types of view content.
  • the composition of the first interface content and the second interface content is specifically described below.
  • Activity can be an application component defined by Android, which can be used to display a user interface component and provide an application interface that allows users to operate and interact with the application interface.
  • the application interface can contain multiple Activities.
  • the views in an Activity may include TextureView, Button, ImageView, View, etc.
  • TextureView may be a layer that outputs the content stream as an external texture, and it itself requires a hardware acceleration layer.
  • Surface can mean "surface”/"canvas", an object to which a graphics buffer is drawn, a graphics buffer in memory, or a handle to a raw buffer managed by a screen compositor. Therefore, the contents of the raw buffer can be obtained through Surface (because Surface is a handle), and the raw buffer can be used to save data related to the interface content displayed by the drawing application window, etc.
  • the types of interface content of the target application may include view content of SurfaceView, view content of various views in Activity, such as view content of TextureView, view content of Button, view content of ImageView, and view content of View.
  • SurfaceView comes with its own independent Surface and layer, and SurfaceView can control the format, size, and drawing position of the Surface.
  • the view content of SurfaceView can be presented by its own Surface.
  • the rendering of the view content of SurfaceView can be placed in a separate thread instead of the main thread of the application.
  • various views in the Activity share the same Surface. Therefore, the view content of various views in the Activity can be presented by the same Surface. In addition, the rendering of the view content of various views in the Activity can be placed in the main thread of the application.
  • an application may contain multiple Activities, such as Activity 5101, Activity 5102, and Activity 5103, and the various views in each Activity share the same Surface, and SurfaceView comes with a Surface.
  • the first interface content may include at least one of the following: the view content of SurfaceView, the view content of TextureView in Activity, etc.; and the second interface content may include at least one of the following: the view content of Button in Activity, the view content of ImageView in Activity, the view content of View in Activity, etc.
  • first interface content and the second interface content may also include other view contents, and are mainly divided according to whether the application can be operated or whether the touch event of the folding screen can be responded to, and there is no specific restriction on this.
  • the foldable screen when the user folds the foldable screen inward or outward along the foldable part according to his own needs, the foldable screen enters a hovering state from an unfolded state so that the foldable screen is divided into a first display area and a second display area.
  • How to display the first interface content in the first display area and the second interface content in the second display area, as shown in FIG6, can be performed by the following steps:
  • Step 1 Determine whether to create a new Surface for the first interface content
  • first interface content needs to be displayed in the first display area, it is usually necessary to ensure that the first interface content has a Surface, and then the first interface content is presented in the first display area through the Surface.
  • First interface content, second interface content since the first interface content can be composed of various types of view content, and the first interface content may contain view content with its own independent Surface (such as view content of SurfaceView), or may not contain view content with its own independent Surface, therefore, the embodiment of the present application needs to first determine whether to create a new Surface for the first interface content.
  • step 2 is performed.
  • step 3 is executed.
  • the first interface content only has its own Surface, it means that there is no need to create a new Surface for the first interface content.
  • the embodiment of the present application can create a new Surface for the first interface content. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area, so that the first interface content can be presented on the newly created Surface.
  • the interface content of the target application includes the view content of various views in the Activity
  • the first interface content includes the view content of the TextureView in the Activity
  • the view content of the TextureView does not have its own Surface, it is necessary to first create a new Surface and then present the view content of the TextureView on the new Surface.
  • the embodiment of the present application needs to first create a new canvas control view to hold (SurfaceControlViewHost), the SurfaceControlViewHost will hold an independent layer and have a child node, which can be named container view (ContainerView), and then draw the view content of TextureView onto ContainerView, thereby presenting the view content of TextureView on the new Surface.
  • SurfaceControlViewHost the SurfaceControlViewHost will hold an independent layer and have a child node, which can be named container view (ContainerView)
  • ContainerView container view
  • the SurfaceControlViewHost has two child nodes, the root canvas control (RootSurfaceControl) and the ContainerView, that is, the parent of the ContainerView is the RootSurfaceControl, and the parent of the RootSurfaceControl is the SurfaceControlViewHos. Then, the view content of the TextureView is drawn onto the ContainerView, so that the SurfaceControl of the TextureView is called the RootSurfaceControl, thereby realizing the rendering of the view content of the TextureView on the new Surface.
  • RootSurfaceControl the root canvas control
  • ContainerView the parent of the ContainerView
  • RootSurfaceControl the parent of the RootSurfaceControl
  • Step 3 Link the Surface that comes with the first interface content to the newly created Surface for the view content that does not have its own Surface in the first interface content
  • the embodiment of the present application needs to first create a new Surface for the view content that does not have its own Surface in the first interface content, then present the view content that does not have its own Surface on the newly created Surface, and finally link the Surface that comes with the first interface content with the Surface newly created for the view content that does not have its own Surface in the first interface content. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area.
  • the interface content of an application includes the view content of various views in an Activity and the view content of SurfaceView
  • the first interface content includes the view content of TextureView in the Activity and the view content of SurfaceView.
  • the view content of TextureView does not have its own Surface, it is necessary to first create a new Surface, then present the view content of TextureView on the new Surface, and finally link the Surface of SurfaceView to the new Surface.
  • the embodiment of the present application needs to first create a new SurfaceControlViewHost, which will hold an independent layer and have a child node, namely ContainerView, and then draw the view content of TextureView onto ContainerView, thereby realizing the presentation of the view content of TextureView on the new Surface.
  • linking the Surface that comes with the SurfaceView with the new Surface may include reparenting the SurfaceControl of the Surface that comes with the SurfaceView to the SurfaceControl of the new Surface.
  • the parent of the SurfaceControl of the Surface that comes with SurfaceView is Activity SurfaceControl.
  • Activity SurfaceControl is the SurfaceControl of the interface content. Therefore, the SurfaceControl of the Surface that comes with SurfaceView is reparented to the SurfaceControl of the new Surface, so as to link the Surface that comes with SurfaceView with the new Surface.
  • the Surface used to present the first interface content on the first display area can be one of the following:
  • the surface that comes with the first interface content, the surface newly created for the first interface content, and the surface that comes with the first interface content and the surface newly created for the view content in the first interface content that does not have its own surface are linked.
  • the Surface used to present the view content of SurfaceView on the first display area may be the Surface provided by SurfaceView.
  • the Surface used to present the view content of the TextureView on the first display area may be a Surface newly created for the SurfaceView.
  • the Surface used to present the first interface content on the first display area can be obtained by linking the Surface of SurfaceView and the Surface of TextureView.
  • the SurfaceControl of the Surface used to present the first interface content on the first display area can be a child node under the SurfaceControl used to present the interface content on the entire display area of the electronic device (folding screen) when it is in a non-folded state, or it can be newly created.
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area can be a child node under the SurfaceControl of the interface content, as shown in FIG. 10 .
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area may be newly created, as shown in FIG. 8 .
  • Step 4 Create an application window for displaying the first interface content on a new first display area
  • the embodiment of the present application needs to create an application window corresponding to a new application in the first display area, and then display the first interface content in the newly created application window.
  • the newly created application window can be called an application window for displaying the first interface content in the first display area.
  • the application window for displaying the first interface content on the first display area may be newly created.
  • the embodiment of the present application needs to create a SurfaceControl of the newly created application window.
  • Step 5 Link the Surface used to present the first interface content on the first display area to the newly created application window
  • the embodiment of the present application needs to link the Surface used to present the first interface content on the first display area obtained above to the newly created application window.
  • the link can be implemented by the following steps:
  • the SurfaceControl of the Surface used to present the first interface content on the first display area is reparented to the SurfaceControl of the created application window, that is, the SurfaceControl of the application window used to display the first interface content on the first display area.
  • the parent of the SurfaceControl of the Surface used to present the first interface content on the first display area is the SurfaceControl of the created application window.
  • the embodiment of the present application can link the Surface used to present the first interface content on the first display area to the newly created application window by resetting the parent.
  • Step 6 Adjust the window size of the application window for displaying the interface content on the entire display area of the folded screen to obtain an application window for displaying the second interface content on the second display area
  • an application window is needed on the second display area so as to display the second interface content in the application window
  • the embodiment of the present application can adjust the window size of the application window used to display the interface content on the entire display area of the folding screen so as to obtain an application window for displaying the second interface content on the second display area.
  • the application window for displaying the second interface content on the second display area can be obtained by adjusting the window size of the application window for displaying the interface content on the entire display area of the electronic device (folding screen) when it is in a non-folded state.
  • the application window for displaying the second interface content on the second display area can be quickly obtained by simply adjusting the window size through the application window, thereby improving display efficiency.
  • the application window 1120 on the entire display area of the folding screen 1110 displays the interface content of the application.
  • the interface content includes the view content of various views in the Activity and the view content of SurfaceView
  • the first interface content includes the view content of TextureView and the view content of SurfaceView in the Activity.
  • the folding screen 1110 When the folding screen 1110 enters a hovering state from an unfolded state so that the entire display area of the folding screen 1110 is divided into a first display area 1130 and a second display area 1140 along the folding portion, a newly created application window 1150 is displayed on the first display area 1130, while an application window 1160 obtained by adjusting the window size of the application window 1120 is displayed on the second display area 1140.
  • the Surface obtained by linking the Surface provided by SurfaceView with the new Surface is linked to the application window 1150, and the Surface shared by the view contents of various views in the Activity is maintained in the application window 1160.
  • the view contents of SurfaceView and TextureView can be displayed on the application window 1150, and the view contents of the remaining views in the Activity except TextureView can be displayed on the application window 1160.
  • the Surface used to present the first interface content on the first display area is different from the Surface used to present the second interface content on the second display area, as shown in FIG11 .
  • the Surface used to present the second interface content on the second display area may be a Surface used to present the interface content on the entire display area of the folding screen, as shown in FIG. 11 .
  • the device includes a hardware structure and/or software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain method, function, module, unit or step is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described methods, functions, modules, units or steps for each specific application, but such implementation should not be considered to exceed the scope of the present application.
  • the embodiment of the present application can divide the electronic device into functional units/modules according to the above method example.
  • each functional unit/module can be divided according to each function, or two or more functions can be integrated into one functional unit/module.
  • the above integrated functional unit/module can be implemented in hardware or in software program. It should be noted that the division of functional units/modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
  • FIG12 is a block diagram of the functional unit composition of a display device according to an embodiment of the present application. 1200 specifically includes: a display unit 1210 .
  • the display unit 1210 may be a module unit for processing or displaying signals, data, information, images, etc., and there is no specific limitation on this.
  • the display unit may be integrated into the display assembly.
  • the display unit 1210 may be integrated into one unit.
  • the display unit 1210 may be integrated into the processing unit.
  • the processing unit may be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processing unit may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
  • the display device 1200 may further include a storage unit for storing computer programs or instructions executed by the display device 1200 .
  • the storage unit may be a memory.
  • the display device 1200 may be a chip/chip module/processor/hardware, etc.
  • the display device 1200 is used to execute the steps described in the above method embodiment, which will be described in detail below.
  • the display unit 1210 is used to display the first interface content of the target application on the first display area of the electronic device and the second interface content of the target application on the second display area of the electronic device in response to the electronic device entering the hovering state;
  • the first interface content has a function of not providing the user with an operation target application
  • the second interface content has a function of providing the user with an operation target application
  • the first interface content has a function of not responding to a user's touch event on the first display area
  • the second interface content has a function of responding to a user's touch event on the second display area to operate a target application.
  • first interface content may be non-operational interface content
  • second interface content may be operational interface content
  • the non-operational interface content may not provide the user with a function of operating the target application, or may not have a function of operating the target application. Therefore, the user cannot operate/touch this type of interface content to operate the target application.
  • the non-operational interface content may include text 3306 , dynamic images 3307 , etc., and the user cannot operate/touch such interface content to operate the music playback application.
  • the operation interface content may have the function of providing the user with an operation target application, or has the function of operating the target application. Therefore, the user can operate/touch this type of interface content to operate the application.
  • the operation interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and the user can operate/touch this type of interface content to comment, share, pause/play, switch, fast-forward, etc. the music played by the music playback application.
  • first interface content may be non-responsive interface content
  • second interface content may be responsive interface content
  • the non-responsive interface content may have the function of not responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will not respond to the touch event, and thus cannot perform corresponding operations on the target application.
  • the non-responsive interface content may include text 3306 , dynamic images 3307 , etc., and this type of view content cannot respond to the user's touch on the folding screen 310 .
  • the responsive interface content may have the function of responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will respond to the touch event, thereby performing a corresponding operation on the target application.
  • the response interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and this type of interface content will respond to the user's touch on the folding screen 310, so as to comment, share, pause/play, switch, fast forward, etc. the music played by the music playback application.
  • the embodiment of the present application can divide the interface content of the target application into two categories, namely, the first interface content and the second interface content, and display the first interface content and the second interface content on two display areas of the electronic device respectively, namely, the first display area displays the first interface content, and the second display area displays the second interface content, thereby realizing visual UI separation of the interface content of the target application.
  • the interface content of the target application is classified and displayed in different display areas respectively, so that the interface content for operating the target application can be displayed in a display area that is easier for the user to operate, so as to facilitate Avoid situations where the display area swings due to user touch to change the folding angle, etc., thereby improving the user experience.
  • the folding screen 310 enters a hovering state from an unfolded state such that the entire display area of the folding screen 310 is divided into a display area 3501 and a display area 3502 along the folding portion 340 .
  • the interface content of the music playing application is classified, for example, the view content such as the comment icon 3301, the share icon 3302, the pause/play icon 3303, and the previous song icon 3304 are one type of view content, and the view content such as the text 3306 and the dynamic image 3307 are another type of view content.
  • the user can operate/touch the view content such as the comment icon 3301 and the share icon 3302 to operate the music playing application, but the user cannot operate/touch the view content such as the text 3306 to operate the music playing application.
  • view contents such as the comment icon 3301 and the share icon 3302 are displayed in the application window 3602 on the display area 3502
  • view contents such as the text 3306 and the dynamic image 3307 are displayed in the application window 3601 on the display area 3501 .
  • the first interface content includes at least one of the following: view content of a canvas view SurfaceView, view content of a texture view TextureView in an Activity;
  • the second interface content includes at least one of the following: the view content of the button Button in the Activity, the view content of the image view ImageView in the Activity, and the view content of the view View in the Activity.
  • the first interface content may include at least one of the following: the view content of SurfaceView, the view content of TextureView in Activity, etc.; and the second interface content may include at least one of the following: the view content of Button in Activity, the view content of ImageView in Activity, the view content of View in Activity, etc.
  • first interface content and the second interface content may also include other view contents, and are mainly divided according to whether the application can be operated or whether the touch event of the folding screen can be responded to, and there is no specific restriction on this.
  • the canvas Surface used to present the first interface content on the first display area is different from the Surface used to present the second interface content on the second display area.
  • the Surface used to present the first interface content on the first display area is one of the following:
  • the surface that comes with the first interface content, the surface newly created for the first interface content, and the surface that comes with the first interface content and the surface newly created for the view content in the first interface content that does not have its own surface are linked.
  • the embodiment of the present application needs to first determine whether to create a new Surface for the first interface content.
  • the embodiment of the present application can create a new Surface for the first interface content. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area, so that the first interface content can be presented on the newly created Surface.
  • the embodiment of the present application needs to first create a new Surface for the view content in the first interface content that does not have its own Surface, then present the view content that does not have its own Surface on the newly created Surface, and finally present the Surface of the first interface content to the view content that does not have its own Surface. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area.
  • the Surface used to present the view content of SurfaceView on the first display area is the Surface that comes with SurfaceView; or,
  • the Surface used to present the view content of TextureView on the first display area is a Surface newly created for SurfaceView; or,
  • the Surface used to present the first interface content on the first display area is obtained by linking the Surface of SurfaceView and the Surface of TextureView.
  • the embodiments of the present application need to be specifically described according to different situations in order to determine the Surface used to present the first interface content on the first display area.
  • the Surface used to present the second interface content on the second display area is in the Surface used to present the interface content on the entire display area of the folded screen.
  • the Surface of the first interface content and the Surface of the second interface content can be the Surface of the shared interface content
  • the Surface used to present the second interface content in the second display area can be in the Surface of the interface content. In this way, it is saved to create a Surface for presenting the second interface content in the second display area, improving display efficiency.
  • the application window for displaying the first interface content on the first display area is newly created
  • the application window for displaying the second interface content on the second display area is obtained by adjusting the window size of the application window for displaying the interface content on the entire display area of the electronic device (folding screen) in a non-folded state.
  • the embodiment of the present application needs to create an application window corresponding to a new application in the first display area, and then display the first interface content in the newly created application window.
  • the newly created application window can be called an application window for displaying the first interface content in the first display area.
  • the embodiment of the present application needs to create a SurfaceControl of the newly created application window.
  • the Surface on the first display area for presenting the first interface content is linked to the application window on the first display area for displaying the first interface content.
  • the embodiment of the present application needs to link the Surface used to present the first interface content on the first display area obtained above to the newly created application window.
  • linking is accomplished using the following steps:
  • the canvas control SurfaceControl of the Surface used to present the first interface content on the first display area is re-parented to the SurfaceControl of the application window used to display the first interface content on the first display area.
  • the embodiment of the present application can link the Surface used to present the first interface content on the first display area to the newly created application window by resetting the parent.
  • the parent of the SurfaceControl of the Surface used to present the first interface content on the first display area is the SurfaceControl of the created application window.
  • the SurfaceControl of the Surface used to present the first interface content on the first display area can be a child node under the SurfaceControl used to present the interface content on the entire display area of the electronic device (folding screen) when it is in a non-folded state, or a newly created one.
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area can be a child node under the SurfaceControl of the interface content, as shown in Figure 10.
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area may be newly created, as shown in FIG. 8 .
  • the first display area and the second display area have the same area.
  • the embodiment of the present application can divide the entire display area of the folding screen into two halves of equal area along the folding portion. In this way, the first display area and the second display area can completely overlap.
  • the electronic device 1300 includes a processor 1310 , a memory 1320 , and at least one communication bus for connecting the processor 1310 and the memory 1320 .
  • the processor 1310 may be one or more central processing units (CPUs).
  • the processor 1310 may be a single-core CPU or a multi-core CPU.
  • the memory 1320 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or a portable read-only memory (CD-ROM), and the memory 1320 is used to store computer programs or instructions.
  • the electronic device 1300 further includes a communication interface, which is used to receive and send data.
  • the processor 1310 in the electronic device 1300 is used to execute the computer program or instruction 1321 stored in the memory 1320 to implement the following steps:
  • the first interface content has a function of not providing the user with an operation target application
  • the second interface content has a function of providing the user with an operation target application
  • the first interface content has a function of not responding to a user's touch event on the first display area
  • the second interface content has a function of responding to a user's touch event on the second display area to operate a target application.
  • first interface content may be non-operational interface content
  • second interface content may be operational interface content
  • the non-operational interface content may not provide the user with a function of operating the target application, or may not have a function of operating the target application. Therefore, the user cannot operate/touch this type of interface content to operate the target application.
  • the non-operational interface content may include text 3306 , dynamic images 3307 , etc., and the user cannot operate/touch such interface content to operate the music playback application.
  • the operation interface content may have the function of providing the user with an operation target application, or has the function of operating the target application. Therefore, the user can operate/touch this type of interface content to operate the application.
  • the operation interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and the user can operate/touch this type of interface content to comment, share, pause/play, switch, fast-forward, etc. the music played by the music playback application.
  • first interface content may be non-responsive interface content
  • second interface content may be responsive interface content
  • the non-responsive interface content may have the function of not responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will not respond to the touch event, and thus cannot perform corresponding operations on the target application.
  • the non-responsive interface content may include text 3306 , dynamic images 3307 , etc., and this type of view content cannot respond to the user's touch on the folding screen 310 .
  • the responsive interface content may have the function of responding to the user's touch event. Therefore, when the user touches the folding screen to generate a corresponding touch event, this type of interface content will respond to the touch event, thereby performing a corresponding operation on the target application.
  • the response interface content may include a comment icon 3301, a share icon 3302, a pause/play icon 3303, a previous song icon 3304, a progress bar 3305, etc., and this type of interface content will respond to the user's touch on the folding screen 310, so as to comment, share, pause/play, switch, fast forward, etc. the music played by the music playback application.
  • the embodiment of the present application can divide the interface content of the target application into two categories, namely, the first interface content and the second interface content, and display the two types of view types on the two display areas of the electronic device respectively, namely, the first display area displays the first interface content, and the second display area displays the second interface content, thereby realizing visual UI separation of the interface content of the application.
  • the interface content of the target application is classified and displayed on different display areas respectively.
  • the interface content used to operate the target application can be displayed on the display area which is easier for the user to operate. This is helpful to avoid the display area swinging due to the user's touch to change the folding angle, etc., thereby improving the user experience.
  • the folding screen 310 enters a hovering state from an unfolded state such that the entire display area of the folding screen 310 is divided into a display area 3501 and a display area 3502 along the folding portion 340 .
  • the interface content of the music playing application is classified into categories, such as the comment icon 3301, the share icon 3302, the pause/play icon 3303, the previous song icon 3304 and other view contents are one type of view content, while the text 3306, the dynamic image 3307 and other view contents are another type of view content.
  • the user can operate/touch the comment icon 3301, the share icon 3302 and other view contents to operate the music playing application.
  • the user cannot operate/touch the view content such as text 3306 to operate the music player application.
  • view contents such as the comment icon 3301 and the share icon 3302 are displayed in the application window 3602 on the display area 3502
  • view contents such as the text 3306 and the dynamic image 3307 are displayed in the application window 3601 on the display area 3501 .
  • the first interface content includes at least one of the following: view content of a canvas view SurfaceView, view content of a texture view TextureView in an Activity;
  • the second interface content includes at least one of the following: the view content of the button Button in the Activity, the view content of the image view ImageView in the Activity, and the view content of the view View in the Activity.
  • the first interface content may include at least one of the following: the view content of SurfaceView, the view content of TextureView in Activity, etc.; and the second interface content may include at least one of the following: the view content of Button in Activity, the view content of ImageView in Activity, the view content of View in Activity, etc.
  • first interface content and the second interface content may also include other view contents, and are mainly divided according to whether the application can be operated or whether the touch event of the folding screen can be responded to, and there is no specific restriction on this.
  • the canvas Surface used to present the first interface content on the first display area is different from the Surface used to present the second interface content on the second display area.
  • the Surface used to present the first interface content on the first display area is one of the following:
  • the surface that comes with the first interface content, the surface newly created for the first interface content, and the surface that comes with the first interface content and the surface newly created for the view content in the first interface content that does not have its own surface are linked.
  • the embodiment of the present application needs to first determine whether to create a new Surface for the first interface content.
  • the embodiment of the present application can create a new Surface for the first interface content. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area, so that the first interface content can be presented on the newly created Surface.
  • the embodiment of the present application needs to first create a new Surface for the view content in the first interface content that does not have its own Surface, then present the view content that does not have its own Surface on the newly created Surface, and finally link the Surface that comes with the first interface content with the newly created Surface for the view content that does not have its own Surface. In this way, the embodiment of the present application can obtain a Surface for presenting the first interface content on the first display area.
  • the Surface used to present the view content of SurfaceView on the first display area is the Surface that comes with SurfaceView; or,
  • the Surface used to present the view content of TextureView on the first display area is a Surface newly created for SurfaceView; or,
  • the Surface used to present the first interface content on the first display area is obtained by linking the Surface of SurfaceView and the Surface of TextureView.
  • the embodiments of the present application need to be specifically described according to different situations in order to determine the Surface used to present the first interface content on the first display area.
  • the Surface used to present the second interface content on the second display area is in the Surface used to present the interface content on the entire display area of the folded screen.
  • the Surface of the first interface content and the Surface of the second interface content can be the Surface of the shared interface content
  • the Surface used to present the second interface content in the second display area can be in the Surface of the interface content. In this way, it is saved to create a Surface for presenting the second interface content in the second display area, improving display efficiency.
  • the application window for displaying the first interface content on the first display area is newly created
  • the application window for displaying the second interface content on the second display area is obtained by adjusting the window size of the application window for displaying the interface content on the entire display area of the electronic device (folding screen) in a non-folded state.
  • the embodiment of the present application needs to create an application window corresponding to a new application in the first display area, and then display the first interface content in the newly created application window.
  • the newly created application window can be called an application window for displaying the first interface content in the first display area.
  • the embodiment of the present application needs to create a SurfaceControl of the newly created application window.
  • the Surface on the first display area for presenting the first interface content is linked to the application window on the first display area for displaying the first interface content.
  • the embodiment of the present application needs to link the Surface used to present the first interface content on the first display area obtained above to the newly created application window.
  • linking is accomplished using the following steps:
  • the canvas control SurfaceControl of the Surface used to present the first interface content on the first display area is re-parented to the SurfaceControl of the application window used to display the first interface content on the first display area.
  • the embodiment of the present application can link the Surface used to present the first interface content on the first display area to the newly created application window by resetting the parent.
  • the parent of the SurfaceControl of the Surface used to present the first interface content on the first display area is the SurfaceControl of the created application window.
  • the SurfaceControl of the Surface used to present the first interface content on the first display area can be a child node under the SurfaceControl used to present the interface content on the entire display area of the electronic device (folding screen) when it is in a non-folded state, or a newly created one.
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area can be a child node under the SurfaceControl of the interface content, as shown in Figure 10.
  • the SurfaceControl of the Surface used to present the view content of SurfaceView on the first display area may be newly created, as shown in FIG. 8 .
  • the first display area and the second display area have the same area.
  • the embodiment of the present application can divide the entire display area of the folding screen into two halves of equal area along the folding portion. In this way, the first display area and the second display area can completely overlap.
  • An embodiment of the present application also provides a computer-readable storage medium, wherein a computer program or instructions are stored on the computer-readable storage medium, and when the computer program or instructions are executed by a processor, the steps described in the above embodiment are implemented.
  • the present application also provides a computer program product, including a computer program or instructions, wherein the computer program or instructions are executed by a processor to implement the steps described in the above embodiment.
  • the computer program product may be a software installation package.
  • a computer program product should be understood as a software product that mainly implements the technical solution of the present application through computer programs or instructions.
  • the methods, steps or functions of related modules/units described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it can be implemented in whole or in part in the form of a computer program product, or it can be implemented by a processor executing a computer program instruction.
  • the computer program product includes at least one computer program instruction, and the computer program instruction can be composed of corresponding software modules, and the software module can be stored in RAM, flash memory, ROM, EPROM, EEPROM, register, hard disk, mobile hard disk, read-only CD (CD-ROM) or any other form of storage medium known in the art.
  • the computer program instruction 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 program instruction can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means.
  • the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integration.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium (such as an SSD), etc.
  • the modules/units included in the devices or products described in the above embodiments may be software modules/units, hardware modules/units, or may be partially software modules/units and partially hardware modules/units.
  • each module/unit included therein may be implemented in the form of hardware such as circuits; or, a part of the modules/units included therein may be implemented in the form of a software program, which runs on a processor integrated inside the chip, while a part of the modules/units of another part (if any) may be implemented in the form of hardware such as circuits.
  • a part of the modules/units of another part may be implemented in the form of hardware such as circuits.

Landscapes

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

Abstract

本申请公开了一种显示方法与装置、电子设备,涉及显示领域;该方法包括:响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在电子设备的第一显示区域上,以及将目标应用的第二界面内容显示在电子设备的第二显示区域上,从而实现将应用的界面内容进行视觉上的UI分离。这样,可以将用于操作该目标应用的界面内容显示在用户更容易操作的显示区域上,以便有利于避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的使用体验。

Description

显示方法与装置、电子设备
本发明要求2022年11月30日递交的发明名称为“显示方法与装置、电子设备”的申请号202211521939.3的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本申请涉及显示领域,具体涉及一种显示方法与装置、电子设备。
背景技术
目前,随着柔性屏技术的发展,各类折叠屏幕已应用于电子设备中,以便尽可能增大电子设备上用于显示的区域,而用户也可以对折叠屏幕做出展开或者各种折叠角度的操作,以便满足在各类场景下的屏幕显示需求,获得更好的视觉体验感。
通常,用户会根据自身的需求将折叠屏幕沿着可折叠的部位进行向内或向外折叠,使得折叠屏幕从未折叠状态进入悬停状态,并将折叠屏幕的整个显示区域分成两个显示区域。其中,非折叠状态,可以理解为,折叠屏幕未被折叠而呈现完全展开的状态;悬停状态,可以理解为,折叠屏幕未被完全折叠(如半折叠)而呈现一定折叠角度的状态。
然而,当具有折叠屏幕的电子设备从未折叠状态进入悬停状态时,如何在电子设备进入悬停状态下进行相关显示,还需要进一步研究。
发明内容
本申请实施例提供了一种显示方法与装置、电子设备,以期望解决如何在电子设备进入悬停状态下进行相关显示的问题。
第一方面,为本申请的一种显示方法,包括:
响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在所述电子设备的第一显示区域上,以及将所述目标应用的第二界面内容显示在所述电子设备的第二显示区域上;
其中,所述第一界面内容具有不向用户提供操作所述目标应用的功能,所述第二界面内容具有向用户提供操作所述目标应用的功能;或者,
所述第一界面内容具有不响应于用户对所述第一显示区域的触控事件的功能,所述第二界面内容具有响应于用户对所述第二显示区域的触控事件以操作所述目标应用的功能。
可见,在电子设备进入悬停状态时,本申请实施例可以将目标应用的界面内容分成两类,即第一界面内容和第二界面内容,并将第一界面内容和第二界面内容分别显示在电子设备(折叠屏幕)的两个显示区域上,即第一显示区域显示第一界面内容,而第二显示区域显示第二界面内容,从而实现将目标应用的界面内容进行视觉上的UI分离。
这样,当用户想要去操作该目标应用时,通过将该目标应用的界面内容进行分类以分别显示在不同显示区域上,如此可以将用于操作该目标应用的界面内容显示在用户更容易操作的显示区域上,以便有利于避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的使用体验。
第二方面,为本申请的一种显示装置,包括:
显示单元,用于响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在所述电子设备的第一显示区域上,以及将所述目标应用的第二界面内容显示在所述电子设备的第二显示区域上;
其中,所述第一界面内容具有不向用户提供操作所述目标应用的功能,所述第二界面内容具有向用户提供操作所述目标应用的功能;或者,
所述第一界面内容具有不响应于用户对所述第一显示区域的触控事件的功能,所述第二具有响应于用户对所述第二显示区域的触控事件以操作所述目标应用的功能。
第三方面,为本申请的一种电子设备,包括处理器、存储器及存储在所述存储器上的计算机程序或指令,所述处理器执行所述计算机程序或指令以实现上述第一方面中所述方法的步骤。
第四方面,为本申请的一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序或指令,所述计算机程序或指令被处理器执行时以实现上述第一方面中所述方法的步骤。
第五方面,为本申请的一种计算机程序产品,包括计算机程序或指令,其中,所述计算机程序或指令被处理器执行时实现上述第一方面中所述方法的步骤。
第二方面至第五方面的技术方案所带来的有益效果可以参见第一方面的技术方案所带来的技术效果,此处不再赘述。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍。
图1是本申请实施例的一种电子设备的折叠屏幕分别在未折叠状态和悬停状态下的结构示意图;
图2是本申请实施例的一种电子设备的折叠屏幕分别在悬停状态下的分屏的结构示意图;
图3是本申请实施例的又一种电子设备的折叠屏幕分别在悬停状态下的分屏的结构示意图;
图4是本申请实施例的一种显示方法的流程示意图;
图5是本申请实施例的一种应用可以包含多个Activity的结构示意图;
图6是本申请实施例的一种将第一界面内容和第二界面内容进行分屏显示的流程示意图;
图7是本申请实施例的一种向第一界面内容创建新的Surface的流程示意图;
图8是本申请实施例的又一种向第一界面内容创建新的Surface的流程示意图;
图9是本申请实施例的一种将第一界面内容自带的Surface与向第一界面内容不具有自带的Surface的视图内容所新创建的Surface进行链接的流程示意图;
图10是本申请实施例的一种将SurfaceView自带的Surface与新的Surface进行链接的流程示意图;
图11是本申请实施例的又一种第一界面内容和第二界面内容进行分屏显示的流程示意图;
图12是本申请实施例的一种显示装置的功能单元组成框图;
图13是本申请实施例的一种电子设备的结构示意图。
具体实施方式
为了本技术领域人员更好理解本申请的技术方案,下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请的部分实施例,而并非全部的实施例。基于本申请实施例的描述,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请所保护的范围。
应理解,本申请实施例中涉及的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤或单元的过程、方法、软件、产品或设备没有限定于已列出的步骤或单元,而是还包括没有列出的步骤或单元,或还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
本申请实施例中涉及的“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例中的“和/或”,描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示如下三种情况:单独存在A;同时存在A和B;单独存在B。其中,A、B可以是单数或者复数。
本申请实施例中,符号“/”可以表示前后关联对象是一种“或”的关系。另外,符号“/”也可以表示除号,即执行除法运算。例如,A/B,可以表示A除以B。
本申请实施例中,符号“*”或“·”可以表示乘号,即执行乘法运算。例如,A*B或A·B,可以表示A乘以B。
本申请实施例中的“至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合,是指一个或多个,多个指的是两个或两个以上。例如,a、b或c中的至少一项(个),可以表示如下七种情况:a,b,c,a和b,a和c,b和c,a、b和c。其中,a、b、c中的每一个可以是元素,也可以是包含一个或多个元素的集合。
本申请实施例中的“等于”可以与大于连用,适用于大于时所采用的技术方案,也可以与小于连用,适用于与小于时所采用的技术方案。当等于与大于连用时,不与小于连用;当等于与小于连用时,不与大于连用。
随着各类折叠屏幕的运用,用户会根据自身的需求将折叠屏幕沿着可折叠的部位进行向内或向外折叠,使得折叠屏幕从未折叠状态进入悬停状态,并将折叠屏幕的整个显示区域沿着折叠部位分成两个显示区域。
例如,如图1所示,折叠屏幕110处于未折叠状态,且折叠屏幕110可以沿着折叠的部位120进行向内或向外折叠。其中,图1的(a)表示折叠屏幕110在横屏全屏下的未折叠状态;图1的(b)表示折叠屏幕110在竖屏全屏下的未折叠状态。
又例如,如图2所示,折叠屏幕210从未折叠状态进入悬停状态以使得折叠屏幕210的整个显示区域分成显示区域2201和显示区域2202,且显示区域2201上显示有应用窗口2401,而显示区域2202上显示有应用窗口2402。其中,图2的(a)表示折叠屏幕210沿着折叠部位230向内折叠,使得折叠屏幕未被完全折叠而呈现折叠角度在0度至90度之间;图2的(b)表示折叠屏幕210沿着折叠部位230向内折叠,使得折叠屏幕未被完全折叠而呈现折叠角度在90度至180度之间;图2的(c)表示折叠屏幕210沿着折叠部位230向内折叠,使得折叠屏幕未被完全折叠而呈现折叠角度在90度至180度之间。
当然,本申请实施例也可以将折叠屏幕沿着可折叠的部位进行向外折叠,对此不作具体限制。
然而,当折叠屏幕从未折叠状态进入悬停状态时,本申请实施例需要具体研究如何将未折叠状态下的折叠屏幕的整个显示区域所显示的内容,显示在悬停状态下的两个显示区域上。
下面对本申请实施例所涉及的技术方案、有益效果以及相关概念等进行具体说明。
一、电子设备
需要说明的是,本申请实施例的技术方案可以应用于电子设备。下面对电子设备进行具体说明。
1、电子设备的类型
本申请实施例所述的电子设备可以为具有收发的通信功能的实体/单元/模块/装置等。
在一些可能的实现中,电子设备的类型可以包括手持设备、车载设备、车载终端、可穿戴设备、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、物联网(Internet of Things,IOT)设备、投影设备、投影仪或者连接到无线调制解调器的其他设备,也可以包括用户设备(user equipment,UE)、终端设备(terminal device)、终端、移动终端、手机(smart phone)、智慧屏、智慧电视、智能手表、笔记本电脑、智能音响、摄像头、游戏手柄、麦克风、站点(station,STA)、接入点(access point,AP)、移动台(mobile Station,MS)、个人数字助理(personal digital assistant,PDA)、个人计算机(personal computer,PC)或者中继设备等。
例如,以电子设备是可穿戴设备为例,该可穿戴设备也可以称为智能穿戴式设备,是应用程序穿戴式技术对日常穿戴进行智能化设计、开发的智能设备的总称,例如智能眼镜、智能手套、智能手表、各类具体征监测的智能手环、智能首饰等。该可穿戴设备即可以直接穿在身上,也可以整合到用户的服饰或配件上的一种便携式设备。该可穿戴设备不仅可以搭载专用的硬件架构,还可以搭载专用的软件架构进行数据交互、云端交互等。该穿戴式智能设备可以不依赖其他智能设备以实现完整或者部分的功能。
需要说明的是,本申请实施例未对显示方法的执行主体的具体结构进行特别限定,只要能够通过运行记录有本申请实施例的提供的方法的计算机程序或指令,以及根据本申请实施例提供的方法进行处理即可。例如,本申请实施例提供的方法的执行主体可以是电子设备,也可以是电子设备中能够调用计算机程序或指令并执行的处理器/装置/模块/单元等,对此不作具体限制。
2、电子设备的硬件架构
在一些可能的实现中,本申请实施例的电子设备可以包括处理器、传感组件、显示组件、摄像组件和输入驱动器等中的至少一项。下面分别进行示例性说明。
1)处理器
在一些可能的实现中,处理器可以用于运行或加操作系统,该操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统。例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统、Windows操作系统、Zephyr操作系统、实时操作系统(Real Time Operating System,RTOS)、DOS操作系统、Mac操作系统、ThreadX操作系统、嵌入式操作系统、NucleusPlus操作系统等。
在一些可能的实现中,处理器可以看作一个完整的系统级芯片(system on chip,SOC)。
在一些可能的实现中,处理器可以包括一个或多个处理单元。例如,处理单元可以包括中央处理器(central processing unit,CPU)、应用程序处理器(application processor,AP)、微控制单元(microcontroller Unit,MCU)、单片微型计算机(single chip microcomputer,SCM)、单片机、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、数字信号处理器(digital signal processor,DSP)、现场可编程逻辑门阵列(field programmable gate array,FPGA)、专用集成电路(application-specific integrated circuit,ASIC)、基带处理器、神经网络处理器(neural-network processing unit,NPU)等中的至少之一。其中,不同的处理单元可以是各自分离,也可以集成在一起。
在一些可能的实现中,一个处理单元可以是单核或者多核。
在一些可能的实现中,一个处理单元可以运行或加载一个多核子系统。其中,多核子系统,可以是具有多核处理能力的操作系统。
在一些可能的实现中,处理器中还可以包含存储器,用于存储计算机程序或指令。
例如,处理器可以调用存储器中存储的程序以运行操作系统。
又例如,处理器中的存储器可以保存或缓存该处理器刚用过或循环使用的指令。若该处理器需要再次使用该指令或数据,则可以从该存储器中直接调用,从而避免重复存取,减少处理器的等待时间以提高系统效率。
又例如,处理器中的存储器还可以保存或缓存数据,并该数据同步或传输给其他处理器执行。其中,处理器中的存储器可以为高速缓冲存储器。
在一些可能的实现中,处理器可以包括一个或多个通信接口。其中,该通信接口可以包括串行外设接口(serial peripheral interface,SPI)、集成电路(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)接口、用户标识模块(subscriber identity module,SIM)接口、通用串行总线(universal serial bus,USB)接口等中的至少之一。
2)传感组件
在一些可能的实现中,传感组件可以为传感器。
例如,传感组件可以包括重力传感器、陀螺仪传感器、磁力计传感器、加速度传感器、惯性传感器(如惯性运动单元(Inertial Motion Unit,IMU))、压力传感器、气压传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器、骨传导传感器、超带宽(UWB)传感器、近场通信(NFC)传感器、激光传感器和/或可见光传感器等中的至少一项。
3)显示组件
在一些可能的实现中,显示组件可以用于显示用户界面、用户界面元素和特征、用户可选择控件、各种可显示对象等中的至少一项。
在一些可能的实现中,显示组件可以为电子设备的显示屏幕。其中,该显示屏幕可以包括折叠屏幕,且该折叠屏幕可以是可触摸的,可以是被点击的,可以响应于用户的触摸事件或点击事件等。
在一些可能的实现中,显示组件可以包括显示面板。其中,显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、量子点发光二极管(quantum dot light emitting diodes,QLED)等。
需要说明的是,电子设备可以通过GPU、显示组件以及处理器等实现显示功能。其中,GPU可以用于执行数学和几何计算,并进行图形渲染。另外,GPU可以为图像处理的微处理器,并连接显示组件和处理器。处理器可以包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
4)摄像组件
在一些可能的实现中,摄像组件可以为摄像头或者摄像模组,其用于捕获(拍摄/扫描/采集等)静态/动态的图像或视频。
在一些可能的实现中,摄像组件可以包括镜头、感光元件等,而感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。
因此,物体对象可以通过镜头生成光学图像投射到感光元件。感光元件可以把该光学图像中的光信号转换成电信号,再将该电信号传递给ISP转换成数字图像信号。ISP将该数字图像信号输出到DSP。DSP将该数字图像信号转换成标准的RGB、YUV等格式的图像信号。
需要说明的是,设备可以通过ISP、DSP、摄像组件、视频编解码器、GPU、显示组件以及处理器等实现捕获(拍摄/扫描等)图像等功能。
在一些可能的实现中,ISP可以用于处理摄像组件反馈的数据。例如,在拍照时,先打开快门,再由光线通过摄像组件的镜头传递到摄像组件的感光元件上,实现光信号转换为电信号,最终通过感光元件将该电信号传递给ISP处理以转化为数字图像等。
在一些可能的实现中,ISP还可以对图像的噪点、亮度、肤色进行算法优化。
在一些可能的实现中,ISP还可以对拍摄场景的曝光、色温等参数进行优化。
在一些可能的实现中,ISP和/或DSP可以设置在摄像组件中。
5)输入驱动器
在一些可能的实现中,输入驱动器可以用于处理来自用户操作设备的各种输入。
例如,当显示屏为触摸屏时,输入驱动器可操作以检测和处理各种点击事件或触摸事件等。其中,触摸屏上的点击事件或触摸事件以同时指示感兴趣的区域以及开始向物体对象进行扫描。物体对象可在触摸屏上被显示为要扫描的图像的预览,并且在触摸屏上的特定位置处的触摸事件指示应该扫描的图像。
3、电子设备的软件架构
本申请实施例中,电子设备的软件架构可以采用分层架构、事件驱动架构、微核架构、微服务架构或云架构。下面本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件架构。
在一些可能的实现中,电子设备可以包括内核层、系统运行库层、应用框架层和应用层等中的至少一项。
其中,层与层之间通过软件接口通信,并且内核层、系统运行库层和应用框架层属于操作系统空间。
1)应用层
在一些可能的实现中,应用层属于用户空间,应用层上运行有至少一个应用程序(或简称为“应用”),这些应用程序可以是操作系统自带的原生应用程序,也可以是第三方开发者所开发的第三方应用程序。
例如,应用层可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、消息通知、视频和短信息等应用程序。
2)应用框架层
在一些可能的实现中,应用框架层可以提供构建应用层的应用程序可能用到的各种应用编程接口(application programming interface,API)和编程框架,从而开发者也可以通过使用这些API来构建自己的应用程序。
例如,窗口管理器(window manager)、内容提供器(content providers)、视图系统(view system)、电话管理器(telephony manager)、资源管理器、通知管理器(notification manager)、消息管理器、活动管理器(activity manager)、包管理器(package manager)、位置管理(location manager)和NFC服务等。
具体的,窗口管理器可以用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏、锁定屏幕、截取屏幕等。
具体的,内容提供器可以用于存放和获取数据,并使该数据可以被应用程序访问。其中,该数据可以包括视频、图像、音频、拨打和接听的电话、浏览历史和书签、电话簿等。另外,内容提供器可以使得应用程序可以访问另一个应用程序的数据,如联系人数据库,或者共享它们自己的数据。
具体的,视图系统包括可视控件。例如,显示文字的控件和显示图片的控件等。视图系统可以用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
具体的,电话管理器用于提供电子设备的通信功能。例如,通话状态的管理(如接通、挂断等)。
具体的,资源管理器可以为应用程序提供各种资源。比如,本地化字符串、图标、图片、布局文件、视频文件等。
具体的,通知管理器使得应用程序可以在状态栏中显示通知消息等,可以用于传达告知消息的消息类型,可以短暂停留后自动消失,无需用户交互。比如,通知管理器被用于告知下载完成、消息提醒、消息通知等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知。另外,后台运行的应用程序的通知还可以是以对话窗口形式出现在屏幕上的通知。例如,在状态栏提示文本信息,发出提示音,电子设备振动、指示灯闪烁等。
具体的,消息管理器可以用于存储各个应用程序上报的消息的数据,并对各个应用程序上报的数据进行处理。
具体的,活动管理器可以用于管理应用程序生命周期并提供常用的导航回退功能。在一种可能的示例中,消息管理器可以是通知管理器的一部分。
3)系统运行库层
在一些可能的实现中,系统运行库层可以通过一些C/C++库来为Android系统提供了主要的特性支持。如SQLite库提供了数据库的支持,OpenGL/ES库提供了3D绘图的支持,Webkit库提供了浏览器内核的支持等。在系统运行库层340中还提供有安卓运行时库(Android Runtime),其主要提供了一些核心库,能够允许开发者使用Java语言来编写Android应用。
4)内核层
在一些可能的实现中,内核层可以为电子设备的各种硬件提供了底层的驱动,如显示驱动、音频驱动、摄像头驱动、蓝牙驱动、Wi-Fi驱动、电源管理、NFC驱动、UWB驱动等。
二、一种显示方法
1、描述
目前,当具体折叠屏幕的电子设备从未折叠状态进入悬停状态时,通常是将折叠屏幕的整个显示区域上的应用窗口中所显示的界面内容,通过调整该应用窗口的大小以置于上部分显示区域,且该应用的 界面内容会整个显示在上部分显示区域,而下部分显示区域上只显示一个触控面板(Touch Panel)窗口,该触控面板窗口可以是设备厂商自定义的窗口,用于映射用户的应用触控事件以操作该应用,如映射左/右滑动快进、上下滑调节亮度/音量等应用触控事件。
然而,由于该应用的界面内容整个显示在上部分显示区域上,因此上部分显示区域上会向用户提供整个操作应用的功能,而下部分显示区域上只会向用户提供部分操作应用的功能,且功能相对单一,但是用户想要完整操作该应用,只能去触控上部分显示区域。此时,由于折叠屏处于半合状态,因此用户去触控上部分显示区域时会存在操作困难,容易因用户操作而退出悬停模式,导致用户体验不佳等。
例如,在图3的(a)中,折叠屏幕310处于未折叠状态,且折叠屏幕310的整个显示区域上的应用窗口320中显示有音乐播放应用的界面内容。其中,该界面内容可以包括,评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等视图内容,以及文字3306、动态图像3307等视图内容,而用户可以操作/触控评论图标3301等视图内容来操作该音乐播放应用,但用户无法操作/触控文字3306等视图内容来操作该音乐播放应用。比如,用户可以点击评论图标3301来对该音乐播放应用所播放的音乐进行评论等。
在图3的(b)中,折叠屏幕310从未折叠状态进入悬停状态以使得折叠屏幕310的整个显示区域沿着折叠部位340分成显示区域3501和显示区域3502。其中,该音乐播放应用的界面内容整个显示在显示区域3501上的应用窗口3601中,而显示区域3502上的应用窗口3602中只显示一个触控面板窗口,而用户可以在该触控面板窗口上进行左/右滑动以对该音乐播放应用所播放的音乐进行快进,可以在该触控面板窗口上进行上下滑动来调节该音乐播放应用所播放的音乐的音量等,但该触控面板窗口所能提供的功能还是相对简单且少量,如该触控面板窗口无法提供评论、分享等功能。
此时,当用户需要对该音乐播放应用所播放的音乐进行评论、分享时,用户仍然需要去触控显示区域3501。由于折叠屏幕310处于半合状态,使得显示区域3501处于倾斜状态,因此用户去触控显示区域3501时可能存在操作不便,容易因用户的触控而导致显示区域3501和显示区域3502发生摆动以改变折叠角度等情况,从而影响用户使用折叠屏幕310的体验感。
基于此,本申请实施例提出了一种显示方法,以便解决用户操作不便,避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的该折叠屏幕的体验感。
下面对本申请实施例的一种显示方法进行说明。
如图4所示,图4是本申请实施例的一种显示方法的流程示意图,该方法可以应用于电子设备,可以包括如下步骤:
S410、响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在第一显示区域上,以及将目标应用的第二界面内容显示在第二显示区域上,其中,第一界面内容具有不向用户提供操作目标应用的功能,第二界面内容具有向用户提供操作所述目标应用的功能;或者,第一界面内容具有不响应于用户对第一显示区域的触控事件的功能,第二界面内容具有响应于用户对第二显示区域的触控事件以操作目标应用的功能。
可见,在电子设备进入悬停状态时,本申请实施例可以将目标应用的界面内容分成两类,即第一界面内容和第二界面内容,并将第一界面内容和第二界面内容分别显示在两个显示区域上,即第一显示区域显示第一界面内容,而第二显示区域显示第二界面内容,从而实现将目标应用的界面内容进行视觉上的用户界面(user interface,UI)分离。
这样,当用户想要去操作该目标应用时,通过将该目标应用的界面内容进行分类以分别显示在不同显示区域上,如此可以将用于操作该目标应用的界面内容显示在用户更容易操作的显示区域上,以便有利于避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的使用体验。
例如,在图3的(c)中,折叠屏幕310从未折叠状态进入悬停状态以使得折叠屏幕310的整个显示区域沿着折叠部位340分成显示区域3501和显示区域3502。
然后,将该音乐播放应用的界面内容进行分类,如评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304等视图内容为一类视图内容,而文字3306、动态图像3307等视图内容为另一类视图内容。其中,用户可以操作/触控评论图标3301、分享图标3302等这类视图内容来操作该音乐播放应用,但用户无法操作/触控文字3306等这类视图内容来操作该音乐播放应用。
最后,将评论图标3301、分享图标3302等这类视图内容显示在显示区域3502上的应用窗口3602中,而将文字3306、动态图像3307等这类视图内容显示在显示区域3501上的应用窗口3601中。
这样,当用户需要对该音乐播放应用所播放的音乐进行评论、分享时,用户只需去触控显示区域3502。相对于图3的(b)中需要去触控显示区域3501,用户触控显示区域3502会更加便捷和容易,能够避免折叠屏幕310发生折叠角度改变等情况,提升用户的使用体验。
2、具体实现说明
下面对上述图4所涉及的一些实现方式进行具体说明。
(1)电子设备处于非折叠状态的整个显示区域、第一显示区域和第二显示区域
1)描述
需要说明的是,在电子设备的折叠屏幕未被折叠时,折叠屏幕处于完全平铺的非折叠状态。此时,电子设备处于非折叠状态,并且折叠屏幕可以在整个显示区域上进行显示,如图1所示。
当用户根据自身的需求将折叠屏幕沿着可折叠的部位进行向内或向外折叠时,折叠屏幕的整个显示区域分成两个显示区域。为了便于区分,该两个显示区域分别称为“第一显示区域”和“第二显示区域”。
在一些可能的实现中,电子设备(折叠屏幕)从未折叠状态进入悬停状态以使得折叠屏幕的整个显示区域分成第一显示区域和第二显示区域。
在一些可能的实现中,电子设备(折叠屏幕)从未折叠状态进入悬停状态以使得折叠屏幕的整个显示区域沿着折叠部位分成第一显示区域和第二显示区域。
具体的,当第一显示区域为折叠屏幕的左边显示区域(上边显示区域)时,第二显示区域为折叠屏幕的右边显示区域(下边显示区域),对此不作具体限制。
具体的,当第一显示区域为折叠屏幕的右边显示区域(下边显示区域)时,第二显示区域为折叠屏幕的左边显示区域(上边显示区域),对此不作具体限制。
具体的,第一显示区域与第二显示区域可以具有相同的面积。也就是说,折叠屏幕的整个显示区域被分成相同面积的两半。这样,第一显示区域与第二显示区域可以完全重叠。
具体的,第一显示区域与第二显示区域也可以不具有相同的面积。也就是说,折叠屏幕的整个显示区域被分成不相同面积的两个显示区域,对此不作具体限制。
(2)目标应用的界面内容
需要说明的是,具有折叠屏幕的电子设备可以运行应用,使得折叠屏幕可以对该应用的界面内容进行显示。下面进行具体说明。
1)目标应用
应用,可以称为应用程序(application)。其中,应用程序,可以是指为完成某项/多项特定工作或具有某种功能的程序,而程序是运行于操作系统上的,可以运行在应用层上与用户进行交互,具有可视的用户界面或应用窗口。
例如,应用可以运行在上述“3、电子设备的软件架构”中的应用层上。
需要说明的是,本申请实施例的目标应用只是特指电子设备(折叠屏幕)进入悬停状态所运行的应用,主要是用于区分,本质上就是应用。
在一些可能的实现中,目标应用可以具有不同的类型,如视频类应用、音乐类应用、直播类应用等。
在一些可能的实现中,折叠屏幕处于非折叠状态下所显示的应用的类型,可能与折叠屏幕处于悬停状态下所显示的目标应用的类型不同。
例如,折叠屏幕处于非折叠状态下所显示的应用为视频类应用,而折叠屏幕从非折叠状态进入悬停状态下所显示的应用为音乐类应用。
在一些可能的实现中,折叠屏幕处于非折叠状态下所显示的应用的类型,可能与折叠屏幕处于悬停状态下所显示的目标应用的类型相同。也就是说,折叠屏幕处于非折叠状态下所显示的应用与折叠屏幕处于悬停状态下所显示的目标应用为同一个应用。
2)应用窗口
需要说明的是,当具有折叠屏幕的电子设备运行应用时,通常会在显示区域上显示该应用对应的应用窗口,而该应用的界面内容可以在该应用窗口中显示。
具体的,该应用窗口的大小可以占用折叠屏幕的整个显示区域。
例如,应用窗口的大小可以占用图1所示的折叠屏幕110的整个显示区域。
又例如,在图2中,应用窗口2401的大小可以占用整个显示区域2201;应用窗口2402的大小可以占用整个显示区域2202,对此不作具体限制。
具体的,该应用窗口以悬浮的方式显示在折叠屏幕的显示区域上。
3)界面内容
需要说明的是,目标应用的界面内容,可以理解为,在运行该目标应用之后,用于组成该目标应用的视图/界面的所有元素或内容,用户可以直观进行查看,也可以对相应界面内容进行触控以操作该应用。
具体的,界面内容,可以由多种视图内容组成,且不同的视图内容可以提供不同的功能,或者不同 的视图内容可以呈现出不同的视觉效果。
4)界面内容的分类
①按照是否能操作目标应用来分类
需要说明的是,本申请实施例可以按照是否能操作目标应用来将该目标应用的界面内容进行分类。对此,界面内容的类型可以包括非操作类界面内容(或者称为“不可操作类界面内容”)和操作类界面内容(或者称为“可操作类界面内容”)。
具体的,非操作类界面内容,可以具有不向用户提供操作该目标应用的功能,或者不具有操作该目标应用的功能。因此,用户不能操作/触控这类视图内容来操作该目标应用。
例如,在图3中,该非操作类界面内容可以包括文字3306、动态图像3307等,而用户无法操作/触控这类视图内容来操作音乐播放应用。
具体的,操作类界面内容,可以具有向用户提供操作该目标应用的功能,或者具有操作该目标应用的功能。因此,用户可以操作/触控这类视图内容来操作该目标应用。
例如,在图3中,该操作类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而用户可以操作/触控这类界面内容来对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
②按照是否能响应对折叠屏幕的触控事件来分类
需要说明的是,本申请实施例的折叠屏幕可以是被触控(点击/触摸等)的。因此,用户可以触控(点击/触摸等)该折叠屏幕来执行相应的事件。比如,用户可以在该折叠屏幕的显示区域中的特定位置进行滑动来调节该折叠屏幕的显示亮度。
基于此,本申请实施例可以按照是否能响应对折叠屏幕的触控事件来将目标应用的界面内容进行分类。对此,界面内容的类型可以包括非响应类界面内容(或者称为“不可响应类界面内容”)和响应类界面内容(或者称为“可响应类界面内容”)。
具体的,非响应类界面内容,可以具有不响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容不会响应于该触控事件,从而无法对目标应用进行相应的操作。
例如,在图3中,该非响应类界面内容可以包括文字3306、动态图像3307等,而这类界面内容无法响应于用户对折叠屏幕310的触控。
具体的,响应类界面内容,可以具有响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容会响应于该触控事件,从而对应用进行相应的操作。
例如,在图3中,该响应类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而这类界面内容会响应于用户对折叠屏幕310的触控,以便对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
5)第一界面内容、第二界面内容
①描述
结合上述“4)界面内容的分类”中的内容,为了便于区分和描述,本申请实施例引入第一界面内容和第二界面内容。
具体的,第一界面内容可以为非操作类界面内容,第二界面内容可以为操作类界面内容。对此,第一界面内容可以具有不向用户提供操作目标应用的功能;第二界面内容可以具有向用户提供操作目标应用的功能。
具体的,第一界面内容可以为非响应类界面内容,第二界面内容可以为响应类界面内容。对此,第一界面内容可以具有不响应于用户对折叠屏幕的触控事件的功能;第二界面内容可以具有响应于用户对折叠屏幕的触控事件以操作应用的功能。
在一些可能的实现中,第一界面内容不包含可触摸控件,第二界面内容包含可触摸控件。其中,该可触摸控件可以具有向用户提供操作目标应用的功能。
②组成
需要说明的是,无论是第一界面内容,还是第二界面内容,都有可能是由一个或多个类型的视图内容组成的。
下面以Android系统为例,对第一界面内容和第二界面内容的组成进行具体说明。
◆活动(Activity)、画布(Surface)、画布视图(SurfaceView)、纹理视图(TextureView)
在Android系统中,Activity可以是Android定义的应用组件,可以用于显示用户界面的组件,可以用于提供一个能让用户操作并与只交互的应用界面,该应用界面可以包含多个Activity。
具体的,Activity中的视图可以包括TextureView、按钮(Button)、图像视图(ImageView)、视图(View)等。其中,TextureView可以是把内容流作为外部纹理输出在上面的图层,其自身需要一个硬件加速层。
具体的,Surface,可以是“表面”/“画布”的意思,可以是将图形缓冲区(graphic buffer)绘制到其中的对象,可以为内存中的图形缓冲区,可以由屏幕显示内容合成器(screen compositor)所管理的原生缓冲器的句柄。因此,通过Surface(因为Surface是句柄)就可以获得原生缓冲器(rawbuffer)中的内容,而原生缓冲器可以用于保存绘制应用窗口所显示的界面内容的相关数据等。
由于目标应用的界面内容都是通过Surface呈现出来的,而目标应用的界面内容可以是由各类的视图内容组成的,因此该界面内容中的各类视图均需要通过Surface呈现。
具体的,目标应用的界面内容的类型可以包括SurfaceView的视图内容、Activity中的各类视图的视图内容等,如TextureView的视图内容、Button的视图内容、ImageView的视图内容、View的视图内容。
其中,SurfaceView自带有独立的Surface和图层(Layer),而SurfaceView可以控制该Surface的格式、尺寸以及绘制位置等。对此,SurfaceView的视图内容可以由其自带的Surface呈现。另外,SurfaceView的视图内容的渲染可以放在单独的线程而不是应用的主线程中。
其中,Activity中的各类视图共享同一个Surface。对此,Activity中的各类视图的视图内容可以由同一个Surface呈现。另外,Activity中的各类视图的视图内容的渲染可以放在应用的主线程中。
例如,如图5所示,应用可以包含多个Activity,如Activity 5101、Activity 5102和Activity 5103,而每个Activity中的各类视图共享同一个Surface,SurfaceView自带一个Surface。
◆第一界面内容的组成、第二界面内容的组成
需要说明的是,第一界面内容与第二界面内容可以由互不相同的一个或多个视图内容组成。
例如,结合上述内容,第一界面内容可以包括以下至少一项:SurfaceView的视图内容、Activity中的TextureView的视图内容等;而第二界面内容可以包括以下至少一项:Activity中的Button的视图内容、Activity中的ImageView的视图内容、Activity中的View的视图内容等。
当然,第一界面内容和第二界面内容还可以包括其他视图内容,主要还是按照是否能操作应用,或者是否能响应对折叠屏幕的触控事件来进行划分,对此不作具体限制。
(3)如何将第一界面内容和第二界面内容进行分屏显示
需要说明的是,当用户根据自身的需求将折叠屏幕沿着可折叠的部位进行向内或向外折叠时,折叠屏幕从未折叠状态进入悬停状态以使得折叠屏幕分成第一显示区域和第二显示区域,而如何将第一界面内容显示在第一显示区域,以及将第二界面内容显示在第二显示区域上,如图6所示,可以采用如下步骤:
步骤1:判断是否向第一界面内容创建新的Surface
需要说明的是,当需要将第一界面内容显示在第一显示区域时,通常需要保证第一界面内容具有Surface,再通过该Surface来实现在该在第一显示区域上呈现第一界面内容。
然而,结合上述“5)第一界面内容、第二界面内容”中的内容,由于第一界面内容可以由各类视图内容组成,而第一界面内容中可能存在自带独立的Surface的视图内容(如SurfaceView的视图内容),也可能不存在自带独立的Surface的视图内容,因此,本申请实施例需要先判断是否向第一界面内容创建新的Surface。
若第一界面内容仅不具有自带的Surface,则说明需要向第一界面内容创建新的Surface,并执行步骤2。
若第一界面内容具有自带的Surface以及不具有自带的Surface,则说明需要向第一界面内容创建新的Surface,并执行步骤3。
若第一界面内容仅具有自带的Surface,则说明不需要向第一界面内容创建新的Surface。
步骤2:向第一界面内容创建新的Surface
需要说明的是,若第一界面内容仅不具有自带的Surface,则本申请实施例可以向第一界面内容创建新的Surface。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface,以便第一界面内容可以呈现在新创建的Surface上。
例如,以目标应用的界面内容包括Activity中的各类视图的视图内容,且第一界面内容包括Activity中的TextureView的视图内容为例,如图7所示,由于Activity中的各类视图的视图内容共享同一个Surface,使得TextureView的视图内容不具有自带的Surface,因此需要先创建新的Surface,再将TextureView的视图内容呈现在新的Surface上。
另外,在创建新的Surface的过程中,本申请实施例需要先创建一个新的画布控制视图持有 (SurfaceControlViewHost),该SurfaceControlViewHost会持有独立的图层,并且会有一个子节点,该子节点可以命名为容器视图(ContainerView),然后将TextureView的视图内容绘制到ContainerView上,从而实现将TextureView的视图内容呈现在新的Surface上。
例如,如图8所示,先向Activity SurfaceControl下的TextureView创建一个新的SurfaceControlViewHost。其中,该SurfaceControlViewHost分别具有根画布控制(RootSurfaceControl)和ContainerView两个子(son)节点,即该ContainerView的父级(parent)为该RootSurfaceControl,该RootSurfaceControl的父级为该SurfaceControlViewHos。然后,将TextureView的视图内容绘制到ContainerView上,使得TextureView的SurfaceControl称为该RootSurfaceControl,从而实现将TextureView的视图内容呈现在新的Surface上。
步骤3:将第一界面内容自带的Surface与向第一界面内容不具有自带的Surface的视图内容所新创建的Surface进行链接
需要说明的是,若第一界面内容中既存在不具有自带的Surface的视图内容,也存在具有自带的Surface的视图内容,则本申请实施例需要先向第一界面内容中不具有自带的Surface的视图内容创建新的Surface,再将不具有自带的Surface的视图内容呈现在新创建的Surface上,最后将第一界面内容自带的Surface与向第一界面内容不具有自带的Surface的视图内容所新创建的Surface进行链接。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface。
例如,以应用的界面内容包括Activity中的各类视图的视图内容和SurfaceView的视图内容,且第一界面内容包括Activity中的TextureView的视图内容和SurfaceView的视图内容为例,如图9所示,由于Activity中的各类视图的视图内容共享同一个Surface,使得TextureView的视图内容不具有自带的Surface,因此需要先创建新的Surface,再将TextureView的视图内容呈现在新的Surface上,最后将SurfaceView自带的Surface与新的Surface进行链接。
另外,在创建新的Surface的过程中,本申请实施例需要先创建一个新的SurfaceControlViewHost,该SurfaceControlViewHost会持有独立的图层,并且会有一个子节点,即ContainerView,然后将TextureView的视图内容绘制到ContainerView上,从而实现将TextureView的视图内容呈现在新的Surface上。
在一些可能的实现中,将SurfaceView自带的Surface与新的Surface进行链接,可以包括将SurfaceView自带的Surface的SurfaceControl重定父级(reparent)到新的Surface的SurfaceControl。
例如,如图10所示,SurfaceView的自带的Surface的SurfaceControl的父级为Activity SurfaceControl。其中,Activity SurfaceControl为界面内容的SurfaceControl。因此,将SurfaceView自带的Surface的SurfaceControl重定父级到新的Surface的SurfaceControl,从而实现将SurfaceView自带的Surface与新的Surface进行链接。
综合上述步骤1至3可知,第一显示区域上用于呈现第一界面内容的Surface,可以为如下之一项:
第一界面内容自带的Surface、向第一界面内容新创建的Surface、第一界面内容自带的Surface与向第一界面内容中不具有自带的Surface的视图内容所新创建的Surface进行链接所得到的。
例如,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface,可以为SurfaceView自带的Surface。
又例如,若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现TextureView的视图内容的Surface,可以为向SurfaceView新创建的Surface。
又例如,若第一界面内容包括SurfaceView的视图内容、Activity中的TextureView的视图内容,则第一显示区域上用于呈现第一界面内容的Surface,可以是SurfaceView的Surface与TextureView的Surface进行链接所得到的。
另外,综合上述步骤1-3可知,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl,可以是电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于呈现界面内容的SurfaceControl下的子节点,也可以是新创建的。
例如,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是界面内容的SurfaceControl下的子节点,如图10所示。
又例如,若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是新创建的,如图8所示。
步骤4:创建新的第一显示区域上用于显示第一界面内容的应用窗口
需要说明的是,结合上述“2)应用窗口”中的内容,本申请实施例需要在第一显示区域上创建新的应用对应的应用窗口,再在该新创建的应用窗口中显示第一界面内容。此时,该新创建的应用窗口,可以称为第一显示区域上用于显示第一界面内容的应用窗口。
也就是说,第一显示区域上用于显示第一界面内容的应用窗口可以是新创建的。
另外,在新创建完成该应用窗口时,本申请实施例需要创建了该新创建的应用窗口的SurfaceControl。
步骤5:将第一显示区域上用于呈现第一界面内容的Surface,链接于该新创建的应用窗口
需要说明的是,为了保证在该新创建的应用窗口中显示第一界面内容,本申请实施例需要将上述所得到的第一显示区域上用于呈现第一界面内容的Surface,链接于该新创建的应用窗口。
具体的,该链接可以是采用如下步骤实现的:
将第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl,重定父级到该创建的应用窗口的SurfaceControl,即第一显示区域上用于显示第一界面内容的应用窗口的SurfaceControl。
此时,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl的父级为该创建的应用窗口的SurfaceControl。
这样,本申请实施例可以通过重定父级来实现将第一显示区域上用于呈现第一界面内容的Surface链接于该新创建的应用窗口。
步骤6:对折叠屏幕的整个显示区域上用于显示界面内容的应用窗口进行窗口大小调整,得到第二显示区域上用于显示第二界面内容的应用窗口
需要说明的是,结合上述“2)应用窗口”中的内容,在第二显示区域上需要有应用窗口,以便在该应用窗口中显示第二界面内容,而本申请实施例可以对折叠屏幕的整个显示区域上用于显示界面内容的应用窗口进行窗口大小调整,以便得到第二显示区域上用于显示第二界面内容的应用窗口。
也就是说,第二显示区域上用于显示第二界面内容的应用窗口,可以是对电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于显示界面内容的应用窗口进行窗口大小调整所得到的。
这样,只需通过应用窗口进行窗口大小调整,便能快速得到第二显示区域上用于显示第二界面内容的应用窗口,提高显示效率。
例如,在上述图9的基础上,如图11所示。其中,在折叠屏幕1110处于未折叠状态时,折叠屏幕1110的整个显示区域上的应用窗口1120显示应用的界面内容。其中,该界面内容包括Activity中的各类视图的视图内容和SurfaceView的视图内容,且第一界面内容包括Activity中的TextureView的视图内容和SurfaceView的视图内容。
在折叠屏幕1110从未折叠状态进入悬停状态以使得折叠屏幕1110的整个显示区域沿着折叠部位分成第一显示区域1130和第二显示区域1140时,第一显示区域1130上显示新创建的应用窗口1150,而第二显示区域1140上显示经过应用窗口1120的窗口大小调整所得到的应用窗口1160。
然后,将SurfaceView自带的Surface与新的Surface进行链接所得到的Surface链接于应用窗口1150中,以及将Activity中的各类视图的视图内容所共享的Surface保持于应用窗口1160中。最终,SurfaceView的视图内容和TextureView的视图内容可以显示在应用窗口1150上,而Activity中除TextureView外的其余视图的视图内容可以显示在应用窗口1160上。
综上所述,第一显示区域上用于呈现第一界面内容的Surface,不同于第二显示区域上用于呈现第二界面内容的Surface,如图11所示。
具体的,第二显示区域上用于呈现第二界面内容的Surface,可以是在折叠屏幕的整个显示区域上用于呈现界面内容的Surface中,如图11所示。
三、一种显示装置的示例性说明
1、描述
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该知悉,结合本文中所提供的实施例描述的各示例的方法、功能、模块、单元或者步骤,本申请能够以硬件或者硬件与计算机软件的结合形式来实现。某个方法、功能、模块、单元或者步骤究竟以硬件或计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用程序和设计约束条件。本领域技术人员可以对每个特定的应用程序使用不同方法来实现所描述的方法、功能、模块、单元或者步骤,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元/模块的划分。例如,可以对应各个功能划分各个功能单元/模块,也可以将两个或两个以上的功能集成在一个功能单元/模块中。上述集成的功能单元/模块既可以采用硬件的方式实现,也可以采用软件程序的方式实现。需要说明的是,本申请实施例中对功能单元/模块的划分是示意性的,只是一种逻辑功能划分,而实际实现时可以有另外的划分方式。
在采用集成的单元的情况下,图12是本申请实施例的一种显示装置的功能单元组成框图。显示装置 1200具体包括:显示单元1210。
需要说明的是,显示单元1210可以是一种用于处理或显示信号、数据、信息、图像等的模块单元,对此不作具体限制。
在一些可能的实现中,显示单元可以是集成在显示组件中。
在一些可能的实现中,显示单元1210可以集成在一个单元中。
例如,显示单元1210可以集成在处理单元中。
需要说明的是,处理单元可以是处理器或控制器,例如可以是中央处理器(central processing unit,CPU)、通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框、模块和电路。处理单元也可以是实现计算功能的组合,例如包含一个或多个微处理器组合、DSP和微处理器的组合等。
在一些可能的实现中,显示装置1200还可以包括存储单元,用于存储显示装置1200所执行的计算机程序或者指令。
例如,该存储单元可以是存储器。
在一些可能的实现中,显示装置1200可以是芯片/芯片模组/处理器/硬件等。
具体实现时,显示装置1200用于执行如上述方法实施例中所描述的步骤。下面进行详细说明。
显示单元1210,用于响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在电子设备的第一显示区域上,以及将目标应用的第二界面内容显示在电子设备的第二显示区域上;
其中,第一界面内容具有不向用户提供操作目标应用的功能,第二界面内容具有向用户提供操作目标应用的功能;或者,
第一界面内容具有不响应于用户对第一显示区域的触控事件的功能,第二界面内容具有响应于用户对第二显示区域的触控事件以操作目标应用的功能。
需要说明的是,结合上述“4)界面内容的分类”和“5)第一界面内容、第二界面内容”中的内容。第一界面内容可以为非操作类界面内容,第二界面内容可以为操作类界面内容。
其中,非操作类界面内容,可以具有不向用户提供操作目标应用的功能,或者不具有操作目标应用的功能。因此,用户不能操作/触控这类界面内容来操作目标应用。
例如,在图3中,该非操作类界面内容可以包括文字3306、动态图像3307等,而用户无法操作/触控这类界面内容来操作音乐播放应用。
其中,操作类界面内容,可以具有向用户提供操作目标应用的功能,或者具有操作目标应用的功能。因此,用户可以操作/触控这类界面内容来操作应用。
例如,在图3中,该操作类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而用户可以操作/触控这类界面内容来对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
另外,第一界面内容可以为非响应类界面内容,第二界面内容可以为响应类界面内容。
其中,非响应类界面内容,可以具有不响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容不会响应于该触控事件,从而无法对目标应用进行相应的操作。
例如,在图3中,该非响应类界面内容可以包括文字3306、动态图像3307等,而这类视图内容无法响应于用户对折叠屏幕310的触控。
其中,响应类界面内容,可以具有响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容会响应于该触控事件,从而对目标应用进行相应的操作。
例如,在图3中,该响应类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而这类界面内容会响应于用户对折叠屏幕310的触控,以便对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
可见,在电子设备进入悬停状态时,本申请实施例可以将目标应用的界面内容分成两类,即第一界面内容和第二界面内容,并将第一界面内容和第二界面内容分别显示在电子设备的两个显示区域上,即第一显示区域显示第一界面内容,而第二显示区域显示第二界面内容,从而实现将目标应用的界面内容进行视觉上的UI分离。
这样,当用户想要去操作该目标应用时,通过将该目标应用的界面内容进行分类以分别显示在不同显示区域上,如此可以将用于操作该目标应用的界面内容在用户更容易操作的显示区域上,以便有利于 避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的使用体验。
例如,在图3的(c)中,折叠屏幕310从未折叠状态进入悬停状态以使得折叠屏幕310的整个显示区域沿着折叠部位340分成显示区域3501和显示区域3502。
然后,将该音乐播放应用的界面内容进行分类,如评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304等视图内容为一类视图内容,而文字3306、动态图像3307等视图内容为另一类视图内容。其中,用户可以操作/触控评论图标3301、分享图标3302等这类视图内容来操作该音乐播放应用,但用户无法操作/触控文字3306等这类视图内容来操作该音乐播放应用。
最后,将评论图标3301、分享图标3302等这类视图内容显示在显示区域3502上的应用窗口3602中,而将文字3306、动态图像3307等这类视图内容显示在显示区域3501上的应用窗口3601中。
这样,当用户需要对该音乐播放应用所播放的音乐进行评论、分享时,用户只需去触控显示区域3502。相对于图3的(b)中需要去触控显示区域3501,用户触控显示区域3502会更加便捷和容易,能够避免折叠屏幕310发生折叠角度改变等情况,提升用户的使用体验。
需要说明的是,显示装置1200执行的各个操作的具体实现可以参见上述所示的方法实施例的相应描述,在此不再赘述。
2、其他一些实现方式
下面对所涉及的一些实现方式再进行说明,而其他未涉及的内容可以具体详见上述描述,对此不再赘述。
在一些可能的实现中,第一界面内容,包括以下至少一项:画布视图SurfaceView的视图内容、Activity中的纹理视图TextureView的视图内容;
第二界面内容,包括以下至少一项:Activity中的按钮Button的视图内容、Activity中的图像视图ImageView的视图内容、Activity中的视图View的视图内容。
需要说明的是,结合上述“5)第一界面内容、第二界面内容”的“②组成”中的内容,本申请实施例以Android系统为例,对第一界面内容和第二界面内容的组成进行说明时,第一界面内容可以包括以下至少一项:SurfaceView的视图内容、Activity中的TextureView的视图内容等;而第二界面内容可以包括以下至少一项:Activity中的Button的视图内容、Activity中的ImageView的视图内容、Activity中的View的视图内容等。
当然,第一界面内容和第二界面内容还可以包括其他视图内容,主要还是按照是否能操作应用,或者是否能响应对折叠屏幕的触控事件来进行划分,对此不作具体限制。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的画布Surface,不同于第二显示区域上用于呈现第二界面内容的Surface。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,当需要将第一界面内容显示在第一显示区域时,通常需要保证第一界面内容具有Surface,再通过该Surface来实现在该在第一显示区域上呈现第一界面内容。同理,当需要将第二界面内容显示在第二显示区域时,通常需要保证第二界面内容具有Surface,再通过该Surface来实现在该在第二显示区域上呈现第二界面内容。
然而,结合上述图11可知,由于本申请实施例第一显示区域上用于呈现第一界面内容的Surface可以是新创建的,也可以是链接得到的,因此最终第一显示区域上用于呈现第一界面内容的Surface,会不同于第二显示区域上用于呈现第二界面内容的Surface。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface,为如下之一项:
第一界面内容自带的Surface、向第一界面内容新创建的Surface、第一界面内容自带的Surface与向第一界面内容中不具有自带的Surface的视图内容所新创建的Surface进行链接所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,由于第一界面内容可以由各类视图内容组成,而第一界面内容中可能存在自带独立的Surface的视图内容(如SurfaceView的视图内容),也可能不存在自带独立的Surface的视图内容,因此,本申请实施例需要先判断是否向第一界面内容创建新的Surface。
若第一界面内容仅不具有自带的Surface,则本申请实施例可以向第一界面内容创建新的Surface。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface,以便第一界面内容可以呈现在新创建的Surface上。
若第一界面内容具有自带的Surface以及不具有自带的Surface,则本申请实施例需要先向第一界面内容中不具有自带的Surface的视图内容创建新的Surface,再将不具有自带的Surface的视图内容呈现在新创建的Surface上,最后将第一界面内容自带的Surface与向第一界面内容不具有自带的Surface的视图 内容所新创建的Surface进行链接。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface。
在一些可能的实现中,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface,为SurfaceView自带的Surface;或者,
若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现TextureView的视图内容的Surface,为向SurfaceView新创建的Surface;或者,
若第一界面内容包括SurfaceView的视图内容、Activity中的TextureView的视图内容,则第一显示区域上用于呈现第一界面内容的Surface,是SurfaceView的Surface与TextureView的Surface进行链接所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,由于第一界面内容可以包括Activity中的TextureView的视图内容,可以SurfaceView的视图内容,可以SurfaceView的视图内容、Activity中的TextureView的视图内容,因此本申请实施例需要分情况来具体说明,以便实现确定第一显示区域上用于呈现第一界面内容的Surface。
在一些可能的实现中,第二显示区域上用于呈现第二界面内容的Surface,是在折叠屏幕的整个显示区域上用于呈现界面内容的Surface中。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,在图11中,由于第一界面内容的Surface与第二界面内容的Surface可以是共享界面内容的Surface,因此第二显示区域上用于呈现第二界面内容的Surface,可以是在界面内容的Surface中。这样,可以节省再去为第二显示区域上用于呈现第二界面内容的Surface进行创建,提供显示效率。
在一些可能的实现中,第一显示区域上用于显示第一界面内容的应用窗口是新创建的;
第二显示区域上用于显示第二界面内容的应用窗口,是对电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于显示界面内容的应用窗口进行窗口大小调整所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,本申请实施例需要在第一显示区域上创建新的应用对应的应用窗口,再在该新创建的应用窗口中显示第一界面内容。此时,该新创建的应用窗口,可以称为第一显示区域上用于显示第一界面内容的应用窗口。
另外,在新创建完成该应用窗口时,本申请实施例需要创建了该新创建的应用窗口的SurfaceControl。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface,链接于第一显示区域上用于显示第一界面内容的应用窗口。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,为了保证在该新创建的应用窗口中显示第一界面内容,本申请实施例需要将上述所得到的第一显示区域上用于呈现第一界面内容的Surface,链接于该新创建的应用窗口。
在一些可能的实现中,链接是采用如下步骤实现的:
将第一显示区域上用于呈现第一界面内容的Surface的画布控制SurfaceControl,重定父级到第一显示区域上用于显示第一界面内容的应用窗口的SurfaceControl。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,本申请实施例可以通过重定父级来实现将第一显示区域上用于呈现第一界面内容的Surface链接于该新创建的应用窗口。此时,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl的父级为该创建的应用窗口的SurfaceControl。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl,可以是电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于呈现界面内容的SurfaceControl下的子节点,或者新创建的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是界面内容的SurfaceControl下的子节点,如图10所示。
若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是新创建的,如图8所示。
在一些可能的实现中,第一显示区域与第二显示区域具有相同的面积。
需要说明的是,结合上述“1、折叠屏幕的整个显示区域、第一显示区域和第二显示区域”中的内容,本申请实施例可以将折叠屏幕的整个显示区域沿着折叠部位被分成相同面积的两半。这样,第一显示区域与第二显示区域可以完全重叠。
四、一种电子设备的示例性说明
1、描述
下面介绍本申请实施例的一种电子设备的结构示意图,如图13所示。其中,电子设备1300,包括处理器1310、存储器1320和至少一个用于连接处理器1310、存储器1320的通信总线。
在一些可能的实现中,处理器1310可以是一个或多个中央处理器CPU。在处理器1310是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。存储器1320包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)或便携式只读存储器(compact disc read-only memory,CD-ROM),并且存储器1320用于存储计算机程序或指令。
在一些可能的实现中,电子设备1300还包括通信接口,该通信接口用于接收和发送数据。
在一些可能的实现中,电子设备1300中的处理器1310用于执行存储器1320中存储的计算机程序或指令1321以实现如下步骤:
响应于电子设备1300进入悬停状态,将目标应用的第一界面内容显示在电子设备1300的第一显示区域上,以及将目标应用的第二界面内容显示在电子设备1300的第二显示区域上;
其中,第一界面内容具有不向用户提供操作目标应用的功能,第二界面内容具有向用户提供操作目标应用的功能;或者,
第一界面内容具有不响应于用户对第一显示区域的触控事件的功能,第二界面内容具有响应于用户对第二显示区域的触控事件以操作目标应用的功能。
需要说明的是,结合上述“4)界面内容的分类”和“5)第一界面内容、第二界面内容”中的内容。第一界面内容可以为非操作类界面内容,第二界面内容可以为操作类界面内容。
其中,非操作类界面内容,可以具有不向用户提供操作目标应用的功能,或者不具有操作目标应用的功能。因此,用户不能操作/触控这类界面内容来操作目标应用。
例如,在图3中,该非操作类界面内容可以包括文字3306、动态图像3307等,而用户无法操作/触控这类界面内容来操作音乐播放应用。
其中,操作类界面内容,可以具有向用户提供操作目标应用的功能,或者具有操作目标应用的功能。因此,用户可以操作/触控这类界面内容来操作应用。
例如,在图3中,该操作类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而用户可以操作/触控这类界面内容来对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
另外,第一界面内容可以为非响应类界面内容,第二界面内容可以为响应类界面内容。
其中,非响应类界面内容,可以具有不响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容不会响应于该触控事件,从而无法对目标应用进行相应的操作。
例如,在图3中,该非响应类界面内容可以包括文字3306、动态图像3307等,而这类视图内容无法响应于用户对折叠屏幕310的触控。
其中,响应类界面内容,可以具有响应于用户对的触控事件的功能。因此,当用户触控折叠屏幕以生成相应的触控事件时,这类界面内容会响应于该触控事件,从而对目标应用进行相应的操作。
例如,在图3中,该响应类界面内容可以包括评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304、进度条3305等,而这类界面内容会响应于用户对折叠屏幕310的触控,以便对该音乐播放应用所播放的音乐进行评论、分享、暂停/播放、切换、快进等操作。
可见,在电子设备进入悬停状态时,本申请实施例可以将目标应用的界面内容分成两类,即第一界面内容和第二界面内容,并将该两类视图类型分别显示在电子设备两个显示区域上,即第一显示区域显示第一界面内容,而第二显示区域显示第二界面内容,从而实现将应用的界面内容进行视觉上的UI分离。
这样,当用户想要去操作该目标应用时,通过将该目标应用的界面内容进行分类以分别显示在不同显示区域上,如此可以将用于操作该目标应用的界面内容显示在用户更容易操作的显示区域上,以便有利于避免因用户的触控而导致显示区域发生摆动以改变折叠角度等情况,提升用户的使用体验。
例如,在图3的(c)中,折叠屏幕310从未折叠状态进入悬停状态以使得折叠屏幕310的整个显示区域沿着折叠部位340分成显示区域3501和显示区域3502。
然后,将该音乐播放应用的界面内容进行分类,如评论图标3301、分享图标3302、暂停/播放图标3303、上一曲图标3304等视图内容为一类视图内容,而文字3306、动态图像3307等视图内容为另一类视图内容。其中,用户可以操作/触控评论图标3301、分享图标3302等这类视图内容来操作该音乐播放应 用,但用户无法操作/触控文字3306等这类视图内容来操作该音乐播放应用。
最后,将评论图标3301、分享图标3302等这类视图内容显示在显示区域3502上的应用窗口3602中,而将文字3306、动态图像3307等这类视图内容显示在显示区域3501上的应用窗口3601中。
这样,当用户需要对该音乐播放应用所播放的音乐进行评论、分享时,用户只需去触控显示区域3502。相对于图3的(b)中需要去触控显示区域3501,用户触控显示区域3502会更加便捷和容易,能够避免折叠屏幕310发生折叠角度改变等情况,提升用户的使用体验。
需要说明的是,电子设备1300执行的各个操作的具体实现可以参见上述所示的方法实施例的相应描述,在此不再赘述。
2、其他一些可能的实现方式
下面对所涉及的一些实现方式再进行说明,而其他未涉及的内容可以具体详见上述描述,对此不再赘述。
在一些可能的实现中,第一界面内容,包括以下至少一项:画布视图SurfaceView的视图内容、Activity中的纹理视图TextureView的视图内容;
第二界面内容,包括以下至少一项:Activity中的按钮Button的视图内容、Activity中的图像视图ImageView的视图内容、Activity中的视图View的视图内容。
需要说明的是,结合上述“5)第一界面内容、第二界面内容”的“②组成”中的内容,本申请实施例以Android系统为例,对第一界面内容和第二界面内容的组成进行说明时,第一界面内容可以包括以下至少一项:SurfaceView的视图内容、Activity中的TextureView的视图内容等;而第二界面内容可以包括以下至少一项:Activity中的Button的视图内容、Activity中的ImageView的视图内容、Activity中的View的视图内容等。
当然,第一界面内容和第二界面内容还可以包括其他视图内容,主要还是按照是否能操作应用,或者是否能响应对折叠屏幕的触控事件来进行划分,对此不作具体限制。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的画布Surface,不同于第二显示区域上用于呈现第二界面内容的Surface。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,当需要将第一界面内容显示在第一显示区域时,通常需要保证第一界面内容具有Surface,再通过该Surface来实现在该在第一显示区域上呈现第一界面内容。同理,当需要将第二界面内容显示在第二显示区域时,通常需要保证第二界面内容具有Surface,再通过该Surface来实现在该在第二显示区域上呈现第二界面内容。
然而,结合上述图11可知,由于本申请实施例第一显示区域上用于呈现第一界面内容的Surface可以是新创建的,也可以是链接得到的,因此最终第一显示区域上用于呈现第一界面内容的Surface,会不同于第二显示区域上用于呈现第二界面内容的Surface。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface,为如下之一项:
第一界面内容自带的Surface、向第一界面内容新创建的Surface、第一界面内容自带的Surface与向第一界面内容中不具有自带的Surface的视图内容所新创建的Surface进行链接所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,由于第一界面内容可以由各类视图内容组成,而第一界面内容中可能存在自带独立的Surface的视图内容(如SurfaceView的视图内容),也可能不存在自带独立的Surface的视图内容,因此,本申请实施例需要先判断是否向第一界面内容创建新的Surface。
若第一界面内容仅不具有自带的Surface,则本申请实施例可以向第一界面内容创建新的Surface。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface,以便第一界面内容可以呈现在新创建的Surface上。
若第一界面内容具有自带的Surface以及不具有自带的Surface,则本申请实施例需要先向第一界面内容中不具有自带的Surface的视图内容创建新的Surface,再将不具有自带的Surface的视图内容呈现在新创建的Surface上,最后将第一界面内容自带的Surface与向第一界面内容不具有自带的Surface的视图内容所新创建的Surface进行链接。这样,本申请实施例可以得到第一显示区域上用于呈现第一界面内容的Surface。
在一些可能的实现中,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface,为SurfaceView自带的Surface;或者,
若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现TextureView的视图内容的Surface,为向SurfaceView新创建的Surface;或者,
若第一界面内容包括SurfaceView的视图内容、Activity中的TextureView的视图内容,则第一显示区域上用于呈现第一界面内容的Surface,是SurfaceView的Surface与TextureView的Surface进行链接所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,由于第一界面内容可以包括Activity中的TextureView的视图内容,可以SurfaceView的视图内容,可以SurfaceView的视图内容、Activity中的TextureView的视图内容,因此本申请实施例需要分情况来具体说明,以便实现确定第一显示区域上用于呈现第一界面内容的Surface。
在一些可能的实现中,第二显示区域上用于呈现第二界面内容的Surface,是在折叠屏幕的整个显示区域上用于呈现界面内容的Surface中。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,在图11中,由于第一界面内容的Surface与第二界面内容的Surface可以是共享界面内容的Surface,因此第二显示区域上用于呈现第二界面内容的Surface,可以是在界面内容的Surface中。这样,可以节省再去为第二显示区域上用于呈现第二界面内容的Surface进行创建,提供显示效率。
在一些可能的实现中,第一显示区域上用于显示第一界面内容的应用窗口是新创建的;
第二显示区域上用于显示第二界面内容的应用窗口,是对电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于显示界面内容的应用窗口进行窗口大小调整所得到的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,本申请实施例需要在第一显示区域上创建新的应用对应的应用窗口,再在该新创建的应用窗口中显示第一界面内容。此时,该新创建的应用窗口,可以称为第一显示区域上用于显示第一界面内容的应用窗口。
另外,在新创建完成该应用窗口时,本申请实施例需要创建了该新创建的应用窗口的SurfaceControl。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface,链接于第一显示区域上用于显示第一界面内容的应用窗口。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,为了保证在该新创建的应用窗口中显示第一界面内容,本申请实施例需要将上述所得到的第一显示区域上用于呈现第一界面内容的Surface,链接于该新创建的应用窗口。
在一些可能的实现中,链接是采用如下步骤实现的:
将第一显示区域上用于呈现第一界面内容的Surface的画布控制SurfaceControl,重定父级到第一显示区域上用于显示第一界面内容的应用窗口的SurfaceControl。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,本申请实施例可以通过重定父级来实现将第一显示区域上用于呈现第一界面内容的Surface链接于该新创建的应用窗口。此时,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl的父级为该创建的应用窗口的SurfaceControl。
在一些可能的实现中,第一显示区域上用于呈现第一界面内容的Surface的SurfaceControl,可以是电子设备(折叠屏幕)处于非折叠状态下的整个显示区域上用于呈现界面内容的SurfaceControl下的子节点,或者新创建的。
需要说明的是,结合上述“3、如何将第一界面内容和第二界面内容进行分屏显示”中的内容,若第一界面内容包括SurfaceView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是界面内容的SurfaceControl下的子节点,如图10所示。
若第一界面内容包括Activity中的TextureView的视图内容,则第一显示区域上用于呈现SurfaceView的视图内容的Surface的SurfaceControl,可以是新创建的,如图8所示。
在一些可能的实现中,第一显示区域与第二显示区域具有相同的面积。
需要说明的是,结合上述“1、折叠屏幕的整个显示区域、第一显示区域和第二显示区域”中的内容,本申请实施例可以将折叠屏幕的整个显示区域沿着折叠部位被分成相同面积的两半。这样,第一显示区域与第二显示区域可以完全重叠。
五、其他示例性说明
本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质上存储有计算机程序或指令,该计算机程序或指令被处理器执行时以实现上述实施例中所描述的步骤。
本申请实施例还提供一种计算机程序产品,包括计算机程序或指令,其中,该计算机程序或指令被处理器执行时以实现上述实施例中所描述的步骤。示例性的,该计算机程序产品可以为一个软件安装包。
另外,计算机程序产品,应理解为,主要通过计算机程序或指令实现解决本申请的技术方案的软件产品。
需要说明的是,对于上述的各个实施例,为了简单描述,将其都表述为一系列的动作组合。本领域技术人员应该知悉,本申请不受所描述的动作顺序的限制,因为本申请实施例中的某些步骤可以采用其他顺序或者同时进行。另外,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作、步骤、模块或单元等并不一定是本申请实施例所必须的。
在上述实施例中,本申请实施例对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
本领域技术人员应该知悉,本申请实施例所描述的方法、步骤或者相关模块/单元的功能可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式来实现,也可以是由处理器执行计算机程序指令的方式来实现。其中,该计算机程序产品包括至少一个计算机程序指令,计算机程序指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。该计算机程序指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输。例如,该计算机程序指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质、或者半导体介质(如SSD)等。
上述实施例中描述的各个装置或产品包含的各个模块/单元,其可以是软件模块/单元,可以是硬件模块/单元,也可以一部分是软件模块/单元,而另一部分是硬件模块/单元。例如,对于应用程序于或集成于芯片的各个装置或产品,其包含的各个模块/单元可以都采用电路等硬件的方式实现;或者,其包含的一部分模块/单元可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,而另一部分(如果有)的部分模块/单元可以采用电路等硬件方式实现。对于应用程序于或集成于芯片模组的各个装置或产品,或者应用程序于或集成于终端的各个装置或产品,同理可知。
以上的具体实施方式,对本申请实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本申请实施例的具体实施方式而已,并不用于限定本申请实施例的保护范围。凡在本申请实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请实施例的保护范围之内。

Claims (24)

  1. 一种显示方法,其特征在于,包括:
    响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在所述电子设备的第一显示区域上,以及将所述目标应用的第二界面内容显示在所述电子设备的第二显示区域上;
    其中,所述第一界面内容具有不向用户提供操作所述目标应用的功能,所述第二界面内容具有向用户提供操作所述目标应用的功能;或者,
    所述第一界面内容具有不响应于用户对所述第一显示区域的触控事件的功能,所述第二界面内容具有响应于用户对所述第二显示区域的触控事件以操作所述目标应用的功能。
  2. 根据权利要求1所述的方法,其特征在于,所述第一界面内容,包括以下至少一项:画布视图SurfaceView的视图内容、活动Activity中的纹理视图TextureView的视图内容;
    所述第二界面内容,包括以下至少一项:Activity中的按钮Button的视图内容、Activity中的图像视图ImageView的视图内容、Activity中的视图View的视图内容。
  3. 根据权利要求1所述的方法,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的画布Surface,不同于所述第二显示区域上用于呈现所述第二界面内容的Surface。
  4. 根据权利要求1所述的方法,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface,包括如下之一项:
    所述第一界面内容自带的Surface、向所述第一界面内容新创建的Surface、所述第一界面内容自带的Surface与向所述第一界面内容中不具有自带的Surface的视图内容所新创建的Surface进行链接所得到的。
  5. 根据权利要求4所述的方法,其特征在于,若所述第一界面内容包括SurfaceView的视图内容,则所述第一显示区域上用于呈现所述SurfaceView的视图内容的Surface,为所述SurfaceView自带的Surface;或者,
    若所述第一界面内容包括Activity中的TextureView的视图内容,则所述第一显示区域上用于呈现所述TextureView的视图内容的Surface,为向所述SurfaceView新创建的Surface;或者,
    若所述第一界面内容包括SurfaceView的视图内容、Activity中的TextureView的视图内容,则所述第一显示区域上用于呈现所述第一界面内容的Surface,是所述SurfaceView的Surface与所述TextureView的Surface进行链接所得到的。
  6. 根据权利要求1所述的方法,其特征在于,所述第二显示区域上用于呈现所述第二界面内容的Surface,是在所述电子设备处于非折叠状态的整个显示区域上用于呈现所述目标应用的界面内容的Surface中。
  7. 根据权利要求1所述的方法,其特征在于,所述第一显示区域上用于显示所述第一界面内容的应用窗口是新创建的;
    所述第二显示区域上用于显示所述第二界面内容的应用窗口,是对所述电子设备处于非折叠状态下的整个显示区域上用于显示所述目标应用的应用窗口进行窗口大小调整所得到的。
  8. 根据权利要求1所述的方法,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface,链接于所述第一显示区域上用于显示所述第一界面内容的应用窗口。
  9. 根据权利要求8所述的方法,其特征在于,所述链接是采用如下步骤实现的:
    将所述第一显示区域上用于呈现所述第一界面内容的Surface的画布控制SurfaceControl,重定父级到所述第一显示区域上用于显示所述第一界面内容的应用窗口的SurfaceControl。
  10. 根据权利要求1所述的方法,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface的SurfaceControl,是所述电子设备处于非折叠状态下的整个显示区域上用于呈现所述目标应用的界面内容的SurfaceControl下的子节点,或者新创建的。
  11. 根据权利要求1所述的方法,其特征在于,所述第一显示区域与所述第二显示区域具有相同的面积。
  12. 一种显示装置,其特征在于,包括:
    显示单元,用于响应于电子设备进入悬停状态,将目标应用的第一界面内容显示在所述电子设备的第一显示区域上,以及将所述目标应用的第二界面内容显示在所述电子设备的第二显示区域上;
    其中,所述第一界面内容具有不向用户提供操作所述目标应用的功能,所述第二界面内容具有向用户提供操作所述目标应用的功能;或者,
    所述第一界面内容具有不响应于用户对所述第一显示区域的触控事件的功能,所述第二界面内容具有响应于用户对所述第二显示区域的触控事件以操作所述目标应用的功能。
  13. 根据权利要求12所述的装置,其特征在于,所述第一界面内容,包括以下至少一项:画布视图SurfaceView的视图内容、活动Activity中的纹理视图TextureView的视图内容;
    所述第二界面内容,包括以下至少一项:Activity中的按钮Button的视图内容、Activity中的图像视图ImageView的视图内容、Activity中的视图View的视图内容。
  14. 根据权利要求12所述的装置,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的画布Surface,不同于所述第二显示区域上用于呈现所述第二界面内容的Surface。
  15. 根据权利要求12所述的装置,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface,包括如下之一项:
    所述第一界面内容自带的Surface、向所述第一界面内容新创建的Surface、所述第一界面内容自带的Surface与向所述第一界面内容中不具有自带的Surface的视图内容所新创建的Surface进行链接所得到的。
  16. 根据权利要求15所述的装置,其特征在于,若所述第一界面内容包括SurfaceView的视图内容,则所述第一显示区域上用于呈现所述SurfaceView的视图内容的Surface,为所述SurfaceView自带的Surface;或者,
    若所述第一界面内容包括Activity中的TextureView的视图内容,则所述第一显示区域上用于呈现所述TextureView的视图内容的Surface,为向所述SurfaceView新创建的Surface;或者,
    若所述第一界面内容包括SurfaceView的视图内容、Activity中的TextureView的视图内容,则所述第一显示区域上用于呈现所述第一界面内容的Surface,是所述SurfaceView的Surface与所述TextureView的Surface进行链接所得到的。
  17. 根据权利要求12所述的装置,其特征在于,所述第二显示区域上用于呈现所述第二界面内容的Surface,是在所述电子设备处于非折叠状态的整个显示区域上用于呈现所述目标应用的界面内容的Surface中。
  18. 根据权利要求12所述的装置,其特征在于,所述第一显示区域上用于显示所述第一界面内容的应用窗口是新创建的;
    所述第二显示区域上用于显示所述第二界面内容的应用窗口,是对所述电子设备处于非折叠状态下的整个显示区域上用于显示所述目标应用的应用窗口进行窗口大小调整所得到的。
  19. 根据权利要求12所述的装置,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface,链接于所述第一显示区域上用于显示所述第一界面内容的应用窗口。
  20. 根据权利要求19所述的装置,其特征在于,所述链接是采用如下步骤实现的:
    将所述第一显示区域上用于呈现所述第一界面内容的Surface的画布控制SurfaceControl,重定父级到所述第一显示区域上用于显示所述第一界面内容的应用窗口的SurfaceControl。
  21. 根据权利要求12所述的装置,其特征在于,所述第一显示区域上用于呈现所述第一界面内容的Surface的SurfaceControl,是所述电子设备处于非折叠状态下的整个显示区域上用于呈现所述目标应用的界面内容的SurfaceControl下的子节点,或者新创建的。
  22. 根据权利要求12所述的装置,其特征在于,所述第一显示区域与所述第二显示区域具有相同的面积。
  23. 一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上的计算机程序或指令,所述处理器执行所述计算机程序或指令以实现权利要求1-11中任一项所述方法的步骤。
  24. 一种计算机可读存储介质,其特征在于,其存储有计算机程序或指令,所述计算机程序或指令被执行时实现权利要求1-11中任一项所述方法的步骤。
PCT/CN2023/119109 2022-11-30 2023-09-15 显示方法与装置、电子设备 WO2024114051A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211521939.3 2022-11-30
CN202211521939.3A CN115904151A (zh) 2022-11-30 2022-11-30 显示方法与装置、电子设备

Publications (1)

Publication Number Publication Date
WO2024114051A1 true WO2024114051A1 (zh) 2024-06-06

Family

ID=86491020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/119109 WO2024114051A1 (zh) 2022-11-30 2023-09-15 显示方法与装置、电子设备

Country Status (2)

Country Link
CN (1) CN115904151A (zh)
WO (1) WO2024114051A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904151A (zh) * 2022-11-30 2023-04-04 南京欧珀软件科技有限公司 显示方法与装置、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8988381B1 (en) * 2014-02-14 2015-03-24 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN110308956A (zh) * 2018-03-20 2019-10-08 青岛海信移动通信技术股份有限公司 一种应用界面显示方法、装置及移动终端
CN110389802A (zh) * 2019-06-05 2019-10-29 华为技术有限公司 一种柔性屏幕的显示方法及电子设备
CN111522523A (zh) * 2020-04-30 2020-08-11 北京小米移动软件有限公司 显示处理方法及装置、计算机存储介质
CN115904151A (zh) * 2022-11-30 2023-04-04 南京欧珀软件科技有限公司 显示方法与装置、电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8988381B1 (en) * 2014-02-14 2015-03-24 Lg Electronics Inc. Mobile terminal and method for controlling the same
CN110308956A (zh) * 2018-03-20 2019-10-08 青岛海信移动通信技术股份有限公司 一种应用界面显示方法、装置及移动终端
CN110389802A (zh) * 2019-06-05 2019-10-29 华为技术有限公司 一种柔性屏幕的显示方法及电子设备
CN111522523A (zh) * 2020-04-30 2020-08-11 北京小米移动软件有限公司 显示处理方法及装置、计算机存储介质
CN115904151A (zh) * 2022-11-30 2023-04-04 南京欧珀软件科技有限公司 显示方法与装置、电子设备

Also Published As

Publication number Publication date
CN115904151A (zh) 2023-04-04

Similar Documents

Publication Publication Date Title
WO2021057830A1 (zh) 一种信息处理方法及电子设备
WO2021023021A1 (zh) 一种显示方法及电子设备
WO2021227770A1 (zh) 应用窗口显示方法和电子设备
US20240338118A1 (en) Cross-device object drag method and device
WO2020187157A1 (zh) 一种控制方法和电子设备
WO2021129253A1 (zh) 显示多窗口的方法、电子设备和系统
WO2021121335A1 (zh) 具有柔性屏幕的电子设备的显示方法和电子设备
JP2023506936A (ja) マルチ画面共働方法およびシステム、ならびに電子デバイス
WO2024114051A1 (zh) 显示方法与装置、电子设备
WO2023050722A1 (zh) 信息显示方法及电子设备
JP7236551B2 (ja) キャラクタ推薦方法、キャラクタ推薦装置、コンピュータ装置およびプログラム
WO2021052035A1 (zh) 一种屏幕侧面区域显示方法及电子设备
CN108762881A (zh) 界面绘制方法、装置、终端及存储介质
WO2023040666A1 (zh) 键盘显示方法、折叠屏设备和计算机可读存储介质
WO2023005751A1 (zh) 渲染方法及电子设备
CN110045958B (zh) 纹理数据生成方法、装置、存储介质及设备
WO2021052488A1 (zh) 一种信息处理方法及电子设备
WO2021254113A1 (zh) 一种三维界面的控制方法和终端
WO2024067551A1 (zh) 界面显示方法及电子设备
WO2021253141A1 (zh) 一种图像数据处理的装置和方法
CN114741121B (zh) 用于模块加载的方法与装置、电子设备
US20240211280A1 (en) Quick interface return method and electronic device
WO2022151937A1 (zh) 一种界面显示方法及电子设备
WO2024067599A1 (zh) 应用显示的方法和电子设备
WO2024114451A1 (zh) 一种跨系统内容显示方法及设备

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: 23896208

Country of ref document: EP

Kind code of ref document: A1