Desktop icon adjustment method, electronic equipment and storage medium

By setting up an icon database in an electronic device, allowing users to adjust application icons, the problem of single desktop icon style in the prior art is solved, and the effect of personalized adjustment and improving user experience is achieved.

CN119556824APending Publication Date: 2025-03-04HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411391222.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The desktop icon style of existing electronic devices is single, and users cannot adjust according to their personal preferences. They lack fun and playability, making it difficult to meet users' personalized needs.

Method used

Setting up an icon database in an electronic device allows users to flexibly adjust application icons, including adjusting the size, cropping, icon base plate and pattern replacement. The icon database stores the user's adjusted icons, and the electronic device reads the icons from the database when drawing the desktop.

Benefits of technology

It realizes user personalized adjustments to the application icon style, improves the user experience, and avoids the problems of slow application icon reading speed and aging of external memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556824A_ABST
    Figure CN119556824A_ABST
Patent Text Reader

Abstract

The invention provides a desktop icon adjusting method, electronic equipment and a storage medium. Wherein when the user adjusts the icon of the target application, the electronic equipment updates the icon, corresponding to the target application, in the icon database. When the electronic equipment draws a desktop, the electronic equipment reads the icon of the target application from the icon database to complete desktop drawing operation. Thus, by setting the icon database, a user can flexibly adjust the application icons, and when the electronic equipment draws the desktop, the user only needs to read the application icons in the icon database, and does not involve data reading operation on an external memory of the electronic equipment any more, so that the data reading rate during desktop drawing is increased, and the user experience is improved. And the aging problem of the external memory can be delayed to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The name of the original application is desktop icon adjustment method, electronic device and storage medium. The application number of the original application is 202310999917.6. The original application date is August 8, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the technical field of intelligent terminals, and in particular to a desktop icon adjustment method, an electronic device and a storage medium. Background Art

[0003] With the development of information technology, more and more applications are installed in electronic devices (such as mobile phones), making the functions of electronic devices more and more powerful. The various application icons displayed on the desktop of the electronic device can intuitively help users quickly locate and use the applications they need, thereby improving the efficiency and convenience of user operations.

[0004] At present, the styles of application icons displayed on the desktop of electronic devices are relatively simple and are all set by the system according to default parameters. Users cannot adjust the application icon styles according to their personal preferences. This lacks fun and playability and is difficult to meet users' personalized needs for adjusting application icon styles. Summary of the invention

[0005] The embodiment of the present application provides a desktop icon adjustment method, an electronic device and a storage medium. In the method, an icon database for storing application icons is set in the electronic device, so that the user can flexibly adjust the application icons, meeting the user's personalized needs for adjusting the application icon style.

[0006] In the first aspect, the embodiment of the present application provides a desktop icon adjustment method. The method includes: the electronic device receives a first operation of the user; the electronic device responds to the first operation and adjusts the first icon of the target application to obtain the second icon of the target application; the electronic device updates the first icon of the target application in the icon database to the second icon; the electronic device receives a second operation of the user; the electronic device responds to the second operation and reads the second icon of the target application from the icon database, and executes the operation of drawing the desktop according to the second icon, and displays the drawn desktop.

[0007] The first operation refers to an operation of adjusting the application icon by the user, and specifically may be an operation of adjusting the application icon performed by setting an icon adjustment interface in the application.

[0008] The target application may be one or more application programs, which may be any one or more application programs pre-installed in the electronic device (or installed by default when the device leaves the factory), or any one or more application programs downloaded and installed by the user.

[0009] The first icon of the target application may be a default icon of the application or an application icon set by the user. In this embodiment, the first icon of the target application is the application icon before the user adjusts it, and the second icon of the target application is the application icon after the user adjusts it. Moreover, the application icon of the target application is stored in the icon database.

[0010] The second operation refers to an operation of causing the electronic device to display the desktop. The operation modes of different electronic devices are different, and this embodiment does not limit this.

[0011] Exemplarily, the electronic device may be a terminal device such as a mobile phone or a tablet computer.

[0012] In this way, by setting up an icon database, users can flexibly adjust the application icons of each application. Moreover, when the electronic device draws the desktop, it only needs to read the application icons from the icon database, without reading the corresponding icon files in the external memory of the electronic device. This not only improves the data reading rate when drawing the desktop, but also can delay the aging problem of the external memory to a certain extent.

[0013] According to the first aspect, the method also includes: when the electronic device draws the desktop icon of the target application for the first time, the electronic device reads the image file of the target application in the external memory, generates the icon of the target application based on the image file of the target application, and completes the desktop icon drawing operation based on the icon of the target application; the electronic device stores the icon of the target application in an icon database; when the electronic device does not draw the desktop icon of the target application for the first time, the electronic device reads the icon of the target application in the icon database, and completes the desktop icon drawing operation based on the icon of the target application.

[0014] Exemplarily, when the target application is an application pre-installed in the electronic device (or installed by default when the device leaves the factory), the first time the desktop icon of the target application is drawn may be when the electronic device is turned on for the first time after leaving the factory and the desktop is drawn, and the non-first time the desktop icon of the target application is drawn may be any subsequent time the electronic device draws the desktop.

[0015] Exemplarily, when the target application is an application downloaded and installed by the user, the first time the desktop icon of the target application is drawn may be when the electronic device draws the desktop for the first time after the user downloads and installs the target application, and the non-first time the desktop icon of the target application is drawn may be any subsequent time the electronic device draws the desktop.

[0016] In this way, for any application, the electronic device only needs to read the corresponding icon file in the external memory when drawing the icon of the application for the first time. Each subsequent time (that is, not the first time) the icon of the application is drawn, the electronic device only needs to read the corresponding icon from the icon database. This not only improves the reading speed of the application icon, but also reduces the number of times the external memory of the electronic device is read, thereby delaying the aging of the external memory of the electronic device to a certain extent.

[0017] According to the first aspect, or any implementation of the first aspect above, the method further includes: during the first startup of the electronic device, the electronic device creates an icon database.

[0018] According to the first aspect, or any implementation of the first aspect above, the electronic device stores the icon of the target application in an icon database, including: the electronic device stores the package name of the target application and the icon of the target application in the form of a key-value pair in the icon database.

[0019] According to the first aspect, or any implementation of the first aspect above, the method further includes:

[0020] In response to the operation of downloading and installing the target application, the electronic device reads the image file of the target application in the external memory, and generates an icon of the target application according to the image file of the target application; the electronic device stores the icon of the target application in the icon database.

[0021] In this way, when the user downloads and installs the target application, the electronic device will first read the image file of the target application from the external memory to generate a corresponding application icon, and then store the icon of the target application in the icon database, so that the electronic device can read the corresponding application icon in the icon database when drawing the desktop.

[0022] According to the first aspect, or any implementation of the first aspect above, the method further includes: the electronic device deletes the icon of the target application in the icon database in response to an operation of uninstalling the target application.

[0023] In this way, when the user uninstalls the target application, the electronic device will delete the icon of the target application in the icon database, avoiding the problem of icon redundancy in the icon database and ensuring that the application icons stored in the icon database are all valid icons.

[0024] According to the first aspect, or any implementation of the first aspect above, the first operation may be at least one of the following: adjusting the size of the application icon, cropping the application icon, adjusting the icon base of the application icon, and replacing the pattern of the application icon.

[0025] According to the first aspect, or any implementation of the first aspect above, adjusting the size of an application icon may be adjusting the size of one application icon, or may be adjusting the sizes of all application icons.

[0026] According to the first aspect, or any implementation of the first aspect, cropping the application icon may be cropping one application icon, or may be cropping all application icons.

[0027] According to the first aspect, or any implementation of the first aspect above, the electronic device adjusts the icon base of the application icon, which may be to adjust the icon base of one application icon, or may be to adjust the icon bases of all application icons.

[0028] According to the first aspect, or any implementation of the first aspect above, adjusting the icon base of the application icon may be adjusting at least one of the following items of the icon base: color, icon, and transparency.

[0029] According to the first aspect, or any implementation of the first aspect above, the pattern of replacing the application icon may be selecting a picture from a gallery as the application icon.

[0030] According to the first aspect, or any implementation of the first aspect above, when the first operation is to adjust the size of the application icon, the method also includes: when the electronic device performs the operation of drawing the desktop according to the second icon, the electronic device redetermines the size of the icon base plate; wherein the icon of any application can be included in the area of ​​the icon base plate; the electronic device arranges the icon base plates of multiple applications in the desktop icon display area according to the size of the icon base plate, and draws the application icons on the icon base plate; wherein the multiple applications include the target application.

