[go: up one dir, main page]

CN114817783B - Desktop template creation and application method, device and electronic device - Google Patents

Desktop template creation and application method, device and electronic device Download PDF

Info

Publication number
CN114817783B
CN114817783B CN202210357403.6A CN202210357403A CN114817783B CN 114817783 B CN114817783 B CN 114817783B CN 202210357403 A CN202210357403 A CN 202210357403A CN 114817783 B CN114817783 B CN 114817783B
Authority
CN
China
Prior art keywords
page
template
desktop
input
editing mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210357403.6A
Other languages
Chinese (zh)
Other versions
CN114817783A (en
Inventor
梁康武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210357403.6A priority Critical patent/CN114817783B/en
Publication of CN114817783A publication Critical patent/CN114817783A/en
Application granted granted Critical
Publication of CN114817783B publication Critical patent/CN114817783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种桌面模板创建及应用方法、装置、电子设备及可读存储介质,属于电子设备技术领域。该方法包括:响应于用户对桌面的第一页面的第一输入,按照模板编辑模式显示第一页面;响应于用户对模板编辑模式下的第一页面中第一位置的第二输入,将第一位置显示的第一桌面元素替换为第一占位元素;响应于用户对模板编辑模式下的第一页面的第三输入,根据第一占位元素生成桌面模板。

The present application discloses a desktop template creation and application method, device, electronic device and readable storage medium, belonging to the technical field of electronic devices. The method comprises: in response to a first input of a user to a first page of a 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 in 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 according to the first placeholder element.

Description

Desktop template creation and application method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a desktop template creation method, a desktop template application method, a device, electronic equipment and a readable storage medium.
Background
At present, a user can perform custom layout on desktop icons of the intelligent terminal according to own preference. The custom layout brings higher freedom to the user on the desktop layout, but also brings higher use threshold to the user, and the user is required to have higher aesthetic capability and practical capability.
In practical situations, for some users who have weak hands-on ability, weak aesthetic ability or are lazy to go to a custom layout, a desktop layout with attractive appearance and high practicability cannot be designed to a great extent, and only automatically generated desktops can be used. Thus, the desktop layout mode is single at present.
Disclosure of Invention
The embodiment of the application aims to provide a desktop template creation method, a desktop template application method, a device, electronic equipment and a readable storage medium, which can solve the problem of single desktop layout mode in the prior art.
In a first aspect, an embodiment of the application provides a desktop template creation method, which is applied to first electronic equipment, and comprises the steps of responding to first input of a user to a first page of a desktop, displaying the first page according to a template editing mode, responding to 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, responding to third input of the user to the first page in the template editing mode, and generating a desktop template according to the first placeholder element.
In a second aspect, an embodiment of the application provides a desktop template creation device, which is applied to first electronic equipment, and comprises a display module, a first replacement module and a template generation module, wherein the display module is used for responding to first input of a user on a first page of a desktop and displaying the first page according to a template editing mode, the first replacement module is used for responding to second input of the user on a first position in the first page in the template editing mode and replacing a first desktop element displayed at the first position with a first placeholder element, and the template generation module is used for responding to third input of the user on the first page in the template editing mode and generating a desktop template according to the first placeholder element.
In the embodiment of the application, the first page is displayed according to the template editing mode in response to the first input of the user to the first page of the desktop, the first desktop element displayed at the first position is replaced by 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, and the desktop template is generated according to the first placeholder element in response to the third input of the user to the first page in the template editing mode. Therefore, a desktop template creator can quickly create a desktop template based on pages of a desktop, and a desktop template user can utilize the desktop template to carry out desktop layout, so that the desktop layout mode is enriched.
In a third aspect, an embodiment of the present application provides a desktop template application method, applied to a second electronic device, where the method includes generating a third page on a desktop according to a desktop template in response to a tenth input for the desktop template; and responding to eleventh input to the first position in the third page, replacing the first position displayed in the first position with a fourth desktop element, wherein the fourth desktop element is matched with the type of the position element of the first position element.
In a fourth aspect, an embodiment of the application provides a desktop template application device, which comprises a page generation module, a second replacement module and a third replacement module, wherein the page generation module is used for responding to tenth input for a desktop template and generating a third page on a desktop according to the desktop template, a first position in the third template is a first placeholder element, the second replacement module is used for responding to eleventh input for the first position in the third page and replacing the first placeholder element displayed at the first position with a fourth desktop element, and the fourth desktop element is matched with the placeholder element type of the first placeholder element.
In the embodiment of the application, in response to tenth input for the desktop template, a third page is generated on the desktop according to the desktop template, a first position in the third page is a first placeholder element, in response to eleventh input for the first position in the third page, the first placeholder element displayed at the first position is replaced with a fourth desktop element, and the fourth desktop element is matched with the placeholder element type of the first placeholder element. Thus, the desktop template user can utilize the desktop template created by the desktop template creator to perform desktop layout, thereby enriching the way of desktop layout.
In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the methods according to the first and third aspects.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the methods of the first and third aspects.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the methods according to the first aspect and the third aspect.
In an eighth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the methods according to the first and third aspects.
Drawings
FIG. 1 is a method flow diagram of a desktop template creation method in one embodiment;
FIG. 2 (a) is a schematic diagram of a first input in one embodiment;
FIG. 2 (b) is a schematic diagram of a first input in another embodiment;
FIG. 2 (c) is a schematic diagram of an interface in a template editing mode in one embodiment;
FIG. 3 (a) is a schematic diagram of a bubble pop-up box in a template edit mode in one embodiment;
FIG. 3 (b) is a schematic diagram of a first desktop element being replaced with a first placeholder element in one embodiment;
FIG. 3 (c) is a schematic diagram of a first desktop element being replaced with a first placeholder element in one embodiment;
FIG. 4 is a diagram of the results of setting desktop elements in one embodiment;
FIG. 5 is a method flow diagram of a desktop template creation method in one embodiment;
FIG. 6 is a method flow diagram of a desktop template creation method in one embodiment;
FIG. 7 is a method flow diagram of a desktop template creation method in one embodiment;
FIG. 8 is a schematic diagram of a second page template in one embodiment;
FIG. 9 is a schematic diagram of a page displayed after editing of a desktop template is completed in one embodiment;
FIG. 10 is a method flow diagram of a desktop template application method in one embodiment;
FIG. 11 is a diagram of selecting a page template in a desktop template application method in one embodiment;
FIG. 12 is a diagram of a third page in a desktop template application method, in one embodiment;
FIG. 13 is a schematic diagram of selecting multiple placeholders in one embodiment;
FIG. 14 is a diagram of selecting multiple desktop elements, in one embodiment;
FIG. 15 is a functional block diagram of a desktop template creation apparatus in one embodiment;
FIG. 16 is a functional block diagram of a desktop template application apparatus in one embodiment;
FIG. 17 is a functional block diagram of an electronic device in one embodiment;
Fig. 18 is a schematic diagram of a hardware structure of an electronic device in one embodiment.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
When the user designs the desktop layout in a self-defined way, the user can choose to place the icons and desktop components of the Application program (Application) on the desktop, or set up a folder on the desktop, and place the icons and desktop components of the Application program in the folder. However, the desktop components have different sizes and various forms such as 1×1,2×1,2×2,3×2, etc., and the icon sizes may be 1×1,2×1,2×2, etc., so that the user needs to have high aesthetic and practical capabilities before the complex forms are available to create a satisfactory desktop. Most users can only select the desktop templates which are already set to set the desktop layout, but in the existing desktop templates, the settings of desktop components and the like are fixed, so that the flexibility of the desktop layout is poor. Therefore, the current desktop layout mode is single, and has poor flexibility and convenience.
Based on the above problems, the present application provides a desktop template creation method, a desktop template application method, a device, an electronic apparatus, and a readable storage medium.
The desktop template creation method provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof by combining the attached drawings.
FIG. 1 is a method flow diagram of a desktop template creation method in accordance with one embodiment of the application. The method is applied to the first electronic device, and the embodiment is exemplified by the method applied to the first electronic device. As shown in FIG. 1, the method includes the following steps S110 to S130.
And S110, responding to the first input of the user to the first page of the desktop, and displaying the first page according to a template editing mode.
Specifically, the electronic device receives a first input from a user to a first page of the desktop, and displays the first page in a template editing mode in response to the first input.
Wherein the desktop of the electronic device may be formed of at least one page, each page being for displaying an icon and/or desktop component of an application, the first page being one of the pages. The first page may be a page currently displayed by the electronic device.
Wherein the first input is for indicating entry into a template editing mode. The form of the first input may be varied, and several possible forms are listed below. In some examples, the first input is an input that multi-finger touches the display screen and slides in a preset direction at any position of the display screen in the case of displaying the first page. Such as two, three, or four fingers, etc. The above-mentioned preset directions are, for example, left, right, up, down, left up, left down, right up, right down, etc.
As shown in fig. 2 (a), the electronic device displays a first page, where three touch points 201 between a finger and the display screen in the first input are set up in the preset direction a, and the first input is an input that three fingers touch the display screen at any position of the display screen and slide upwards.
In other examples, the first input is an input to shake the terminal after entering the preset mode. The above-mentioned shaking is up and down shaking, left and right shaking, clockwise shaking, counterclockwise shaking, etc. The preset mode is a mode in which icons in the desktop can be edited in the related art, for example, a desktop editing mode which is entered after a user performs an operation of folding two fingers on the desktop or pressing a certain blank place of the desktop for a long time, and in the preset mode, the user can perform operations such as moving or deleting the icons in the desktop or adding new icons in the desktop.
Illustratively, as shown in fig. 2 (b), in the case where 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 to shake the electronic device in a counter-clockwise direction (as indicated by the arrow in fig. 2 (b)).
In some examples, displaying the first page in the template editing mode includes displaying the first page in a preset area of a display interface.
Illustratively, as shown in fig. 2 (c), the first page is reduced and then displayed in the first area 230 of the display interface.
In other examples, displaying the first page in the template editing mode may further include displaying an editing control for editing text in the second region of the display interface to facilitate editing of the page template name by the user through the editing control. The page template name is used to name a page template that is derived from the first page in the following.
For example, with continued reference to fig. 2 (c), the electronic device may display a text box in the second region 240 of the display interface to facilitate editing of the desktop template name by the user through the text box.
It will be appreciated that the above is merely illustrative of the manner in which the first page is displayed in the template editing mode. The mode of displaying the first page according to the template editing mode in the embodiment of the present application includes, but is not limited to, the above-listed modes, as long as the user can be reminded of currently entering the template editing mode.
And S120, replacing the first desktop element displayed at the first position with the first placeholder element in response to the second input of the user on the first position in the first page in the template editing mode.
Specifically, the electronic device replaces a first desktop element displayed at a first location with a first placeholder element in response to a second input by a user of the first location in a first page in a template editing mode.
The first page in the template editing mode is provided with a plurality of positions, and each position can be provided with an application icon, a component or a placeholder element. A placeholder element, such as a placeholder, may occupy a fixed position and may have symbols added thereto for the corresponding content. The second input to the first position in the first page in the template editing mode may include an input to select the first position in the first page and to select one of a plurality of placeholders included in a preset window displayed after the first position is selected. Wherein the placeholder elements of the plurality of placeholder elements are of different types.
The first placeholder element may be a selected one of a plurality of placeholder elements. The placeholder element type of the first placeholder element may include at least one of an icon type, a component type. The icon type includes at least one of an application icon type and a folder icon type, for example. In the case that the placeholder element type of the first placeholder element is an icon type, only application icons can be placed on the position of the first placeholder element. In the case that the placeholder element type of the first placeholder element is a component type, only components can be placed in 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, the application icon may be placed or the component may be placed at the position of the first placeholder element.
Illustratively, as shown in FIG. 3 (a), after entering the template editing mode, a first desktop element 301 is displayed at a first location 300. After clicking the first position 300, a bubble pop-up box pops up on the interface.
With continued reference to fig. 3 (a), 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 selection by the user.
Referring to fig. 3 (a) and fig. 3 (b), the user clicks the first control 3021 corresponding to the application placeholder in fig. 3 (a), and as shown in fig. 3 (b), the first desktop element 301 displayed in the first location 300 is replaced with the application placeholder a, which indicates that an application icon may be placed in the location.
Referring to fig. 3 (a) and 3 (C), the user clicks the second control 3022 corresponding to the component placeholder in fig. 3 (a), and as shown in fig. 3 (C), the first desktop element 301 displayed in the first position 300 is replaced with the component placeholder C, which indicates that a component may be placed in the position.
For desktop elements at other positions in fig. 3 (a), the user may set the desktop elements at other positions in the manner of setting the first desktop element 301 displayed at the first position 300, and fig. 4 shows a schematic diagram of a result of setting the desktop elements at each position in fig. 3 (a).
It may be understood that the bubble pop-up box may further include a third control corresponding to the universal placeholder, and the user clicks the third control, so that the first desktop element displayed in the first position is replaced by the universal placeholder, and an application icon or a component may be placed on the universal placeholder.
It will be appreciated that the form of the second input to the first location in the first page in the template editing mode includes, but is not limited to, the forms listed above, so long as the first desktop element can be replaced with the first placeholder element. For example, the input of clicking directly on the first position may be performed, wherein each time the first position is clicked, the desktop element or the placeholder element on the first position is switched once. For example, the N-th click on the first position, the first desktop element displayed in the first position is switched to an application placeholder, the N+1th click on the first position is switched to a component placeholder, the N+2th click on the first position is switched to a universal placeholder, the N+3rd click on the first position is switched to the first desktop element, and the component placeholder is switched to the first desktop element in a circulating manner, wherein N is a positive integer.
In some embodiments, in the case of displaying the first page according to the template editing mode, the user may also modify element information such as a position, a size, and the like of each desktop element in the first page, so as to further beautify the desktop layout. For example, a user may press a desktop element to drag, drag the desktop element from a first position to a second position, thereby changing the position of the desktop element. For another example, the user double clicks a desktop element, and a size setting window pops up on the interface, where at least one size control corresponding to at least one desktop element size is displayed. And the user selects a size control of the size of the desktop element so as to adjust the size of the desktop element to the size of the desktop element corresponding to the size control.
In some examples, the first page may further include a folder, and the first location may be a location in the page after opening the folder where one application icon, component, or placeholder element is placed.
S130, responding to third input of a user to the first page in the template editing mode, and generating a desktop template according to the first placeholder element.
Specifically, the electronic device generates a desktop template according to the first placeholder element in response to a third input of the first page in the template editing mode by the user.
In some embodiments, as shown in fig. 5, the execution of S130 may include S510 to S520 as follows.
S510, responding to third input of a user to the first page in the template editing mode, and generating a first page template according to the first placeholder element.
Wherein the third input is an input indicating that the first page in the add template edit mode is the first page template.
For example, as shown in fig. 4, an add control 410 is further displayed in the first page in the template editing mode, 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.
When the first page template is generated according to the first placeholder element, information related to the first placeholder element, such as the type, the position, the size and the like of the placeholder element 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 respectively provided with a first occupying element, and the type, the position, the size and other information of the occupying elements of the first occupying elements are the same.
In some embodiments, the first page further includes other desktop elements such as application icons, component icons, and the like besides the first placeholder element, for example, fig. 4 further includes components such as calendars, weather, clocks, and the like, where in this case, information such as types, names, positions, and sizes of the other desktop elements may be recorded, so that the other desktop elements in the first page in the template editing mode may be re-engraved to the first page template. The desktop element type may be an application type or a component type.
In some embodiments, association information of a desktop element in the first page except for the first placeholder element may also be recorded, where the association information includes, for example, identification information of the desktop element, and where the desktop element is an application, for example, the identification information is a package name of the application. So that when the first page template is adopted for layout later, the related information of the desktop element in the first page template can be referred to be related to the desktop element and the corresponding application or component.
And S520, generating a desktop template based on the first page template and restoring display of the first page under the condition that a fourth input for exiting the template editing mode is received.
Wherein the fourth input is an input indicating that editing of the desktop template is completed.
After the first page template is generated, as shown in fig. 4, a completion control 420 is displayed in the first page, and the fourth input may be an input to click on the completion control 420.
For example, in the case of receiving the fourth input, adding the obtained information of the first page template to a preset template file, using the template file as a desktop template, exiting the template editing mode, and restoring the first page in the current template editing mode to the first page before entering the template editing mode, wherein the first page is not changed due to editing in the template editing mode.
In some embodiments, after the first page template is generated, the user may need to modify the first page template before generating the desktop template, so as to meet the above requirements of the user, and before executing S520, the embodiments of the present application may further execute the following S610 to S630.
S610, displaying the first page and the first page template in the template editing mode.
As shown in fig. 4, a first page in the template editing mode is displayed in a first area of the interface, and a first page template is displayed in a second area of the interface.
S620, replacing the first placeholder element displayed at the first position with the second placeholder element or the second desktop element in response to a fifth input of the user to the first position in the first page in the template editing mode.
The fifth input is, for example, an input modifying the first placeholder element at the first location.
The modification of the first placeholder element in the first location is, for example, modifying a placeholder element type of the placeholder element in the first location, such as replacing the first placeholder element with a second placeholder element, wherein the first placeholder element is of a different type than the second placeholder element, for example, modifying the application placeholder in the first location to a component placeholder.
The modification to the first placeholder element in the first location may be, for example, a modification of a type of desktop element in the first location, such as a replacement of the first placeholder element with a second desktop element.
And S630, updating the first page template according to the second placeholder element or the second desktop element.
And under the condition that the first placeholder element displayed in the first position is replaced by the second placeholder element, updating the first placeholder element in the first page template into the second placeholder element. Under the condition that the first placeholder element displayed in 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 that the purpose of updating the first page template according to the modification of the first page module by a user is achieved.
In some embodiments, after the user edits the page template corresponding to one page for the first time, the user may wish to continue editing other pages to obtain page templates corresponding to other pages. To meet the above requirements, in some embodiments, as shown in fig. 7, the execution of S130 may include S710 to S750 as follows.
S710, responding to third input of a user to the first page in the template editing mode, and generating a first page template according to the first placeholder element.
The implementation process of this step is the same as S510, and specific reference may be made to the corresponding description in S510 in the above embodiment, which is not repeated here.
And S720, responding to a sixth input of the user to the first page in the template editing mode, and displaying the second page in the template editing mode.
The sixth input may be an input for instructing to switch the first page, for example, an input to slide left or right at the middle position of the first page to instruct to switch the current first page to the second page located before or after it.
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, and specifically, reference may be made to the description related to displaying the first page in the template editing mode in the above embodiment, which is not repeated here.
And S730, replacing the third desktop element displayed at the second position with the third placeholder element in response to a seventh input of the user on the second position in the second page in the template editing mode.
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, and specific reference may be made to the corresponding description about the first position in the first page in the above embodiment, which is not repeated here.
The seventh input of the second position in the second page in the template editing mode is similar to the second input of the first position in the first page in the template editing mode, and specific reference may be made to the corresponding description of the second input of the first position in the first page in the template editing mode in the above embodiment, which is not repeated here.
The replacement of the third desktop element displayed at the second position with the third placeholder element is similar to the replacement of the first desktop element displayed at the first position with the first placeholder element, and in particular, reference may be made to the corresponding description of the replacement of the first desktop element displayed at the first position with the first placeholder element in the above embodiment, which is not repeated herein.
And S740, responding to eighth input of the user to the second page in the template editing mode, and generating a second page template according to the third placeholder element.
Wherein the eighth input is an input indicating that the second page in the addition template editing mode is the second page template. And an adding control is also displayed in the second page in the template editing mode, and the eighth input can be input such as clicking the adding control to indicate that the second page in the template editing mode is the second page template.
The manner of generating the second page template according to the third placeholder element is similar to that of generating the first page template according to the first placeholder element, and in particular, reference may be made to the corresponding description of the manner of generating the first page template according to the first placeholder element in the above embodiment, which is not repeated here.
For example, as shown in fig. 8, the eighth input may be an input to click on the add control 810 displayed in the second page, and in case the eighth input is received, the second page template 830 is generated according to the third placeholder element 820.
S750, responding to a ninth input for exiting the template editing mode, and generating a desktop template based on the first page template and the second page template.
Similar to the first page template, after the second page template is generated, a completion control is displayed in the second page, and the ninth input may be an input of clicking on the completion control.
And under the condition that a ninth input for exiting the template editing mode is received, adding the obtained information of the first page template to a preset template file, adding the obtained information of the second page template to the preset template file, and taking the template file as a desktop template.
After exiting the template editing mode, any page in the template editing mode is restored to the page before entering the template editing mode.
Illustratively, as shown in FIG. 8, the ninth input may be an input to click on the completion control 840 displayed in the second page, and in the event 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.
In some embodiments, after executing S130, embodiments of the present application may also share desktop templates.
Illustratively, as shown in FIG. 8, after the user clicks on the completion control 840, the interface jumps to the interface shown in FIG. 9, wherein a text entry box 910 for entering a template name, a save control 920, and a share control 930 are displayed.
The user may enter the name of the desktop template via text entry box 910 to name the desktop template. The user may instruct to save the generated desktop template to the local by clicking the save control 920, and the user may instruct to share the generated desktop template by clicking the share control 930, for example, share the desktop template to a designated user or a designated sharing platform, so that after other users obtain the desktop template, the user may apply the desktop template.
The desktop template application method provided by the embodiment of the application is described below.
Fig. 10 shows a flowchart of a method for applying a desktop template according to an embodiment of the present application. The method is applied to the second electronic device, and the embodiment is exemplified by the method applied to the second electronic device. As shown in FIG. 10, the method includes the following S1010-S1020.
S1010, responding to tenth input for the desktop template, generating a third page on the desktop according to the desktop template, wherein the first position in the desktop template is the first placeholder element.
Specifically, the electronic device generates a third page at the desktop in accordance with the desktop template in response to a tenth input for the desktop template.
Specifically, the desktop template is shared by the first electronic device. Prior to performing S1010, the second electronic device may obtain a sharing of the desktop template by the first electronic device.
Specifically, a first user of the first electronic device shares the desktop template with a second user of the second electronic device through a sharing desktop template of the first electronic device, so that the desktop template is shared 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 of the second electronic device.
In some examples, the tenth input may be an input indicating a selection of a desktop template, such as a user pressing on a desktop template long after the user finds the desktop template in a file browser to open the desktop template.
The user may apply the desktop template after opening the desktop template.
The desktop templates may include one or more page templates. In the case where the desktop template includes a page template, the third page may be generated directly from the page template.
In the case where the desktop template includes a plurality of page templates, the third page may be generated according to a target page template after the user selects the target page template from the plurality of page templates.
In some examples, the tenth input may also be an input to enter a desktop editing mode, such as performing a two-finger zoom-in on the desktop or pressing a long press on the desktop some blank.
In the case of entering the desktop editing mode in response to the tenth input, as shown in fig. 11, desktops to be edited are displayed in the upper area, and thumbnails of all desktops are displayed in the lower area. The user performs a left-right sliding operation on the screen, and can switch the desktop to be edited. In the embodiment of the present application, a template control 1100 is further provided, where the template control is displayed behind the last thumbnail of the thumbnails of all the desktops. The user clicks the template control 1100 to pop up the template window 1110, and at least one preview 1121 corresponding to at least one template sub-file is displayed in the template window 1110 for the user to select.
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 is, for example, information related to the first placeholder element, such as the type, the position, the size and the like of the placeholder element of the first placeholder element, and information such as the type name, the position, the size and the like of other desktop elements, such as application icons, components and the like, except for the first placeholder element.
Illustratively, as shown in connection with fig. 11 and 12, the user selects page one 1121 of fig. 11, and fig. 12 illustrates a third page 1200 generated from page one 1121.
And S1020, responding to eleventh input to the first position in the third page, and replacing the first placeholder element displayed in the first position with a fourth desktop element, wherein the fourth desktop element is matched with the type of the placeholder element of the first placeholder element.
Specifically, the electronic device replaces the first placeholder element displayed in the first position with a fourth desktop element in response to an eleventh input to the first position in the third page, the fourth desktop element matching a placeholder element type of the first placeholder element.
The fourth desktop element is matched with the first placeholder element in type, and comprises the fourth desktop element as an application, the first placeholder element in type as an icon type or the fourth desktop element as a component, and the first placeholder element in type as a component type.
The eleventh input to the first position in the third page may be an input to select the first position by clicking or the like on the first position. And responding to eleventh input of the first position in the third page, determining a target desktop element matched with the type of the placeholder element of the first placeholder element in at least one desktop element of the current page as a fourth desktop element, and replacing the first placeholder element displayed in the first position in the third page with the fourth desktop element.
In some embodiments, the third position in the third page is a fifth desktop element, and the page to be edited currently does not include the fifth desktop element, in which case the fifth desktop element in the third position may be replaced with a fourth placeholder element, where the type of the placeholder element of the fourth placeholder element matches the fifth desktop element.
The occupation element type of the fourth occupation element is matched with the fifth desktop element, and the method comprises the steps that the occupation element type of the fourth occupation element is an icon type, the fifth desktop element is an application, the occupation element type of the fourth occupation 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, in the case where there is no desktop element in the third page in the desktop, the desktop element in the third page may be automatically replaced with the placeholder element corresponding to the desktop element.
In some embodiments, the method may further include displaying candidate desktop elements that match the placeholder element type of the first placeholder element in response to a twelfth input to the first location in the third page, and then replacing the first placeholder element displayed in the first location with the target desktop element in response to a thirteenth input to the target desktop element in the candidate desktop elements.
The twelfth input to the first position in the third page may be an input to select the first position by clicking or the like on the first position. Upon receiving the twelfth input, in response to the twelfth input, a candidate desktop element that matches the placeholder element type of the first placeholder element is displayed. For example, in the third page 1200 shown in fig. 12, the user clicks the component placeholder 1201 with the placeholder element type being the component type, and automatically screens the desktop elements with the placeholder element type being the component type from all desktop elements of the desktop of the page to be edited currently as candidate desktop elements, so as to obtain at least one candidate desktop element, and displays the at least one candidate desktop element, for example, the at least one candidate desktop element is displayed in a pop-up element selection window for selection by the user.
When screening candidate desktop elements, the desktop elements matched with the size of the first placeholder element can be further screened out as candidate desktop elements on the basis of screening out the placeholder element types matched with the first placeholder element.
For example, in the third page 1200 shown in fig. 12, the user clicks the component placeholder 1201 with the placeholder element type being the component type, the size of the component placeholder 1201 is 2×2, and after the desktop elements with the placeholder element type being the component type are screened out from all desktop elements of the desktop of the page to be edited currently, the desktop elements with the size of 2×2 are further screened out from the desktop elements with the placeholder element type being the component type as candidate desktop elements.
Thirteenth input to a target desktop element in the candidate desktop elements is input to select the target desktop element, such as clicking on the target desktop element in the desktop elements. For example, in the case that at least one candidate desktop element is displayed in the pop-up element selection window, if the user clicks on the target desktop element in the displayed candidate desktop elements, the first placeholder element displayed in the first position is replaced by the target desktop element.
In some embodiments, when a fourteenth input for storing the third page is received and a placeholder element exists in the third page, the placeholder element may be cleared, so as to achieve the purpose of clearing redundant placeholder elements in the third page, so that the third page is cleaner and more attractive, and finally the third page is stored.
In some examples, as shown in fig. 13, the user selects a sixth desktop element 1301, a seventh desktop element 1302, and an eighth desktop element 1303 in that order in the third page. The sixth desktop element 1301 is labeled ① to indicate that the selection order is first, the seventh desktop element 1302 is labeled ② to indicate that the selection order is second, and the eighth desktop element 1303 is labeled ③ to indicate that the selection order is third. Referring to fig. 14, the user sequentially selects a fifth placeholder 1401, a sixth placeholder 1402, and a seventh placeholder 1403 in the template page.
The fifth placeholder 1401 is labeled ① to indicate that the selection order is first, the sixth placeholder 1402 is labeled ② to indicate that the selection order is second, and the seventh placeholder 1403 is labeled ③ to indicate that the selection order is third.
According to the first order of selecting the desktop elements and the second order of selecting the placeholder elements, the selected placeholder elements corresponding to the selected desktop elements one by one can be determined to correspond the desktop elements and the placeholder elements which are consistent in the selection order, namely, the desktop elements which are M in the selection order and the placeholder elements which are M in the selection order, wherein M is a positive integer.
As illustrated in fig. 13 and 14, for example, the sixth desktop element 1301 and the fifth placeholder element 1401 are first in the selection order, 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, 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.
As shown in connection with fig. 13 and 14, 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.
Fig. 15 is a functional block diagram of a desktop template creation apparatus according to some embodiments of the present application. The desktop template creation apparatus is applied to the first electronic device, and as shown in fig. 15, the desktop template creation apparatus 150 includes:
The display module 151 is configured to display a first page of a desktop according to a template editing mode in response to a first input of the first page by a user.
The first replacing module 152 is configured to replace a first desktop element displayed at a first position with a first placeholder element in response to a second input from a user to the first position in the first page in the template editing mode.
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 to the first page in the template editing mode.
Optionally, the placeholder element type of the first placeholder element comprises at least one of an icon type and a component type.
Optionally, the template generation module comprises a first generation sub-module for responding to a third input of a user to a first page in a template editing mode and generating a first page template according to a first placeholder element, and a second generation sub-module for generating a desktop template based on the first page template and restoring display of the first page under the condition that a fourth input for exiting the template editing mode is received.
Optionally, the desktop template creating device further comprises a first display module, a second display module and a first display module, wherein the first display module is used for displaying the first page and the first page template in the template editing mode before the second generation sub-module generates the desktop template based on the first page template and resumes the display of the first page under the condition that the second generation sub-module receives a fourth input for exiting the template editing mode;
The first replacing sub-module is used for responding to the fifth input of the user to the first position in the first page in the template editing mode, and replacing the first occupied element displayed in the first position with the second occupied element or the second desktop element;
and the updating sub-module is used for updating the first page template according to the second occupied element or the second desktop element, wherein the types of the occupied elements of the first occupied element and the second occupied element are different.
Optionally, the template generating module includes:
The third generation submodule is used for responding to third input of a user to the first page in the template editing mode and generating a first page template according to the first placeholder element;
the display sub-module is used for responding to the sixth input of the user to the first page in the template editing mode and displaying the second page in the template editing mode;
the second replacing sub-module is used for responding to a seventh input of a user to a second position in a second page in the template editing mode and replacing a third desktop element displayed at the second position with a third occupied element;
A fourth generation sub-module, 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;
and a fifth generation sub-module for generating 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.
Optionally, the desktop template creating device further comprises a sharing module, wherein the sharing module is used for sharing the desktop template after the template generating module responds to the third input of the user to the first page in the template editing mode and generates the desktop template according to the first placeholder element.
Fig. 16 is a functional block diagram of a desktop template application apparatus according to some embodiments of the present application. The desktop template application apparatus is applied to the second electronic device, as shown in fig. 16, and the desktop template application apparatus 160 includes:
The page generating module 161 is configured to generate a third page on the desktop according to the desktop template in response to a tenth input for the desktop template, where the first position in the desktop template is the first placeholder element.
The second replacing module 162 is configured to replace the first placeholder element displayed in the first location with a fourth desktop element in response to an eleventh input to the first location in the third page, where the fourth desktop element matches a type of the placeholder element of the first placeholder element.
Optionally, the third position in the third page is a fifth desktop element, and the desktop template application device further comprises a third replacing module, configured to replace the fifth desktop element in the third position with a fourth placeholder element, where the type of the placeholder element of the fourth placeholder element is matched with that of the fifth desktop element when the desktop does not include the fifth desktop element.
Optionally, the desktop template application device further comprises a second display module, a fourth replacement module and a third replacement module, wherein the second display module is used for responding to twelfth input of a first position in a third page and displaying candidate desktop elements matched with the type of the placeholder element of the first placeholder element, and the fourth replacement module is used for responding to thirteenth input of a target desktop element in the candidate desktop elements and replacing the first placeholder element displayed at the first position with the target desktop element.
Optionally, the desktop template application device further comprises a clearing module, configured to clear the placeholder element and store the third page when a fourteenth input for storing the third page is received and the placeholder element exists in the third page.
Optionally, the desktop template application device further comprises an acquisition module, wherein the acquisition module is used for acquiring the desktop template shared by the first electronic device before the third page is generated by the desktop according to the desktop template when the page generation module responds to the tenth input for the desktop template.
In the embodiment of the application, in response to tenth input for the desktop template, a third page is generated on the desktop according to the desktop template, a first position in the third page is a first placeholder element, in response to eleventh input for the first position in the third page, the first placeholder element displayed at the first position is replaced with a fourth desktop element, and the fourth desktop element is matched with the placeholder element type of the first placeholder element. Thus, the desktop template user can utilize the desktop template created by the desktop template creator to perform desktop layout, thereby enriching the way of desktop layout.
The desktop layout device in the embodiment of the application can be an electronic device, and also can be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a robot, a wearable device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., which are not particularly limited in the embodiments of the present application.
The desktop layout device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The desktop layout device provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1, 5-7 and 10, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 17, the embodiment of the present application further provides an electronic device 1700, including a processor 1701 and a memory 1702, where the memory 1702 stores a program or an instruction that can be executed on the processor 1701, and the program or the instruction implements each step of the embodiment of the desktop template creation method and the desktop template application method when executed by the processor 1701, and the steps achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 18 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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, a processor 1810, and the like.
Those skilled in the art will appreciate that the electronic device 1800 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1810 by a power management system, such as to perform functions such as managing charge, discharge, and power consumption by the power management system.
The electronic device structure shown in fig. 18 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in the drawings, or may combine some components, or may be arranged in different components, which will not be described in detail herein.
The user input unit 1807 is configured to receive a first input of a first page of a desktop by a user, the processor 1810 is configured to display the first page in a template editing mode in response to the first input of the first page of the desktop by the user, the user input unit 1807 is further configured to receive a second input of a first position in the first page in the template editing mode by the user, the processor 1810 is configured to replace the first desktop element displayed in the first position with a first placeholder element in response to the second input of the first position in the first page in the template editing mode by the user, the user input unit 1807 is further configured to display the first page in the template editing mode by the processor 1810 is configured to generate a desktop template according to the first placeholder element in response to the third input of the first page in the template editing mode by the user.
Optionally, the placeholder element type of the first placeholder element comprises at least one of an icon type and a component type.
Optionally, the processor 1810 is configured to generate the first page template from the first placeholder element in response to a third input by the user to the first page in the template editing mode.
Optionally, in case the user input unit 1807 receives a fourth input for exiting the template editing mode, the processor 1810 is further configured to generate a desktop template based on the first page template and update the first page template according to the second placeholder element or the second desktop element before resuming display of the first page, the display unit 1806 is configured to display the first page and the first page template in the template editing mode, the user input unit 1807 is further configured to receive a fifth input by a user for a first location in the first page in the template editing mode, and the processor 1810 is further configured to replace the first placeholder element displayed in the first location with the second placeholder element or the second desktop element in response to the fifth input by the user for the first location in the first page in the template editing mode, and the first placeholder element and the second placeholder element are different in type.
Optionally, the processor 1810 is further configured to generate a first page template according to a first placeholder element in response to a third user input to a first page in the template editing mode, the user input unit 1807 is further configured to receive a sixth user input to the first page in the template editing mode, the display unit 1806 is further configured to display a second page in the template editing mode in response to a sixth user input to the first page in the template editing mode, the user input unit 1807 is further configured to receive a seventh user input to a second location in the second page in the template editing mode, the processor 1810 is further configured to replace the third desktop element displayed in the second location with a third placeholder element in response to a seventh user input to the second location in the second page in the template editing mode, the user input unit 1807 is further configured to receive an eighth user input to the second page in the template editing mode, the processor 1810 is further configured to generate a second page according to the third placeholder element in response to the eighth user input to the second page in the template editing mode, the processor 1810 is further configured to exit the second page in response to the ninth template editing mode, and the processor is further configured to exit the ninth template is further configured to generate a ninth template based on the ninth template.
Optionally, the processor 1810 is further configured to share the desktop template after generating the desktop template from the first placeholder element in response to a third input by the user to the first page in the template editing mode.
Optionally, the user input unit 1807 is further configured to receive a tenth input of the desktop template by the user, the processor 1810 is further configured to generate a third page on the desktop according to the desktop template in response to the tenth input of the desktop template by the user, the first position in the third page is a first placeholder element, the user input unit 1807 is further configured to receive an eleventh input of the first position in the third page, and in response to the eleventh input of the first position in the third page, replace the first placeholder element displayed in the first position with a fourth desktop element, and the fourth desktop element matches a placeholder element type of the first placeholder element.
Optionally, the third location in the third page is a fifth desktop element, and the processor 1810 is further configured to replace the fifth desktop element in the third location with a fourth placeholder element, where the desktop does not include the fifth desktop element, and a type of the placeholder element of the fourth placeholder element matches the fifth desktop element.
Optionally, the user input unit 1807 is further configured to receive a twelfth input to the first location in the third page, the display unit 1806 is further configured to display candidate desktop elements that match the type of placeholder element of the first placeholder element in response to the twelfth input to the first location in the third page, the user input unit 1807 is further configured to receive a thirteenth input to the target desktop element of the candidate desktop elements, and the processor 1810 is further configured to replace the first placeholder element displayed in the first location with the target desktop element in response to the thirteenth input to the target desktop element of the candidate desktop elements.
Optionally, the processor 1810 is configured to, when the user input unit 1807 receives a fourteenth input for storing a third page, and a placeholder element is present in the third page, clear the placeholder element and store the third page.
Optionally, the processor 1810 is further configured to obtain, in response to a tenth input for a desktop template, a desktop template shared by the first electronic device before the desktop generates the third page according to the desktop template.
It should be appreciated that in embodiments of the present application, the input unit 1804 may include a graphics processor (Graphics Processing Unit, GPU) 18041 and a microphone 18042, with the graphics processor 18041 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 1806 may include a display panel 18061, which may be configured in the form of a liquid crystal display, organic light emitting diodes, or the like, for the display panel 18061. The user input unit 1807 includes at least one of a touch panel 18071 and other input devices 18072. Touch panel 18071, also referred to as a touch screen. 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 (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1809 may be used to store software programs and various data. The memory 1809 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1809 may include volatile memory or nonvolatile memory, or the memory 1809 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM). Memory 1009 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
Processor 1810 may include one or more processing units, and optionally, processor 1810 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1810.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the desktop layout method embodiment, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the desktop layout method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the desktop layout method embodiment described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (14)

1. The desktop template creation method is applied to first electronic equipment and is characterized by comprising the following steps:
responding to a first input of a user to a first page of a desktop, and displaying the first page according to a template editing mode;
Responding to second input of a user to a first position in the first page in a template editing mode, and replacing a first desktop element displayed in the first position with a first placeholder element;
responding to third input of a user to the first page in a template editing mode, and generating a first page template according to the first placeholder element;
Responding to a sixth input of the user to the first page in the template editing mode, and displaying a second page according to the template editing mode;
Responding to a seventh input of a user to a second position in the second page in a template editing mode, and replacing a third desktop element displayed at the second position with a third placeholder element;
Responding to eighth input of the second page in a template editing mode by a user, and generating a second page template according to the third placeholder element;
a desktop template is generated based on the first page template and the second page template in response to a ninth input for exiting the template editing mode.
2. The method of claim 1, wherein the placeholder element type of the first placeholder element comprises at least one of an icon type, a component type.
3. The method according to claim 1, wherein the method further comprises:
responding to third input of a user to the first page in a template editing mode, and generating a first page template according to the first placeholder element;
and generating the desktop template based on the first page template and restoring display of the first page under the condition that a fourth input for exiting the template editing mode is received.
4. The method of claim 3, wherein upon receiving a fourth input to exit the template editing mode, generating the desktop template based on the first page template and before resuming display of the first page, further comprises:
displaying the first page and the first page template in a template editing mode;
responding to a fifth input of a user to a first position in the first page in a template editing mode, and replacing a first placeholder element displayed in 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;
Wherein the first placeholder element is of a different type than the second placeholder element.
5. The method according to claim 1, wherein the method further comprises:
sharing the desktop template.
6. The desktop template application method is applied to the second electronic equipment and is characterized by comprising the following steps:
responding to tenth input for a desktop template, and generating a third page on the desktop according to the desktop template, wherein a first position in the third page is a first placeholder element;
In response to an eleventh input to a first location in the third page, replacing a first placeholder element displayed in the first location with a fourth desktop element, the fourth desktop element being matched with a placeholder element type of the first placeholder element;
wherein, the desktop template is generated by the following steps:
responding to a first input of a user to a first page of a desktop, and displaying the first page according to a template editing mode;
Responding to second input of a user to a first position in the first page in a template editing mode, and replacing a first desktop element displayed in the first position with a first placeholder element;
responding to third input of a user to the first page in a template editing mode, and generating a first page template according to the first placeholder element;
Responding to a sixth input of the user to the first page in the template editing mode, and displaying a second page according to the template editing mode;
Responding to a seventh input of a user to a second position in the second page in a template editing mode, and replacing a third desktop element displayed at the second position with a third placeholder element;
Responding to eighth input of the second page in a template editing mode by a user, and generating a second page template according to the third placeholder element;
The desktop template is generated based on the first page template and the second page template in response to a ninth input for exiting a template editing mode.
7. The method of claim 6, wherein the third location in the third page is a fifth desktop element;
The method further comprises the steps of:
and under the condition that the desktop does not comprise the fifth desktop element, replacing the fifth desktop element at the third position with a fourth placeholder element, wherein the type of the placeholder element of the fourth placeholder element is matched with that of the fifth desktop element.
8. The method of claim 6, wherein the method further comprises:
responsive to a twelfth input to the first location in the third page, displaying candidate desktop elements that match the placeholder element type of the first placeholder element;
And replacing the first placeholder element displayed in the first position with the target desktop element in response to thirteenth input of the target desktop element in the candidate desktop elements.
9. The method of claim 6, wherein the method further comprises:
and when a fourteenth input for storing the third page is received and a placeholder element exists in the third page, clearing the placeholder element and storing the third page.
10. The method of claim 6, wherein the responding to the tenth input for the desktop template, according to the desktop template, before the generating the third page by the desktop, further comprises:
And acquiring the desktop template shared by the first electronic equipment.
11. A desktop template creation apparatus, characterized by being applied to a first electronic device, comprising:
the display module is used for responding to the first input of a user to a first page of the desktop and displaying the first page according to a template editing mode;
the first replacing module is used for responding to second input of a user on a first position in the first page in the template editing mode and replacing a first desktop element displayed on the first position with a first placeholder element;
The template generation module is used for responding to third input of a user to the first page in a template editing mode, generating a first page template according to the first placeholder element, responding to sixth input of the user to the first page in the template editing mode, displaying a second page according to the template editing mode, responding to 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 the third placeholder element, responding to eighth input of the user to the second page in the template editing mode, generating a second page template according to the third placeholder element, responding to ninth input used for exiting the template editing mode, and generating a desktop template based on the first page template and the second page template.
12. A desktop template application apparatus applied to a second electronic device, comprising:
the page generation module is used for responding to tenth input for the desktop template, and generating a third page on the desktop according to the desktop template, wherein a first position in the third page is a first placeholder element;
The second replacing module is used for responding to eleventh input to a first position in the third page, replacing a first occupied element displayed in the first position with a fourth desktop element, and the fourth desktop element is matched with the occupied element type of the first occupied element;
wherein, the desktop template is generated by the following steps:
responding to a first input of a user to a first page of a desktop, and displaying the first page according to a template editing mode;
Responding to second input of a user to a first position in the first page in a template editing mode, and replacing a first desktop element displayed in the first position with a first placeholder element;
responding to third input of a user to the first page in a template editing mode, and generating a first page template according to the first placeholder element;
Responding to a sixth input of the user to the first page in the template editing mode, and displaying a second page according to the template editing mode;
Responding to a seventh input of a user to a second position in the second page in a template editing mode, and replacing a third desktop element displayed at the second position with a third placeholder element;
Responding to eighth input of the second page in a template editing mode by a user, and generating a second page template according to the third placeholder element;
The desktop template is generated based on the first page template and the second page template in response to a ninth input for exiting a template editing mode.
13. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of any of claims 1-10.
14. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the method according to any of claims 1-10.
CN202210357403.6A 2022-04-06 2022-04-06 Desktop template creation and application method, device and electronic device Active CN114817783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210357403.6A CN114817783B (en) 2022-04-06 2022-04-06 Desktop template creation and application method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210357403.6A CN114817783B (en) 2022-04-06 2022-04-06 Desktop template creation and application method, device and electronic device

Publications (2)

Publication Number Publication Date
CN114817783A CN114817783A (en) 2022-07-29
CN114817783B true CN114817783B (en) 2025-05-16

Family

ID=82533955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210357403.6A Active CN114817783B (en) 2022-04-06 2022-04-06 Desktop template creation and application method, device and electronic device

Country Status (1)

Country Link
CN (1) CN114817783B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN113867657A (en) * 2020-06-29 2021-12-31 华为技术有限公司 Cross-device desktop management method, first electronic device and second electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108469981A (en) * 2018-04-12 2018-08-31 何可 A kind of desktop system for mobile phone can customize screens switch rule and screen rule
CN113961184A (en) * 2021-11-11 2022-01-21 中国工商银行股份有限公司 Page layout processing method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933322A (en) * 2019-01-28 2019-06-25 平安科技(深圳)有限公司 A kind of page editing method, apparatus and computer readable storage medium
CN113867657A (en) * 2020-06-29 2021-12-31 华为技术有限公司 Cross-device desktop management method, first electronic device and second electronic device

Also Published As

Publication number Publication date
CN114817783A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN107111496B (en) Customizable blade applications
US20090027334A1 (en) Method for controlling a graphical user interface for touchscreen-enabled computer systems
US12175576B2 (en) Method, apparatus, device and media for publishing video
WO2023155811A1 (en) Page layout adjustment method and apparatus
KR20170026274A (en) Apparatus and method for editing contents
CN115617225A (en) Application interface display method, device, electronic device and storage medium
US7659913B2 (en) Method and apparatus for video editing with a minimal input device
WO2025061189A1 (en) Interface display method and apparatus, and electronic device and readable storage medium
CN114239497A (en) Document processing method, apparatus, electronic device and medium
CN112162805B (en) Screenshot method and device and electronic equipment
CN114116098A (en) Application icon management method, device, electronic device and storage medium
CN114817783B (en) Desktop template creation and application method, device and electronic device
WO2024104079A1 (en) Desktop component generation method and apparatus, electronic device, and readable storage medium
CN117311560A (en) Image display method and device
WO2023155809A1 (en) Desktop deformer display method and apparatus, electronic device, and storage medium
CN113810538B (en) Video editing method and video editing device
CN116069432A (en) Split-screen display method, device, electronic device and readable storage medium
CN116027950A (en) Screen capture method and screen capture device
CN115993892A (en) Information input method and device and electronic equipment
CN113835578A (en) Display method and device and electronic equipment
CN113393372A (en) Desktop wallpaper setting method and device
CN119597506B (en) Information sharing method and device
CN115793921A (en) Desktop layout adjustment method, device, electronic device and readable storage medium
CN115328367A (en) Screen capturing method and device, electronic equipment and storage medium
CN120179112A (en) Information display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant