Card generation method and electronic equipment

By receiving user selections in electronic devices and generating target cards, the problem that existing card functions and contents are difficult to meet user needs is solved, the operability and fun of cards are improved, and the user experience is improved.

CN119065533APending Publication Date: 2024-12-03HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310633823.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The functions, content and styles of cards in existing electronic devices are difficult to meet user needs, resulting in poor operability and low interest in cards, affecting user experience.

Method used

By receiving user selection operations, obtaining component information of candidate components, generating target cards, allowing users to customize the composition and display content of the cards, and enhancing the operability and fun of the cards.

Benefits of technology

Improve the user experience, and customize the composition and display content of the card, making it more in line with user needs, and enhances the function and fun of the card.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065533A_ABST
    Figure CN119065533A_ABST
Patent Text Reader

Abstract

According to the card generation method and the electronic equipment, a user can customize the composition of a card, so that the generated card better meets the requirements of the user, and the operability and interestingness of the card are also improved. In the method, the electronic device receives a first selection operation of a user, and the first selection operation is used for generating a target card. Afterwards, the electronic device responds to the first selection operation and obtains component information of at least two candidate components, and each candidate component is used for achieving the target function and / or displaying the target resource content. And finally, the electronic equipment generates a target card according to the component information of the at least two candidate components, and the target card comprises the at least two candidate components and / or target resource contents corresponding to the at least two candidate components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a card generation method and electronic device. Background Art

[0002] Most electronic devices provide card services for users, such as displaying cards on a page, through which users can enter corresponding applications, quickly view important content, or quickly implement a function. Among them, the card can be a component provided by a third-party application on the electronic device, or a component provided by the system application of the electronic device, such as a system clock component, a system weather component, etc.

[0003] Although electronic devices can display cards, the functions, contents, styles, etc. of the cards currently displayed are usually difficult to meet the needs of users, and the cards are poorly operable and low in interest, which affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide a card generation method and an electronic device. On the electronic device, a user can customize the composition of a card so that the generated card better meets the needs of the user and increases the operability and fun of the card.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] In a first aspect, a card generation method is provided, in which an electronic device receives a first selection operation from a user, and in response to the first selection operation, obtains component information of at least two candidate components. Thereafter, the electronic device generates a target card based on the component information of the at least two candidate components.

[0007] The candidate components are used to implement the target function and / or display the target resource content. In some possible application scenarios, the component information includes the first attribute information of the candidate component and / or the second attribute information of the target resource content. The candidate component can be a constituent element of a target card, and the generated target card includes at least two candidate components and / or the target resource content corresponding to at least two candidate components.

[0008] In some possible application scenarios, the candidate component may be a basic component provided by the electronic device, which may provide the entry and function of any application, or display the resources corresponding to any application, etc. In other possible application scenarios, the candidate component may also be a component corresponding to the target application on the electronic device, which may provide the function of the entry of the target application, or display the resources corresponding to the target application, etc. Among them, the application on the electronic device may be a third-party application or a system application of the electronic device.

[0009] In the above card generation method, the user can select at least two candidate components according to the needs, so that the electronic device generates a target card using at least two candidate components according to the user's selection. The target card can include candidate components, which can be elements in the target card. Since the candidate components can realize the target function and / or display the target resource content, the candidate components can be displayed in the target card to provide the corresponding function and / or display the target resource content of the candidate components. In this way, the user can customize the composition of the target card and the content displayed by the target card, the operability of the target card is enhanced, the fun is also increased, and the composition and displayed content of the target card are more in line with the needs of the user, thereby improving the user's experience.

[0010] In an implementation of the first aspect, the electronic device displays a first property setting item corresponding to the first property information of the candidate component in response to a first selection operation. Thereafter, the electronic device receives a second selection operation of the user on the first property setting item, and obtains the first property information corresponding to the second selection operation. Alternatively, the electronic device receives a second input operation of the user on the first property setting item, and obtains the first property information corresponding to the second input operation.

[0011] In this implementation, users can customize the first attribute information of candidate components according to their preferences or needs. This not only improves the operability and fun of component selection, but also makes the target card generated by at least two candidate components more in line with the user's preferences and needs, thereby improving the user's usage experience.

[0012] In some possible application scenarios, the first attribute information of the candidate component includes one or more of the following information: the candidate component type, the candidate component style, and the target position of the candidate component in the target card determined in response to the first selection operation.

[0013] In an implementation of the first aspect, the electronic device, in response to the first selection operation, displays the second attribute setting item corresponding to the second attribute information of the target resource content of the candidate component when the candidate component type is one or more of an image component and a text component. Afterwards, the electronic device receives a third selection operation of the user on the second attribute setting item, and obtains the second attribute information corresponding to the third selection operation. Alternatively, the electronic device receives a third input operation of the user on the second attribute setting item, and obtains the second attribute information corresponding to the third input operation.

[0014] In this implementation, users can customize the second attribute information of candidate components according to their preferences or needs. This not only improves the operability and fun of component selection, but also makes the target card generated by at least two candidate components more in line with the user's preferences and needs, thereby improving the user's usage experience.

[0015] In some possible application scenarios, the second attribute information of the target resource content includes one or more of the source, refresh frequency, and display duration of the target resource content.

[0016] In an implementation of the first aspect, the electronic device obtains the target resource content according to the source of the target resource content in the second attribute information, and displays the candidate component in the target card according to the target position and / or the candidate component style in the first attribute information. Then, the electronic device displays the target resource content in the candidate component according to the refresh frequency and / or display duration in the second attribute information.

[0017] In an implementation of the first aspect, when the candidate component type is a button component, the electronic device displays the button component in the target card according to the target position and the candidate component style in the first attribute information. Then, according to the target function corresponding to the button component, the electronic device displays information corresponding to the target function in the button component.

[0018] In the above-mentioned implementations, the content displayed in the target card matches the candidate component selected by the user, or in some cases, the content displayed in the target card also matches the attribute information selected by the user, so that the target card better meets the needs of the user.

[0019] In an implementation of the first aspect, the electronic device receives a voice control instruction input by a user, and in response to the voice control instruction, displays a component page including at least two candidate components. Alternatively, the electronic device receives a first input operation from the user, and in response to the first input operation, displays a component page including at least two candidate components. Alternatively, the electronic device receives a long press operation from the user on a blank position or a non-functional position on the screen of the electronic device, and in response to the long press operation, displays a component page including at least two candidate components. The blank position or non-functional position indicates a screen position where no application icon, component, control, or card is placed. Finally, the electronic device receives a first selection operation from the user on at least two candidate components.

[0020] In this implementation, the electronic device can provide users with access to multiple card generation functions, so that users can more flexibly control the electronic device display component page, providing users with a better user experience.

[0021] In some possible application scenarios, the first selection operation includes one or more of long pressing, clicking, and dragging.

[0022] And, in some other possible application scenarios, the at least two candidate components selected by the user may come from different applications or from the same application.

[0023] In an implementation manner of the first aspect, the electronic device generates a description file of a target card based on component information of at least two candidate components, wherein the description file includes one or more of view tree description information between candidate components in the target card, control description information of the target card, and data description information of the target card. Then, the electronic device generates the target card based on the description file.

[0024] In this implementation, the description file not only represents the complete component information of the target card finally generated, but can also be recognized by the electronic device, so that the electronic device can more accurately generate the target card that meets the user's needs based on the above description file.