[0031] When the user adjusts the size of the application icon, the electronic device re-determines the size of the icon base, rearranges the icon bases of multiple applications according to the size of the icon base, and draws the application icons on the icon base. In this way, after the user adjusts the size of the application icon, it can avoid the situation where the application icons are arranged in a messy manner, and it can also avoid the situation where the application icons are partially or completely obscured.

[0032] According to the first aspect, or any implementation of the first aspect above, the electronic device draws the application icon on the icon base plate, including: the electronic device draws the application icon on the icon base plate in a center-aligned manner.

[0033] In this way, the layout of application icons can be ensured to be more beautiful.

[0034] According to the first aspect, or any implementation of the first aspect above, the shape of the icon base is a square. Accordingly, the electronic device re-determines the size of the icon base, which may include: the electronic device obtains the horizontal size and the vertical size of the icon of each application in the multiple applications; the electronic device uses the maximum size of the horizontal size and the vertical size of the icon as the side length of the icon base.

[0035] In this way, no matter whether the shape of the application icon is regular or not, the icon of any application can be included in the area of ​​the icon base plate, and the arrangement of the application icons can be ensured to be more beautiful.

[0036] According to the first aspect, or any implementation of the first aspect, the electronic device arranges icon bases of multiple applications in a desktop icon display area according to the size of the icon base, which may include:

[0037] The electronic device calculates the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons and the vertical spacing between icons based on the width of the desktop icon display area, the height of the desktop icon display area and the side length of the icon base, and saves the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons and the vertical spacing between icons; the electronic device arranges the icon base in rows and columns based on the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons and the vertical spacing between icons.

[0038] According to the first aspect, or any implementation of the first aspect above, the electronic device calculates the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal spacing of icons, and the vertical spacing of icons according to the width of the desktop icon display area, the height of the desktop icon display area, and the side length of the icon bottom plate, which may include:

[0039] The electronic device calculates the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons, and the vertical spacing between icons based on the following formula:

[0040] When a%c≠0, m=floor(a / c), x=(a%c) / (m+1);

[0041] When a%c=0, x=c / (m+1);

[0042] When b%c≠0, n=floor(b / c), y=(b%c) / (n+1);

[0043] When b%c=0, n=b / c-1, y=c / (n+1);

[0044] Where a is the width of the desktop icon display area, b is the height of the desktop icon display area, c is the side length of the icon base, m is the number of horizontal icons on the desktop, n is the number of vertical icons on the desktop, x is the horizontal spacing between icons, and y is the vertical spacing between icons; % means taking the remainder, and floor means rounding down function.

[0045] In this way, the layout of application icons can be more even, improving the user's visual experience.

[0046] According to the first aspect, or any implementation of the first aspect above, after the electronic device calculates the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing of icons, and the vertical spacing of icons based on the following formula, the electronic device further includes:

[0047] If the ratio of x to c is less than the first threshold, then m and x are updated according to the following formula until the ratio of x to c is not less than the first threshold;

[0048] m=m-1, x=(ac*m) / (m+1);

[0049] If the ratio of y to c is less than the second threshold, n and y are updated according to the following formula until the ratio of y to c is not less than the second threshold;

[0050] n=n-1, y=(bc*n) / (n+1).

[0051] This can optimize the row and column arrangement of desktop icons, avoid the problem of too small upper and lower spacing or left and right spacing between application icons, make the arrangement of application icons more beautiful, and enhance the user's visual experience.

[0052] In the second aspect, the embodiment of the present application provides a desktop icon adjustment method. The method is applied to an electronic device, including: the electronic device receives a user's adjustment operation on the size of a target application icon; the electronic device adjusts the third icon of the target application in response to the adjustment operation to obtain a fourth icon of the target application; the electronic device re-determines the size of the icon base according to the icon size of the fourth icon; wherein the icon of any application can be included in the area range of the icon base; the electronic device recalculates the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing of icons and the vertical spacing of icons according to the width of the desktop icon display area, the height of the desktop icon display area and the size of the icon base, and saves the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing of icons and the vertical spacing of icons; the electronic device receives a third operation from the user; the electronic device responds to the third operation, and rearranges the icon bases of multiple applications according to the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing of icons and the vertical spacing of icons, and draws application icons on the icon base to complete the desktop drawing operation; wherein the multiple applications include the target application.

[0053] The target application may be one or more application programs, which may be any one or more application programs pre-installed in the electronic device (or installed by default when the device leaves the factory), or any one or more application programs downloaded and installed by the user.

[0054] The third icon of the target application may be a default icon of the application or an application icon set by the user. In this embodiment, the third icon of the target application is the application icon before the user adjusts it, and the fourth icon of the target application is the application icon after the user adjusts it. Moreover, the application icon of the target application is stored in the icon database.

[0055] The third operation refers to an operation of causing the electronic device to display the desktop. The operation methods of different electronic devices are different, and this embodiment does not limit this.

[0056] Exemplarily, the electronic device may be a terminal device such as a mobile phone or a tablet computer.

[0057] When the user adjusts the size of the application icon, the electronic device re-determines the size of the icon base plate, rearranges the icon base plates of multiple applications evenly according to the size of the icon base plate, and draws the application icon on the icon base plate. In this way, after the user adjusts the size of the application icon, it can avoid the situation where the application icon is arranged in a messy manner, and it can also avoid the situation where the application icon is partially or completely obscured. Moreover, after the electronic device recalculates the icon base plate arrangement method, this arrangement method is saved (that is, the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal icon spacing, and the vertical icon spacing) so that the electronic device can arrange the icon base plate according to this parameter when drawing the desktop later until the electronic device calculates the icon base plate arrangement method again.

[0058] According to the second aspect, the shape of the icon base is a square. Accordingly, the electronic device re-determines the size of the icon base according to the icon size of the fourth icon, which may include: the electronic device obtains the horizontal size and the vertical size of the icon of each application in the multiple applications; the electronic device uses the maximum size of the horizontal size and the vertical size of the icon as the side length of the icon base.

[0059] In this way, no matter whether the shape of the application icon is regular or not, the icon of any application can be included in the area of ​​the icon base plate, and the arrangement of the application icons can be ensured to be more beautiful.

[0060] According to the second aspect, or any implementation of the second aspect above, the electronic device recalculates the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal spacing of icons, and the vertical spacing of icons according to the width of the desktop icon display area, the height of the desktop icon display area, and the size of the icon base plate, which may include:

[0061] The electronic device recalculates the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons, and the vertical spacing between icons based on the following formula:

[0062] When a%c≠0, m=floor(a / c), x=(a%c) / (m+1);

[0063] When a%c=0, x=c / (m+1);

[0064] When b%c≠0, n=floor(b / c), y=(b%c) / (n+1);

[0065] When b%c=0, n=b / c-1, y=c / (n+1);

[0066] Where a is the width of the desktop icon display area, b is the height of the desktop icon display area, c is the side length of the icon base, m is the number of horizontal icons on the desktop, n is the number of vertical icons on the desktop, x is the horizontal spacing between icons, and y is the vertical spacing between icons; % means taking the remainder, and floor means rounding down function.

[0067] In this way, the layout of application icons can be more even, improving the user's visual experience.

[0068] According to the second aspect, or any implementation of the second aspect above, after the electronic device recalculates the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing of icons, and the vertical spacing of icons based on the following formula, the method further includes:

[0069] If the ratio of x to c is less than the first threshold, then m and x are updated according to the following formula until the ratio of x to c is not less than the first threshold;

[0070] m=m-1, x=(ac*m) / (m+1);

[0071] If the ratio of y to c is less than the second threshold, n and y are updated according to the following formula until the ratio of y to c is not less than the second threshold;

[0072] n=n-1, y=(bc*n) / (n+1).

[0073] This can optimize the row and column arrangement of desktop icons, avoid the problem of too small upper and lower spacing or left and right spacing between application icons, make the arrangement of application icons more beautiful, and enhance the user's visual experience.

[0074] In a third aspect, an embodiment of the present application provides an electronic device. The electronic device includes: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the desktop icon adjustment method of the first aspect and any one of the first aspects, or the electronic device executes the desktop icon adjustment method of the second aspect and any one of the second aspects.

[0075] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0076] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium includes a computer program, and when the computer program is executed on an electronic device, the electronic device executes the desktop icon adjustment method of the first aspect and any one of the first aspect, or the electronic device executes the desktop icon adjustment method of the second aspect and any one of the second aspect.

[0077] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0078] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is run, it enables a computer to execute a desktop icon adjustment method such as the first aspect or any one of the first aspect, or enables an electronic device to execute the second aspect and any one of the second aspect.

[0079] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here.

[0080] In a sixth aspect, the present application provides a chip, the chip comprising a processing circuit and a transceiver pin. The transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the desktop icon adjustment method of the first aspect or any one of the first aspect, or executes the desktop icon adjustment method of the second aspect or any one of the second aspect to control the receiving pin to receive a signal, so as to control the sending pin to send a signal.

[0081] The sixth aspect and any implementation of the sixth aspect correspond to the first aspect and any implementation of the first aspect, or correspond to the second aspect and any implementation of the second aspect, respectively. The technical effects corresponding to the sixth aspect and any implementation of the sixth aspect can refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, or can refer to the technical effects corresponding to the above-mentioned second aspect and any implementation of the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 The mobile phone desktop example is shown as an example;

[0083] Figure 2 The following is an example of a mobile phone desktop style shown for example;

[0084] Figure 3 is a schematic diagram of the hardware structure of an electronic device shown as an example;

[0085] Figure 4 A schematic diagram of the software structure of an electronic device is shown as an example;

[0086] Figure 5 is a schematic diagram of module interaction shown as an example;

[0087] Figure 6 This is a schematic diagram of an exemplary application icon optimization process;

[0088] Figure 7 The exemplary process of obtaining an application icon file for a desktop application for the first time and the process of obtaining an application icon file for a non-first time are shown;

[0089] Figure 8 is a schematic diagram of an icon database shown as an example;

[0090] Fig. 9 This is a schematic diagram of an exemplary icon adjustment interface in a settings application;

[0091] Fig.10 An example of customizing and adjusting an application icon is shown as an example;

[0092] Fig.11 A schematic diagram of an interface for exemplarily showing custom adjustment of an application icon;

[0093] Fig.12a One of the schematic diagrams of the interface for exemplarily showing the custom adjustment of the application icon;

[0094] Figure 12b One of the schematic diagrams of the interface for exemplarily showing the custom adjustment of the application icon;

[0095] Fig.13 The figure is a schematic diagram of an exemplary process of adaptively arranging application icons;

[0096] Fig.14 is a schematic diagram of an application icon shape shown as an example;

[0097] Fig.15 This is a schematic diagram showing an exemplary layout of application icons on the bottom panel;

[0098] Fig.16a One of the comparative schematic diagrams of exemplary desktop icon adjustment;

[0099] Fig.16b One of the comparative schematic diagrams of exemplary desktop icon adjustment;

[0100] Fig.17a One of the schematic diagrams for adjusting the icon folder is shown as an example;

[0101] Fig.17b This is one of the schematic diagrams for adjusting the icon folder shown as an example. DETAILED DESCRIPTION

[0102] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0103] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0104] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0105] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0106] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0107] Desktop, also known as desktop interface, is a computer term and is the graphical user interface provided by the operating system of an electronic device. To put it simply and figuratively, the desktop is the starting point for all application operations in an electronic device. It is the screen area displayed when the operating system runs normally after the electronic device is started.

[0108] Among them, after the electronic device is started, a large number of desktop icons can be displayed on its desktop. Desktop icons refer to icons corresponding to applications displayed on the desktop. When a user operates a desktop icon of an application, in response to the user operation, the electronic device displays a user graphical interface corresponding to the application so that the user can use the application. It can be understood that a desktop icon is an operation entrance of an application.

[0109] With the development of information technology, more and more applications are installed in electronic devices, making the functions of electronic devices more and more powerful, and more and more icons are displayed on the desktop. The various icons displayed on the desktop of the electronic device can intuitively help users quickly locate and use the applications they need, thereby improving the efficiency and convenience of user operations.

[0110] Therefore, desktop icons are one of the most important elements in the operating system and have a vital impact on the user experience. Good desktop icon design and arrangement can help users quickly understand the functions of each desktop icon, reduce the time and number of operations for users to find software or information, and thus improve users' recognition of electronic products.

[0111] Take mobile phones as an example. Figure 1 (1) exemplarily shows a desktop interface 101 of a mobile phone, on which a large number of desktop icons are displayed, such as a clock application icon, a calendar application icon, a gallery application icon, a memo application icon, etc. Exemplarily, a user clicks on a setting application icon 1011, and in response to the user operation, the mobile phone displays a user graphical interface of the setting application, so that the user can perform related operations in the setting application.

[0112] Among them, the desktop interface 101 can be understood as the main interface of the mobile phone desktop. In addition to the main interface of the desktop, the mobile phone desktop can also include other interfaces for displaying desktop icons, such as Figure 1 Interface 102 shown in (2) in the figure. When there are too many desktop icons, a new interface can be created on the mobile phone desktop to display the desktop icons. Alternatively, when the user wants to display the desktop icons in split screen, a new interface can be created to display the desktop icons in split screen. The user can slide the interface left and right to switch the mobile phone display interface between the various interfaces on the desktop. For example, Figure 1 As shown in (1), when the mobile phone displays the main interface 101 of the desktop, the user performs a left swipe operation on the interface. In response to the user operation, the mobile phone display interface switches from the main interface 101 of the desktop to the other interface 102 of the desktop. Similarly, when the mobile phone displays the other interface 102 of the desktop, the user performs a right swipe operation on the interface. In response to the user operation, the mobile phone display interface switches from the other interface 102 of the desktop to the main interface 101 of the desktop.

[0113] Whether on the main interface of the desktop or on other interfaces of the desktop, desktop icons are displayed according to the currently set desktop style, such as Figure 2 The standard style shown in (1) (i.e., displaying all application icons on the desktop interface), or Figure 2 The drawer style shown in (2) (i.e., displaying all application icons in the drawer interface of the desktop), etc. Wherein, no matter which desktop style is used, the display mode of application icons is set according to default parameters (such as icon style, icon size, icon arrangement, etc.).

[0114] If an electronic device supports the function of customizing desktop icons, so that users can freely design or arrange desktop icons according to their personal preferences, such as modifying the style and size of desktop icons, it can not only enhance the user's experience of using desktop icons, but also satisfy the user's personalized experience of electronic devices.

[0115] In view of this, an embodiment of the present application provides a method for adjusting desktop application icons. In this method, the electronic device supports the function of customizing and adjusting the desktop icons, so that the user can customize the pattern of the desktop icons, customize the size and arrangement of the desktop icons, customize the shape of the desktop icons, etc. according to his or her personal preferences, thereby improving the user's experience of using the desktop icons and satisfying the user's personalized experience of the electronic device. In addition, after the user adjusts the size of the desktop icon, the electronic device can also dynamically adjust the arrangement layout of the desktop icons according to the adjusted desktop icon scale to avoid the problem of messy arrangement of the desktop icons.

[0116] In the application embodiment, the electronic device may also be referred to as a mobile terminal, for example, it may be a terminal device with a display screen, such as a mobile phone, a tablet computer, etc. This embodiment does not limit the type of the electronic device.

[0117] like Figure 3 FIG. 1 is a schematic diagram of the structure of the electronic device 100. Optionally, the electronic device 100 may be a terminal, which may also be referred to as a terminal device. The terminal may be a device with a camera such as a cellular phone or a tablet computer, which is not limited in this application. It should be noted that the schematic diagram of the structure of the electronic device 100 may be applicable to Figure 1-Figure 2 It should be understood that Figure 3 The electronic device 100 shown is only one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different configuration of components. Figure 3 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0118] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor, a gyroscope sensor, an acceleration sensor, a temperature sensor, a motion sensor, an air pressure sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0119] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0120] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0121] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0122] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0123] The external memory interface 120 can be used to connect an external memory, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.

[0124] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121, such as enabling the electronic device 100 to implement the desktop icon adjustment method in the embodiment of the present application. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0125] The pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be arranged on the display screen 194. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor.

[0126] The touch sensor is also called a "touch panel". The touch sensor can be set on the display screen 194. The touch sensor and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.

[0127] The key 190 includes a power key (or power key), a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0128] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0129] Figure 4 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0130] The layered architecture of the electronic device 100 divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android Runtime) and the system library, and the kernel layer.

[0131] The application layer can include a series of application packages.

[0132] like Figure 4 As shown, the application package may include desktop applications (such as launcher), settings, gallery, calendar, call, map, navigation, WLAN, music and other applications.

[0133] The desktop application can be used for but not limited to drawing various interfaces of the desktop, and in this embodiment is specifically used for drawing various desktop icons on various interfaces of the desktop. In this embodiment, the desktop application can also create a desktop icon database for storing desktop icons personalized by users, and draw icons according to the desktop icon information in the desktop icon database. In the desktop icon database, the desktop icons can be stored in the form of a key-value pair "application identifier (such as application package name)-icon file".

[0134] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0135] like Figure 4 As shown, the application framework layer may include an activity manager service (AMS), a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.

[0136] The Activity Manager Service (AMS) is responsible for managing Activities, starting, switching, and scheduling various components in the system, and managing and scheduling applications. An Activity is an application component that provides an interface through which users can interact with electronic devices to complete a task. In an Android application, an Activity is usually a separate interface, such as the main interface of the desktop or other interfaces, and some controls displayed on the interface can also listen to and process user events to respond.

[0137] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0138] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0139] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0140] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0141] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, notification information is used to inform the completion of downloads, message reminders, etc. Notification information can also appear in the top status bar of the system in the form of icons or scroll bar text, such as notifications of applications running in the background, or in the form of dialog windows on the screen. Notification information can also be, for example, a text message in the status bar, a reminder sound, vibration of electronic devices, flashing indicator lights, etc.

[0142] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0143] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

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

[0145] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0146] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0147] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

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

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

[0150] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, Wi-Fi driver, sensor driver, etc. Among them, the hardware includes at least processor, display, Wi-Fi module, sensor, etc.

[0151] Understandably, Figure 4 The layers in the software structure shown and the components included in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

[0152] It is understandable that, in order to implement the desktop icon adjustment method in the embodiment of the present application, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

[0153] The following uses a mobile phone as an example to explain the desktop icon adjustment method provided in the embodiment of the present application.

[0154] like Figure 5 The following is a schematic diagram of the interaction between the modules. Figure 5 The process of the desktop icon adjustment method provided in the embodiment of the present application specifically includes:

[0155] S201, in response to a user turning on a mobile phone for the first time, a desktop application creates an icon database.

[0156] The icon database is used to store icon files of various applications, so that the desktop application can read the icon files of various applications from the icon database when drawing the desktop, so as to complete the desktop interface drawing process.

[0157] In this embodiment, the icon database may be created by the desktop application when the mobile phone is turned on for the first time.

[0158] In another optional implementation, the icon database may also be created when the desktop application first draws the desktop interface or when the desktop application completes drawing the desktop interface for the first time. For example, the desktop application creates the icon database after first acquiring the icon files of each application.

[0159] S202, when the desktop application is preparing to draw the desktop, it sends the package names of all desktop applications to the activity manager in sequence. All desktop applications refer to the various applications that will be displayed on the desktop. When the desktop style defaults to the standard style, the applications displayed on the desktop are all the applications installed in the mobile phone.

[0160] For all applications installed on the mobile phone, the corresponding desktop icons are usually specified by the application developer, and the image files corresponding to the desktop icons are usually converted into bitmap format and packaged and stored in the APK (Android application package) of the application. After the application is installed on the mobile phone based on the APK, the resource files corresponding to the application will be released and stored in the installation directory of the application. That is, the image files corresponding to the application desktop icons will be stored in the installation directory of the application.

[0161] It should be noted that after the application is installed in the mobile phone, each file of the application will be stored in the external memory of the mobile phone. Correspondingly, the image file corresponding to the application desktop icon will also be stored in the external memory of the mobile phone.

[0162] After the mobile phone is turned on for the first time, when the desktop application starts to draw the desktop icon for the first time, the desktop application calls the interface of the activity manager and sends the package names of all desktop applications to the activity manager in sequence to obtain the icon files of all desktop applications.

[0163] S203: The activity manager sequentially reads image files corresponding to the application icons from the external memory according to the application package name.

[0164] After obtaining the package name of each application, the activity manager sequentially reads the image files corresponding to each application in the external storage according to the package name of each application and the installation directory of each application. For example, the activity manager reads the image file corresponding to the desktop icon of application A in the external storage according to the package name of application A and the installation directory of application A.

[0165] It should be noted that when a desktop application first draws a desktop icon, it needs to call the interface of the activity manager each time it draws a desktop icon, so as to read the corresponding image file from the external memory through the activity manager. It is understandable that when a desktop application first draws a desktop icon, the more desktop icons there are, the more times the activity manager reads the image file from the external memory.

[0166] S204, the activity manager verifies each image file, and converts each successfully verified image file into an icon file.

[0167] For each image file read from the external storage, the activity manager will check it to determine whether the read image file can be converted into a corresponding icon file. The activity manager's check of the image file includes but is not limited to: checking whether the format of the image file meets the requirements, so as to avoid the problem of desktop icon display errors or prevent deliberate attacks; checking whether the file size of the image file exceeds the threshold, so as to avoid the problem of the desktop application loading icon files too slowly.

[0168] If a picture file is successfully verified by the activity manager, for example, the format of the picture file meets the requirements and the file size of the picture file does not exceed the threshold, the activity manager converts the picture file into an icon file that can be directly called or loaded by the desktop application.

[0169] For example, the file type of the icon file may be PNG (Portable Network Graphics). PNG files are usually relatively small, such as a few KB, which can increase the speed at which the desktop application loads the icon file, thereby increasing the speed at which the desktop application draws the desktop interface.

[0170] If an image file corresponding to an application fails to be verified by the activity manager, for example, the format of the image file does not meet the requirements, or the file size of the image file exceeds the threshold, the activity manager will no longer perform subsequent processing on the image file (such as sending it to the desktop application), which will cause the desktop application to have incomplete desktop icon loading when drawing the desktop interface.

[0171] S205: The activity manager optimizes each icon file according to the default configuration, and sends each icon file after the optimization to the desktop application.

[0172] In this embodiment, after obtaining the icon files of each application, the activity manager can also optimize the icon files, which may include but is not limited to: icon file cropping, icon file scaling, etc., so that each icon file conforms to the unified style of the mobile phone's UX (User experience).

[0173] Figure 6 The example of optimizing the icon file by the activity manager is shown as an example. Figure 6 As shown, for icon image 301, the activity manager can crop it so that the four right angles of the icon image become four rounded corners, as shown in icon image 302, and scale the size of the icon image proportionally according to the desktop icon display settings of the mobile phone to obtain an icon file as shown in icon image 302.

[0174] S206, after obtaining each icon file, the desktop application draws the desktop according to the default desktop style.

[0175] After the activity manager sends each optimized icon file to the desktop application, the desktop application can use the default desktop style (such as Figure 2 The standard style shown in (1) is used to draw the various interfaces on the desktop.

[0176] When the desktop application completes drawing the desktop interface, the corresponding interface can be displayed on the mobile phone desktop, for example Figure 1 The desktop interface shown in (1).

[0177] S207, after acquiring each icon file, the activity manager stores each icon file in the form of a key-value pair in the icon database.

[0178] In the icon database, icon files can be stored in the form of key-value pairs, where the key can be a unique identifier of the application, such as the package name of the application, and the value is the icon file of the application.

[0179] The icon database may be any type of key-value pair database, which is not limited in this embodiment.

[0180] This embodiment does not limit the sequence of S206 and S207.

[0181] S208, when the user operates the mobile phone to display the desktop interface again, the desktop application searches the icon database for corresponding icon files in sequence according to the package names of the various application programs on the desktop when preparing to draw the desktop.

[0182] S209, after searching for each icon file, the desktop application draws the desktop according to the default desktop style.

[0183] After the desktop application stores an icon file of an application in the icon database, when the desktop application needs to obtain the icon file of the application, it can read the corresponding icon file from the icon database without having to read the corresponding icon file from the external storage of the mobile phone through the activity manager.

[0184] like Figure 7 As shown in (1), when the desktop application obtains the icon file of application A for the first time, the desktop application sends the package name of application A to the activity manager through the interface of the activity manager. The activity manager reads the image file of application A in the external storage, verifies, converts the format and optimizes the image file to obtain the icon file of application A, and then transmits the icon file of application A to the desktop application. After the desktop application obtains the icon file of application A, it can store the icon file of application A in the icon database.

[0185] like Figure 7 As shown in (2), when the desktop application obtains the icon file of application A again (i.e. not for the first time), the desktop application can directly query the icon file of application A in the icon database according to the package name of application A, without having to obtain it through the activity manager. In this way, the database reading structure replaces the external memory reading and writing structure, which can reduce the number of times the external memory is read to a certain extent, improve the overall performance of the mobile phone, and extend the service life of the mobile phone's external memory to a certain extent.

[0186] It should be noted that when application A is pre-installed in the mobile phone (or installed by default when the device leaves the factory), the desktop icon of application A may be drawn for the first time when the mobile phone is turned on and the desktop is drawn for the first time after leaving the factory, and the desktop icon of application A may be drawn for any subsequent time when the mobile phone draws the desktop. When application A is an application downloaded and installed by the user, the desktop icon of application A may be drawn for the first time when the mobile phone draws the desktop after the user downloads and installs application A, and the desktop icon of application A may be drawn for any subsequent time when the mobile phone draws the desktop.

[0187] In the embodiments of the present application, Figure 8As shown, the user can personalize the icon files in the icon database through the icon adjustment interface. In this way, the application icon files stored in the icon database can be the default icons of the application or the icons set by the user. For example, if the user has not adjusted the icon file of application A, the icon of application A stored in the icon database is the default icon of application A; if the user has adjusted the icon file of application B, the icon of application B stored in the icon database is the icon set by the user for application B.

[0188] For example, Fig. 9 The "Desktop and Wallpaper" setting interface of the setting application is shown as an example. The icon adjustment control 401 displayed in the interface can be used as an interface for the user to adjust the icon files in the icon database (ie Figure 8 When the user clicks the icon adjustment control 401, in response to the user operation, the mobile phone displays the icon adjustment interface, so that the user can perform personalized adjustment on the application icon in the icon adjustment interface, including but not limited to: icon replacement, icon cropping, icon base modification, icon proportional scaling, etc.

[0189] Reference Fig.10 In (1), in the icon database, if the icon file of application A is icon picture 501, the user can replace the icon file of application A through the icon adjustment interface, for example, replace the icon file of application A with icon picture 502. At this time, in the icon database, the icon file of application A is icon picture 502.

[0190] Reference Fig.10 In (2), in the icon database, if the icon file of application A is an icon image 501, and the background of the icon file is a default background, such as a transparent gray background 503, the user can modify the background of the icon file of application A through the icon adjustment interface (such as color modification, pattern modification, etc.), for example, modifying the background of the icon file of application A to a black background 504.

[0191] It should be noted that the bottom plate size of the icon file can be slightly larger than the size of the icon image, or the bottom plate size of the icon file can be the same as the size of the icon image. This is not limited in the present embodiment, and the icon image can be completely located within the bottom plate area. Exemplarily, the bottom plate shape of the icon file can be a square, and the side length of the square can be the maximum length of the icon image in the horizontal or vertical direction. For example, referring to (3) in 10, the length of the icon image 505 in the horizontal direction is L1, and the length of the icon image 505 in the horizontal direction is L2, then the side length of the square bottom plate of the icon file can be set to L, where L is the larger value between L1 and L2. Optionally, the side length of the square bottom plate of the icon file can also be set to L', where L' is slightly larger than L.

[0192] Reference Fig.10 In (3), in the icon database, if the icon file of application A is icon picture 501, the user can crop the icon file of application A through the icon adjustment interface, for example, crop icon picture 501 of application A into icon picture 505. At this time, in the icon database, the icon file of application A is icon picture 505.

[0193] Reference Fig.10 In (4), in the icon database, if the icon file of application A is icon picture 501, the user can scale the icon file of application A in equal proportion through the icon adjustment interface, for example, enlarging icon picture 501 of application A to icon picture 506. At this time, in the icon database, the icon file of application A is icon picture 506.

[0194] Fig.11 (1) shows an example of a schematic diagram of an application icon adjustment interface. Fig.11 As shown in (1), in the application icon adjustment interface, a list of desktop applications is displayed. The user can adjust the icon of any application in the desktop application list. Fig.11 In (1), if the user clicks on the control 402 corresponding to the application A, then in response to the user operation, the mobile phone displays the icon adjustment interface corresponding to the application A, which can be referred to as Fig.11 As shown in (2). Fig.11As shown in (2), in the icon adjustment interface corresponding to any application, it may include but is not limited to icon replacement setting control 403, icon size setting control 404, icon base setting control 405, and icon cropping setting control 404. Among them, icon replacement setting control 403 can be understood as the operation entry for users to replace application icons, icon size setting control 404 can be understood as the operation entry for users to adjust icon sizes, icon base setting control 405 can be understood as the operation entry for users to set icon bases, and icon cropping setting control 406 can be understood as the operation entry for users to crop icons.

[0195] Exemplarily, when the user clicks the icon replacement setting control 403, in response to the user operation, the mobile phone can display the application icon adjustment interface shown in FIG. 12 (1). Exemplarily, the user can rotate a picture in the mobile phone gallery as the icon picture of the application through the "Select Picture" option 4031. Optionally, in the application icon adjustment interface shown in FIG. 12 (1), an icon sample 4032 is also displayed so that the user can know the effect after the application icon is replaced.

[0196] Exemplarily, when the user clicks the icon size setting control 404, in response to the user operation, the mobile phone can display the application icon adjustment interface shown in (2) of FIG. 12. Exemplarily, the user can adjust the icon size steplessly by sliding the control 4041 left and right. In the process of the user adjusting the icon size steplessly through the control 4041, the size of the icon sample 4042 is adjusted accordingly, so that the user can know the effect of the application icon size adjustment. Optionally, in the application icon adjustment interface shown in (2) of FIG. 12, a switch option 4043 of "apply to all icons" is also displayed. When the switch option 4043 is turned on, the size setting of an application icon by the user can be applied to all application icons, that is, the size setting of an application icon by the user is effective for all application icons; when the switch option 4043 is turned off, the size setting of an application icon by the user only applies to the application icon, that is, the size setting of an application icon by the user is only effective for the application icon.

[0197] It should be noted that the maximum and minimum values ​​of the icon size (or the side length of the icon base) may be preset, and the user may adjust the icon size steplessly between the maximum and minimum values.

[0198] Exemplarily, when the user clicks on the icon base setting control 405, in response to the user operation, the mobile phone can display the application icon adjustment interface shown in (3) of Figure 12. Exemplarily, the user can set the color of the icon base through the "color" option 4051, the user can set the pattern of the icon base through the "pattern" option 4052, and the user can set the transparency of the icon base through the "transparency" option 4053. Optionally, in the application icon adjustment interface shown in (3) of Figure 12, an icon base sample 4054 is also displayed to allow the user to know the effect of the application icon base after adjustment. Optionally, in the application icon adjustment interface shown in (3) of Figure 12, a switch option 4055 of "apply to all icons" is also displayed. When switch option 4055 is on, the user's setting for an application icon baseboard can be applied to all application icon baseboards, that is, the user's setting for a certain application icon baseboard is effective for all application icon baseboards; when switch option 4055 is off, the user's setting for an application icon baseboard only applies to that application icon baseboard, that is, the user's setting for a certain application icon baseboard is effective only for that application icon baseboard.

[0199] Exemplarily, when the user clicks the icon cropping setting control 406, in response to the user operation, the mobile phone can display the application icon adjustment interface shown in (4) of FIG. 12. Exemplarily, the user can crop the application icon in the icon cropping area 4061 to implement the user's personalized setting of the application icon shape. Optionally, in the application icon adjustment interface shown in (4) of FIG. 12, a switch option 4062 of "apply to all icons" is also displayed. When the switch option 4062 is turned on, the user's personalized setting of an application icon shape can be applied to all application icons, that is, the user's personalized setting of an application icon shape is effective for all application icons; when the switch option 4062 is turned off, the user's personalized setting of an application icon shape only acts on the application icon, that is, the user's personalized setting of an application icon shape is only effective for the application icon.

[0200] S210, when the user adjusts or batch-adjusts the icon files of the applications through the icon setting interface, the setting application sends the adjusted icon files of each application to the desktop application.

[0201] For each application whose icon is adjusted by the user, the setting application sends the package name of the application and the adjusted icon file to the desktop application.

[0202] S211, the desktop application updates the icon database according to the adjusted desktop icon files.

[0203] After receiving the adjusted application icon files, the desktop application updates the corresponding icon files stored in the icon database according to the package name of the application. For example, the desktop application updates the value in the corresponding key-value pair according to the package name of the application.

[0204] S212, when the user operates the mobile phone to display the desktop interface again, the desktop application searches the icon database for corresponding icon files in sequence according to the package names of the various application programs on the desktop when preparing to draw the desktop.

[0205] S213, after searching for each icon file, the desktop application draws the desktop according to the default desktop style.

[0206] After an icon file in the icon database is updated, the icon file read by the desktop application in the icon database is the updated icon file. Furthermore, when the desktop application draws the desktop according to the read icon file, the application icon is displayed in the desktop interface drawn according to the user's personalized settings.

[0207] In this way, the desktop icons of each application are independent of each other and do not affect each other, allowing users to adjust the desktop icons of a certain application separately. In addition, this solution eliminates the strong dependence of the application icon on the default icon of the application and meets the user's personalized needs for adjusting the desktop icons of the application.

[0208] In addition, except for the first time drawing the application's desktop icon, each time the desktop application draws the application's desktop icon, it only needs to read the application's corresponding icon file from the icon database. It no longer involves the activity manager's reading operation of the external memory, nor will there be problems such as incomplete desktop icon loading due to the image file read by the activity manager failing to pass the verification.

[0209] In an embodiment of the present application, a database read operation is used to replace the external memory read operation for reading icon files, which reduces the number of data reads from the external memory to a certain extent. In electronic devices such as mobile phones, the speed of reading data in the external memory is usually relatively slow relative to the data processing rate. For example, the data processing speed is in the millisecond level, while the external memory read data is in the second level. The embodiment of the present application uses a database read operation instead of an external memory read operation when drawing the desktop, which improves the data reading efficiency and can improve the performance of the electronic device to a certain extent. Moreover, as time goes by, the external memory may also age due to the continuous increase in the number of data reads. The embodiment of the present application reduces the number of data reads from the external memory, and can also extend the service life of the external memory of the electronic device to a certain extent.

[0210] In one application scenario, if a user newly installs an application in a mobile phone, the desktop application sends the package name of the desktop application to the activity manager when drawing the icon file corresponding to the application for the first time. The activity manager reads the image file corresponding to the application icon in the external storage device according to the package name of the application, and verifies the image file. If the verification is successful, the icon file is converted into an icon file. Furthermore, the activity manager can optimize the icon file according to the common format corresponding to all desktop icons (that is, the format settings applied to all desktop icons, such as icon size, icon shape, icon base, etc.), and send the processed icon file to the desktop application. After receiving the icon file of the application, the desktop application stores it in the icon database. When the desktop application subsequently draws the icon of the application, it can directly read the corresponding application icon in the icon database.

[0211] In another application scenario, if a user uninstalls an application in a mobile phone, the desktop application can delete the icon file corresponding to the application in the icon database. This can avoid the problem of icon redundancy in the icon database and ensure that the application icons stored in the icon database are all valid icons. When the user re-downloads and installs the application, the desktop application sends the package name of the desktop application to the activity manager when drawing the icon file corresponding to the application for the first time. The activity manager reads the image file corresponding to the application icon in the external storage device according to the package name of the application, and verifies the image file. If the verification is successful, the icon file is converted into an icon file. Furthermore, the activity manager can optimize the icon file according to the common format corresponding to all desktop icons (that is, the format settings applied to all desktop icons, such as icon size, icon shape, icon base, etc.), and send the processed icon file to the desktop application. After receiving the icon file of the application, the desktop application stores it in the icon database. When the desktop application subsequently draws the icon of the application, it can directly read the corresponding application icon in the icon database.

[0212] In another application scenario, the user updates an application installed in the mobile phone, and the icon pattern of the application is updated by the developer. In this case, when the application is updated, the desktop application sends the package name of the desktop application to the activity manager when drawing the icon file corresponding to the application (i.e., the updated application) for the first time. The activity manager reads the image file corresponding to the application icon in the external storage device according to the package name of the application, and verifies the image file. If the verification is successful, the icon file is converted into an icon file. Furthermore, the activity manager can optimize the icon file according to the common format corresponding to all desktop icons (i.e., the format settings applied to all desktop icons, such as icon size, icon shape, icon base, etc.), and send the processed icon file to the desktop application. After the desktop application receives the icon file of the application, it uses the icon file (whose icon pattern is the application icon pattern updated by the developer) to update the icon of the application stored in the icon database. When the desktop application subsequently draws the icon of the application, it directly reads the corresponding application icon in the icon database. At this time, the user can also customize the icon pattern of the application, which can be referred to in the previous text and will not be repeated here.

[0213] Optionally, if the icon size of the application was adjusted by the user before the update (that is, the icon size of the application was not the default size before the update), the icon size of the application after the update is the same as before the update, and is also a non-default size. Optionally, if the icon of the application was cropped before the update (that is, the icon shape of the application was not the default shape before the update), the icon shape of the application after the update is the same as before the update, and is also a non-default shape. Optionally, if the icon baseplate of the application was adjusted before the update (that is, the icon baseplate of the application was not the default setting before the update), the icon baseplate setting of the application after the update is the same as before the update, and is also a non-default setting.

[0214] Based on the above technical solution, when the user adjusts the icon size of one or more applications, especially when the application icon is enlarged, some desktop icons may be blocked, or the desktop icons may be arranged in a messy manner. In view of this, after the user adjusts the size of the desktop icons, the desktop application can also adaptively adjust the layout of the desktop icons based on the grid.

[0215] like Fig.13 As shown, after the user adjusts the size of the desktop icons, the desktop icon adjustment method provided in the embodiment of the present application may further include:

[0216] S601, the desktop application obtains the horizontal size and the vertical size of each application icon.

[0217] The horizontal size refers to the horizontal distance between the left and right endpoints of the application icon, and the vertical size refers to the vertical distance between the upper and lower endpoints of the application icon.

[0218] In the embodiment of the present application, since the user can customize the cropping of one or more application icons, the application icons drawn by the desktop application may be regular graphics or irregular graphics. Fig.14 (1) shows an application icon as an example. The application icon is a regular graphic. The horizontal size of the application icon is W1, and the vertical size of the application icon is H1. Fig.14 (2) shows an application icon by way of example. The application icon is an irregular shape. The horizontal size of the application icon is W2, and the vertical size of the application icon is H2.

[0219] S602: The desktop application uses the maximum size of the horizontal size and the vertical size of each application icon as the side length c of the icon base.

[0220] Assume that the horizontal sizes of n application icons are W1, W2, ..., Wn, and the vertical sizes of n application icons are H1, H2, ..., Hn, and the side length of the icon base c = maximum{W1, W2, ..., Wn, H1, H2, ..., Hn}.

[0221] In this way, any application icon can be included in the icon base area. Furthermore, the desktop application can arrange the application icons in the form of arranging the icon base, thereby solving the problem that the application icons cannot be arranged regularly due to irregular shapes caused by user-defined cutting.

[0222] S603, the desktop application calculates the number of horizontal desktop icons m, the number of vertical desktop icons n, the horizontal icon spacing x and the vertical icon spacing y according to the desktop icon display area width a, the desktop icon display area height b and the icon bottom side length c.

[0223] The desktop icon display area refers to the display area on the desktop used to arrange application icons. Fig.15 An example of a desktop icon display area is shown as an example. Fig.15 As shown, the width of the desktop icon display area is a, and the height of the desktop icon display area is b. It should be noted that when the desktop style is different, the width and height of the desktop icon display area are also different, and this embodiment does not limit this. Fig.15 The desktop style is taken as the standard style as an example.

[0224] The number of horizontal desktop icons, m, refers to the total number of application icons that can be arranged in each row (or the total number of icon bases) in the desktop icon display area; the number of vertical desktop icons, n, refers to the total number of application icons that can be arranged in each column (or the total number of icon bases) in the desktop icon display area.

[0225] The horizontal icon spacing x, or the horizontal icon bottom plate spacing x, refers to the spacing of the icon bottom plates arranged in the horizontal direction, including the boundary spacing between the two adjacent icon bottom plates on the left and right (i.e. the spacing between the right boundary of the left icon bottom plate and the left boundary of the right icon bottom plate), the spacing between the left boundary of the leftmost icon bottom plate and the left boundary of the desktop icon display area, and the spacing between the right boundary of the rightmost icon bottom plate and the right boundary of the desktop icon display area.

[0226] The vertical icon spacing y, or the icon bottom plate vertical spacing y, refers to the spacing of the icon bottom plates arranged in the vertical direction, including the boundary spacing between the two adjacent icon bottom plates (that is, the spacing between the lower boundary of the upper icon bottom plate and the upper boundary of the lower icon bottom plate), the spacing between the upper boundary of the top icon bottom plate and the upper boundary of the desktop icon display area, and the spacing between the lower boundary of the bottom icon bottom plate and the lower boundary of the desktop icon display area.

[0227] In the embodiment of the present application, when a%c≠0, m=floor(a / c); when a%c=0, m=a / c-1. Similarly, when b%c≠0, n=floor(b / c); when b%c=0, n=b / c-1. Among them, % represents the remainder, and floor represents the floor rounding function.

[0228] After calculating the number m of horizontal icons on the desktop and the number n of vertical icons on the desktop, the horizontal icon spacing x and the vertical icon spacing y can be calculated according to the number m of horizontal icons on the desktop and the number n of vertical icons on the desktop.

[0229] Wherein, when a%c≠0, x=(a%c) / (m+1); when a%c=0, x=c / (m+1). Similarly, when b%c≠0, y=(b%c) / (n+1); when b%c=0, y=c / (n+1).

[0230] Alternatively, x=(ac*m) / (m+1), y=(bc*n) / (m+1).

[0231] Exemplarily, the width a of the desktop icon display area is 230 (pixels), the height b of the desktop icon display area is 350 (pixels), and the side length c of the icon base is 50 (pixels). Since a%c=30≠0, then m=floor(a / c)=4, x=(a%c) / (m+1)=6 (pixels); since b%c=0, then n=b / c-1=6, y=c / (n+1)=7.14 (pixels). Therefore, in the desktop icon display area, the icon base is arranged in 6×4 (i.e., 6 rows and 4 columns), the horizontal spacing x of the icons is 6 (pixels), and the vertical spacing y of the icons is 7.14 (pixels).

[0232] In order to beautify the layout of desktop icons, the horizontal icon spacing x and the vertical icon spacing y may also be optimized.

[0233] If the calculated ratio of the horizontal icon spacing x to the icon bottom side length c is less than the threshold value q1, the number of horizontal desktop icons m and the horizontal icon spacing x are optimized so that the ratio of the horizontal icon spacing x to the icon bottom side length c is not less than the threshold value q1. When optimizing the horizontal icon spacing x, the number of horizontal desktop icons m can be reduced to increase the horizontal icon spacing x so that the ratio of the horizontal icon spacing x to the icon bottom side length c is not less than the threshold value q1.

[0234] Optionally, when the ratio of the horizontal icon spacing x to the icon bottom side length c is less than the threshold value q1, the number of horizontal desktop icons m and the horizontal icon spacing x can be updated according to formula (1) until the ratio of the horizontal icon spacing x to the icon bottom side length c is not less than the threshold value 1. Wherein, formula (1) is: m = m-1, x = (ac*m) / (m+1).

[0235] Similarly, if the calculated ratio of the icon longitudinal spacing y to the icon bottom side length c is less than the threshold value q2, the number of desktop longitudinal icons n and the icon longitudinal spacing y are optimized so that the ratio of the icon longitudinal spacing y to the icon bottom side length c is not less than the threshold value q2. When optimizing the icon longitudinal spacing y, the number of desktop longitudinal icons n can be reduced to increase the icon longitudinal spacing y so that the ratio of the icon longitudinal spacing y to the icon bottom side length c is not less than the threshold value q2.

[0236] Optionally, when the ratio of the icon vertical spacing y to the icon bottom side length c is less than the threshold value q2, the number of desktop vertical icons n and the icon horizontal spacing y can be updated according to formula (2) until the ratio of the icon vertical spacing y to the icon bottom side length c is not less than the threshold value q2. Wherein, formula (2) is: n = n-1, y = (bc*n) / (n+1).

[0237] It should be noted that each time the desktop application calculates the number of horizontal icons m, the number of vertical icons n, the horizontal spacing x and the vertical spacing y on the desktop, the number of horizontal icons m, the number of vertical icons n, the horizontal spacing x and the vertical spacing y on the desktop can be saved. Then, each time the desktop application subsequently draws the desktop, it can arrange the icon base according to the currently stored number of horizontal icons m, the number of vertical icons n, the horizontal spacing x and the vertical spacing y on the desktop, and draw the application icons on the icon base until the desktop application updates the number of horizontal icons m, the number of vertical icons n, the horizontal spacing x and the vertical spacing y on the desktop again.

[0238] S604, when drawing the desktop, the desktop application arranges the icon base according to the number of horizontal icons m, the number of vertical icons n, the horizontal icon spacing x and the vertical icon spacing y on the desktop, and draws the application icons on the icon base.

[0239] After the desktop application calculates and determines the number of horizontal icons m, the number of vertical icons n, the horizontal spacing x and the vertical spacing y of the icons on the desktop, the layout of the icon base is determined, that is, the layout of the icon base is n×m (that is, n rows and m columns), the horizontal spacing of the icons is x, and the vertical spacing of the icons is y.

[0240] Then, the desktop application can draw the application icon on each arranged icon base plate. Since the shape of the application icon may be regular or irregular, the application icon can be drawn on the icon base plate by aligning the center of the application icon and the icon base plate.

[0241] Fig.16a An example of adjusting the size of an application icon is shown in FIG. 1. Before the user adjusts the application icon, the layout of the icon base is 5×4 (ie, 5 rows and 4 columns), and the horizontal spacing of the icons is x1, and the vertical spacing of the icons is y1. Fig.16a For example, after the user uniformly increases the size of the application icons, the desktop application recalculates the layout of the icon baseboard and updates the layout of the icon baseboard to 4×3 (i.e., 4 rows and 3 columns), and the horizontal spacing of the icons is x2, and the vertical spacing of the icons is y2. Then, the desktop application draws the desktop icons according to the updated desktop baseboard layout. Fig.16a As shown in (2).

[0242] It should be pointed out that after the application icon size is increased, the number of application icons displayed in a desktop main interface will decrease. Correspondingly, some application icons originally displayed on the desktop main interface can be displayed in sequence in the next desktop interface, and the number of desktop interfaces may also increase.

[0243] In the embodiment of the present application, after the user adjusts the size of the application icon, the size of the application icon in the navigation bar at the bottom of the mobile phone desktop can be adjusted together with the size of the application icon in the desktop icon display area. Fig.16a The bottom navigation bar 701 shown in (2) in the figure. Exemplarily, when the size of the application icons in the bottom navigation bar of the desktop increases, the number of application icons in the bottom navigation bar of the desktop decreases. The desktop application can select some application icons in sequence to rearrange the application icons in the bottom navigation bar, or randomly select some application icons to rearrange the application icons in the bottom navigation bar, or select some application icons according to user settings to rearrange the application icons in the bottom navigation bar, which is not limited in this embodiment.

[0244] Optionally, after the user adjusts the size of the application icon, the size of the application icon in the bottom navigation bar of the mobile phone desktop may not be adjusted. For example, the size of the application icon in the desktop icon display area is increased, while the size of the application icon in the bottom navigation bar remains unchanged (see Fig.16a The bottom navigation bar 702 shown in (2)).

[0245] Fig.16b An example of adjusting the size of an application icon is shown in FIG. 1. Before the user adjusts the application icon, the layout of the icon base is 5×4 (ie, 5 rows and 4 columns), and the horizontal spacing of the icons is x1, and the vertical spacing of the icons is y1. Fig.16b As shown in (1). After the user increases the size of an application icon, the desktop application recalculates the layout of the icon base. For example, if the user only increases the icon size of the weather application, the desktop application will also recalculate the layout of the icon base to avoid problems with cluttered or obscured icon display. For example, the desktop application recalculates the layout of the icon base and updates the layout of the icon base to 4×3 (i.e., 4 rows and 3 columns), and the horizontal spacing of the icons is x2, and the vertical spacing of the icons is y2. Then the desktop application draws the desktop icons according to the updated desktop base layout. At this time, you can refer to Fig.16b As shown in (2). Fig.16b In the interface shown in (2), only the icon of the weather application is relatively large, while the sizes of the other application icons are relatively small. However, there is no problem of cluttered or obscured image arrangement due to the increase of the weather application icon.

[0246] In addition to the application icons, at least one icon folder can also be displayed on the desktop interface. An icon folder can include one or more application icons. The icon folder can be used to classify and organize the application icons to improve the neatness of the desktop interface. Fig.16a As shown in (1), the desktop interface exemplarily shows an icon folder 703, and the size and style of the icon folder are the same as those of the desktop icons.

[0247] like Fig.17a As shown in (1), when the user increases the size of the application icons (the clock application icon is shown in the figure as an example), the size of the icon folder will also be adjusted accordingly. The display change of the icon folder can be referred to Fig.17a As shown in (2).

[0248] In one case, if the user only adjusts the size of some application icons, for example, only increases the size of the clock application icon, such as Fig.17b As shown in (1), the size of the icon folder will not be adjusted, only the icon base will be enlarged. For the display changes of the icon folder, please refer to Fig.17b As shown in (2).

[0249] The desktop icon adjustment method provided in the embodiment of the present application is designed to improve the user's efficiency in using the mobile phone desktop. The solution is simple and easy to use, and can help users quickly and personalized set desktop icons. Among them, the user can customize the pattern of the application icon. For example, the user can use a picture stored in the mobile phone to replace the original icon pattern of the application for display. Moreover, the user can customize the shape and size of the application icon. For example, the user can scale the icon size proportionally and cut the shape of the application icon according to usage habits. In addition, after the user adjusts the size of the desktop icon, the mobile phone will dynamically adjust the desktop layout according to the adjusted size, so that the desktop layout does not appear messy, ensuring the user's visual experience of the mobile phone desktop.

[0250] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the desktop icon adjustment method in the above-mentioned embodiment.

[0251] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the desktop icon adjustment method in the above-mentioned embodiment.

[0252] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the desktop icon adjustment method in the above-mentioned method embodiments.

[0253] Among them, the electronic device (such as a mobile phone, etc.), computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0254] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0255] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0256] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A desktop icon adjustment method, characterized in that: Used in electronic equipment, including: Receiving a first operation from a user; In response to the first operation, adjusting the first icon of the target application to obtain a second icon of the target application; Updating the first icon of the target application in the icon database to the second icon; Receiving a second operation from the user; In response to the second operation, reading the second icon of the target application from the icon database; A desktop is displayed, wherein the desktop includes the second icon.

