A method of desktop layout and electronic device

CN123011381APending Publication Date: 2026-10-30HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510571223.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

但上述方式已不能满足用户的需求

Benefits of technology

[0016]本申请实施例中,电子设备可以在桌面页的界面元素遮挡壁纸中的视觉焦点的情况下,移动视觉焦点以生成一张视觉焦点未被遮挡的壁纸,保证了用户可以看到壁纸的主要部分,有助于提升用户的使用体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011381A_ABST
    Figure CN123011381A_ABST
Patent Text Reader

Abstract

The application provides a method for desktop layout and an electronic device, and the method comprises the following steps: acquiring a first image; generating M wallpapers based on the first image; and setting at least two of the M wallpapers as wallpapers of N desktop pages. Through the method provided by the application, the electronic device can generate multiple wallpapers based on the first image, and use the multiple wallpapers as wallpapers of different desktop pages, so that the user can see different wallpapers when switching between different desktop pages, thereby improving the diversity of the wallpapers and helping to improve the user experience. The multiple wallpapers are generated based on the first image, and the wallpapers of different desktop pages are associated when the user switches between different desktop pages, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic devices, and more specifically, to a method of desktop layout and an electronic device. Background Technology

[0002] Users have increasingly higher demands for the aesthetics and personalization of their electronic device desktops. Currently, users can set static or dynamic wallpapers, and electronic devices can be categorized by the color or type of interface elements, placing elements of the same type or color on the same desktop page. However, these methods no longer meet user needs. Therefore, improving the diversity of desktop layouts to satisfy user demands has become an urgent technical problem to be solved. Summary of the Invention

[0003] This application provides a desktop layout method and an electronic device that can generate multiple wallpapers based on a first image. These multiple wallpapers can then be used as wallpapers on different desktop pages, allowing users to see different wallpapers when switching between different desktop pages. This increases wallpaper diversity and enhances the user experience. Since the multiple wallpapers are generated based on the first image, the wallpapers on different desktop pages are related when the user switches between them, further improving the user experience.

[0004] In a first aspect, a method for desktop layout is provided, the method comprising: acquiring a first image; generating M wallpapers based on the first image, where M is greater than or equal to 2 and is a positive integer; and setting at least two of the M wallpapers as wallpapers for N desktop pages, where N is greater than or equal to 2 and is a positive integer.

[0005] In this embodiment, the electronic device can generate multiple wallpapers based on a first image and use these multiple wallpapers as wallpapers for different desktop pages. This allows users to see different wallpapers when switching between different desktop pages, increasing wallpaper diversity and improving the user experience. Since multiple wallpapers are generated based on the first image, the wallpapers on different desktop pages are related when the user switches between them, further enhancing the user experience.

[0006] In conjunction with the first aspect, in some implementations of the first aspect, the first image is the wallpaper of the lock screen interface, the at least two wallpapers include a first wallpaper and a second wallpaper, the N desktop pages include a first desktop page and a second desktop page, the wallpaper of the first desktop page is the first wallpaper, the wallpaper of the second desktop page is the second wallpaper, and the method further includes: generating a first animation effect based on the first wallpaper and the second wallpaper; and displaying the first animation effect and switching from the first desktop page to the second desktop page in response to an operation of switching from the first desktop page to the second desktop page.

[0007] In this embodiment, the electronic device can determine the animation effect for switching desktop pages based on the wallpaper of different desktop pages. When the user switches desktop pages, the electronic device can display the animation effect to make the switching process more refined and responsive, which helps to improve the user experience.

[0008] In conjunction with the first aspect, in some implementations of the first aspect, the first image is the wallpaper of the lock screen interface, the at least two wallpapers include a third wallpaper, the N desktop pages include a third desktop page, and the wallpaper of the third desktop page is the third wallpaper. The method further includes: generating a second animation effect based on the first image and the third wallpaper; and displaying the second animation effect and switching from the lock screen interface to the third desktop page in response to an operation of switching from the lock screen interface to the third desktop page.

[0009] In this embodiment, the electronic device can determine the animation effect of switching from the lock screen to the desktop page based on the wallpaper of the lock screen and the desktop page. When the user unlocks the electronic device, the electronic device can display the animation effect to make the switching process more refined and smooth, which helps to improve the user experience.

[0010] In conjunction with the first aspect, in some implementations of the first aspect, generating M wallpapers based on the first image includes: generating the M wallpapers based on the N desktop pages and the first image, where M equals N.

[0011] In conjunction with the first aspect, in some implementations of the first aspect, generating the M wallpapers based on the N desktop pages and the first image includes: identifying one or more visual focal points of the first image; and generating the M wallpapers based on the N desktop pages and the one or more visual focal points.

[0012] In this embodiment, the electronic device segments the first image based on the visual focus, so that the wallpapers of different desktop pages can include different visual focuses, which enhances the sophistication of the desktop layout and helps to improve the user experience.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, the N-page desktop page includes a fourth desktop page, the at least two wallpapers include a fourth wallpaper, the wallpaper of the fourth desktop page is the fourth wallpaper, the fourth desktop page includes a first interface element, the fourth wallpaper includes a first visual focus, the first interface element is located at a first position on the fourth desktop page, and the method further includes: when the first interface element obscures the first visual focus, moving the first interface element from the first position to a second position on the fourth desktop page.

[0014] In this embodiment, the electronic device can also adjust the position of the desktop page interface elements according to the position of the visual focus in the wallpaper, so that the interface elements do not obstruct the visual focus, ensuring that the user can see the main part of the wallpaper, which helps to improve the user experience.

[0015] In conjunction with the first aspect, in some implementations of the first aspect, the N desktop pages include a fifth desktop page, the at least two wallpapers include a fifth wallpaper, the wallpaper of the fifth desktop page is the fifth wallpaper, the fifth desktop page includes a second interface element, the fifth wallpaper includes a second visual focus, the second visual focus is located at a third position on the fifth desktop page, and the method further includes: when the second interface element obscures the second visual focus, moving the second visual focus from the third position to a fourth position on the fifth desktop page to obtain a sixth wallpaper; displaying the sixth wallpaper through the fifth desktop page, wherein the interface elements in the fifth desktop page do not obscure the second visual focus when the second visual focus is at the fourth position.

