Method, apparatus and electronic device for generating
By receiving input from desktop objects to generate clone icons or synchronization components, the problem of cumbersome operation in existing technologies is solved, and convenient object generation and flexible operation process are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2022-11-11
- Publication Date
- 2026-06-12
Smart Images

Figure CN115904147B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a generation method, apparatus and electronic device. Background Technology
[0002] Currently, terminal desktops often display numerous application icons and components (e.g., weather widgets, calendar widgets, etc.) for user convenience. However, in existing technologies, when a user wants to open a clone of an application, they need to sequentially click System Settings, Applications & Permissions, and Application Cloning to generate a clone icon on the desktop. This deeply nested entry point makes the operation cumbersome. When a user wants to create a shortcut to an application, they usually need to download a third-party application and complete some setup steps. When a user wants to completely copy the style of a component, they need to find the component in the component library, select it, drag and drop it, or click the OK button to generate the target component on the desktop, and then repeatedly compare and adjust it against the original component, making the operation cumbersome. Therefore, existing technologies suffer from the problem of cumbersome operations in generating clones (e.g., component clones, clone icons, etc.) or synchronizing objects (application shortcuts or synchronized components, etc.) of application icons, components, etc. Summary of the Invention
[0003] This application provides a generation method, apparatus, and electronic device that can solve the problem that generating clones or synchronized objects of application icons, components, etc., in the prior art is cumbersome.
[0004] In a first aspect, embodiments of this application provide a generation method, the method comprising:
[0005] Receive a first input for a first object on the desktop, wherein the first object includes a first icon or a first component;
[0006] In response to the first input, a second object is displayed, wherein the second object is an object generated based on the first object;
[0007] Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronization component or a component clone of the first component, and the form of the synchronization component is consistent with the form of the first component.
[0008] Secondly, embodiments of this application provide a generating apparatus, the apparatus comprising:
[0009] The first receiving module is configured to receive a first input to a first object on the desktop, wherein the first object includes a first icon or a first component;
[0010] A first display module is configured to display a second object in response to the first input, wherein the second object is an object generated based on the first object;
[0011] Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronization component or a component clone of the first component, and the form of the synchronization component is consistent with the form of the first component.
[0012] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps in the generation method described in the first aspect.
[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps in the generation method described in the first aspect.
[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0016] In this embodiment, a first input is received for a first object on the desktop, wherein the first object includes a first icon or a first component; in response to the first input, a second object is displayed, wherein the second object is an object generated based on the first object; wherein, when the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; when the first object is a first component, the second object is a synchronized component or a clone of the first component, and the form of the synchronized component is consistent with the form of the first component. That is, this application can generate a clone or synchronized object corresponding to the first object based on the first input to the first object on the desktop, which is more convenient to operate. In addition, this application supports the generation of clones or synchronized objects corresponding to the first object, which can improve the flexibility of object generation. Attached Figure Description
[0017] Figure 1a This is a schematic diagram of a target object, application clone, and shortcut provided in an embodiment of this application;
[0018] Figure 1b This is a schematic diagram of a target object, component clone, and synchronization component provided in an embodiment of this application;
[0019] Figure 1c This is a schematic diagram showing a comparison of the style changes before and after the changes between a target object, component clones, and synchronous components, provided in an embodiment of this application.
[0020] Figure 2 This is a flowchart of a generation method provided in an embodiment of this application;
[0021] Figure 3a This is a schematic diagram illustrating how the size of a first object can be adjusted by following drag input, as provided in an embodiment of this application.
[0022] Figure 3b This is one of the schematic diagrams provided in the embodiments of this application for displaying a second object at a target location;
[0023] Figure 4 This is a second schematic diagram illustrating the display of a second object at a target location, provided in an embodiment of this application.
[0024] Figure 5 This is the third schematic diagram of displaying a second object at a target location provided in the embodiments of this application;
[0025] Figure 6 This is a schematic diagram illustrating a method of displaying a second object in a floating position at a target location, as provided in an embodiment of this application.
[0026] Figure 7 This is a flowchart of another generation method provided in the embodiments of this application;
[0027] Figure 8 This is one of the schematic diagrams provided in the embodiments of this application for selecting the object type and the number of objects;
[0028] Figure 9 This is a second schematic diagram illustrating the selection of object type and object quantity provided in the embodiments of this application;
[0029] Figure 10 This is the third schematic diagram illustrating the selection of object type and object quantity provided in the embodiments of this application;
[0030] Figure 11 This is one of the schematic diagrams provided in the embodiments of this application for switching the type of a second object;
[0031] Figure 12 This is a second schematic diagram illustrating the switching of the type of a second object according to an embodiment of this application;
[0032] Figure 13 This is the third schematic diagram of a method for switching the type of a second object provided in the embodiments of this application;
[0033] Figure 14 This is the fourth schematic diagram of a method for switching the type of a second object provided in the embodiments of this application;
[0034] Figure 15 This is a schematic diagram of the structure of a generating apparatus provided in an embodiment of this application;
[0035] Figure 16 This is one of the structural schematic diagrams of an electronic device provided in the embodiments of this application;
[0036] Figure 17 This is a second schematic diagram of the structure of an electronic device provided in the embodiments of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0038] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0039] The following describes some aspects related to the embodiments of this application:
[0040] Target object: including icons (such as application icons) or components, namely the first object of this application.
[0041] Clone icon: Allows for special differentiation from the target object using small markings, such as... Figure 1a As shown.
[0042] Shortcut icons: These can be used to distinguish them from target objects using small markers, such as... Figure 1a As shown.
[0043] Component clone: This refers to the display state of the normal component. After a component clone is generated, even if the shape of the target object changes, the component clone does not change with the shape of the target object. The two exist independently. Figure 1c As shown.
[0044] Synchronization component: Only in edit mode is it distinguished from the target object by a small marker; in non-edit mode, the marker disappears, such as... Figure 1b As shown. When the shape of the target object (e.g., size, style, etc.) changes, the synchronization component also changes accordingly, meaning the shape of the synchronization component remains consistent with the shape of the target object, such as... Figure 1c As shown.
[0045] The generation method, apparatus, and electronic device provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0046] See Figure 2 , Figure 2 This is a flowchart of a generation method provided in an embodiment of this application, such as... Figure 2 As shown, it includes the following steps:
[0047] Step 201: Receive first input for a first object on the desktop, wherein the first object includes a first icon or a first component.
[0048] In this embodiment, the first icon can be any icon on the desktop, and the first component can be any component on the desktop. The first input can include, but is not limited to, at least one of click input, press input, swipe input, and drag input.
[0049] Step 202: In response to the first input, display a second object, wherein the second object is an object generated based on the first object;
[0050] Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronization component or a component clone of the first component, and the form of the synchronization component is consistent with the form of the first component.
[0051] The aforementioned shortcut icons are for the applications corresponding to the first icon. This means that the second icon and the first icon can be used to open the same application; they can both serve as entry points for the same application. In this case, the data of the application corresponding to the second icon is the same as the data of the application corresponding to the first icon. Alternatively, the aforementioned second icon can be a clone of the application corresponding to the first icon. In this case, the data of the application corresponding to the second icon is not shared with the data of the application corresponding to the first icon; that is, the data of the application corresponding to the second icon is not synchronized with the data of the application corresponding to the first icon.
[0052] The form of the aforementioned synchronization component is consistent with that of the first component; that is, the data between the aforementioned synchronization component and the aforementioned first component is synchronized. For example, if the form of the first component changes, the form of the second component will change accordingly. The form of the aforementioned component includes its size, style, etc. The data between the aforementioned component clone and the aforementioned first component is not synchronized; for example, if the form of the first component changes, the form of the second component will not change accordingly.
[0053] In this step, in response to the first input, a second object can be generated based on the first object and displayed. For example, if the first object is a first icon, an application clone of the application corresponding to the first icon can be generated and its icon (i.e., the clone icon) can be displayed on the desktop; or, a shortcut icon of the application corresponding to the first icon can be generated and displayed on the desktop. If the first object is a first component, a synchronized component of the first component can be generated based on the first component and displayed on the desktop; or, a component clone of the first component can be generated based on the first component and displayed on the desktop.
[0054] The generation method provided in this application receives a first input for a first object on the desktop, wherein the first object includes a first icon or a first component; in response to the first input, a second object is displayed, wherein the second object is an object generated based on the first object; wherein, when the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; when the first object is a first component, the second object is a synchronized component or a clone of the first component, and the form of the synchronized component is consistent with the form of the first component. That is, this application can generate a clone or synchronized object corresponding to the first object based on the first input for the first object on the desktop, which is relatively convenient. In addition, this application supports the generation of clones or synchronized objects corresponding to the first object, which can improve the flexibility of object generation.
[0055] Optionally, the type of the object can be determined based on the input parameters of the first input, and then a second object of the corresponding type can be generated based on the determined object type. For icons, the object type can include a clone icon type or a shortcut icon type; for components, the object type can include a synchronized component type or a component clone type. The input parameters mentioned above can include parameters such as input direction, input distance, and input duration.
[0056] Optionally, before displaying the second object, the method further includes:
[0057] Determine a first parameter, wherein the first parameter includes at least one of target type and target quantity; when the first object is a first icon, the target type is a clone icon type or a shortcut icon type; when the first object is a first component, the target type is a synchronized component type or a component clone type.
[0058] The second object is generated based on the first parameter and the first object, wherein, if the first parameter includes the target type, the type of the second object is the target type, and if the first parameter includes the target quantity, the quantity of the second object is the target quantity.
[0059] For example, the first parameter can be determined based on the input parameters of the first input, which may include, but are not limited to, parameters such as input direction, input distance, and input duration. For instance, different input directions correspond to different types, and different input distances correspond to different quantities. Alternatively, the first parameter can be determined based on the user's selection input. For example, after receiving the first input, a target configuration interface can be displayed in a preset display area on the screen. The target configuration interface displays controls for type selection and controls for quantity selection. In this way, the target type can be determined based on the user's selection input to the control for type selection, and the target quantity can be determined based on the user's selection input to the control for quantity selection.
[0060] Specifically, when the first object includes a target type, a second object can be generated based on the first object and the target type. For example, if the first object is a first icon and the target type is a clone icon, the generated second object is a clone icon of the application corresponding to the first icon; if the first object is a first icon and the target type is a shortcut icon, the generated second object is a shortcut icon of the application corresponding to the first icon; if the first object is a first component and the target type is a component clone, the generated second object is a component clone of the first component; if the first object is a first component and the target type is a synchronized component, the generated second object is a synchronized component of the first component.
[0061] If the first parameter includes a target quantity, a target quantity of second objects can be generated based on the first object. For example, if the first object is a first icon, a target quantity of clone icons or a target quantity of shortcut icons can be generated; if the first object is a first component, a target quantity of component clones or a target quantity of synchronized components can be generated.
[0062] When the first parameter includes target type and target quantity, a target number of second objects can be generated based on the first object, and the type of the second object is the target type. For example, if the first object is a first icon and the target type is a clone icon, a target number of clone icons can be generated; if the first object is a first icon and the target type is a shortcut icon, a target number of shortcut icons can be generated; if the first object is a first component and the target type is a component clone, a target number of component clones can be generated; if the first object is a first component and the target type is a synchronized component, a target number of synchronized components can be generated.
[0063] Optionally, the second object can be copied from the first object. For example, if the first object is a first icon, a target icon can be copied first. If the target type is a clone icon, the target icon can be set as the icon of the clone of the application corresponding to the first icon; in this case, the target icon is the clone icon. If the target type is a shortcut icon, the target icon can be set as the shortcut icon of the application corresponding to the first icon; in this case, the target icon is the shortcut icon. If the first object is a first component, a target component can be copied first. If the target type is a component clone, the data between the target component and the first component can be set to be out of sync; in this case, the target component is the clone component. If the target type is a synchronized component, the data between the target component and the first component can be set to be synchronized; in this case, the target component is the synchronized component.
[0064] This embodiment improves the flexibility of object generation by determining at least one of the target type and the target quantity, and generating a second object based on at least one of the target type and the target quantity.
[0065] Optionally, displaying the second object in response to the first input includes:
[0066] In response to the first input, the size of the first object is adjusted according to the input parameters of the first input;
[0067] If the adjusted size indicated by the input parameters is greater than the maximum adjustable size of the first object, the second object is displayed.
[0068] For example, when the first input is a drag input, the input parameters of the first input may include drag distance, drag duration, etc.; when the first input is a click input, the input parameters of the first input may include the number of clicks; and when the first input is a press input, the input parameters of the first input may include the press duration, press pressure, etc.
[0069] Specifically, if the size to be adjusted indicated by the above input parameters is greater than the maximum adjustable size of the first object, it means that the current user's input is not for adjusting the size of the first object. In this case, the second object can be displayed, and the size of the first object can be restored to the size before it was dragged.
[0070] Optionally, if the size to be adjusted indicated by the above input parameters is less than or equal to the maximum adjustable size of the first object, the size of the first object can be adjusted according to the size to be adjusted indicated by the above input parameters.
[0071] Optionally, the first input can be a drag input to a deformation control on the first object. For example, when the desktop is not in edit mode, a long press input to the first object is received. In response to the long press input, a deformation control is displayed on the first object. During the user's dragging of the deformation control, the size of the first object can be adjusted according to the dragging distance of the drag input. Figure 3a As shown. When the drag distance of the above drag input exceeds a preset value, that is, when the adjusted size indicated by the above drag input exceeds the maximum adjustable size of the first object, the size of the first object can be restored to its size before dragging, and the second object can be displayed. The second object can follow the above drag input, for example, as... Figure 3b As shown, the second object is displayed in a semi-transparent state at the position where the finger is dragged.
[0072] In this embodiment, the size of the first object is adjusted according to the input parameters of the first input, and the second object is displayed when the adjusted size indicated by the input parameters is greater than the maximum adjustable size of the first object. This not only reduces some accidental operations and makes the object generation more in line with the user's operation needs, but also enables different operation purposes to be achieved through one input method, such as adjusting the size of the first object or generating the second object, thereby improving the convenience of user operation.
[0073] Optionally, when the second object is a second icon or a shortcut icon, displaying the second object includes:
[0074] A second object is displayed at a target location, which is determined by the input parameters of the first input.
[0075] Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space;
[0076] If the target location is empty and the size of the empty space cannot accommodate the second object, the size of the second object is adjusted according to the size of the empty space, and the second object with the adjusted size is displayed in the empty space.
[0077] If a third object is displayed at the target location, a second object is displayed floating at the target location.
[0078] For example, if the first input is a drag input, the target position can be the end position of the drag input.
[0079] In this embodiment, if the second object is a second icon or a shortcut icon, and the target location is empty and the size of the empty space can accommodate the second object, the second object can be directly displayed in that empty space, such as... Figure 4 As shown; if the target location is empty but the size of the empty space cannot accommodate the second object, the size of the third object can be adjusted according to the size of the empty space, and the second object with the adjusted size can be displayed in the empty space, as shown. Figure 5 As shown; if the target position is already occupied (i.e., a third object is displayed), a second object can be displayed floating in the target position. The third object can be any object, such as an icon or component.
[0080] It is understood that the minimum size of the second object mentioned above is adjusted to a preset size, where the preset size can be the minimum icon or the minimum component size (i.e., 1x1).
[0081] This embodiment displays a second object at a target location determined based on the input parameters of the first input. Specifically, if the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space. If the target location is empty and the size of the empty space cannot accommodate the second object, the size of the second object is adjusted according to the size of the empty space, and the adjusted second object is displayed in the empty space. If a third object is displayed at the target location, the second object is displayed floating at the target location. This makes the display position of the second object more closely match the user's desired display position, facilitating user viewing or operation.
[0082] Optionally, when the second object is a synchronized component or a clone of the first component, displaying the second object includes:
[0083] A second object is displayed at a target location, which is determined by the input parameters of the first input.
[0084] Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space;
[0085] If the target location is empty and the size of the empty location cannot accommodate the second object, the second object is displayed floating at the target location.
[0086] If a fourth object is displayed at the target location, a second object is displayed floating at the target location.
[0087] For example, if the first input is a drag input, the target position can be the end position of the drag input.
[0088] In this embodiment, if the second object is a synchronization component or a clone of the first component, and the target position is empty and the size of the empty space can accommodate the second object, the second object can be directly displayed in that empty space, such as... Figure 3b As shown; if the target location is empty and the size of the empty space cannot accommodate the second object, or if the target location is already occupied (i.e., a fourth object is displayed), the second object can be displayed floating in the target location, such as... Figure 6 As shown, the fourth object mentioned above can be any object, such as an icon or component.
[0089] This embodiment displays a second object at a target location determined based on the input parameters of the first input. Specifically, if the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space; if the target location is empty and the size of the empty space cannot accommodate the second object, the second object is displayed while floating at the target location; and if a fourth object is displayed at the target location, the second object is displayed while floating at the target location. This makes the display position of the second object more closely match the user's desired display position, facilitating user viewing or operation.
[0090] The following combination Figure 7 This embodiment will be illustrated by example:
[0091] like Figure 7 As shown, the generation method provided in this application embodiment includes the following steps:
[0092] Step 701. In non-editing mode on the desktop, long press the first object to display the transform button. Drag the transform button to change the size of the first object, as shown below. Figure 3a As shown.
[0093] Step 702. If the horizontal drag distance exceeds the maximum length supported by the first object, or the vertical drag distance exceeds the maximum width supported by the first object, the target object (i.e., the target icon or target component) is displayed in a semi-transparent state at the location where the finger is dragged. Specifically, this step can correspond to the following situations:
[0094] a. When the first object is the first icon: The target icon is displayed semi-transparently at the location where the finger is dragged. The size of the target icon can be the same as the first icon, such as... Figure 4 As shown.
[0095] b. When the first object is the first component: the target component is displayed in a semi-transparent state at the location where the finger is dragged. The size, color, and other style information of the target component are consistent with the first component, such as... Figure 3b As shown.
[0096] Step 703. After moving the target object to the target position, release it and check if there is a suitable empty space to place the target object. This includes the following situations:
[0097] a. If there is a suitable empty space at the target location, place the target object into the empty space.
[0098] b. If there is no suitable empty space at the target location, and the target object is a target icon that can be resized to a smaller size (minimum 1x1), then adjust the size of the target object according to the size of the empty space at the target location, and place the target object into the empty space, such as... Figure 5 As shown.
[0099] c. If there is no suitable empty space at the target location, or if the target object is a target component or a target icon that cannot be resized to a smaller size, the target object will be suspended above the target location with an emphasized shadow effect, presenting an editable state. You can then drag and drop to fill in a suitable empty space.
[0100] Step 704. After completing the above determination, a panel slides out from the bottom, providing two options depending on the type of the first object:
[0101] 1. If the target object is a target icon, provide options in two dimensions:
[0102] a) The type of object generated: "Shortcut" and "Application Clone". Selecting the "Shortcut" button generates an application shortcut; selecting the "Application Clone" button generates an application clone of the first object, such as... Figure 8 As shown.
[0103] It should be noted that the shortcut type mentioned above is the same as the shortcut icon type mentioned above, and the application clone type mentioned above is the same as the clone icon type mentioned above.
[0104] b) Number of objects generated. The system automatically generates the corresponding type and quantity of objects (i.e., target objects) based on the selected number of objects. When more than one target object is generated, empty spaces are filled around the target location in a clockwise direction.
[0105] 2. If the target object is a component, two options are provided:
[0106] a) The type of object generated: "Synchronous Component" and "Component Cloner". Selecting the "Synchronous Component" button generates a synchronous component, meaning the data changes as the original component changes; selecting the "Component Cloner" button generates a component clone of the first object, such as... Figure 9 As shown.
[0107] b) Number of objects generated. The system automatically generates the corresponding type and quantity of objects (i.e., target objects) based on the selected object quantity. Optionally, when generating more than one target object, empty spaces can be placed around the target location in a clockwise direction, such as... Figure 10 As shown.
[0108] 3. After selection, confirm that the type of the target object is the selected type.
[0109] As can be seen from the above, the embodiments of this application can realize the creation of application clones and the copying of components with the same custom style by dragging and dropping the transformation button of an existing application icon and component on a single desktop when the desktop is not in editing mode.
[0110] Optionally, after displaying the second object, the method further includes:
[0111] Receive a second input for the second object;
[0112] In response to the second input, the type of the second object is switched.
[0113] In this embodiment, the second input may include, but is not limited to, at least one of click input, drag input, press input, and slide input.
[0114] For example, in response to the second input, a switching interface can be displayed. This switching interface displays controls for type switching. For instance, the switching interface can display a type switching control, a no-type-switching control, and a prompt indicating the current type of the second object. When the user selects the type switching control, the type of the second object is switched. For example, if the current type of the second object is a clone icon, the type of the second object is switched to a shortcut icon, and in this case, the second object becomes a shortcut icon; if the current type of the second object is a shortcut icon, the type of the second object is switched to a clone icon, and in this case, the second object becomes a clone icon.
[0115] The following combination Figures 11 to 14 For example:
[0116] See Figure 11 and Figure 12After generating the second object, users can long-press the second object to expand the menu, click the "Change Clone" button, and then expand the panel from the bottom to change the clone's state. If the second object is a component, the system determines whether it is a synchronous component or a component clone, providing corresponding prompts and options "Change" and "Don't Change." Clicking "Change" changes the type of the second object; clicking "Don't Change" collapses the panel, and the component retains its original type. Specifically, if the second object is a synchronous component and the user clicks "Change," the second object is changed to a component clone; otherwise, it remains a synchronous component.
[0117] See Figure 13 and Figure 14 If the second object is an icon, determine whether it is a clone icon or a shortcut icon, and provide corresponding prompts and options "Change" and "Don't Change". Clicking "Change" will change the type of the second object; clicking "Don't Change" will collapse the panel, and the icon will retain its original type. Specifically, if the second object is a shortcut icon, and the user clicks "Change", the second object will be changed to an app clone icon; otherwise, it will remain a shortcut icon. If the second object is an app clone icon, and the user clicks "Change", the second object will be changed to a shortcut icon; otherwise, it will remain a clone icon.
[0118] This embodiment receives a second input for the second object and switches the type of the second object in response to the second input. That is, this embodiment supports switching the type of the second object, which makes it convenient for users to quickly generate objects of different types.
[0119] The generation method provided in this application can be executed by a generation device. This application uses an example of a generation device executing an object generation method to illustrate the object generation device provided in this application.
[0120] See Figure 15 , Figure 15 This is a schematic diagram of the structure of a generating apparatus provided in an embodiment of this application, such as... Figure 15 As shown, the generating apparatus 1500 includes:
[0121] The first receiving module 1501 is configured to receive a first input for a first object on the desktop, wherein the first object includes a first icon or a first component;
[0122] The first display module 1502 is configured to display a second object in response to the first input, wherein the second object is an object generated based on the first object;
[0123] Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronization component or a component clone of the first component, and the form of the synchronization component is consistent with the form of the first component.
[0124] Optionally, the device further includes:
[0125] A first determining module is used to determine a first parameter before displaying the second object, wherein the first parameter includes at least one of target type and target quantity. When the first object is a first icon, the target type is a clone icon type or a shortcut icon type. When the first object is a first component, the target type is a synchronized component type or a component clone type.
[0126] A generation module is configured to generate a second object based on the first parameter and the first object, wherein, if the first parameter includes the target type, the type of the second object is the target type, and if the first parameter includes the target quantity, the quantity of the second object is the target quantity.
[0127] Optionally, the first display module is specifically used for:
[0128] In response to the first input, the size of the first object is adjusted according to the input parameters of the first input;
[0129] If the adjusted size indicated by the input parameters is greater than the maximum adjustable size of the first object, the second object is displayed.
[0130] Optionally, the first display module is specifically used for:
[0131] If the second object is a second icon or a shortcut icon, the second object is displayed at the target location, which is determined by the input parameters of the first input.
[0132] Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space;
[0133] If the target location is empty and the size of the empty space cannot accommodate the second object, the size of the second object is adjusted according to the size of the empty space, and the second object with the adjusted size is displayed in the empty space.
[0134] If a third object is displayed at the target location, a second object is displayed floating at the target location.
[0135] Optionally, the first display module is specifically used for:
[0136] When the second object is a synchronous component or a clone of the first component, the second object is displayed at a target location, which is determined by the input parameters of the first input.
[0137] Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space;
[0138] If the target location is empty and the size of the empty location cannot accommodate the second object, the second object is displayed floating at the target location.
[0139] If a fourth object is displayed at the target location, a second object is displayed floating at the target location.
[0140] Optionally, the device further includes:
[0141] The second receiving module is used to receive a second input for the second object after the second object is displayed;
[0142] A switching module is used to switch the type of the second object in response to the second input.
[0143] The generating device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the specific device.
[0144] The generating device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0145] The generating apparatus provided in this application embodiment can achieve... Figure 2 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0146] Optional, such as Figure 16 As shown, this application embodiment also provides an electronic device 1600, including a processor 1601 and a memory 1602. The memory 1602 stores a program or instructions that can run on the processor 1601. When the program or instructions are executed by the processor 1601, they implement the various steps of the above-described generation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0147] It should be noted that the electronic devices in the embodiments of this application include mobile electronic devices and non-mobile electronic devices.
[0148] Figure 17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0149] The electronic device 1700 includes, but is not limited to, components such as: radio frequency unit 1701, network module 1702, audio output unit 1703, input unit 1704, sensor 1705, display unit 1706, user input unit 1707, interface unit 1708, memory 1709, and processor 1710.
[0150] Those skilled in the art will understand that the electronic device 1700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 17 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0151] The user input unit 1707 is used to receive a first input for a first object on the desktop, wherein the first object includes a first icon or a first component.
[0152] Display unit 1706 is configured to display a second object in response to the first input, wherein the second object is an object generated based on the first object;
[0153] Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronization component or a component clone of the first component, and the form of the synchronization component is consistent with the form of the first component.
[0154] It should be understood that, in this embodiment, the input unit 1704 may include a graphics processing unit (GPU) 17041 and a microphone 17042. The GPU 17041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1706 may include a display panel 17061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1707 includes at least one of a touch panel 17071 and other input devices 17072. The touch panel 17071 is also called a touch screen. The touch panel 17071 may include a touch detection device and a touch controller. Other input devices 17072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0155] The memory 1709 can be used to store software programs and various data. The memory 1709 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1709 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1709 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0156] Processor 1710 may include one or more processing units; optionally, processor 1710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1710.
[0157] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described generation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0158] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0159] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described generation method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0160] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0161] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described generation method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0164] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A generation method, characterized in that, The method includes: Receive a first input for a first object on the desktop, wherein the first object includes a first icon or a first component; In response to the first input, a second object is displayed, wherein the second object is an object generated based on the first object; Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronized component or a clone of the first component, and the form of the synchronized component is consistent with the form of the first component. The response to the first input, displaying the second object, includes: In response to the first input, the size of the first object is adjusted according to the input parameters of the first input; If the adjusted size indicated by the input parameters is greater than the maximum adjustable size of the first object, the second object is displayed.
2. The method according to claim 1, characterized in that, Before displaying the second object, the method further includes: Determine a first parameter, wherein the first parameter includes at least one of target type and target quantity; when the first object is a first icon, the target type is a clone icon type or a shortcut icon type; when the first object is a first component, the target type is a synchronized component type or a component clone type. The second object is generated based on the first parameter and the first object, wherein, if the first parameter includes the target type, the type of the second object is the target type, and if the first parameter includes the target quantity, the quantity of the second object is the target quantity.
3. The method according to claim 1, characterized in that, When the second object is a second icon or a shortcut icon, displaying the second object includes: A second object is displayed at a target location, which is determined by the input parameters of the first input. Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space; If the target location is empty and the size of the empty space cannot accommodate the second object, the size of the second object is adjusted according to the size of the empty space, and the second object with the adjusted size is displayed in the empty space. If a third object is displayed at the target location, a second object is displayed floating at the target location.
4. The method according to claim 1, characterized in that, When the second object is a synchronized component or a clone of the first component, displaying the second object includes: A second object is displayed at a target location, which is determined by the input parameters of the first input. Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space; If the target location is empty and the size of the empty location cannot accommodate the second object, the second object is displayed floating at the target location. If a fourth object is displayed at the target location, a second object is displayed floating at the target location.
5. The method according to claim 2, characterized in that, After displaying the second object, the method further includes: Receive a second input for the second object; In response to the second input, the type of the second object is switched.
6. A generating apparatus, characterized in that, The device includes: The first receiving module is configured to receive a first input to a first object on the desktop, wherein the first object includes a first icon or a first component; A first display module is configured to display a second object in response to the first input, wherein the second object is an object generated based on the first object; Wherein, if the first object is a first icon, the second object is a second icon or a shortcut icon, and the second icon is a clone icon of the application corresponding to the first icon; if the first object is a first component, the second object is a synchronized component or a clone of the first component, and the form of the synchronized component is consistent with the form of the first component. The first display module is specifically used for: In response to the first input, the size of the first object is adjusted according to the input parameters of the first input; If the adjusted size indicated by the input parameters is greater than the maximum adjustable size of the first object, the second object is displayed.
7. The apparatus according to claim 6, characterized in that, The device further includes: A first determining module is used to determine a first parameter before displaying the second object, wherein the first parameter includes at least one of target type and target quantity. When the first object is a first icon, the target type is a clone icon type or a shortcut icon type. When the first object is a first component, the target type is a synchronized component type or a component clone type. A generation module is configured to generate a second object based on the first parameter and the first object, wherein, if the first parameter includes the target type, the type of the second object is the target type, and if the first parameter includes the target quantity, the quantity of the second object is the target quantity.
8. The apparatus according to claim 6, characterized in that, The first display module is specifically used for: If the second object is a second icon or a shortcut icon, the second object is displayed at the target location, which is determined by the input parameters of the first input. Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space; If the target location is empty and the size of the empty space cannot accommodate the second object, the size of the second object is adjusted according to the size of the empty space, and the second object with the adjusted size is displayed in the empty space. If a third object is displayed at the target location, a second object is displayed floating at the target location.
9. The apparatus according to claim 6, characterized in that, The first display module is specifically used for: When the second object is a synchronous component or a clone of the first component, the second object is displayed at a target location, which is determined by the input parameters of the first input. Where the target location is empty and the size of the empty space can accommodate the second object, the second object is displayed in the empty space; If the target location is empty and the size of the empty location cannot accommodate the second object, the second object is displayed floating at the target location. If a fourth object is displayed at the target location, a second object is displayed floating at the target location.
10. The apparatus according to claim 7, characterized in that, The device further includes: The second receiving module is used to receive a second input for the second object after the second object is displayed; A switching module is used to switch the type of the second object in response to the second input.
11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the generation method as described in any one of claims 1-5.
12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the generation method as described in any one of claims 1-5.