[0025] In a second aspect, a card generation method is provided, in which a user interaction module receives a first selection operation of a user, and in response to the first selection operation, sends an indication message to a card description generation module; the first selection operation is used to generate a target card. The card description generation module obtains component information of a first component and component information of a second component according to the indication message, and generates a description file of a target card based on the component information of the first component and the component information of the second component, and sends the description file to a content providing module and a card host module respectively; the first component and the second component are used to implement a target function and / or display target resource content respectively. The content providing module obtains the first target resource content corresponding to the first component and the second target resource content corresponding to the second component according to the description file, and sends the first target resource content and the second target resource content to the card host module. The card host module displays a target card including the first target resource and the second target resource content according to the description file, the first target resource content and the second target resource content.

[0026] In an implementation method of the second aspect, the card description generation module displays the first attribute setting item corresponding to the first attribute information of the first component according to the indication information; the card description generation module receives the user's second selection operation on the first attribute setting item, and obtains the first attribute information corresponding to the second selection operation; or, the card description generation module receives the user's second input operation on the first attribute setting item, and obtains the first attribute information corresponding to the second input operation.

[0027] In an implementation method of the second aspect, the card description generation module displays the second attribute setting item corresponding to the second attribute information of the first target resource content of the first component according to the indication information when the type of the first component is one or more of a picture component and a text component; the card description generation module receives a third selection operation of the user on the second attribute setting item, and obtains the second attribute information corresponding to the third selection operation; or, the card description generation module receives a third input operation of the user on the second attribute setting item, and obtains the second attribute information corresponding to the third input operation.

[0028] In an implementation manner of the second aspect, the content providing module obtains the first target resource content and the second target resource content respectively according to the data description information in the description file.

[0029] In an implementation of the second aspect, the user interaction module receives a voice control instruction input by a user, and displays a component page including at least two candidate components in response to the voice control instruction. Alternatively, the user interaction module receives a first input operation from a user, and displays a component page including at least two candidate components in response to the first input operation. Alternatively, the user interaction module receives a long press operation from a user on a blank position or a non-functional position on the screen of an electronic device, and displays a component page including at least two candidate components in response to the long press operation. Wherein, a blank position or a non-functional position indicates a screen position where no application icon, component, control, or card is placed. Finally, the user interaction module receives a first selection operation from a user on at least two candidate components.

[0030] In an implementation manner of the second aspect, the component information of the first component includes first attribute information of the first component and / or second attribute information of the target resource content displayed by the first component, and the component information of the second component includes first attribute information of the second component and / or second attribute information of the target resource content displayed by the second component.

[0031] In an implementation manner of the second aspect, the first component comes from a first application, and the second component comes from a second application; the first application is different from the second application.

[0032] In a third aspect, an electronic device is provided, including a user interaction module, a card description generation module, a content providing module and a card host module. The user interaction module is used to receive a first selection operation of a user, and in response to the first selection operation, send an indication message to the card description generation module, wherein the first selection operation is used to generate a target card; the card description generation module is used to obtain component information of a first component and component information of a second component according to the indication message, and generate a description file of the target card based on the component information of the first component and the component information of the second component, and send the description file to the content providing module and the card host module respectively, wherein the first component and the second component are used to implement a target function and / or display target resource content respectively; the content providing module is used to obtain a first target resource content corresponding to the first component and a second target resource content corresponding to the second component according to the description file, and send the first target resource content and the second target resource content to the card host module; the card host module is used to display a target card including the first target resource and the second target resource content according to the description file, the first target resource content and the second target resource content.

[0033] In a fourth aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a card generation method as in the first aspect and any implementation thereof, or executes a card generation method as in the second aspect and any implementation thereof.

[0034] In a fifth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes a card generation method as in the first aspect and any implementation thereof, or executes a card generation method as in the second aspect and any implementation thereof.

[0035] In a sixth aspect, a computer program product is provided. When the computer program product runs on a computer, it enables the computer to execute the card generation method as in the first aspect and any implementation thereof, or execute the card generation method as in the second aspect and any implementation thereof.

[0036] It can be understood that the beneficial effects that can be achieved by the card generation method described in the second aspect, the electronic device described in the third aspect, the electronic device described in the fourth aspect, the computer-readable storage medium described in the fifth aspect, and the computer program product described in the sixth aspect can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1This is a schematic diagram of a currently commonly used card shown in an embodiment of the present application;

[0038] Figure 2 The structure of the electronic device shown in the embodiment of the present application is shown in FIG. Figure 1 ;

[0039] Figure 3 A schematic diagram of a communication system shown in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of candidate components shown in an embodiment of the present application;

[0041] Figure 5 Schematic diagram of the target card shown in the embodiment of the present application Figure 1 ;

[0042] Figure 6 The structure of the electronic device shown in the embodiment of the present application is shown in FIG. Figure 2 ;

[0043] Figure 7 A schematic diagram of a card generation method according to an embodiment of the present application;

[0044] Figure 8 Schematic diagram of the component page shown in the embodiment of this application Figure 1 ;

[0045] Fig. 9 Schematic diagram of the component page shown in the embodiment of this application Figure 2 ;

[0046] Fig.10 Schematic diagram of the component page shown in the embodiment of this application Figure 3 ;

[0047] Fig.11 Schematic diagram of the component page shown in the embodiment of this application Figure 4 ;

[0048] Fig.12 Schematic diagram of the target card shown in the embodiment of the present application Figure 2 ;

[0049] Fig.13 Schematic diagram of the target card shown in the embodiment of the present application Figure 3 ;

[0050] Fig.14 The structure of the electronic device shown in the embodiment of the present application is shown in FIG. Figure 3 . DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0052] In addition, the business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0053] At present, most electronic devices (such as mobile phones, tablet computers, etc.) provide card services for users, such as displaying cards on a page, and users can use the cards to enter the corresponding application (APP), quickly view important content, or quickly implement a certain function. Among them, the card can be a component provided by a third-party APP on the electronic device, or it can be a component provided by the system APP of the electronic device, such as a system clock component, a system weather component, etc.

[0054] For example, see Figure 1As shown in , different cards such as card 101, card 102, card 103, and card 104 can be displayed on the mobile phone. Among them, card 101 is a component corresponding to the third-party APP "XX Music", which can display the music content played by the user last time, display the current music playback progress, or display recommended music content; card 102 is a system weather component provided by the mobile phone, which can display the current weather conditions, or display the weather conditions in the next few days; card 103 is a component corresponding to the third-party APP "XX Map", which can display the user's current location, or display the entry control for searching a specific location; card 104 is a health component provided by the mobile phone, which can display the user's current exercise steps, kilometers, exercise time, etc.

[0055] Electronic devices can usually display the above cards based on a variety of modules. For example, see Figure 2 As shown, the electronic device includes a card host module 201, a card management module 202 and a card content providing module 203. The card host module 201 is used to display the card. Generally, the card host module 201 can be a module or application of the user interface (UI) layer of the electronic device.

[0056] The card providing module 203 is used to provide data and content for the display of the card. Cards from different applications correspond to independent card providing modules 203 , while cards from the same application correspond to the same card providing module 203 .

[0057] The card management module 202 is used to manage the card host module 201 and the card content providing module 203, send the card host module 201's card display requirements to the card content providing module 203, and then send the data and content provided by the card content providing module 203 to the card host module 201.

[0058] Although electronic devices can display cards, the functions of the above cards, the displayed content, the card style, the card display method, etc. are usually preset by the developer of the third-party APP for the third-party APP, or are pre-set by the developer of the electronic device for the system application, system function, etc. of the electronic device. That is, users cannot set the card content, card style, card display method, etc. according to their own needs. This will result in poor operability and low interest of the cards, making it difficult to meet the increasing needs of users and affecting the user experience.

[0059] Based on the above content, an embodiment of the present application provides a card generation method. In the method, an electronic device receives a first selection operation from a user. Afterwards, the electronic device obtains component information of at least two candidate components in response to the first selection operation. Finally, the electronic device generates a target card based on the component information of at least two candidate components, and the target card includes at least two candidate components and / or target resource content corresponding to at least two candidate components.

[0060] The above-mentioned candidate components are used to realize the target function and / or display the target resource content. Exemplarily, if the user selects at least two candidate components to generate a target card, then at least two candidate components can be some elements in the target card. If the user selects one candidate component to generate a target card, then this candidate component can be one or more elements in the target card: or, the candidate component can also be the target card itself.

[0061] In some possible application scenarios, the candidate component may be a basic component provided by the electronic device, which may provide the entry and function of any APP, or display the resources corresponding to any APP, etc. In other possible application scenarios, the candidate component may also be a component corresponding to the target APP on the electronic device, which may provide the function of the entry of the target APP, or display the resources corresponding to the target APP, etc. Among them, the APP on the electronic device may be a third-party APP or an electronic device system APP.

[0062] In some possible application scenarios, the target resource content displayed by the candidate component may be preset or determined according to the user's selection, and the target resource content displayed by the candidate component may be one or more of text content and image content.

[0063] In the card generation method provided in the embodiment of the present application, the user can select at least two candidate components according to the needs, so that the electronic device generates a target card using at least two candidate components according to the user's selection. The candidate components can be elements in the target card. Since the candidate components can realize the target function and / or display the target resource content, the target card can display the candidate components to provide the corresponding functions and / or display the target resource content of the candidate components. In this way, the user can customize the composition of the target card and the content displayed by the target card, the operability of the target card is enhanced, the fun is also increased, and the composition of the target card and the displayed content are more in line with the needs of the user, thereby improving the user's experience.

[0064] The card generation method provided in the embodiment of the present application can be applied to a communication system. Figure 3As shown, the communication system includes an electronic device 301 and a server 302, and a communication connection can be established between the electronic device 301 and the server 302. Furthermore, the server 302 can also include a server 3021 and a server 3022.

[0065] The user can customize the “card”, ie, the target card, on the electronic device 301 according to his / her own preferences or needs.

[0066] In some possible application scenarios, the user can control the electronic device 301 to display a component page including multiple candidate components by inputting voice commands, inputting search content on the display page, or selecting a target control on the display page. The user selects a candidate component from multiple candidate components according to his or her preferences or needs, such as selecting at least one, at least two, etc. The electronic device 301 generates a target card using the candidate component selected by the user in response to the user's selection operation. It is understandable that if the user selects at least two candidate components, then the at least two candidate components can come from different APPs or from the same APP.

[0067] In some possible application scenarios, the candidate components may be basic components provided by the electronic device 301, which provide the entry and functions of any APP, or display the resources corresponding to any APP, etc. Alternatively, the candidate components may also be components corresponding to the target APP on the electronic device 301, which provide the function of the entry of the target APP, or display the resources corresponding to the target APP, etc.

[0068] In addition, the APP on the electronic device 301 can be a third-party APP. The electronic device 301 can obtain the installation package of the third-party APP from the server 302 and install the third-party APP locally on the electronic device 301; or, the APP on the electronic device 301 can also be a system APP on the electronic device 301, such as "Application Market", "Address Book", "Phone" and other system APPs.

[0069] For some possible application scenarios, see Figure 4 As shown in (a), candidate components may include multiple types, such as a button component 401, an image component 402, a text component 403, a progress bar component 404, etc. Among them, the button component 401 and the progress bar component 404, etc. may provide target functions, such as providing an APP entrance, displaying resource download progress, battery power, providing control controls, etc.; the image component 402, the text component 403, etc. may display image resources, text resources, and other contents.

[0070] When selecting a candidate component, the user can move the candidate component to the target position by dragging or other means, and combine and place the selected candidate components, etc. The electronic device 301 obtains the component information of the candidate component in response to the user's selection operation. The component information includes the first attribute information of the candidate component and / or the second attribute information of the target resource content displayed by the candidate component.

[0071] In some examples, each page of the desktop of the electronic device can place 5*6, 4*6 or 4*5 application icons, among which 1*1 can be the size occupied by an application icon. Correspondingly, the size of the target card can be 1*2, 2*2, 2*3, 2*4, 3*4 or 4*4, etc.

[0072] In other examples, the size of the card may be 1*1.

[0073] In some examples, the user can select the size of the card to be created. For example, the user can choose to create a 2*4 card or a 2*2 card.

[0074] In other examples, the electronic device may generate a card size that can accommodate the selected candidate components in response to the user's selection of the candidate components. For example, if the user selects three candidate components, the electronic device may generate a card of size 2*2 or 2*4.

[0075] In some possible application scenarios, the candidate component does not need to display the target resource content, so the component information of the candidate component may only include the first attribute information, wherein the first attribute information includes one or more of the target position of the candidate component in the target card, the candidate component type, and the candidate component style determined in response to the first selection operation. When the user selects the candidate component to generate the target card, the candidate components are combined, and the specific combination methods include but are not limited to superimposed placement, tiled placement, embedded placement, etc. In addition, the target positions of the candidate components selected by the user may be the same or different.

[0076] In some other possible application scenarios, the candidate component needs to display the target resource content, and the component information of the candidate component may include only the second attribute information, or may include both the first attribute information and the second attribute information. The second attribute information includes one or more of the source, refresh frequency, and display duration of the target resource content displayed by the candidate component.

[0077] It is understandable that the style of the candidate components, the displayed target resource content, etc. can be preset by the electronic device 301 or a third-party APP, or can be determined according to the user's choice, and the target resource content can be a local resource from the electronic device 301, such as photos in the local gallery, text in the memo, etc., or a network resource obtained by the electronic device 301 from the server 302, such as real-time weather information, real-time location information, etc. In addition, the target resource content can be a resource provided by the system APP of the electronic device 301, or a resource provided by a third-party APP on the electronic device 301.

[0078] In addition, the refresh frequency and display duration of the target resource content may be preset attributes of the candidate component, or may be determined according to the user's selection. Figure 4 Taking the content shown in (b) as an example, the second attribute information obtained by the electronic device may include the preset attributes of candidate component 406, the user setting attributes corresponding to candidate component 407, and the user setting attributes of candidate component 408.

[0079] Please refer to Figure 3 In some possible application scenarios, server 302 can be a separate device or a device cluster composed of multiple servers. For example, server 302 can also include server 3021 and server 3022. Different servers in the device cluster can correspond to different third-party apps or system apps. For example, the candidate component corresponding to the system app "Weather" of electronic device 301 needs to display real-time weather content, so electronic device 301 needs to obtain real-time weather data or weather information from the server corresponding to the "Weather" application; the candidate component corresponding to the third-party app "XX Video" of electronic device 301 needs to display the content of the currently popular film and television drama (such as film and television drama stills, film and television drama titles, etc.), so electronic device 301 needs to obtain film and television drama recommendation data or film and television drama recommendation information from the server corresponding to "XX Video".

[0080] It is understandable that the at least two candidate components selected by the user may correspond to the same APP or different APPs. Therefore, the target card 501 generated according to the candidate components may display the function, entrance or target resource content of a certain APP, for example Figure 5 As shown in (a) in the figure, or, the functions, entrances or target resource contents of multiple APPs can also be displayed, for example Figure 5 As shown in (b) in .

[0081] In some possible application scenarios, after the electronic device 301 obtains the component information of the candidate component, it can convert the component information into a description file for generating a target card, or generate a description file based on the component information. The description information in the description file uses a language that can be recognized by the electronic device 301. Exemplarily, the description file may include one or more of the view tree description information, the control description information, and the data description information. Among them, the view tree description information is generated based on the hierarchical relationship, logical relationship, positional relationship, etc. between at least two candidate components selected by the user. The control description information is generated based on the refresh frequency of the target resource content of at least two candidate components selected by the user, the display duration of the target resource content, etc. The data description information is generated based on the target resource content, the source of the target resource content, etc.

