CN115174290A - Session record display method and device, storage medium and electronic device - Google Patents

Session record display method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115174290A
CN115174290A CN202210571473.1A CN202210571473A CN115174290A CN 115174290 A CN115174290 A CN 115174290A CN 202210571473 A CN202210571473 A CN 202210571473A CN 115174290 A CN115174290 A CN 115174290A
Authority
CN
China
Prior art keywords
session
list
display screen
height
display
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.)
Granted
Application number
CN202210571473.1A
Other languages
Chinese (zh)
Other versions
CN115174290B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210571473.1A priority Critical patent/CN115174290B/en
Publication of CN115174290A publication Critical patent/CN115174290A/en
Application granted granted Critical
Publication of CN115174290B publication Critical patent/CN115174290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home

Abstract

The application discloses a display method and device of session records, a storage medium and an electronic device, which relate to the technical field of smart home/smart home, and the display method of the session records comprises the following steps: acquiring a session list, wherein a plurality of sessions are recorded in the session list; determining a target conversation displayed in the display screen according to a list height of the conversation list and a display height of the display screen, wherein the list height is heights of a plurality of conversations in the conversation list, and the display height is a maximum display height of the display screen; the target session displayed in the display screen solves the problem that the session display area in the display screen in the related technology can not change the displayed session record in a self-adaptive manner along with the change of the session record, so that the user experience is poor, and the effect of improving the user experience is achieved.

Description