[0016] In this embodiment, the electronic device can move the visual focus to generate a wallpaper with the visual focus unobstructed when the interface elements on the desktop page obscure the visual focus of the wallpaper, thus ensuring that the user can see the main part of the wallpaper and improving the user experience.

[0017] In conjunction with the first aspect, in some implementations of the first aspect, the N desktop pages include a fourth desktop page, the at least two wallpapers include the fourth wallpaper, the wallpaper of the fourth desktop page is the fourth wallpaper, the fourth desktop page includes a first interface element, the fourth wallpaper includes a first visual focus, and the method further includes: moving the first interface element from the fourth desktop page to a sixth desktop page when the first interface element obscures the first visual focus.

[0018] In this embodiment, the electronic device can also adjust the position of the desktop page interface elements according to the position of the visual focus in the wallpaper, so that the interface elements do not obstruct the visual focus, ensuring that the user can see the main part of the wallpaper, which helps to improve the user experience.

[0019] In conjunction with the first aspect, in some implementations of the first aspect, the sixth desktop page is a desktop page among the N desktop pages.

[0020] In conjunction with the first aspect, in some implementations of the first aspect, moving the first interface element from the fourth desktop page to the sixth desktop page includes: generating the sixth desktop page; and moving the first interface element from the fourth desktop page to the sixth desktop page.

[0021] For example, an electronic device can generate a sixth desktop page when N desktop pages are already filled with interface elements.

[0022] In conjunction with the first aspect, in some implementations of the first aspect, the first wallpaper and the second wallpaper have the same image content.

[0023] In conjunction with the first aspect, in some implementations of the first aspect, the first image is a dynamic image.

[0024] In a second aspect, an electronic device is provided, comprising one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the foregoing aspects or any possible implementation thereof to be performed.

[0025] Thirdly, a computer-readable storage medium is provided, comprising a computer program or instructions that, when executed on a computer, cause the first aspect and any possible implementation of the method of the first aspect to be performed.

[0026] Fourthly, a computer program product is provided, comprising a computer program or instructions that, when executed on a computer, cause the first aspect and any possible implementation of the method of the first aspect to be performed.

[0027] Fifthly, a computer program is provided that, when run on a computer, causes the methods described in the first aspect and any possible implementation thereof to be executed.

[0028] Sixthly, an electronic device according to an embodiment of this application includes modules / units for performing the above aspects or any possible design of the above aspects; these modules / units can be implemented in hardware or implemented by hardware executing corresponding software.

[0029] For the beneficial effects of aspects two through six, please refer to the beneficial effects of aspects one and two, which will not be repeated here. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.

[0031] Figure 2 This is a software structure block diagram of the electronic device provided in the embodiments of this application.

[0032] Figure 3 This is a set of GUIs provided in the embodiments of this application.

[0033] Figure 4This is a set of GUIs provided in the embodiments of this application.

[0034] Figure 5 This is a set of GUIs provided in the embodiments of this application.

[0035] Figure 6 This is a schematic diagram of the decomposed wallpaper provided in an embodiment of this application.

[0036] Figure 7 This is a schematic diagram of the wallpaper switching animation effect provided in the embodiments of this application.

[0037] Figure 8 This is a set of GUIs provided in the embodiments of this application.

[0038] Figure 9 This is a schematic diagram of the wallpaper switching animation effect provided in the embodiments of this application.

[0039] Figure 10 This is a set of GUIs provided in the embodiments of this application.

[0040] Figure 11 This is a schematic flowchart of the desktop layout method provided in the embodiments of this application.

[0041] Figure 12 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

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

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

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

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

[0046] For example, Figure 1 A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0047] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0048] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0049] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0050] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0051] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0052] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0053] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0054] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0055] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0056] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0057] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-CDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0058] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0059] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is a positive integer greater than 1. Display screen 194 can also be referred to as a monitor 194.

[0060] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0061] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0062] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0063] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0064] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0065] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0066] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0067] Figure 2 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the system library layer, and the kernel layer. The application layer may include a series of application packages.

[0068] like Figure 2 As shown, the application layer can include camera, settings, third-party applications, etc. Third-party applications can include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, etc.

[0069] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer may include some predefined functions.

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

[0071] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0072] The view system includes visual controls, such as controls for displaying text, controls for displaying images, and such as the indicator information for displaying the virtual shutter button in the embodiments of this application. The view system can be used to build applications. The display interface can consist of one or more views. For example, a display interface including a text message notification icon can include a view for displaying text and a view for displaying images.

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

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

[0075] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0076] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0077] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

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

[0079] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

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

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

[0082] In addition, the system library may also include status monitoring service modules, such as a physical status recognition module for analyzing and recognizing user gestures; and a sensor service module for monitoring sensor data uploaded by various sensors at the hardware layer to determine the physical status of the electronic device 100.

[0083] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0084] The hardware layer can include various types of sensors, such as Figure 1 The various sensors described in the document include accelerometers, gyroscopes, touch sensors, etc., which are involved in the embodiments of this application.

[0085] It should be noted that, Figure 2 This example only illustrates one way of dividing the system framework and should not be construed as a specific limitation on the embodiments of this application. In the embodiments of this application, different frameworks can be used for different operating systems when the electronic device is equipped with different operating systems. It is understood that when different frameworks are adopted, the way the framework is divided into layers, the specific naming, and the specific layer in which each of the above modules is located can be different.

[0086] With users increasingly using electronic devices, the demand for aesthetically pleasing and personalized desktop wallpapers is growing. Currently, desktop wallpapers on electronic devices mainly come in two forms: static and dynamic. When an electronic device's desktop includes multiple pages, regardless of whether the wallpaper is static or dynamic, each page displays the same wallpaper. After a period of use, users may experience aesthetic fatigue, reducing their user experience. Furthermore, while electronic devices can group elements of the same color or type on the same desktop page based on their color or type, this method ignores the relationship between the elements and the wallpaper. Therefore, this application provides a desktop layout method that can generate multiple wallpapers from a single image and use these multiple wallpapers as wallpapers for different desktop pages. This allows users to see different wallpapers when switching between different desktop pages, increasing wallpaper diversity and improving the user experience. In addition, the electronic device can identify the focal area in the wallpaper and adjust the position of interface elements accordingly, ensuring that interface elements do not obscure the focal area.

[0087] Figure 3 This application illustrates a set of graphical user interfaces (GUIs) provided in its embodiments.

[0088] like Figure 3 As shown, the electronic device displays interface 301, which is a desktop editing interface. The electronic device can display multiple controls on interface 301 for adjusting the desktop layout, such as control 302, control 303, and control 304. Control 302 corresponds to the function of arranging layouts by the color of interface elements, control 303 corresponds to the function of arranging layouts by the type of interface elements, and control 304 corresponds to the function of splitting the wallpaper.

[0089] In some possible embodiments, when the electronic device detects a user's click on control 302, in response to the operation, it can classify the interface elements on the desktop according to their colors, and arrange interface elements of the same or similar colors on the same desktop page. In this embodiment, the color with the highest proportion of an interface element can be used as the color of the interface element. The same color can be understood as a color with the same red, green, and blue (RGB) values, and similar colors can be understood as colors whose RGB values ​​differ by less than a threshold.

[0090] In some possible embodiments, when the electronic device detects a user's click on control 303, in response to the operation, it can classify the interface elements on the desktop according to their type and arrange interface elements of the same or similar types on the same desktop page.

[0091] For example, electronic devices can arrange the icons of social applications on the same home screen, and the icons of entertainment applications on the same home screen.

[0092] In some possible embodiments, when the electronic device detects a user clicking control 304, in response to the operation, it can split the current wallpaper into multiple wallpapers and use these multiple wallpapers as wallpapers for multiple desktop pages. The following describes the process in conjunction with... Figures 4-6 Please provide an explanation, in which Figure 4 The GUI shown is the GUI corresponding to the undecomposed wallpaper. Figure 5 The GUI shown is the GUI corresponding to the decomposed wallpaper. Figure 6 This is a diagram illustrating the breakdown of the wallpaper.

[0093] Figure 4 A set of GUIs provided in embodiments of this application is shown.

[0094] like Figure 4 As shown in (a), the electronic device displays interface 401, which is desktop page #1. The desktop of the electronic device includes three desktop pages. When the electronic device detects a user's continuous leftward swipe, it can display... Figure 4 The GUIs shown in (b) and (c) are shown in the image.

[0095] like Figure 4 As shown in (b) and (c), in response to a user’s continuous leftward swipe, the electronic device can display interface 402 and interface 403, where interface 402 is desktop page #2 and interface 403 is desktop page #3.

[0096] Depend on Figure 4 It is easy to see that the wallpapers of interfaces 401, 402 and 403 are the same, that is, the wallpapers of interfaces 401, 402 and 403 are all wallpaper #1.

[0097] Figure 5 A set of GUIs provided in embodiments of this application is shown.

[0098] like Figure 5 As shown in (a), the electronic device displays interface 501, which is desktop page #1. The desktop of the electronic device includes three desktop pages. The wallpaper of interface 501 is wallpaper #2, which is generated by the electronic device through decomposition... Figure 4 The wallpaper obtained was #1.

[0099] When an electronic device detects a user's continuous leftward swipe, it can display something like this: Figure 5 The GUIs shown in (b) and (c) are shown in the image.

[0100] like Figure 5 As shown in (b) and (c), in response to a user's continuous leftward swipe, the electronic device can display interfaces 502 and 503. Interface 502 is desktop page #2, and interface 503 is desktop page #3. The wallpaper for interface 502 is wallpaper #3, and the wallpaper for interface 503 is wallpaper #4. Wallpapers #3 and #4 are also displayed by the electronic device through decomposition... Figure 4 The wallpaper obtained was #1.

[0101] Figure 6 A schematic diagram of the decomposed wallpaper provided in an embodiment of this application is shown.

[0102] Figure 6 The wallpaper shown is #1, which is the wallpaper of interfaces 401, 402 and 403. When the electronic device determines that the wallpaper needs to be decomposed, it can decompose wallpaper #1 to obtain wallpaper #2, wallpaper #3 and wallpaper #4.

[0103] Continue to refer to Figure 6 When the electronic device analyzes wallpaper #1, wallpapers #2, #3, and #4 may have some identical image content. For example, wallpaper #3 includes a complete sun, wallpaper #2 includes a portion of the sun in the upper right corner, and wallpaper #4 includes a portion of the sun in the upper left corner.

[0104] In some other possible embodiments, when the electronic device decomposes the original wallpaper, the decomposed wallpapers may not have the same image content.

[0105] In this embodiment, the electronic device can generate multiple wallpapers based on the existing wallpaper and use these multiple wallpapers as wallpapers for different desktop pages. This allows users to see different wallpapers when switching between different desktop pages, increasing the diversity of wallpapers and improving the user experience.

[0106] It should be noted that the example above uses an electronic device to decompose the original wallpaper, but this application does not specifically limit this. In other embodiments of this application, the electronic device can also decompose images in applications such as gallery applications.

[0107] In some possible embodiments, the electronic device may also determine the animation effects when switching desktop pages based on the wallpaper of different desktop pages.

[0108] Currently, when switching desktop pages on electronic devices, since the wallpapers of different desktop pages are the same, the electronic device can only switch interface elements such as application icons on the desktop page. For example, if the wallpapers of different desktop pages are the same, when the electronic device is displaying desktop page #1, if it detects a user swiping to the right, in response to this operation, it can move the interface elements of desktop page #1 to the left to remove them from display, and move the interface elements of desktop page #2 to the left to display them.

[0109] In this embodiment of the application, since a wallpaper is broken down into multiple wallpapers, there is a relationship between these multiple wallpapers. Figure 5 Taking wallpaper #2 in interface 501 and wallpaper #3 in interface 502 as examples, wallpaper #2 can be understood as being located in the lower left corner of wallpaper #3. When an electronic device switches desktop pages, the animation effect for switching desktops is determined based on the relationship between the wallpapers.

[0110] For example, with Figure 5 Taking the GUI shown as an example, when the electronic device is displaying interface 501, if it detects a user swiping to the right, in response to this operation, it can move the interface elements in interface 501 to the left and the interface elements in interface 502 to the right. While moving the interface elements in interfaces 501 and 502, the electronic device can also display an animation effect of wallpaper #2 switching to wallpaper #3. The animation effect of wallpaper #2 switching to wallpaper #3 can be as follows: Figure 7 As shown.

[0111] Figure 7 This illustration shows a schematic diagram of the wallpaper switching animation effect provided in an embodiment of this application.

[0112] Figure 7 In the diagram, dashed frame 701 corresponds to wallpaper #2, which is the wallpaper of interface 501. Dashed frame 704 corresponds to wallpaper #3, which is the wallpaper of interface 502. The animation effect of switching wallpaper #2 to wallpaper #3 can include multiple frames of images, including image #1 and image #2. Image #1 can be the image corresponding to dashed frame 702, and image #2 can be the image corresponding to dashed frame 703. The electronic device can display these multiple frames of images while moving interface elements on interfaces 501 and 502. In other words, the electronic device can gradually switch wallpaper #2 to wallpaper #3 by progressively displaying multiple frames such as image #1 and image #2. Compared to the method of simultaneously moving wallpaper #2 and wallpaper #3 to the left to complete the wallpaper switch, the method of completing the wallpaper switch through animation effects in this embodiment is more refined and responsive, helping to improve the user experience.

[0113] It should be noted that the simultaneous leftward movement of wallpaper #2 and wallpaper #3 mentioned above means that the electronic device responds to the user's rightward swipe operation by moving wallpaper #2 to the left to gradually remove wallpaper #2, and by moving wallpaper #3 to the left to gradually display wallpaper #3, but does not involve displaying other images.

[0114] In some possible embodiments, the wallpaper of the lock screen may be an undecomposed wallpaper, and the electronic device may also determine the animation effect for switching from the lock screen to the desktop page, and the animation effect for switching from the desktop page to the lock screen, based on the wallpaper of the lock screen and the wallpaper of the desktop page.

[0115] Figure 8 A set of GUIs provided in embodiments of this application is shown.

[0116] like Figure 8 As shown in (a), the electronic device displays interface 801, which is a lock screen interface, and the wallpaper of the lock screen interface is wallpaper #1. When the electronic device detects a user unlocking operation, in response to the operation, it can display as shown in (a). Figure 8 The GUI shown in (b) is shown in the image.

[0117] like Figure 8 As shown in (b), in response to the user's unlocking operation, the electronic device can display interface 802, which is a desktop page, and the wallpaper of interface 802 is wallpaper #2, which is obtained by the electronic device by disassembling wallpaper #1.

[0118] Figure 9 This illustration shows a schematic diagram of the wallpaper switching animation effect provided in an embodiment of this application.

[0119] Figure 9 The dotted box 901 corresponds to wallpaper #2, which is the wallpaper of desktop page #1, while wallpaper #1 is the wallpaper of the lock screen. The animation effect of switching wallpaper #1 to wallpaper #2 can include multiple frames of images, including image #1 and image #2. Image #1 can be the image corresponding to dotted box 903, and image #2 can be the image corresponding to dotted box 902. The electronic device can display these multiple frames of images when switching from the lock screen to desktop page #1. In other words, the electronic device can switch wallpaper #1 to wallpaper #2 by gradually displaying multiple frames such as image #1 and image #2.

[0120] It should be noted that, for ease of demonstration, Figure 9 Wallpaper #1, Image #1, Image #2, and Wallpaper #2 have different sizes, but when the electronic device is actually displayed, it can adjust Wallpaper #1, Image #1, Image #2, and Wallpaper #2 to the same size according to the size of the screen.

[0121] In some possible embodiments, in addition to breaking down a single wallpaper into multiple wallpapers, the electronic device can also adjust the position of desktop page interface elements according to the wallpaper. This will be discussed in conjunction with... Figure 10 Please provide an explanation.

[0122] like Figure 10 As shown in (a), the electronic device displays interface 1001, which is the first page of the desktop. The wallpaper of interface 1001 is wallpaper #1. The electronic device can decompose wallpaper #1 to obtain wallpaper #2, and can use wallpaper #2 as the wallpaper of interface 1001, that is, display as shown in [image missing]. Figure 10 The GUI shown in (b) is shown in the image.

[0123] like Figure 10 As shown in (b), the electronic device uses wallpaper #2 as the wallpaper for interface 1001.

[0124] Continue to refer to Figure 10 In (b), wallpaper #2 includes a sun, and the electronic device can adjust the position of the application icon in interface 1001 so that the application icon does not obscure the sun in wallpaper #2.

[0125] contrast Figure 10 As can be seen from (a) and (b) in this embodiment, the electronic device can decompose the wallpaper to obtain multiple wallpapers, and can also identify the visual focus of the wallpaper on the desktop page, and adjust the interface elements of the desktop page according to the visual focus of the wallpaper so that the interface elements do not obstruct the visual focus.

[0126] In this embodiment of the application, the visual focus of the wallpaper can be understood as the main area of ​​the wallpaper or the area that the user may be interested in.

[0127] For example, the wallpaper includes person #1, and electronic devices can use person #1's face as the visual focus.

[0128] For example, if the wallpaper is a landscape wallpaper, the electronic device can use the main landscape scene of the wallpaper as the visual focus. For instance, if the wallpaper is a grassland landscape and includes several trees, the electronic device can use the area of ​​the trees in the wallpaper as the visual focus.

[0129] For example, if the wallpaper is a landscape wallpaper, electronic devices can use the foreground, middle ground, and background of the landscape as the visual focus.

[0130] In some possible embodiments, since the electronic device can move interface elements so that they do not obscure the visual focus of the wallpaper, in some cases, if the desktop page corresponding to the wallpaper is already full of interface elements, the electronic device can move some of the interface elements of that desktop page to other desktop pages.

[0131] For example, an electronic device includes a desktop page #1 and a desktop page #2. The electronic device can break down wallpaper #1 into wallpaper #2 and wallpaper #3, and set wallpaper #2 as the wallpaper of desktop page #1 and wallpaper #3 as the wallpaper of desktop page #2. Before setting the wallpaper of desktop page #1 to wallpaper #2, desktop page #1 is already filled with interface elements, such as interface element #1 and interface element #2, while desktop page #2 is not filled with interface elements. After setting the wallpaper of desktop page #1 to wallpaper #2, the electronic device can recognize that desktop page #1 includes a visual focus #1, and determine that interface element #1 obscures this visual focus #1. Therefore, the electronic device can move interface element #1 to desktop page #2.

