CN113946403B - Data display method and device, storage medium and electronic equipment - Google Patents

Data display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113946403B
CN113946403B CN202111355355.9A CN202111355355A CN113946403B CN 113946403 B CN113946403 B CN 113946403B CN 202111355355 A CN202111355355 A CN 202111355355A CN 113946403 B CN113946403 B CN 113946403B
Authority
CN
China
Prior art keywords
identification information
refreshed
display
user information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111355355.9A
Other languages
Chinese (zh)
Other versions
CN113946403A (en
Inventor
张克虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202111355355.9A priority Critical patent/CN113946403B/en
Publication of CN113946403A publication Critical patent/CN113946403A/en
Application granted granted Critical
Publication of CN113946403B publication Critical patent/CN113946403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure discloses a data display method, a data display device, a storage medium and electronic equipment. Wherein the method comprises the following steps: in response to a display content change notification of a target control, updating second identification information bound with the target control into third identification information based on the first identification information, wherein the target control is a control with display content to be refreshed in a plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of the user information to be refreshed; acquiring user information to be refreshed corresponding to the third identification information from the local memory by utilizing the first identification information; and displaying the user information to be refreshed in the display area corresponding to the target control. The display data refreshing method and device solve the technical problems of low display data refreshing efficiency and poor user experience caused by the fact that user data cannot be dynamically acquired according to data display requirements.

Description

Data display method and device, storage medium and electronic equipment
Technical Field
The disclosure relates to the technical field of instant messaging, and in particular relates to a data display method, a device, a storage medium and electronic equipment.
Background
At present, in the instant messaging field, a display interface directly displays user head portraits and nickname information according to the acquired data by judging whether the user head portraits and nickname data exist in a local memory of a user or not; otherwise, returning to a default user head portrait and a nickname, caching a piece of data in a memory when inquiring that the user head portrait and nickname data exist in a local database, and triggering callback operation of the user head portrait and nickname data; when the local database cannot inquire the user head portrait and the nickname data, the whole inquiry process is finished, and the default user head portrait and nickname data are finally displayed.
However, the above method can cause that only the default head portrait can be displayed under the condition that the local memory and the database can not find the related data, and the user experience is poor; in addition, the method cannot dynamically acquire the user information (namely the user head portrait and the nickname) according to the display requirement of the user, the user information cannot be updated in a friendly way after being changed, a large number of repeated information refreshing logics need to be written in the upper layer codes, and even correct user information cannot be displayed in extreme cases.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the disclosure provides a data display method, a device, a storage medium and electronic equipment, which are used for at least solving the technical problems of low display data refreshing efficiency and poor user experience caused by the fact that user data cannot be dynamically acquired according to data display requirements.
According to an aspect of the disclosed embodiments, there is provided a data presentation method of rendering a graphical user interface on a display of a terminal device, the graphical user interface having a session list displayed thereon, the session list including a plurality of controls, the method comprising: updating second identification information bound by a target control into third identification information based on first identification information in response to a display content change notification of the target control, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; acquiring the user information to be refreshed corresponding to the third identification information from a local memory by using the first identification information; and displaying the user information to be refreshed in a display area corresponding to the target control.
According to another aspect of the embodiments of the present disclosure, there is also provided a data presentation apparatus for rendering a graphical user interface on a display of a terminal device, the graphical user interface having a session list displayed thereon, the session list including a plurality of controls, the apparatus comprising: the updating module is used for responding to the display content change notification of the target control, updating the second identification information bound by the target control into third identification information based on the first identification information, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; the acquisition module is used for acquiring the user information to be refreshed corresponding to the third identification information from the local memory by utilizing the first identification information; and the display module is used for displaying the user information to be refreshed in the display area corresponding to the target control.
According to another aspect of the embodiments of the present disclosure, there is further provided a computer readable storage medium, where the computer readable storage medium includes a stored program, and when the program runs, the device on which the computer readable storage medium is located is controlled to execute any one of the data presentation methods described above.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device including a memory, in which a computer program is stored, and a processor configured to run the computer program to perform any one of the data presentation methods described above.
In the embodiment of the disclosure, a data display mode is adopted, and based on first identification information, second identification information bound by a target control is updated to third identification information by responding to a display content change notification of the target control, wherein the target control is a control with content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; acquiring the user information to be refreshed corresponding to the third identification information from a local memory by using the first identification information; the user information to be refreshed is displayed in the display area corresponding to the target control, so that the purpose of dynamically acquiring user data according to data display requirements is achieved, the technical effects of improving display data refreshing efficiency and user experience are achieved, and the technical problems of low display data refreshing efficiency and poor user experience caused by the fact that the user data cannot be dynamically acquired according to the data display requirements are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the present disclosure, and together with the description serve to explain the present disclosure. In the drawings:
FIG. 1 is a flow chart of a data presentation method according to an embodiment of the present disclosure;
FIG. 2 is a schematic illustration of an alternative graphical user interface according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of an alternative data presentation method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an alternative data loading flow in accordance with an embodiment of the present disclosure;
FIG. 5 is a schematic illustration of another alternative graphical user interface according to an embodiment of the present disclosure;
fig. 6 is a schematic structural view of a data display device according to an embodiment of the present disclosure.
Detailed Description
In order that those skilled in the art will better understand the present disclosure, a technical solution in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure, shall fall within the scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, to facilitate understanding of the embodiments of the present disclosure, some terms or nouns referred to in the present disclosure will be explained below:
buffer pool: a buffer set consisting of more than two buffers. The process needs to be applied in time, and can be released after being used up, so that the process can be used for inputting and outputting data.
Upper layer service codes: the instant messaging application software APP is internally provided with a plurality of interfaces for displaying the head portraits of friends/groups, and the upper layer business refers to all scenes for displaying the head portraits and nicknames.
A data loading framework: nicknames and avatars of corresponding users/groups can be automatically loaded to corresponding controls according to user identification/group identification and the like.
In accordance with the disclosed embodiments, a method embodiment of data presentation is provided, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system, such as a set of computer executable instructions, and, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
The technical scheme of the method embodiment can be executed in a mobile terminal, a computer terminal or similar computing devices. Taking the mobile terminal as an example, the mobile terminal can be a terminal device such as a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, abbreviated as MID), a PAD, etc. A mobile terminal may include one or more processors (which may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processor (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the mobile terminal may further include a transmission device, an input/output device, and a display device for a communication function. It will be appreciated by those of ordinary skill in the art that the foregoing structural descriptions are merely illustrative and are not intended to limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than the above structural description, or have a different configuration than the above structural description.
The memory may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the data presentation method in the embodiment of the present disclosure, and the processor executes the computer program stored in the memory, thereby performing various functional applications and data processing, that is, implementing the data presentation method described above. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, the remote memory being connectable to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through the base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly. The technical scheme of the method embodiment can be applied to various communication systems, such as: global system for mobile communications (Global System of Mobile communication, abbreviated GSM), code division multiple access (Code Division Multiple Access, abbreviated CDMA) system, wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated WCDMA) system, general packet radio service (General Packet Radio Service, abbreviated GPRS), long term evolution (Long Term Evolution, abbreviated LTE) system, LTE frequency division duplex (Frequency Division Duplex, abbreviated FDD) system, LTE time division duplex (Time Division Duplex, abbreviated TDD), universal mobile communication system (Universal Mobile Telecommunication System, abbreviated UMTS), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, abbreviated WiMAX) communication system, or 5G system, etc. Alternatively, device-to-Device (D2D) communication may be performed between a plurality of mobile terminals. Alternatively, the 5G system or 5G network is also referred to as a New Radio (NR) system or NR network.
Display devices may be, for example, touch screen type Liquid Crystal Displays (LCDs) and touch displays (also referred to as "touch screens" or "touch display screens"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI), and the user may interact with the GUI by touching finger contacts and/or gestures on the touch-sensitive surface, where the man-machine interaction functions optionally include the following interactions: executable instructions for performing the above-described human-machine interaction functions, such as creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving electronic mail, talking interfaces, playing digital video, playing digital music, and/or web browsing, are configured/stored in one or more processor-executable computer program products or readable computer-readable storage media.
The data presentation method in one embodiment of the present disclosure may be run on a terminal device or a server. The terminal device may be a local terminal device, and the server may be a cloud server, a server of a distributed system, or a server combined with a blockchain. When the data presentation method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
It should be noted that, in the data display method in the prior art, only a default head portrait can be displayed under the condition that the local memory and the database cannot check related data, so that the user experience is poor; and the user information can not be dynamically acquired according to the display requirement of the user, and an interface can not be updated after the user information is changed, so that the upper layer code needs to write a large number of repeated codes.
In order to solve the technical problems in the prior art, the embodiments of the present disclosure provide a data display method, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.
Fig. 1 is a flowchart of a data presentation method according to an embodiment of the present disclosure, as shown in fig. 1, a graphical user interface is rendered on a display of a terminal device, where a session list is displayed on the graphical user interface, the session list including a plurality of controls, and the method includes:
Step S102, responding to a display content change notice of a target control, and updating second identification information bound by the target control into third identification information based on first identification information, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed;
step S104, the user information to be refreshed corresponding to the third identification information is obtained from the local memory by utilizing the first identification information;
and step S106, displaying the user information to be refreshed in a display area corresponding to the target control.
In the embodiment of the disclosure, a data display mode is adopted, and based on first identification information, second identification information bound by a target control is updated to third identification information by responding to a display content change notification of the target control, wherein the target control is a control with content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; acquiring the user information to be refreshed corresponding to the third identification information from a local memory by using the first identification information; the user information to be refreshed is displayed in the display area corresponding to the target control, so that the purpose of dynamically acquiring user data according to data display requirements is achieved, the technical effects of improving display data refreshing efficiency and user experience are achieved, and the technical problems of low display data refreshing efficiency and poor user experience caused by the fact that the user data cannot be dynamically acquired according to the data display requirements are solved.
Optionally, the session type identification information includes at least one of: single person session, multi-person session, group session; in addition to displaying the session list on the graphical user interface, at least one of the following may be displayed: contact lists, group member lists, chat interfaces, etc.
Optionally, the plurality of controls may be, but are not limited to, views for showing user avatars, user names, for example, a picture view showing user avatars, and a text view showing user names; the identification information of the user information includes at least one of: the target control comprises an avatar control and a name control corresponding to the user avatar and the user name.
Optionally, the above session list may not be limited to displaying nicknames, names, remarks, and head portraits of the user, and may also display the last message and the identification information of the sender of the last message; for another example, the "develop two group" in the graphical user interface shown in fig. 2 shows the group head, nickname, last message, and identification information of the sender of the last message.
Optionally, the local memory is configured according to an available memory space of the terminal device, where the local memory is smaller than the available memory space; the local memory includes the user information to be refreshed corresponding to the third identification information, the local memory may be, but is not limited to, a cache pool, where the size of the cache pool is dynamically configured according to the size of the available memory of the current user terminal device, so that the cache pool is ensured to be in a reasonable range, and when there is a display requirement, data is preferentially acquired from the cache pool.
It should be noted that, in order to enable the plurality of controls to be reclaimed by the garbage can after the declaration period ends (that is, the interface for displaying the nickname and the avatar is closed by the user), the plurality of controls are stored in the control list in a weakly referenced manner.
The embodiment of the disclosure can at least bring the following technical effects: dynamically setting the size of a cache pool according to the memory size of the user terminal equipment; memory data is managed in a unified way, frequent input and output operations are reduced, creation of user information objects is reduced, garbage collection times are reduced, and application response speed is improved; redundant upper layer codes are reduced, and business development is focused on specific business logic, but not user data acquisition and updating; the display rule supporting the user information can be flexibly applied to all scenes needing to display the user information.
In an alternative embodiment, the method further comprises:
step S202, when the user information to be refreshed is not found in the local memory, displaying default user information in the display area based on the first identification information.
Optionally, when the user information to be refreshed is not found in the local memory, generating and displaying default user information according to the session type (i.e. the first information identifier) of the session list, and then triggering a process of loading the user information to be refreshed from the local database.
In an alternative embodiment, the method further comprises:
step S302, when the user information to be refreshed is not found in the local memory, the user information to be refreshed is found from a data table corresponding to the first identification information in a local database;
step S304, the user information to be refreshed is cached to the local memory, and the default user information is replaced by the user information to be refreshed.
Optionally, the user information to be refreshed of different session types is stored in different session lists, for example, the user information to be refreshed of a single session is stored in a user table tb_user, the user information to be refreshed of a group session is stored in a team table tb_team, and the user information to be refreshed of a multi-person session is stored in a conference table tb_session. And acquiring a session list corresponding to the user information to be refreshed from the local database according to the session type of the user information to be refreshed, and inquiring the user information to be refreshed from the session list.
It should be noted that, the above local database mainly caches the user information acquired from the server into the local database, so as to reduce the number of times of acquiring data from the server, reduce network request and input/output operations, reduce the consumption of server performance, and reduce the consumption of electric quantity and flow of the data processing application software APP, when the APP is restarted, the memory cache is empty, and at this time, data can be loaded from the session list corresponding to the local database.
As an alternative embodiment, fig. 3 is a flowchart of an alternative data presentation method according to an embodiment of the disclosure, as shown in fig. 3, where the method further includes:
step S402, when the user information to be refreshed is not found in the local database, a query request is initiated to a server based on the first identification information, wherein the query request is used for requesting to acquire the user information to be refreshed from the server;
step S404, receiving a query response returned by the server, wherein the information carried in the query response comprises: the user information to be refreshed is described above;
step S406, the user information to be refreshed is respectively cached in the local memory and the local database, and the default user information is replaced by the user information to be refreshed.
Optionally, the query request carries the first identification information (i.e. session type identification information), and the server is configured to query whether the user information to be refreshed exists in the session service based on the session type identification information.
Optionally, if the to-be-refreshed user information does not exist in the local database, a query request is initiated to a service (for example, a user service, a group service, a multi-user session service, etc.) corresponding to the server through different session type identification information, and the queried to-be-refreshed user information is cached in the local memory and the local database. For example, in the data loading flow chart shown in fig. 4, the acquisition of the friend information invokes the user service in the server, the acquisition of the group information invokes the group service in the server, and after the corresponding user data is acquired, the user data is saved to the local memory and the local database.
In an alternative embodiment, the method further comprises:
step S502, obtaining the idle memory of the terminal equipment;
step S504, setting the buffer space capacity corresponding to the local memory based on the idle memory.
Optionally, the local memory is configured according to an available memory space of the terminal device, where the local memory is smaller than the available memory space; the local memory includes the user information to be refreshed corresponding to the third identification information, the local memory may be, but is not limited to, a cache pool, where the size of the cache pool is dynamically configured according to the size of the available memory of the current user terminal device, so that the cache pool is ensured to be in a reasonable range, and when there is a display requirement, data is preferentially acquired from the cache pool.
It should be noted that, in this embodiment, the size of the local memory (i.e. the buffer pool) is set according to the free memory of the terminal device, and compared with the buffer pool with a fixed size, the size of the buffer pool is set dynamically according to the available memory of the terminal device, so that the size of the buffer pool is more reasonable, and for small memory devices, a smaller buffer pool can be set to prevent memory overflow caused by oversized buffer pool; a larger buffer pool can be arranged for the large memory terminal equipment so as to fully exert the performance advantage of the high-capacity terminal equipment.
The larger the cache pool is, the better the overall data loading display effect is, for example, the user data of group members are checked by sliding a list back and forth on a group member list interface of 2000 people, the small memory terminal equipment cannot cache the user data of 2000 people at the same time, some user data need to be reloaded from a database in the process of the sliding interface, default data can be displayed first in the loading process, and real user data can be automatically refreshed and displayed after the data loading is completed; the large memory terminal equipment can buffer 2000 data at the same time, and the data is not required to be loaded from the database again when in a sliding interface, so that the real data is directly displayed, and the aim of improving user experience is fulfilled.
In an alternative embodiment, the method further comprises:
step S602, adding the plurality of controls into the session list;
step S604, determining the second identification information of the current display user information bound to each control in the plurality of controls.
Optionally, the display manner of the current display user information includes one of the following: single display and continuous display, wherein the single display indicates that the current display user information is deleted from a control list of the data loading frame after the current display user information is displayed in the graphical user interface; the continuous display means that the current display user information is still kept in the control list after the current display user information is displayed in the graphical user interface.
The single display and the continuous display are suitable for updating the data in the interface when the user opens the graphical user interface and the interface is not closed.
In an optional embodiment, updating the second identification information bound to the target control to the third identification information based on the first identification information includes:
step S702, calling a pre-packaged refreshing logic interface, and determining the target control and the current display user information corresponding to the target control from the plurality of controls based on the first identification information;
step S704, updating the second identification information of the current display user information bound to the target control to the third identification information.
Optionally, the different refresh logic interfaces correspond to different information display policies to meet information display requirements in different scenarios, where the information display policies include at least one of: the remarks priority display strategy, the nickname priority display strategy and the name priority display strategy, wherein different information display strategies have different information display priorities, for example, the remarks of the friends A are remarks A, the nicknames are nicknames A, the names are names A, the user identifications are ID-A, and when the remarks priority display strategy is adopted, the user information of the friends A is displayed as the remarks A; when using the nickname priority display strategy, displaying a nickname A; displayed when using the name priority display policy is name a.
It should be noted that, since one piece of user information may need to be displayed at a plurality of positions of the graphical user interface, one piece of user identification information may correspond to at least one target control. For example, in the graphical user interface shown in fig. 5, both the topmost field 501 and the conversation list field 502 need to display a file transfer assistant, where the user identification of the file transfer assistant corresponds to two sets of controls, namely, the file transfer assistant control 503, the group icon control 505, the group member synchronization icon control 506, the friend icon control 507 in the topmost field 501 in fig. 5, and the file transfer assistant control 504 shown in the conversation list field 502.
In an alternative embodiment, a data loading framework with preset configuration may be adopted, and the third identification information (i.e. the identification information of the user information to be refreshed) is automatically loaded according to the first identification information (i.e. the session type identification information) and displayed on the corresponding target control; the data loading framework can include, but is not limited to, a control list, a data acquisition strategy and a data observation module, wherein the control list is used for displaying user information; the data acquisition policy module is used for loading user information, for example, when user information is acquired from a local memory, when user information is acquired from a local database, when user information is acquired from a server, and updating the local database and a memory cache; the data observation module is used for sensing the change of user information, and if the user information changes, the data observation module can inquire the corresponding control from the control list and display the data on the target control according to the data display strategy bound with the control. As shown in FIG. 4, because the control list is maintained in the data loading frame, if the user information corresponding to the control in the permanent display mode changes, the user information module notifies the data observer module in the data loading frame that the user information corresponding to the user identifier changes, and the data observer module refreshes the control after receiving the notification of the change, so as to achieve the purpose of refreshing the graphical user interface in real time after the user information changes.
It should be noted that, since one user data may need to be presented at multiple locations of the graphical user interface, one user identifier may correspond to at least one target control. For example, in the graphical user interface shown in FIG. 6, both the upper set-top region and the lower session list region require the display of a file transfer assistant, where the user identification of the file transfer assistant corresponds to two sets of controls, namely the file transfer assistant control shown in the upper set-top region and the file transfer assistant control shown in the lower session list region.
According to an embodiment of the present disclosure, there is further provided an apparatus embodiment for implementing the data display method, and fig. 6 is a schematic structural diagram of a data display apparatus according to an embodiment of the present disclosure, as shown in fig. 6, where the data display apparatus is applied to a terminal device running an instant messaging application, and a graphical user interface is rendered on a display of the terminal device, where a session list including at least a plurality of target controls is displayed on the graphical user interface, where the method includes: an updating module 90, an acquiring module 92, a display module 94, wherein:
the updating module 90 is configured to respond to a display content change notification of a target control, and update second identification information bound to the target control to third identification information based on first identification information, where the target control is a control to be refreshed of display content in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of to be refreshed user information; the obtaining module 92 is configured to obtain, from a local memory, the user information to be refreshed corresponding to the third identification information by using the first identification information; the display module 94 is configured to display the user information to be refreshed in a display area corresponding to the target control.
In the embodiment of the present disclosure, in a data display manner, the update module 90 is configured to update, based on first identification information, second identification information bound to a target control to third identification information in response to a display content change notification of the target control, where the target control is a control to be refreshed of display contents in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of currently displayed user information, and the third identification information is identification information of to-be-refreshed user information; the obtaining module 92 is configured to obtain, from a local memory, the user information to be refreshed corresponding to the third identification information by using the first identification information; the display module 94 is configured to display the user information to be refreshed in a display area corresponding to the target control, so as to achieve the purpose of dynamically obtaining user data according to data display requirements, thereby achieving the technical effects of improving display data refreshing efficiency and user experience, and further solving the technical problems of low display data refreshing efficiency and poor user experience caused by the fact that the user data cannot be dynamically obtained according to the data display requirements.
It should be noted that each of the above modules may be implemented by software or hardware, for example, in the latter case, it may be implemented by: the above modules may be located in the same processor; alternatively, the various modules described above may be located in different processors in any combination.
It should be noted that, the update module 90, the obtaining module 92, and the display module 94 correspond to steps S102 to S106 in the method embodiment, and the modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the method embodiment. It should be noted that the above modules may be run in a computer terminal as part of the apparatus.
It should be noted that, the optional or preferred implementation manner of this embodiment may refer to the related description in the method embodiment, which is not repeated herein.
The data presentation device may further include a processor and a memory, where the update module 90, the acquisition module 92, the display module 94, etc. are stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, the kernel fetches corresponding program units from the memory, and one or more of the kernels can be arranged. The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
According to an embodiment of the present application, there is also provided a computer-readable storage medium embodiment. Optionally, in this embodiment, the computer readable storage medium includes a stored program, where the program controls a device in which the computer readable storage medium is located to execute any one of the data presentation methods when the program runs.
Alternatively, in this embodiment, the above-mentioned computer readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network or in any one of the mobile terminals in the mobile terminal group, and the above-mentioned computer readable storage medium includes a stored program.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: updating second identification information bound by a target control into third identification information based on first identification information in response to a display content change notification of the target control, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; acquiring the user information to be refreshed corresponding to the third identification information from a local memory by using the first identification information; and displaying the user information to be refreshed in a display area corresponding to the target control.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: and displaying default user information in the display area based on the first identification information when the user information to be refreshed is not found in the local memory.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: when the user information to be refreshed is not found in the local memory, the user information to be refreshed is found from a data table corresponding to the first identification information in a local database; and caching the user information to be refreshed into the local memory, and replacing the default user information with the user information to be refreshed.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: when the user information to be refreshed is not found in the local database, a query request is initiated to a server based on the first identification information, wherein the query request is used for requesting the server to acquire the user information to be refreshed; receiving a query response returned by the server, wherein the information carried in the query response comprises: the user information to be refreshed is described above; and respectively caching the user information to be refreshed into the local memory and the local database, and replacing the default user information with the user information to be refreshed.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: acquiring an idle memory of the terminal equipment; and setting the cache space capacity corresponding to the local memory based on the idle memory.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: adding the plurality of controls to the conversation list; determining the second identification information of the current display user information bound by each control in the plurality of controls, wherein the display mode of the current display user information comprises one of the following modes: single display and continuous display.
Optionally, the computer readable storage medium is controlled to perform the following functions when the program is run: invoking a pre-packaged refreshing logic interface, and determining the target control and the current display user information corresponding to the target control from the plurality of controls based on the first identification information; and updating the second identification information of the current display user information bound by the target control to the third identification information.
According to an embodiment of the present application, there is also provided a processor embodiment. Optionally, in this embodiment, the processor is configured to run a program, where any one of the data displaying methods is executed when the program runs.
An embodiment of the present application provides an electronic device, including a memory, and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to perform any one of the data presentation methods described above.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: updating second identification information bound by a target control into third identification information based on first identification information in response to a display content change notification of the target control, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed; acquiring the user information to be refreshed corresponding to the third identification information from a local memory by using the first identification information; and displaying the user information to be refreshed in a display area corresponding to the target control.
The foregoing embodiment numbers of the present disclosure are merely for description and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present disclosure, the descriptions of the various embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a computer readable storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned computer-readable storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present disclosure, and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present disclosure, which are intended to be comprehended within the scope of the present disclosure.

Claims (10)

1. A data presentation method, characterized in that a graphical user interface is rendered on a display of a terminal device, the graphical user interface having a list of sessions displayed thereon, the list of sessions comprising a plurality of controls, the method comprising:
updating second identification information bound by a target control into third identification information based on first identification information in response to a display content change notification of the target control, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed;
acquiring the user information to be refreshed corresponding to the third identification information from a local memory by utilizing the first identification information;
And displaying the user information to be refreshed in a display area corresponding to the target control.
2. The method according to claim 1, wherein the method further comprises:
and displaying default user information in the display area based on the first identification information when the user information to be refreshed is not found in the local memory.
3. The method according to claim 2, wherein the method further comprises:
when the user information to be refreshed is not found in the local memory, the user information to be refreshed is found from a data table corresponding to the first identification information in a local database;
and caching the user information to be refreshed into the local memory, and replacing the default user information with the user information to be refreshed.
4. A method according to claim 3, characterized in that the method further comprises:
when the user information to be refreshed is not found in the local database, a query request is initiated to a server based on the first identification information, wherein the query request is used for requesting the server to acquire the user information to be refreshed;
receiving a query response returned by the server, wherein the information carried in the query response comprises: the user information to be refreshed;
And respectively caching the user information to be refreshed into the local memory and the local database, and replacing the default user information with the user information to be refreshed.
5. The method according to claim 1, wherein the method further comprises:
acquiring an idle memory of the terminal equipment;
and setting the cache space capacity corresponding to the local memory based on the idle memory.
6. The method according to claim 1, wherein the method further comprises:
adding the plurality of controls to the conversation list;
determining the second identification information of the current display user information bound by each control in the plurality of controls, wherein the display mode of the current display user information comprises one of the following steps: single display and continuous display.
7. The method of claim 1 or 6, wherein updating the second identification information bound to the target control to the third identification information based on the first identification information comprises:
invoking a pre-packaged refreshing logic interface, and determining the target control and current display user information corresponding to the target control from the plurality of controls based on the first identification information;
And updating the second identification information of the current display user information bound by the target control to the third identification information.
8. A data presentation apparatus for rendering a graphical user interface on a display of a terminal device, the graphical user interface having a list of sessions displayed thereon, the list of sessions including a plurality of controls, the apparatus comprising:
the updating module is used for responding to the display content change notification of a target control, updating second identification information bound by the target control into third identification information based on first identification information, wherein the target control is a control with display content to be refreshed in the plurality of controls, the first identification information is session type identification information corresponding to the target control, the second identification information is identification information of current display user information, and the third identification information is identification information of user information to be refreshed;
the acquisition module is used for acquiring the user information to be refreshed, which corresponds to the third identification information, from a local memory by utilizing the first identification information;
and the display module is used for displaying the user information to be refreshed in the display area corresponding to the target control.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the data presentation method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the data presentation method of any of claims 1 to 7.
CN202111355355.9A 2021-11-16 2021-11-16 Data display method and device, storage medium and electronic equipment Active CN113946403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111355355.9A CN113946403B (en) 2021-11-16 2021-11-16 Data display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111355355.9A CN113946403B (en) 2021-11-16 2021-11-16 Data display method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113946403A CN113946403A (en) 2022-01-18
CN113946403B true CN113946403B (en) 2023-08-22