[0082] When the card generation method of the embodiment of the present application is implemented based on the above-mentioned communication system, the user can select at least two candidate components on the electronic device according to the needs, so that the electronic device generates a target card using at least two candidate components according to the user's selection. The candidate component is an element in the target card. Since the candidate component can realize the target function and / or display the target resource content, the target card can display the candidate component to provide the corresponding function and / or display the target resource content of the candidate component. In this way, the user can customize the composition of the target card and the content displayed by the target card, the operability of the target card is enhanced, the interest is also increased, and the composition and displayed content of the target card are more in line with the needs of the user, thereby improving the user's experience.

[0083] In some embodiments, see Figure 6 As shown in (a), the electronic device may include a user interaction module 601, a card host module 602, a card description generation module 603, and a card management module 604. The card description generation module 603 may include a view description generation module 6031, a control description generation module 6032, a data description generation module 6033, a view component management service 6034, and a card description generation service 6035; the card management module 604 may include a card content provision module 6041, a card content provision module 6042, and a card content provision module 6043.

[0084] The user interaction module 601 can provide an interaction interface between the user and the electronic device, and receive the user's operation on the interaction interface, or the user interaction module 601 can receive a voice command input by the user, etc. After receiving the user's operation or input content, the user interaction module 601 can display multiple candidate components for the user, receive the user's selection operation for at least two candidate components among the multiple candidate components, and send indication information or selection results to the card description generation module 603, and the indication information or selection results may include the type of the candidate component, the identifier of the candidate component, the name of the candidate component, etc.

[0085] In some possible application scenarios, the card description generation module 603 includes a view component management service 6034 and a card description generation service 6035, etc. Exemplarily, after receiving the above indication information or selection result, the card description generation module 603 can obtain the component information of the candidate component selected by the user in response to the indication information, the selection operation, etc., such as the first attribute information of the candidate component, the second attribute information of the target resource content displayed by the candidate component, etc. Afterwards, the card description generation module 603 generates a description file of the target card according to the component information, and sends the description file to the card host module 602.

[0086] Among them, the candidate components may include basic components provided by the electronic device, such as a key component, a text component, a picture component, etc. The candidate components may also include extended components provided by an APP on the electronic device, such as a component corresponding to "XX music", a component corresponding to "XX weather", a component corresponding to "XX video", a component corresponding to "gallery", etc. It is understandable that the second attribute information of the basic component and the extended component can be preset or determined according to the user's selection.

[0087] In some possible application scenarios, an APP may provide cards of different sizes or display different resources. A card may include one or more components; these components may be used as candidate components for generating a target card in an embodiment of the present application. It should be understood that a candidate component may correspond to an element. At least two candidate components may be different elements of the same card in the same APP; or, they may be different elements of different cards in the same APP. In addition, at least two candidate components may be different elements of the same card in different APPs; or, they may be different elements of different cards in different APPs.

[0088] Exemplarily, a weather card includes a weather component and a time component, etc. A music card may include a cover component, a song information component, a play / pause component, a next song component, and a previous song component, etc. Among them, the weather component, the time component, the cover component, the song information component, the play / pause component, the next song component, and the previous song component can all be used as candidate components for generating a target card in an electronic device.

[0089] In some other possible application scenarios, the components provided by the electronic device can be classified as image components, text components, or key components, etc. For example, the weather component, cover component, etc. can be classified as image components, the time component, song information component, etc. can be classified as text components, and the play / pause component, next song component, next song component, etc. can be classified as key components. These image components, text components, key components, etc. can be used as candidate components for generating target cards in the embodiments of the present application.

[0090] In some examples, different types of components can be stacked, for example, displaying a text component or a button component on top of an image component.

[0091] It is understandable that the first attribute information, the second attribute information, etc. obtained by the card description generation module 603 are all primary information of the candidate component. During the processing by the card description generation module 603, the primary information can be adjusted by the view component management service 6034, and necessary container components, business control logic, etc. can be added to generate view component information and component rule information (or control information). On another level, the view component management service 6034 can manage various candidate components, such as basic components, extended components, etc., and can also manage the refresh rules and display rules of candidate components.

[0092] Afterwards, the card description generation module 603 relies on the view component information and component rule information as well as the card description generation service 6035 to generate a description file of the target card.

[0093] In some possible application scenarios, the card description generation module 603 may include a view description generation module 6031, a control description generation module 6032, and a data description generation module 6033. Furthermore, the view description generation module 6031 is used to generate the view tree description information in the above description file, the control description generation module 6032 is used to generate the control description information in the above description file, and the data description generation module 6033 is used to generate the data description information in the above description file.

[0094] The description information in the description file is in a machine language or description language that can be recognized by the card host module 602. After receiving the description file, the card host module 602 can generate a target card according to the description file. Exemplarily, the card host module 602 can obtain the target resource content to be displayed by the target card (i.e., the target resource content to be displayed by the at least two candidate components) according to the data description information in the description file, generate the target card according to the view tree description information in the description file, and display the target resource content according to the control description information in the description file.

[0095] The card host module 602 can obtain the target resource content from the card management module 604. The card management module 604 is used to provide card content services, and can achieve unified management of multiple types of target resource content, wherein the multiple types of target resource content may include network resource content, local resource content, third-party APP resource content, system APP resource content, etc.

[0096] In some possible application scenarios, the card management module 604 may further include at least one card content providing module. Each card content providing module may correspond to an APP, or provide target resource content from a target APP for the candidate component.

[0097] For example, the card content providing module 6041 corresponds to "XX Weather". When the target resource content in the candidate component comes from "XX Weather", the card content providing module 6041 can obtain the corresponding weather data or weather information from the local electronic device or from the server. The card content providing module 6042 corresponds to "XX Video". When the target resource content in the candidate component comes from "XX Video", the card content providing module 6042 can obtain the corresponding video data or video information from the local electronic device or from the server. The card content providing module 6043 corresponds to "Gallery". When the target resource content in the candidate component comes from "Gallery", the card content providing module 6043 can obtain the corresponding picture data or picture information from the local electronic device or from the server.

[0098] In other embodiments, see Figure 6 As shown in (b) in FIG. 6 , the electronic device may further include a user interaction module 601 , a card host module 602 , a card description generation module 603 , a content provision module 605 and a card management service 606 .

[0099] The functions implemented by the user interaction module 601, the card host module 602, and the card description generation module 603 are respectively the same as those described above. Figure 6The user interaction module 601, card host module 602, and card description generation module 603 shown in (a) above have the same functions. Also, the function of the content providing module 605 is similar to that of the card management module in the above embodiment, and both can obtain target resource content from different locations.

[0100] Exemplarily, the candidate components selected by the user on the electronic device include a first component and a second component, that is, the user performs a first selection operation on the first component and the second component on the electronic device. The first component and the second component may come from different APPs, for example, the first component comes from a first APP and the second component comes from a second APP; or, the first component and the second component may also come from the same APP.

[0101] The user interaction module 601 in the electronic device receives the first selection operation of the user, and sends indication information of the first selection operation to the card description generation module 603. In response to the first selection operation, the card description generation module 603 obtains component information of the first component and component information of the second component, and generates a description file of the target card based on the component information of the first component and the component information of the second component.

[0102] The content of the description file may refer to the content of the aforementioned embodiment. Also, the component information may include the first attribute information of the first component and / or the second attribute information of the target resource content in the first component; or include the first attribute information of the second component and / or the second attribute information of the target resource content in the second component; or include both the first attribute information of the first component and / or the second attribute information of the target resource content in the first component and the first attribute information of the second component and / or the second attribute information of the target resource content in the second component.

[0103] Afterwards, the card description generating module 603 sends the description file to the content providing module 605 and the card host module 602. The content providing module 605 obtains the first target resource content corresponding to the first component and the second target resource content corresponding to the second component according to the description file.

[0104] The description file includes data description information, which is generated according to the target resource content, the source of the target resource content, etc. Therefore, when acquiring the target resource content, the content providing module 605 can acquire the first target resource content and the second target resource content according to the data description information.

[0105] The content providing module 605 then sends the first target resource content and the second resource content to the card host module 602. The card host module 602 displays a target card including the first target resource content and the second target resource content according to the description file, the first target resource content and the second target resource content.

[0106] The description file also includes view tree description information, control description information, etc. Among them, the view tree description information is generated according to the hierarchical relationship, logical relationship, positional relationship, etc. between the first component and the second component selected by the user. The control description information is generated according to the refresh frequency of the target resource content of the first component and the second component selected by the user, the display duration of the target resource content, etc. Therefore, when displaying the target card, the card host module 602 can determine the layout, composition, style, etc. of the target card according to the view tree description information, display the first target resource content and the second target resource content in the target card, and control the display of the first target resource content and the second target resource content according to the control description information.

[0107] The first attribute information in the above-mentioned component information may be preset by the component, or may be set by the user according to the needs. As another example, when the above-mentioned card description generation module 603 obtains the component information of the first component in response to the first selection operation, the card description generation module 603 may display the first attribute setting item corresponding to the first attribute information of the first component in response to the first selection operation. After displaying the first attribute setting item, the user may select the specific content of the first attribute setting item according to his or her needs. Then, the card description generation module 603 receives the user's second selection operation on the first attribute setting item, and obtains the first attribute information corresponding to the second selection operation, or the card description generation module 603 receives the user's second input operation on the first attribute setting item, and obtains the first attribute information corresponding to the second input operation.

[0108] Similarly, the card description generation module 603 can also obtain the component information of the second component in response to the first selection operation, and the card description generation module 603 can display the first property setting item corresponding to the first property information of the second component in response to the first selection operation. After displaying the first property setting item, the user can select the specific content of the first property setting item according to their needs. Then, the card description generation module 603 receives the user's second selection operation on the first property setting item and obtains the first property information corresponding to the second selection operation, or the card description generation module 603 receives the user's second input operation on the first property setting item and obtains the first property information corresponding to the second input operation.

[0109] The second attribute information in the above-mentioned component information may be preset by the component, or may be set by the user according to the needs. As another example, when the above-mentioned card description generation module 603 obtains the component information of the first component in response to the first selection operation, the card description generation module 603 may respond to the first selection operation and, when the type of the first component is one or more of a picture component and a text component, display the second attribute setting item corresponding to the second attribute information of the first target resource content of the first component. After displaying the second attribute setting item, the user may select the specific content of the second attribute setting item according to his or her needs. The card description generation module 603 receives the user's third selection operation on the second attribute setting item and obtains the second attribute information corresponding to the third selection operation, or the card description generation module 603 receives the user's third input operation on the second attribute setting item and obtains the second attribute information corresponding to the third input operation.

[0110] It is understandable that the first selection operation can be a common operation of the pointer on the first component and the second component. After the user selects multiple components, the electronic device can display the first property setting item and / or the second property setting item corresponding to each candidate component in turn, or the electronic device can display the corresponding first property setting item and / or the second property setting item each time the user selects a component until the user completes the selection of the component.

[0111] In some possible application scenarios, the card management service 606 is used to manage the life cycle of the target card, including the loading, destruction, and refresh of the target card. Exemplarily, the card host module 602 and the card description generation module 603 load the target card through the card management service 606, such as generating and displaying. Among them, the card host module 602 can call the preset parsing module 6021 for the basic component and the third-party parsing module 6022 for the extended component based on the card management service 606. Among them, the preset parsing module 6021 and the third-party parsing module 6022 can respectively create a view module, a control module, and a data module according to the description file generated by the card description generation module 603. And, the view module is used to display the target card, the data module is used to obtain the target resource content from the content provision module 605, and the control module is used to control the display of the target resource content according to the second attribute information.

[0112] As another example, the cards provided in some embodiments of the present application may be displayed for a period of time and then destroyed. For example, based on the user's selection of candidate components or voice commands, the electronic device may create a target card for watching a concert itinerary. After being created, the target card may be displayed on the desktop or the negative one screen. The target card may display information such as the target city's weather, distance, or concert time. The target card may be automatically destroyed by the electronic device after the concert date or the end time of the concert.

[0113] In addition, the target card may also be a card that can display complex information, such as a meeting schedule card or a travel card. The meeting schedule card may be generated based on components provided by a memo, calendar, social application, or enterprise office application, and the travel card may be generated based on components provided by a calendar, memo, ticket purchase application, or payment application, and the present embodiment of the application does not limit this.

[0114] In these scenarios, the card host module 602 determines the life span of the target card through the card management service 606, and destroys the target card when the life span ends. In another exemplary embodiment, the card description generation module 603 determines the refresh time of the target card through the card management service 606, and generates control information in the description file based on the refresh time, so that the card host module 602 refreshes the target resource content in the target card according to the control information in the description file.

[0115] In some other possible application scenarios, the card management service 606 may include not only the preset component information of each candidate component, but also the component information set by the user corresponding to each candidate component. The card management service 606 may generate the life span, refresh time, etc. of the above-mentioned target card based on the component information of at least two candidate components selected by the user.

[0116] On the above electronic devices, users can also customize the composition of target cards and the content displayed on target cards. The operability and fun of target cards are enhanced, and the composition and displayed content of target cards are more in line with user needs, thereby improving the user experience.

[0117] In some possible application scenarios, the above-mentioned electronic device may be a mobile phone, a tablet computer, a personal computer, a smart watch, a smart head-mounted device, a central control screen device, a smart assistant device, or other device with a display screen that can display the above-mentioned target card.

[0118] The following uses a mobile phone as an example to illustrate the card generation method in the embodiment of the present application. Figure 7 As shown, the card generation method in the embodiment of the present application includes the following steps S701-S703.

[0119] S701. The mobile phone receives the user's first selection operation.

[0120] The first selection operation may represent an operation for generating a target card. For example, a user selects a candidate component on a component page of a mobile phone, wherein the candidate component is used to implement a target function and / or display target resource content, and the candidate component is used to generate a target card. The candidate components may include basic components provided by the mobile phone, extended components provided by the APP on the mobile phone, etc., and the APP on the mobile phone may include system APPs, third-party APPs, etc.

[0121] In some embodiments, the basic components provided by the mobile phone and the extended components provided by the mobile phone APP may include button components, text components, picture components, etc. The specific functions and displayed content of the basic components and extended components may be preset, or may be adjusted or set according to user needs.

[0122] It is understandable that since the extension component is provided by the mobile phone APP, the specific functions and displayed content of the extension component are usually related to the corresponding APP. For example, the text component corresponding to "XX Music" can display the lyrics of the music being played by "XX Music", the picture component corresponding to "Gallery" can display the pictures in the "Gallery", and the button component corresponding to "XX Video" can control the pause or play of the video being played in "XX Video".

[0123] In an embodiment of the present application, the mobile phone can provide the user with a card generation function, and the user can select at least two components to generate a target card according to his or her needs, so that the target card can realize the functions required by the user and / or display the content required by the user.