Session record display method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart home/smart home, in particular to a display method and device of a session record, a storage medium and an electronic device.
Background
At present, the smart home can complete communication with a user through interaction, the user provides questions to the smart home, the smart home answers the questions, and the questions of the user and corresponding answers are displayed on a visual screen of the smart home. The existing display sessions are all fixed display areas, and the session display areas in the screen cannot change the displayed session records in a self-adaptive manner along with the change of the session records, so that the user experience is poor.
In view of the above problem in the related art that the session display area in the display screen cannot adaptively change the displayed session record along with the change of the session record, thereby resulting in poor user experience, no solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying session records, a storage medium and an electronic device, which are used for at least solving the problem that the displayed session records cannot be adaptively changed along with the change of the session records in a session display area in a display screen in the related art, so that the user experience is poor.
According to an embodiment of the present invention, there is provided a method for displaying a session record, including:
acquiring a session list, wherein a plurality of sessions are recorded in the session list; determining a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is heights of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen; the target session displayed in the display screen.
In an exemplary embodiment, the determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen includes: determining each session in the list of sessions as the target session if the list height is less than or equal to the display height.
In an exemplary embodiment, the target session displayed in the display screen includes: and displaying the target session in the display screen according to the recording time of each session in the session list, wherein the session in the session list with the recording time closer to the current time is closer to the bottom of the display screen, and the session list is set to be prohibited from being slid in the display screen.
In an exemplary embodiment, determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen includes: under the condition that the list height is larger than the display height, acquiring a partial session list of the display height from the session list according to the recording time of the session records recorded in the session list, wherein a first time interval is the time interval between the recording time in the partial session list and the current time interval, a second time interval is the time interval between the recording time in a residual session list and the current time interval, the first time interval is smaller than or equal to the second time interval, and the sessions in the session list except the partial session list are recorded in the residual session list; determining each session in the partial session list as the target session
In an exemplary embodiment, the target session displayed in the display screen includes: and displaying the target session in the display screen according to the recording time of each session in the partial session list, wherein the session in the partial session list, which is closer to the current time in the recording time, is closer to the bottom of the display screen, and the session list is set to be allowed to be slid in the display screen.
In one exemplary embodiment, after the target session displayed in the display screen, the method further includes: and in the case that the sliding operation on the display screen is acquired, displaying the sessions in the remaining session list on the display screen.
In an exemplary embodiment, the obtaining the session list includes: under the condition of acquiring a newly added session, recording the newly added session at the head position of an initial session list; and reversing the initial conversation list to obtain the conversation list, so that the head position of the initial conversation list corresponds to the bottom of the display screen.
According to another embodiment of the present invention, there is also provided a display apparatus of a session record, including: an acquisition unit configured to acquire a session list in which a plurality of sessions are recorded; a determination unit configured to determine a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is a height of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen; a display unit for displaying the target session in the display screen.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a session list is obtained, wherein a plurality of sessions are recorded in the session list; determining a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is a height of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen; the target session displayed in the display screen. The problem that in the related art, the session display area in the display screen cannot adaptively change the displayed session record along with the change of the session record, so that the user experience is poor is solved, and the effect of improving the user experience is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of an alternative session record display method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method for displaying session records according to an embodiment of the application;
FIG. 3 is a high level diagram of an alternative session list according to an embodiment of the present application;
FIG. 4 is a schematic view of a display height of an alternative display screen according to an embodiment of the present application;
FIG. 5 is a first illustration of an alternative target session display according to an embodiment of the present application;
FIG. 6 is a second illustration of an alternative target session display according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an alternative list of selected partial sessions according to an embodiment of the present application;
FIG. 8 is a diagram illustrating an alternative retrieval session list according to an embodiment of the present application;
FIG. 9 is an alternative session display diagram according to an embodiment of the present application;
FIG. 10 is a block diagram of an alternative apparatus for determining test results according to embodiments of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are 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.
According to an aspect of the embodiments of the present application, a method for displaying a session record is provided. The display method of the session record is widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent House (Intelligent House) ecology and the like. Fig. 1 is a schematic diagram of a hardware environment of an alternative session record display method according to an embodiment of the present application. Alternatively, in this embodiment, the above-described display method of the session record may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for determining a test result is provided, and fig. 2 is a flowchart of an optional method for displaying a session record according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S202, obtaining a session list, wherein a plurality of sessions are recorded in the session list;
step S204, determining a target conversation displayed in the display screen according to a list height of the conversation list and a display height of the display screen, wherein the list height is the heights of the plurality of conversations in the conversation list, and the display height is the maximum display height of the display screen;
step S206, the target session displayed in the display screen.
In the above embodiment, all the sessions in the interaction between the user and the smart home are recorded in the session list, the session content includes the questions initiated by the user to the AI assistant installed in the smart home and the answers to the questions returned by the AI assistant, and it should be noted that one question may correspond to one or more answers of the AI assistant.
Optionally, the AI assistant receives a voice question initiated by the user or a manually input question, an SDK (software development kit) in the AI assistant parses the question after receiving the question, and sends the parsed question to the AI assistant background for semantic parsing, and the AI assistant background matches a related execution result according to the result of the semantic parsing, that is, an answer to the user question. The AI backend records the questions and answers in a conversation list and sends the conversation list to a display screen where the conversation is displayed.
The height of the session list is the height required by all the sessions described in the session list to display all the sessions in the session list under a preset condition, wherein the preset condition can be the space between each session and the type of the session bubble.
Optionally, the height of the list of the session list is calculated by the height of each session bubble and a preset distance between bubbles, where the height of each session bubble is determined by the number of session contents and the type of the bubble of each session.
Fig. 3 is a schematic diagram of a list height of an alternative session list according to an embodiment of the present application, where fig. 3 (a) shows the list height when there are fewer sessions described in the session list, fig. 3 (b) shows the list height when there are more sessions described in the session list, and fig. 3 (c) shows the list height of the session list when the session bubble is different when the session content is the same as that in fig. 3 (a). As shown in fig. 3 (a), h1 represents the height of the session bubble, the height corresponding to each session bubble is the same or different, h2 represents the preset distance between bubbles, the distance between every two bubbles is the same, and h represents the list height of the session list.
The display height of the display screen is the maximum display height of the display screen, i.e. the height of all areas of the display screen that can be used to display a conversation. Optionally, the display screen includes a maximum area of the display session, a head status bar area, and a bottom toolbar area, and the display height of the display screen may be obtained by subtracting the heights of the head status bar area and the bottom toolbar area from the height of the entire screen.
Fig. 4 is a schematic diagram of display heights of an alternative display screen according to an embodiment of the present application, as shown in fig. 4, a region 401 is a head status bar region, a1 indicates a height of the head status bar region, a region 402 is a bottom toolbar region, a2 indicates a height of a bottom toolbar region of a meeting region, 403 is a maximum region of a display session, a3 indicates a height of the maximum region of the display session, that is, a display height of the display screen, the region 401, the region 402, and the region 403 constitute the entire display screen, a indicates a height of the entire display screen, and the display height of the display screen can be obtained by subtracting the heights of the head status bar region and the bottom toolbar region from the height of the entire screen, that is, a3= a-a1-a2.
And determining the target session displayed in the display screen according to the height of the session list and the display height of the display screen, and displaying the target session in the display screen.
In an exemplary embodiment, the determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen includes: determining each session in the list of sessions as the target session if the list height is less than or equal to the display height.
In this embodiment, in the case that the height of the list is less than or equal to the display height, all the sessions in the session list may be displayed in the display screen, and each session in the session list may be determined as a target session and displayed in the display screen.
Optionally, when the height of the list is smaller than the display height, and the target session is displayed in the display screen, the target session is displayed in the session frame, the height of the session frame is consistent with the height of the list, and the session frame is adsorbed at the bottom of the screen.
Fig. 5 is a schematic diagram illustrating an alternative target session display according to an embodiment of the present application, where as shown in fig. 5, in a case where the height of the list is smaller than the display height, the target session is displayed in a session box 504, the session box 504 occupies only a part of the display area in the display screen, the height of the session box is a4, and a4 is smaller than the height a3 of the maximum area of the display session.
And under the condition that the height of the list is equal to the display height, when the target conversation is displayed in the display screen, the target conversation is displayed in a conversation frame, the height of the conversation frame is consistent with the height of the list or the display height, and the conversation frame is adsorbed at the bottom of the screen.
Fig. 6 is a schematic diagram illustrating an alternative target session display according to an embodiment of the present application, where as shown in fig. 6, in a case where the height of the list is equal to the display height, the target session is displayed in a session frame 604, the session frame 604 occupies the entire area of the display area in the display screen, the height of the session frame is a5, and a5 is equal to the height a3 of the maximum area of the display session.
In an exemplary embodiment, the target session displayed in the display screen includes: and displaying the target session in the display screen according to the recording time of each session in the session list, wherein the session in the session list, the closer the recording time is to the current time, is closer to the bottom of the display screen, and the session list is set to be prohibited from being slid in the display screen.
In this embodiment, after the target session is determined, the display order of the target session in the session frame is determined according to the recording time of each session in the target session, where the current time may be the real time displayed in the status bar in the display screen, and the closer the session recording time is to the current time, the newer the received corresponding session is, the latest received session is displayed at the bottom, and the session with the receiving time farther from the current time is farther from the bottom in the display screen.
In an exemplary embodiment, determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen includes: when the list height is larger than the display height, acquiring a partial session list of the display height in the session list according to the recording time of the session records recorded in the session list, wherein a first time interval is the longest time interval between the recording time and the current time interval in the partial session list, a second time interval is the shortest time interval between the recording time and the current time interval in a residual session list, the first time interval is smaller than or equal to the second time interval, and sessions in the session list except for the partial session list are recorded in the residual session list; determining each session in the partial session list as the target session.
In this embodiment, in the case that the height of the session list is greater than the display height, all the sessions in the session list cannot be simultaneously displayed in the display screen, and therefore, each session in a part of the session list in the selected session list is determined as a target session, and the target session is displayed in the display screen.
All sessions in the partial session list selected in the session list are recorded as the latest recorded session in the session list, i.e. the recording time of all sessions in the partial session list is after the recording time of any session in the remaining session list. The session corresponding to the time interval with the longest recording time and the longest current time interval in the partial session list is the earliest recorded session in the partial session list, the session corresponding to the time interval with the shortest recording time and the shortest current time interval in the remaining session list is the latest recorded session in the remaining session list, and the first time interval is smaller than or equal to the second time interval and represents that the earliest recorded session in the partial session list is the latest recorded session in the remaining session list, namely the recording time of all sessions in the partial session list is after the recording time of any session in the remaining session list.
It should be noted that the height of the partial session list is less than or equal to the display height, and the height of the session frame for displaying the target session is consistent with the height of the partial session list.
Fig. 7 is a schematic diagram of an alternative selected partial session list according to an embodiment of the present application, and as shown in fig. 7, it is assumed that the current time is the real time 10 displayed in the status bar: 00, 8 sessions are recorded in the session list, and the height of the session list is greater than the display height, so that the session in the selected partial session list is determined as the target session, the time interval between the session recording time and the current time interval in the selected partial session list in fig. 7 is 10 minutes (session 3 and the current time interval), and the time interval between the session recording time and the current time interval in the remaining session list is 20 minutes (session 4 and the current time interval), so that sessions 4 to 8 are selected as the target sessions, and the height of the selected partial session list is less than or equal to the display height.
In an exemplary embodiment, the target session displayed in the display screen includes: and displaying the target session in the display screen according to the recording time of each session in the partial session list, wherein the session in the partial session list, which is closer to the current time in the recording time, is closer to the bottom of the display screen, and the session list is set to be allowed to be slid in the display screen.
In one exemplary embodiment, after the target session displayed in the display screen, the method further includes: and in the case that the sliding operation on the display screen is acquired, displaying the sessions in the remaining session list on the display screen.
In this embodiment, since all the sessions in the session list cannot be displayed simultaneously in the display screen and only a part of the sessions in the session list can be displayed in the display screen, the session list is set to be allowed to be slid in the display screen, and when a sliding operation is performed in the display screen, the session list is slid, so that session records that are not originally displayed in the display screen can be viewed.
In an exemplary embodiment, the obtaining the session list includes: under the condition of acquiring a newly added session, recording the newly added session at the head position of an initial session list; and reversing the initial session list to obtain the session list, so that the head position of the initial session list corresponds to the bottom of the display screen.
In this embodiment, when adding a new session record, the new session record is recorded at the head of the initial session list, so that the head of the initial session list is the latest received session record, the initial session list is inverted to obtain a session list, and then the latest received session record in the session list is recorded at the bottom of the session record, where the bottom of the session list corresponds to the bottom of the display screen, that is, the head position of the last initial session list corresponds to the bottom of the display screen.
When receiving a new session record, recording the new session record at the head of the initial session list, and after reversing the initial session list, enabling the head of the initial session list to correspond to the bottom of the display screen, namely displaying the session record of the new session at the bottom of the display screen.
Fig. 8 is a schematic diagram of an alternative session list acquisition according to an embodiment of the present application, and as shown in fig. 8, a latest session record is added in a header of an initial session list: and a session 3, which is obtained by inverting the initial session list to obtain a session list, displaying the session records in the session list in a display screen, and displaying the newly added session record 3 at the bottom of the display screen.
The present invention is specifically illustrated below with reference to examples:
fig. 9 is a schematic diagram of an optional session display according to an embodiment of the present application, where as shown in fig. 9, a user sends a question to a background (server) or an SDK through a voice question or a manual question input, the SDK analyzes the question to a user intention, the AI background performs semantic analysis on the question, matches the question with a relevant execution result according to semantics, and sends the result to a smart home or an APP, the smart home enters an initial session list after receiving a session record, and reverses the initial session list to reverse the session order to obtain a session list, so that the head of the initial session list is displayed at the bottom of a screen, and a latest record is inserted into the head of a data set each time and is correspondingly displayed at the head of the initial session list, that is, at the bottom of the screen. Determining the height of the displayed conversation list in the display screen according to the height of the conversation list, wherein when the height of the conversation list does not reach the maximum available height, the height of the displayed conversation list is the height of wrapping the conversations in the current conversation list, and the displayed conversation list is set to be incapable of scrolling.
When a user issues questions for multiple times, the questions are sent to a background (server) or an SDK (software development kit), the SDK analyzes the intentions of the user, an AI background performs semantic analysis on the questions, the questions are matched with relevant execution results according to semantics and issues the results to an intelligent home or an APP, the intelligent home enters an initial session list after receiving newly-added session records, the initial session list is inverted to invert the session sequence to obtain a session list, the head of the initial session list is displayed at the bottom of a screen, the newly-added session records are inserted into the head of a data set and correspondingly displayed at the head of the initial session list, namely the bottom of the screen, and the newly-added data are guaranteed to be displayed to the latest record every time.
Optionally, the maximum available height is adapted to the heights of the different model safety zones (bottom tool bars) and status bars. The maximum height of a display screen can be influenced when the keyboard is switched, when the operation of switching the keyboard and the like influencing the height of the conversation list is detected, the keyboard display state is judged to obtain the height of the keyboard, the maximum available height of the conversation list is dynamically set according to the height of the keyboard, and the latest conversation record is always displayed at the bottom of the conversation list when the conversation list is displayed.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for displaying a session record is further provided, and fig. 10 is a block diagram of a structure of an optional device for determining a test result according to an embodiment of the present application, as shown in fig. 10, the device includes:
an obtaining unit 1002, configured to obtain a session list, where a plurality of sessions are recorded in the session list;
a determining unit 1004 configured to determine a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is a height of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen;
a display unit 1006, configured to display the target session in the display screen.
In an optional embodiment, the apparatus is further configured to determine each session in the session list as the target session if the height of the list is less than or equal to the display height.
In an optional embodiment, the apparatus is further configured to display the target session in the display screen according to the recording time of each session in the session list, where a session in the session list with a recording time closer to the current time is closer to the bottom of the display screen, and the session list is set to be prohibited from being slid in the display screen.
In an optional embodiment, the above apparatus is further configured to, in a case that the height of the list is greater than the display height, obtain, in the session list, a partial session list of the display height according to the recording times of the plurality of session records recorded in the session list, where a first time interval is a time interval between a recording time in the partial session list and a current time interval, and a second time interval is a time interval between a recording time in a remaining session list and a current time interval, where the first time interval is smaller than or equal to the second time interval, and sessions in the session list other than the partial session list are recorded in the remaining session list; determining each session in the partial session list as the target session.
In an optional embodiment, the apparatus is further configured to display the target session in the display screen according to the recording time of each session in the partial session list, where a session in the partial session list, which is recorded at a time closer to the current time, is closer to the bottom of the display screen, and the session list is set to be allowed to be slid in the display screen.
In an optional embodiment, the apparatus is further configured to display the sessions in the remaining session list on the display screen after the target session displayed on the display screen is acquired and in a case where a sliding operation on the display screen is acquired.
In an optional embodiment, the apparatus is further configured to record, in a case where a new session is obtained, the new session at a head position of the initial session list; and reversing the initial session list to obtain the session list, so that the head position of the initial session list corresponds to the bottom of the display screen.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for displaying a session record, comprising:
acquiring a session list, wherein a plurality of sessions are recorded in the session list;
determining a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is heights of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen;
the target session displayed in the display screen.
2. The method of claim 1, wherein determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen comprises:
determining each session in the list of sessions as the target session if the list height is less than or equal to the display height.
3. The method of claim 2, wherein the target session displayed in the display screen comprises:
and displaying the target session in the display screen according to the recording time of each session in the session list, wherein the session in the session list with the recording time closer to the current time is closer to the bottom of the display screen, and the session list is set to be prohibited from being slid in the display screen.
4. The method of claim 1, wherein determining the target session displayed in the display screen according to the list height of the session list and the display height of the display screen comprises:
under the condition that the list height is larger than the display height, acquiring a partial session list of the display height from the session list according to the recording time of the session records recorded in the session list, wherein a first time interval is the time interval between the recording time in the partial session list and the current time interval, a second time interval is the time interval between the recording time in a residual session list and the current time interval, the first time interval is smaller than or equal to the second time interval, and the sessions in the session list except the partial session list are recorded in the residual session list;
determining each session in the partial session list as the target session.
5. The method of claim 4, wherein the target session displayed in the display screen comprises:
and displaying the target session in the display screen according to the recording time of each session in the partial session list, wherein the session in the partial session list, which is closer to the current time in the recording time, is closer to the bottom of the display screen, and the session list is set to be allowed to be slid in the display screen.
6. The method of claim 5, wherein after the target session displayed in the display screen, the method further comprises:
and in the case that the sliding operation on the display screen is acquired, displaying the sessions in the remaining session list on the display screen.
7. The method according to any of claims 1 to 6, wherein the obtaining of the session list comprises:
under the condition of acquiring a newly added session, recording the newly added session at the head position of an initial session list;
and reversing the initial conversation list to obtain the conversation list, so that the head position of the initial conversation list corresponds to the bottom of the display screen.
8. A display device for session records, comprising:
an acquisition unit configured to acquire a session list in which a plurality of sessions are recorded;
a determination unit configured to determine a target session displayed in a display screen according to a list height of the session list and a display height of the display screen, wherein the list height is a height of the plurality of sessions in the session list, and the display height is a maximum display height of the display screen;
a display unit for displaying the target session in the display screen.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any 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 execute the method of any of claims 1 to 7 by means of the computer program.
CN202210571473.1A 2022-05-24 2022-05-24 Session record display method and device, storage medium and electronic device Active CN115174290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210571473.1A CN115174290B (en) 2022-05-24 2022-05-24 Session record display method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210571473.1A CN115174290B (en) 2022-05-24 2022-05-24 Session record display method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115174290A true CN115174290A (en) 2022-10-11
CN115174290B CN115174290B (en) 2024-03-22

Family

ID=83484157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210571473.1A Active CN115174290B (en) 2022-05-24 2022-05-24 Session record display method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115174290B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076950A (en) * 2012-12-25 2013-05-01 北京百度网讯科技有限公司 Managing method for session threading list
CN105426050A (en) * 2015-11-25 2016-03-23 小米科技有限责任公司 Message processing method and device
WO2017008569A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Message updating method, apparatus, and terminal
CN106657669A (en) * 2017-01-13 2017-05-10 北京奇虎科技有限公司 Mobile terminal information session interaction control method and device, and mobile terminal
CN112087364A (en) * 2019-06-13 2020-12-15 腾讯科技(深圳)有限公司 Session list display method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103076950A (en) * 2012-12-25 2013-05-01 北京百度网讯科技有限公司 Managing method for session threading list
WO2017008569A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Message updating method, apparatus, and terminal
CN105426050A (en) * 2015-11-25 2016-03-23 小米科技有限责任公司 Message processing method and device
CN106657669A (en) * 2017-01-13 2017-05-10 北京奇虎科技有限公司 Mobile terminal information session interaction control method and device, and mobile terminal
CN112087364A (en) * 2019-06-13 2020-12-15 腾讯科技(深圳)有限公司 Session list display method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
毛昊;: "一种服务于Android移动设备的自适应滚屏技术", 软件, no. 03, pages 153 - 157 *

Also Published As

Publication number Publication date
CN115174290B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN106998486A (en) Video broadcasting method and device
CN115358395A (en) Knowledge graph updating method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN115174290A (en) Session record display method and device, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115714810A (en) Method and device for sending push message, storage medium and electronic device
CN116027937A (en) Rendering method and device of component to be edited, storage medium and electronic device
CN114861678A (en) Method and apparatus for determining time information, storage medium, and electronic apparatus
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN115631832A (en) Cooking plan determination method and device, storage medium and electronic device
CN114915514A (en) Intention processing method and device, storage medium and electronic device
CN115237514A (en) Message card display method and device, storage medium and electronic device
CN115733879A (en) Target page pushing method and device, storage medium and electronic device
CN116301511A (en) Equipment interaction method and device, storage medium and electronic device
CN115482013A (en) Product warranty processing method, storage medium and electronic device
CN116540557A (en) Audiovisual combined intelligent household appliance terminal control method, device and storage medium
CN106934655A (en) Advertisement sending method and device based on user feedback
CN115357446A (en) Device testing method and device, storage medium and electronic device
CN114860767A (en) Remaining quality guarantee duration prompting method and device, storage medium and electronic device
CN115687349A (en) Database table generation method and device, storage medium and electronic device
CN115497453A (en) Identification model evaluation method and device, storage medium and electronic device
CN115481317A (en) Recommendation method for workbench scene, storage medium and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN114995726A (en) Method and device for determining interaction mode, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference 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