2. The method according to claim 1, characterized in that Also includes: When drawing the desktop icon of the target application for the first time, reading the image file of the target application in the external memory, generating the icon of the target application according to the image file of the target application, and completing the desktop icon drawing operation according to the icon of the target application; Storing the icon of the target application in the icon database; When the desktop icon of the target application is not drawn for the first time, the icon of the target application is read from the icon database, and the desktop icon drawing operation is completed according to the icon of the target application.

3. The method according to claim 1, characterized in that Also includes: The icon database is created during the first startup of the electronic device.

4. The method according to claim 2, characterized in that: Storing the icon of the target application in the icon database includes: The package name of the target application and the icon of the target application are stored in the icon database in the form of a key-value pair.

5. The method according to claim 1, characterized in that Also includes: In response to an operation of downloading and installing the target application, reading a picture file of the target application in an external memory, and generating an icon of the target application according to the picture file of the target application; The icon of the target application is stored in the icon database.

6. The method according to claim 1, characterized in that Also includes: In response to an operation of uninstalling the target application, the icon of the target application is deleted from the icon database.

7. The method according to any one of claims 1 to 6, characterized in that: The first operation includes at least one of the following: Adjust the size of the app icon, crop the app icon, adjust the icon base of the app icon, and replace the app icon pattern.

8. The method according to claim 7, characterized in that The adjusting the size of the application icon includes: adjusting the size of one application icon, or adjusting the sizes of all application icons; Alternatively, the cropping of the application icon includes: Crop an app icon or all app icons; Alternatively, adjusting the icon base of the application icon includes: Adjust the icon base of an app icon, or adjust the icon base of all app icons; Alternatively, adjusting the icon base of the application icon includes: Adjust at least one of the following items of the icon base: color, pattern, transparency; Alternatively, the pattern of replacing the application icon includes: Select an image from your gallery as your app icon.

9. The method according to claim 7, characterized in that: When the first operation is to adjust the size of the application icon, the method further includes: When performing an operation of drawing a desktop according to the second icon, re-determining the size of the icon base plate; wherein the icon of any application can be included in the area of ​​the icon base plate; In the desktop icon display area, icon base plates of multiple applications are arranged according to the size of the icon base plate, and application icons are drawn on the icon base plate; wherein the multiple applications include the target application.

10. The method according to claim 9, characterized in that Drawing the application icon on the icon base plate includes: The application icon is drawn on the icon base plate in a center-aligned manner.

11. The method according to claim 9, characterized in that The shape of the icon base plate is a square; and the re-determining the size of the icon base plate includes: Obtaining a horizontal size and a vertical size of an icon of each of the multiple applications; The largest dimension between the horizontal dimension of the icon and the vertical dimension of the icon is used as the side length of the icon base.

12. The method according to claim 11, characterized in that Arranging icon base plates of multiple applications in a desktop icon display area according to the size of the icon base plate includes: Calculate the number of desktop icons in horizontal direction, the number of desktop icons in vertical direction, the horizontal spacing between icons and the vertical spacing between icons according to the width of the desktop icon display area, the height of the desktop icon display area and the side length of the icon base plate, and save the number of desktop icons in horizontal direction, the number of desktop icons in vertical direction, the horizontal spacing between icons and the vertical spacing between icons; The icon base is arranged in rows and columns according to the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons and the vertical spacing between icons.

13. The method according to claim 12, characterized in that Calculating the number of desktop icons in the horizontal direction, the number of desktop icons in the vertical direction, the horizontal spacing between icons, and the vertical spacing between icons according to the width of the desktop icon display area, the height of the desktop icon display area, and the side length of the icon base plate, including: The number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons, and the vertical spacing between icons are calculated based on the following formulas: When a%c≠0, m=floor(a / c), x=(a%c) / (m+1); When a%c=0, x=c / (m+1); When b%c≠0, n=floor(b / c), y=(b%c) / (n+1); When b%c=0, n=b / c-1, y=c / (n+1); Among them, a is the width of the desktop icon display area, b is the height of the desktop icon display area, c is the side length of the icon base, m is the number of horizontal icons on the desktop, n is the number of vertical icons on the desktop, x is the horizontal spacing between the icons, and y is the vertical spacing between the icons; % represents the remainder, and floor represents the rounding down function.

14. The method according to claim 13, characterized in that After calculating the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal icon spacing, and the vertical icon spacing based on the following formula, the method further includes: If the ratio of x to c is less than the first threshold, then update m and x according to the following formula until the ratio of x to c is not less than the first threshold; m=m-1, x=(ac*m) / (m+1); If the ratio of y to c is less than the second threshold, n and y are updated according to the following formula until the ratio of y to c is not less than the second threshold; n=n-1, y=(bc*n) / (n+1).

15. A desktop icon adjustment method, characterized in that: include: Receiving a user's operation of adjusting the size of a target application icon; In response to the adjustment operation, adjusting the third icon of the target application to obtain a fourth icon of the target application; Re-determining the size of the icon base according to the icon size of the fourth icon; wherein the icon of any application can be included in the area of ​​the icon base; Recalculate the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal spacing between icons, and the vertical spacing between icons according to the width of the desktop icon display area, the height of the desktop icon display area, and the size of the icon base, and save the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal spacing between icons, and the vertical spacing between icons; Receiving a third operation from the user; In response to the third operation, the icon bases of multiple applications are rearranged according to the number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons, and the vertical spacing between icons, and the application icons are drawn on the icon bases to complete the desktop drawing operation; wherein the multiple applications include the target application.

16. The method according to claim 15, characterized in that The shape of the icon base is a square; and according to the icon size of the fourth icon, the size of the icon base is re-determined, including: Obtaining a horizontal size and a vertical size of an icon of each of the multiple applications; The largest dimension between the horizontal dimension of the icon and the vertical dimension of the icon is used as the side length of the icon base.

17. The method according to claim 16, characterized in that Recalculating the number of desktop horizontal icons, the number of desktop vertical icons, the horizontal spacing between icons, and the vertical spacing between icons according to the width of the desktop icon display area, the height of the desktop icon display area, and the size of the icon base, including: The number of horizontal icons on the desktop, the number of vertical icons on the desktop, the horizontal spacing between icons, and the vertical spacing between icons are recalculated based on the following formula: When a%c≠0, m=floor(a / c), x=(a%c) / (m+1); When a%c=0, x=c / (m+1); When b%c≠0, n=floor(b / c), y=(b%c) / (n+1); When b%c=0, n=b / c-1, y=c / (n+1); Among them, a is the width of the desktop icon display area, b is the height of the desktop icon display area, c is the side length of the icon base, m is the number of horizontal icons on the desktop, n is the number of vertical icons on the desktop, x is the horizontal spacing between the icons, and y is the vertical spacing between the icons; % represents the remainder, and floor represents the rounding down function.

18. The method according to claim 17, characterized in that After recalculating the number of horizontal desktop icons, the number of vertical desktop icons, the horizontal icon spacing, and the vertical icon spacing based on the following formula, the method further includes: If the ratio of x to c is less than the first threshold, then m and x are updated according to the following formula until the ratio of x to c is not less than the first threshold; m=m-1, x=(ac*m) / (m+1); If the ratio of y to c is less than the second threshold, n and y are updated according to the following formula until the ratio of y to c is not less than the second threshold; n=n-1, y=(bc*n) / (n+1).

19. An electronic device, characterized in that: include: one or more processors; Memory; And one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device executes the desktop icon adjustment method as described in any one of claims 1-14, or the electronic device executes the desktop icon adjustment method as described in any one of claims 15-18.

20. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed on an electronic device, the electronic device is enabled to execute the desktop icon adjustment method as claimed in any one of claims 1 to 14, or the electronic device is enabled to execute the desktop icon adjustment method as claimed in any one of claims 15 to 18.