Family

ID=79338054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111355355.9A Active CN113946403B (en) 2021-11-16 2021-11-16 Data display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113946403B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697149B (en) * 2022-04-01 2023-10-24 北京字跳网络技术有限公司 View refreshing method, device, equipment and medium for video conference
CN115051967B (en) * 2022-04-28 2023-10-03 杭州脸脸会网络技术有限公司 Data display method and device, electronic device and storage medium
CN115567471A (en) * 2022-08-23 2023-01-03 北京字跳网络技术有限公司 Method, device, equipment and storage medium for presenting session message

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207885A (en) * 2015-07-07 2015-12-30 广州华多网络科技有限公司 Method and device for displaying user information in session interface
CN106354376A (en) * 2015-07-13 2017-01-25 腾讯科技(深圳)有限公司 Information processing method and client terminal
CN107220073A (en) * 2016-03-21 2017-09-29 腾讯科技(深圳)有限公司 A kind of information updating method and user equipment
CN110377376A (en) * 2019-06-05 2019-10-25 平安科技(深圳)有限公司 Interface message method for refreshing, device, computer installation and readable storage medium storing program for executing
CN110619099A (en) * 2019-05-21 2019-12-27 北京无限光场科技有限公司 Comment content display method, device, equipment and storage medium
CN111835617A (en) * 2019-04-23 2020-10-27 阿里巴巴集团控股有限公司 User head portrait adjusting method and device and electronic equipment
US10963145B1 (en) * 2019-12-30 2021-03-30 Snap Inc. Prioritizing display of user icons associated with content
CN113495665A (en) * 2020-03-19 2021-10-12 斑马智行网络(香港)有限公司 Image display method, image display device, electronic equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10904197B2 (en) * 2017-12-19 2021-01-26 Salesforce.Com, Inc. Management of members of social network conversations

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207885A (en) * 2015-07-07 2015-12-30 广州华多网络科技有限公司 Method and device for displaying user information in session interface
CN106354376A (en) * 2015-07-13 2017-01-25 腾讯科技(深圳)有限公司 Information processing method and client terminal
CN107220073A (en) * 2016-03-21 2017-09-29 腾讯科技(深圳)有限公司 A kind of information updating method and user equipment
CN111835617A (en) * 2019-04-23 2020-10-27 阿里巴巴集团控股有限公司 User head portrait adjusting method and device and electronic equipment
CN110619099A (en) * 2019-05-21 2019-12-27 北京无限光场科技有限公司 Comment content display method, device, equipment and storage medium
CN110377376A (en) * 2019-06-05 2019-10-25 平安科技(深圳)有限公司 Interface message method for refreshing, device, computer installation and readable storage medium storing program for executing
WO2020244159A1 (en) * 2019-06-05 2020-12-10 平安科技(深圳)有限公司 Interface message refreshing method and apparatus, computer device, and readable storage medium
US10963145B1 (en) * 2019-12-30 2021-03-30 Snap Inc. Prioritizing display of user icons associated with content
CN113495665A (en) * 2020-03-19 2021-10-12 斑马智行网络(香港)有限公司 Image display method, image display device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113946403A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN113946403B (en) Data display method and device, storage medium and electronic equipment
KR101131797B1 (en) Aggregated view of local and remote social information
US10929942B2 (en) Screen capture method, terminal, and storage medium employing both parent application program and sub-application program
KR102193489B1 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
US8271889B1 (en) Automatically updated user interfaces for a mobile device
CN103914205B (en) A kind of file thumbnail methods of exhibiting of intelligent terminal and device
CN104333501B (en) Contact list display method and device
CN105487640A (en) Image pre-loading and caching method of Android watch
CN102769640A (en) Method, server and system for user information updating
CN105210032A (en) Application registration and interaction
TWI734670B (en) Information card processing method and device
CN103580998A (en) Method and device for sharing communication behavior information
CN106209584A (en) User profile processing method based on the Internet, client and server
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
JP2021108163A (en) Screen locking method and mobile terminal
KR101522728B1 (en) Data transmission method and device based on slide detection
CN109413340B (en) Processing method and device for generating album
CN103095891A (en) Method, device and terminal of quickly inputting information of business card
US11606620B2 (en) Method and device for acquiring virtual resource and storage medium
CN111773679B (en) Method and device for processing icons in game
JP2024519312A (en) Virtual live room display method, device, client, server, and medium
CN114168026A (en) Message prompting method, device and storage medium
CN113171618A (en) Game data display method and device, processor and storage medium
CN112632184A (en) Data processing method and device, electronic equipment and storage medium
CN115022274B (en) Unread message quantity statistical method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant