This application relates to the field of terminal technologies, and in particular, to a wallpaper setting method and an electronic device.
With the development of flexible screen technologies, a flexible foldable screen (also referred to as a foldable screen) has been used in a mobile phone and other terminal devices, so that a user can fold or unfold the mobile phone and other terminal devices to meet a user's use requirement for different screen sizes.
In a possible implementation, a mobile phone using the foldable screen may include an internal display, an external display, and a back panel, and the internal display is foldable. Wallpapers can be set on a desktop of the internal display and a desktop of the external display separately to meet different aesthetic needs of users.
This application provides a wallpaper setting method and an electronic device. This may improve a problem in which if you want to set wallpapers on an internal display and an external display of the electronic device based on a same image, an operation process is cumbersome.
According to a first aspect, this application provides a wallpaper setting method, applied to an electronic device, where the electronic device includes a first display and a second display. The method provided in this application includes: the electronic device displays a first interface, and the first interface includes a first image; in response to a first operation on the first image, the electronic device displays a second interface, where the second interface includes a first wallpaper, a second wallpaper, and a first control, where the first wallpaper and the second wallpaper are different wallpapers generated based on the first image, the first wallpaper matches the first display, and the second wallpaper matches the second display; and the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
In the wallpaper setting method provided in this application, a second interface displayed by the electronic device includes a first wallpaper, a second wallpaper and a first control. The first wallpaper and the second wallpaper are different wallpapers generated based on a same image. the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface. That is, a user can set the first wallpaper of the first display and the second wallpaper of the second display through one trigger, which is convenient and quick to operate and has high efficiency.
In a possible implementation, that the electronic device displays a second interface includes: the electronic device displays one of the first wallpaper and the second wallpaper on the second interface; and the electronic device updates to display the other of the first wallpaper and the second wallpaper on the second interface in response to a third operation of a user.
In a possible implementation, that the second interface is displayed on the first display, and the electronic device displays a second interface includes: the electronic device displays the first wallpaper on the second interface; and the electronic device updates to display the second wallpaper on the second interface in response to a fourth operation of a user.
It may be understood that when the second interface is displayed on the first display, the user may pay more attention to the first wallpaper that matches the first display. Therefore, the electronic device preferentially displays the first wallpaper. When the electronic device updates to display the second wallpaper on the second interface in response to a fourth operation of a user, it is more in line with browsing requirements of the user.
In a possible implementation, the second interface includes a first option and a second option, where the first option is used to indicate to display the first wallpaper, the second option is used to indicate to display the second wallpaper, the first option is selected by default, and the fourth operation is a selected operation for the second option.
In a possible implementation, after the electronic device is updated to display the second wallpaper on the second interface in response to a fourth operation of the user, the method further includes:
The electronic device displays first prompt information on the second interface, and the first prompt information is used to indicate to set the second wallpaper on the second display. That the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface includes: the electronic device receives a confirmation operation on the first prompt information; and the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
It may be understood that the first prompt information is used to indicate that the second wallpaper is set on the second display. In this way, when the electronic device displays the first wallpaper on the second interface and receives a confirmation operation on the first prompt information, the first wallpaper is set as a wallpaper of the first display and the second wallpaper is set as a wallpaper of the second display in response to the second operation on the first control, which is more in line with the user's demand for wallpaper setting.
In a possible implementation, that the second interface is displayed on the second display, and the electronic device displays the second interface in response to the first operation on the first image includes: the electronic device displays the second wallpaper on the second interface; and the electronic device updates to display the first wallpaper on the second interface in response to a fifth operation of a user.
It may be understood that when the second interface is displayed on the second display, the user may pay more attention to the second wallpaper that matches the second display. Therefore, the electronic device preferentially displays the second wallpaper. When the electronic device updates to display the first wallpaper on the second interface in response to a fifth operation of a user, it is more in line with browsing requirements of the user.
In a possible implementation, the second interface includes a first option and a second option, where the first option is used to indicate to display the first wallpaper, the second option is used to indicate to display the second wallpaper, the second option is selected by default, and the fifth operation is a selected operation for the first option.
In a possible implementation, after the electronic device is updated to display the first wallpaper on the second interface in response to a fifth operation of the user, the method further includes:
The electronic device displays second prompt information on the second interface, and the second prompt information is used to indicate to set the first wallpaper on the first display. That the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface includes: the electronic device receives a confirmation operation on the second prompt information; and the electronic device sets the first wallpaper as a wallpaper of the first display and sets the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
It may be understood that the second prompt information is used to indicate that the first wallpaper is set on the first display. In this way, when the electronic device displays the second wallpaper on the second interface and receives a confirmation operation on the second prompt information, the second wallpaper is set as a wallpaper of the second display and the first wallpaper is set as a wallpaper of the first display in response to the second operation on the first control, which is more in line with the user's demand for wallpaper setting.
In a possible implementation, the first wallpaper and the second wallpaper are simultaneously displayed by the electronic device on the second interface.
In this way, the user can browse the first wallpaper and the second wallpaper at the same time on the second interface at one time, which is convenient and quick.
In a possible implementation, the first wallpaper and the second wallpaper do not overlap.
In a possible implementation, a first window is displayed on the second interface.
When the second interface is displayed on the first display, the first wallpaper is within the second interface and the second wallpaper is within the first window.
When the second interface is displayed on the second display, the second wallpaper is within the second interface and the first wallpaper is within the first window.
When the second interface is displayed on the first display, the user may pay more attention to the first wallpaper that matches the first display. In this way, the first wallpaper is within the second interface, so that the first wallpaper can be browsed more clearly. At the same time, because the second wallpaper is within the first window, the user may further browse the second wallpaper.
Alternatively, because the second interface is displayed on the second display, the user may pay more attention to the second wallpaper that matches the second display. In this way, the second wallpaper is within the second interface, so that the second wallpaper can be browsed more clearly. At the same time, because the first wallpaper is within the first window, the user may further browse the second wallpaper.
In a possible implementation, before setting the first wallpaper as the wallpaper of the first display and setting the second wallpaper as the wallpaper of the second display, the method provided in this application further includes: when the second interface is displayed on the first display, the electronic device displays the first wallpaper in the first window in response to a switching operation on the second interface, and displays the second wallpaper in a first area; or when the second interface is displayed on the second display, the electronic device displays the first wallpaper in the first window in response to a switching operation on the second interface, and displays the second wallpaper in a second area.
In this way, the user may further browse the second wallpaper or the first wallpaper more clearly through the switching operation.
In a possible implementation, before setting the first wallpaper as the wallpaper of the first display and setting the second wallpaper as the wallpaper of the second display, the method provided in this application further includes: the electronic device zooms in the first wallpaper, zooms out the first wallpaper, or adjusts a display area of the first wallpaper in response to an adjustment operation on the first wallpaper; and/or the electronic device enlarges the second wallpaper, reduces the second wallpaper, or adjusts a display area of the second wallpaper in response to the adjustment operation of the second wallpaper.
In this way, the user can adjust sizes and display areas of the first wallpaper and/or the second wallpaper based on a personal requirement.
In a possible implementation, the second interface includes a second control, and the second control is used to indicate to enable a function of setting the first wallpaper of the first display and the second wallpaper of the second display based on a same image, and before setting the first wallpaper as a wallpaper of the first display and setting the second wallpaper as a wallpaper of the second display, the method provided in this application further includes: the electronic device enables the function of setting the first wallpaper of the first display and the second wallpaper of the second display based on the same image in response to a triggering operation on the second control.
In this way, the electronic device can determine whether to enable the function of setting the first wallpaper of a first display and the second wallpaper of a second display based on the same image and the user's need.
According to a second aspect, this application provides a wallpaper setting apparatus, applied to an electronic device, where the electronic device includes a first display and a second display. The apparatus provided in this application includes: a display unit, configured to display a first interface, and the first interface includes a first image; a display unit, further configured to: in response to a first operation on the first image, the electronic device displays a second interface, where the second interface includes a first wallpaper, a second wallpaper, and a first control, where the first wallpaper and the second wallpaper are different wallpapers generated based on the first image, the first wallpaper matches the first display, and the second wallpaper matches the second display; and the processing unit is configured to: set the first wallpaper as a wallpaper of the first display and set the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
According to a third aspect, this application provides an electronic device, including a processor and a memory, where the memory is configured to store code instructions; and the processor is configured to run the code instructions, causing the electronic device to perform the wallpaper setting method according to the first aspect or any one of implementations of the first aspect.
According to a fourth aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed, a computer is enabled to perform the wallpaper setting method according to the first aspect or any one of implementations of the first aspect.
According to a fifth aspect, this application provides a computer program product, including a computer program. When the computer program is run, a computer is enabled to perform the wallpaper setting method according to the first aspect or any one of implementations of the first aspect.
It should be understood that the second aspect to the fifth aspect of this application correspond to the technical solution of the first aspect of this application, and the beneficial effects obtained by each aspect and the corresponding feasible implementations are similar. Details are not described herein again.
For ease of describing the technical solutions in embodiments of this application clearly, in embodiments of this application, terms such as “first” and “second” are used to distinguish same or similar items with a basically same function and role. For example, a first value and a second value are merely used to distinguish between different values, and are not intended to limit a sequence thereof. A person skilled in the art may understand that the terms “first”, “second”, and the like, and do not limit a quantity and an execution order, and the terms “first”, “second”, and the like are not limited to be necessarily different.
It should be noted that, in this application, the term “exemplary” or “for example” is used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as an “exemplary” or “for example” in this application should not be explained as being more preferred or having more advantages than another embodiment or design scheme. Exactly, the terms such as “exemplary” and “for example” as used herein are intended to present the related concept in a specific implementation.
In this application, “at least one” refers to one or more, and “a plurality of” refers to two or more. The term and/or describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent: only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character “/” generally indicates an “or” relationship between the associated objects. “At least one of the following items” or a similar expression means any combination of these items, including a single item (item) or any combination of a plurality of items (items). For example, at least one of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c may be single or multiple.
With the development of a flexible screen technology, a flexible foldable screen (also referred to as a foldable screen) has been applied to a mobile phone and other terminal devices. A terminal device using the foldable screen can include an internal display and an external display, and the internal display can be folded.
Wallpapers can be set on a desktop of the internal display and a desktop of the external display separately to meet different aesthetic needs of users. However, when the user sets the desktop of the internal display and the desktop of the external display, setting steps are cumbersome and inefficient, which affects the user experience.
As shown in
In order to make an external display of the electronic device 100 also set a wallpaper based on the image 103, when a “Setting icon” of a desktop of the external display of the electronic device 100 is triggered by a user, as shown in (a) in
It can be learned that in the above process, if wallpapers are set on the internal display and the external display of the electronic device 100 based on a same image, the operation process is cumbersome, the efficiency is low, and the user experience is affected.
In other scenarios, the electronic device 100 may alternatively crop or stretch the wallpaper of the desktop 105 of the internal display, and the wallpaper of the desktop 206 of the external display of the electronic device 100 is obtained. This causes deformation of the wallpaper of the desktop 206 of the external display.
In view of this, this application provides a wallpaper setting method. A second interface displayed by the electronic device includes a first wallpaper, a second wallpaper and a first control. The first wallpaper and the second wallpaper are different wallpapers generated based on a same image. The electronic device sets the first wallpaper as a wallpaper of a first display and sets the second wallpaper as a wallpaper of a second display in response to a second operation on the first control on the second interface. That is, a user can set the first wallpaper of the first display and the second wallpaper of the second display through one trigger, which is convenient and quick to operate and has high efficiency.
It may be understood that embodiments of this application can be applied to an electronic device having a foldable screen. The electronic device may also be referred to as a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), or the like. The electronic device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer having a wireless transmission and receiving function, a virtual reality (VR) electronic device, an augmented reality (AR) electronic, a wireless terminal related to industrial control, a wireless terminal related to self-driving, a wireless terminal related to remote medical surgery, a wireless terminal related to a smart grid, a wireless terminal related to transportation safety, a wireless terminal related to a smart city, a wireless terminal related to a smart home, or the like. Embodiments of this application impose no limitation on a specific technology and a specific device form used by the electronic device.
To better understand embodiments of this application, the following describes a structure of the electronic device in embodiments of this application. For example,
The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a telephone receiver 170B, a microphone 170C, a sensor module 180, a key 190, an indicator 192, a camera 193, a display 194, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a range sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It may be understood that the structure shown in embodiments of this application does not constitute a specific limitation on the electronic device. In some other embodiments in this application, the electronic device may include more or fewer components than those shown in the figure, or some components may be combined, or some components may be split, or a different component deployment may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units. Different processing units may be separate devices, or may be integrated into one or more processors. A memory may also be disposed in the processor 110, configured to store instructions and data.
The USB interface 130 is an interface that complies with the USB standard specification, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 may be configured to be connected to the charger to charge the electronic device, or may be used for data transmission between the electronic device and a peripheral device. The USB interface 130 may also be configured to connect to a headset to play audio through the headset. The interface may alternatively be configured to be connected to another electronic device like an AR device.
The charging management module 140 is configured to receive charging input from the charger. The charger may be a wireless charger, or may be a wired charger. The power management module 141 is configured to connect to the charging management module 140 and the processor 110.
A wireless communication function of the electronic device may be implemented by using the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antenna 1 and the antenna 2 are configured to transmit and receive an electromagnetic wave signal. Each antenna in the electronic device may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed, to improve antenna utilization.
The mobile communication module 150 can provide a wireless communication solution including such as 2G/3G/4G/5G applied on the electronic device. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave through the antenna 1, perform processing such as filtering and amplification on the received electromagnetic wave, and send the electromagnetic wave to the modem processor for demodulation.
The wireless communication module 160 may provide a solution for wireless communication including a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), and the like to be applied to the electronic device.
The electronic device implements a display function through the GPU, the display 194, the application processor. The GPU is a microprocessor for image processing and connects the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations, and is configured to render graphics.
The display 194 is configured to display an image, a video, and the like. The display 194 includes a panel. In some embodiments, the electronic device may include one or N displays 194, and N is a positive integer greater than 1. In embodiments of this application, the electronic device may include two displays: an internal display and an external display, and the internal display and the external display are respectively located on two opposite surfaces of the electronic device. The internal display includes a first sub-screen and a second sub-screen. When the electronic device is in a folded state, the external display is exposed to the surface of the electronic device, and an included angle between the surfaces that are of the first sub-screen and the second sub-screen and that are exposed to the outside is less than a first angle threshold. When the electronic device is in an unfolded state, the included angle between the surfaces that are of the first sub-screen and the second sub-screen and that are exposed to the outside is greater than a second angle threshold. 0°≤the first angle threshold<180°, 0°<the second angle threshold≤180°, and the first angle threshold≤the second angle threshold. The electronic device detects that it is in the unfolded state and displays a user interface on the internal display. The electronic device detects that it is in the folded state and displays the user interface on the external display.
The electronic device may implement a photographing function by using the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The camera 193 is configured to capture a still image or video. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
The external memory interface 120 may be configured to be connected to an external storage card such as a Micro SD card, to expand a storage capability of the electronic device. The external memory card communicates with the processor 110 by using the external memory interface 120, to implement a data storage function, for example, store files such as music and a video into the external storage card.
The internal memory 121 may be configured to store computer executable program code, where the executable program code includes an instruction. The internal memory 121 may include a program storage area and a data storage area.
The electronic device may implement an audio function, such as music playing or recording, by using the audio module 170, the speaker 170A, the telephone receiver 170B, the microphone 170C, the application processor, and the like.
The audio module 170 is configured to convert digital audio information into analog audio signal output, and is also configured to convert analog audio input into a digital audio signal. The speaker 170A, also referred to as a “horn”, is configured to convert an electrical audio signal into a sound signal. Music can be listened to or a hands-free call can be answered by using the speaker 170A in the electronic device. The telephone receiver 170B, also referred to as a “receiver”, is configured to convert an audio electrical signal into a sound signal. When the electronic device is used to answer a call or receive voice information, the telephone receiver 170B may be put close to a human ear, to receive the voice. The microphone 170C, also referred to as “voice tube” or “mike”, is configured to convert a sound signal into an electrical signal.
The pressure sensor 180A is configured to sense a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display 194. The gyroscope sensor 180B may be configured to determine a motion posture of the electronic device. The biometric pressure sensor 180C is configured to measure an atmospheric pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E may detect magnitudes of acceleration of the electronic device in various directions (generally on three axes). The distance sensor 180F is configured to measure a distance. The optical proximity sensor 180G may include, for example, a light-emitting diode (LED) and an optical detector, for example, a photodiode. The ambient light sensor 180L is configured to perceive ambient light brightness. The fingerprint sensor 180H is configured to collect a fingerprint. The temperature sensor 180J is configured to detect temperature. The touch sensor 180K is also referred to as a “touch device”. The touch sensor 180K may be disposed on the display 194. The touch sensor 180K and the display 194 form a touchscreen, which is also referred to as a “touchscreen”. The bone conduction sensor 180M may collect a vibration signal.
The key 190 includes a power-on key, a volume key, and the like. The key 190 may be a mechanical key, or a touch-type key. The electronic device may receive a key input, and generate a key signal input related to user setting and function control of the electronic device. The indicator 192 may be an indicator light, and may be configured to indicate a charging status and a power change, or may be configured to indicate a message, a missed call, a notification, or the like.
A software system of the electronic device may use a layered architecture, an event-driven architecture, a microkernel architecture, a micro service architecture, a cloud architecture, or the like. Details are not described herein again.
In this embodiment of this application, the software structure of the electronic device is exemplarily described by using an Android system with a layered architecture as an example. In some embodiments, an Android system is divided into five layers: an application layer, an application framework layer, an Android runtime, a system library, a hardware abstract layer (HAL), and a kernel layer (kernel).
The application layer may include a series of application packages, and the application layer runs the application by calling an application programming interface (API) provided by the application framework layer. As shown in
The application framework layer provides the API and programming framework for applications at the application layer. The application framework layer includes some predefined functions. The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The android runtime includes a kernel library and a virtual machine. The android runtime is responsible for scheduling and management of an android system. The core library includes two parts: one part is a performance function that the Java language needs to invoke, and the other part is a core library of Android. The application layer and the application framework layer are run in the virtual machine. The virtual machine executes Java files of the application layer and the application framework layer as binary files. The virtual machine is used to execute functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of function modules, for example, a surface manager, a media library, a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL).
The hardware abstract layer may include a plurality of library modules, such as a camera library module, and a motor library module. The Android system can load corresponding library modules for device hardware, and then realize the purpose of accessing the device hardware by the application framework layer. The device hardware may include, for example, a motor, and a camera in the electronic device.
The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to work. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, a motor driver, and the like. This is not limited in this embodiment of this application.
The following describes the technical solutions of this application and how to resolve the foregoing technical problems according to the technical solutions of this application in detail by using specific embodiments. The following several specific embodiments may be independently implemented, and may also be combined with each other, and the same or similar concepts or processes may not be described repeatedly in some embodiments.
When a “Setting icon” of a desktop of an internal display of an electronic device is triggered by a user, as shown in (a) in
As shown in
Further, as shown in
It may be understood that, when the wallpaper preview interface 106 is displayed on the internal display, the user may pay more attention to the second wallpaper 108 that matches the internal display. Therefore, the electronic device preferentially displays the second wallpaper 108, which is more in line with a browsing requirement of the user.
It should be noted that, the internal screen option 107 may be selected when triggered by the user, or the internal screen option 107 is selected by default when the electronic device displays the wallpaper preview interface 106 in response to a user's operation of selecting the image 103 in
In addition, as shown in
In other words, the electronic device displays one of the first wallpaper and the second wallpaper on the wallpaper preview interface 106. In response to the third operation performed by the user, the electronic device updates to display the other one of the first wallpaper and the second wallpaper on the wallpaper preview interface 106.
Further, as shown in
As shown in
In other embodiments, the electronic device displays the second wallpaper 108 on the wallpaper preview interface 106. As shown in
In conclusion, the wallpaper setting method provided in the embodiments corresponding to
In addition, on the basis of the embodiment corresponding to
It may be understood that scaling up the second wallpaper 108 is a manner to adjust the second wallpaper 108. In other embodiments, the second wallpaper 108 may be adjusted in such a way as to scale down the second wallpaper 108, move a display area of the second wallpaper 108, or blur the second wallpaper 108 (this function can be achieved by clicking a blur button on the wallpaper preview interface 106), and the like. This is not limited herein.
Similarly, moving the display area of the first wallpaper 110 is alternatively a manner to adjust the first wallpaper 110. In other embodiments, the first wallpaper 110 may be adjusted in such a way as to scale down the first wallpaper 110, scale up the display area of the first wallpaper 110, or blur the first wallpaper 110 (this function can be achieved by clicking a blur button on the wallpaper preview interface 106), and the like. This is not limited herein.
In other words, the electronic device may adjust a size or display area of the first wallpaper in response to a user operation. The electronic device may adjust a size or display area of the second wallpaper in response to a user operation to meet a browsing requirement of the user.
In this way, as shown in
As shown in
In this way, the user can adjust the first wallpaper 110 and the second wallpaper 108 displayed on the wallpaper preview interface 106 by the electronic device, so that the adjusted first wallpaper 110 displayed on the desktop of the external display is more in line with the user's aesthetic requirements, and the adjusted second wallpaper 108 displayed on the desktop of the internal display is also more in line with the user's aesthetic requirements.
In addition, in the above embodiment, the first wallpaper 110 of the external display and the second wallpaper 108 of the internal display are set when the internal display of the electronic device responds to the user operation. How the external display of the electronic device sets the first wallpaper 110 of the external display and the second wallpaper 108 of the internal display in response to the user operation is explained below with reference to
For example, as shown in (a) in
As shown in (a) and (b) in
As shown in (c) in
It should be noted that, the external screen option 107 may be selected when triggered by the user, or the external screen option 107 may be selected by default when the wallpaper preview interface 205 is displayed on the external display of the electronic device. This is not limited herein.
It should be noted that, when the wallpaper preview interface is set and displayed based on the external display, the external screen option is selected by default. In other scenarios, when the wallpaper preview interface is set and displayed based on the internal display, the internal screen option is selected by default.
In addition, as shown in (a) and (b) in
In other words, the electronic device displays one of the first wallpaper and the second wallpaper on the wallpaper preview interface 106. In response to the third operation performed by the user, the electronic device updates to display the other one of the first wallpaper and the second wallpaper on the wallpaper preview interface 106.
Similar to the embodiment corresponding to
Further, as shown in (a) in
As shown in (b) in
Similarly, in the wallpaper setting method provided in the embodiments corresponding to
It should be noted that, in the above embodiments corresponding to
The first case: On the basis of the embodiment corresponding to
The electronic device may enable the function of setting the first wallpaper of the external display and the second wallpaper of the internal display based on the same image in response to a user's click operation on the second control 112. At this time, as shown in
In addition, similarly, on the basis of the embodiment corresponding to
The second case: Similarly, on the basis of the embodiment corresponding to
The third case: On the basis of the embodiment corresponding to
It may be understood that the second prompt information is used to indicate that the first wallpaper 110 is set on the external display. In this way, when the electronic device displays the first wallpaper 110 on the wallpaper preview interface 106 and receives a confirmation operation on the second prompt information, the second wallpaper 110 is set as a wallpaper of the internal display and the first wallpaper 110 is set as a wallpaper of the external display in response to the second operation on the first control, which is more in line with the user's demand for wallpaper setting.
In addition, as shown in
Alternatively, the above check box and prompt information may alternatively be displayed when the wallpaper preview interface is opened. This is not limited herein.
The fourth case: Similarly, on the basis of the embodiment corresponding to
It may be understood that the first prompt information is used to indicate that the second wallpaper 210 is set on the second display. In this way, when the electronic device displays the second wallpaper 210 on the second interface and receives a confirmation operation on the second prompt information, the second wallpaper 210 is set as a wallpaper of the internal display and the first wallpaper 208 is set as a wallpaper of the external display in response to the second operation on the first control, which is more in line with the user's demand for wallpaper setting.
In addition, as shown in (c) in
Alternatively, the above check box and prompt information may alternatively be displayed when the wallpaper preview interface is opened. This is not limited herein.
In addition, when the function of setting the first wallpaper of the external display and the second wallpaper of the internal display based on the same image is in a disabled state, the electronic device may alternatively set wallpapers obtained based on different images on the external display and the internal display in response to the user operation. This implements functional diversification. For example, on the basis of the embodiment corresponding to
In the above embodiments, an example in which when the wallpaper preview interface of the electronic device does not display the first wallpaper that matches the external display and the second wallpaper that matches the internal display simultaneously, how the first wallpaper is set on a desktop of the external display and the second wallpaper is set on a desktop of the internal display of the electronic device used for description. Next, two cases are explained with reference to
The first case: when a “Setting icon” of the desktop of the internal display of the electronic device is triggered by the user, as shown in
As shown in
As shown in
Similar to the embodiment corresponding to
In addition, the wallpaper preview interface 106 further includes a first control 114, the first control 114 is identified with a text message “Set a wallpaper”, and the first control 114 is used for setting a wallpaper. As shown in
As shown in
The second case: As shown in (a) in
As shown in (b) in
As shown in (c) in
Further, as shown in (c) in
As shown in (d) in
It should be noted that, the embodiment corresponding to
The first case: when a “Setting icon” of the desktop of the internal display of the electronic device is triggered by the user, as shown in
As shown in
As shown in
Similar to the embodiment corresponding to
In addition, as shown in in
Further, as shown in
Similarly, as shown in (d) in
The second case: As shown in (a) in
As shown in (b) in
As shown in (c) in
Similar to the embodiment corresponding to
In addition, as shown in (c) and (d) in
Further, as shown in (d) in
Similarly, as shown in (b) in
It should be noted that, in the above embodiments, an example in which the first wallpaper is set on the desktop of the external display of the electronic device, and the second wallpaper is set on the desktop of the internal display of the electronic device is used for description. It should be noted that, in other embodiments, the first wallpaper may alternatively be set on a screen locking interface of the external display of the electronic device, and the second wallpaper may alternatively be set on a screen locking interface of the internal display of the electronic device. This is not limited herein.
It should be noted that, the wallpaper preview interface in the above embodiments may further include a delete button. The electronic device may delete the first wallpaper and the second wallpaper on a wallpaper preview interface in response to a user's click operation on the delete button.
As shown in
In a possible implementation, the display unit 2001 is specifically configured to display one of the first wallpaper and the second wallpaper on the second interface; and update to display the other of the first wallpaper and the second wallpaper on the second interface in response to a third operation of a user.
In a possible implementation, the display unit 2001 is specifically configured to display the first wallpaper on the second interface, and be updated to display the second wallpaper in response to a fourth operation of the user on the second interface.
In a possible implementation, the second interface includes a first option and a second option, where the first option is used to indicate to display the first wallpaper, the second option is used to indicate to display the second wallpaper, the first option is selected by default, and the fourth operation is a selected operation for the second option.
In a possible implementation, the display unit 2001 is specifically used to display first prompt information on the second interface, and the first prompt information is used to indicate that the second wallpaper is set on the second display. The processing unit 2002 is configured to: set the first wallpaper as a wallpaper of the first display and set the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
In a possible implementation, the second interface is displayed on the second display and the display unit 2001 is specifically used to display the second wallpaper on the second interface; and in response to a fifth operation of the user, be updated to display the first wallpaper on the second interface.
In a possible implementation, the second interface includes a first option and a second option, where the first option is used to indicate to display the first wallpaper, the second option is used to indicate to display the second wallpaper, the second option is selected by default, and the fifth operation is a selected operation for the first option.
In a possible implementation, after the electronic device is updated to display the first wallpaper on the second interface in response to a fifth operation of the user, the method further includes:
The electronic device displays second prompt information on the second interface, and the second prompt information is used to indicate to set the first wallpaper on the first display. The processing unit 2002 is specifically configured to receive the confirmation operation on the second prompt information, set the first wallpaper as a wallpaper of the first display and set the second wallpaper as a wallpaper of the second display in response to a second operation on the first control on the second interface.
In a possible implementation, the first wallpaper and the second wallpaper are simultaneously displayed on the second interface by the display unit 2001.
In a possible implementation, the first wallpaper and the second wallpaper do not overlap.
In a possible implementation, a first window is displayed on the second interface. When the second interface is displayed on the first display, the first wallpaper is in the second interface and the second wallpaper is within the first window. When the second interface is displayed on the second display, the second wallpaper is within the second interface and the first wallpaper is within the first window.
In a possible implementation, before the first wallpaper is set as a wallpaper of the first display, the second wallpaper is set as a wallpaper of the second display, when the second interface is displayed on the first display, the display unit 2001 is further configured to display the first wallpaper in the first window and the second wallpaper on the second interface in response to a switching operation on the second interface. Alternatively, when the second interface is displayed on the second display, the display unit 2001 is further configured to: display the first wallpaper on the second interface and display the second wallpaper in the first window in response to the switching operation on the second interface.
In a possible implementation, in setting the first wallpaper as a wallpaper of the first display, the display unit 2001 is further configured to scale up the first wallpaper, scale down the first wallpaper, or adjust a display area of the first wallpaper in response to an adjustment operation on the first wallpaper; and/or the display unit 2001 is further configured to scale up the second wallpaper, scale down the second wallpaper, or adjust a display area of the second wallpaper in response to an adjustment operation on the second wallpaper.
In a possible implementation, the second interface includes a second control, and the second control is used to indicate to enable a function of setting the first wallpaper of the first display and the second wallpaper of the second display based on the same image. The processing unit 2002 is further configured to enable the function of setting the first wallpaper of the first display and the second wallpaper of the second display based on the same image in response to a triggering operation on the second control.
For example,
The processor 2101 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control execution of a program in the solutions of this application.
The communication line 2104 may include a circuit configured to transmit information between the foregoing components.
The communication interface 2103 uses any apparatus of a transceiver type to communicate with another device or a communication network such as an Ethernet, wireless local area networks (WLANs), and the like.
Possibly, the terminal device may further include a memory 2102.
The memory 2102 may be a read-only memory (ROM), another type of static storage device that can store static information and instructions, a random access memory (RAM), or another type of dynamic storage device that can store information and instructions, or may be an electrically erasable programmable read-only memory (EEPROM) or a compact disc read-only memory (CD-ROM) or another compact disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, and Blu-ray discs), magnetic disk storage media, or another magnetic storage device, or any another medium that can be used to carry or store desired program code in the form of an instruction or a data structure and that can be accessed by a computer, but not limited thereto. The memory may exist independently, and is connected to the processor through the communication line 2104. The memory may alternatively be integrated with the processor.
The memory 2102 is configured to store computer executable instructions for performing the solutions of this application, and is controlled and executed by the processor 2101. The processor 2101 is configured to execute the computer executable instructions stored in the memory 2102 to implement the wallpaper setting method provided in embodiments of this application.
Possibly, the computer executable instructions in embodiments of this application may also be referred to as application code. This is not specifically limited in embodiments of this application.
During specific implementation, in an embodiment, the processor 2101 may include one or more CPUs, for example, a CPU0 and a CPU1 in
During specific implementation, in an embodiment, the terminal device may include a plurality of processors, for example, a processor 2101 and a processor 2105 in
For example,
In some implementations, the memory 2240 stores the following elements: an executable module, or a data structure, or a subset thereof, or an extension set thereof.
In embodiments of this application, the memory 2240 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2210. A part of the memory 2240 may further include a non-volatile random access memory (NVRAM).
In embodiments of this application, the memory 2240, the communication interface 2230, and the memory 2240 are coupled together by a bus system 2220. In addition to a data bus, the bus system 2220 may further include a power bus, a control bus, a status signal bus, and the like. For ease of representation, all types of buses in
The method described in embodiments of this application may be applied to the processor 2210 or implemented by the processor 2210. The processor 2210 may be an integrated circuit chip having a capability of processing a signal. In an implementation process, steps in the foregoing methods can be implemented by using a hardware integrated logical circuit in the processor 2210, or by using instructions in a form of software. The above processor 2210 may be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), another programmable logic device, a discrete gate, a transistor logic device, or a discrete hardware component. The processor 2210 may implement or perform the methods, steps, and logical block diagrams disclosed in embodiments of this application.
The steps of the methods disclosed with reference to the embodiments of this application may be directly performed and completed by using a hardware decoding processor, or may be performed and completed by using a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory (EEPROM), or a register. The storage medium is located in the memory 2240, and the processor 2210 reads information in the memory 2240, and completes the steps in the foregoing methods in combination with hardware thereof.
In the foregoing embodiment, the instructions executed by the processor stored in the memory may be implemented in the form of a computer program product. The computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedure or functions according to the embodiments of this application are all or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by the computer, or a data storage device, such as a server or a data center, including one or more usable media. The usable medium may include a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), a semi-conductive medium (for example, a solid state disk (SSD)), or the like.
An embodiment of this application further provides a computer-readable storage medium. All or some of methods in the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. The computer-readable medium may include a computer storage medium and a communication medium, and may further include any medium that can transmit a computer program from one place to another. The storage medium may be any target medium accessible to a computer.
In a possible design, the computer-readable storage medium may include a compact disc read-only memory (CD-ROM), a RAM, a ROM, an EEPROM, or another optical disc memory. The computer-readable medium may include a magnetic disk memory or another magnetic disk storage device. Any connection line may also be appropriately referred to as a computer readable medium. For example, if software is transmitted from a website, a server or another remote source by using a coaxial cable, an optical fiber cable, a twisted pair, a DSL or wireless technologies (such as infrared ray, radio, and microwave), the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared ray, radio, and microwave are included in the definition of the medium. A magnetic disk and an optical disc used herein include an optical disc (CD), a laser disc, an optical disc, a digital versatile disc (DVD), a floppy disk, and a blue ray disc, where the magnetic disk generally reproduces data in a magnetic manner, and the optical disc reproduces data optically by using laser.
The foregoing combination should also be included in the scope of the computer-readable medium. The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202210673992.9 | Jun 2022 | CN | national |
This application is a national stage of International Application No. PCT/CN2023/094256, filed on May 15, 2023, which claims priority to Chinese Patent Application No. 202210673992.9, filed on Jun. 14, 2022. The disclosures of both of the aforementioned applications are hereby incorporated by reference in their entireties.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/094256 | 5/15/2023 | WO |