[0124] In some embodiments, the mobile phone can provide the user with multiple card generation function entrances, and the user can control the mobile phone to display at least two candidate components in multiple ways. And, it is understandable that the at least two candidate components selected by the user can be from the same APP or from different APPs.

[0125] Among them, in some possible application scenarios, the user can input voice control commands to the mobile phone, such as "Xiaoyi Xiaoyi, I want to generate a widget", "Xiaoyi Xiaoyi, I want to generate a card", etc., so that the mobile phone responds to the voice control command and displays the component page. Figure 8 As shown, at least one of the above candidate components can be displayed on the component page, such as a basic component, an extended component, etc. The user can select at least two candidate components on the component page to generate a target card. The operation of the user selecting at least two candidate components on the component page can be regarded as a first selection operation.

[0126] For other possible application scenarios, see Fig. 9As shown in (a) in the figure, the user can also enter a specific function, such as "card", "component", "small component", "widget", etc. on the search page of the mobile phone, so that the mobile phone responds to the user's input operation and displays, for example, the above-mentioned component page. The user can select at least two candidate components on the component page to generate the target card. Among them, the operation of the user entering a function such as "small component" on the search page of the mobile phone can be regarded as the first input operation.

[0127] For other possible application scenarios, see Fig. 9 As shown in (b) in the figure, the user can also trigger the screen of the mobile phone, such as long pressing, clicking, double-clicking, etc. on a blank position or a non-functional position on the screen, so that the mobile phone responds to the user's trigger operation and displays, for example, the above-mentioned component page. The user can select at least two candidate components on the component page, and the user generates a target card. Among them, the blank position or non-functional position on the screen means the position on the screen where no application icon, component, control, card, etc. are placed.

[0128] In the embodiment of the present application, the mobile phone can provide users with access to various card generation functions, so that users can more flexibly control the mobile phone display component page, providing users with a better user experience.

[0129] In some embodiments, the user's first selection operation on a candidate component on a component page includes one or more of long press, click, drag, and move. Exemplarily, the user long presses a candidate component on the component page, and the mobile phone can respond to the user's long press operation to determine the candidate component currently selected by the user; exemplarily, the user clicks a candidate component on the component page, and the mobile phone can respond to the user's click operation to determine the candidate component currently selected by the user; and further exemplarily, the user drags a candidate component to a target position on the component page, and the mobile phone can respond to the user's drag operation to determine the candidate component currently selected by the user. In this way, the mobile phone can also provide users with a variety of ways to select candidate components, and also allow users to have a better user experience.

[0130] S702: The mobile phone obtains component information of at least two candidate components in response to the first selection operation.

[0131] The component information of the candidate component includes first attribute information of the candidate component and / or second attribute information of the target resource content.

[0132] Referring to the aforementioned embodiment, when the user selects a candidate component, the user will perform a first selection operation on the candidate component. If the first selection operation is dragging, moving, etc., it can indicate that the user wants to place the candidate component at a specific position in the target card. After the candidate component is dragged or moved, the position will change. At this time, the first attribute information of the candidate component will include information about the target position after being dragged or moved. In addition, the display methods between candidate components may also be different. Therefore, the first attribute information of the candidate component may also include information about the candidate component type, information about the candidate component style, etc.

[0133] The type of the candidate component may be determined according to the function of the candidate component or the displayed content. For example, the specific type may include a button component, an image component, a text component, a progress bar component, and the like.

[0134] When the candidate component displays the target resource content, the mobile phone needs to obtain the target resource content from a specific location, or obtain the specific target resource content, so that the second attribute information of the target resource content will include the information of the source of the target resource content. In addition, the candidate component can also display the target resource content in a specific way. For example, when displaying image resources, different images can be rotated, and a certain image content can be displayed for a few minutes. Therefore, the second attribute information of the target resource content may also include the refresh frequency and display duration of the target resource content.

[0135] In some embodiments, when the candidate component is a component that implements the target function, the component information may include only the first attribute information. When the candidate component is a component that displays the target resource content, the component information may include only the second attribute information. Alternatively, in other embodiments, regardless of what kind of component the candidate component is, the component information may include both the first attribute information and the second attribute information, which is not specifically limited in the embodiments of the present application.

[0136] Referring to the foregoing content, since the specific functions and displayed content of the candidate components can be preset or determined or set according to user needs, the first attribute information, the second attribute information, etc. can be obtained based on the preset content or based on user needs.

[0137] In some embodiments, if the specific functions and / or displayed content of the candidate component are determined according to the needs of the user, the mobile phone can provide the user with a function of selecting a candidate component property setting item, wherein the candidate component property setting item may include a first property setting item and a second property setting item.

[0138] Exemplarily, after receiving the user's first selection operation for at least two candidate components, the mobile phone can display the first attribute setting items corresponding to the first attribute information of the candidate components to the user in response to the first selection operation. Each candidate component selected by the user can correspond to at least one first attribute, and the first attribute can include the target location, type, style, etc. of the component. The first attribute setting items are the setting items corresponding to each first attribute. In some possible application scenarios, see Fig.10 As shown in (a) in the figure, after the user selects a candidate component, the mobile phone will continue to display the property setting page, on which setting items such as type and style can be displayed. The user can select the drop-down control or drop-down button of the corresponding setting item to control the mobile phone to continue to display the optional property information under the corresponding setting item, and the user can select the first property information from the optional property information. In other possible application scenarios, see Fig.10 As shown in (b) of FIG. 1 , all setting items can be displayed on the current page, and the user selects the corresponding first attribute information by selecting the corresponding item on the page. In other possible application scenarios, see Fig.10 As shown in (c) in the figure, the setting item can also be displayed in the form of an input box, and the user can enter the first attribute information to be selected in the input box. The user's selection operation on the above setting item can be regarded as the second selection operation, or the user's operation of entering the first attribute information in the setting item can be regarded as the second input operation.

[0139] Afterwards, the mobile phone receives a second selection operation of the user on the first property setting item, and obtains the first property information corresponding to the second selection operation. Alternatively, the mobile phone receives a second input operation of the user on the first property setting item, and obtains the first property information corresponding to the second input operation.

[0140] In the above embodiment, the user can customize the first attribute information of the candidate component according to his or her own preferences or needs. This not only improves the operability and fun of component selection, but also makes the target card generated by at least two candidate components more in line with the user's preferences and needs, thereby improving the user's usage experience.

[0141] As another example, after receiving the user's first selection operation for at least two candidate components, the mobile phone can respond to the first selection operation and display the second attribute setting items corresponding to the second attribute information of the target resource content of the candidate component to the user. Each candidate component can display a type of target resource content or a target resource content, such as picture resources, video resources, weather resources, etc. Each target resource content can correspond to at least one second attribute, and the second attribute may include the source of the target resource content, refresh frequency, display duration, etc. The second attribute setting items are the setting items corresponding to each second attribute. In some possible application scenarios, see Fig.11 As shown in (a), after the user selects a candidate component, the phone will continue to display the property setting page, on which setting items such as source, refresh rate, and display duration can be displayed. The user can select the drop-down control or drop-down button of the corresponding setting item to control the phone to continue to display the optional property information under the corresponding setting item, and the user can select the corresponding second property information from the optional property information. In other possible application scenarios, see Fig.11 As shown in (b) in FIG. 1 , all setting items can be displayed on the current page, and the user selects the corresponding second attribute information by selecting the corresponding item on the page. In other possible application scenarios, see Fig.11 As shown in (c) in the figure, the setting item can also be displayed in the form of an input box, and the user can enter the second attribute information to be selected in the input box. Among them, the user's selection operation on the above setting item can be regarded as the third selection operation, or the user's operation of entering the second attribute information in the setting item can be regarded as the third input operation.

[0142] Afterwards, the mobile phone receives a third selection operation of the user on the second property setting item, and obtains the second property information corresponding to the third selection operation. Alternatively, the mobile phone receives a third input operation of the user on the second property setting item, and obtains the second property information corresponding to the third input operation.

[0143] In the above embodiment, the user can customize the second attribute information of the candidate component according to his or her own preferences or needs. This not only improves the operability and fun of component selection, but also makes the target card generated by at least two candidate components more in line with the user's preferences and needs, thereby improving the user's usage experience.

[0144] As another example, after the mobile phone obtains the first attribute information of the candidate component in response to the second selection operation or the second input operation, it can also obtain the second attribute information of the target resource content in response to the third selection operation or the third input operation. The specific operation method of the user and the specific response method of the mobile phone can be referred to the content of the above embodiment, which will not be repeated here.

[0145] It is understandable that the first selection operation can represent an operation on one candidate component or on multiple candidate components. If the first selection operation represents an operation on one candidate component, the mobile phone can respond to the first selection operation once for each candidate component and obtain the corresponding component information. If the first selection operation represents an operation on multiple candidate components, the mobile phone can display the first attribute setting item and / or the second attribute setting item corresponding to each candidate component in turn after the user selects multiple candidate components, or the mobile phone can display the corresponding first attribute setting item and / or the second attribute setting item each time the user selects a candidate component until the user completes the selection of the candidate component.

[0146] Similarly, the second selection operation and the third selection operation may also represent an operation on one setting item or multiple setting items; and the second input operation and the third input operation may also represent an operation on one setting item or multiple setting items, and the embodiments of the present application do not specifically limit this.

[0147] S703: The mobile phone generates a target card according to component information of at least two candidate components.

[0148] The target card includes at least two candidate components and / or target resource contents corresponding to at least two candidate components. It is understandable that the target card is generated by at least two candidate components selected by the user, or at least two candidate components selected by the user are constituent elements of the target card.

[0149] In some embodiments, when generating a target card, the mobile phone can display the candidate component in the target card according to the first attribute information of the candidate component. And, in other embodiments, after the mobile phone displays the candidate component in the target card, it can also display the target resource content in the candidate component according to the second attribute information of the target resource content corresponding to the candidate component. In this way, the content displayed in the target card will match the candidate component selected by the user, or in some cases, the content displayed in the target card will also match the attribute information selected by the user, so that the target card is more in line with the user's needs.

[0150] For example, when generating a target card, if the selected candidate component is only used to implement the target function, for example, the candidate component is a button component, a progress bar component, etc., then the mobile phone can display the button component, the progress bar component, etc. in the target card according to the target position and / or the candidate component style in the first attribute information of the candidate component. Afterwards, the mobile phone displays the information corresponding to the target function in the button component according to the target function corresponding to the button component, the progress bar component, etc. For example, see Fig.12As shown, the progress bar component in the target card 1201 can display the current battery information of the mobile phone, and the button component in the target card 1201 can display the entrance to the search function, such as displaying a prompt message of "search" or displaying a pattern similar to a magnifying glass.

[0151] As another example, when generating a target card, if the selected candidate component is used to display the target resource content, such as a text component, a picture component, etc., then the mobile phone can obtain the corresponding target resource content based on the source of the target resource content in the second attribute information of the target resource content (such as text content, picture content), etc. Among them, the source of the target resource content can indicate that the target resource content comes from the network, from the local mobile phone, from an APP, etc. Correspondingly, the mobile phone can obtain the corresponding target resource content from the server corresponding to the mobile phone, the server corresponding to an APP, the local storage space, etc. Afterwards, the mobile phone displays the candidate component in the target card according to the target position and / or the candidate component style in the first attribute information, and the mobile phone displays the target resource content in the candidate component according to the refresh frequency and / or display duration in the second attribute information. Still using the above Fig.12 For example, the picture component in the target card 1201 can rotate the photos in the mobile phone gallery, and the frequency of the rotation is 5 seconds, that is, the picture component displays a photo every 5 seconds.

[0152] In the card generation method provided in the embodiment of the present application, the electronic device can generate a target card using at least two candidate components selected by the user. The candidate component is an element in the target card. Since the candidate component can realize the target function and / or display the target resource content, the target card can display the candidate component to provide the corresponding function and / or display the target resource content of the candidate component. Since the above-mentioned candidate components, the first attribute information, the second attribute information, etc. are all selected by the user according to the needs, the content displayed and / or the function provided in the generated target card are all content that meets the user's needs. It can also be understood that the generation of the target card can be customized by the user. In this way, not only the generated target card is more in line with the user's needs and the operability is enhanced, but the process of generating the target card also brings more fun to the user, meets the user's needs, and improves the user's experience.

[0153] It is understandable that the first attribute information and the second attribute information obtained by the mobile phone are some primary information of the candidate components. The first attribute information and the second attribute information can represent some primary layout information, primary style information, primary control information of the target resource content, etc. of the candidate components themselves. When the user performs the first selection operation on at least two candidate components, he may drag or move the at least two candidate components. After being dragged or moved, the candidate components may appear in overlapping or parallel layouts. For details, see Fig.13 After the user performs the above first selection operation, a new hierarchical relationship or arrangement relationship may be generated between the candidate components (such as candidate component 1301 is adjacent to or parallel to candidate component 1302, candidate component 1303 is placed above candidate component 1304, etc.), or the target resource content may also generate new control information, etc.

[0154] Therefore, in some embodiments, when generating a target card, the mobile phone can also generate a description file of the target card according to the component information of at least two candidate components. In the process of generating the description file, the mobile phone determines the hierarchical relationship between the candidate components displayed in the target card, the layout of the candidate components, the control information of the target resource content displayed by the candidate components, etc., based on the component information of at least two candidate components, that is, the final information (i.e., description file) of the target card to be generated is determined based on the primary information such as the first attribute information and the second attribute information. Finally, the mobile phone generates the target card according to the description file.

[0155] The description file includes one or more of the view tree description information of the target card, the control description information of the target card, and the data description information of the target card. The view tree description information indicates the hierarchical relationship and logical relationship between the candidate components in the target card. The control description information indicates the refresh frequency and display duration of the target resource content displayed in the target card. The data description information indicates the source of the target resource displayed in the target card.

[0156] In some possible application scenarios, the description information in the above description file uses machine language or description language that can be recognized or run by electronic devices such as mobile phones. In order to form a smooth and complete machine language, the mobile phone can add necessary containers, business control logic, etc. to the machine language after obtaining the above primary information.

[0157] The above description file not only indicates the complete component information of the target card finally generated, but can also be recognized by electronic devices such as mobile phones, so that the mobile phone can generate a target card that meets the user's needs more accurately based on the above description file.

[0158] In some embodiments, the target card may also have attributes such as background color, transparency, size, position, etc., and these attributes may be preset or determined according to the user's selection, so that the target card can better meet the user's needs.

[0159] It is understandable that the candidate components displayed in the target card in the embodiment of the present application may be components of the same type or components of different types. For example, the target card may display all image components, or all text components, etc. For another example, the target card may display both image components and text components. For another example, the target card may display both components corresponding to application A and components corresponding to application B. Thus, the purpose of user-defined target cards is truly achieved.

[0160] In some schemes, multiple embodiments of the present application can be combined, and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to show that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.

[0161] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment. Furthermore, the method embodiments may be implemented separately or in combination.

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

[0163] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0164] The present application also provides an electronic device, such as Fig.14 As shown, the electronic device may include one or more processors 1401, a memory 1402, and a communication interface 1403. The memory 1402 and the communication interface 1403 are coupled to the processor 1401. For example, the memory 1402, the communication interface 1403, and the processor 1401 may be coupled together via a bus 1404.

