Content display method, electronic equipment and storage medium
By rendering and displaying the card first after receiving content input, and then updating the content response result, the problem of long user waiting time is solved, and the smoothness and efficiency of content display are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2026-03-31
AI Technical Summary
In question-and-answer scenarios, users have to wait a long time after entering content before they can see the response, resulting in poor content display smoothness.
After receiving content input, the card is first rendered and displayed, and then the content response result is updated in the card until a complete response result is generated.
It shortens the time users wait for responses, improves the smoothness and efficiency of content display, and enhances the user experience.
Smart Images

Figure CN121764570A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and in particular to a content display method, electronic device, and storage medium. Background Technology
[0002] In a question-and-answer scenario, after a user enters content in the question-and-answer interface, the device interface will automatically display the corresponding answer.
[0003] In related technologies, after an electronic device acquires input content, it performs content analysis on the input content to obtain the corresponding response content, and then renders the response content onto the device interface for display.
[0004] However, the above method can lead to a long waiting time for users from the time they finish entering their input to the time the response appears, thus reducing the smoothness of the content display. Summary of the Invention
[0005] This application provides a content display method, electronic device, and storage medium that can render and display a card after receiving a content input operation, and display the response result obtained from the analysis in the card during the card display process, thereby avoiding long waiting times for users during the response content generation process and improving the smoothness of content display.
[0006] In a first aspect, a content display method is provided, the method comprising: in response to receiving a content input operation, acquiring input content, the input content being related to a first application; rendering a card corresponding to the first application based on the content input operation to obtain a first card, the first card being used to indicate that the input content is in an analysis state; during the process of displaying the first card on a device interface, updating and displaying a content response result corresponding to the input content in the first card, until a second card is obtained, the content response result being generated based on content in the first application, and the second card displaying the content response result.
[0007] In this technical solution, after obtaining input content related to the first application, the card corresponding to the first application is first rendered to obtain the first card. Then, during the display of the first card, the content response result corresponding to the input content is updated and displayed in the first card, finally resulting in the second card, which displays the content response result. That is, after receiving an input operation, the card is rendered and displayed first, and subsequently, the content response result corresponding to the input content is updated and displayed in the card, ultimately displaying a second card containing the content response result. This shortens the user's waiting time for the content response result, improves the content display efficiency, and further enhances the user experience.
[0008] It should be understood that content input operation refers to generating input content in a designated area of the user interface. Taking an electronic device as an example, a terminal device running an application with question-and-answer functionality displays a content input area on its interface. When a content input operation is received in the content input area, the input content is displayed there.
[0009] Optionally, the input content can be expressed in the form of a declarative sentence; or, the input content can be expressed in the form of an interrogative sentence; or, the input content can be expressed in the form of a noun, without any limitation.
[0010] In illustrative terms, the input content is related to the first application. This can be understood as the input content containing keywords that are related to the program functions provided in the first application. For example, if the input content is "search for food in City A," and the first application is a food recommendation application with a food recommendation function, then the keywords "search" and "food" in the input content are related to the food recommendation function. Alternatively, the semantic information corresponding to the input content is related to the program functions provided in the first application. For example, if the input content is "how long I slept," the corresponding semantic information is "user sleep duration," and the first application is a sleep detection application with a sleep detection function, then "user sleep duration" is related to the sleep detection function.
[0011] It should be understood that the first card and the second card are different cards. Optionally, the first card and the second card may correspond to different card forms, for example: the size of the first card may be smaller than the size of the second card; or, the content contained in the first card and the second card may be different, for example: the first card may contain no content, while the second card may display complete content.
[0012] It should be understood that the content response result refers to the result content generated in response to the input content; that is, there is a correspondence between the content response result and the input content.
[0013] Optionally, the response results may be displayed in text format; or in image format; or in voice broadcast format; or in video format, without limitation.
[0014] Indicatively, the display of the first card indicates that the input content is currently being analyzed, while the display of the second card indicates that the analysis of the input content has been completed and the corresponding response result has been obtained.
[0015] It should be understood that, taking an electronic device as an example, when the terminal device receives a content input operation, it first renders the first card and displays it on the device interface. Then, the content response result is gradually updated and displayed in the first card. The card form of the first card changes as the content response result is updated, and finally, a second card containing the content response result is displayed.
[0016] Optionally, the updated display methods for the content response results include the following:
[0017] 1. The content response results include multiple content elements, which are progressively updated and displayed in the first card;
[0018] 2. The complete response result is displayed directly in the first card;
[0019] 3. First, display the content elements one by one in the first card. When the k-th content element is displayed, the remaining content elements in the content response result are displayed simultaneously.
[0020] In conjunction with the first aspect, in some implementations of the first aspect, the content response result includes multiple content elements; the above method also includes: when the i-th content element is obtained, updating and displaying the i-th content element in the first card, where i is a positive integer; and when the multiple content elements have been updated and displayed, obtaining the second card.
[0021] It should be understood that content elements refer to the components in the content response result. For example, when the content response result is displayed as text content, the content element is implemented as a text element. Or, when the content response result is displayed as an image, the content element is an image element.
[0022] By using the above method, when the content response result contains multiple content elements, whenever at least one content element is obtained, that content element is randomly updated and displayed in the first card, thereby achieving a streaming output effect for the content response result. This enhances the efficiency of content generation and further improves the user experience as the content elements are continuously updated and displayed.
[0023] In conjunction with the first aspect, in some implementations of the first aspect, the above method further includes: when the server analyzes and obtains the i-th content element, receiving the i-th content element through a first communication protocol, the first communication protocol being used to instruct the server to send the updated content element to the electronic device in real time; and updating and displaying the i-th content element in the first card.
[0024] It should be understood that the server analyzes the input content to obtain multiple content elements as the content response result. Whenever the server obtains a content element, it sends that element to the electronic device via a first communication protocol. Upon receiving the content element, the electronic device updates its display in the first card. This method enables real-time acquisition of content elements through the communication protocol, allowing for streaming output and display in the first card, thus improving content display efficiency.
[0025] In conjunction with the first aspect, in some implementations of the first aspect, the above method further includes: calling a content setting interface, which is used to determine the display method of the content response result; setting the update display method of the content element based on the content setting interface, which is used to indicate the display effect when the content element is updated and displayed in the first card; and updating and displaying the i-th content element in the first card based on the update display method.
[0026] By using the above method, the display method of multiple content elements in the content response result can be determined by the content setting interface. During the content display process, the interface can be called to complete the streaming output display of multiple content elements, thereby improving the content display efficiency.
[0027] In conjunction with the first aspect, in some implementations of the first aspect, the above method further includes: creating an initial card based on content input operations; obtaining a first card package corresponding to the first application, the first card package being used to store the first card resources corresponding to the first application; obtaining the element layout information corresponding to the first card, the element layout information being used to indicate the display status of the elements displayed in the first card; and rendering the initial card based on the first card resources and the element layout information to obtain the first card.
[0028] Using the above method, during the creation of the initial card, by obtaining and downloading the first card package corresponding to the first card, it is possible to directly render the initial card to obtain the first card. This eliminates the need to determine the rendering method of the first card in real time, thereby improving card rendering efficiency and further enhancing content display efficiency.
[0029] In conjunction with the first aspect, in some implementations of the first aspect, the above method further includes: obtaining the control tree corresponding to the first card, the control tree including multiple display element nodes arranged according to a first distribution structure, the first distribution structure being used to indicate the distribution position of the multiple display elements in the first card; and determining the element layout based on the display element nodes and the first distribution structure.
[0030] By using the above method, and by setting the control tree corresponding to the card, the distribution position of the display elements in the card can be determined by using each display element node in the control tree. This allows the display content of the card to be determined directly based on the control tree, thus improving the card rendering efficiency.
[0031] In conjunction with the first aspect, in some implementations of the first aspect, the content response result includes multiple content elements, and the first card corresponds to the first display parameter; the above method also includes: as multiple content elements are updated to the first card, a card update animation of the first card is displayed synchronously, the card update animation refers to the first card adjusting the display parameter in real time based on the update speed of the content elements until a second card is obtained, and the second card corresponds to the second display parameter.
[0032] By using the above method, as multiple content elements are updated and displayed on the first card, the first card is expanded in real time according to the update speed of the content elements, and finally the second card is obtained. This method can ensure that the update speed of the content response results is synchronized with the update speed of the cards, and improve the coordination of content display.
[0033] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: rendering the card corresponding to the first application based on the content input operation to obtain a third card, the third card being used to indicate the loading of the content control of the first application; during the display of the third card on the device interface, as the content response result is updated and displayed in the first card, a control display animation is synchronously displayed in the third card, the control display animation being used to indicate the display of the content control in the third card, the function type of the content control being related to the content response result; in response to receiving a trigger operation on the content control, jumping to display the content page corresponding to the content control on the device interface.
[0034] Using the above method, in addition to displaying the content response results, content controls related to the first application can also be displayed for users to jump to the application. This enables users to jump from the current application to a new application in one step through the third card, shortening the time it takes for users to jump to applications and thus improving the efficiency of human-computer interaction.
[0035] In a second aspect, a content display device is provided, the device comprising a unit consisting of software and / or hardware for performing any of the methods of the first aspect.
[0036] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it is able to implement any of the methods of the first aspect.
[0037] Fourthly, a chip is provided, including a processor for reading and executing a computer program stored in a memory, wherein the computer program, when executed by the processor, is capable of implementing any of the methods of the first aspect.
[0038] Optionally, the chip also includes a memory electrically connected to the processor.
[0039] Optionally, the chip may also include a communication interface.
[0040] Fifthly, a computer-readable storage medium is provided that stores a computer program that, when executed by a processor, can implement any of the methods of the first aspect.
[0041] In a sixth aspect, a computer program product is provided, comprising a computer program that, when executed by a processor, can implement any of the methods of the first aspect. Attached Figure Description
[0042] Figure 1 This is a schematic diagram of a content display interface according to an embodiment of this application.
[0043] Figure 2 This is a schematic diagram of a content display interface according to an embodiment of this application.
[0044] Figure 3 This is a schematic diagram of a content display interface according to an embodiment of this application.
[0045] Figure 4 This is a block diagram of a software system for an electronic device according to an embodiment of this application.
[0046] Figure 5 This is a flowchart of a content display method according to an embodiment of this application.
[0047] Figure 6 This is a flowchart of a content display method according to an embodiment of this application.
[0048] Figure 7 This is a flowchart of a content display method according to an embodiment of this application.
[0049] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0050] The embodiments of this application will now be described in conjunction with the accompanying drawings.
[0051] In the traditional approach, the rendering process for card content involves first determining the content to be displayed on the card, then sending the content to the card rendering module. The card rendering module then renders the content onto the card, and finally displays the rendered card on the device interface. The card includes the content to be displayed.
[0052] However, in the above scenarios, since it takes a certain amount of time to obtain the display content and another certain amount of time to render the display content on the card, users often have to wait a long time before the card with the display content is displayed on the device interface when they have a need for card display. This reduces the content display efficiency and affects the user experience.
[0053] To address the aforementioned issues, this application provides a content display method. After an electronic device receives an input operation, it prioritizes rendering and displaying the card. Subsequently, the content response result corresponding to the input content is updated and displayed on the card, ultimately displaying a new card containing the content response result. This shortens the user's waiting time for the content response result, improves the content display efficiency, and further enhances the user experience.
[0054] Before detailing the methods provided in the embodiments of this application, the execution entities provided in the embodiments of this application will be introduced first. In one case, the methods provided in the embodiments of this application can be executed by an electronic device with image capturing capabilities. The main application scenario is a scenario where a photograph is taken using an electronic device, specifically, it is applied to an image processing scenario of an electronic device. As an example and not a limitation, the electronic device can be, but is not limited to, terminals such as mobile phones, smartwatches, and tablets, and the embodiments of this application do not limit this. In another case, the methods provided in the embodiments of this application can be executed collaboratively by an electronic device with image capturing capabilities and a server. More specifically, the technical solutions in the embodiments of this application can be applied to a terminal device and a server.
[0055] The electronic devices (i.e., the terminal devices mentioned above) in this application embodiment can be televisions, desktop computers, laptops, or portable electronic devices such as mobile phones, tablets, cameras, camcorders, video recorders, or other electronic devices with photography functions, electronic devices in 5G networks, or electronic devices in future evolved public land mobile networks (PLMNs), etc. This application does not limit them.
[0056] The server in this application embodiment can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Alternatively, the server can also be implemented as a node in a blockchain system. Therefore, this application does not limit the implementation architecture of the server.
[0057] The following section provides a detailed explanation of the content display process using different scenarios as examples.
[0058] Figure 1 This is a schematic diagram of the content display interface provided in the embodiments of this application. Figure 1 In a sleep detection scenario, taking an electronic device as the terminal device as an example, the terminal device runs an application with question-and-answer functionality. Currently, the application's corresponding question-and-answer interface 110 is displayed. When the question-and-answer interface 110 receives input, it displays the input content 101, "How long did I sleep last night?". After displaying input content 101, the interface 110 displays a first card 102. Currently, the first card 102 does not display any content related to input content 101. After displaying the first card 102, the displayed content elements are updated character by character until the final response result 103 is displayed. At this point, the first card 102 is updated to the second card 104. The response result 103 is generated based on sleep data provided by application A, which is an application with sleep detection functionality. The response result 103 indicates that the current user's sleep time is 8 hours and 15 minutes.
[0059] from Figure 1 It can be seen that after the input content is generated, the first card is first displayed in the question and answer interface. Then, the content answer result is gradually updated in the first card. Furthermore, the first card changes as the content answer result is continuously updated. Finally, a second card is displayed in the question and answer interface, and the content answer result is displayed in the second card. Therefore, when the user inputs content, the display status of the question and answer result corresponding to the input content is continuously updated in the question and answer interface, so that the generation process of the content answer result is presented in a step-by-step manner, which improves the animation continuity of the content answer result display process and enhances the user's question and answer experience.
[0060] It is worth noting that the application with question-and-answer functionality is the second application, and the application that provides sleep data is the first application. The second application is the application that generates the input content and the corresponding content response results, while the first application is the application that provides the basis for the content response results. That is, the content response results are generated based on the relevant data in the first application.
[0061] Figure 2 This is a schematic diagram of the content display interface provided in the embodiments of this application. Figure 2In a fitness scenario, taking an electronic device as the terminal device as an example, the terminal device runs an application with question-and-answer functionality. Currently, the application's corresponding question-and-answer interface 210 is displayed. When the question-and-answer interface 210 receives input, it displays the input content 201, "What courses do I frequently practice?". After displaying input content 201, a first card 202 is displayed in the question-and-answer interface 210. Currently, the first card 202 does not display any content related to the input content 201. After displaying the first card 202, the displayed content elements in the first card 202 are updated until the final content response result 203 is displayed. At this point, the first card 202 is updated to the second card 204. The content response result 203 is generated based on course records provided by application B. These course records represent the courses the user selected for exercise within a historical time period. Application B is a fitness application, and the content response result 203 displays the courses the user frequently practices, including beginner and advanced training.
[0062] It is worth noting that, with Figure 1 The difference is, Figure 2 The content response results include not only text content but also image content. Therefore, as the content response results are gradually updated and displayed, if the content response results include multiple image contents, then the multiple image contents will be displayed one by one in the first card.
[0063] In a feasible scenario, Figure 2 For example, currently Figure 2 The corresponding response result 203 includes course introduction controls for introductory training and advanced training. If the terminal device receives a trigger operation on the course introduction control for introductory training, the course introduction interface for introductory training will be displayed in the Q&A interface 210; or, the device will jump to application B according to the trigger operation and display the course introduction interface for introductory training in the terminal interface, thus realizing the application jump function.
[0064] Figure 3 This is a schematic diagram of the content display interface provided in the embodiments of this application. Figure 3In a navigation scenario, taking an electronic device as the terminal device as an example, the terminal device runs an application with question-and-answer functionality. Currently, the application's corresponding question-and-answer interface 310 is displayed. When the question-and-answer interface 310 receives an input operation, the input content 201 "How to get to location A?" is displayed. After displaying the input content 301, a first card 302 is displayed in the question-and-answer interface 310. Currently, the first card 302 does not display any content related to the input content 301. After displaying the first card 302, the displayed content elements in the first card 302 are updated until the final content response result 303 is displayed. At this point, the first card 302 is updated to the second card 304. The content response result 303 is generated based on location data provided by application C. Location data refers to the geographical coordinates corresponding to all locations within a specified area. Application C is an application with navigation functionality. The content response result 303 is used to display route 1 and route 2 from the current location to location A.
[0065] In a feasible scenario, Figure 3 For example, currently Figure 3 The corresponding response result 303 includes selection control 1 for route 1 and selection control 2 for route 2. If the terminal device receives the trigger operation of selection control 1, the navigation interface corresponding to route 1 will be displayed in the question and answer interface 310; or, according to the trigger operation, it will jump to application C and display the navigation interface corresponding to route 1 in the terminal interface, thus realizing the application jump function.
[0066] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the standards of the relevant regions.
[0067] Figure 4 This is a block diagram of a software system for an electronic device provided in an embodiment of this application. See also... Figure 8 A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime, the system layer, and the kernel layer.
[0068] The application layer can include a series of application packages. For example... Figure 8As shown, the application package can include third-party applications, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, Q&A applications, and other applications.
[0069] Among them, the question-and-answer application refers to an application that automatically generates a response after the user inputs a question or answer statement.
[0070] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example... Figure 8 As shown, the application framework layer can include a window manager, content providers, a view system, a phone manager, a resource manager, and a notification manager. The window manager manages window programs. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture the screen. The content provider stores and retrieves data, making this data accessible to the application. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, and phone books. The view system includes visual controls, such as controls for displaying text and controls for displaying images. The view system can be used to build the application's display interface, which can consist of one or more views, such as a view displaying SMS notification icons, a view displaying text, and a view displaying images. The phone manager provides communication functions for electronic devices, such as managing call status (including connection and disconnection). The resource manager provides the application with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager allows the application to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager is used to notify users of download completions and message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications. Furthermore, the notification manager can appear as dialog boxes on the screen, such as displaying text messages in the status bar, emitting sounds, causing electronic devices to vibrate, or flashing indicator lights.
[0071] The Android Runtime comprises the core libraries and the virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system. The core libraries consist of two parts: one part contains the functionalities that Java calls, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0072] The system library can include multiple functional modules, such as a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and a 2D graphics engine (e.g., SGL). The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media libraries support playback and recording of various common audio and video formats, as well as still image files. The media libraries support various audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D graphics processing libraries are used for 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D graphics.
[0073] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0074] The content display method provided in the embodiments of this application will now be described in detail.
[0075] This is illustrative; please refer to it. Figure 5 It illustrates an interactive flowchart of a content display method provided in an exemplary embodiment of this application, such as... Figure 5 As shown, the interaction process corresponding to this method includes user 500, card component 501, quick app engine 502, card engine 503, question and answer application 504, first application 505, and cloud service 506.
[0076] Card component 501 refers to a card-style component developed using JavaScript technology, used to display various content information in web pages or application interfaces.
[0077] Quick App Engine 502 means that users can open and run applications directly on terminal devices that support the engine without downloading and installing them.
[0078] Card engine 503 refers to a system for creating, managing, and displaying card-style content; in this embodiment, it is used to generate the first card and the second card.
[0079] The 504 response tool is an application that automatically generates a response after you enter a question or answer statement.
[0080] The first application 505 can be implemented as a quick app or a download app.
[0081] Cloud service 506 refers to the cloud-side service distribution model corresponding to the first application 505. The cloud-side service distribution model refers to the model of deploying cloud computing services (including infrastructure, platform, software, etc.) in the cloud (i.e., remote data center or server cluster) and providing services to users through the network.
[0082] The first step is to input the content.
[0083] During the operation of the terminal device with question and answer function, a question and answer interface is displayed. When the content input is received in the question and answer interface, the input content is generated according to the content input operation.
[0084] The second step is to send the input content to the first application.
[0085] After receiving the input content, the query response application identifies the application related to the input content as the first application and sends the input content to the first application.
[0086] The methods for identifying the application associated with the input content include at least one of the following:
[0087] 1. Extract keywords from the input content and identify the application related to the keywords from multiple candidate applications deployed on the terminal device as the first application. For example, when the input content includes the keyword "sleep", the application related to it is a sleep detection program.
[0088] 2. During the input operation of receiving content, multiple candidate contents are displayed in the question and answer interface. Each candidate content corresponds to a candidate application deployed in the terminal device. When a trigger operation for a specified content is received, the specified content is used as the input content, and the candidate application corresponding to the specified content is used as the first application.
[0089] It is worth noting that the above-described method for determining the first application is merely an illustrative example, and the embodiments of this application do not limit it.
[0090] In a schematic way, when the query response application receives the input content, it sends the input content to the first application to obtain data or information associated with the input content in the first application.
[0091] The third step is to trigger the card rendering event.
[0092] The Q&A application has a card display function. When the input content is sent to the first application, a card rendering event (on show) is triggered. That is, the first card is rendered and displayed in the Q&A interface corresponding to the Q&A application.
[0093] Step 4: Streaming output.
[0094] The first application deploys an agent, which is implemented as a software component responsible for executing the streaming output of the response results corresponding to the input content.
[0095] Among them, the streaming output of content response results refers to the process of generating multiple content elements one by one in the content response results.
[0096] The intelligent agent performs reasoning operations on the input content, outputs content elements one by one, and finally forms the content response result.
[0097] Among them, reasoning operation refers to the analysis and operation of input content based on the knowledge stored in its internal storage. This knowledge is usually represented in the form of rules, models, cases, etc.
[0098] In the process of analyzing and calculating the input content based on the model, a reasoning model is pre-trained, which can be implemented as a neural network model.
[0099] When the agent receives input content, it first parses the input content to understand its semantics and structure. This includes natural language processing tasks such as word segmentation, part-of-speech tagging, and syntactic analysis. Next, the agent retrieves relevant analysis models from a pre-stored knowledge base. Then, it uses these analysis models to perform reasoning and computation on the input content, obtaining a corresponding content response. This content response contains multiple content elements; the analysis model analyzes each element individually during the reasoning process, and finally uses these multiple content elements as the content response.
[0100] Step 5: Streaming of Messages.
[0101] A Message is a communication method used to pass information between different components. Since the first card is displayed in the question-and-answer application, and the content elements are generated by the first application, the content elements are passed to the first card corresponding to the question-and-answer application by calling the card engine 503 through a Message. Specifically, the Message corresponding to the card component 501 is called once every time a content element is generated.
[0102] Step 6: Invoke the information channel.
[0103] When the card engine 503 receives the content element, it calls the information channel of the quick app engine 502 corresponding to the first application. The information channel is the transmission path used by the card engine 503 to transmit information to the quick app engine 502.
[0104] Step 7: Render update.
[0105] After invoking the information channel, the above content elements are sequentially updated and rendered into the first card through the communication channel, and finally the second card containing the content response result is displayed.
[0106] This is illustrative; please refer to it. Figure 6 It illustrates a schematic diagram of a content display method provided in an exemplary embodiment of this application, such as... Figure 6 As shown, the method includes the following steps.
[0107] Step 610: In response to receiving a content input operation, obtain the input content.
[0108] The input content is related to the first application.
[0109] In illustrative terms, content input operation refers to generating input content in a designated area of the user interface. Taking an electronic device as an example, a terminal device runs an application with question-and-answer functionality. The application's display screen shows a content input area. When a content input operation is received in the content input area, the input content is displayed there.
[0110] Optionally, the input content can be expressed in the form of a declarative sentence; or, the input content can be expressed in the form of an interrogative sentence; or, the input content can be expressed in the form of a noun, without any limitation.
[0111] In illustrative terms, the input content is related to the first application. This can be understood as the input content containing keywords that are related to the program functions provided in the first application. For example, if the input content is "search for food in City A," and the first application is a food recommendation application with a food recommendation function, then the keywords "search" and "food" in the input content are related to the food recommendation function. Alternatively, the semantic information corresponding to the input content is related to the program functions provided in the first application. For example, if the input content is "how long I slept," the corresponding semantic information is "user sleep duration," and the first application is a sleep detection application with a sleep detection function, then "user sleep duration" is related to the sleep detection function.
[0112] In this embodiment, the first application is a quick application deployed on the terminal device, or the first application is an application downloaded and installed on the terminal device; there is no limitation on this.
[0113] For the steps to obtain the input content, please refer to [link / reference]. Figure 7 Step ① in the process, such as Figure 7 As shown, taking an electronic device as an example of a terminal device, a question-and-answer application is deployed in the terminal device. The question-and-answer application can also be called a media application. Furthermore, the question-and-answer application has the function of displaying card content. Therefore, the question-and-answer application can also be a card host, used to represent an application that carries or displays card content.
[0114] In the Q&A interface, after receiving the user's input, a question card corresponding to the input is displayed, indicating that the input is displayed in card form in the Q&A interface.
[0115] In addition, for the card display function, a card software development kit (SDK), also known as a card engine, is deployed to create, manage and present cards (such as adaptive cards, card views, etc.).
[0116] Step 620: Render the card corresponding to the first application based on the content input operation to obtain the first card.
[0117] The first card indicates that the input content is in the analysis state.
[0118] For illustrative purposes, the first card and the second card are different cards. Optionally, the first card and the second card may correspond to different card forms, for example, the size of the first card may be smaller than the size of the second card; or, the content contained in the first card and the second card may be different, for example, the first card may contain no content, while the second card may display complete content.
[0119] refer to Figure 3 As shown, during the display of the first card, a "..." mark is displayed on the first card to indicate that the current first card is not the card that the input content will eventually correspond to, but only represents an initial state. During the display of the first card, it indicates that the response result for the content corresponding to the input content is in the analysis state and has not yet been generated.
[0120] Step 630: During the process of displaying the first card on the device interface, the response result corresponding to the input content is updated and displayed in the first card until the second card is obtained.
[0121] The content response results are generated based on the content in the first application, and the content response results are displayed in the second card.
[0122] The content response result refers to the result content generated in response to the input content; that is, the content response result corresponds to the input content.
[0123] Optionally, the response results may be displayed in text format; or in image format; or in voice broadcast format; or in video format, without limitation.
[0124] Indicatively, the display of the first card indicates that the input content is currently being analyzed, while the display of the second card indicates that the analysis of the input content has been completed and the corresponding response result has been obtained.
[0125] In some embodiments, taking an electronic device as an example as a terminal device, when the terminal device receives a content input operation, it first renders a first card and displays it on the device interface. Then, it gradually updates and displays the content response result to the first card. The card form of the first card changes as the content response result is updated, and finally a second card containing the content response result is displayed.
[0126] Optionally, the updated display methods for the content response results include the following:
[0127] 1. The content response results include multiple content elements, which are progressively updated and displayed in the first card;
[0128] 2. The complete response result is displayed directly in the first card;
[0129] 3. First, display the content elements one by one in the first card. When the k-th content element is displayed, the remaining content elements in the content response result are displayed simultaneously.
[0130] In this embodiment of the application, since the first card changes as the content response results are continuously updated, the final changed first card is regarded as the second card. That is, the second card is obtained by updating the first card according to the content response results.
[0131] In this technical solution, after obtaining input content related to the first application, the card corresponding to the first application is first rendered to obtain the first card. Then, during the display of the first card, the content response result corresponding to the input content is updated and displayed in the first card, finally resulting in the second card, which displays the content response result. That is, after receiving an input operation, the card is rendered and displayed first, and subsequently, the content response result corresponding to the input content is updated and displayed in the card, ultimately displaying a second card containing the content response result. This shortens the user's waiting time for the content response result, improves the content display efficiency, and further enhances the user experience.
[0132] This is illustrative; please refer to it. Figure 8 This illustrates a flowchart of a content display method provided in an exemplary embodiment of this application, wherein step 630 further includes steps 631 and 632, as follows: Figure 8 As shown, the method includes the following:
[0133] Step 620: Render the card corresponding to the first application based on the content input operation to obtain the first card.
[0134] The first card indicates that the input content is in the analysis state.
[0135] In some embodiments, an initial card is created based on a content input operation; a first card package corresponding to a first application is obtained, the first card package being used to store the first card resources corresponding to the first application; the element layout information corresponding to the first card is obtained, the element layout information being used to indicate the display status of the elements displayed in the first card; the initial card is rendered based on the first card resources and the element layout information to obtain the first card.
[0136] Indicatively, the initial card is used to represent the initial state of the first card. Optionally, the initial cards corresponding to different applications are the same; or, the initial cards corresponding to different applications are different.
[0137] To illustrate, when a content input operation is received, the request and response function creates an initial card. At this time, the first card package corresponding to the first application is obtained, which is used to obtain the first card resource corresponding to the first application.
[0138] The card resources include the configuration list corresponding to the first card, the code content corresponding to the first card, etc.
[0139] In this embodiment, multiple candidate applications are deployed in the terminal device. Different candidate applications correspond to different card packages. Therefore, the card packages corresponding to different candidate applications are named independently so that each candidate application's card package has a unique card package name. When the first application corresponding to the input content is determined, the first card package corresponding to the first application is determined according to the card package name, and the first card resources required for rendering the first card are obtained from it.
[0140] The illustrative element layout refers to the display of the elements contained in the first card during the display of the first card in the question and answer interface. For example, if the first card has a card expansion control during the display process, when the card expansion control is triggered, the first card will be expanded so that more content can be displayed in the first card.
[0141] In this embodiment, after determining the resource and element layout of the first card, the initial card is rendered to obtain the first card.
[0142] In some embodiments, a control tree corresponding to the first card is obtained, the control tree including multiple display element nodes arranged according to a first distribution structure, the first distribution structure being used to indicate the distribution position of the multiple display elements in the first card; and the element layout is determined based on the display element nodes and the first distribution structure.
[0143] In this embodiment, the method for obtaining the above-mentioned element layout is described in detail. First, the control tree corresponding to the first card is obtained. The control tree includes the control nodes (also called display element nodes) displayed in the first card. When the first card includes multiple display element nodes, the multiple display element nodes are arranged in the first card according to the first distribution structure. Therefore, based on the multiple display element nodes in the control tree and the first distribution structure, the distribution of the multiple display controls in the first card is determined.
[0144] The steps for rendering the first card described above can be referred to. Figure 7 Steps S① to S⑥, as follows Figure 7 As shown, the first application is a Quick App. Therefore, the Quick App engine corresponding to the first application mainly runs the engine main process (also called the rendering process or application main process) and the V8 process. The engine main process is used to implement the relevant application functions corresponding to the first application, such as application interface display and user interaction. In addition, the engine main process is also mainly responsible for managing child processes (such as the rendering process, network process, and plugin process), ensuring the normal operation of child processes and communication between them. Furthermore, the engine main process is also responsible for communicating with the outside world, such as data transmission with other applications. The V8 process (also known as the V8 engine) is nested in the main process engine as part of the rendering process during the card rendering process. During the card rendering process, the V8 process is mainly responsible for parsing, compiling, and executing JavaScript code, assisting other child processes in completing page rendering and JavaScript code execution.
[0145] In step s①, firstly, the code content of the engine's main process is loaded into the host process, where the host process is the process used to display the card.
[0146] In step S②, the engine's main process creates an initial card in the question-and-answer application.
[0147] In step S③, while creating the initial card, the engine main process downloads the first card package (e.g., an RPK package) from the cloud server according to the first card package name corresponding to the first application, and obtains the first card resources corresponding to the first card package.
[0148] In step S④, after acquiring the first card resource, the first card resource is loaded into the host process.
[0149] In step S⑤, after Gazan completes the first card resource in the host process, it calls the V8 engine to parse the control tree corresponding to the first card and obtains the DOM tree (document object model tree) corresponding to the first card, which refers to the hierarchical structure corresponding to all displayed elements in the first card.
[0150] In step S⑥, the display elements in the first card element are rendered according to the DOM tree to generate a native Android control as the first card, and the first card is loaded onto the Q&A interface, thereby displaying the first interface in the Q&A interface.
[0151] Step 631: If the i-th content element is obtained, update and display the i-th content element in the first card.
[0152] Where i is a positive integer, and the content response result includes multiple content elements.
[0153] To illustrate, taking an internal response result that includes multiple content elements as an example, the multiple content elements are displayed and updated one by one when loaded into the first card.
[0154] In some embodiments, a content setting interface is invoked to determine the display method of the content response result; an update display method for the content element is set based on the content setting interface, and the update display method is used to indicate the display effect when the content element is updated and displayed in the first card; the i-th content element is updated and displayed in the first card based on the update display method. If the server analyzes and obtains the i-th content element, the i-th content element is received through a first communication protocol.
[0155] In some embodiments, the first communication protocol is used to instruct the server to send updated content elements to the electronic device in real time; and to update and display the i-th content element in the first card.
[0156] The process of updating each content element to the first card can be referenced. Figure 7 Steps ② to 5 in the process, such as Figure 7 As shown, the method includes the following:
[0157] In step ②, the question-and-answer application sends the question and answer content to the first intelligent agent of the first application for processing. The intelligent agent corresponding to the first application refers to an intelligent system specifically designed for a particular application domain, capable of autonomously perceiving the environment, making decisions, and executing corresponding actions. A large model request and a prompt word manager are installed in the intelligent agent. The prompt word management is used to improve the text content corresponding to the user's input, further guiding the user to complete the shooting process of the first application.
[0158] In steps ③ and ④, the agent and the cloud-side service distribution model communicate. The cloud-side service distribution model refers to the framework or mechanism in a cloud computing environment where servers distribute and deliver services from the cloud (i.e., the service provider) to the terminal (i.e., the service consumer). A server-sent events (SSE) protocol based on HTTP is established between the agent and the cloud-side service distribution model. This protocol provides the ability for the server to send continuously updated events to the terminal device in real time. In this embodiment, the continuously updated events are the content elements corresponding to the continuously updated content display results.
[0159] In the SSE protocol, which includes an agent and a server, when the agent triggers a sub-event, the agent initializes the connection: the agent creates a new EventSource object using JavaScript, specifying the server's URL as the source address. When a client requests this URL, the server recognizes it as an SSE request, maintains the HTTP connection, and returns a response with a Content-Type of text / event-stream. The response body continuously sends updated events in the form of data fields enclosed in data: tags. When the server has new events to push, it sends event data to the client through the same HTTP connection. The SSE connection is persistent; it will not be closed unless the network is interrupted or the server closes the connection. If the server receives a close request from the agent requesting the closure of the network connection, it will close the network connection.
[0160] The cloud-side service distribution model also includes model scheduling and agent distribution. The cloud-side service distribution model sends the input content to the underlying model service. Through the model scheduling function, it calls the analysis model in the model service (e.g., the Qianwen model or other models) to analyze the input content. The content response results are fed back layer by layer according to the above structure, and finally fed back to the question-and-answer application to render the first card.
[0161] Since the content response result includes multiple content elements, the question and answer application calls the content setting interface (SetMessageCallback interface) corresponding to the first card to set the generation method of the content response result: that is, display the content elements one by one. When the underlying model provides feedback on each content element, the question and answer application obtains the content element through the HostConnection or onregistercallback interface and passes it through to the question and answer interface for display according to the information channel (js bridge) set by the V8 engine.
[0162] Step 632: After multiple content elements have been updated and displayed, the second card is obtained.
[0163] Once all content elements in the response result have been displayed, the first card, updated based on the response result, will be displayed as the second card.
[0164] This solution primarily establishes a communication channel between the Quick App card and native Android. Through this channel, various data can be transmitted to the card, effectively expanding the card's applicability across different scenarios. This solution can also be extended to other scenarios, such as dynamic data refresh and dynamic changes in card style.
[0165] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Figure 8 As shown, the electronic device 900 may include a processor 910, an external memory interface 920, an internal memory 921, a universal serial bus (USB) interface 930, a charging management module 940, a power management module 941, a battery 942, antenna 1, antenna 2, a mobile communication module 950, a wireless communication module 960, an audio module 970, a speaker 970A, a receiver 970B, a microphone 970C, a headphone jack 970D, a sensor module 980, buttons 990, a motor 991, an indicator 992, a camera 993, a display screen 994, and a subscriber identification module (SIM) card interface 995, etc.
[0166] The sensor module 980 may include a pressure sensor 980A, a gyroscope sensor 980B, a barometric pressure sensor 980C, a magnetic sensor 980D, an accelerometer sensor 980E, a distance sensor 980F, a proximity light sensor 980G, a fingerprint sensor 980H, a temperature sensor 980J, a touch sensor 980K, an ambient light sensor 980L, a bone conduction sensor 980M, etc.
[0167] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 900. In other embodiments of this application, the electronic device 900 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0168] For example, Figure 8The processor 910 shown may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0169] The controller can be the nerve center and command center of the electronic device 900. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.
[0170] In this embodiment, the processor 910 is mainly used to launch the application loading page and respond to user input interactions.
[0171] The processor 910 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 910 is a cache memory. This memory can store instructions or data that the processor 910 has just used or that are used repeatedly. If the processor 910 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 910, and thus improves the efficiency of the system.
[0172] Electronic device 900 implements display functions through a GPU, a display screen 994, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 994 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 910 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0173] The display screen 994 is used to display images, videos, etc. The display screen 994 includes a display panel. In some embodiments, the electronic device 900 may include one or N display screens 994, where N is a positive integer greater than 1.
[0174] In this embodiment, the various interfaces are presented to the user primarily through the display screen 994, for example... Figure 1 The various interfaces within.
[0175] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0176] In this embodiment, the NPU can be used to identify the display content and instruct the processor 910 to generate the display content, for example, it can instruct the processor 910 to generate the display content according to... Figure 1 The content is generated and displayed in the form shown.
[0177] Pressure sensor 980A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 980A can be disposed on display screen 994. There are many types of pressure sensors 980A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 980A, the capacitance between the electrodes changes. Electronic device 900 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 994, electronic device 900 detects the touch operation intensity based on pressure sensor 980A. Electronic device 900 can also calculate the touch position based on the detection signal from pressure sensor 980A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0178] In this embodiment, the pressure sensor 980A is mainly used to collect user interaction operations, such as swiping operations and clicking operations.
[0179] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0180] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0181] This application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above methods.
[0182] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0183] This application provides a computer program product, which includes a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0184] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, a computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0185] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0186] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0187] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0188] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0189] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0190] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0191] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0192] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0193] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0194] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A content display method characterized by, The method is applied to an electronic device, and the method comprises: In response to receiving a content input operation, obtaining input content, the input content being related to a first application; Based on the content input operation, a card corresponding to the first application is rendered to obtain a first card, the first card being used to indicate that the input content is in an analysis state; In the process of displaying the first card on the device interface, the content reply result corresponding to the input content is updated and displayed in the first card until a second card is obtained, the content reply result being generated based on the content in the first application, and the content reply result being displayed in the second card.
2. The method of claim 1, wherein, The content reply result includes a plurality of content elements; The content reply result corresponding to the input content is updated and displayed in the first card until the second card is obtained, comprising: In the case of obtaining an i-th content element, the i-th content element is updated and displayed in the first card, i being a positive integer; In the case that the plurality of content elements are updated and displayed, the second card is obtained.
3. The method of claim 2, wherein, In the case of obtaining an i-th content element, the i-th content element is updated and displayed in the first card, comprising: In the case that the i-th content element is analyzed by the server, the i-th content element is received through a first communication protocol, the first communication protocol being used to indicate that the content element updated by the server is sent to the electronic device in real time; The i-th content element is updated and displayed in the first card.
4. The method of claim 2, wherein, In the case of obtaining an i-th content element, the i-th content element is updated and displayed in the first card, comprising: A content setting interface is called, the content setting interface being used to determine the display mode of the content reply result; The update display mode of the content element is set based on the content setting interface, the update display mode being used to indicate the display effect when the content element is updated and displayed in the first card; The i-th content element is updated and displayed in the first card based on the update display mode.
5. The method according to any one of claims 1 to 4, characterized in that, The card corresponding to the first application is rendered based on the content input operation to obtain the first card, comprising: An initial card is created based on the content input operation; A first card package corresponding to the first application is obtained, the first card package being used to store first card resources corresponding to the first application; An element layout condition corresponding to the first card is obtained, the element layout condition being used to indicate the display condition of display elements in the first card; The initial card is rendered based on the first card resources and the element layout condition to obtain the first card.
6. The method of claim 5, wherein, The element layout condition corresponding to the first card is obtained, comprising: A control tree corresponding to the first card is obtained, the control tree including a plurality of display element nodes arranged according to a first distribution structure, the first distribution structure being used to indicate the distribution position of the plurality of display elements in the first card; The element layout condition is determined based on the display element nodes and the first distribution structure.
7. The method according to any one of claims 1 to 4, characterized in that, The content reply result includes a plurality of content elements; the first card corresponds to first display parameters; The method further includes: As the plurality of content elements are sequentially updated into the first card, a card update animation of the first card is synchronously displayed, the card update animation being used to indicate that the first card adjusts display parameters in real time based on an update speed of the content elements until the second card is obtained, the second card corresponding to second display parameters.
8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Based on the content input operation, a card corresponding to the first application is rendered to obtain a third card, the third card being used to indicate that a content control of the first application is loaded; In a process in which the third card is displayed on the device interface, as the content reply result is updated and displayed into the first card, a control display animation is synchronously displayed in the third card, the control display animation being used to indicate that the content control is displayed in the third card, a function type of the content control being related to the content reply result; In response to receiving a triggering operation on the content control, a content page corresponding to the content control is displayed in the device interface.
9. An electronic device comprising a memory, one or more processors, and a computer program stored in the memory and executable on the processors, wherein, The one or more processors execute the computer program to cause the electronic device to implement the method in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program is executed by the electronic device to implement the method in any one of claims 1 to 8.
11. A computer program product, characterised in that, The computer program is executed by the electronic device to implement the method in any one of claims 1 to 8.