Card generation method and device, electronic equipment and storage medium
By generating card templates of multiple sizes and copying card components, the problem of low card size adjustment efficiency in electronic devices is solved, and a more flexible and efficient card generation process is achieved.
Patent Information
- Application Number
- CN202411997041.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-15
AI Technical Summary
In the prior art, it is less efficient to adjust the card size when electronic devices generate cards, and users need to recreate cards of each size, which is a cumbersome process.
Flexible adjustment of card size is achieved by generating card templates of at least two sizes and adding card components to one card template, and copying them directly to the card template of another size.
Improves the efficiency of card size adjustment during the electronic device's card generation process, and reduces the adjustment steps, so that users do not need to recreate cards of each size.
Smart Images

Figure CN119829188A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a card generation method, device, electronic device and storage medium. Background Art
[0002] With the development of science and technology, various electronic devices appear in people's daily lives. People can use electronic devices for entertainment, learning, etc.
[0003] Among them, in electronic devices with display screens, in addition to displaying application icons corresponding to various applications, various function cards can also be displayed, and these function cards provide more convenient touch operations. For example, an electronic device can display function cards related to weather on a display screen, and users can use the cards to more intuitively know the current weather information. At present, the process of generating these cards in electronic devices is usually as follows: the user needs to select a card template, make corresponding display information on the card template, and finally generate the desired function card. In this way, if the user wants to adjust the size of the card, the user needs to recreate a card of a new size. The entire resizing process is relatively cumbersome, and there is a problem of low efficiency in adjusting the card during the card generation process of the electronic device. Summary of the invention
[0004] In order to solve the problems of related technologies, this solution directly generates card templates of different sizes during the card generation process, and copies the card components added in any card template to a card template of another size, so as to flexibly change the size of the generated target card and improve the efficiency of adjusting the card size during the card generation process. The embodiment of the present application provides a card generation method, device, electronic device and storage medium. The technical solution is as follows:
[0005] In one aspect, an embodiment of the present application provides a card generation method, which is applied to an electronic device, and the method includes:
[0006] Generate card templates of at least two sizes, wherein the card templates are used to generate target cards;
[0007] After adding a card component to a first card template, copying the card component in the first card template to a second card template, wherein the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size among the card templates of at least two sizes except the first card template;
[0008] The target card is generated according to at least one card template including the card component.
[0009] In another aspect, an embodiment of the present application provides a card generation device, which is applied to an electronic device, and the device includes:
[0010] A first generating module, used to generate card templates of at least two sizes, wherein the card templates are used to generate a target card;
[0011] a first copying module, configured to copy the card component in the first card template to a second card template after adding the card component in the first card template, wherein the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size among the card templates of the at least two sizes except the first card template;
[0012] The second generating module is used to generate the target card according to at least one card template including the card component.
[0013] In another aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the card generation method as described in one aspect above is implemented.
[0014] In another aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the card generation method as described in the above aspect.
[0015] On the other hand, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute to implement the card generation method as described in one aspect above.
[0016] On the other hand, an embodiment of the present application provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer is enabled to execute to implement the card generation method as described in one aspect above.
[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0018] An electronic device generates card templates of at least two sizes, and the card templates are used to generate a target card; after adding a card component in a first card template, the card component in the first card template is copied to a second card template, the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size of the card templates of at least two sizes except the first card template; a target card is generated according to at least one card template containing a card component. In the present application, an electronic device can generate card templates of at least two different sizes, and a card component added to a card template can be directly copied to other card templates. If a user wants to modify the size of the generated card, the user can select a corresponding card template of a different size, and indirectly complete the modification of the card size. The user does not need to make cards of each size separately or return to the initial step of creating and making the card, which reduces the steps of adjusting the size in the process of generating the card, and improves the efficiency of adjusting the card size in the process of generating the card by the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of an example structure of an electronic device provided by an exemplary embodiment of the present application;
[0021] Figure 2 This is a schematic diagram of an interface of an application desktop of an electronic device involved in an exemplary embodiment of the present application;
[0022] Figure 3 A method flow chart of a card generation method provided for an exemplary embodiment of the present application;
[0023] Figure 4 A method flow chart of a card generation method provided for an exemplary embodiment of the present application;
[0024] Figure 5 This is a schematic diagram of an interface for creating a target according to an exemplary embodiment of the present application;
[0025] Figure 6 An exemplary embodiment of the present application involves Figure 5 A schematic diagram of another target creation interface;
[0026] Figure 7 An exemplary embodiment of the present application involves Figure 5A schematic diagram of another target creation interface;
[0027] Figure 8 An exemplary embodiment of the present application involves Figure 5 A schematic diagram of another target creation interface;
[0028] Fig. 9 This is a schematic diagram of a first editing interface involved in an exemplary embodiment of the present application;
[0029] Fig.10 An exemplary embodiment of the present application involves Fig. 9 Another interface schematic diagram of a first editing interface;
[0030] Fig.11 An exemplary embodiment of the present application involves Fig.10 A schematic diagram of an interface of a second editing interface;
[0031] Fig.12 An exemplary embodiment of the present application involves Fig.10 Another interface diagram of the second editing interface;
[0032] Fig.13 An exemplary embodiment of the present application involves Fig.10 Another interface schematic diagram of a first editing interface;
[0033] Fig.14 A schematic diagram of a card size modification process according to an exemplary embodiment of the present application;
[0034] Fig.15 A structural block diagram of a card generating device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0036] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0037] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0038] The solution provided by the present application can be used in real-life scenarios in which the display of some cards is triggered on a display screen when people use electronic devices with display screens in their daily lives. For ease of understanding, the application scenarios involved in the embodiments of the present application are briefly introduced below.
[0039] With the development of science and technology, various electronic devices have appeared in people's daily lives, and people can use electronic devices for entertainment, learning, etc. Among them, touch screens, as a display device that can realize human-computer interaction, are also widely used in electronic devices. Users can perform touch operations on touch screens through devices such as fingers and styluses, and electronic devices can respond to these touch operations to display corresponding interfaces or realize corresponding functions.
[0040] For example, common touch screens can be divided into resistive, capacitive, infrared, and surface acoustic wave types according to the triggering method. When a user performs a touch operation on the display screen of an electronic device, the electronic device receives a corresponding touch signal and responds to the user's touch operation.
[0041] Please refer to Figure 1 , which shows a schematic diagram of an example structure of an electronic device provided by an exemplary embodiment of the present application. Figure 1 The electronic device shown includes components such as a processor 110 , a memory 120 , a transceiver 130 , a display unit 140 , an input unit 150 , a sensor 160 , an audio circuit 170 , and a battery module 180 .
[0042] The processor 110 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, the processor 110 performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0043] The memory 120 can be used to store software programs and modules. The processor 110 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating devices, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data generated according to the use of the electronic device (such as audio data, phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0044] The transceiver 130 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 130 can be one or more devices that integrate at least one communication processing module, for example, an antenna and a baseband processor are integrated into the transceiver 130, or an antenna and a modem processor are integrated into the transceiver 130, etc., which are not limited here. Optionally, the electronic device can communicate with the above-mentioned devices through its own transceiver 130. Figure 1 Establish a wireless communication connection with the base station in the network.
[0045] The display unit 140 may be a touch screen for displaying information input by a user or information provided to a user and various menus of the electronic device. The display unit 140 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0046] The input unit 150 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the input unit 150 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 150 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, the input unit 150 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0047] The electronic device may also include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications to identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the electronic device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.
[0048] The audio circuit 170 may include a speaker and a microphone, and may provide an audio interface between a user and an electronic device. The audio circuit 170 may transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data, and then the audio data is output to the processor 110 for processing, and then sent to another electronic device through the video circuit, or the audio data is output to the memory 120 for further processing.
[0049] The electronic device also includes a battery module 180 for supplying power to various components. Optionally, the battery module 180 can be logically connected to the processor 110 via a power management device, so that the power management device can manage functions such as charging, discharging, and power consumption.
[0050] Although not shown, the electronic device may further include a camera. Optionally, the camera may be located at the front or rear of the electronic device, which is not limited in the embodiments of the present application.
[0051] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0052] Generally, in addition to displaying application icons corresponding to various application programs, various function cards may also be displayed on the display screen of the above electronic device. Figure 2 , which shows a schematic diagram of an interface of an application desktop of an electronic device involved in an exemplary embodiment of the present application. Figure 2 As shown, the desktop 200 includes various application icons 201 and desktop cards 202. The electronic device can respond to the user's touch operation on the desktop to delete or edit the various application icons 201 and desktop cards 202 displayed therein.
[0053] For the generation of the desktop card 202, the user first needs to select a card of a fixed size, and then fill the card with some required components to generate the final desktop card 202. During the generation of the desktop card, if the user wants to adjust the layout and style of the card, the user often needs to restart the process of generating the desktop card and reselect the layout and style of the card, and the size of the card cannot be flexibly changed.
[0054] With respect to the above-mentioned related technologies, if the user wants to obtain cards of different sizes, the user needs to make cards of each size separately. The whole process is relatively cumbersome, and there is a problem of low efficiency of electronic devices in generating cards.
[0055] In order to solve the problems existing in the related technology and improve the efficiency of card size adjustment in the process of electronic device generating cards, a card generation method is provided in the embodiment of the present application, which can directly generate card templates of various sizes. When adjustment is needed, the user can directly select card templates of different sizes to generate the target card, thereby increasing the flexibility of card size adjustment in the process of generating the target card.
[0056] Please refer to Figure 3 , which shows a method flow chart of a card generation method provided by an exemplary embodiment of the present application, and the card generation method can be applied to electronic devices. Figure 3 As shown, the card generation method may include the following steps:
[0057] Step 301, generating card templates of at least two sizes, the card templates being used to generate target cards.
[0058] Optionally, the electronic device can generate card templates of at least two sizes when it is necessary to create / generate a card. For example, the user can perform a series of operations in the electronic device to start creating / generating the card the user wants in the electronic device.
[0059] Optionally, the generated card templates of two sizes may be selected by the user, or may be automatically generated in advance in the electronic device. For example, the user selects at least two sizes during the process of triggering the card creation / generation, and the electronic device generates corresponding card templates according to the at least two sizes selected by the user.
[0060] Optionally, the card template in this solution is used by the electronic device to place various card components during the card building process. After adding card components to the card template, the target card of the required size can be generated. For example, under normal circumstances, the most commonly used card template may be a blank template, to which no card components have been added, and the user can flexibly add to blank templates of at least two sizes. Alternatively, the card template may also have been created in advance by the user or developer and stored in the electronic device, and the card templates of different sizes contain some preset card components, and the user can continue to add other card components based on the preset card components.
[0061] Step 302, after adding a card component in the first card template, copy the card component in the first card template to the second card template, the first card template is any one of at least two sizes of card templates, and the second card template is another size of the at least two sizes of card templates except the first card template.
[0062] Optionally, in the electronic device, a card component may be added to the first card template selected by the user. Alternatively, for the card templates of at least two sizes generated above, the electronic device adds a card component to the card template of the default size, and the card template of the default size is the first card template.
[0063] Optionally, after adding card components to the first card template, the electronic device can copy the card components in the first card template to the second card template. In other words, after adding card components to one card template, the electronic device can copy the same amount of the added card components to a card template of another size.
[0064] Optionally, in this solution, card components may include buttons, texts, images, containers and other components. Users can edit these components and add desired card components to the card template so that the final generated target card contains the layout content they want.
[0065] Step 303: Generate a target card according to at least one card template including a card component.
[0066] Optionally, the electronic device can generate the final target card according to at least one card template to which the card component is added. For example, the user can select a card template of any one of the at least two sizes, and use the card template and the card component contained therein to generate a target card corresponding to the size selected by the user. In the target card generation process of this solution, if the user wants to change the size of the generated target card, the user can select a card template of the size he wants from at least two sizes to generate the target card, and flexibly display the final generated target card according to the card template of any one of the at least two sizes.
[0067] In summary, the electronic device generates card templates of at least two sizes, and the card templates are used to generate a target card; after adding a card component in the first card template, the card component in the first card template is copied to the second card template, the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size of the card templates of at least two sizes except the first card template; the target card is generated according to at least one card template containing the card component. In the present application, the electronic device can generate card templates of at least two different sizes, and the card component added to a card template can be directly copied to other card templates. If the user wants to modify the size of the generated card, the user can select the corresponding card templates of different sizes. The user does not need to make cards of each size separately or return to the initial step of creating the card, which reduces the steps of adjusting the size in the process of generating the card and improves the efficiency of adjusting the card size in the process of generating the card by the electronic device.
[0068] Below, an electronic device includes a touch screen, and a target creation interface is displayed. Selection controls of different sizes are provided in the target creation interface. The user can select at least two different sizes and trigger creation, so that the electronic device directly generates card templates of multiple sizes. This allows the user to adjust the card size during the subsequent editing of a card template of one size. If the user wants to adjust the card size, they can select a card template of another size without having to re-execute steps such as creation and adding components, thereby improving the efficiency of generating cards in the electronic device.
[0069] Please refer to Figure 4 , which shows a method flow chart of a card generation method provided by an exemplary embodiment of the present application, and the card generation method can be applied to electronic devices. Figure 4 As shown, the card generation method may include the following steps:
[0070] Step 401, displaying a target creation interface, which includes a card creation control and selection controls of different sizes.
[0071] Optionally, in this solution, during the process of creating a card, the user is required to perform a series of operations to display a target creation interface on the electronic device, and the user can select different sizes by triggering controls in the target creation interface.
[0072] Please refer to Figure 5 , which shows a schematic diagram of an interface for creating a target according to an exemplary embodiment of the present application. Figure 5 As shown, in the target creation interface 500, a card creation control 501 and a size selection control 502 are included. The user can start creating the desired card in the electronic device by selecting different size selection controls 502 and triggering the card creation control. Figure 5 In the example, a card created in an electronic device is rectangular, and the different sizes that can be selected are as follows: 1*2, 2*2, 2*4. In the example, 1*2 means that the width is 1 preset length and the length is 2 preset lengths. The preset length can be set by the developer or user, for example, the preset length is 200 pixels or 2 cm, etc. This solution does not limit this.
[0073] Of course, in practical applications, for different shapes and sizes, the scheme may also involve different sizes. For example, the final generated card may be round. Then, Figure 5 The selection of different sizes in can be modified to the selection of different radii. Or, if the final card is a regular polygon, then the above Figure 5 The selection of different sizes can be modified to selection of different side lengths.
[0074] Optional, in the above Figure 5 In the embodiment, a card generation method selection control and a card type selection control for the generated target card may also be included. The corresponding generation method is selected by touching the card generation method selection control, and the target card is finally generated according to the selected generation method. The card type of the target card finally generated is selected by triggering the card type selection control. The optional card type may be a recommendation card for an application, or a subscription card for displaying some user subscription information.
[0075] Moreover, the target creation interface may also include a shape selection control for selecting different card shapes, and the electronic device may display size selection controls corresponding to different shapes in response to the user's triggering operation on the shape selection control. Figure 6 , which shows that an exemplary embodiment of the present application involves Figure 5 Another target creation interface diagram. Figure 6As shown, in the target creation interface 600, a card creation control 601, a shape selection control 602, a generation method selection control 603, a card type selection control 604, and a size selection control 605 are included. Among them, the user can select different shape selection controls 602, and the electronic device responds to the shape selection control 602 selected by the user and displays the corresponding size selection control 603 in the corresponding card size selection area.
[0076] For example, in the above Figure 6 In the above, if the shape selection control 602 selected by the user is a rectangle, then the size selection control 603 displayed in the card size selection area includes the length and width of the rectangle. If the shape selection control 602 selected by the user is a circle, then the size selection control 603 displayed in the card size selection area includes the radius of the circle. Figure 6 In the example, the generation method selection control 603 includes custom card generation, card generation based on pictures, card generation based on texts, and card generation using preset tools. Custom card generation refers to a method of generating a card by adding any card components to a blank template or a card template that has been created, card generation based on pictures refers to a method of generating a card by using a picture, card generation based on texts refers to a method of generating a card based on a text content input by a user, and card generation using preset tools refers to a method of generating a target card by adding various components to the generated card template and then using a preset generation tool. The preset tool can be preset by the developer.
[0077] In a possible implementation, the target creation interface further includes a card preview area. The electronic device may also display card templates of different sizes and corresponding selection controls in the card preview area; in response to a triggering operation on the selection controls of the card templates of different sizes, the card template corresponding to the selected size is displayed in the card preview area.
[0078] Please refer to Figure 7 , which shows that an exemplary embodiment of the present application involves Figure 5 Another target creation interface diagram. Figure 7As shown, in the target creation interface 700, there are included a card creation control 701, a size selection control 702, a card preview area 703, and selection controls 704 for card templates of different sizes. The user can select the control 702 of different shapes, and the electronic device can respond to the size selection control 702 selected by the user and can also display the preview effects of card templates of different sizes and the selection controls 704 of card templates of different sizes in the corresponding card preview area 703. The user can trigger the selection controls 704 of card templates of different sizes to display the preview effects of card templates of corresponding sizes in the card preview area 703. For example, Figure 7 The selection control 704 of the card template of size 2*4 is clicked, and then the preview effect of the card template of size 2*4 is displayed in the card preview area 703.
[0079] Step 402, in response to a selection operation on at least two selection controls of different sizes and triggering a card creation control, generating a creation instruction, and generating at least two card templates of different sizes based on the creation instruction.
[0080] Optionally, in the above target creation interface, after the user selects the card templates of various sizes that he wants to generate, the electronic device generates the card templates of different sizes selected by the user by triggering the card creation control. After the card creation control is triggered, the electronic device can generate a creation instruction, which includes the various sizes selected by the user, and generates at least two card templates of different sizes based on the creation instruction.
[0081] In a possible implementation, the target creation interface further includes a style selection control, which is used to select a basic style for generating card templates of at least two sizes; the generation of the creation instruction includes: in response to a selection operation on the style selection control, a selection operation on at least two selection controls of different sizes, and triggering the card creation control, generating a creation instruction based on the selected basic style and the selected at least two different sizes, so that the electronic device generates card templates of at least two different sizes according to the basic style based on the creation instruction. That is, the electronic device can also generate according to the selected basic style in the process of generating card templates of at least two sizes in response to the selection operation on the style selection control.
[0082] Please refer to Figure 8 , which shows that an exemplary embodiment of the present application involves Figure 5 Another target creation interface diagram. Figure 8As shown, in the target creation interface 800, there are included a card creation control 801, a size selection control 802, a card preview area 803, and a style selection control 804. The functions of the card creation control 801, the size selection control 802, and the card preview area 803 have been introduced above and will not be repeated here. Figure 8 A style selection control 804 is also provided, and the user can also trigger any one of the style selection controls 804, so that the electronic device generates card templates of various sizes according to the selected basic style.
[0083] For example, the style selection control 804 may include a variety of basic styles such as a blank template, a general template, a custom template, and a travel template. The user selects any one of the styles through the style selection control 804, so that the card templates of various sizes generated by the subsequent electronic device are all the basic styles selected here. Taking the blank template as an example, if the user selects the sizes of 1*2, 2*2, and 2*4, for these sizes, the generated card templates are all blank templates.
[0084] Optionally, for different basic styles, the electronic device automatically carries different card components when generating a card template. For example, a blank template does not automatically carry a card component, and a general template can be a card component that the user has created in advance and contains only one line of text. If the user selects this general template, during the process of creating a card template, the card component with one line of text will be carried for each card template of each size. The basic styles of other templates are similar and will not be repeated here.
[0085] Optionally, in the case where the above-mentioned style selection control is included, after the user triggers the card creation control, the creation instruction generated by the electronic device includes not only the various sizes selected by the user, but also the selection of a basic style, thereby generating at least two different sizes of card templates of the same basic style based on the creation instruction.
[0086] Step 403, displaying a first editing interface, which includes a first card template, a component adding control, and a copy control, and the component adding control is used to add various card components.
[0087] Optionally, in the process of generating a card, the card templates of at least two different sizes are generated first and displayed in the first editing interface, so that the user is provided with a function of editing card templates of different sizes.
[0088] Please refer to Fig. 9 , which shows a schematic diagram of a first editing interface involved in an exemplary embodiment of the present application. Fig. 9As shown, the first editing interface 900 includes a first card template 901, a component adding control 902, and a copy control 903. The first card template 901 is any one of at least two sizes of card templates. The user can add various card components to the currently displayed first card template by triggering the component adding control. Fig. 9 In the component adding control, various components including outlines, buttons, pictures, progress bars, texts, containers, durations, etc. can be added. The user can long press and drag any component adding control to add the desired card component to the first card template 901.
[0089] Optionally, for any card template generated above, the electronic device can Fig. 9 The corresponding editing interface is displayed in the manner shown. In order to facilitate user operation, in this solution, the first editing interface also includes viewing controls for each of the generated card templates of at least two sizes; the first editing interface also includes a template display area, and the template display area is used to display the card template corresponding to the first viewing control, and the first viewing control is any one of the viewing controls. The electronic device can also display the card template corresponding to the first viewing control in the template display area in response to a touch operation on the first viewing control in the first editing interface.
[0090] Please refer to Fig.10 , which shows that an exemplary embodiment of the present application involves Fig. 9 Another interface diagram of the first editing interface. Fig.10 As shown, the first editing interface 1000 includes a first card template 1001, a component adding control 1002, a copy control 1003, a template display area 1004, and a card template viewing control 1005. The user can choose to click on the viewing control of any card template, and the electronic device will display the card template corresponding to the clicked viewing control in the template display area in response to the click operation. Fig.10 If you click on the 2*2 view control, then the 2*2 card template will be displayed in the template display area. When the user triggers the component adding control, he can add the selected card component to the card template displayed in the current template display area.
[0091] Step 404, in response to the triggering operation of adding a control to a component, adding each selected card component to the first card template.
[0092] Optional, in the above Fig. 9 and Fig.10In the example, the user triggers the add control therein, so that the electronic device adds the selected card component to the card template displayed in the current template display area. If the card template displayed in the current template display area is the first card template mentioned above, then the selected card components will be added to the first card template. For example, in the above Fig. 9 In the example, the component addition controls selected by the user include text components and image components. Then, the text components and image components can be added to the first card template, and the user can enter text in the text editing area corresponding to the text component and add the text content he wants to add to the first card template. Of course, the user can also enter and edit the image in the image editing area corresponding to the image component and add the image information he wants to add to the first card template.
[0093] Step 405 , in response to the triggering operation on the copy control, copy each card component added to the first card template to the second card template.
[0094] Optionally, in this solution, in order to facilitate the user's operation of card templates of various sizes, after the user adds card components in a card template, the user triggers the copy control in the first editing interface to copy the card components currently added in the first card template to card templates of other sizes. If the user wants to switch to a card template of another size, the user can view the card template of that size by triggering the respective view controls of the above card templates, and edit the card components in the first card template copied from the card template, without the user having to re-execute the card creation process from the beginning.
[0095] Optionally, after the copy control is triggered, the above copy process can be a full copy. For example, all card components in the current first card template are copied to the remaining card templates of other sizes. Of course, the copied card components can also be selected by the user, and the second card template to be copied can also be selected by the user.
[0096] For example, in one possible implementation, a second editing interface may be displayed in an electronic device; the second editing interface includes a component selection control and a base plate selection control, the component selection control is used to select each card component included in the first card template, and the base plate selection control is used to select the second card template; in response to a selection operation on the component selection control and a selection operation on the base plate selection control, each card component in the first card template selected based on the component selection control is copied to the second card template selected based on the base plate selection control.
[0097] Please refer to Fig.11 , which shows that an exemplary embodiment of the present application involves Fig.10A schematic diagram of a second editing interface. Fig.11 As shown, the second editing interface 1100 includes a component selection control 1101, a base plate selection control 1102, a confirmation control 1103, and a cancel control 1104. Fig.10 After the copy control is triggered in , you can Fig.10 The interface is superimposed on the Fig.11 The interface shown. Fig.11 In the example, the user can trigger the component selection control 1101, and select one or more card components that have been added to the first card template in the selection box corresponding to the component selection control 1101. The user can also trigger the base plate selection control 1102, and select the second card template to which each card component needs to be copied in the selection box corresponding to the base plate selection control 1102. After the user triggers the confirmation control 1103, each card component selected by the component selection control is copied to the second card template.
[0098] It should be noted that when copying through the above-mentioned second editing interface, if the second card template contains card components originally added by the user, after copying, the card components selected from the first card template will overwrite the original card components in the second card template, so that the card components in the second card template are the same as those in the first card template.
[0099] In one possible implementation, when copying is performed through the above-mentioned second editing interface, in order to further simplify the copy operation, a full copy control is also provided in the second editing interface. If the user triggers the full copy control, all card components in the first card template will be copied to the second card template, and a prompt message will be displayed next to the full copy control, and the prompt message indicates that all card components in the first card template will be copied to card templates of other sizes.
[0100] With the above Fig.11 In the example, when the user touches the bottom plate to select control 1102, the sizes selected are 2*4 and 2*2 respectively. It is necessary to explain that the card component of the card module of 2*4 size is copied to the card module of 2*2 size. That is, the first card module is a card module of 2*4 size, and the second card module is a card module of 2*2 size.
[0101] Optionally, in the case where the card templates of at least two sizes include three or more sizes, the number of second card templates selected through the base plate selection control can be multiple, so that the card components in the first card template are copied to the card templates of other selected sizes. For example, the sizes of the card templates include 2*4, 2*2 and 2*1, respectively. After adding the card components to the 2*4 card template, the 2*4 card template is equivalent to the first card template. The user can select the base plate selection control to select copy to 2*2 and 2*1, and copy the card components in the 2*4 card template to the 2*2 and 2*1 card templates at one time.
[0102] Optionally, in the above-mentioned copying process, the layout of each card component copied to the second card template is the same as the layout of each card component in the first card template. That is to say, in this solution, in addition to copying the content of the card component, each card component copied to the second card template is laid out according to the layout style of each card component in the first card template, so as to obtain a second card template with the same layout content and each card component contained therein.
[0103] Please refer to Fig.12 , which shows that an exemplary embodiment of the present application involves Fig.10 Another interface diagram of the second editing interface. Fig.12 As shown, the second editing interface 1200 includes prompt information 1201 , a base plate selection control 1202 , a confirmation control 1103 , and a cancel control 1104 . Fig.12 is Fig.10 The copy control is based on the full copy function, and this solution shows an interface diagram of the second editing interface.
[0104] Please refer to Fig.13 , which shows that an exemplary embodiment of the present application involves Fig.10 Another schematic diagram of the first editing interface. Fig.13 In it, it includes that after the above-mentioned full copy is triggered, each card component in the first card template (2*2 size card template) is copied to 1*2, and the user selects the 1*2 size view control to display the 1*2 card template 1301, and after the above-mentioned full copy is triggered, each card component in the first card template (2*2 size card template) is copied to 1*2, and the user selects the 1*2 size view control to display the 2*4 card template 1302.
[0105] Step 406: Generate a target card according to at least one card template including a card component.
[0106] Optionally, in this solution, when finally generating the target card, the user can select at least one of the card templates containing the card components to generate. Fig. 9 or Fig.10 In the process of making the electronic device execute the above copying process, after the electronic device executes the above copying process, the user can choose to use the first card template to generate a target card with the same size as the first card template, or can choose to use the second card template to generate a target card with the same size as the second card template. For example, in the case where at least two sizes include 2*4, 2*2 and 2*1, the card components of the 2*4 card template have been copied to the 2*2 and 2*1 card templates through the above copying operation, and the user can choose to use any one of the 2*4, 2*2 and 2*1 card templates and the card components contained in each to generate a target card. For example, in the above Fig.13 In the interface shown, the corresponding start generation control on the 1302 side is triggered, and finally a target card of 2*4 size can be generated.
[0107] Optionally, the process of generating the target card in the electronic device may be a process of combining the card module with the added card component, and the final combined card is the generated target card.
[0108] In one possible implementation, when an electronic device generates a target card based on at least one card template including a card component, the electronic device may first adjust component parameters of the card components in each card template according to the respective sizes of the card templates so that the card components in each card template conform to the size of the card template in which it is located; and generate a target card based on the target card template and the component parameters of the adjusted card components included in the target card template, wherein the target card template is any one of the card templates including the card components.
[0109] Optionally, the component parameters of the card component include the size, color, and location of the card component in the card template. For example, if the card component is a text component, the component parameters include the font size and color of the text, and the location of the file in the card template. The component parameters here are exemplified by text. In actual applications, other card components may also have their own component parameters (such as color saturation and image size of an image), which will not be given one by one here.
[0110] Optionally, the electronic device adjusts the component parameters of each card component in each card template according to the respective sizes of each card template, so that the card components in each card template conform to the size of the current card template. When generating a target card, the user can select the target card template to generate. The target card template is any one of the above-mentioned card templates with various sizes of card components added / copied. Optionally, the above-mentioned adjustment process may also be that the electronic device receives a user's response to adjust the card templates and card components in the template display area in the above-mentioned first editing interface, and based on the user's manual adjustment, the card components in each card template conform to the size of the current card template.
[0111] In one possible implementation, the process in which the electronic device adjusts the component parameters of the card components in each card template according to the respective sizes of each card template may be as follows: determining the adjustment ratio of the card components in each card template according to the proportional relationship between each card template and the first card template; and adjusting the component parameters of the card components copied to each card template according to the corresponding adjustment ratio of each card template. That is, the electronic device may calculate the proportional relationship between each card template and the first card template, determine the adjustment ratio of the card components in each card template based on the proportional relationship, and scale the component parameters of the card components copied to each card template according to the adjustment ratio, so that the card components in each card template meet the size of the current card template.
[0112] For example, in the case where at least two sizes include 2*4, 2*2 and 2*1, the card component of the 2*4 card template has been copied to the 2*2 and 2*1 card templates through the above copy operation. In this step, the electronic device can calculate the proportional relationship of the 2*2 card template to the 2*4 card template (the length is 1:1 and the width is 1:2). Then, the corresponding adjustment ratio is 1:1*1:2=1:2. The component parameters of the card component are multiplied by the adjustment ratio to adjust the card component copied to the 2*2 card template to meet the size requirements of the 2*2 card template. Similarly, the electronic device can calculate the proportional relationship of the 2*1 card template to the 2*4 card template (the length is 1:1 and the width is 1:4). Then, the corresponding adjustment ratio is 1:1*1:4=1:4. The component parameters of the card component are multiplied by the adjustment ratio to adjust the card component copied to the 2*1 card template to meet the size requirements of the 2*1 card template. For example, the card component is a text component, and the component parameter can be the size of the text. After copying the text content added to the 2*4 card template to the 2*2 card template and the 2*1 card template, the text size can be reduced by 2 times and 4 times respectively, so that the text size copied to the 2*2 card template meets the size requirement of the 2*1 card template, and the text size copied to the 2*1 card template meets the size requirement of the 2*1 card template.
[0113] It should be noted that the electronic device can also provide the user with the function of manually adjusting the component parameters of the card components added or copied in each card template, and adjust the component parameters of the corresponding card components in response to the user's triggering operation so that the card components in each card template conform to the size of the current card template.
[0114] In a possible implementation, the electronic device may also generate a target card based on multiple card templates including card components, so that the generated target card has a display form of multiple sizes. In the process of generating the target card, a size is used as the display size of the target card (this size may be a size currently selected by the user), and a target card of the display size is generated, and other sizes and component parameters of the corresponding card components are stored and recorded corresponding to the target card, so that the target card has the property of being displayed in multiple sizes, and when switching between multiple sizes, the card component is also switched accordingly.
[0115] The following is an example where the electronic device is a mobile phone, and the card components in a card template of one size are copied to card templates of other sizes by full copying in the mobile phone. The flowchart for performing card size modification in the process of creating a card in the mobile phone is as follows: Please refer to Fig.14, which shows a schematic diagram of a card size modification process involved in an exemplary embodiment of the present application. Fig.14 As shown, the method may include the following steps:
[0116] Step 1401, start creating a new card.
[0117] Step 1402, select various sizes of cards.
[0118] Step 1403, generate card templates of various sizes.
[0119] Step 1404, build in a card template of one size.
[0120] Step 1405, full style copy.
[0121] Step 1406, select other sizes to copy to, and copy all the card components built in the above card template to the card templates of other sizes.
[0122] Step 1407, adjusting the card components copied to the card templates of other sizes.
[0123] exist Fig.14 In the end, you can also choose to generate the target card. For example, the user can select any size of card and the corresponding card component to generate. During the card generation process, through the process of this solution, you can flexibly switch to card templates of different sizes without having to exit and recreate them separately, which improves the flexibility of modifying cards.
[0124] In summary, the electronic device generates card templates of at least two sizes, and the card templates are used to generate a target card; after adding a card component in the first card template, the card component in the first card template is copied to the second card template, the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size of the card templates of at least two sizes except the first card template; the target card is generated according to at least one card template containing the card component. In the present application, the electronic device can generate card templates of at least two different sizes, and the card component added to a card template can be directly copied to other card templates. If the user wants to modify the size of the generated card, the user can select the corresponding card templates of different sizes. The user does not need to make cards of each size separately or return to the initial step of creating the card, which reduces the steps of adjusting the size in the process of generating the card and improves the efficiency of adjusting the card size in the process of generating the card by the electronic device.
[0125] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0126] Please refer to Fig.15 , which shows a structural block diagram of a card generation device provided by an exemplary embodiment of the present application. The card generation device 1500 can be used in an electronic device with a display screen to execute all or part of the steps performed by the electronic device in the methods provided by the above-mentioned various embodiments. The card generation device 1500 includes:
[0127] A first generating module 1501 is used to generate card templates of at least two sizes, wherein the card templates are used to generate a target card;
[0128] A first copying module 1502 is used for copying the card components in a first card template to a second card template after adding the card components in the first card template, wherein the first card template is any one of the at least two sizes of card templates, and the second card template is a card template of another size of the at least two sizes of card templates except the first card template;
[0129] The second generating module 1503 is used to generate the target card according to at least one card template including the card component.
[0130] In summary, the electronic device generates card templates of at least two sizes, and the card templates are used to generate a target card; after adding a card component in the first card template, the card component in the first card template is copied to the second card template, the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size of the card templates of at least two sizes except the first card template; the target card is generated according to at least one card template containing the card component. In the present application, the electronic device can generate card templates of at least two different sizes, and the card component added to a card template can be directly copied to other card templates. If the user wants to modify the size of the generated card, the user can select the corresponding card template of different sizes to indirectly complete the modification of the card size. The user does not need to make cards of each size separately or return to the initial step of creating the card, which reduces the steps of adjusting the size in the process of generating the card and improves the efficiency of adjusting the card size in the process of generating the card by the electronic device.
[0131] Optionally, the first copying module 1502 includes: a first display unit, a first adding unit and a first copying unit;
[0132] The first display unit is used to display a first editing interface, which includes the first card template, a component adding control and a copy control, and the component adding control is used to add various card components;
[0133] The first adding unit is used to add each selected card component to the first card template in response to a triggering operation of adding a control to the component;
[0134] The first copying unit is used to copy each card component added in the first card template to the second card template in response to a triggering operation on the copy control.
[0135] Optionally, the first replication unit includes: a first display subunit and a first replication subunit;
[0136] The first display subunit is used to display a second editing interface, wherein the second editing interface includes a component selection control and a base plate selection control, wherein the component selection control is used to select each card component included in the first card template, and the base plate selection control is used to select the second card template;
[0137] The first copy subunit is used to copy each card component in the first card template selected based on the component selection control to the second card template selected based on the base selection control in response to the selection operation of the component selection control and the selection operation of the base selection control.
[0138] Optionally, the layout of each card component copied to the second card template is the same as the layout of each card component in the first card template.
[0139] Optionally, the first editing interface further includes viewing controls for each of the generated card templates of at least two sizes and a template display area, wherein the template display area is used to display the card template corresponding to the first viewing control, and the first viewing control is any one of the viewing controls;
[0140] The device also includes:
[0141] A first display module is used to display a card template corresponding to the first viewing control in the template display area in response to a touch operation on the first viewing control in the first editing interface.
[0142] Optionally, the first generating module 1501 includes: a second display unit and a first generating unit;
[0143] The second display unit is used to display a target creation interface, wherein the target creation interface includes a card creation control and selection controls of different sizes;
[0144] The first generating unit is used to generate a creation instruction in response to a selection operation on at least two selection controls of different sizes and trigger the card creation control, and generate the card templates of the at least two different sizes based on the creation instruction.
[0145] Optionally, the target creation interface further includes a card preview area, and the device further includes:
[0146] A second display module, used to display card templates of different sizes and corresponding selection controls in the card preview area;
[0147] The third display module is used to display the card template corresponding to the selected size in the card preview area in response to the triggering operation of the selection control of each card template of different sizes.
[0148] Optionally, the target creation interface further includes a style selection control; the style selection control is used to select a basic style for generating the card templates of at least two sizes; the generating creation instruction includes:
[0149] In response to a selection operation on a style selection control, a selection operation on at least two different size selection controls, and triggering the card creation control, the creation instruction is generated based on the selected basic style and the selected at least two different sizes, so that the electronic device generates the at least two different size card templates according to the basic style based on the creation instruction.
[0150] Optionally, the second generating module 1503 includes: a first adjusting unit and a second generating unit;
[0151] The first adjustment unit is used to adjust the component parameters of the card components in each card template according to the size of each card template, so that the card components in each card template meet the size of the card template;
[0152] The second generating unit is used to generate the target card according to the target card template and the component parameters of the adjusted card component included in the target card template, wherein the target card template is any one of the card templates including the card component.
[0153] Optionally, the first adjustment unit is further used to:
[0154] Determining the adjustment ratio of the card components in each card template according to the ratio relationship between each card template and the first card template;
[0155] The component parameters of the card components copied to the respective card templates are adjusted according to the respective corresponding adjustment ratios of the respective card templates.
[0156] Optionally, an embodiment of the present application further provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the computer program to implement all or part of the steps performed by the electronic device in the card generation method of each of the above embodiments.
[0157] Optionally, an embodiment of the present application further provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, it implements all or part of the steps performed by the electronic device in the card generation method of each of the above embodiments.
[0158] Optionally, an embodiment of the present application further provides a chip, which includes an executable computer program. When the chip executes the computer program, it implements all or part of the steps performed by the electronic device in the card generation method of each of the above embodiments.
[0159] Optionally, an embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute all or part of the steps of the card generation method of each of the above embodiments, which are executed by the electronic device.
[0160] Optionally, an embodiment of the present application further provides an application publishing platform, which is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes the card generation method of each of the above embodiments, all or part of the steps executed by the electronic device.
[0161] It should be noted that: when the device provided in the above embodiment performs the control of the electronic device, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0162] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0163] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0164] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A card generation method, characterized in that: Applied to electronic equipment, the method comprises: Generate card templates of at least two sizes, wherein the card templates are used to generate target cards; After adding a card component to a first card template, copying the card component in the first card template to a second card template, wherein the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size among the card templates of at least two sizes except the first card template; The target card is generated according to at least one card template including the card component.
2. The method according to claim 1, characterized in that: After adding the card component in the first card template, copying the card component in the first card template to the second card template includes: Displaying a first editing interface, wherein the first editing interface includes the first card template, a component adding control, and a copy control, wherein the component adding control is used to add various card components; In response to a triggering operation of adding a control to the component, adding each selected card component to the first card template; In response to a triggering operation on the copy control, each card component added in the first card template is copied to the second card template.
3. The method according to claim 2, characterized in that The step of copying each card component added to the first card template to the second card template in response to the triggering operation on the copy control includes: Displaying a second editing interface, wherein the second editing interface includes a component selection control and a base selection control, wherein the component selection control is used to select each card component included in the first card template, and the base selection control is used to select the second card template; In response to the selection operation on the component selection control and the selection operation on the base plate selection control, each card component in the first card template selected based on the component selection control is copied to the second card template selected based on the base plate selection control.
4. The method according to claim 2, characterized in that: The layout of each card component copied to the second card template is the same as the layout of each card component in the first card template.
5. The method according to claim 2, characterized in that: The first editing interface also includes viewing controls for the generated card templates of at least two sizes and a template display area, wherein the template display area is used to display the card template corresponding to the first viewing control, and the first viewing control is any one of the viewing controls; The method further comprises: In response to a touch operation on a first viewing control in the first editing interface, a card template corresponding to the first viewing control is displayed in the template display area.
6. The method according to claim 1, characterized in that The generating of card templates of at least two sizes includes: Displaying a target creation interface, wherein the target creation interface includes a card creation control and selection controls of different sizes; In response to a selection operation on at least two selection controls of different sizes and triggering the card creation control, a creation instruction is generated, and based on the creation instruction, the card templates of the at least two different sizes are generated.
7. The method according to claim 6, characterized in that The target creation interface also includes a card preview area, and the method further includes: In the card preview area, display card templates of different sizes and corresponding selection controls; In response to the triggering operation of the selection control for each card template of different sizes, the card template corresponding to the selected size is displayed in the card preview area.
8. The method according to claim 6, characterized in that The target creation interface also includes a style selection control; the style selection control is used to select a basic style for generating the card templates of at least two sizes; the generation creation instruction includes: In response to a selection operation on a style selection control, a selection operation on at least two different size selection controls, and triggering the card creation control, the creation instruction is generated based on the selected basic style and the selected at least two different sizes, so that the electronic device generates the at least two different size card templates according to the basic style based on the creation instruction.
9. The method according to claim 1, characterized in that: The step of generating the target card according to at least one card template including the card component comprises: According to the respective sizes of the card templates, adjust the component parameters of the card components in each card template so that the card components in each card template conform to the size of the card template in which they are located; The target card is generated according to a target card template and component parameters of the adjusted card component included in the target card template, wherein the target card template is any one of the card templates including the card component.
10. The method according to claim 9, characterized in that The step of adjusting the component parameters of the card components in each card template according to the respective sizes of each card template includes: Determining the adjustment ratio of the card components in each card template according to the ratio relationship between each card template and the first card template; The component parameters of the card components copied to the respective card templates are adjusted according to the respective corresponding adjustment ratios of the respective card templates.
11. A card generating device, characterized in that: Applied to electronic equipment, the device comprises: A first generating module, used to generate card templates of at least two sizes, wherein the card templates are used to generate a target card; a first copying module, configured to copy the card component in the first card template to a second card template after adding the card component in the first card template, wherein the first card template is any one of the card templates of at least two sizes, and the second card template is a card template of another size among the card templates of the at least two sizes except the first card template; The second generating module is used to generate the target card according to at least one card template including the card component.
12. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program executable on the processor, and the processor implements the card generation method according to any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the card generation method according to any one of claims 1 to 10 is implemented.