[0132] For example, an electronic device includes a desktop page #1 and a desktop page #2. The electronic device can break down wallpaper #1 into wallpaper #2 and wallpaper #3, and set wallpaper #2 as the wallpaper of desktop page #1 and wallpaper #3 as the wallpaper of desktop page #2. Before setting the wallpaper of desktop page #1 to wallpaper #2, desktop page #1 is already filled with interface elements, such as interface element #1 and interface element #2, and desktop page #2 is also already filled with interface elements. After setting the wallpaper of desktop page #1 to wallpaper #2, the electronic device can recognize that desktop page #1 includes a visual focus #1, and determine that interface element #1 obscures this visual focus #1. Therefore, the electronic device can generate desktop page #3 and move interface element #1 to desktop page #3.

[0133] exist Figure 10 In the example shown, the electronic device can move the icons of interface elements so that the interface elements do not obscure the visual focus of the wallpaper. However, this application embodiment does not specifically limit this. In other embodiments of this application, when the electronic device detects that the interface elements are obscuring the visual focus, it can also move the position of the visual focus to generate a new wallpaper so that the interface elements no longer obscure the visual focus.

[0134] For example, the wallpaper of desktop page #1 is Wallpaper #1. This Wallpaper #1 includes a visual focus #1, which is located at position #1. Desktop page #1 includes an icon for application #1, which obscures the visual focus #1. The electronic device can extract the visual focus #1 from Wallpaper #1, then move the visual focus #1 from position #1 to position #2, generating Wallpaper #1-1, and using this Wallpaper #1-1 as the new wallpaper for desktop page #1. In this case, position #2 does not contain an application icon. After moving the visual focus #1 from position #1 to position #2, the electronic device can use artificial intelligence filling algorithms or other methods to fill position #1.

[0135] The desktop layout method provided by the embodiments of this application has been described above in conjunction with the GUI. The desktop layout method provided by the embodiments of this application will be described below in conjunction with the method flowchart.

[0136] Figure 11 This illustration shows a schematic flowchart of a desktop layout method provided in an embodiment of this application. This method can be executed by an electronic device or by a component of the electronic device (e.g., a processor, chip system, etc.). The following description uses an electronic device as the executing entity. Figure 11 As shown, the method 1100 includes:

[0137] S1101, Obtain the first image.

[0138] In some possible embodiments, the first image may be an image from a gallery application.

[0139] In some possible embodiments, the first image may be an image from a theme application.

[0140] In some possible embodiments, the first image may be a static image.

[0141] In some possible embodiments, the first image may be a moving image.

[0142] In some possible embodiments, the first image may be the wallpaper before it is decomposed, i.e., the original wallpaper. For example, the first image may be the lock screen interface and the wallpaper of all desktop pages of an electronic device.

[0143] S1102, Generate M wallpapers based on the first image, where M is greater than or equal to 2 and is a positive integer.

[0144] The electronic device can decompose the first image to obtain M wallpapers. This application does not specifically limit the method of decomposing the first image; several possible implementation methods are exemplarily described below.

[0145] In some possible embodiments, the electronic device may divide the first image into M equal parts.

[0146] Furthermore, after the electronic device divides the first image into M equal parts, the aspect ratio of these M wallpapers may not match the display screen. In this case, the electronic device can adjust the aspect ratio of the M wallpapers to match the display screen of the electronic device.

[0147] In some possible embodiments, the electronic device can generate M wallpapers based on the number of desktop pages and a first image.

[0148] The electronic device can determine the number of desktop pages, and then decompose the first image according to the number of desktop pages, so that the number of wallpapers is the same as the number of desktop pages.

[0149] For example, if an electronic device includes three desktop pages, the electronic device can generate three wallpapers based on the first image.

[0150] In some possible embodiments, the electronic device can generate M wallpapers based on the number of desktop pages, the visual focus of the first image, and the first image.

[0151] As described above, electronic devices can identify visual focal points. Therefore, electronic devices can generate M wallpapers based on the number of desktop pages and one or more visual focal points of the first image, such that the number of wallpapers is the same as the number of desktop pages.

[0152] For example, an electronic device includes three desktop pages: Desktop Page #1, Desktop Page #2, and Desktop Page #3. The electronic device recognizes four visual focal points in a first image: Visual Focal Point #1, Visual Focal Point #2, Visual Focal Point #3, and Visual Focal Point #4. The electronic device can generate Wallpaper #1, Wallpaper #2, and Wallpaper #3, where Wallpaper #1 includes Visual Focal Point #1 and Visual Focal Point #2, Wallpaper #2 includes Visual Focal Point #3, and Wallpaper #3 includes Visual Focal Point #4.

[0153] For example, an electronic device includes three desktop pages: Desktop Page #1, Desktop Page #2, and Desktop Page #3. The electronic device recognizes that the first image includes three visual focal points: Visual Focal Point #1, Visual Focal Point #2, and Visual Focal Point #3. The electronic device can generate Wallpaper #1, Wallpaper #2, and Wallpaper #3, where Wallpaper #1 includes Visual Focal Point #1, Wallpaper #2 includes Visual Focal Point #2, and Wallpaper #3 includes Visual Focal Point #3.

[0154] For example, an electronic device includes three desktop pages: Desktop Page #1, Desktop Page #2, and Desktop Page #3. The electronic device recognizes that the first image includes two visual focal points: visual focal point #1 and visual focal point #2. The electronic device can generate wallpapers #1, #2, and #3, where wallpaper #1 includes visual focal point #1, wallpaper #2 includes visual focal point #2, and wallpaper #3 may not include a visual focal point.

[0155] For example, an electronic device includes three desktop pages: Desktop Page #1, Desktop Page #2, and Desktop Page #3. The electronic device recognizes that the first image includes one visual focus. The electronic device can generate Wallpaper #1, Wallpaper #2, and Wallpaper #3, where Wallpaper #1 includes the visual focus, while Wallpaper #2 and Wallpaper #3 may not include a visual focus.

[0156] In some possible embodiments, when the electronic device decomposes wallpapers based on the number of desktop pages and the visual focus, it can use a shape such as a rectangle to select the visual focus, thereby using the image content selected by the rectangle as a wallpaper. It is understood that in this embodiment, the image content selected by the rectangle can include both the visual focus and non-visual focus areas. For example, if the electronic device identifies a person's portrait #1 as the visual focus, it can use the person's portrait #1 and its corresponding background as a wallpaper.

[0157] In some possible embodiments, when the electronic device breaks down the wallpaper based on the number of desktop pages and the visual focus, it may select only the visual focus and configure a background for that visual focus to generate the wallpaper.

[0158] In some possible embodiments, the image content included in the M wallpapers is equal to the image content included in the first image. In other words, when the electronic device decomposes the first image, the first image has been completely decomposed, and the image content in the first image can be found in the M wallpapers.

[0159] In some possible embodiments, the M wallpapers contain less image content than the first image. In other words, when the electronic device decomposes the first image, the first image is not completely decomposed, and part of the image content of the first image does not belong to any of the M wallpapers.

[0160] S1103, set at least two wallpapers from M wallpapers as wallpapers for N desktop pages, where N is greater than or equal to 2 and is a positive integer.

[0161] An electronic device generates M wallpapers, which can be used to set wallpapers for N desktop pages, setting all or part of the wallpapers from the M wallpapers as the wallpapers for the N desktop pages.

[0162] For example, such as Figure 5 As shown, when the electronic device is displaying interface 501, the wallpaper of interface 501 is wallpaper #2. When the electronic device is displaying interface 502, the wallpaper of interface 502 is wallpaper #3. When the electronic device is displaying interface 503, the wallpaper of interface 503 is wallpaper #4. Wallpapers #2, #3, and #4 are obtained by the electronic device by decomposing wallpaper #1.

[0163] For example, an electronic device includes three desktop pages. The electronic device generates five wallpapers based on a first image, and the electronic device can use three of these five wallpapers as the wallpapers for the three desktop pages.

[0164] For example, an electronic device includes three desktop pages. The electronic device generates five wallpapers based on a first image. The electronic device can use two of these five wallpapers as the wallpapers for the three desktop pages. Some of the desktop pages may have the same wallpaper.

[0165] For example, an electronic device includes 5 desktop pages. The electronic device generates 5 wallpapers based on a first image, and the electronic device can use these 5 wallpapers as the wallpapers for the 5 desktop pages.

[0166] For example, an electronic device includes 5 desktop pages. The electronic device generates 5 wallpapers based on a first image. The electronic device can use 2 (or 3, or 4) of the 5 wallpapers as the wallpapers for the 5 desktop pages.

[0167] For example, an electronic device includes 6 desktop pages. The electronic device generates 5 wallpapers based on a first image. The electronic device can use these 5 wallpapers as the wallpapers for the 6 desktop pages. Some of the desktop pages may have the same wallpaper.

[0168] For example, an electronic device includes six desktop pages. The electronic device generates five wallpapers based on a first image, and can use two (or three, or four) of these five wallpapers as the wallpapers for the five desktop pages. Some of the desktop pages may have the same wallpaper.

[0169] In this embodiment, the electronic device can generate multiple wallpapers based on a first image and use these multiple wallpapers as wallpapers for different desktop pages. This allows users to see different wallpapers when switching between different desktop pages, increasing wallpaper diversity and improving the user experience. Since multiple wallpapers are generated based on the first image, the wallpapers on different desktop pages are related when the user switches between them, further enhancing the user experience.

[0170] In some possible embodiments, M is less than N.

[0171] In some possible implementations, M equals N.

[0172] In some possible embodiments, M is greater than N.

[0173] In some possible embodiments, at least two wallpapers include a first wallpaper and a second wallpaper, N desktop pages include a first desktop page and a second desktop page, the wallpaper of the first desktop page is the first wallpaper, and the wallpaper of the second desktop page is the second wallpaper. The method 1100 further includes:

[0174] The first animation effect is generated based on the first and second wallpapers.

[0175] In response to the operation of switching from the first desktop page to the second desktop page, a first animation effect is displayed and the screen switches from the first desktop page to the second desktop page.

[0176] The electronic device can determine the association between the first wallpaper and the second wallpaper, and then determine a first animation effect based on the first wallpaper and the second wallpaper. This first animation effect can also be called a first transition animation effect. When the electronic device detects an operation that switches from the first desktop page to the second desktop page, it can display the first animation effect and switch from the first desktop page to the second desktop page.

[0177] For example, with Figure 7 As shown, Figure 7 In the diagram, dashed frame 701 corresponds to the first wallpaper, and dashed frame 704 corresponds to the second wallpaper. The animation effect of switching from the first wallpaper to the second wallpaper can include multiple frames of images, including image #1 and image #2. Image #1 can be the image corresponding to dashed frame 702, and image #2 can be the image corresponding to dashed frame 703. When the electronic device switches from the first desktop page to the second desktop page, the first wallpaper can be switched to the second wallpaper by gradually displaying multiple frames of images such as image #1 and image #2.

[0178] In this embodiment, the electronic device can determine the animation effect for switching desktop pages based on the wallpaper of different desktop pages. When the user switches desktop pages, the electronic device can display the animation effect to make the switching process more refined and responsive, which helps to improve the user experience.

[0179] In some possible embodiments, the wallpaper of the lock screen is a first image, at least two wallpapers include a third wallpaper, N desktop pages include a third desktop page, and the wallpaper of the third desktop page is the third wallpaper. The method 1100 further includes:

[0180] A second animation effect is generated based on the first image and the third wallpaper.

[0181] In response to the action of switching from the lock screen to the third home screen, a second animation effect is displayed and the screen switches from the lock screen to the third home screen.

[0182] The electronic device can determine the association between the first image and the third wallpaper, and then determine a second animation effect based on the first image and the third wallpaper. This second animation effect can also be called a second transition animation effect. When the electronic device detects an operation that switches from the lock screen to the third desktop page, it can display the second animation effect and switch from the lock screen to the third desktop page.

[0183] In some possible embodiments, the first desktop page and the third desktop page may be the same desktop page, and the first wallpaper and the third wallpaper may be the same wallpaper.

[0184] For example, with Figure 9 For example, Figure 9The dashed box 901 corresponds to the first wallpaper, and wallpaper #1 is the first image, which is the wallpaper of the lock screen. The animation effect of switching wallpaper #1 to the third wallpaper can include multiple frames of images, including image #1 and image #2. Image #1 can be the image corresponding to dashed box 903, and image #2 can be the image corresponding to dashed box 902. When the electronic device switches from the lock screen to the third desktop page, it can display these multiple frames of images. In other words, the electronic device can switch the first image to the third wallpaper by gradually displaying multiple frames of images such as image #1 and image #2.

[0185] In this embodiment, the electronic device can determine the animation effect of switching from the lock screen to the desktop page based on the wallpaper of the lock screen and the desktop page. When the user unlocks the electronic device, the electronic device can display the animation effect to make the switching process more refined and smooth, which helps to improve the user experience.

[0186] It should be understood that when an electronic device detects a switch from a third home screen to the lock screen, in response to this switch, the electronic device may also display a second animation effect and switch from the first home screen to the lock screen. It is understood that the animation effect when switching from the third home screen to the lock screen may be the reverse of the animation effect when switching from the lock screen to the third home screen. For example, when switching from the lock screen to the third home screen, image #1 may be displayed first, followed by image #2; when switching from the third home screen to the lock screen, image #2 may be displayed first, followed by image #1.

[0187] In some possible embodiments, the N-page desktop page includes a fourth desktop page, the fourth desktop page includes a first interface element, the wallpaper of the fourth desktop page is a fourth wallpaper, the fourth wallpaper includes a first visual focus, the first interface element is located at a first position on the fourth desktop page, and the method 1100 further includes:

[0188] If the first interface element obscures the first visual focus, move the first interface element from the first position to the second position on the fourth desktop page.

[0189] In some possible embodiments, the first desktop page and the fourth desktop page may be the same desktop page, and the first wallpaper and the fourth wallpaper may be the same wallpaper.

[0190] The electronic device can identify the first visual focus in the first wallpaper, and when it is determined that the first interface element is obscuring the first visual focus, it can adjust the first interface element from the first position to the second position on the fourth desktop page.

[0191] For example, such as Figure 10As shown, after the electronic device decomposes wallpaper #1 to obtain wallpaper #2 as the desktop wallpaper, the electronic device determines that if the icons of the settings application and the recorder application are still in their original positions, they will block the sun in wallpaper #2. Therefore, the electronic device can adjust the positions of the icons of the settings application and the recorder application.

[0192] In some possible embodiments, the electronic device may also adjust the position of interface elements that do not obstruct the first visual focus.

[0193] In this embodiment of the application, in order to ensure that the user can still quickly find the interface elements after the electronic device adjusts the position of the interface elements, the electronic device can adjust the position of the interface elements that do not obscure the first visual focus while adjusting the interface elements that obscure the first visual focus, so that the overall layout of the interface elements of the first desktop page is consistent with the overall layout before the adjustment.

[0194] For example, such as Figure 10 As shown, the electronic device can adjust the positions of the icons for the Settings app and the Recorder app, as well as the Smart Life app and the App Store app.

[0195] In this embodiment, the electronic device can also adjust the position of the desktop page interface elements according to the position of the visual focus in the wallpaper, so that the interface elements do not obstruct the visual focus, ensuring that the user can see the main part of the wallpaper, which helps to improve the user experience.

[0196] In some possible embodiments, the N-page desktop page includes a fifth desktop page, the fifth desktop page includes a second interface element, the wallpaper of the fifth desktop page is a fifth wallpaper, the fifth wallpaper includes a second visual focus, the second visual focus is located at a third position on the fifth desktop page, and the method 1100 includes:

[0197] With the second visual focus obscured by the second interface element, the second visual focus is moved from the third position to the fourth position on the fifth desktop page to obtain the sixth wallpaper;

[0198] The sixth wallpaper is displayed through the fifth desktop page, where the interface elements in the fifth desktop page, located below the fourth position, do not obstruct the second visual focus.

[0199] In some possible embodiments, the N-page desktop page includes a fourth desktop page, the first desktop page includes a first interface element, the wallpaper of the fourth desktop page is a fourth wallpaper, the fourth wallpaper includes a first visual focus, and the method 1100 further includes:

[0200] When the first interface element obscures the first visual focus, the first interface element is moved from the fourth desktop page to the sixth desktop page. The sixth desktop page can be a desktop page among the N desktop pages, or it can be a newly generated desktop page of the electronic device.

[0201] The desktop layout method provided by the embodiments of this application has been described in detail above. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0202] The above primarily describes the desktop layout method provided in the embodiments of this application from the perspective of an electronic device. It is understood that, in order to achieve the above functions, the electronic device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by 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 functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0203] When each function is divided into different modules (or units) to correspond to its specific function, Figure 12 This illustration shows a schematic diagram of the composition of an electronic device 1200 provided in an embodiment of this application, as shown below. Figure 12 As shown, the electronic device 1200 includes an acquisition module 1210 and a processing module 1220.

[0204] The acquisition module 1210 is used to acquire the first image.

[0205] Processing module 1220 is used to generate M wallpapers based on the first image, where M is greater than or equal to 2 and is a positive integer.

[0206] The processing module 1220 is also used to set at least two wallpapers from the M wallpapers as wallpapers for the N desktop pages, where N is greater than or equal to 2 and is a positive integer.

[0207] In some possible embodiments, at least two wallpapers include a first wallpaper and a second wallpaper, N desktop pages include a first desktop page and a second desktop page, the wallpaper of the first desktop page is the first wallpaper, the wallpaper of the second desktop page is the second wallpaper, the electronic device further includes a display module 1230 and a processing module 1220, which are further configured to generate a first animation effect based on the first wallpaper and the second wallpaper. The display module 1230 is configured to display the first animation effect and switch from the first desktop page to the second desktop page in response to an operation of switching from the first desktop page to the second desktop page.

[0208] In some possible embodiments, the first image is the wallpaper of the lock screen interface, at least two wallpapers include a third wallpaper, N desktop pages include a third desktop page, and the wallpaper of the third desktop page is the third wallpaper. The processing module 1220 is further configured to generate a second animation effect based on the first image and the third wallpaper. The display module 1230 is configured to display the second animation effect and switch from the lock screen interface to the third desktop page in response to the operation of switching from the lock screen interface to the third desktop page.

[0209] In some possible embodiments, the processing module 1220 is specifically configured to generate M wallpapers, where M equals N, based on N desktop pages and a first image.

[0210] In some possible embodiments, the processing module 1220 is specifically configured to identify one or more visual focal points of the first image; and generate M wallpapers based on N desktop pages and one or more visual focal points.