[0165] The communication interface 1403 is used for data transmission with other devices. The memory 1402 stores computer program codes. The computer program codes include computer instructions. When the computer instructions are executed by the processor 1401, the electronic device executes the card generation method in the embodiment of the present application.

[0166] Among them, the processor 1401 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents of the embodiments of the present application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0167] The bus 1404 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1404 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0168] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the above-mentioned processor executes the computer program code, the processor executes the relevant method steps in the above-mentioned method embodiment.

[0169] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.

[0170] Among them, the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

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

[0172] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0174] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A card generation method, It is characterized in that include: Receive the user's first selection operation; The first selection operation is used to generate a target card; In response to the first selection operation, obtaining component information of at least two candidate components; Each of the candidate components is used to implement a target function and / or display target resource content; The target card is generated according to the component information of at least two of the candidate components; the target card includes at least two of the candidate components and / or target resource content corresponding to at least two of the candidate components.

2. The method according to claim 1, It is characterized in that The component information includes first attribute information of the candidate component and / or second attribute information of the target resource content.

3. The method according to claim 2, It is characterized in that The acquiring, in response to the first selection operation, component information of at least two candidate components includes: In response to the first selection operation, displaying a first property setting item corresponding to the first property information of the candidate component; receiving a second selection operation of the user on the first property setting item, and acquiring first property information corresponding to the second selection operation; or, A second input operation of the user on the first property setting item is received, and first property information corresponding to the second input operation is acquired.

4. The method according to claim 2 or 3, It is characterized in that The first attribute information of the candidate component includes one or more of the following information: the candidate component type, the candidate component style, and a target position of the candidate component in the target card determined in response to the first selection operation.

5. The method according to claim 4, It is characterized in that The step of generating the target card according to the component information of at least two candidate components includes: When the candidate component type is a button component, displaying the button component in the target card according to the target position and the candidate component style in the first attribute information; According to the target function corresponding to the button component, information corresponding to the target function is displayed in the button component.

6. The method according to claim 4, It is characterized in that The acquiring, in response to the first selection operation, component information of at least two candidate components includes: In response to the first selection operation, when the candidate component type is one or more of a picture component and a text component, displaying a second attribute setting item corresponding to the second attribute information of the target resource content of the candidate component; receiving a third selection operation of the user on the second property setting item, and acquiring second property information corresponding to the third selection operation; or, A third input operation of the user on the second attribute setting item is received, and second attribute information corresponding to the third input operation is acquired.

7. The method according to any one of claims 2 to 6, It is characterized in that The second attribute information of the target resource content includes one or more of the source, refresh frequency, and display duration of the target resource content.

8. The method according to claim 7, It is characterized in that The step of generating the target card according to the component information of at least two candidate components includes: Acquire the target resource content according to the source of the target resource content in the second attribute information; Displaying the candidate component in the target card according to the target position and / or the candidate component style in the first attribute information; The target resource content is displayed in the candidate component according to the refresh frequency and / or the display duration in the second attribute information.

9. The method according to any one of claims 1 to 8, It is characterized in that The receiving the first selection operation of the user comprises: receiving a voice control instruction input by a user, and displaying a component page including at least two candidate components in response to the voice control instruction; Alternatively, receiving a first input operation from a user, and in response to the first input operation, displaying a component page including at least two candidate components; Alternatively, receiving a long press operation of a user on a blank position on a screen of an electronic device, and in response to the long press operation, displaying a component page including at least two candidate components; A first selection operation of at least two candidate components by a user is received.

10. The method according to any one of claims 1 to 9, It is characterized in that The step of generating the target card according to the component information of at least two candidate components includes: Generate a description file of the target card according to the component information of at least two of the candidate components; the description file includes one or more of the view tree description information between the candidate components in the target card, the control description information of the target card, and the data description information of the target card; The target card is generated according to the description file.

11. A card generation method, It is characterized in that include: The user interaction module receives a first selection operation of the user, and sends indication information to the card description generation module in response to the first selection operation; The first selection operation is used to generate a target card; The card description generation module obtains the component information of the first component and the component information of the second component according to the indication information, and generates a description file of the target card based on the component information of the first component and the component information of the second component, and sends the description file to the content providing module and the card host module respectively; the first component and the second component are respectively used to realize the target function and / or display the target resource content; The content providing module obtains the first target resource content corresponding to the first component and the second target resource content corresponding to the second component according to the description file, and sends the first target resource content and the second target resource content to the card host module; The card host module displays the target card including the first target resource and the second target resource content according to the description file, the first target resource content and the second target resource content.

12. The method according to claim 11, It is characterized in that The component information of the first component includes the first attribute information of the first component and / or the second attribute information of the target resource content displayed by the first component, and the component information of the second component includes the first attribute information of the second component and / or the second attribute information of the target resource content displayed by the second component.

13. The method according to claim 12, It is characterized in that The card description generating module acquires the component information of the first component according to the indication information, including: The card description generating module displays the first attribute setting item corresponding to the first attribute information of the first component according to the indication information; The card description generating module receives a second selection operation of the user on the first property setting item, and obtains first property information corresponding to the second selection operation; or, The card description generation module receives a second input operation of the user on the first attribute setting item, and obtains first attribute information corresponding to the second input operation.

14. The method according to claim 12 or 13, It is characterized in that The card description generating module acquires the component information of the first component according to the indication information, including: The card description generating module displays, according to the indication information, a second attribute setting item corresponding to the second attribute information of the first target resource content of the first component when the type of the first component is one or more of an image component and a text component; The card description generating module receives a third selection operation of the user on the second property setting item, and obtains second property information corresponding to the third selection operation; or, The card description generating module receives a third input operation of the user on the second attribute setting item, and obtains second attribute information corresponding to the third input operation.

15. The method according to any one of claims 11 to 14, It is characterized in that The description file includes one or more of the view tree description information between the first component and the second component in the target card, the control description information of the target card, and the data description information of the target card.

16. The method according to any one of claims 11 to 15, It is characterized in that The content providing module acquires, according to the description file, first target resource content corresponding to the first component and second target resource content corresponding to the second component, including: The content providing module obtains the first target resource content and the second target resource content respectively according to the data description information in the description file.

17. An electronic device, It is characterized in that The electronic device comprises a memory and one or more processors; the memory is coupled to the processor; the memory stores computer program code, and the computer program code comprises computer instructions. When the computer instructions are executed by the processor, the electronic device executes the card generation method as described in any one of claims 1 to 10, or executes the card generation method as described in any one of claims 11 to 16.

18. An electronic device, It is characterized in that It includes a user interaction module, a card description generation module, a content provision module and a card host module; The user interaction module is used to receive a first selection operation of the user, and send indication information to the card description generation module in response to the first selection operation; The first selection operation is used to generate a target card; The card description generation module is used to obtain the component information of the first component and the component information of the second component according to the indication information, and generate a description file of the target card based on the component information of the first component and the component information of the second component, and send the description file to the content providing module and the card host module respectively; the first component and the second component are respectively used to realize the target function and / or display the target resource content; The content providing module is used to obtain the first target resource content corresponding to the first component and the second target resource content corresponding to the second component according to the description file, and send the first target resource content and the second target resource content to the card host module; The card host module is used to display the target card including the first target resource and the second target resource content according to the description file, the first target resource content and the second target resource content.

19. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the card generation method as described in any one of claims 1 to 10, or to execute the card generation method as described in any one of claims 11 to 16.

Citation Information

Cited By

  • Desktop smart card generation method and device, terminal and storage medium

    CN121326478A