Desktop template creation and application method, device and electronic device
Through the creation and application methods of desktop templates, the problem of single desktop layout is solved, and a richer desktop layout is provided, which lowers the user threshold.
Patent Information
- Application Number
- CN202210357403.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-04-06
AI Technical Summary
In the prior art, the single desktop layout method makes it difficult for users with weak hands-on or weak aesthetic ability to design beautiful and practical desktop layouts.
Provides a desktop template creation method and application method. By responding to user input, displaying the page according to the template editing mode, replacing the desktop element as a placeholder element, and generating a desktop template based on the placeholder element.
It enriches the desktop layout method, allowing users to quickly create and apply desktop layout based on preset desktop templates, lowering the threshold for use.
Smart Images

Figure CN114817783B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic devices, and specifically relates to a desktop template creation method, a desktop template application method, a device, an electronic device and a readable storage medium. Background Art
[0002] Currently, users can customize the layout of desktop icons on smart terminals according to their preferences. Customized layout brings users a higher degree of freedom in desktop layout, but it also brings users a higher threshold for use, requiring users to have a high level of aesthetic ability and hands-on ability.
[0003] In actual situations, for some users who have poor hands-on skills, poor aesthetic ability or are too lazy to customize the layout, it is largely impossible to design a desktop layout that is both beautiful and practical, and they can only use the automatically generated desktop. This shows that the current desktop layout method is relatively simple. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a desktop template creation method, a desktop template application method, a device, an electronic device and a readable storage medium, which can solve the problem of a single desktop layout method in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a desktop template creation method, which is applied to a first electronic device, the method comprising: in response to a first input of a user to a first page of the desktop, displaying the first page in a template editing mode; in response to a second input of a user to a first position in the first page in the template editing mode, replacing a first desktop element displayed at the first position with a first placeholder element; in response to a third input of a user to the first page in the template editing mode, generating a desktop template based on the first placeholder element.
[0006] In a second aspect, an embodiment of the present application provides a desktop template creation device, which is applied to a first electronic device, and the device includes: a display module, which is used to display the first page in a template editing mode in response to a first input of a user to a first page of the desktop; a first replacement module, which is used to replace a first desktop element displayed at the first position with a first placeholder element in response to a second input of a user to a first position in the first page in the template editing mode; and a template generation module, which is used to generate a desktop template according to the first placeholder element in response to a third input of a user to the first page in the template editing mode.
[0007] In an embodiment of the present application, in response to a first input of a user to a first page of a desktop, the first page is displayed in a template editing mode; in response to a second input of a user to a first position in the first page in the template editing mode, the first desktop element displayed in the first position is replaced with a first placeholder element; in response to a third input of a user to the first page in the template editing mode, a desktop template is generated according to the first placeholder element. In this way, a desktop template creator can quickly create a desktop template based on a page of the desktop, and a desktop template user can use the desktop template to perform desktop layout, thereby enriching the desktop layout method.
[0008] In a third aspect, an embodiment of the present application provides a desktop template application method, which is applied to a second electronic device, the method comprising: in response to a tenth input for a desktop template, generating a third page on the desktop according to the desktop template; the first position in the third template is a first placeholder element; in response to an eleventh input to the first position in the third page, replacing the first placeholder element displayed at the first position with a fourth desktop element, and the fourth desktop element matches the placeholder element type of the first placeholder element.
[0009] In a fourth aspect, an embodiment of the present application provides a desktop template application device, which includes: a page generation module, used to generate a third page on the desktop according to the desktop template in response to a tenth input for the desktop template; the first position in the third template is a first placeholder element; a second replacement module, used to replace the first placeholder element displayed at the first position with a fourth desktop element in response to an eleventh input to the first position in the third page, and the fourth desktop element matches the placeholder element type of the first placeholder element.
[0010] In the embodiment of the present application, in response to the tenth input for the desktop template, a third page is generated on the desktop according to the desktop template, the first position in the third page is the first placeholder element, and in response to the eleventh input to the first position in the third page, the first placeholder element displayed in the first position is replaced with a fourth desktop element, and the fourth desktop element matches the placeholder element type of the first placeholder element. In this way, the desktop template user can use the desktop template created by the desktop template creator to perform desktop layout, thereby enriching the desktop layout method.
[0011] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first and third aspects are implemented.
[0012] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect and the third aspect are implemented.
[0013] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the methods described in the first and third aspects.
[0014] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first and third aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a method flow chart of a desktop template creation method in an embodiment;
[0016] FIG2( a ) is a schematic diagram of a first input in one embodiment;
[0017] FIG2( b ) is a schematic diagram of a first input in another embodiment;
[0018] FIG2( c ) is a schematic diagram of an interface in a template editing mode according to an embodiment;
[0019] FIG3( a ) is a schematic diagram of a bubble pop-up box in a template editing mode in one embodiment;
[0020] FIG3( b ) is a schematic diagram of replacing a first desktop element with a first placeholder element in an embodiment;
[0021] FIG3( c ) is a schematic diagram of replacing a first desktop element with a first placeholder element in one embodiment;
[0022] Figure 4 is a schematic diagram of the result of setting a desktop element in an embodiment;
[0023] Figure 5 is a method flow chart of a desktop template creation method in an embodiment;
[0024] Figure 6 is a method flow chart of a desktop template creation method in an embodiment;
[0025] Figure 7 is a method flow chart of a desktop template creation method in an embodiment;
[0026] Figure 8 is a schematic diagram of a second page template in an embodiment;
[0027] Fig. 9 is a schematic diagram of a page displayed after editing of a desktop template is completed in an embodiment;
[0028] Fig.10 is a method flow chart of a desktop template application method in an embodiment;
[0029] Fig.11 is a schematic diagram of selecting a page template in a desktop template application method in an embodiment;
[0030] Fig.12 is a schematic diagram of a third page in a desktop template application method in an embodiment;
[0031] Fig.13 is a schematic diagram of selecting multiple placeholder elements in one embodiment;
[0032] Fig.14 is a schematic diagram of selecting multiple desktop elements in one embodiment;
[0033] Fig.15 is a functional structure diagram of a desktop template creation device in an embodiment;
[0034] Fig.16 is a functional structure diagram of a desktop template application device in an embodiment;
[0035] Fig.17 is a functional structure block diagram of an electronic device in an embodiment;
[0036] Fig.18 The figure is a schematic diagram of the hardware structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0039] When users customize the desktop layout, they can choose to place the application (Application, APP) icon and desktop components on the desktop, or create a folder on the desktop and place the application icon and desktop components in the folder. However, the sizes of desktop components vary, including 1×1, 2×1, 2×2, 3×2, etc. The icon size can also be selected in the form of 1×1, 2×1, 2×2, etc. In the face of these complex forms, users need to have high aesthetic ability and hands-on ability to create a satisfactory desktop. Most users can only choose a pre-set desktop template to set the desktop layout, and in the existing desktop templates, the settings such as desktop components are fixed, resulting in poor flexibility of the desktop layout. It can be seen that the current desktop layout method is not only single, but also poor in flexibility and convenience.
[0040] Based on the above-mentioned problems, the present application provides a desktop template creation method, a desktop template application method, a device, an electronic device and a readable storage medium.
[0041] The desktop template creation method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0042] Figure 1 1 is a flowchart of a method for creating a desktop template in one embodiment of the present application. The method is applied to a first electronic device, and the present embodiment is illustrated by taking the method applied to the first electronic device as an example. Figure 1 As shown, the method includes the following steps S110 to S130.
[0043] S110: In response to a first input of a user to a first page of the desktop, display the first page in a template editing mode.
[0044] Specifically, the electronic device receives a first input from a user on a first page of the desktop, and in response to the first input, displays the first page in a template editing mode.
[0045] The desktop of the electronic device may be composed of at least one page, each page is used to display an icon of an application and / or a desktop component, and the first page is one of the pages. The first page may be the page currently displayed by the electronic device.
[0046] Among them, the first input is used to indicate entering the template editing mode. The first input can be in various forms, and several possible forms are listed below. In some examples, the first input is an input in which a plurality of fingers touch the display screen at any position of the display screen and slide in a preset direction when the first page is displayed. The plurality of fingers may be, for example, two fingers, three fingers, or four fingers. The preset direction may be, for example, left, right, up, down, upper left, lower left, upper right, or lower right.
[0047] For example, as shown in FIG2(a), the electronic device displays a first page, and in the first input, there are three touch points 201 between the fingers and the display screen, the preset direction a is upward, and the first input is an input in which three fingers touch the display screen at any position on the display screen and slide upward.
[0048] In other examples, the first input is an input of shaking the terminal after entering the preset mode. The above shaking can be, for example, shaking up and down, shaking left and right, shaking clockwise, shaking counterclockwise, etc. The preset mode is a mode in the related art in which icons on the desktop can be edited, such as the desktop editing mode entered by the user after pinching two fingers together or long pressing a blank space on the desktop. In the preset mode, the user can move or delete icons on the desktop, or add new icons to the desktop.
[0049] 2(b), when the electronic device enters the desktop editing mode, thumbnails 220 of the first page and other pages are displayed. The first input may be an input of shaking the electronic device in a counterclockwise direction (such as the arrow direction in FIG. 2(b)).
[0050] In some examples, displaying the first page in the template editing mode includes: displaying the first page in a preset area of the display interface.
[0051] For example, as shown in FIG. 2( c ), the first page is reduced in size and displayed in the first area 230 of the display interface.
[0052] In other examples, displaying the first page in template editing mode may further include: displaying an editing control for editing text in the second area of the display interface, so that the user can edit the page template name through the editing control. The page template name is used to name the page template obtained according to the first page in the following text.
[0053] For example, please continue to refer to FIG. 2( c ), the electronic device may display a text box in the second area 240 of the display interface, so that the user can edit the desktop template name through the text box.
[0054] It is understandable that the above is only an exemplary description of the way of displaying the first page in the template editing mode. The way of displaying the first page in the template editing mode in the embodiment of the present application includes but is not limited to the above-listed ways, as long as the user can be reminded that the template editing mode is currently entered.
[0055] S120: In response to a second input of the user to a first position in the first page in the template editing mode, replacing a first desktop element displayed at the first position with a first placeholder element.
[0056] Specifically, the electronic device replaces the first desktop element displayed at the first position with the first placeholder element in response to the second input of the user to the first position in the first page in the template editing mode.
[0057] Among them, there are multiple positions in the first page in the template editing mode, and an application icon, component or placeholder element can be placed in each position. Placeholder elements such as placeholders can occupy a fixed position, and symbols of corresponding content can be added to them. The second input to the first position in the first page in the template editing mode may include: selecting the first position in the first page, and selecting an input of a placeholder element from multiple placeholder elements contained in a preset window displayed after selecting the first position. Among them, the placeholder element types of the multiple placeholder elements are different.
[0058] The first placeholder element may be one of the placeholder elements selected from a plurality of placeholder elements. The placeholder element type of the first placeholder element may include at least one of the following: an icon type, a component type. The icon type, for example, includes at least one of an application icon type and a folder icon type. In the case where the placeholder element type of the first placeholder element is an icon type, only an application icon can be placed at the position of the first placeholder element. In the case where the placeholder element type of the first placeholder element is a component type, only a component can be placed at the position of the first placeholder element. In the case where the placeholder element type of the first placeholder element includes an icon type and a component type, both an application icon and a component can be placed at the position of the first placeholder element.
[0059] For example, as shown in Fig. 3(a), after entering the template editing mode, a first desktop element 301 is displayed at a first position 300. After clicking the first position 300, a bubble pop-up box pops up on the interface.
[0060] Please continue to refer to FIG. 3( a ), in which a first control 3021 corresponding to the application placeholder and a second control 3022 corresponding to the component placeholder are displayed on the bubble pop-up box for the user to select.
[0061] 3(a) and 3(b), when a user clicks on the first control 3021 corresponding to the application placeholder in FIG3(a), as shown in FIG3(b), the first desktop element 301 displayed at the first position 300 is replaced with the application placeholder A, indicating that an application icon can be placed at this position.
[0062] 3(a) and 3(c), when a user clicks on the second control 3022 corresponding to the component placeholder in FIG3(a), as shown in FIG3(c), the first desktop element 301 displayed at the first position 300 is replaced by the component placeholder C, indicating that a component can be placed at this position.
[0063] For desktop elements at other positions in FIG. 3( a ), the user can set the desktop elements at other positions in the manner of setting the first desktop element 301 displayed at the first position 300 described above. Figure 4 A schematic diagram showing the result of setting the desktop elements at various positions in FIG. 3( a ) is shown.
[0064] It is understandable that the above-mentioned bubble pop-up box can also include a third control corresponding to the universal placeholder. When the user clicks the third control, the first desktop element displayed at the first position is replaced by the universal placeholder. Either an application icon or a component can be placed on the universal placeholder.
[0065] It is understandable that the form of the second input to the first position in the first page in the template editing mode includes but is not limited to the forms listed above, as long as the first desktop element can be replaced by the first placeholder element. For example, it can also be an input by directly clicking the first position once or multiple times, wherein each time the first position is clicked, the desktop element or placeholder element at the first position is switched once. For example, when the first position is clicked for the Nth time, the first desktop element displayed at the first position is switched to an application placeholder; when the first position is clicked for the N+1th time, the application placeholder is switched to a component placeholder; when the first position is clicked for the N+2th time, the component placeholder is switched to a general placeholder; when the first position is clicked for the N+3th time, the component placeholder is switched to the first desktop element, and so on; wherein N is a positive integer.
[0066] In some embodiments, when the first page is displayed in the template editing mode, the user can also modify the position, size and other element information of each desktop element in the first page to further beautify the desktop layout. For example, the user can press and hold a desktop element to drag it from the first position to the second position, thereby changing the position of the desktop element. For another example, when the user double-clicks a desktop element, a size setting window pops up on the interface, which displays at least one size control corresponding to at least one desktop element size. The user selects a size control of a desktop element size to adjust the size of the desktop element to the desktop element size corresponding to the size control.
[0067] In some examples, the first page may further include a folder, and the first position may be a position in the page after the folder is opened where an application icon, component, or placeholder element is placed.
[0068] S130: In response to a third input of the user on the first page in the template editing mode, generating a desktop template according to the first placeholder element.
[0069] Specifically, the electronic device generates a desktop template according to the first placeholder element in response to the user's third input on the first page in the template editing mode.
[0070] In some embodiments, Figure 5 As shown, the execution process of S130 may include the following S510 to S520.
[0071] S510: In response to a third input of the user on the first page in the template editing mode, generating a first page template according to the first placeholder element.
[0072] The third input is an input indicating that the first page in the add template editing mode is the first page template.
[0073] For example, Figure 4 As shown, in the template editing mode, an add control 410 is also displayed in the first page, and the third input may be an input such as clicking on the add control 410 to indicate that the first page in the template editing mode is the first page template.
[0074] When generating the first page template according to the first placeholder element, the information related to the first placeholder element, such as the placeholder element type, position, and size of the first placeholder element, can be recorded, and then the first page template is generated according to the recorded information. The first page template and the first page in the template editing mode are both provided with the first placeholder element, and the placeholder element type, position, size, and other information of the first placeholder element are the same.
[0075] In some embodiments, the first page also includes other desktop elements such as application icons and component icons in addition to the first placeholder element, for example Figure 4 The desktop element also includes components such as calendar, weather, and clock. In this case, the type, name, location, size, and other information of the above other desktop elements can also be recorded to copy other desktop elements in the first page in the template editing mode to the first page template. The type of desktop element can be application type or component type.
[0076] In some embodiments, the association information of the desktop elements other than the first placeholder element in the first page may also be recorded, and the association information may include, for example, identification information of the desktop element. For example, when the desktop element is an application, the identification information may be the package name of the application. When the first page template is subsequently used for layout, the association information of the desktop element in the first page template may be referred to to associate the desktop element with the corresponding application or component.
[0077] S520: When a fourth input for exiting the template editing mode is received, a desktop template is generated based on the first page template, and display of the first page is restored.
[0078] The fourth input is an input indicating completion of desktop template editing.
[0079] After generating the first page template, such as Figure 4 As shown, a completion control 420 is displayed on the first page, and the fourth input may be an input of clicking on the completion control 420 .
[0080] For example, when the fourth input is received, the information of the first page template obtained above is added to the preset template file, the template file is used as the desktop template, and then the template editing mode is exited, and the first page in the current template editing mode is restored to the first page before entering the template editing mode. The first page will not change due to the editing in the template editing mode.
[0081] In some embodiments, after generating the first page template and before generating the desktop template, the user may need to modify the first page template. In order to meet the above needs of the user, before executing S520, the embodiment of the present application can also execute the following S610 to S630.
[0082] S610: Displaying the first page and the first page template in the template editing mode.
[0083] like Figure 4 As shown, the first page in the template editing mode is displayed in the first area of the interface, and the first page template is displayed in the second area of the interface.
[0084] S620: In response to a fifth input of the user to a first position in the first page in the template editing mode, replacing a first placeholder element displayed at the first position with a second placeholder element or a second desktop element.
[0085] The fifth input is, for example, an input for modifying the first placeholder element at the first position.
[0086] Modifying the first placeholder element at the first position includes, for example, modifying the placeholder element type of the placeholder element at the first position, such as replacing the first placeholder element with a second placeholder element, wherein the placeholder element types of the first placeholder element and the second placeholder element are different; for example, modifying the application placeholder at the first position to a component placeholder.
[0087] Modifying the first placeholder element at the first position may also be modifying the type of the desktop element at the first position, such as replacing the first placeholder element with a second desktop element.
[0088] S630: Update the first page template according to the second placeholder element or the second desktop element.
[0089] When the first placeholder element displayed at the first position is replaced by the second placeholder element, the first placeholder element in the first page template is updated to the second placeholder element. When the first placeholder element displayed at the first position is replaced by the second desktop element, the first placeholder element in the first page template is updated to the second desktop element, so as to achieve the purpose of updating the first page template according to the user's modification of the first page module.
[0090] In some embodiments, after the user has edited the page template corresponding to a page for the first time, he still wants to continue editing other pages to obtain the page templates corresponding to other pages. Figure 7 As shown, the execution process of S130 may include the following S710 to S750.
[0091] S710: In response to a third input of the user on the first page in the template editing mode, generate a first page template according to the first placeholder element.
[0092] The execution process of this step is the same as that of S510. For details, please refer to the corresponding description of S510 in the above embodiment, which will not be repeated here.
[0093] S720: In response to a sixth input of the user on the first page in the template editing mode, displaying the second page in the template editing mode.
[0094] The sixth input may be an input for indicating switching of the first page, such as an input of sliding left or right at the middle position of the first page to indicate switching the current first page to a second page located before or after the first page.
[0095] The manner of displaying the second page in the template editing mode is the same as the manner of displaying the first page in the template editing mode. For details, please refer to the relevant description about displaying the first page in the template editing mode in the above embodiment, which will not be repeated here.
[0096] S730: In response to a seventh input of the user on the second position in the second page in the template editing mode, replacing the third desktop element displayed at the second position with a third placeholder element.
[0097] The second position in the second page in the template editing mode is similar to the first position in the first page in the template editing mode. For details, please refer to the corresponding description of the first position in the first page in the above embodiment, which will not be repeated here.
[0098] The seventh input to the second position in the second page in template editing mode is similar to the second input to the first position in the first page in template editing mode. For details, please refer to the corresponding description of the second input to the first position in the first page in template editing mode in the above embodiment, which will not be repeated here.
[0099] Replacing the third desktop element displayed at the second position with the third placeholder element is similar to replacing the first desktop element displayed at the first position with the first placeholder element. For details, please refer to the corresponding description of replacing the first desktop element displayed at the first position with the first placeholder element in the above embodiment, which will not be repeated here.
[0100] S740: In response to an eighth input of the user on the second page in the template editing mode, generate a second page template according to the third placeholder element.
[0101] The eighth input is an input indicating that the second page in the template editing mode is a second page template. In the template editing mode, the second page also displays an add control, and the eighth input can be an input such as clicking the add control to indicate that the second page in the template editing mode is a second page template.
[0102] The method of generating the second page template according to the third placeholder element is similar to the method of generating the first page template according to the first placeholder element. For details, please refer to the corresponding description of the method of generating the first page template according to the first placeholder element in the above embodiment, which will not be repeated here.
[0103] For example, Figure 8As shown, the eighth input may be an input of clicking on the add control 810 displayed in the second page. When the eighth input is received, a second page template 830 is generated according to the third placeholder element 820 in response to the eighth input.
[0104] S750: In response to a ninth input for exiting the template editing mode, generating a desktop template based on the first page template and the second page template.
[0105] Similar to the first page template, after the second page template is generated, a completion control is displayed on the second page, and the ninth input may be an input of clicking on the completion control.
[0106] When the ninth input for exiting the template editing mode is received, the information of the first page template obtained above is added to the preset template file, and the information of the second page template obtained above is added to the preset template file, and the template file is used as the desktop template.
[0107] It should be noted that after exiting the template editing mode, any page in the template editing mode will be restored to the page before entering the template editing mode.
[0108] For example, Figure 8 As shown, the ninth input may be an input of clicking the completion control 840 displayed in the second page. When the ninth input is received, a desktop template is generated based on the first page template 850 and the second page template 830 in response to the ninth input.
[0109] In some embodiments, after executing S130, the embodiment of the present application can also share the desktop template.
[0110] For example, Figure 8 As shown, after the user clicks the completion control 840, the interface jumps to Fig. 9 The interface shown includes a text input box 910 for inputting a template name, a save control 920, and a share control 930.
[0111] The user can enter the name of the desktop template through the text input box 910 to name the desktop template. The user can instruct to save the above-generated desktop template locally by clicking the save control 920; the user can instruct to share the above-generated desktop template by clicking the share control 930, for example, to share the desktop template with a specified user or a specified sharing platform, so that other users can apply the desktop template after obtaining it.
[0112] The following is an introduction to the desktop template application method provided in the embodiment of the present application.
[0113] Fig.10 The method flow chart of the desktop template application method provided by an embodiment of the present application is shown. The method is applied to a second electronic device, and this embodiment is illustrated by applying the method to a second electronic device. Fig.10 As shown, the method includes the following S1010~S1020.
[0114] S1010: In response to the tenth input to the desktop template, generate a third page on the desktop according to the desktop template; the first position in the desktop template is a first placeholder element.
[0115] Specifically, the electronic device generates a third page on the desktop according to the desktop template in response to the tenth input to the desktop template.
[0116] Specifically, the desktop template is obtained by sharing from the first electronic device. Before executing S1010, the second electronic device may obtain the desktop template shared by the first electronic device.
[0117] Specifically, the first user of the first electronic device shares the desktop template with the second user of the second electronic device through the sharing platform of the first electronic device, thereby sharing the desktop template with the second electronic device; or, the first user of the first electronic device uploads the desktop template to a preset sharing platform through the first electronic device, and the second user of the second electronic device downloads the desktop template from the sharing platform to the local second electronic device.
[0118] In some examples, the tenth input may be an input indicating selection of a desktop template, for example, after the user finds a desktop template in a file browser, long presses the desktop template to open the desktop template.
[0119] After opening a desktop template, users can apply it.
[0120] The desktop template may include one or more page templates. When the desktop template includes one page template, the third page may be directly generated according to the page template.
[0121] In the case where the desktop template includes multiple page templates, after the user selects a target page template from the multiple page templates, the third page may be generated according to the target page template.
[0122] In some examples, the tenth input may also be an input for entering a desktop editing mode, such as pinching two fingers together on the desktop or long pressing a blank space on the desktop.
[0123] In the case of entering the desktop editing mode in response to the tenth input, as Fig.11As shown, the desktop to be edited is displayed in the upper area, and the thumbnails of all desktops are displayed in the lower area. The user can switch the desktop to be edited by sliding left and right on the screen. In the embodiment of the present application, a template control 1100 is also provided, and the template control is displayed behind the last thumbnail in the thumbnails of all desktops. The user clicks on the template control 1100, and a template window 1110 pops up. The template window 1110 displays at least one preview image 1121 corresponding to at least one template sub-file for the user to select.
[0124] The third page is a new page created according to the information recorded in the desktop template, and the first position in the third page is the first placeholder element. The information recorded in the desktop template includes information related to the first placeholder element, such as the placeholder element type, position, size, etc., and information on the type name, position, size, etc. of other desktop elements such as application icons and components other than the first placeholder element.
[0125] For example, combined with Fig.11 and Fig.12 As shown, the user selects Fig.11 Page 1121 in Fig.12 The third page 1200 generated based on the page 1 1121 is shown.
[0126] S1020: In response to an eleventh input to the first position in the third page, replace the first placeholder element displayed at the first position with a fourth desktop element, where the fourth desktop element matches the placeholder element type of the first placeholder element.
[0127] Specifically, in response to the eleventh input to the first position in the third page, the electronic device replaces the first placeholder element displayed at the first position with a fourth desktop element, and the fourth desktop element matches the placeholder element type of the first placeholder element.
[0128] The fourth desktop element matches the placeholder element type of the first placeholder element, including: the fourth desktop element is an application, and the placeholder element type of the first placeholder element is an icon type; or the fourth desktop element is a component, and the placeholder element type of the first placeholder element is a component type.
[0129] The eleventh input to the first position in the third page may be an input for selecting the first position, such as a click on the first position. In response to the eleventh input to the first position in the third page, a target desktop element matching the placeholder element type of the first placeholder element is determined as a fourth desktop element in at least one desktop element of the current page, and the first placeholder element displayed at the first position in the third page is replaced with the fourth desktop element.
[0130] In some embodiments, the third position in the third page is the fifth desktop element, and the page currently to be edited does not include the fifth desktop element. In this case, the fifth desktop element at the third position can be replaced with a fourth placeholder element, and the placeholder element type of the fourth placeholder element matches the fifth desktop element.
[0131] The placeholder element type of the fourth placeholder element matches the fifth desktop element, including: the placeholder element type of the fourth placeholder element is an icon type, and the fifth desktop element is an application; the placeholder element type of the fourth placeholder element is a component type, and the fifth desktop element is a component. In this case, for the third page created based on the desktop template, if a desktop element in the third page does not exist in the desktop, the desktop element in the third page can be automatically replaced with the placeholder element corresponding to the desktop element.
[0132] In some embodiments, the embodiments of the present application can also display a candidate desktop element that matches the placeholder element type of the first placeholder element in response to the twelfth input to the first position in the third page; and then replace the first placeholder element displayed at the first position with the target desktop element in response to the thirteenth input to the target desktop element among the candidate desktop elements.
[0133] The twelfth input to the first position in the third page may be an input such as clicking the first position to select the first position. After receiving the twelfth input, in response to the twelfth input, a candidate desktop element matching the placeholder element type of the first placeholder element is displayed. Fig.12 In the third page 1200 shown, the user clicks on the component placeholder 1201 whose placeholder element type is a component type, and automatically filters out desktop elements whose placeholder element type is a component type from all desktop elements on the desktop of the page currently to be edited as candidate desktop elements, obtains at least one candidate desktop element, and displays at least one candidate desktop element, for example, displays at least one candidate desktop element in a pop-up element selection window for the user to select.
[0134] When screening candidate desktop elements, desktop elements matching the size of the first placeholder element may be further screened out as candidate desktop elements based on the screened out placeholder element types matching the first placeholder element.
[0135] For example, Fig.12In the third page 1200 shown, the user clicks on the component placeholder 1201 whose placeholder element type is the component type. The size of the component placeholder 1201 is 2×2. After filtering out the desktop elements whose placeholder element type is the component type among all the desktop elements of the desktop of the page currently to be edited, the desktop elements whose size is 2×2 are further filtered out among the desktop elements whose placeholder element type is the component type as candidate desktop elements.
[0136] The thirteenth input to the target desktop element among the candidate desktop elements is, for example, an input to select the target desktop element by clicking on the target desktop element among the desktop elements. For example, when at least one candidate desktop element is displayed in a pop-up element selection window, if the user clicks on the target desktop element among the displayed candidate desktop elements, the first placeholder element displayed at the first position is replaced with the target desktop element.
[0137] In some embodiments, when the fourteenth input for storing the third page is received and there is a placeholder element in the third page, the placeholder element can be cleared to achieve the purpose of clearing redundant placeholder elements in the third page, making the third page cleaner and more beautiful, and finally storing the third page.
[0138] In some examples, such as Fig.13 As shown, the user selects the sixth desktop element 1301, the seventh desktop element 1302 and the eighth desktop element 1303 in sequence on the third page. The sixth desktop element 1301 is marked with ①, indicating that it is the first in the selection order; the seventh desktop element 1302 is marked with ②, indicating that it is the second in the selection order; the eighth desktop element 1303 is marked with ③, indicating that it is the third in the selection order. Fig.14 As shown, the user selects the fifth placeholder element 1401 , the sixth placeholder element 1402 , and the seventh placeholder element 1403 in sequence in the template page.
[0139] The fifth placeholder element 1401 is marked with ①, indicating that it is the first in the selection order; the sixth placeholder element 1402 is marked with ②, indicating that it is the second in the selection order; and the seventh placeholder element 1403 is marked with ③, indicating that it is the third in the selection order.
[0140] The selected multiple desktop elements can be determined to correspond one to one with the selected multiple placeholder elements based on a first order of selecting multiple desktop elements and a second order of selecting multiple placeholder elements. The desktop elements and placeholder elements that are consistent in the selection order can be made to correspond to each other, that is, the Mth desktop element in the selection order and the Mth placeholder element in the selection order, where M is a positive integer.
[0141] For example, combined with Fig.13 and Fig.14As shown, the sixth desktop element 1301 and the fifth placeholder element 1401 are first in the selection order, and the sixth desktop element 1301 and the fifth placeholder element 1401 are corresponding; the seventh desktop element 1302 and the sixth placeholder element 1402 are second in the selection order, and the eighth desktop element 1303 and the seventh placeholder element 1403 are corresponding; the eighth desktop element 1303 and the seventh placeholder element 1403 are third in the selection order, and the eighth desktop element 1303 and the seventh placeholder element 1403 are corresponding.
[0142] Combination Fig.13 and Fig.14 As shown, the sixth desktop element 1301 is adapted to the fifth placeholder element 1401 , the seventh desktop element 1302 is adapted to the sixth placeholder element 1402 , and the eighth desktop element 1303 is adapted to the seventh placeholder element 1403 .
[0143] Fig.15 1 is a functional block diagram of a desktop template creation device according to some embodiments of the present application. The desktop template creation device is applied to a first electronic device, such as Fig.15 As shown, the desktop template creation device 150 includes:
[0144] The display module 151 is configured to display the first page in a template editing mode in response to a first input of a user to the first page of the desktop.
[0145] The first replacement module 152 is configured to replace the first desktop element displayed at the first position with a first placeholder element in response to a second input of the user to the first position in the first page in the template editing mode.
[0146] The template generating module 153 is configured to generate a desktop template according to the first placeholder element in response to a third input of the user on the first page in the template editing mode.
[0147] Optionally, the placeholder element type of the first placeholder element includes at least one of the following: an icon type and a component type.
[0148] Optionally, the template generation module includes: a first generation sub-module, used to generate a first page template according to a first placeholder element in response to a third input from a user to the first page in the template editing mode; and a second generation sub-module, which, upon receiving a fourth input for exiting the template editing mode, generates a desktop template based on the first page template and restores the display of the first page.
[0149] Optionally, the desktop template creation device further comprises: a first display module, configured to generate a desktop template based on the first page template when the second generation submodule receives a fourth input for exiting the template editing mode, and display the first page and the first page template in the template editing mode before resuming the display of the first page;
[0150] A first replacement submodule, configured to replace a first placeholder element displayed at the first position with a second placeholder element or a second desktop element in response to a fifth input of a user at a first position in a first page in a template editing mode;
[0151] The updating submodule is used to update the first page template according to the second placeholder element or the second desktop element; wherein the first placeholder element and the second placeholder element are of different placeholder element types.
[0152] Optionally, the template generation module includes:
[0153] A third generating submodule, configured to generate a first page template according to the first placeholder element in response to a third input of the user to the first page in the template editing mode;
[0154] A display submodule, configured to display the second page in the template editing mode in response to a sixth input of the user to the first page in the template editing mode;
[0155] A second replacement submodule, configured to replace the third desktop element displayed at the second position with a third placeholder element in response to a seventh input of the user to the second position in the second page in the template editing mode;
[0156] A fourth generating submodule, configured to generate a second page template according to the third placeholder element in response to an eighth input of the user to the second page in the template editing mode;
[0157] The fifth generating submodule is used to generate a desktop template based on the first page template and the second page template in response to a ninth input for exiting the template editing mode.
[0158] Optionally, the desktop template creation device further includes: a sharing module, configured to share the desktop template after the template generation module generates the desktop template according to the first placeholder element in response to the user's third input on the first page in the template editing mode.
[0159] Fig.16 1 is a functional structure diagram of a desktop template application device according to some embodiments of the present application. The desktop template application device is applied to a second electronic device, such as Fig.16 As shown, the desktop template application device 160 includes:
[0160] The page generation module 161 is used to generate a third page on the desktop according to the desktop template in response to the tenth input to the desktop template; the first position in the desktop template is a first placeholder element.
[0161] The second replacement module 162 is used to replace the first placeholder element displayed at the first position with a fourth desktop element in response to an eleventh input to the first position in the third page, wherein the fourth desktop element matches the placeholder element type of the first placeholder element.
[0162] Optionally, the third position in the third page is the fifth desktop element; the desktop template application device also includes: a third replacement module, used to replace the fifth desktop element in the third position with a fourth placeholder element when the desktop does not include the fifth desktop element, and the placeholder element type of the fourth placeholder element matches the fifth desktop element.
[0163] Optionally, the desktop template application device also includes: a second display module, used to display a candidate desktop element that matches the placeholder element type of the first placeholder element in response to a twelfth input to the first position in the third page; and a fourth replacement module, used to replace the first placeholder element displayed at the first position with the target desktop element in response to a thirteenth input to the target desktop element among the candidate desktop elements.
[0164] Optionally, the desktop template application device further includes: a clearing module, configured to clear the placeholder elements and store the third page when a fourteenth input for storing the third page is received and there are placeholder elements in the third page.
[0165] Optionally, the desktop template application device further includes: an acquisition module for acquiring the desktop template shared by the first electronic device before the third page is generated on the desktop in response to the tenth input for the desktop template in the page generation module according to the desktop template.
[0166] In the embodiment of the present application, in response to the tenth input for the desktop template, a third page is generated on the desktop according to the desktop template, the first position in the third page is the first placeholder element, and in response to the eleventh input to the first position in the third page, the first placeholder element displayed in the first position is replaced with a fourth desktop element, and the fourth desktop element matches the placeholder element type of the first placeholder element. In this way, the desktop template user can use the desktop template created by the desktop template creator to perform desktop layout, thereby enriching the desktop layout method.
[0167] The desktop layout device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0168] The desktop layout device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0169] The desktop layout device provided in the embodiment of the present application can achieve Figure 1 , Figure 5-Figure 7 and Fig.10 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0170] Alternatively, if Fig.17 As shown, an embodiment of the present application also provides an electronic device 1700, including a processor 1701 and a memory 1702, wherein the memory 1702 stores programs or instructions that can be executed on the processor 1701, and when the program or instructions are executed by the processor 1701, the various steps of the above-mentioned desktop template creation method and desktop template application method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, they will not be described here.
[0171] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0172] Fig.18 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0173] The electronic device 1800 includes but is not limited to: a radio frequency unit 1801, a network module 1802, an audio output unit 1803, an input unit 1804, a sensor 1805, a display unit 1806, a user input unit 1807, an interface unit 1808, a memory 1809, and a processor 1810 and other components.
[0174] Those skilled in the art will appreciate that the electronic device 1800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.
[0175] Fig.18 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0176] The user input unit 1807 is used to receive a first input from a user to a first page of the desktop, and the processor 1810 is used to display the first page in a template editing mode in response to the first input from the user to the first page of the desktop; the user input unit 1807 is also used to receive a second input from a user to a first position in the first page in the template editing mode, and the processor 1810 is used to replace the first desktop element displayed at the first position with a first placeholder element in response to the second input from the user to the first position in the first page in the template editing mode; the user input unit 1807 is also used for a third input from a user to the first page in the template editing mode, and the processor 1810 is used to generate a desktop template according to the first placeholder element in response to the third input from the user to the first page in the template editing mode.
[0177] Optionally, the placeholder element type of the first placeholder element includes at least one of the following: an icon type and a component type.
[0178] Optionally, the processor 1810 is configured to generate a first page template according to the first placeholder element in response to a third input of the user on the first page in the template editing mode.
[0179] Optionally, when the user input unit 1807 receives the fourth input for exiting the template editing mode, the processor 1810 is also used to generate a desktop template based on the first page template, and before restoring the display of the first page, the display unit 1806 is used to display the first page and the first page template in the template editing mode; the user input unit 1807 is also used to receive the user's fifth input for the first position in the first page in the template editing mode, and the processor 1810 is also used to replace the first placeholder element displayed at the first position with a second placeholder element or a second desktop element in response to the user's fifth input for the first position in the first page in the template editing mode; update the first page template according to the second placeholder element or the second desktop element; wherein the placeholder element types of the first placeholder element and the second placeholder element are different.
[0180] Optionally, the processor 1810 is also used to generate a first page template according to the first placeholder element in response to the user's third input to the first page in the template editing mode; the user input unit 1807 is also used to receive the user's sixth input to the first page in the template editing mode, and the display unit 1806 is also used to display the second page in the template editing mode in response to the user's sixth input to the first page in the template editing mode; the user input unit 1807 is also used to receive the user's seventh input to the second position in the second page in the template editing mode, and the processor 1810 is also used to replace the third desktop element displayed at the second position with the third placeholder element in response to the user's seventh input to the second position in the second page in the template editing mode; the user input unit 1807 is also used to receive the user's eighth input to the second page in the template editing mode, and the processor 1810 is also used to generate a second page template according to the third placeholder element in response to the user's eighth input to the second page in the template editing mode; the user input unit 1807 is also used to receive the ninth input to exit the template editing mode, and the processor 1810 is also used to generate a desktop template based on the first page template and the second page template in response to the ninth input for exiting the template editing mode.
[0181] Optionally, the processor 1810 is further configured to share the desktop template after generating the desktop template according to the first placeholder element in response to a third input of the user on the first page in the template editing mode.
[0182] Optionally, the user input unit 1807 is also used to receive the user's tenth input to the desktop template, and the processor 1810 is also used to generate a third page on the desktop according to the desktop template in response to the user's tenth input to the desktop template; the first position in the third page is a first placeholder element; the user input unit 1807 is also used to receive the eleventh input to the first position in the third page, and in response to the eleventh input to the first position in the third page, replace the first placeholder element displayed at the first position with a fourth desktop element, and the fourth desktop element matches the placeholder element type of the first placeholder element.
[0183] Optionally, the third position in the third page is the fifth desktop element; the processor 1810 is also used to replace the fifth desktop element at the third position with a fourth placeholder element when the desktop does not include the fifth desktop element, and the placeholder element type of the fourth placeholder element matches the fifth desktop element.
[0184] Optionally, the user input unit 1807 is also used to receive a twelfth input to the first position in the third page, and the display unit 1806 is also used to display a candidate desktop element that matches the placeholder element type of the first placeholder element in response to the twelfth input to the first position in the third page; the user input unit 1807 is also used to receive a thirteenth input to a target desktop element among the candidate desktop elements, and the processor 1810 is also used to replace the first placeholder element displayed at the first position with the target desktop element in response to the thirteenth input to the target desktop element among the candidate desktop elements.
[0185] Optionally, the processor 1810 is configured to clear the placeholder element and store the third page when the user input unit 1807 receives a fourteenth input for storing the third page and there is a placeholder element in the third page.
[0186] Optionally, the processor 1810 is further configured to, in response to a tenth input to the desktop template, obtain a desktop template shared by the first electronic device before generating a third page on the desktop according to the desktop template.
[0187] It should be understood that in the embodiment of the present application, the input unit 1804 may include a graphics processor (Graphics Processing Unit, GPU) 18041 and a microphone 18042, and the graphics processor 18041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1806 may include a display panel 18061, and the display panel 18061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1807 includes a touch panel 18071 and at least one of other input devices 18072. The touch panel 18071 is also called a touch screen. The touch panel 18071 may include two parts: a touch detection device and a touch controller. Other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0188] The memory 1809 can be used to store software programs and various data. The memory 1809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1809 may include a volatile memory or a non-volatile memory, or the memory 1809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0189] The processor 1810 may include one or more processing units; optionally, the processor 1810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1810.
[0190] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned desktop layout method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0191] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0192] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned desktop layout method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0193] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0194] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned desktop layout method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0195] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0196] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0197] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A desktop template creation method, applied to a first electronic device, characterized in that: include: In response to a first input of a user to a first page of the desktop, displaying the first page in a template editing mode; In response to a second input of a user to a first position in the first page in the template editing mode, replacing a first desktop element displayed at the first position with a first placeholder element; In response to a third input of the user on the first page in the template editing mode, generating a first page template according to the first placeholder element; In response to a sixth input of the user on the first page in the template editing mode, displaying the second page in the template editing mode; In response to a seventh input of the user to a second position in the second page in the template editing mode, replacing a third desktop element displayed at the second position with a third placeholder element; In response to an eighth input of the user on the second page in the template editing mode, generating a second page template according to the third placeholder element; In response to a ninth input for exiting the template editing mode, a desktop template is generated based on the first page template and the second page template.
2. The method according to claim 1, characterized in that The placeholder element type of the first placeholder element includes at least one of the following: an icon type and a component type.
3. The method according to claim 1, characterized in that The method further comprises: In response to a third input of the user on the first page in the template editing mode, generating a first page template according to the first placeholder element; In case a fourth input for exiting the template editing mode is received, the desktop template is generated based on the first page template, and display of the first page is restored.
4. The method according to claim 3, characterized in that The method further comprises: generating the desktop template based on the first page template and restoring the display of the first page when a fourth input for exiting the template editing mode is received. Display the first page and the first page template in template editing mode; In response to a fifth input of the user to a first position in the first page in the template editing mode, replacing a first placeholder element displayed at the first position with a second placeholder element or a second desktop element; updating the first page template according to the second placeholder element or the second desktop element; The first placeholder element and the second placeholder element are of different placeholder element types.
5. The method according to claim 1, characterized in that The method further comprises: Share said desktop template.
6. A desktop template application method, applied to a second electronic device, characterized in that: include: In response to a tenth input to a desktop template, a third page is generated on the desktop according to the desktop template; the first position in the third page is a first placeholder element; In response to an eleventh input to the first position in the third page, replacing the first placeholder element displayed in the first position with a fourth desktop element, wherein the fourth desktop element matches the placeholder element type of the first placeholder element; The desktop template is generated by the following steps: In response to a first input of a user to a first page of the desktop, displaying the first page in a template editing mode; In response to a second input of a user to a first position in the first page in the template editing mode, replacing a first desktop element displayed at the first position with a first placeholder element; In response to a third input of the user on the first page in the template editing mode, generating a first page template according to the first placeholder element; In response to a sixth input of the user on the first page in the template editing mode, displaying the second page in the template editing mode; In response to a seventh input of the user to a second position in the second page in the template editing mode, replacing a third desktop element displayed at the second position with a third placeholder element; In response to an eighth input of the user on the second page in the template editing mode, generating a second page template according to the third placeholder element; In response to a ninth input for exiting the template editing mode, the desktop template is generated based on the first page template and the second page template.
7. The method according to claim 6, characterized in that The third position in the third page is the fifth desktop element; The method further comprises: In a case where the desktop does not include the fifth desktop element, the fifth desktop element at the third position is replaced with a fourth placeholder element, and the placeholder element type of the fourth placeholder element matches the fifth desktop element.
8. The method according to claim 6, characterized in that The method further comprises: In response to a twelfth input to the first position in the third page, displaying candidate desktop elements matching the placeholder element type of the first placeholder element; In response to a thirteenth input to a target desktop element among the candidate desktop elements, the first placeholder element displayed at the first position is replaced with the target desktop element.
9. The method according to claim 6, characterized in that The method further comprises: When a fourteenth input for storing the third page is received and a placeholder element exists in the third page, the placeholder element is cleared and the third page is stored.
10. The method according to claim 6, characterized in that The method of responding to the tenth input to the desktop template and generating a third page on the desktop according to the desktop template further includes: The desktop template shared by the first electronic device is obtained.
11. A desktop template creation device, characterized in that: Applicable to a first electronic device, comprising: A display module, configured to display the first page in a template editing mode in response to a first input of a user to the first page of the desktop; A first replacement module, configured to replace a first desktop element displayed at a first position with a first placeholder element in response to a second input of a user to a first position in the first page in a template editing mode; A template generation module is used to generate a first page template according to the first placeholder element in response to a third input from a user to the first page in a template editing mode; to display a second page according to the template editing mode in response to a sixth input from a user to the first page in the template editing mode; to replace a third desktop element displayed at the second position with a third placeholder element in response to a seventh input from a user to a second position in the second page in the template editing mode; to generate a second page template according to the third placeholder element in response to an eighth input from a user to the second page in the template editing mode; and to generate a desktop template based on the first page template and the second page template in response to a ninth input for exiting the template editing mode.
12. A desktop template application device, applied to a second electronic device, characterized in that: include: A page generation module, configured to generate a third page on the desktop in response to a tenth input to the desktop template according to the desktop template; the first position in the third page is a first placeholder element; a second replacement module, configured to, in response to an eleventh input to the first position in the third page, replace the first placeholder element displayed at the first position with a fourth desktop element, wherein the fourth desktop element matches the placeholder element type of the first placeholder element; The desktop template is generated by the following steps: In response to a first input of a user to a first page of the desktop, displaying the first page in a template editing mode; In response to a second input of a user to a first position in the first page in the template editing mode, replacing a first desktop element displayed at the first position with a first placeholder element; In response to a third input of the user on the first page in the template editing mode, generating a first page template according to the first placeholder element; In response to a sixth input of the user on the first page in the template editing mode, displaying the second page in the template editing mode; In response to a seventh input of the user to a second position in the second page in the template editing mode, replacing a third desktop element displayed at the second position with a third placeholder element; In response to an eighth input of the user on the second page in the template editing mode, generating a second page template according to the third placeholder element; In response to a ninth input for exiting the template editing mode, the desktop template is generated based on the first page template and the second page template.
13. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Page editing method and device and computer readable storage medium
CN109933322A
Cross-device desktop management method, first electronic equipment and second electronic equipment
CN113867657A