[0211] In some possible embodiments, the N-page desktop page includes a fourth desktop page, the fourth desktop page includes a first interface element, the wallpaper of the fourth desktop page is a fourth wallpaper, the fourth wallpaper includes a first visual focus, the first interface element is located at a first position on the fourth desktop page, and the processing module 1220 is further configured to move the first interface element from the first position to a second position on the fourth desktop page when the first interface element obscures the first visual focus.

[0212] In some possible embodiments, the N-page desktop page includes a fifth desktop page, the fifth desktop page includes a second interface element, the wallpaper of the fifth desktop page is a fifth wallpaper, the fifth wallpaper includes a second visual focus, the second visual focus is located at a third position on the fifth desktop page, and the processing module 1220 is further configured to move the second visual focus from the third position to a fourth position on the fifth desktop page when the second interface element obscures the second visual focus, thereby obtaining a sixth wallpaper.

[0213] Display module 1230 is also used to display a sixth wallpaper through a fifth desktop page, wherein the interface elements in the fifth desktop page do not obstruct the second visual focus when in the fourth position.

[0214] In some possible embodiments, the N-page desktop page includes a fourth desktop page, the fourth desktop page includes a first interface element, the wallpaper of the fourth desktop page is a fourth wallpaper, the fourth wallpaper includes a first visual focus, and the processing module 1220 is further configured to move the first interface element from the fourth desktop page to the sixth desktop page when the first interface element obscures the first visual focus.

[0215] In some possible embodiments, the sixth desktop page is a desktop page among N desktop pages.

[0216] In some possible embodiments, the processing module 1220 is specifically used to generate a sixth desktop page and move the first interface element from the first desktop page to the sixth desktop page.

[0217] In some possible embodiments, the image content of the first wallpaper and the second wallpaper is the same.

[0218] In some possible embodiments, the first image is a moving image.

[0219] This application provides a computer program product that, when run on an electronic device, causes the electronic device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.

[0220] This application provides a readable storage medium containing instructions that, when executed by an electronic device, cause the electronic device to perform the technical solution described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0221] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

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

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

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

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

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

[0227] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0228] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A method for desktop layout, characterized in that, The method includes: Get the first image; Based on the first image, generate M wallpapers, where M is greater than or equal to 2 and is a positive integer; Set at least two of the M wallpapers as the wallpapers for N desktop pages, where N is greater than or equal to 2 and is a positive integer.

2. The method according to claim 1, characterized in that, The at least two wallpapers include a first wallpaper and a second wallpaper, the N desktop pages include a first desktop page and a second desktop page, the wallpaper of the first desktop page is the first wallpaper, the wallpaper of the second desktop page is the second wallpaper, and the method further includes: A first animation effect is generated based on the first wallpaper and the second wallpaper; In response to the operation of switching from the first desktop page to the second desktop page, the first animation effect is displayed and the user switches from the first desktop page to the second desktop page.

3. The method according to claim 1 or 2, characterized in that, The first image is the wallpaper for the lock screen interface; the at least two wallpapers include a third wallpaper; the N desktop pages include a third desktop page; the wallpaper of the third desktop page is the third wallpaper; the method further includes: A second animation effect is generated based on the first image and the third wallpaper; In response to the operation of switching from the lock screen to the third desktop page, the second animation effect is displayed and the screen switches from the lock screen to the third desktop page.

4. The method according to any one of claims 1 to 3, characterized in that, The step of generating M wallpapers based on the first image includes: Based on the N desktop pages and the first image, generate the M wallpapers, where M equals N.

5. The method according to claim 4, characterized in that, The step of generating the M wallpapers based on the N desktop pages and the first image includes: Identify one or more visual focal points in the first image; Based on the N desktop pages and the one or more visual focal points, generate the M wallpapers.

6. The method according to claim 5, characterized in that, The N desktop pages include a fourth desktop page, the at least two wallpapers include a fourth wallpaper, the wallpaper of the fourth desktop page is the fourth wallpaper, the fourth desktop page includes a first interface element, the fourth wallpaper includes a first visual focus, the first interface element is located at a first position on the fourth desktop page, and the method further includes: If the first interface element obscures the first visual focus, the first interface element is moved from the first position to the second position of the fourth desktop page.

7. The method according to claim 5, characterized in that, The N desktop pages include a fifth desktop page, the at least two wallpapers include a fifth wallpaper, the wallpaper of the fifth desktop page is the fifth wallpaper, the fifth desktop page includes a second interface element, the fifth wallpaper includes a second visual focus, the second visual focus is located at a third position of the fifth wallpaper, and the method includes: When the second interface element obscures the second visual focus, the second visual focus is moved from the third position to the fourth position of the fifth wallpaper to obtain the sixth wallpaper; The sixth wallpaper is displayed on the fifth desktop page, wherein the second visual focus is not obscured by the interface elements on the fifth desktop page at the fourth position.

8. The method according to claim 5, characterized in that, The N desktop pages include a fourth desktop page, the at least two wallpapers include a fourth wallpaper, the wallpaper of the fourth desktop page is the fourth wallpaper, the fourth desktop page includes a first interface element, the fourth wallpaper includes a first visual focus, and the method further includes: If the first interface element obscures the first visual focus, the first interface element is moved from the fourth desktop page to the sixth desktop page.

9. The method according to claim 8, characterized in that, The sixth desktop page is a desktop page among the N desktop pages.

10. The method according to claim 8, characterized in that, Moving the first interface element from the fourth desktop page to the sixth desktop page includes: Generate the sixth desktop page; Move the first interface element from the fourth desktop page to the sixth desktop page.

11. The method according to claim 2, characterized in that, The first wallpaper and the second wallpaper have some identical image content.

12. The method according to any one of claims 1 to 11, characterized in that, The first image is a dynamic image.

13. An electronic device, characterized in that, It includes one or more processors; one or more memories; said one or more memories storing one or more computer programs, said one or more computer programs including instructions that, when executed by said one or more processors, cause the method as described in any one of claims 1 to 12 to be performed.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the method as described in any one of claims 1 to 12 to be performed.

15. A chip, characterized in that, The chip includes a processor and a communication interface, the communication interface being used to receive signals and transmit the signals to the processor, the processor processing the signals such that the method as described in any one of claims 1 to 12 is executed.

16. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 12.