CN119065533A - Card generation method and electronic device - Google Patents
Card generation method and electronic device Download PDFInfo
- Publication number
- CN119065533A CN119065533A CN202310633823.7A CN202310633823A CN119065533A CN 119065533 A CN119065533 A CN 119065533A CN 202310633823 A CN202310633823 A CN 202310633823A CN 119065533 A CN119065533 A CN 119065533A
- Authority
- CN
- China
- Prior art keywords
- component
- card
- target
- information
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A card generation method and electronic equipment, the user can customize the composition of the card, make the card produced more accord with the user's demand, also increase operability and interestingness of the card. In the method, the electronic device receives a first selection operation of a user, wherein the first selection operation is used for generating a target card. And then, the electronic equipment responds to the first selection operation to acquire component information of at least two candidate components, wherein each candidate component is used for realizing a target function and/or displaying target resource content. And finally, the electronic equipment generates a target card according to the component information of the at least two candidate components, wherein the target card comprises the at least two candidate components and/or target resource contents corresponding to the at least two candidate components.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a card generating method and an electronic device.
Background
Most electronic devices provide a card service to a user, such as displaying a card on a page, through which the user may enter a corresponding application, quickly view important content, or quickly perform a function. The card may be a component provided by a third party application on the electronic device, or may be a component provided by a system application of the electronic device, such as a system clock component, a system weather component, and the like.
Although the electronic equipment can realize the display of the card, the functions, contents, styles and the like of the card displayed at present are generally difficult to meet the demands of users, and the operability and the interestingness of the card are poor, so that the use experience of the users is affected.
Disclosure of Invention
The embodiment of the application provides a card generation method and electronic equipment, wherein a user can customize the constitution of a card on the electronic equipment, so that the generated card meets the requirements of the user, and the operability and the interestingness of the card are improved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
in a first aspect, a card generating method is provided, in which an electronic device receives a first selection operation of a user, and obtains component information of at least two candidate components in response to the first selection operation. And then, the electronic equipment generates a target card according to the component information of the at least two candidate components.
The candidate components are used for realizing target functions and/or displaying target resource contents. And in some possible application scenarios, the component information includes first attribute information of the candidate component and/or second attribute information of the target resource content. The candidate components may be constituent elements of a target card, the generated target card including at least two candidate components and/or target resource content corresponding to the at least two candidate components.
In some possible application scenarios, the candidate component may be a base component provided by the electronic device, may provide an entry and a function of any application, or may expose a resource corresponding to any application, and so on. In other possible application scenarios, the candidate component may also be a component corresponding to the target application program on the electronic device, provide a function of an entry of the target application program, or display a resource corresponding to the target application program, and so on. The application program on the electronic device may be a third party application program or a system application program of the electronic device.
In the card generation method, the user can select at least two candidate components according to the requirement, so that the electronic equipment generates the target card by utilizing the at least two candidate components according to the selection of the user. The candidate components may be included in the target card, and the candidate components may be elements in the target card, and as the candidate components may implement the target functions and/or display the target resource content, the candidate components may be displayed in the target card to provide the corresponding functions and/or display the target resource content of the candidate components. Therefore, 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 interestingness is also increased, and the composition of the target card and the content displayed better meet the requirements of the user, so that the use experience of the user is improved.
In an implementation manner of the first aspect, the electronic device responds to the first selection operation to display a first attribute setting item corresponding to the first attribute information of the candidate component. And then, the electronic equipment receives a second selection operation of the user on the first attribute setting item and acquires the first attribute information corresponding to the second selection operation. Or the electronic equipment receives a second input operation of the user on the first attribute setting item and acquires first attribute information corresponding to the second input operation.
In the implementation mode, the user can customize the first attribute information of the candidate components according to own preference or demand, so that the operability and interestingness of component selection can be improved, the target card generated by at least two candidate components can also be more accordant with the preference and demand of the user, and the use experience of the user is improved.
In some possible application scenarios, the first attribute information for the candidate component includes one or more of a candidate component type, a candidate component style, and a target location of the candidate component in the target card determined in response to the first selection operation.
In an implementation manner of the first aspect, the electronic device responds to the first selection operation, and when the candidate component type is one or more of a picture component and a text component, second attribute setting items corresponding to second attribute information of target resource content of the candidate component are displayed. And then, the electronic equipment receives a third selection operation of the user on the second attribute setting item and acquires second attribute information corresponding to the third selection operation. Or the electronic equipment receives a third input operation of the user on the second attribute setting item and acquires second attribute information corresponding to the third input operation.
In the implementation mode, the user can customize the second attribute information of the candidate components according to own preference or demand, so that the operability and interestingness of component selection can be improved, the target card generated by at least two candidate components can also be more accordant with the preference and demand of the user, and the use experience of the user is improved.
In some possible application scenarios, the second attribute information of the target resource content includes one or more of a source of the target resource content, a refresh frequency, a presentation duration.
In an implementation manner 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. And then, the electronic equipment displays the target resource content in the candidate component according to the refreshing frequency and/or the display duration in the second attribute information.
In an implementation manner of the first aspect, when the candidate component type is a key component, the electronic device displays the key component in the target card according to the target position and the candidate component style in the first attribute information. And then, the electronic equipment displays information corresponding to the target function in the key assembly according to the target function corresponding to the key assembly.
In the above-mentioned several implementations, the content displayed in the target card matches with the candidate component selected by the user, or in some cases, the content displayed in the target card matches with the attribute information selected by the user, so that the target card better meets the requirements of the user.
In one implementation manner of the first aspect, the electronic device receives a voice control instruction input by a user, and presents a component page including at least two candidate components in response to the voice control instruction. Or the electronic equipment receives a first input operation of a user and responds to the first input operation to display a component page comprising at least two candidate components. And the electronic equipment receives long-press operation of a user on a blank position or a non-functional position on the screen of the electronic equipment, and displays a component page comprising at least two candidate components in response to the long-press operation. Wherein the blank position or the non-functional position represents a screen position where no application icon, component, control, card is placed. Finally, the electronic device receives a first selection operation of the at least two candidate components by the user.
In the implementation manner, the electronic device can provide the user with the access of various card generating functions, so that the user can more flexibly control the electronic device to display the component page, and better use experience is provided for the user.
In some possible application scenarios, the first selection operation includes one or more of long press, click, drag.
And, in other possible application scenarios, the at least two candidate components selected by the user may be from different applications or from the same application.
In an implementation manner of the first aspect, the electronic device generates a description file of the target card according to the component information of the at least two candidate components, where the description file includes one or more of view tree description information between the 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 a target card according to the description file.
In the implementation manner, the description file not only represents the complete component information of the finally generated target card, but also can be identified by the electronic equipment, so that the electronic equipment can more accurately generate the target card meeting the requirements of users according to the description file.
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 transmits indication information to a card description generation module in response to the first selection operation, wherein the first selection operation is used for generating a target card. The card description generation module acquires the component information of the first component and the component information of the second component according to the indication information, 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 respectively sends the description file to the content providing module and the card host module, wherein the first component and the second component are respectively used for realizing the target function and/or displaying the target resource content. The content providing module obtains first target resource content corresponding to the first component and 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. And the card host module displays the target card comprising the first target resource and the second target resource according to the description file, the first target resource content and the second target resource content.
In one implementation manner of the second aspect, the card description generating module displays a first attribute setting item corresponding to the first attribute information of the first component according to the indication information, receives a second selection operation of the first attribute setting item by a user and acquires the first attribute information corresponding to the second selection operation, or receives a second input operation of the first attribute setting item by the user and acquires the first attribute information corresponding to the second input operation.
In one implementation manner of the second aspect, the card description generating module displays a second attribute setting item corresponding to 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 a picture component and a text component according to the indication information, the card description generating module receives a third selection operation of the second attribute setting item by a user and acquires the second attribute information corresponding to the third selection operation, or the card description generating module receives a third input operation of the second attribute setting item by the user and acquires the second attribute information corresponding to the third input operation.
In an implementation manner of the second aspect, the content providing module obtains the first target resource content and the second target resource content according to the data description information in the description file.
In one implementation manner of the second aspect, the user interaction module receives a voice control instruction input by a user, and presents a component page including at least two candidate components in response to the voice control instruction. Or the user interaction module receives a first input operation of a user and responds to the first input operation to display a component page comprising at least two candidate components. Or the user interaction module receives long-press operation of a user on a blank position or a non-functional position on the screen of the electronic equipment, and responds to the long-press operation, displays a component page comprising at least two candidate components. Wherein the blank position or the non-functional position represents a screen position where no application icon, component, control, card is placed. Finally, the user interaction module receives a first selection operation of the at least two candidate components by a user.
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.
In an implementation manner of the second aspect, the first component is from a first application, the second component is from a second application, and the first application is different from the second application.
In a third aspect, an electronic device is provided that includes a user interaction module, a card description generation module, a content providing module, and a card hosting module. The system comprises a card description generation module, a card host module, a content providing module and a card host module, wherein the card description generation module is used for obtaining component information of a first component and component information of a second component according to the indication information, generating description files of a target card based on the component information of the first component and the component information of the second component, respectively sending the description files to the content providing module and the card host module, respectively, the first component and the second component are respectively used for realizing target functions and/or displaying target resource content, the content providing module is used for obtaining first target resource content corresponding to the first component and second target resource content corresponding to the second component according to the description files, and sending the first target resource content and the second target resource content to the card host module, and the card host module is used for displaying the target card comprising the first target resource and the second target resource content according to the description files, the first target resource content and the second target resource content.
In a fourth aspect, there is provided an electronic device comprising a memory, one or more processors, the memory coupled to the processors, wherein the memory has stored therein computer program code comprising computer instructions which, when executed by the processors, cause the electronic device to perform a card generation method as in the first aspect and any of its implementations, or to perform a card generation method as in the second aspect and any of its implementations.
In a fifth aspect, there is provided a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the card generation method as in the first aspect and any of its implementations, or to perform the card generation method as in the second aspect and any of its implementations.
In a sixth aspect, there is provided a computer program product which, when run on a computer, causes the computer to perform the card generation method as in the first aspect and any of its implementations, or to perform the card generation method as in the second aspect and any of its implementations.
It may be appreciated that the benefits achieved by the card generating method according to the second aspect, the electronic device according to the third aspect, the electronic device according to the fourth aspect, the computer readable storage medium according to the fifth aspect, and the computer program product according to the sixth aspect may refer to the benefits in the first aspect and any possible design manner thereof, and are not repeated herein.
Drawings
FIG. 1 is a schematic diagram of a currently used card according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a candidate component shown in an embodiment of the application;
FIG. 5 is a schematic diagram of a target card according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a second embodiment of the present application;
FIG. 7 is a schematic flow chart of a card generating method according to an embodiment of the present application;
FIG. 8 is a schematic diagram I of a component page according to an embodiment of the present application;
FIG. 9 is a second diagram of a component page according to an embodiment of the present application;
FIG. 10 is a third schematic diagram of a component page shown in an embodiment of the present application;
FIG. 11 is a diagram IV of a component page shown in an embodiment of the application;
FIG. 12 is a second schematic diagram of a target card according to an embodiment of the present application;
FIG. 13 is a third schematic view of a target card according to an embodiment of the present application;
fig. 14 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. In the description of the present application, unless otherwise indicated, "/" means that the related objects are in a "or" relationship, for example, a/B may mean a or B, and "and/or" in the present application is merely an association relationship describing the related objects, for example, a and/or B may mean that there may be three relationships, for example, a and/or B, three cases where a exists alone, a and B exist together, and B exists alone, where a and B may be singular or plural. Also, in the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a, b, or c) of a, b, c, a-b, a-c, b-c, or a-b-c may be represented, wherein a, b, c may be single or plural. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
In addition, the service scenario described in the embodiment of the present application is for more clearly describing the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application, and as a person of ordinary skill in the art can know that, with the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Currently, most electronic devices (such as mobile phones, tablet computers, etc.) provide card services for users, such as displaying cards on pages, and users can enter corresponding Application (APP) through the cards, quickly view important content, or quickly realize a certain function. The card may be a component provided by a third party APP on the electronic device, or may be a component provided by a system APP of the electronic device, for example, a system clock component, a system weather component, and the like.
For example, referring to fig. 1, a card 101, a card 102, a card 103, a card 104, etc. may be displayed on a mobile phone. The card 101 is a component corresponding to the third party APP XX music, and can display the last played music content, the current music playing progress or recommended music content of the user, the card 102 is a system weather component provided by the mobile phone, and can display the current weather condition or weather conditions of several days in the future, the card 103 is a component corresponding to the third party APP XX map, and can display the current position of the user or display an entrance control for searching for a specific position, and the card 104 is a health component provided by the mobile phone, and can display the current movement steps, mileage, movement duration and the like of the user.
Electronic devices can typically present the card described above based on a variety of modules. Illustratively, referring to FIG. 2, the electronic device includes a card hosting module 201, a card management module 202, and a card content providing module 203. The card hosting module 201 is used for implementing card presentation, and in general, the card hosting module 201 may be a module or an application of a User Interface (UI) layer of an electronic device.
The card providing module 203 is configured to provide data and content for card presentation, where cards from different applications correspond to the independent card providing module 203, and cards from the same application correspond to the same card providing module 203.
The card management module 202 is configured to manage the card hosting module 201 and the card content providing module 203, send the requirements of the card hosting module 201 when displaying the card to the card content providing module 203, and send the data and the content provided by the card content providing module 203 to the card hosting module 201.
Although the electronic device can realize the display of the card, the functions of the card, the displayed content, the card style, the card display mode and the like are usually preset by a developer of the third party APP for the third party APP, or preset by a developer of the electronic device for the system application, the system function and the like of the electronic device, that is, the user cannot set the card content, the card style, the card display mode and the like according to the own requirements, so that the operability of the card is poor, the interestingness is low, the increasing requirements of the user are difficult to meet, and the use experience of the user is affected.
Based on the above, the embodiment of the application provides a card generation method. In the method, the electronic device receives a first selection operation of a user. And then, the electronic equipment responds to the first selection operation to acquire the component information of at least two candidate components. And finally, the electronic equipment generates a target card according to the component information of the at least two candidate components, wherein the target card comprises the at least two candidate components and/or target resource contents corresponding to the at least two candidate components.
The candidate components are used for realizing target functions and/or displaying target resource contents. For example, if the user selects at least two candidate components to generate the target card, the at least two candidate components may be some elements of the target card, if the user selects one candidate component to generate the target card, the candidate component may be one or more elements of the target card, or the candidate component may be the target card itself.
In some possible application scenarios, the candidate component may be a basic component provided by the electronic device, may provide an entry and a function of any APP, or may expose a resource corresponding to any APP, or the like. In other possible application scenarios, the candidate component may also be a component corresponding to the target APP on the electronic device, provide a function of an entry of the target APP, or display a resource corresponding to the target APP, and so on. The APP on the electronic equipment can be a third party APP or an electronic equipment system APP.
In some possible application scenarios, the target resource content presented by the candidate component may be preset or determined according to a selection of a user, and the target resource content presented by the candidate component may be one or more of text content and picture content.
In the card generation method provided by the embodiment of the application, at least two candidate components can be selected by a user according to requirements, so that the electronic equipment generates the target card by utilizing the at least two candidate components according to the selection of the user. The candidate components may be elements in a target card, which may expose the candidate components to provide corresponding functionality and/or to expose target resource content of the candidate components, as the candidate components may implement target functionality and/or expose target resource content. Therefore, 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 interestingness is also increased, and the composition of the target card and the content displayed better meet the requirements of the user, so that the use experience of the user is improved.
The card generation method provided by the embodiment of the application can be applied to a communication system. Referring to fig. 3, 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. And, server 302 may also include a server 3021 and a server 3022.
The user may customize the "card", i.e., the target card, on the electronic device 301 according to his/her own preferences or needs.
In some possible application scenarios, a user may control the electronic device 301 to display a component page including a plurality of candidate components by entering a voice command, entering search content on a display page, or selecting a target control on a display page. The user selects a candidate component from a plurality of candidate components, for example, at least one, at least two, etc., according to his own preference or demand, and 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 will be appreciated that if the user selects at least two candidate components, then the at least two candidate components may be from different APPs or may be from the same APP.
In some possible application scenarios, the candidate component may be a base component provided by the electronic device 301, where the base component provides an entry and a function of any APP, or exposes a resource corresponding to any APP, and so on. Or the candidate component may also be a component corresponding to the target APP on the electronic device 301, provide a function of an entry of the target APP, or display a resource corresponding to the target APP, etc.
In addition, the APP on the electronic device 301 may be a third party APP, the electronic device 301 may obtain an 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 may also be a system APP on the electronic device 301, for example, a system APP such as "application market", "address book", "phone" and the like.
In some possible application scenarios, referring to (a) in fig. 4, candidate components may include multiple types, such as a key component 401, a picture component 402, a text component 403, a progress bar component 404, and so on. The button component 401 and the progress bar component 404 can provide target functions, such as providing an APP entry, displaying a resource downloading progress, a battery power, providing a control, etc., and the picture component 402 and the text component 403 can display contents such as a picture resource and a text resource.
When the user selects a candidate component, the candidate component may be moved to a target position by dragging or the like, and the selected candidate component is combined, placed, or the like, and the electronic device 301 obtains component information of the candidate component in response to a selection operation of the user. The component information comprises first attribute information of the candidate component and/or second attribute information of target resource content displayed by the candidate component.
In some examples, each page of the desktop of the electronic device may place a 5 x 6,4 x 6, or 4*5 equal number of application icons. Wherein 1*1 may be the size occupied by one application icon. Correspondingly, the size of the target card may be 1×2,2×2,2×3,2×4,3×4, 4*4, or the like.
In other examples, the card may be 1*1 a in size.
In some examples, the user may select the size of the card to be created. For example, the user may choose to create 2 x 4 cards or 2 x 2 cards.
In other examples, the electronic device may respond to a user selection of a candidate component by correspondingly generating a card size capable of accommodating the selected candidate component. For example, the user selects three candidate components, and the electronic device may correspondingly generate 2×2 or 2×4 cards of equal size.
In some possible application scenarios, the candidate component need not present the target resource content, and the component information of the candidate component may include only the first attribute information, where the first attribute information includes one or more of a target location of the candidate component in the target card, a candidate component type, and a candidate component style of the candidate component determined in response to the first selection operation. The user, upon selecting a candidate component to generate a target card, combines the candidate components in a specific combination manner including, but not limited to, overlay placement, tiling placement, embedding placement, and the like. And the target locations of the candidate components selected by the user may be the same or different.
In 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 comprises one or more of source, refresh frequency and display duration of target resource content displayed by the candidate component.
It will be appreciated that the style of the candidate component, the content of the target resource displayed, etc. may be preset by the electronic device 301 or the third party APP, or may be determined according to a user's selection, and the content of the target resource may be a resource local to the electronic device 301, for example, a photo in a local gallery, a word in a memo, etc., or may be a network resource acquired by the electronic device 301 from the server 302, for example, real-time weather information, real-time location information, etc. In addition, the target resource content may be a resource provided by the system APP of the electronic device 301, or may be a resource provided by a third party APP on the electronic device 301.
In addition, the refresh frequency, the display duration and the like of the target resource content can be preset attributes of the candidate components, and can be determined according to the selection of a user. Thus, taking the content shown in (b) in fig. 4 as an example, the second attribute information obtained by the electronic device may include the preset attribute of the candidate component 406, the user setting attribute corresponding to the candidate component 407, and the user setting attribute of the candidate component 408.
Referring back to fig. 3, in some possible application scenarios, the server 302 may be a single device, or may be a device cluster formed by a plurality of servers, for example, the server 302 may further include a server 3021, a server 3022, and the like. Different servers in the device cluster may correspond to different third party APPs or system APPs. For example, if a candidate component corresponding to the system APP "weather" of the electronic device 301 needs to display real-time weather content, the electronic device 301 needs to acquire real-time weather data or weather information from a server corresponding to the "weather" application, and if a candidate component corresponding to the third party APP "XX video" of the electronic device 301 needs to display currently hot-played movie content (such as movie theatrical, movie theatrical name, etc.), the electronic device 301 needs to acquire movie theatrical recommendation data or movie theatrical recommendation information from a server corresponding to the "XX video".
It will be appreciated that at least two candidate components selected by the user may both correspond to the same APP or may correspond to different APPs. Thus, the target card 501 generated according to the candidate component may show the function, entry, or target resource content of a certain APP, such as shown in (a) of fig. 5, or may also show the function, entry, or target resource content of a plurality of APPs, such as shown in (b) of fig. 5.
In some possible application scenarios, after the electronic device 301 obtains the component information of the candidate component, the component information may be converted into a description file for generating the target card, or the description file may be generated according to the component information. The description information in the description file uses a language that can be recognized by the electronic device 301. For example, the description file may include one or more of view tree description information, control description information, and data description information. The view tree description information is generated according to the hierarchical relationship, the logical relationship, the position relationship and the like between at least two candidate components selected by a user. The control description information is generated according to the refresh frequency of target resource contents of at least two candidate components selected by a user, the display duration of the target resource contents and the like. The data description information is generated from the target resource content, the source of the target resource content, and the like.
When the card generation method of the embodiment of the application is realized based on the communication system, at least two candidate components can be selected on the electronic equipment by a user according to the requirements, so that the electronic equipment generates the target card by utilizing the at least two candidate components according to the selection of the user. The candidate components are elements in the target card, and as the candidate components may implement the target functionality and/or expose target resource content, the target card may expose the candidate components to provide the corresponding functionality and/or expose target resource content of the candidate components. Therefore, 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 interestingness is also increased, and the composition of the target card and the content displayed better meet the requirements of the user, so that the use experience of the user is improved.
In some embodiments, referring to fig. 6 (a), the electronic device may include a user interaction module 601, a card hosting 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, a card description generation service 6035, and the like, and the card management module 604 may include a card content providing module 6041, a card content providing module 6042, a card content providing module 6043, and the like.
The user interaction module 601 may provide an interaction interface between a user and the electronic device and receive an operation of the user on the interaction interface, or the user interaction module 601 may receive a voice command input by the user, or the like. After receiving the operation of the user or the input content, the user interaction module 601 may display a plurality of candidate components for the user, and receive the selection operation of the user for at least two candidate components in the plurality of candidate components, and send indication information or a selection result to the card description generation module 603, where the indication information or the selection result may include a type of the candidate component, an identification of the candidate component, a name of the candidate component, and the like.
In some possible application scenarios, the card description generation module 603 includes a view component management service 6034, a card description generation service 6035, and the like. For example, after receiving the indication information or the selection result, the card description generating module 603 may obtain, in response to the indication information, the selection operation, or the like, component information of the candidate component selected by the user, for example, first attribute information of the candidate component, second attribute information of the target resource content presented by the candidate component, or the like. Then, 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 hosting module 602.
The candidate components may include basic components provided by the electronic device, such as a key component, a text component, a picture component, and the like, and may also include extension components provided by the 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", and the like. It is understood that the second attribute information of both the base component and the extension component may be preset or determined according to a user's selection.
In some possible application scenarios, one APP may provide cards of different sizes or exhibiting different resources. A card may include one or more components that may be candidates for generating a target card in embodiments of the application. It should be appreciated that one candidate component may correspond to one element. The at least two candidate components may be different elements of the same card in the same APP, or may be different elements of different cards in the same APP. Furthermore, the at least two candidate components may be different elements of the same card in different APPs, or may be different elements of different cards in different APPs.
Illustratively, one 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 component, a previous component, and the like. Wherein the weather component, the time component, the cover component, the song information component, the play/pause component, the next component, and the previous component can all be candidates for generating a target card in the electronic device.
In other possible application scenarios, components provided by an electronic device may be categorized as picture components, text components, or key components, among others. For example, the weather component, cover component, etc. may be categorized as a picture component, the time component, song information component, etc. may be categorized as a text component, and the play/pause component, next component, etc. may be categorized as a key component. These picture components, text components, key components, etc. may be candidates for generating the target card in embodiments of the present application.
In some examples, different types of components may be stacked. For example, a text component or a key component is displayed on the picture component.
It may be appreciated that, the first attribute information, the second attribute information, and the like obtained by the card description generating module 603 belong to primary information of candidate components, and in the process of processing by the card description generating module 603, the primary information may be adjusted depending on the view component management service 6034, and necessary container components, service control logic, and the like are added, so as to generate view component information and component rule information (or control information). In another aspect, the view component management service 6034 can manage various candidate components, such as base components, extension components, etc., and can also manage refresh rules, presentation rules, etc. for the candidate components.
Thereafter, the card description generation module 603 generates a description file of the target card again depending on the view component information and the component rule information, the card description generation service 6035, and the like.
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. And a view description generation module 6031 for generating view tree description information in the description file, a control description generation module 6032 for generating control description information in the description file, and a data description generation module 6033 for generating data description information in the description file.
The description information in the description file uses a machine language or description language that can be recognized by the card hosting module 602. After receiving the description file, the card hosting module 602 may generate a target card according to the description file. For example, the card hosting module 602 may obtain, according to the data description information in the description file, 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), generate, according to the view tree description information in the description file, the target card, and display, according to the control description information in the description file, the target resource content.
The card hosting module 602 can obtain the target resource content from the card management module 604. The card management module 604 is configured to provide a card content service, so as to implement unified management of various target resource contents, where the various target resource contents may include network resource contents, local resource contents, third party APP resource contents, system APP resource contents, and the like.
In some possible application scenarios, the card management module 604 may also include at least one card content providing module. Each card content providing module may correspond to an APP or provide candidate components with target resource content from a target APP.
For example, the card content providing module 6041 corresponds to "XX weather", and when the target resource content in the candidate component comes from "XX weather", the card content providing module 6041 may acquire the corresponding weather data or weather information or the like from the electronic device locally or from the server. The card content providing module 6042 corresponds to "XX video", and when the target resource content in the candidate component comes from "XX video", the card content providing module 6042 can acquire corresponding video data or video information or the like from the electronic device locally or from the server. The card content providing module 6043 corresponds to "gallery", and when the target resource content in the candidate component comes from "gallery", the card content providing module 6043 may acquire the corresponding picture data or picture information or the like from the electronic device locally or from the server.
In other embodiments, referring to fig. 6 (b), the electronic device may further include a user interaction module 601, a card hosting module 602, a card description generation module 603, a content providing module 605, and a card management service 606.
The functions implemented by the user interaction module 601, the card hosting module 602, and the card description generation module 603 are the same as the functions implemented by the user interaction module 601, the card hosting module 602, and the card description generation module 603 shown in (a) of fig. 6. And, the content providing module 605 functions similarly to the card management module in the previous embodiment, and can acquire the target resource content from different locations.
The candidate components selected by the user on the electronic device include, for example, a first component and a second component, i.e., 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 be from different APPs, e.g., the first component is from a first APP, the second component is from a second APP, or the first component and the second component may be from the same APP.
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. The card description generation module 603 acquires component information of the first component and component information of the second component in response to the first selection operation, 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.
The content of the description file may refer to the content of the foregoing embodiment. And the component information can comprise first attribute information of the first component and/or second attribute information of target resource content in the first component, or comprise first attribute information of the second component and/or second attribute information of target resource content in the second component, or comprise both the first attribute information of the first component and/or the second attribute information of target resource content in the first component and the first attribute information of the second component and/or the second attribute information of target resource content in the second component.
Thereafter, the card description generation module 603 sends the description file to the content providing module 605 and the card hosting 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.
The description file includes data description information, and the data description information is generated according to the target resource content, the source of the target resource content and the like. Accordingly, when acquiring the target resource content, the content providing module 605 may acquire the first target resource content and the second target resource content, respectively, according to the data description information.
The content providing module 605 then sends the first target resource content and the second resource content to the card hosting module 602. The card hosting module 602 presents a target card including first target resource and second target resource content according to the description file, the first target resource content, and the second target resource content.
The description file also includes view tree description information, control description information, and the like. Wherein the view tree description information is generated according to a hierarchical relationship, a logical relationship, a 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 and the like. Therefore, when the target card is displayed, the card host module 602 may determine the layout, the composition, the 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.
The first attribute information in the component information may be preset by the component, or may be set by a user according to requirements. For further example, when the card description generating module 603 obtains the component information of the first component in response to the first selection operation, the card description generating 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 the first attribute setting item is displayed, the user can select specific content of the first attribute setting item according to own requirements. Further, the card description generating module 603 receives a second selection operation of the first attribute setting item by the user and acquires first attribute information corresponding to the second selection operation, or the card description generating module 603 receives a second input operation of the first attribute setting item by the user and acquires first attribute information corresponding to the second input operation.
Also, the card description generating module 603 may further obtain component information of the second component in response to the first selection operation, and the card description generating module 603 may display a first attribute setting item corresponding to the first attribute information of the second component in response to the first selection operation. After the first attribute setting item is displayed, the user can select specific content of the first attribute setting item according to own requirements. Further, the card description generating module 603 receives a second selection operation of the first attribute setting item by the user and acquires first attribute information corresponding to the second selection operation, or the card description generating module 603 receives a second input operation of the first attribute setting item by the user and acquires first attribute information corresponding to the second input operation.
The second attribute information in the component information may be preset by the component, or may be set by the user according to the requirement. For further example, when the card description generating module 603 responds to the first selection operation to obtain the component information of the first component, the card description generating module 603 may respond to the first selection operation to display the 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 a picture component and a text component. After the second attribute setting item is displayed, the user can select specific content of the second attribute setting item according to own requirements. The card description generating module 603 receives a third selection operation of the second attribute setting item by the user and acquires second attribute information corresponding to the third selection operation, or the card description generating module 603 receives a third input operation of the second attribute setting item by the user and acquires second attribute information corresponding to the third input operation.
It will be appreciated that the first selection operation described above may be a co-operation of the pointer with respect to the first component and the second component. The electronic device may display the first attribute setting item and/or the second attribute setting item corresponding to each candidate component in sequence after the user selects a plurality of components, or the electronic device may display the corresponding first attribute setting item and/or the second attribute setting item after the user selects one component each time until the user completes the selection of the components.
In some possible application scenarios, the card management service 606 is used to manage the lifecycle of the target card, including loading, destruction, refreshing, etc. of the target card. Illustratively, the card hosting module 602 and the card description generation module 603 perform loading, e.g., generation, presentation, etc., of the target card through the card management service 606. Wherein the card hosting module 602 can invoke a preset parsing module 6021 for the base component and a three-party parsing module 6022 for the extension component based on the card management service 606. The preset parsing module 6021 and the three-party parsing module 6022 may respectively create a view module, a control module and a data module according to the description file generated by the card description generating module 603. And a view module for displaying the target card, a data module for obtaining the target resource content from the content providing module 605, and a control module for controlling the display of the target resource content according to the second attribute information and the like.
Still further exemplary, cards provided by some embodiments of the present application may be displayed for a period of time and then destroyed. The electronic device may create a target card for viewing the concert tour, for example, based on user selection of candidate components or voice instructions. The target card, after being created, may be displayed on a desktop or negative one screen, etc. The target card can display information such as weather, journey or concert time of a target city. The target card can be automatically destroyed by the electronic device after the date of the concert or the end time of the concert.
In addition, the target card can also be a meeting schedule card, a travel card and the like which can display composite information. Meeting calendar cards may be generated based on components provided by a memo, calendar, social application, or business office application, etc., and travel cards may be generated based on components provided by a calendar, memo, ticketing application, or payment application, etc., as embodiments of the application are not limited in this respect.
In these scenarios, the card hosting module 602 determines the time-to-live of the target card through the card management service 606 and destroys the target card at the end of the time-to-live. For another example, the card description generation module 603 determines, by the card management service 606, a refresh time of the target card, generates control information in the description file based on the refresh time, and the like, so that the card hosting module 602 refreshes the target resource content in the target card according to the control information in the description file.
In other possible application scenarios, the card management service 606 may include not only preset component information for each candidate component, but also component information set by the user corresponding to each candidate component. The card management service 606 may generate the survival time, the refresh time, and the like of the target card according to the component information of the at least two candidate components selected by the user.
On the electronic equipment, the user can also customize the composition of the target card and the content displayed by the target card, the operability of the target card is enhanced, the interestingness is also increased, and the composition and the content displayed by the target card are more in line with the requirements of the user, so that the use experience of the user is improved.
In some possible application scenarios, the electronic device may be a device with a display screen and capable of displaying the target card, such as a mobile phone, a tablet computer, a personal computer, a smart watch, a smart headset device, a central control screen device, a smart assistant device, and the like.
The card generation method in the embodiment of the application will be described below by taking an example in which the electronic device is a mobile phone. Referring to fig. 7, the card generation method in the embodiment of the present application includes the following steps S701 to S703.
S701, the mobile phone receives a first selection operation of a user.
Wherein the first selection operation may represent an operation for generating a target card. For example, the user selects a candidate component on a component page of the mobile phone, wherein the candidate component is used for realizing a target function and/or displaying target resource content, and the candidate component is used for generating a target card. The candidate components may include a base component provided by the mobile phone, an extension component provided by the APP on the mobile phone, etc., and the APP on the mobile phone may include a system APP, a third party APP, etc.
In some embodiments, the basic component provided by the mobile phone and the extension component provided by the mobile phone APP may include a key component, a text component, a picture component, and the like, and specific functions and displayed contents of the basic component and the extension component may be preset, and may be adjusted or set according to requirements of a user.
It will be appreciated that, since the extension component is provided by the mobile APP, the specific function and content presented by the extension component is typically related to the corresponding APP, for example, the text component corresponding to "XX music" may present lyrics content of the music being played by "XX music", the picture component corresponding to "gallery" may present pictures in "gallery", and the key component corresponding to "XX video" may control pause or play of the video being played in "XX video".
In the embodiment of the application, the mobile phone can provide the card generation function for the user, and the user can select at least two components to generate the target card according to the own requirements, so that the target card can realize the function required by the user and/or display the content required by the user and the like.
In some embodiments, the handset may provide the user with access to a variety of card generation functions, and the user may control the handset to display at least two candidate components in a variety of ways. And, it will be appreciated that the at least two candidate components selected by the user may be from the same APP or may be from different APPs.
In some possible application scenarios, the user may input a voice control instruction to the mobile phone, for example, "small skill, i want to generate a widget," "small skill, i want to generate a card," etc., so that the mobile phone displays a component page in response to the voice control instruction. Wherein, referring to fig. 8, at least one candidate component, such as a base component, an extension component, and the like, can be displayed on the component page. The user may select at least two candidate components on the component page for generating the target card. Wherein the operation of selecting at least two candidate components on the component page by the user can be regarded as a first selection operation.
In other possible application scenarios, referring to (a) in fig. 9, the user may also input specific functions, such as "card", "component", "gadget", "widget", and so on, on the search page of the mobile phone, so that the mobile phone displays, for example, the component page described above in response to the input operation of the user. The user may select at least two candidate components on the component page for generating the target card. The user inputs an operation such as a "widget" function on a search page of the mobile phone, which can be regarded as a first input operation.
In other possible application scenarios, referring to (b) in fig. 9, the user may also generate a triggering operation on the screen of the mobile phone, for example, generate long press, click, double click, etc. on a blank position or a non-functional position on the screen, so that the mobile phone displays, for example, the above component page in response to the triggering operation of the user. The user may select at least two candidate components on the component page and the user generates a target card. Wherein the blank position or the non-functional position on the screen represents a position on the screen where the application icon, component, control, card, etc. is not placed.
In the embodiment of the application, the mobile phone can provide the user with the entry of various card generating functions, so that the user can more flexibly control the page of the mobile phone display assembly, and better use experience is provided for the user.
In some embodiments, the first selection operation of the candidate component by the user on the component page includes one or more of long press, click, drag, and move. By way of example, a user presses a candidate component on a component page for a long time, and the mobile phone can determine the candidate component currently selected by the user in response to the long press operation of the user; in another example, the user drags a candidate component to a target position on the component page, and the mobile phone can respond to the dragging operation of the user to determine the candidate component currently selected by the user. Therefore, the mobile phone can provide various modes for selecting candidate components for the user, and the user can have better use experience.
S702, the mobile phone responds to a first selection operation to acquire component information of at least two candidate components.
Wherein 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.
In the foregoing embodiment, when the user selects the candidate component, the user performs the first selection operation on the candidate component, and if the first selection operation is dragging, moving, or the like, it may indicate that the user wants to place the candidate component at a specific position in the target card, and after the candidate component is dragged and moved, the position will change, and at this time, the first attribute information of the candidate component will include information of the dragged or moved target position. And, the manner of presentation among the candidate components may also be different, so the first attribute information of the candidate components may also include information of candidate component types, information of candidate component styles, and the like.
The types of the candidate components can be determined according to functions of the candidate components or contents of display, for example, specific types can include a key component, a picture component, a text component, a progress bar component and the like.
When the candidate component displays the target resource content, the mobile phone needs to acquire the target resource content from a specific position or acquire the specific target resource content, so that the second attribute information of the target resource content comprises the information of the source of the target resource content. In addition, the candidate component may also display the target resource content in a specific manner, for example, when displaying the picture resource, different pictures may be played in turn, a certain picture content may be displayed for several minutes, etc., so the second attribute information of the target resource content may also include the refresh frequency, the display duration, etc. of the target resource content.
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 exhibiting the content of the target resource, the component information may include only the second attribute information. Or in other embodiments, the component information may include both the first attribute information and the second attribute information, regardless of the candidate component, which embodiments of the present application are not limited in detail.
Referring to the foregoing, since the specific functions of the candidate components and the displayed contents may be preset or may be determined or set according to the needs of the user, the first attribute information, the second attribute information, and the like may be obtained according to the preset contents or may be obtained according to the needs of the user.
In some embodiments, if the specific function and/or content of the candidate component is determined according to the requirement of the user, the mobile phone may provide the user with a function of selecting the candidate component attribute setting item. Wherein the candidate component property settings may include a first property setting and a second property setting.
In an exemplary embodiment, after receiving a first selection operation of the user on at least two candidate components, the mobile phone may respond to the first selection operation to display a first attribute setting item corresponding to first attribute information of the candidate components for the user. Each candidate component selected by the user may correspond to at least one first attribute, where the first attribute may include a target location, type, style, etc. of the component. The first attribute setting items are setting items corresponding to the first attributes. In some possible application scenarios, referring to (a) in fig. 10, after the user selects the candidate component, the mobile phone may continue to display the attribute setup page, on which setting items such as types, styles, and the like may be displayed. The user can select a drop-down control or a drop-down button of the corresponding setting item, so that the mobile phone is controlled to continuously display selectable attribute information of the corresponding setting item, and the user can select first attribute information from the selectable attribute information. In other possible application scenarios, referring to (b) in fig. 10, the setting items may be all shown 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, referring to (c) in fig. 10, the setting item may also be presented in the form of an input box, in which the user may input the first attribute information to be selected. Wherein a selection operation of the above-described setting item by the user may be regarded as a second selection operation, or an operation of the user inputting the first attribute information in the setting item may be regarded as a second input operation.
And then, the mobile phone receives a second selection operation of the user on the first attribute setting item and acquires first attribute information corresponding to the second selection operation. Or the mobile phone receives a second input operation of the user on the first attribute setting item and acquires first attribute information corresponding to the second input operation.
In the above embodiment, the user may customize the first attribute information of the candidate components according to his own preference or requirement, so that not only the operability and interestingness of component selection may be improved, but also the target card generated by at least two candidate components may be more suitable for the preference and requirement of the user, and the use experience of the user may be improved.
Further exemplary, after receiving the first selection operation of the user on at least two candidate components, the mobile phone may respond to the first selection operation to display a second attribute setting item corresponding to the second attribute information of the target resource content of the candidate components for the user. Wherein each candidate component may correspondingly present a target resource content or a target resource content, such as a picture resource, a video resource, a weather resource, etc. Each target resource content may correspond to at least one second attribute, which may include a source of the target resource content, a refresh frequency, a presentation duration, and the like. The second attribute setting items are setting items corresponding to the second attributes. In some possible application scenarios, referring to fig. 11 (a), after the user selects the candidate component, the mobile phone may continue to display the attribute setup page, where the setting items such as the source, the refresh frequency, the display duration, and the like may be displayed. The user can select a drop-down control or a drop-down button of the corresponding setting item, so that the mobile phone is controlled to continuously display the selectable attribute information of the corresponding setting item, and the user can select the corresponding second attribute information from the selectable attribute information. In other possible application scenarios, referring to (b) in fig. 11, the setting items may be all shown 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, referring to (c) in fig. 11, the setting item may also be presented in the form of an input box, in which the user may input the second attribute information to be selected. Wherein a selection operation of the above-described setting item by the user may be regarded as a third selection operation, or an operation of inputting the second attribute information in the setting item by the user may be regarded as a third input operation.
And then, the mobile phone receives a third selection operation of the user on the second attribute setting item and acquires second attribute information corresponding to the third selection operation. Or the mobile phone receives a third input operation of the user on the second attribute setting item and acquires second attribute information corresponding to the third input operation.
In the above embodiment, the user may customize the second attribute information of the candidate components according to his own preference or requirement, so that not only the operability and interestingness of component selection can be improved, but also the target card generated by at least two candidate components can be more in line with the preference and requirement of the user, and the use experience of the user is improved.
Further exemplary, the mobile phone may further acquire, in response to the second selection operation or the second input operation, the first attribute information of the candidate component, and then, in response to the third selection operation or the third input operation, acquire the second attribute information of the target resource content. The specific operation manner of the user and the specific response manner of the mobile phone can be referred to the content in the foregoing embodiment, which is not described herein again.
It will be appreciated that the first selection operation may represent an operation on one candidate component, or may represent an operation on a plurality of candidate components. If the first selection operation indicates an operation on one candidate component, the mobile phone can respond to the first selection operation once for each candidate component to acquire the corresponding component information. If the first selection operation indicates an operation on a plurality of candidate components, the mobile phone may display the first attribute setting item and/or the second attribute setting item corresponding to each candidate component in turn after the user selects a plurality of candidate components, or the mobile phone may display the corresponding first attribute setting item and/or second attribute setting item after the user selects one candidate component each time until the user completes the selection of the candidate components.
The second selection operation and the third selection operation may also represent an operation on one setting item or an operation on a plurality of setting items, and the second input operation and the third input operation may also represent an operation on one setting item or an operation on a plurality of setting items, which is not particularly limited in the embodiment of the present application.
S703, the mobile phone generates a target card according to the component information of at least two candidate components.
The target card comprises at least two candidate components and/or target resource content corresponding to the at least two candidate components. It will be appreciated that the target card is generated by or is a constituent element of at least two candidate components selected by the user.
In some embodiments, when generating the target card, the mobile phone may display the candidate component in the target card according to the first attribute information of the candidate component. In other embodiments, after the mobile phone displays the candidate component in the target card, the mobile phone may further 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 matches the candidate component selected by the user, or in some cases, the content displayed in the target card matches the attribute information selected by the user, so that the target card better meets the requirements of the user.
For example, when generating the target card, if the selected candidate component is only used to implement the target function, for example, the candidate component is a key component, a progress bar component, and the like, the mobile phone may display the key component, the progress bar component, and the like in the target card according to the target position and/or the candidate component style in the first attribute information of the candidate component. And then, the mobile phone displays information corresponding to the target function in the key assembly according to the target function corresponding to the key assembly, the progress bar assembly and the like. For example, referring to fig. 12, a progress bar component in the target card 1201 may display current power information of the mobile phone, and a key component in the target card 1201 may display an entry of a search function, such as displaying a prompt for "search", or displaying a pattern similar to a magnifying glass, or the like.
Further exemplary, when generating the target card, if the selected candidate component is used to display the target resource content, for example, the text component, the picture component, etc., then the mobile phone may obtain the corresponding target resource content according to the source of the target resource content in the second attribute information of the target resource content (for example, the text content, the picture content, etc.). The source of the target resource content may indicate that the target resource content is from a network, from local to the mobile phone, from an APP, etc. Correspondingly, the mobile phone can acquire the corresponding target resource content from a server corresponding to the mobile phone, a server corresponding to a certain APP, a local storage space and the like. And then, 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 displays the target resource content in the candidate component according to the refreshing frequency and/or the display duration in the second attribute information. Still taking fig. 12 as an example, the picture component in the target card 1201 may take pictures in the cell phone gallery of the carousel, and the frequency of the carousel is 5 seconds, that is, the picture component shows one picture every 5 seconds.
In the card generation method provided by the embodiment of the application, the electronic equipment can generate the target card by utilizing at least two candidate components selected by the user. The candidate components are elements in the target card, and as the candidate components may implement the target functionality and/or expose target resource content, the target card may expose the candidate components to provide the corresponding functionality and/or expose target resource content of the candidate components. Because the candidate component, the first attribute information, the second attribute information and the like are all selected by the user according to the requirements, the content displayed in the generated target card and/or the provided function are content meeting the requirements of the user, and the generation of the target card can be customized by the user. Therefore, the generated target card meets the requirements of the user, the operability is enhanced, more interestingness is brought to the user in the process of generating the target card, the requirements of the user are met, and the use experience of the user is improved.
It may be understood that the first attribute information, the second attribute information, and the like acquired by the mobile phone are some primary information of the candidate component, and the first attribute information, the second attribute information, and the like may represent some primary layout information, primary style information, primary control information of the target resource content, and the like of the candidate component itself. When the user performs the first selection operation on at least two candidate components, the user may drag and move the at least two candidate components, and after the candidate components are dragged and moved, the layout modes of overlapping, juxtaposition, and the like may occur, which is specifically shown in fig. 13. After the user performs the first selection operation, a new hierarchical relationship or arrangement relationship may be generated between the candidate components (for example, the candidate component 1301 is adjacent to or juxtaposed with the candidate component 1302, the candidate component 1303 is placed above the candidate component 1304, etc.), or new control information may be generated by the target resource content.
Thus, in some embodiments, when the mobile phone generates the target card, the description file of the target card may also be generated 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 relation between the candidate components displayed in the target card, the layout condition of the candidate components, the control information of the target resource content displayed by the candidate components and the like according to the component information of at least two candidate components, namely, determines the final information (namely, the description file) of the target card to be generated based on the primary information such as the first attribute information, the second attribute information and the like. And finally, the mobile phone generates a target card according to the description file.
The description file comprises one or more of view tree description information of the target card, control description information of the target card and data description information of the target card. Wherein the view tree description information represents hierarchical relationships, logical relationships, etc. between candidate components in the target card. The control description information indicates the refresh frequency, the display duration, and the like of the target resource content displayed in the target card. The data description information indicates the source of the target resource shown in the target card, and the like.
In some possible application scenarios, the description information in the description file uses a machine language or a description language that can be identified or run by an electronic device such as a mobile phone. In order to form a smooth and complete machine language, after the mobile phone acquires the primary information, a necessary container, service control logic and the like can be added into the machine language.
The description file not only represents the complete component information of the finally generated target card, but also can be identified by electronic equipment such as a mobile phone and the like, so that the mobile phone can more accurately generate the target card meeting the requirements of users according to the description file.
In some embodiments, the target card may also have attributes of 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 better meets the user's requirements.
It can be appreciated that the candidate components shown in the target card in the embodiments of the present application may be the same type of components or may not be the same type of components. For example, the target card may have all of the picture component displayed therein, or all of the text component displayed therein, etc. For another example, both a picture component and a text component may be presented in the target card. For another example, the target card may display a component corresponding to the application a or a component corresponding to the application B. Therefore, the purpose that the target card is customized by the user is truly realized.
In some aspects, various embodiments of the application may be combined and the combined aspects implemented. Optionally, some operations in the flow of method embodiments are optionally combined, and/or the order of some operations is optionally changed. The order of execution of the steps in each flow is merely exemplary, and is not limited to the order of execution of the steps, and other orders of execution may be used between the steps. And is not intended to suggest that the order of execution is the only order in which the operations may be performed. Those of ordinary skill in the art will recognize a variety of ways to reorder the operations described by embodiments of the present application. In addition, it should be noted that details of processes involved in one embodiment of the present application are equally applicable to other embodiments in a similar manner, or may be used in combination between different embodiments.
Moreover, some steps in method embodiments may be equivalently replaced with other possible steps. Or some steps in method embodiments may be optional and may be deleted in some usage scenarios. Or other possible steps may be added to the method embodiments. Moreover, the method embodiments may be implemented alone or in combination.
It will be appreciated that, in order to achieve the above-described functionality, the electronic device described above comprises corresponding hardware and/or software modules that perform the respective functionality. The present application can be implemented in hardware or a combination of hardware and computer software, in conjunction with the example algorithm steps described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The present embodiment may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
Embodiments of the present application also provide an electronic device, as shown in fig. 14, which may include one or more processors 1401, memory 1402, and a communication interface 1403. Wherein a memory 1402, a communication interface 1403 are coupled to the processor 1401. For example, memory 1402, communication interface 1403, and processor 1401 may be coupled together via bus 1404.
Wherein communication interface 1403 is used for data transmission with other devices. Memory 1402 has stored therein computer program code. The computer program code comprises computer instructions which, when executed by the processor 1401, cause the electronic device to perform the card generating method in an embodiment of the application.
The Processor 1401 may be a Processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application-specific integrated Circuit (ASIC), a field programmable gate array (Field Programmable GATE ARRAY, FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with embodiments of the application. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
The bus 1404 may be a peripheral component interconnect (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus 1404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 14, but not only one bus or one type of bus.
Embodiments of the present application also provide a computer readable storage medium having stored therein computer program code which, when executed by the above-described processor, causes the processor to perform the relevant method steps of the method embodiments described above.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the relevant method steps of the method embodiments described above.
The electronic device, the computer storage medium or the computer program product provided by the present application are used to execute the corresponding method provided above, and therefore, the advantages achieved by the present application may refer to the advantages in the corresponding method provided above, and will not be described herein.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application, or a contributing part or all or part of the technical solution, may be embodied in the form of a software product, where the software product is stored in a storage medium, and includes several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (19)
1. A card generation method, comprising:
receiving a first selection operation of a user, wherein the first selection operation is used for generating a target card;
Acquiring component information of at least two candidate components in response to the first selection operation, wherein each candidate component is used for realizing a target function and/or displaying target resource content;
and generating the target card according to the component information of at least two candidate components, wherein the target card comprises at least two candidate components and/or target resource contents corresponding to the at least two candidate components.
2. The method of claim 1, wherein the component information comprises first attribute information of the candidate component and/or second attribute information of the target resource content.
3. The method of claim 2, wherein the obtaining component information for at least two candidate components in response to the first selection operation comprises:
Responding to the first selection operation, and displaying a first attribute setting item corresponding to first attribute information of the candidate component;
receiving a second selection operation of the user on the first attribute setting item and acquiring first attribute information corresponding to the second selection operation, or
And receiving a second input operation of the user on the first attribute setting item, and acquiring first attribute information corresponding to the second input operation.
4. The method of claim 2 or 3, wherein the first attribute information for the candidate component includes one or more of the candidate component type, the candidate component style, and a target location of the candidate component in the target card determined in response to the first selection operation.
5. The method of claim 4, wherein the generating the target card from the component information of at least two of the candidate components comprises:
when the candidate component type is a key component, displaying the key component in the target card according to the target position and the candidate component style in the first attribute information;
and displaying information corresponding to the target function in the key assembly according to the target function corresponding to the key assembly.
6. The method of claim 4, wherein the obtaining component information for at least two candidate components in response to the first selection operation comprises:
Responding to the first selection operation, and displaying a second attribute setting item corresponding to second attribute information of target resource content of the candidate component when the candidate component type is one or more of a picture component and a text component;
Receiving a third selection operation of the user on the second attribute setting item and acquiring second attribute information corresponding to the third selection operation, or
And receiving a third input operation of the user on the second attribute setting item, and acquiring second attribute information corresponding to the third input operation.
7. The method of any of claims 2-6, wherein the second attribute information of the target resource content includes one or more of a source of the target resource content, a refresh frequency, a presentation duration.
8. The method of claim 7, wherein the generating the target card from the component information of at least two of the candidate components comprises:
Acquiring 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;
and displaying the target resource content in the candidate component according to the refresh frequency and/or the display duration in the second attribute information.
9. The method of any of claims 1-8, wherein the receiving a first selection operation of a user comprises:
Receiving a voice control instruction input by a user, and responding to the voice control instruction, and displaying a component page comprising at least two candidate components;
or receiving a first input operation of a user, and responding to the first input operation, displaying a component page comprising at least two candidate components;
Or receiving long-press operation of a user on a blank position on the screen of the electronic equipment, and responding to the long-press operation, displaying a component page comprising at least two candidate components;
A first selection operation of at least two candidate components by a user is received.
10. The method of any of claims 1-9, wherein the generating the target card from the component information of at least two of the candidate components comprises:
Generating a description file of the target card according to the component information of at least two candidate components, wherein the description file comprises one or more of view tree description information among candidate components in the target card, control description information of the target card and data description information of the target card;
And generating the target card according to the description file.
11. A card generation method, comprising:
The user interaction module receives a first selection operation of a user and responds to the first selection operation to send indication information to the card description generation module, wherein the first selection operation is used for generating a target card;
The card description generation module acquires the component information of the first component and the component information of the second component according to the indication information, 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 respectively sends the description file to the content providing module and the card host module;
The content providing module obtains first target resource content corresponding to the first component and 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;
and the card host module displays the target card comprising the first target resource and the second target resource according to the description file, the first target resource content and the second target resource content.
12. The method according to claim 11, wherein 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 exhibited 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 exhibited by the second component.
13. The method of claim 12, wherein the card description generation module obtains component information of the first component from the indication information, comprising:
The card description generation module displays a 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 a second selection operation of the first attribute setting item by a user and acquires first attribute information corresponding to the second selection operation, or
And the card description generating module receives a second input operation of the user on the first attribute setting item and acquires first attribute information corresponding to the second input operation.
14. The method according to claim 12 or 13, wherein the card description generation module obtains component information of the first component according to the indication information, including:
The card description generation module displays a second attribute setting item corresponding to second attribute information of 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 second attribute setting item by a user and acquires second attribute information corresponding to the third selection operation, or
And the card description generating module receives a third input operation of the user on the second attribute setting item and acquires second attribute information corresponding to the third input operation.
15. The method of any of claims 11-14, wherein the description file includes one or more of view tree description information between the first component and the second component in the target card, control description information of the target card, data description information of the target card.
16. The method according to any one of claims 11-15, wherein the content providing module obtains, from the description file, a first target resource content corresponding to the first component and a second target resource content corresponding to the second component, including:
And the content providing module acquires 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 comprising a memory, one or more processors, the memory coupled to the processors, the memory having stored therein computer program code comprising computer instructions that, when executed by the processors, cause the electronic device to perform the card generation method of any of claims 1-10 or the card generation method of any of claims 11-16.
18. The electronic equipment is characterized by comprising a user interaction module, a card description generation module, a content providing module and a card hosting module;
The user interaction module is used for receiving a first selection operation of a user and responding to the first selection operation to send indication information to the card description generation module, wherein the first selection operation is used for generating a target card;
The card description generation module is used for acquiring the component information of the first component and the component information of the second component according to the indication information, generating 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 respectively sending the description file to the content providing module and the card host module;
the content providing module is used for acquiring first target resource content corresponding to the first component and second target resource content corresponding to the second component according to the description file, and sending the first target resource content and the second target resource content to the card host module;
And the card host module is used for displaying the target card comprising the first target resource and the second target resource according to the description file, the first target resource content and the second target resource content.
19. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the card generation method of any one of claims 1-10 or to perform the card generation method of any one of claims 11-16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310633823.7A CN119065533A (en) | 2023-05-30 | 2023-05-30 | Card generation method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310633823.7A CN119065533A (en) | 2023-05-30 | 2023-05-30 | Card generation method and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN119065533A true CN119065533A (en) | 2024-12-03 |
Family
ID=93637599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310633823.7A Pending CN119065533A (en) | 2023-05-30 | 2023-05-30 | Card generation method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119065533A (en) |
-
2023
- 2023-05-30 CN CN202310633823.7A patent/CN119065533A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112230909B (en) | Method, device, equipment and storage medium for binding data of applet | |
CN105830150B (en) | User experience based on intention | |
US10595169B2 (en) | Message extension app store | |
US10194288B2 (en) | Sticker distribution system for messaging apps | |
US20170139890A1 (en) | Smart card presentation of tabular data from collaboration database | |
US20170359283A1 (en) | Music creation app in messaging app | |
CN104350493A (en) | Transforming data into consumable content | |
CN114238808A (en) | Page display method, apparatus, computer equipment and storage medium | |
KR102634375B1 (en) | Methods and systems for positioning animated images within a dynamic keyboard interface | |
CN115079915B (en) | Calendar view display method, electronic device and readable storage medium | |
CN102436344A (en) | Context menu | |
CN104104766A (en) | Terminal apparatus, server and method of controlling the same | |
CN110990700A (en) | Comment information display method, device, client, server and system | |
KR102770347B1 (en) | Methods and systems for positioning animated images within a dynamic keyboard interface | |
CN112732652A (en) | Information display method and device and electronic equipment | |
WO2022249676A1 (en) | Program, method, and information processing device | |
CN114201464A (en) | Data display method, apparatus, computer equipment and storage medium | |
US20150253969A1 (en) | Apparatus and Method for Generating and Outputting an Interactive Image Object | |
CN110083284B (en) | Candidate information processing device, candidate information display method, storage medium, and electronic device | |
CN119065533A (en) | Card generation method and electronic device | |
CN115017522B (en) | Permission recommendation method and electronic equipment | |
KR102181579B1 (en) | Method for providing patient information sticker service and dental insurance claim system therefor | |
KR20130017797A (en) | Method and system for generating and managing annotation on electronic book | |
CA2923602A1 (en) | Apparatus and method for generating and outputting an interactive image object | |
CN109416698A (en) | Layout is carried out to the organizing links for traveling to mobile application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |