File display method and electronic device
By displaying information components related to the file content on the electronic device screen, the problem of low search efficiency in traditional file display methods is solved, and the effects of quickly identifying file content and adapting to changes in device form are achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-10-20
- Publication Date
- 2026-07-30
AI Technical Summary
In traditional file display methods, users need to open the file to determine if it contains the required content, resulting in low search efficiency.
By displaying information components related to the file content on the screen of electronic devices, including information generated based on the file content, and this information can change at different times and with different device forms, it can meet the different task needs of users and changes in device form.
It improves file search efficiency, enabling users to quickly identify file content, meet different task requirements, and adapt to changes in device form.
Smart Images

Figure CN2025128788_30072026_PF_FP_ABST
Abstract
Description
Document display methods and electronic devices
[0001] This application claims priority to Chinese patent application filed on January 21, 2025, with application number 202510099713.6 and entitled "Document Display Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic device technology, and in particular to document display methods and electronic devices. Background Technology
[0003] With the development of electronic device technology, the number of files stored on electronic devices is increasing, making file management more and more complex. Traditional file display solutions typically present files by displaying icons, filenames, and a small amount of metadata. With this method, when a user needs to find certain content, they usually have to open the file to determine if the desired content exists, making the search very inefficient. Summary of the Invention
[0004] This application provides a file display method and an electronic device that can help users quickly find the files they need and improve file search efficiency.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] In a first aspect, a file display method is provided, applied to an electronic device with a display screen. The method includes: receiving a first operation at a first moment; and, in response to the first operation received at the first moment, displaying a first interface, the first interface including a first component corresponding to a first file, the first component displaying M pieces of information, M being greater than or equal to 1, the M pieces of information including first information, the first information being generated based on the content of the first file and not existing in the content of the first file.
[0007] Based on the above technical solution, the electronic device can present a first component corresponding to the first file, which displays M pieces of information. These M pieces of information include information generated based on the content of the first file, which is not present in the content of the first file. In this way, by generating corresponding information based on the file's content to display the file, users can roughly understand the content of the file based on this information, helping them quickly find the files they need and improving file search efficiency. Furthermore, instead of directly using the content of the file as this information, but rather generating new information, the information is more comprehensive and concise, resulting in a better display effect.
[0008] In one possible design, the method further includes: displaying a second component corresponding to the first file at a second time, wherein the second component displays N pieces of information, where N is greater than or equal to 1, the value of N is different from the value of M, or the size of the first component is different from the size of the second component, or the layout of the N pieces of information in the second component is different from the layout of the M pieces of information in the first component, or the N pieces of information include information that is different from the M pieces of information.
[0009] In this way, the size of the component corresponding to the same file, the number of pieces of information it contains, the information itself, and the layout of the information within the component can be different at different times, making the component more flexible and achieving better file display effects at different times.
[0010] In one possible design, the N pieces of information include a second piece of information, which is generated based on the content of the first file, and the second piece of information is different from the M pieces of information.
[0011] Optionally, the second information and the first information can be of the same type, such as both being summaries, both being tags, or both being thematic images, etc.
[0012] In this way, the information generated in the component based on the content of the same file can differ at different times. This allows the generated information to better display the file at different times, facilitating file searching for users and improving file retrieval efficiency.
[0013] In one possible design, the task performed by the user at the first moment is the first task, and at least one of the M pieces of information is related to the first task.
[0014] In this way, the component displaying the files can include information related to the user's current task. This display method can meet the user's task needs, help the user quickly find the files they need, and improve file search efficiency.
[0015] In one possible design, the task performed by the user at the second moment is the second task, and at least one of the N pieces of information is related to the second task.
[0016] In one possible design, the task executed at the first moment is the first task, at least one of the M pieces of information is related to the first task, and the first task is different from the second task.
[0017] In this way, when users perform different tasks at different times, the size of the component corresponding to the same file, the number of pieces of information it contains, the information itself, and the layout of the information within the component can be different, allowing the component to meet the different task requirements of users.
[0018] In one possible design, the electronic device is in a first state at the first moment and in a second state at the second moment, wherein the first state and the second state are different.
[0019] Thus, when the device is in a different form at different times, the size of the components corresponding to the same file, the number of pieces of information it contains, the information itself, and the layout of the information within the components can be different.
[0020] In one possible design, the size of the display screen in the second configuration of the electronic device is larger than the size of the display screen in the first configuration, and the size of the second component is larger than the size of the first component.
[0021] In this way, as the form factor of electronic devices changes, the size of the display screen can also change. The larger the display screen, the larger the components also become. This allows components to adapt to display screens of different sizes, making them more aesthetically pleasing and providing a better display effect.
[0022] In one possible design, before displaying the second component corresponding to the first file at a second moment, the method further includes: receiving an update operation from the user on the content of the first file.
[0023] In this way, when a user updates the content of a file, the size of the component used to display the file, the number of pieces of information it contains, the information itself, and the layout of the information within the component can change accordingly.
[0024] In one possible design, the first interface further includes a third component corresponding to the second file. The third component displays K pieces of information, where K is greater than or equal to 1. The K pieces of information include the third information, which is generated based on the content of the second file and does not exist in the content of the second file.
[0025] In one possible design, the value of K is different from the value of M, or the size of the third component is different from the size of the first component, or the layout of the K pieces of information in the third component is different from the layout of the M pieces of information in the first component.
[0026] In this way, the size of components, the amount of information they contain, and the layout of the information within the components can differ between different files. This allows the components to meet the needs of different files.
[0027] In one possible design, the M pieces of information further include a fourth piece of information, which is generated based on at least one of the metadata of the first file and information related to the first file.
[0028] In this way, the component also includes information generated based on file metadata and file-related information, which makes the information in the component richer and better meets the needs of users in different search dimensions when searching for files.
[0029] In one possible design, at least one of the M pieces of information is determined based on the user's preferences for the components corresponding to the file. For example, the user's preferences for the components corresponding to the file may include at least one preference such as which information to prioritize displaying in the component and which information to exclude from displaying in the component.
[0030] Optionally, users can have different preferences for the components corresponding to different files.
[0031] In this way, components corresponding to a file can be generated based on the user's preferences for those components, ensuring that the generated components meet the user's preferences.
[0032] In one possible design, the first component also includes the identifier of at least one application, each of which includes content related to the content of the first file.
[0033] In this way, the component also includes the application's identifier, which contains content related to the file displayed by the component. This makes it easy for users to identify the application associated with the file.
[0034] In one possible design, the method further includes: receiving a second operation; and in response to the second operation, displaying content related to the content of the first file, which is included in some or all of the applications in the at least one application.
[0035] In this way, through user interaction, the electronic device can directly display content within the application related to the first file. This can improve the speed of finding content within the application related to the first file.
[0036] In one possible design, the task performed by the user at the first moment is the first task, and the content of the first file is related to the first task.
[0037] By prioritizing the display of files related to the user's current task, the presented files can meet the user's task requirements.
[0038] In one possible design, the first interface further includes L groups, where L is greater than or equal to 1 and less than or equal to M, and each of the L groups includes a component corresponding to at least one file, the content of the at least one file included in each group being related to one of the M pieces of information.
[0039] In this way, the electronic device can also group and display components of other files based on information in the components of the first file and the content of other files, which makes it easier for users to determine which files are related to which information in the components of the first file, and facilitates file searching.
[0040] In one possible design, the content of at least one file in the first group of the L groups is related to the first target information of the tag type in the M information, and the content of at least one file in the second group of the L groups is related to the second target information of the tag type in the M information.
[0041] In one possible design, the at least one file is a file in the same folder as the first file.
[0042] In one possible design, before displaying the first interface, the method further includes: obtaining P pieces of information based on at least one of the content of the first file, the metadata of the first file, and information related to the first file, wherein P is greater than or equal to 1, and the M pieces of information are part or all of the P pieces of information; generating the first component based on the P pieces of information and the layout information of Q preset components, wherein the layout information of the preset components indicates the position and size of the area included in the preset component for displaying information.
[0043] In this way, after generating at least one piece of information based on file content, file metadata, and file-related information, the electronic device can display this at least one piece of information based on the layout information of a preset component, and display some or all of this at least one piece of information in the preset component.
[0044] In one possible design, generating the first component based on the layout information of the P pieces of information and the Q preset components includes: determining a target preset component from the layout information of the Q preset components based on the P pieces of information, wherein the target preset component includes M areas for displaying information; and displaying the M pieces of information from the P pieces of information respectively in the M areas for displaying information.
[0045] In one possible design, the priority of the M pieces of information is higher than the priority of the other pieces of information among the P pieces of information besides the M pieces of information.
[0046] In this way, high-priority information can be displayed in the component first.
[0047] In one possible design, the information among the P pieces of information that is more relevant to the task performed by the user has a higher priority, or the information among the P pieces of information that is more relevant to the content of the first file has a higher priority.
[0048] In this way, information that is more relevant to the user's task can be prioritized for display in the component, making the component more aligned with the user's task requirements. Alternatively, information that is more relevant to the content of the file can be prioritized for display in the component, allowing the user to quickly grasp the general content of the file based on the information within the component, facilitating file searching.
[0049] In one possible design, the M pieces of information include a fifth piece of information, which is the highest priority information among the M pieces of information; before displaying the M pieces of information from the P pieces of information in the M areas used for displaying information, the method further includes: expanding a first area in the M areas used for displaying information, the first area being the area used for displaying the fifth piece of information.
[0050] In this way, when a piece of information in a component has a high priority, the electronic device can expand the area used to display that information, making the high-priority information more prominent.
[0051] In one possible design, before displaying M of the P pieces of information in the M areas for displaying information, the method further includes: if the fifth piece of information is displayed in the first area and there is a free area in the first area, generating a sixth piece of information based on the fifth piece of information and / or the content of the first file, wherein the content of the sixth piece of information is greater than the content of the fifth piece of information, and the priority of the sixth piece of information is higher than or equal to the priority of the fifth piece of information.
[0052] Therefore, when expanding the area used to display high-priority information, there might be empty space if that high-priority information is displayed in the expanded area. This could make the area appear too empty and result in a poor display effect. Then, new information can be generated based on the high-priority information and / or the content of the file, and this newly generated information can be displayed in the expanded area without lowering its priority. In this way, adjustments to the view layer can have a feedback effect on the data layer, thereby optimizing the display effect of components. Furthermore, it ensures that high-priority information is displayed, achieving a more aesthetically pleasing display.
[0053] In one possible design, the M pieces of information include at least one type of information such as images, sentences, and words.
[0054] In one possible design, the first component is a system component, and the first file is a file of a system application or a file of a third-party application.
[0055] In one possible design, the first interface is a file management interface, a chat interface, a file sharing interface, or a desktop.
[0056] Secondly, a file display method is provided, applied to an electronic device with a display screen. The method includes: receiving a first operation; and responding to the first operation by displaying a first interface, wherein the first interface includes a first component corresponding to a first file, and the first component displays M pieces of information, wherein M is greater than or equal to 1, and the first component is a system component.
[0057] In one possible design, the M pieces of information include first information, which is generated based on the content of the first file and does not exist in the content of the first file.
[0058] In one possible design, at least one of the M pieces of information is related to a task performed by the user.
[0059] Thirdly, this application provides an electronic device having the function of implementing the method described in the first aspect and any of the designs described above. This function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0060] Fourthly, an electronic device is provided, comprising: a display screen, a processor, and a memory, wherein the display screen, the memory, and the processor are coupled, the memory is used to store program code including instructions, and the processor reads the instructions from the memory to cause the electronic device to perform the method as described in any of the preceding aspects and any of the designs therein.
[0061] Fifthly, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any of the preceding aspects and any of the designs therein.
[0062] A sixth aspect provides a computer program product comprising: a computer program or instructions that, when executed on a computer, cause the computer to perform the method as described in any of the preceding aspects and any of the designs therein.
[0063] In a seventh aspect, this application provides a chip system including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes instructions, the at least one processor performs the method described in the first aspect and any of the designs therein.
[0064] It should be noted that the technical effects of any of the designs in the second to seventh aspects mentioned above can be found in the technical effects of the corresponding designs in the first aspect, and will not be repeated here. Attached Figure Description
[0065] Figure 1 is a schematic diagram of the interface of the display file provided in an embodiment of this application;
[0066] Figure 2 is a schematic diagram of the interface of the display file provided in the embodiment of this application;
[0067] Figure 3 is a schematic diagram of the interface of the display file provided in the embodiment of this application;
[0068] Figure 4 is a schematic diagram of the interface of the display file provided in the embodiment of this application;
[0069] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0070] Figure 6 is a schematic diagram of some preset component layouts provided in the embodiments of this application;
[0071] Figure 7 is a schematic diagram of a process for matching file information with a preset component layout according to an embodiment of this application;
[0072] Figure 8 is a schematic diagram of some components provided in the embodiments of this application;
[0073] Figure 9 is a schematic diagram of a file management interface provided in an embodiment of this application;
[0074] Figure 10 is a schematic diagram of a file sharing interface provided in an embodiment of this application;
[0075] Figure 11 is a schematic diagram of another file sharing interface provided in an embodiment of this application;
[0076] Figure 12 is a schematic diagram of a desktop provided in an embodiment of this application;
[0077] Figure 13 is a schematic diagram of a control that triggers the display of files in the form of components according to an embodiment of this application;
[0078] Figure 14 is a schematic diagram of different display methods of the same document provided in an embodiment of this application;
[0079] Figure 15 is a schematic diagram of another file management interface provided in an embodiment of this application;
[0080] Figure 16 is a schematic diagram showing the same file on different device forms according to an embodiment of this application;
[0081] Figure 17 is a schematic diagram of the architecture of an electronic device generation component provided in an embodiment of this application;
[0082] Figure 18 is a schematic diagram of a smart view provided in an embodiment of this application;
[0083] Figure 19 is a flowchart illustrating a document display method provided in an embodiment of this application;
[0084] Figure 20 is a schematic diagram of the structure of another electronic device provided in an embodiment of this application;
[0085] Figure 21 is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0086] In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can mean A or B. "And / or" in this application is merely a description of the relationship between the related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0087] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0088] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0089] Currently, electronic devices typically display files stored on them by presenting icons, filenames, and a small amount of metadata. For example, taking the running interface of a file manager (which can be simply referred to as the file management interface) as an example, the interfaces 100 shown in Figure 1 (1) to 130 shown in Figure 1 (4) are schematic diagrams of interfaces that display files in the form of extra-large icons, large icons, medium icons, and small icons, respectively.
[0090] The interface 200 shown in Figure 2(1) is a schematic diagram of an interface that displays files in a list format. In the file display formats used by interfaces 100 shown in Figure 1(1) to 130 shown in Figure 1(4) and 200 shown in Figure 2(1), the icon and file name of each file are displayed. In particular, Figure 1(1) to Figure 2(1) all show the icon and name of each of the three files.
[0091] Taking Figure 1(1) as an example, the interface 100 displays the icon 101 of PPT and the name of the PPT, "Neural Network Courseware", the icon 102 of the picture and the name of the icon, "Screenshot", and the icon 103 of the Word document and the name of the Word document, "Neural Network Lecture Notes Chapter 3 - 100 Pages". It can be understood that the icons and names of the same files are shown in Figure 1(1) to Figure 2(1). For the description of the icons and names of the files shown in Figure 1(2) to Figure 2(1), please refer to the description shown in Figure 1(1) above.
[0092] The icons for the same file are different sizes in interfaces 100 (1) and 130 (4) of Figure 1. For example, the icons 101 (1), 111 (2), 121 (3), and 131 (4) of the PPT file are all different.
[0093] Interfaces 210 shown in Figure 2(2) to 230 shown in Figure 2(4) are schematic diagrams of interfaces that display files in the form of detailed information, tiling, and content, respectively. It can be understood that the files displayed in each interface from interface 210 shown in Figure 2(2) to interface 230 shown in Figure 2(4) are the three files shown in Figure 1(1) to Figure 2(1) above, namely, PPT, pictures, and Word documents.
[0094] Among them, the display methods used in interfaces 210 shown in Figure 2 (2) to 230 shown in Figure 2 (4) not only display the icon and file name of each file, but also display a small amount of metadata, such as modification date, type, size, author, etc. For example, for PPT, pictures, and Word documents, Figure 2 (2) displays the modification date, type, size, etc. of each file. For PPT, Figure 2 (3) displays the type "PPTX" and size "9780KB" of the PPT, and the same applies to pictures and Word documents. For PPT and Word documents, Figure 2 (4) also displays the author "ABC" and "123".
[0095] It is understandable that the examples shown in Figure 1 (1) to Figure 2 (4) are examples of displaying the files saved in folder 1 using the interface presented by the electronic device as the interface of folder 1. The display of files in other save paths (such as the desktop, other folders, etc.) is similar.
[0096] Optionally, a view button 104 can be displayed in the interface shown in Figure 1 (1) to Figure 2 (4). Taking Figure 1 (1) as an example, the user can bring up the control 300 shown in Figure 3 by performing operations such as clicking the mouse on the view button 104. Various display mode trigger buttons are displayed in the control 300, such as the extra-large icon button 301 and the large icon button 302, which will not be listed here. Of course, the user can also bring up the trigger buttons for each display mode shown in Figure 3 by performing operations such as right-clicking the mouse. Among them, the extra-large icon button 301 shown in Figure 3 can be used to trigger the electronic device to display the file in the extra-large icon mode shown in Figure 1 (1), and the large icon button 302 can be used to trigger the electronic device to display the file in the large icon mode shown in Figure 1 (2). The functions of other buttons in the control 300 are similar. The user can use the trigger buttons for each display mode to make the electronic device display the file in the manner shown in Figure 1 (1) to Figure 2 (4).
[0097] The above method of displaying files only provides an icon, file name, and a small amount of metadata. The information provided is very limited and irrelevant to the file's content. When users need to search for certain content, they usually have to open the file to determine if the content they are looking for exists. This makes file searching extremely inefficient.
[0098] In some scenarios, in addition to displaying files in the above-mentioned display formats, electronic devices can also group the displayed files. For example, in conjunction with the file display format shown in Figure 1, taking the electronic device grouping files based on their modification dates as an example, Figure 4 (1) shows another schematic diagram of a file display interface provided by an embodiment of this application.
[0099] The interface 400 shown in Figure 4(1) includes two groups: group 401, whose modification date is "earlier this month," and group 402, whose modification date is "last month." Under each group, the icon, name, etc. of each file in that group are displayed. For an introduction to the icons and names of the files shown in Figure 4(1), please refer to the corresponding introduction in Figure 1. Optionally, a small amount of metadata for each file may also be displayed.
[0100] Optionally, in the interface 400 shown in Figure 4(1), a sorting control 403 can be displayed. The user can bring up the control 410 shown in Figure 4(2) by performing operations such as clicking on the sorting control 403. The control 410 displays one or more options, such as name option 411, modification date option 412, type option, size option, etc., which will not be listed here. These different options can be used to group the files in the interface 400 shown in Figure 4(1) according to different grouping methods (such as grouping by name, grouping by modification date, grouping by file type, grouping by file size, etc.). Figure 4(1) is an example of grouping by modification date.
[0101] In the above-described file grouping scheme, electronic devices group files based on their metadata (such as file name, modification date, file type, file size, etc.). In practical applications, some metadata is invalid for most files; for example, the metadata for most files might be identical, or the values for this metadata might be empty. Therefore, this grouping method has low practicality and is not conducive to users quickly finding the files they need.
[0102] Based on this, the embodiments of this application provide a file display method that can help users quickly find the files they need and improve file search efficiency.
[0103] The technical solutions provided in this application embodiment can be applied to electronic device 100, or to a system including electronic device 100.
[0104] For example, electronic device 100 may be a laptop computer, desktop computer, tablet computer, mobile phone, laptop computer, handheld computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device, and / or smart city device. Optionally, electronic device 100 may be a fixed device or a portable device.
[0105] Optionally, the operating system installed on the electronic device 100 may include, but is not limited to, the following: Alternatively, other operating systems may be used. This application does not impose specific limitations on the specific type of device or the operating system installed.
[0106] For example, Figure 5 shows a schematic diagram of the structure of an electronic device 100 provided in an embodiment of this application.
[0107] As shown in Figure 5, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a display screen 150, an antenna, a wireless communication module 160, an audio module 170, an input device 180, etc.
[0108] Processor 110 may include one or more processing units, such as application processors, modem processors, graphics processors, image signal processors, controllers, video codecs, digital signal processors, baseband processors, and / or neural network processors. These different processing units may be independent devices or integrated into one or more processors.
[0109] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0110] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 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 110, and thus improves the efficiency of the system.
[0111] In some embodiments, processor 110 may include one or more interfaces, such as USB interface 130.
[0112] In some embodiments of this application, the processor 110 can also be used to generate at least one of a component for displaying files, a component for displaying folders, and a smart view. Further details regarding the component for displaying files, the component for displaying folders, and the smart view will be provided below.
[0113] The charging management module 140 receives charging input from the charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device 100 through the power management module 141.
[0114] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, memory 120, display 150, and wireless communication module 160, etc.
[0115] The wireless communication function of electronic device 100 can be implemented through an antenna, wireless communication module 160, modem processor, and baseband processor.
[0116] Antennas are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0117] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0118] In some embodiments, the antenna of the electronic device 100 is coupled to the wireless communication module 160, enabling the electronic device 100 to communicate with networks and other devices via wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.
[0119] The display screen 150 is used to display images, videos, etc. The display screen 150 includes a display panel. In some embodiments of this application, the display screen 150 can be used to display documents.
[0120] The memory 120 can be used to store computer executable program code, which includes instructions. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the electronic device 100, etc. Furthermore, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120 and / or instructions stored in memory disposed in the processor.
[0121] In some embodiments of this application, the memory 120 may be used to store a preset component layout, which can be described in detail below.
[0122] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0123] Input device 180 may include a keyboard, mouse, etc. The keyboard is used to input English letters, numbers, punctuation marks, etc., into electronic device 100, thereby issuing commands and inputting data to electronic device 100. The mouse is an indicator for positioning on the horizontal and vertical coordinates of the display system of electronic device 100, used to input instructions to electronic device 100. Input device 180 can be connected to electronic device 100 via a wired connection, such as through a GPIO interface or USB interface. Input device 180 can also be connected to electronic device 100 wirelessly, such as through Bluetooth or infrared.
[0124] It is understood that the above description uses a computer structure as an example to illustrate the structure of electronic device 100. In practical applications, when electronic device 100 is a device of a different type than a computer, it may include more or fewer modules. For example, when electronic device 100 is a mobile phone, it may not include the input device 180 shown in Figure 5, and it may also include a mobile communication module, etc. The structure shown in Figure 5 does not constitute a specific limitation on electronic device 100. In other embodiments of this application, electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or arrange different components. The processing steps or functional characteristics of the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0125] The technical solutions involved in the following embodiments can all be implemented in a device having the structure shown in FIG5. In the following embodiments, electronic device 100 is described as an electronic device.
[0126] In some embodiments, electronic devices may employ components to display files stored within the device. In this application embodiment, the component for displaying files is typically presented as a card on the interface; therefore, this component for displaying files can also be called a card component, card view, etc. Optionally, in this application embodiment, the component for displaying files can exist as a system component, i.e., a component provided by the operating system. This component can be invoked by any application installed on the electronic device (such as system applications, third-party applications, etc.) so that files in that application can be displayed in the form of the component provided in this application embodiment.
[0127] For example, applications installed on electronic devices can transmit configuration information to the system by calling the interface of the system component, thereby enabling the system to display the component generated based on this configuration information. For instance, the configuration information may include at least one of the following: component size requirements, component layout requirements (such as horizontal or vertical component layouts), file path, file information, and file content. For example, in a system application such as a file manager, the configuration information may include a file path. As another example, in a third-party application, the configuration information may include multiple of the following: component size requirements, component layout requirements, file path, file information, and file content. Furthermore, in a file-sharing scenario, the configuration information may include at least one of the following: component size requirements, component layout requirements, and file information.
[0128] The components provided in the embodiments of this application are described below.
[0129] In some embodiments, for a file, the electronic device can obtain file information, scene data, display information, etc. of the file, and the electronic device can generate a component for displaying the file based on at least one of the file information, scene data, and display information.
[0130] File information can include at least one of the following: file metadata, semantic information, and external information. File metadata can refer to information describing file characteristics, such as, but not limited to, file name, file size, file type (e.g., image, document, video, audio), creation date, modification date, author, permissions (e.g., readable, writable), and file save path. For a given file, its metadata can be generated and stored on the electronic device when the file is created, and can also be updated when the file is modified.
[0131] Semantic information can refer to the content obtained by semantic analysis of the document's content, such as including but not limited to semantic tags (e.g., "xxx financial report", "xxx design drawing"), topic categories (e.g., "technical document", "market analysis report"), keywords extracted from the document content (which can be described as keywords), and content summaries generated based on the document content (which can be described as document summaries).
[0132] Optionally, electronic devices can employ various algorithms such as term frequency-inverse document frequency (TF-IDF), named entity recognition (NER), and linear discriminant analysis (LDA) to perform semantic analysis on the document content in order to extract keywords. They can also use pre-trained models (which can be various machine learning models) to generate document summaries.
[0133] External information can refer to information related to a document. Optionally, this external information can be obtained from locations other than electronic devices, such as the internet or other devices. Alternatively, this external information can be pre-installed on an electronic device. Examples of external information include, but are not limited to, document download websites, journals in which the document was published, document authors, the number of times the paper has been cited, document sender, applications associated with the document (such as the scenario of inserting a document into a memo, where the application managing the document could be a memo), and knowledge bases used for information comparison (such as databases containing journal numbers, which can be used for comparison of published journals).
[0134] Scene data may include at least one of task information and pattern information.
[0135] Task information can be used to characterize the tasks performed by users at different times, such as: working on a certain type of document, writing a thesis proposal, reading a novel, editing a PPT, watching a movie, giving a lecture of a certain type, writing application documents in a certain field, or writing code for a certain interface.
[0136] Optionally, the task information may include at least one of the following: tags used to identify the tasks performed by the user (which may be called task tags, such as "market research" or "project planning"), and user-file interaction information (such as file access time and file access frequency). Optionally, the electronic device may periodically collect various information such as user interaction behavior (such as operations performed by the user on the electronic device) and internal operating behavior of the electronic device (such as processes running internally and the interface presented by the electronic device), and use pre-trained models or other algorithms to identify the tasks performed by the user at different time periods or currently.
[0137] Mode information can be used to characterize the operating mode of an electronic device. For example, the operating mode of an electronic device may include at least one of preset operating modes and user-defined operating modes. Optional, preset, or user-defined operating modes may include one or more. In different operating modes, at least one of the files displayed by the electronic device and the components used to display the files may differ. For example, when an electronic device enables a preset or user-defined operating mode, it can display files based on that operating mode. Optionally, the information included in the components used to display the files can also be determined based on the operating mode. Optionally, in different operating modes, display requirements for files, components, etc., can be set, and the electronic device can present files, components, etc., based on the display requirements set in the operating mode.
[0138] Display information can be used to characterize at least one of the following: user preferences for file display, components presented in the user's historical tasks, etc. It is understood that the user's historical tasks can refer to tasks that the user previously performed but are not currently performing. Display information may include, but is not limited to, the user's preferences for the information included in the components used to display the file (e.g., which information to prioritize, which information to exclude, user-defined information, etc.), and the frequency of use of information displayed in the components presented in the user's historical tasks.
[0139] After the electronic device obtains the file information, in this embodiment, as one possible implementation, the electronic device can divide the obtained file information into three categories: theme image, summary, and tags.
[0140] The theme image can refer to file information presented as an image. Optionally, the theme image can be obtained based on the semantic information described above. It can be an image directly extracted from the file content, meaning the image exists within the file content. For example, when the file content includes an image, and that image is highly relevant to the file content, it can be directly extracted. Alternatively, it can be a newly generated image based on the file content using a pre-trained model or other image generation algorithms, meaning the image does not exist within the file content. For example, when the file content does not include images, or the included images are not highly relevant to the file content, images can be regenerated using a pre-trained model, etc., to ensure that the obtained theme image is highly relevant to the file content.
[0141] In some implementations, different types of images can be generated when regenerating images for different types of files. For example, files containing tables can generate line charts, bar charts, and other statistical graphs. Files containing text (such as poems, scientific articles, etc.) can generate abstract images to represent the text, or images that include the text itself.
[0142] An abstract can refer to document information presented in sentence form. For example, an abstract can be a general title or a summary of the document's content. Optionally, different abstracts can have the same or different sentence lengths. That is, abstracts can also be divided into short abstracts and long abstracts. A short abstract can refer to an abstract with a sentence length (e.g., 10 characters) less than a preset length, such as a general title. A long abstract can refer to an abstract with a sentence length greater than or equal to a preset length, such as a summary of the document's content. Optionally, an abstract can also be derived based on the semantic information described above.
[0143] Tags can refer to file information presented as words. Optionally, tags can be obtained based on the file's metadata, semantic information (such as extracted keywords), external information, etc., as mentioned above.
[0144] Optionally, the electronic device may acquire at least one of each type of file information, including the theme image, summary, and tags. Then, in some embodiments, the electronic device may prioritize all acquired file information to filter it, initially determining which file information to display and which not to display in the component.
[0145] Optionally, electronic devices can prioritize all file information based on factors such as the relevance of file information to file content and visual appeal. For example, file information with higher relevance to file content is more important, ensuring that important file information is presented. Similarly, visually appealing file information is more important, resulting in better visual effects for the components.
[0146] After sorting, the electronic device can initially filter out the file information to be displayed in the components, and the file information not to be displayed. For example, the filtered results obtained by the electronic device may be: displaying 2 topic images and 2 abstracts, or displaying 1 topic image, 1 abstract, and 3 tags, or displaying 1 abstract and 2 tags. Optionally, the specific types of file information displayed in the filtered results, and the number of file information included in each type, can be variable.
[0147] Alternatively, electronic devices can prioritize file information based on its type. For example, for image files, size, semantic information, and dominant color scheme are more important than other information. Similarly, for document files, document summary, keywords, and access frequency are more important than other information.
[0148] Furthermore, after the electronic device completes the filtering, the resulting file information may exist in multiple types, such as topic images, summaries, and tags. In some embodiments, the electronic device can also determine the priority of these different types of file information to further determine which file information should be displayed first.
[0149] As one possible implementation, the priorities of topic images, summaries, and tags can be preset. For example, topic images may have the highest priority, and tags the lowest. Alternatively, summaries may have the highest priority, and tags the lowest. That is, electronic devices can prioritize displaying file information of type topic images, summaries, etc. Since topic images and summaries can be obtained based on the semantic information of a file, and they can reflect the content of the file, prioritizing the display of this type of file information can help users understand the content of the file and improve file search efficiency. Of course, in other embodiments, topic images, summaries, and tags can also have other priority settings.
[0150] As another possible implementation, the electronic device can also determine the priority of file information based on at least one of the aforementioned acquired scene data, display information, etc., to further determine which file information should be displayed first. For example, taking the electronic device determining the priority of file information based on the aforementioned acquired scene data as an example, the electronic device can determine that file information more relevant to the user's current task has a higher priority, and file information less relevant to the user's current task has a lower priority. Alternatively, the electronic device can determine that file information with higher relevance to the user's current task has a higher priority.
[0151] The task currently being performed by the user can be determined using the task information obtained above. Optionally, the electronic device can use a pre-trained model or various algorithms to determine the relevance between the file information and the task currently being performed by the user.
[0152] Optionally, the task currently being performed by the user can refer to tasks the user has been performing recently. Examples include teaching deep learning weekly, preparing a thesis proposal for the past week, working on a project in a research group for the past month, or preparing for an academic seminar to attend next month. For instance, if the task is preparing for an academic seminar next month, and the electronic device determines, based on the acquired task information, that the user has future plans such as attending an academic seminar, then the electronic device can determine that the user's current task is preparing for such a future plan. The previous example uses the user's current task to determine the priority of file information; the electronic device can also determine the priority of file information based on mode information. For example, the electronic device can determine that file information that meets the display requirements of the current operating mode has a higher priority, while file information that does not meet the display requirements of the current operating mode has a lower priority.
[0153] For example, taking the example of an electronic device determining the priority of file information based on the aforementioned displayed information, the electronic device can determine that file information of the same or similar type as the user's file information preferences has a higher priority, while file information of a different type than the user's file information preferences has a lower priority. Another example is that the electronic device can determine the priority of file information of the same type as frequently used file information based on the usage frequency of file information displayed in components showcasing the user's historical tasks, and the priority of file information of a different type than frequently used file information.
[0154] For example, consider how electronic devices combine scene data and displayed information to determine the priority of file information. For instance, an electronic device can prioritize file information that is highly relevant to the user's current task and similar to the user's preferred file types, while prioritizing file information that is less relevant or different from the user's preferred file types. Another example is that when the user's current task is the same as a historical task, the electronic device can determine the priority of file information based on the frequency of use of file information displayed in components presented during the historical task. For instance, file information of the same type as frequently used file information has a higher priority, while file information of a different type has a lower priority.
[0155] It is understandable that in the above scheme for ranking and prioritizing file information, the various factors among the file information, scene data, and display information obtained by the electronic device can jointly determine which file information is included and excluded from the components, i.e., which file information is prioritized for display and which is excluded from display. There are no restrictions on which type of data (file information, scene data, and display information) is used by the electronic device to determine the importance or priority of the file information.
[0156] Furthermore, after the electronic device determines the priority of all file information based on the above scheme, in some embodiments, the electronic device can arrange the file information and generate components based on a preset component layout (also called a preset component) and the priority of the file information. The preset component layout may include at least one component. The preset component layout may be pre-installed in the electronic device or in other devices (such as a server), and the electronic device can obtain it from other devices.
[0157] For example, Figure 6 shows an example of some preset component layouts provided in the embodiments of this application.
[0158] Figures 6(1) to 6(20) show a total of 20 preset component layouts. Each preset component layout may include at least one area, and each area can be used to carry (or be described as displaying) different file information. Taking the preset component layout shown in Figure 6(16) as an example, it includes circular area 601, strip area 602, strip area 603, rectangular area 604, etc. For a description of the areas included in the other preset component layouts shown in Figure 6, please refer to the description in Figure 6(16).
[0159] In some implementations, the preset component layout may also include preset component layouts of different sizes, such as preset component layouts of sizes shown in Figure 6(1) to Figure 6(3), preset component layouts of sizes shown in Figure 6(8) to Figure 6(10), preset component layouts of sizes shown in Figure 6(4) and Figure 6(11), preset component layouts of sizes shown in Figure 6(6) and Figure 6(13), preset component layouts of sizes shown in Figure 6(5) and Figure 6(12), preset component layouts of sizes shown in Figure 6(7), preset component layouts of sizes shown in Figure 6(14) to Figure 6(15), preset component layouts of sizes shown in Figure 6(16) to Figure 6(18), preset component layouts of sizes shown in Figure 6(19) to Figure 6(20), etc.
[0160] It is understood that the preset component layout shown in Figure 6 is only an illustrative example, and other sizes and layouts may be included in actual applications.
[0161] In some implementations, for each preset component layout, there may be corresponding layout information. This layout information indicates at least one of the following: the size of the preset component layout, the number of regions included in the preset component layout, the size of each region, the position of each region in the preset component layout, the relative positional relationship between different regions, the type of file information carried by each region, the color distribution, and the font color.
[0162] It is understandable that the types of file information carried by each region can be the same or different. For example, taking the preset component layout shown in Figure 6 (16) as an example, the circular region 601 can be used to carry the theme image, the rectangular region 604 can be used to carry the summary, and the bar regions 602 and 603 can be used to carry tags, etc.
[0163] Electronic devices can match file information with areas in a preset component layout based on the layout information and priority of file information corresponding to the preset component layout, so as to present the file information in the matched area.
[0164] For example, as shown in Figure 7(1), the electronic device acquires 5 file information items: 1 topic image, 1 summary, and 3 tags. It is understood that the examples shown in Figure 7 are based on the electronic device acquiring 5 file information items; in practical applications, there is no limitation on the specific number and type of file information acquired by the electronic device. The priorities of these 5 file information items are represented by 0.9, 0.8, 0.7, 0.7, and 0.6, respectively.
[0165] The higher the value used to characterize the priority of file information, the higher the priority of the file information. The preset component layout matched by the electronic device can be the preset component layout 700 shown in Figure 7 (1), which includes regions 1 to 5. Based on the layout information corresponding to the preset component layout 700, as shown in Figure 7 (1), the electronic device can determine to display the theme image in region 1, the summary in region 2, and the three tags in regions 3, 4, and 5 respectively.
[0166] As another example, as shown in Figure 7(2), the electronic device obtains five file information items: one theme image, one summary, and three tags. The priorities of these five file information items are represented by 0.9, 0.5, 0.4, 0.4, and 0.4, respectively. The preset component layout matched by the electronic device can be the preset component layout 710 shown in Figure 7(2). Based on the layout information corresponding to the preset component layout 710, as shown in Figure 7(2), the electronic device can determine to display the theme image in area 6, display the summary in area 7, and not display the three tags.
[0167] In some implementations, even if the electronic device obtains the same file information for the same file, the matched preset component layouts can be different. For example, as shown in Figure 7(1) and Figure 7(2), the electronic device obtains one theme image, one summary, and three tags for the file information. However, at different times, the matched preset component layouts can be different because the priorities of these file information may be different.
[0168] In some scenarios, due to the limited number of preset component layouts, it may be impossible to match a preset component layout. For example, as shown in Figure 7(3), the electronic device obtains 5 file information: 2 summaries, 1 topic image, and 2 tags. The priorities of these 5 file information are represented by 0.9, 0.8, 0.5, 0.4, and 0.3, respectively. The 2 summaries have a higher priority than the other file information, but there is no preset component layout that can simultaneously hold 2 summaries, which makes it impossible to match a preset component layout.
[0169] In scenarios where high-priority file information cannot be matched with the preset component layout, one possible solution is for the electronic device to regenerate a new component layout based on the preset layout through methods such as reorganization. For example, the electronic device can merge areas used to carry low-priority file information to generate new areas to carry high-priority file information, thus obtaining a new component layout. Another example is that the electronic device can also generate a new component layout by splitting or copying areas based on the preset component layout.
[0170] Optionally, when generating a new component layout, the electronic device can also readjust at least one of the following: the size of the preset component layout, the size of each area, and the shape, to make the components more aesthetically pleasing. Optionally, in this embodiment, the size of the new component layout generated by the electronic device based on the preset component layout can be the same as or different from the size of the preset component layout.
[0171] For example, referring to the preset component layout 720 shown in Figure 7 (3), the preset component layout 720 includes regions 1 to 5. Region 1 is set to carry the theme image, and region 2 is set to carry the summary. Regions 3 to 5 are set to carry tags. Taking the electronic device generating a new component layout based on the preset component layout 720 as an example, the electronic device can merge the regions (i.e., regions 3 to 5) used to carry three tags into one region to carry a summary in the example shown in Figure 7 (3). For example, the new component layout generated by the electronic device can be component layout 721 as shown in Figure 7 (3). In component layout 721, region 1, region 2 and region 6 are included. Region 1 can be used to carry the theme image, and regions 2 and 6 can be used to carry the summary.
[0172] Based on the layout information corresponding to component layout 721, as shown in Figure 7 (3), the electronic device can determine to display the theme image in area 1 of component layout 721 and to display the two summaries in area 2 and area 6 respectively.
[0173] As another example, as shown in Figure 7(4), the electronic device obtains five file information items: two topic images, one summary, and two tags. The priorities of these five file information items are represented by 0.9, 0.8, 0.5, 0.4, and 0.3, respectively. The two topic images have a higher priority than the other file information items, but there is no preset component layout that can simultaneously carry two topic images, which will also make it impossible to match the preset component layout. In this example, combined with the preset component layout 730 shown in Figure 7(4), the preset component layout 730 includes region 1 and region 2. Region 1 is set to carry the topic images, and region 2 is set to carry the summary.
[0174] Taking the example of an electronic device generating a new component layout based on a preset component layout 720, the electronic device can copy region 1 used to carry the theme image to carry a theme image in the example shown in Figure 7 (4). Optionally, the electronic device can also choose to change the size of the preset component layout, as well as the size and shape of other regions, to generate a new component layout. For example, the new component layout generated by the electronic device can be component layout 731 as shown in Figure 7 (4). Among them, component layout 731 includes region 1, region 3, and region 2. Region 1 and region 3 can be used to carry the theme image, and region 2 can be used to carry the summary.
[0175] Based on the layout information of component layout 731, as shown in Figure 7 (4), the electronic device can determine to display the two theme images in area 1 and area 3 respectively, and display the summary in area 2.
[0176] In some scenarios, the priority of certain file information acquired by an electronic device may be higher than that of other file information. For example, the priority of a certain file information may be greater than or equal to a preset level. For instance, as shown in Figure 7 (5), the electronic device acquires 5 file information: 1 summary, 1 topic image, and 3 tags. The priorities of these 5 file information are represented by 0.9, 0.5, 0.5, 0.4, and 0.3, respectively. Among them, the priority of the summary is significantly higher than that of the other file information. In this scenario, in some embodiments, the electronic device may expect the high-priority file information to occupy a relatively large area in the component layout so that the high-priority file information can be more conspicuous.
[0177] In some scenarios, when an electronic device matches a preset component layout based on the acquired file information, the area in the preset component layout used to carry the high-priority file information may not occupy a large area of the preset component layout. For example, based on the file information shown in Figure 7(5), assume that the preset component layout matched by the electronic device is the preset component layout 740 shown in Figure 7(5). The preset component layout 740 includes areas 1 to 3, where area 1 is set to carry the theme image, area 2 is set to carry the summary, and area 3 is set to carry the tag. The electronic device determines that area 2, which is used to carry the summary, does not occupy a large area of the preset component layout 740. At this time, the electronic device can expand the area used to carry the high-priority file information. For example, the electronic device can expand part or all of the area used to carry the low-priority file information into the area used to carry the high-priority file information.
[0178] As shown in the example in Figure 7(5), in the preset component layout 740, region 3 is the region used to carry the tag. The electronic device can expand part of region 3 into region 2 to jointly carry the summary, thus obtaining the component layout 741 shown in Figure 7(5). It can be understood that this example is introduced using high-priority file information as the summary. The solution described in this embodiment is also applicable to other types of high-priority file information (such as theme images, tags, etc.).
[0179] Optionally, in some scenarios, the content of high-priority file information may be relatively small, meaning that the high-priority file information may not fill the expanded area. Therefore, directly presenting this file information in the expanded area may result in a sparse area and poor visual effect. Thus, in some embodiments, the electronic device can also perform generative expansion of the content of the high-priority file information, such as generating a long summary from a short summary, to enrich the content of the file information. This allows the newly generated file information to fill the expanded area. Optionally, the electronic device can generate new file information based on the high-priority file information and / or file content. For example, in conjunction with the example shown in Figure 7(5), the electronic device can display the expanded summary in area 2 of component layout 741, display the theme image in area 1 of component layout 741, and display the tag with a priority of 0.5 in area 3 of component layout 741. In this way, adjustments to the view layer can have a feedback effect on the data layer, thereby optimizing the display effect of the components.
[0180] Optionally, in some scenarios, the priority of the file information may change after its content is expanded. Therefore, to ensure that high-priority file information is displayed first, in some embodiments, the electronic device may also determine whether the priority of the newly generated file information is higher than or equal to the priority of the file information before generation. If it is higher than or equal to the priority, the electronic device may perform the aforementioned operations of expanding the content of the file information and expanding the area carrying the file information. Conversely, if it is lower than the priority, the electronic device may not perform the aforementioned operations of expanding the content of the file information and expanding the area carrying the file information. That is, the electronic device may directly display the file information before expansion in the area of the component layout before expansion. As shown in the example in Figure 7 (5), the electronic device may directly display the summary obtained as shown in Figure 7 (5) in area 3 of the preset component layout 740.
[0181] Optionally, in other scenarios, the content of a high-priority file may already be quite rich before the content is expanded. That is, the high-priority file already fills the expanded area sufficiently. In this case, the electronic device can directly present the high-priority content in the expanded area without performing the expansion operation.
[0182] Of course, in other scenarios, when an electronic device fails to match a preset component layout based on the acquired file information, it can generate a larger area for higher-priority file information when creating a new layout, making the higher-priority file information more prominent. Similarly, this scenario can also utilize the expansion of the area and the expansion of the file information content described above.
[0183] Finally, the electronic device can generate components based on the matching results described above. Based on this scheme, the electronic device can generate components of different sizes and to meet different task requirements, resulting in richer component display effects and satisfying user task needs.
[0184] For example, Figures 8(1) to 8(3) show examples of some components provided in the embodiments of this application. As shown in Figure 8(1), component 800 is a component corresponding to a Word document. Component 800 includes a theme image, a summary "Guide to using open source libraries for convolutional neural networks", a summary "Includes usage methods of commonly used open source libraries for convolutional neural networks, including API explanations and basic examples of mainstream frameworks", and the tag "open source". As shown in Figure 8(2), component 810 is a component corresponding to a PPT. Component 810 includes a theme image, a summary "In-depth learning series of lectures on convolutional neural networks", and 5 tags. The 5 tags are "basic architecture", "classic model", "optimization and parameter tuning", "image classification", and "object detection". As shown in Figure 8(3), component 820 is a component corresponding to a table. Component 820 includes a theme image, a summary "Comparison table of convolutional neural network architectures", a summary "Comparison and selection reference of convolutional neural network models, deep models have strong performance but high computational cost", and 6 tags. The six tags are "Architecture", "Number of Layers", "Parameters", "Complexity", "Application", and "Advantages and Disadvantages".
[0185] The components shown in Figures 8(1) to 8(3) are examples of components corresponding to system application files. It can be understood that the files stored in the electronic device may be system application files or third-party application files. For system application files, the electronic device can generate components for displaying the corresponding files in the manner described above.
[0186] In some embodiments, if the third-party application only provides file information, the electronic device can also generate a component for displaying the file in the manner described above.
[0187] In other embodiments, if the third-party application provides not only file information but also component layout, the electronic device can directly use the component layout provided by the third-party application to generate components for displaying the file of the third-party application. That is, in this embodiment, the electronic device does not need to perform the above-mentioned process of generating components based on the preset component layout. In this way, the display of the third-party application file can meet the needs of the third-party application. For example, Figure 8 (4) shows an example of another component provided by the embodiments of this application. As shown in Figure 8 (4), component 830 is a component corresponding to a file of a third-party application. Component 830 includes a theme graph, a summary "Deep Analysis of Convolutional Neural Network Feature Extraction Mechanism", and four tags. The four tags are "5 cores", "3 branches", "12 subdivisions", and "6 annotations". Optionally, component 830 may also include the identifier 831 of the third-party application.
[0188] Optionally, in the embodiments of this application, the number or type of file information included in the components corresponding to different files may be different, or the size of the components may be different, or the layout of the file information in the components may be different. For example, the size of different types of files may be different; for example, PPT and PDF files may use horizontal components, while Word files may use vertical components. Furthermore, the size of files of different genres may also be different; for example, poems and news articles may use horizontal components, while academic papers may use vertical components. Moreover, the number or type of file information in the components corresponding to different genres of files may also be different.
[0189] It is understood that, in the embodiments of this application, files presented on any interface (such as, but not limited to, file management interface, desktop, file sharing interface, etc.) can be displayed using the components provided in the embodiments of this application.
[0190] For example, taking a file management interface as an example, Figure 9 shows a schematic diagram of a file management interface provided in an embodiment of this application. As shown in Figure 9, the file management interface 900 displays six components, namely components 901 to 906. Components 901 to 906 are components corresponding to different files located on the desktop. It can be understood that the file management interface shown in Figure 9 is an example of displaying files located on the desktop; the display of files in other folders or storage paths is similar.
[0191] It is understood that in the embodiments of this application, the component corresponding to each file can be used to display that file, and the corresponding file can be opened and its content viewed through the component. Optionally, in some embodiments, the component can support user editing. For example, the user can perform operations such as clicking on the component to make the component editable. The user can change or delete the file information already included in the component, and can also add more information to the component so that the information included in the component can meet the user's actual needs.
[0192] For example, taking a scenario of sharing files via tap, Bluetooth, or air sharing as an example, Figure 10 shows a schematic diagram of a file sharing interface provided in an embodiment of this application. As shown in Figure 10 (1), when another electronic device wants to share a file with the electronic device, the electronic device can display a reminder message 1000 before receiving the file shared by the other device. The reminder message 1000 can be used to remind the user whether to receive a file shared from another electronic device. The reminder message 1000 displays a component 1001, which is the component corresponding to the file that the other electronic device is about to share with the electronic device.
[0193] Similarly, in the reminder message 1010 shown in Figure 10(2), component 1011 corresponding to the file shared by other electronic devices to the electronic device is displayed, and in the reminder message 1020 shown in Figure 10(3), component 1021 corresponding to the file shared by other electronic devices to the electronic device is displayed. It can be understood that components 1001 to 1021 can be components corresponding to different PPT files. Alternatively, for the same file, the components generated by the electronic device to display the file may be different at different times. Therefore, components 1001 to 1021 can also be components corresponding to the same PPT file.
[0194] It is understandable that the example shown in Figure 10 is based on the example of an electronic device displaying the component corresponding to the shared file before receiving the file shared by another electronic device. Similarly, during the process of an electronic device receiving a file shared by another electronic device or after receiving a file shared by another electronic device, the electronic device can also display the component corresponding to the shared file.
[0195] For example, taking the scenario of sharing files through applications (such as social applications, conferencing applications, etc.) as an example, Figure 11 shows a schematic diagram of another file sharing interface provided by the embodiments of this application. As shown in the interface in Figure 11 (1), a sharing card 1100 is displayed. The sharing card 1100 is a card that displays the shared file in the traditional way described above. The sharing card 1100 displays the icon of the PPT file shared by the friend, the name "b35abc213fb1c7a041c8a814e026x26.pptx" and the size "4.16MB". Similarly, as shown in Figure 11 (2), the sharing card 1110 is also a card that displays the shared file in the traditional way described above. The sharing card 1110 displays the icon of the picture shared by the friend, the name "Screenshot-202310291917.jpeg" and the size "367.72KB".
[0196] The interface shown in Figure 11(3) displays a sharing card 1120, which is a card used to display shared files when the components described in the embodiments of this application are used. The sharing card 1120 displays the component 1121 corresponding to the PPT file shared by a friend. Similarly, the sharing card 1130 shown in Figure 11(4) is also a card used to display shared files when the components described in the embodiments of this application are used. The sharing card 1130 displays the component 1131 corresponding to the image shared by a friend.
[0197] As another example, taking the desktop as an example, Figure 12 shows a schematic diagram of a desktop provided in an embodiment of this application. As shown in Figure 12 (1), the desktop may display component 1201 and component 1202. Component 1201 is the component corresponding to a certain PPT file on the desktop, and component 1202 is the component corresponding to a certain Word file on the desktop.
[0198] In some embodiments, the components provided in this application may further include an application identifier related to the file displayed by the component. Optionally, in this embodiment, the application to which the file displayed by the component belongs and the application represented by the application identifier included in the component may be different applications. For example, when the content (such as recorded entries) saved by an application (such as a calendar application, a memo application, an email application, etc.) is related to the content of a file, the electronic device may also generate a corresponding component based on the application identifier when generating the component corresponding to that file.
[0199] For example, taking the components shown in Figure 12(1) as an example, component 1201 also includes an identifier 1203 for an email application and an identifier 1204 for a calendar application. If the content of the file displayed by component 1201 is about "deep learning applications in the image domain", the email application can include emails related to deep learning, and the calendar application can include schedules related to deep learning. That is, both the email application and the calendar application include content related to the content of the file displayed by component 1201. Similarly, as shown in Figure 12(1), component 1202 includes an identifier 1205 for a memo application and an identifier 1206 for a calendar application, etc.
[0200] In some implementations, the electronic device can also present content from an application represented by an application identifier included in the component, which is related to the file displayed by the component. For example, taking the component shown in Figure 12(1) as an example, the electronic device can also display button 1207, which can be used to present content related to the file displayed by component 1201 in an email application or calendar application. If the electronic device can receive a click operation such as a user clicking on button 1207 (as an example of a second operation), in response to the operation, as shown in Figure 12(2), the electronic device can present controls 1211 and 1212 as shown in Figure 12(2).
[0201] Control 1211 is used to display corresponding content from an email application, such as the content of an email related to deep learning (including but not limited to one or more of the following: subject, recipient, email address, and time). Control 1212 can be used to display content from a calendar application, such as the content of a schedule related to deep learning (including but not limited to one or more of the following: name, time, and location). Optionally, controls 1211, 1212, etc., can support users to perform actions such as opening them to view detailed information about the content displayed in the corresponding controls.
[0202] In some embodiments, when presenting a component, the electronic device may also present the user's current task related to the content displayed by the component. For example, referring to Figure 12, when presenting component 1201, the electronic device also presents the user's current task related to it, "Weekly deep learning lectures...". When presenting component 1202, the electronic device also presents the user's current task related to it, "Preparing for the artificial intelligence seminar to attend next month...".
[0203] Optionally, the component for displaying files provided in this application embodiment can replace the method of displaying files using icons, filenames, and a small amount of metadata as shown in Figure 1 (1) to Figure 2 (4). That is, the electronic device can use the component provided in this application embodiment to display files by default. Alternatively, the component for displaying files provided in this application embodiment can also replace the method of displaying files using icons as shown in Figure 1 (1) to Figure 1 (4). For example, as shown in Figure 13 (1), the display methods such as "extra-large icon", "large icon", "medium icon", and "small icon" shown in Figure 3 can be replaced by the display methods such as "extra-large component", "large component", "medium component", and "small component". Among them, the "extra-large component", "large component", "medium component", and "small component" shown in Figure 13 (1) can all be used to trigger the display of files using the component provided in this application embodiment. When the "extra-large component", "large component", "medium component", and "small component" are used to trigger the display of files using components, the size of the component corresponding to the same file decreases sequentially. Optionally, the layout of components corresponding to the same file can be different, and the information included in the components corresponding to the same file (such as the type of information and the amount of information) can also be different.
[0204] Alternatively, the component for displaying files provided in this application embodiment can also be used as a supplementary method. For example, as shown in Figure 13(2), at least one button such as "extra-large component", "large component", "medium component", and "small component" can also be displayed in the control 300 shown in Figure 3. These buttons can be used to trigger the display of files using components of different sizes such as "extra-large component", "large component", "medium component", and "small component". In the manner shown in Figure 13(2), users can either choose to display files using the icons, file names, and a small amount of metadata as described above, or they can select the components provided in this application embodiment to display files using the "extra-large component", "large component", "medium component", and "small component" buttons shown in Figure 13(2). Of course, in other implementations, users can also use other user operations (such as various button operations, gesture operations, and gesture operations) to enable the components provided in this application embodiment to display files.
[0205] In some embodiments, for the same file, at least one of the following may change: the layout of the components displayed by the electronic device, or the file information included in the components.
[0206] In this embodiment, as a possible implementation, when the size of the component changes, the component corresponding to the same file can have different layouts, and the file information included in the component can also be different. For example, as shown in Figure 14, Figure 14(1) is an example of displaying an image in the traditional form described above. As shown in Figure 14(1), when different display forms are used to display the image, the information displayed is one or more of the image's icon, name, and a small amount of metadata (such as size). In this example, the richness of the information displayed in the image will not change due to the change in the size of the icon. Figure 14(2) is an example of displaying an image using the component provided in the embodiment of this application. As shown in Figure 14(2), when the same image is displayed with components of different sizes, the richness of information displayed in the image is different.
[0207] For example, take the file management interface shown in Figure 15 (1) as an example. The file management interface displays 6 components. When the user changes the size of the components in the file management interface, the user can change the size of the components by calling up the "Extra Large Component", "Large Component", "Medium Component", "Small Component" and other buttons shown in Figure 13 in the file management interface.
[0208] Of course, in other examples, users can also adjust the size of components through other operations. For example, users can directly perform sliding operations on the components presented in the file management interface shown in Figure 15 (1) to shrink or enlarge the corresponding components. Assuming that the components presented in the file management interface shown in Figure 15 (1) are displayed as "large components", if the user performs a trigger operation on other component buttons besides the "large component" button, the size of the components presented by the electronic device will change. Taking the user performing an operation such as clicking the "small component" button as an example, the electronic device responds to the operation and can present the file management interface shown in Figure 15 (2), using small components to display the files. At this time, more components are displayed in the file management interface shown in Figure 15 (2). Among them, the components shown in Figure 15 (1) and Figure 15 (2) are all for displaying files from the same storage path (Figure 15 takes the desktop as an example).
[0209] In the components that display the same file as shown in Figure 15(1) and Figure 15(2), not only does the size of the component change, but the layout of the component can also change. For example, component 1501 shown in Figure 15(1) and component 1502 shown in Figure 15(2) are components corresponding to the same file, but their layouts are different.
[0210] As another possible implementation, when the form of the device changes, the components corresponding to the same file can also have different sizes and layouts, and the information included in the components can also be different. For example, taking a foldable screen device as an example, as shown in Figure 16(1), when the foldable screen device is in a folded state (which can be used as an example of the first form), the component corresponding to a certain file can be shown as component 1601. When the foldable screen device is in an unfolded state as shown in Figure 16(2) (which can be used as an example of the second form), the component corresponding to the file can be presented as component 1602. Among them, the size of component 1602 is larger than that of component 1601, and the layout of component 1602 is different from that of component 1601. The information that component 1602 can display is also different from that of component 1601.
[0211] As another possible implementation, when the file corresponding to the component is edited by the user, such as through deletion, addition, or modification of the file content, at least one of the following can change: the component's layout or the file information included in the component. The electronic device can then regenerate the corresponding component based on the user-edited file to display that file.
[0212] As a specific embodiment, Figure 17 shows a schematic diagram of the architecture of an electronic device generation component provided in this application embodiment. As shown in Figure 17, the electronic device includes a data layer, a view logic layer, and a view layer. The data layer can be used to determine the file information that can be included in the component. The view logic layer can be used to match the file information from the data layer with the preset component layout from the view layer. The view layer can be used to generate components according to the matching results of the view logic layer. Specifically, as shown in Figure 17, the data layer can classify the file information obtained by the electronic device to obtain three types as described above: theme image, summary, and tag. Then, the importance of the three types of file information (theme image, summary, and tag) is ranked to filter the file information. The implementation of the importance ranking can be found above. Then, the data layer can prioritize the filtered file information based on the scene data and display information obtained by the electronic device to determine the priority of each file information. The implementation of determining the priority of file information can be found above.
[0213] Next, the view logic layer can obtain the layout information corresponding to the preset component layout of the view layer. Based on the priority of each file information and the obtained layout information corresponding to the preset component layout, the file information is matched with the preset component layout. Finally, the view layer can generate components based on the matching results provided by the view logic layer. Optionally, the view layer can have preset component layouts of various sizes, and the view logic layer can match the preset component layout of the currently required size. Optionally, the currently required size can be selected by the user. For example, after the user performs a trigger operation through any of the buttons such as "extra-large component", "large component", "medium component", and "small component" as shown in Figure 13, the view logic layer can match the preset component layout of the size corresponding to the user's trigger method. Alternatively, it can be determined based on the form of the electronic device (the folded form shown in Figure 16(1) and the display form described in Figure 16(2)).
[0214] The above embodiments use the display of files by a component as an example. In some embodiments, the component can also be used to display folders; that is, this embodiment also provides a component for displaying folders. Similarly, in this embodiment, the implementation of the electronic device generating and displaying the component can refer to the implementation of the component for displaying files described above. In this embodiment, for a certain folder, the file information obtained by the electronic device can be based on the file information obtained from all the files in that folder.
[0215] The components provided in the embodiments of this application have been described above. In some embodiments, the electronic device may also employ a smart view to display files or folders stored in the electronic device. The smart view provided in this embodiment will be described below.
[0216] As one possible implementation, the electronic device can acquire the semantic information of the files mentioned above, as well as the scene data. Based on the semantic information and scene data, the electronic device can determine the relevance of each file to the user's current task and display files with a relevance greater than or equal to a preset relevance level through a smart view. In other words, the smart view provided in this embodiment can be used to display files related to the user's current task. For a description of the user's current task, please refer to the description of the scene data above. In this way, the electronic device can generate a file view that meets the needs of the current task, helping the user quickly find the files they need and improving file search efficiency.
[0217] In some scenarios, the same storage location (or described as a path, such as the same folder, the same disk, the same desktop, etc.) in an electronic device can correspond to a smart view. The smart view corresponding to each storage location can be used to display the files included in that storage location that are related to the current task being performed by the user.
[0218] Taking the desktop as an example, Figure 18(1) shows a schematic diagram of a smart view provided in an embodiment of this application. As shown in Figure 18(1), the electronic device displays a smart view 1801. The smart view 1801 includes a display area 1802, which can be used to display components of files currently located on the desktop and related to the task currently being performed by the user. For example, as a specific example, taking the task currently being performed by the user as "conducting deep learning lectures every week", the smart view corresponding to the desktop can be the smart view 1810 shown in Figure 18(2). The smart view 1810 displays components of files related to "conducting deep learning lectures every week", namely components 1811 and 1812. Optionally, as shown in Figure 18(2), the smart view can also display the identifier (or label) of the task currently being performed by the user, such as "conducting deep learning lectures every week...".
[0219] Optionally, in some implementations, the smart view can be used to display files unrelated to the user's current task, in addition to those related to the current task being performed. Optionally, the electronic device can also group other files in the same storage location according to file information (which can be based on semantic information or other information) of the components corresponding to the files related to the user's task, and then display the grouped files. Optionally, this file information can specifically be tag-type file information.
[0220] For example, taking the smart view 1801 shown in Figure 18(1) as an example, the smart view 1801 also includes a display area 1803, which can be used to display other files. For example, in conjunction with the example shown in Figure 18(2), the smart view 1810 also displays groups based on the "convolutional neural network" included in component 1811. Among them, the group includes components corresponding to files related to "convolutional neural network", such as components 1813 to 1816. The files corresponding to components 1813 to 1816 are located on the desktop and are not related to the task currently performed by the user (such as "teaching deep learning courses every week"). It is understood that Figure 18(2) may also include other groups based on the file information of components 1811 and 1812, which are not shown in Figure 18(2).
[0221] Optionally, the electronic device can determine whether a file is related to a "convolutional neural network" based on the semantic information of other files, or the electronic device can determine whether a file is related to a "convolutional neural network" based on whether the components corresponding to other files include a "convolutional neural network".
[0222] Understandably, this implementation uses the example of a smart view simultaneously displaying files related to the user's current task, as well as files grouped based on that file's information. In other implementations, the files displayed by the smart view that are related to the user's current task can also be files unrelated to the user's current task. In other words, the smart view can simultaneously display files unrelated to the user's current task, as well as files grouped based on that file's information.
[0223] It is understood that the above embodiments use the example of one smart group corresponding to the same storage location. In other embodiments, different storage locations may also correspond to one smart group. For example, an electronic device may correspond to one smart group, which can be used to display all files in the electronic device that are related to the user's current task. Optionally, the smart view may be enabled by default.
[0224] For example, taking the desktop as an example again, electronic devices can use the smart view shown in Figure 18 by default to display files on the desktop. Alternatively, the smart view can also be enabled by the user. For example, taking enabling the smart view on the desktop as an example again, a button 1804 can be displayed in the smart view shown in Figure 18 (1), and the user can enable the smart view through the button 1804. Of course, the user can also enable the smart view through other button operations, gesture operations, voice operations, etc.
[0225] Understandably, before Smart View is enabled, electronic devices can display documents in a normal view, such as shown in Figure 9. After Smart View is enabled, the electronic device can switch from a normal view, such as shown in Figure 9, to a Smart View, such as shown in Figure 18.
[0226] It is understood that this embodiment uses the combination of smart view and components to display files as an example. In other embodiments, smart view can also be combined with the traditional display method described above to display files. That is to say, what is presented in smart view may not be components, but rather the file's icon, name, metadata, etc.
[0227] In some embodiments, the files displayed in the smart view can also be determined based on the operating mode of the electronic device. For example, the smart view may only display files that meet the display requirements of the current operating mode. That is, these files that meet the display requirements of the current operating mode can then be displayed using the smart view described above.
[0228] For example, Figure 19 shows a flowchart of a document display method provided in an embodiment of this application. As shown in Figure 19, the method includes the following steps:
[0229] S1901, The electronic device receives the first operation at the first moment.
[0230] The first operation can be any operation used to instruct the display components of an electronic device. For example, the first operation can be a power-on operation, an operation to open an application interface, a file-sharing operation, etc.
[0231] S1902, The electronic device responds to the first operation received at the first moment and displays the first interface.
[0232] The first interface includes a first component corresponding to the first file. The first component displays M pieces of information, where M is greater than or equal to 1. The M pieces of information include the first piece of information, which is generated based on the content of the first file and does not exist in the content of the first file.
[0233] For example, the first interface can be any one of the following: the file management interface shown in Figure 9, the chat interface shown in Figure 11, the file sharing interface shown in Figure 10, or the desktop shown in Figure 12. Optionally, the first component can be any one of the components shown in Figures 9 to 12. Optionally, the M pieces of information can include at least one type of topic image, summary, tag, etc.
[0234] Optionally, the M pieces of information may also include a fourth piece of information, which is generated based on at least one of the metadata of the first file and information related to the first file.
[0235] Optionally, at least one of the M pieces of information is determined based on the user's preferences for the components corresponding to the file (such as which information to display first and which not to display).
[0236] Optionally, the first interface also includes a third component corresponding to the second file. The third component displays K pieces of information, where K is greater than or equal to 1. The K pieces of information include the third information, which is generated based on the content of the second file and does not exist in the content of the second file.
[0237] Optionally, the value of K may be different from the value of M, or the size of the third component may be different from the size of the first component, or the layout of the K pieces of information in the third component may be different from the layout of the aforementioned M pieces of information in the first component.
[0238] Optionally, the task performed by the user at the first moment is the first task, and at least one of the aforementioned M pieces of information is related to the first task.
[0239] Optionally, before executing step S1902, the electronic device obtains P pieces of information based on at least one of the content of the first file, the metadata of the first file, and information related to the first file, where P is greater than or equal to 1, and M pieces of information are some or all of the P pieces of information. The electronic device generates a first component based on the P pieces of information and the layout information of Q preset components, wherein the layout information of the preset components indicates the position and size of the area included in the preset component for displaying information.
[0240] Optionally, the electronic device can determine a target preset component from the layout information of Q preset components based on P pieces of information, wherein the target preset component includes M areas for displaying information; and display the M pieces of information from the P pieces of information in the M areas for displaying information respectively.
[0241] Optionally, the priority of these M pieces of information is higher than the priority of other information among these P pieces of information besides these M pieces of information.
[0242] Optionally, the information among these P pieces of information that is more relevant to the task performed by the user has a higher priority, or the information among these P pieces of information that is more relevant to the content of the first file has a higher priority.
[0243] Optionally, the M pieces of information include a fifth piece of information, which is the highest priority among the M pieces of information; before displaying the M pieces of information out of the P pieces of information in the M areas used for displaying information, the electronic device may also expand the first area of the M areas used for displaying information, which is the area used to display the fifth piece of information.
[0244] Optionally, before displaying M of the P pieces of information in the M areas for displaying information, if there is a free area in the first area when the fifth piece of information is displayed, the electronic device may also generate a sixth piece of information based on the fifth piece of information and / or the content of the first file. The content of the sixth piece of information is more than the content of the fifth piece of information, and the priority of the sixth piece of information is higher than or equal to the priority of the fifth piece of information.
[0245] S1903, The electronic device displays the second component corresponding to the first document at a second moment.
[0246] The second component displays N pieces of information, where N is greater than or equal to 1, the value of N is different from the value of M, or the size of the first component is different from the size of the second component, or the layout of the N pieces of information in the second component is different from the layout of the M pieces of information in the first component, or the N pieces of information include information that is different from the M pieces of information.
[0247] Optionally, the N pieces of information include a second piece of information, which is generated based on the content of the first file and differs from the M pieces of information. Optionally, the second piece of information and the first piece of information can be of the same type.
[0248] Optionally, the task performed by the user at the second time point is called the second task, and at least one of the N pieces of information is related to the second task. The first task is different from the second task.
[0249] Optionally, the task performed by the user at the first moment is the first task, and the content of the first file is related to the first task.
[0250] Optionally, the first interface also includes L groups, where L is greater than or equal to 1 and less than or equal to M. Each of the L groups includes a component corresponding to at least one file, and the content of the at least one file included in each group is related to one of the M pieces of information.
[0251] Optionally, the content of the files included in at least one of the L groups can be related to the information of the label type in the M information. A label type of information can be associated with at least one file component. Optionally, the content of at least one file included in the first group of the L groups is related to the first target information of the label type in the M information, and the content of at least one file included in the second group of the L groups is related to the second target information of the label type in the M information. Referring to Figure 18, taking component 1811 as an example, the first target information can be such as the label "convolutional neural network," and the first group can be a group obtained based on the label "convolutional neural network." The second target information can be such as the label "transfer learning," and the second group can be a group obtained based on the label "transfer learning."
[0252] For a detailed description of Figure 19, please refer to the relevant descriptions in the above embodiments.
[0253] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Based on the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.
[0254] This application provides embodiments for dividing an electronic device into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into a single processing unit. The integrated unit can be implemented in hardware or as a software functional module. It should be noted that the unit division in this application embodiment is illustrative and represents only one logical functional division; in actual implementation, other division methods may be used.
[0255] Figure 20 shows a schematic diagram of an electronic device provided in an embodiment of this application. This electronic device 2000 can be used to implement the methods described in the above method embodiments. For example, the electronic device 2000 may specifically include a processing unit 2001 and a display unit 2002.
[0256] The processing unit 2001 is used to support the electronic device 2000 in performing the processing function described in any one of Figures 1 to 19.
[0257] The display unit 2002 is used to support the electronic device 2000 in performing the display function described in any one of Figures 1 to 19.
[0258] Optionally, the electronic device 2000 shown in FIG20 may further include a communication unit (not shown in FIG20) for supporting the electronic device 2000 in performing the steps of communication between the electronic device and other electronic devices in the embodiments of this application.
[0259] Optionally, the electronic device 2000 shown in FIG20 may further include a storage unit 2003, which stores programs or instructions. When the processing unit 2001 executes the program or instructions, the electronic device 2000 shown in FIG20 can perform the method shown in the above-described method embodiment.
[0260] The technical effects of the electronic device 2000 shown in Figure 20 can be referred to the technical effects of the method shown in the above method embodiments, and will not be repeated here. The processing unit 2001 involved in the electronic device 2000 shown in Figure 20 can be implemented by a processor or processor-related circuit components, and can be a processor or processing module. The communication unit can be implemented by a transceiver or transceiver-related circuit components, and can be a transceiver or transceiver module. The display unit 2002 can be implemented by display screen-related components.
[0261] This application also provides a chip system, as shown in FIG21, which includes at least one processor 2101 and at least one interface circuit 2102. The processor 2101 and the interface circuit 2102 are interconnected via lines. For example, the interface circuit 2102 can be used to receive signals from other devices. As another example, the interface circuit 2102 can be used to send signals to other devices (e.g., the processor 2101). Exemplarily, the interface circuit 2102 can read instructions stored in a memory and send the instructions to the processor 2101. When the instructions are executed by the processor 2101, the electronic device can perform the various steps performed by the electronic device in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application.
[0262] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0263] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0264] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0265] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0266] This application also provides a computer storage medium storing computer instructions, which, when executed on an electronic device, cause the electronic device to perform the methods described in the above-described method embodiments.
[0267] This application provides a computer program product, which includes a computer program or instructions that, when run on a computer, cause the computer to perform the methods described in the above-described method embodiments.
[0268] In addition, this application also provides an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the apparatus to perform the methods in the above-described method embodiments.
[0269] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0270] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0271] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The embodiments can be combined with or referenced to each other without conflict. The apparatus embodiments described above are merely illustrative; for example, 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 device, 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 devices or units may be electrical, mechanical, or other forms.
[0272] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0273] Furthermore, the functional units in the various embodiments of this application 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.
[0274] 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 readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0275] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for displaying documents, characterized in that, Applied to an electronic device having a display screen, the method includes: Receive the first operation at the first moment; In response to a first operation received at the first moment, a first interface is displayed. The first interface includes a first component corresponding to the first file. The first component displays M pieces of information, where M is greater than or equal to 1. The M pieces of information include first information, which is generated based on the content of the first file and does not exist in the content of the first file.
2. The method according to claim 1, characterized in that, The method further includes: At a second moment, a second component corresponding to the first file is displayed. The second component displays N pieces of information, where N is greater than or equal to 1. The value of N is different from the value of M. Alternatively, the size of the first component is different from the size of the second component. Or, the layout of the N pieces of information in the second component is different from the layout of the M pieces of information in the first component. Or, the N pieces of information include information that is different from the M pieces of information.
3. The method according to claim 2, characterized in that, The N pieces of information include a second piece of information, which is generated based on the content of the first file, and the second piece of information is different from the M pieces of information.
4. The method according to claim 2 or 3, characterized in that, The task performed by the user at the second moment is the second task, and at least one of the N pieces of information is related to the second task.
5. The method according to claim 4, characterized in that, The task executed at the first moment is the first task, at least one of the M pieces of information is related to the first task, and the first task is different from the second task.
6. The method according to any one of claims 2-5, characterized in that, The electronic device is in a first state at the first moment, and the electronic device is in a second state at the second moment. The first state and the second state are different.
7. The method according to claim 6, characterized in that, The size of the display screen in the second form of the electronic device is larger than the size of the display screen in the first form, and the size of the second component is larger than the size of the first component.
8. The method according to any one of claims 2-7, characterized in that, Before displaying the second component corresponding to the first file at the second moment, the method further includes: Receive user update operations on the content of the first file.
9. The method according to any one of claims 1-8, characterized in that, The first interface also includes a third component corresponding to the second file. The third component displays K pieces of information, where K is greater than or equal to 1. The K pieces of information include the third information, which is generated based on the content of the second file and does not exist in the content of the second file.
10. The method according to claim 9, characterized in that, The value of K is different from the value of M, or the size of the third component is different from the size of the first component, or the layout of the K pieces of information in the third component is different from the layout of the M pieces of information in the first component.
11. The method according to any one of claims 1-10, characterized in that, The M pieces of information also include a fourth piece of information, which is generated based on at least one of the metadata of the first file and information related to the first file.
12. The method according to any one of claims 1-11, characterized in that, At least one of the M pieces of information is determined based on the user's preferences for the components corresponding to the file.
13. The method according to any one of claims 1-12, characterized in that, The first component also includes the identifier of at least one application, and each of the at least one application includes content related to the content of the first file.
14. The method according to claim 13, characterized in that, The method further includes: Receive the second operation; In response to the second operation, content related to the content of the first file, which is included in some or all of the applications in the at least one application, is displayed.
15. The method according to any one of claims 1-14, characterized in that, The task performed by the user at the first moment is the first task, and the content of the first file is related to the first task.
16. The method according to any one of claims 1-15, characterized in that, The first interface also includes L groups, where L is greater than or equal to 1 and less than or equal to M. Each of the L groups includes a component corresponding to at least one file, and the content of the at least one file included in each group is related to one of the M pieces of information.
17. The method according to claim 16, characterized in that, The content of at least one file in the first group of the L groups is related to the first target information of the tag type in the M information, and the content of at least one file in the second group of the L groups is related to the second target information of the tag type in the M information.
18. The method according to claim 16 or 17, characterized in that, The at least one file is a file in the same folder as the first file.
19. The method according to any one of claims 1-18, characterized in that, Before displaying the first interface, the method further includes: P pieces of information are obtained based on at least one of the content of the first file, the metadata of the first file, and information related to the first file, wherein P is greater than or equal to 1, and the M pieces of information are part or all of the P pieces of information. The first component is generated based on the layout information of the P pieces of information and the Q preset components. The layout information of the preset components indicates the position and size of the area included in the preset component for displaying information.
20. The method according to claim 19, characterized in that, The generation of the first component based on the layout information of the P pieces of information and the Q preset components includes: Based on the P pieces of information, a target preset component is determined from the layout information of the Q preset components, and the target preset component includes M areas for displaying information; M of the P pieces of information are displayed in the M areas designated for information display.
21. The method according to claim 20, characterized in that, The priority of the M pieces of information is higher than the priority of the other pieces of information among the P pieces of information besides the M pieces of information.
22. The method according to claim 21, characterized in that, The higher the relevance of the P pieces of information to the task performed by the user, the higher the priority of the information; or the higher the relevance of the P pieces of information to the content of the first file, the higher the priority of the information.
23. The method according to any one of claims 20-22, characterized in that, The M pieces of information include a fifth piece of information, which is the highest priority information among the M pieces of information; Before displaying M pieces of information out of the P pieces of information in the M areas designated for displaying information, the method further includes: Expand the first area of the M areas used for displaying information, whereby the first area is the area used for displaying the fifth information.
24. The method according to claim 23, characterized in that, Before displaying M pieces of information out of the P pieces of information in the M areas designated for displaying information, the method further includes: If the fifth information is displayed in the first area, and there is a free area in the first area, a sixth information is generated based on the fifth information and / or the content of the first file. The content of the sixth information is longer than the content of the fifth information, and the priority of the sixth information is higher than or equal to the priority of the fifth information.
25. The method according to any one of claims 1-24, characterized in that, The M pieces of information include at least one type of information such as pictures, sentences, and words.
26. The method according to any one of claims 1-25, characterized in that, The first component is a system component, and the first file is a file of a system application or a file of a third-party application.
27. The method according to any one of claims 1-26, characterized in that, The first interface is a file management interface, or a chat interface, or a file sharing interface, or a desktop.
28. An electronic device, characterized in that, include: The electronic device includes a display screen, a processor, and a memory, wherein the display screen, the memory, and the processor are coupled together, the memory being used to store program code including instructions, and the processor reading the instructions from the memory to cause the electronic device to perform the method as described in any one of claims 1-27.
29. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-27.
30. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when run on a computer, cause the computer to perform the method as described in any one of claims 1-27.