CN109634688B - Session interface display method, device, terminal and storage medium - Google Patents

Session interface display method, device, terminal and storage medium Download PDF

Info

Publication number
CN109634688B
CN109634688B CN201811556524.3A CN201811556524A CN109634688B CN 109634688 B CN109634688 B CN 109634688B CN 201811556524 A CN201811556524 A CN 201811556524A CN 109634688 B CN109634688 B CN 109634688B
Authority
CN
China
Prior art keywords
display
area
function controls
controls
target
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
CN201811556524.3A
Other languages
Chinese (zh)
Other versions
CN109634688A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201811556524.3A priority Critical patent/CN109634688B/en
Publication of CN109634688A publication Critical patent/CN109634688A/en
Application granted granted Critical
Publication of CN109634688B publication Critical patent/CN109634688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a display method, a display device, a terminal and a storage medium of a session interface, and belongs to the technical field of network communication. According to the technical scheme, the input box can be triggered by the user, the target function controls displayed on the session interface are hidden, the user does not need to see the target function controls when inputting characters in the input box, the simplicity of the session interface is improved, the target function controls are displayed on the session interface, the user can directly click the target function controls to acquire information which the user wants to publish, operation steps of the user are reduced, and the user can publish the information in the session interface more quickly.

Description

Session interface display method, device, terminal and storage medium
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a method and an apparatus for displaying a session interface, a terminal, and a storage medium.
Background
With the development of network communication technology, more and more social applications are appeared, and information interaction among users can be carried out based on the social applications. For example, the terminal may display a conversation interface corresponding to the social application, and the user may post information in the conversation interface displayed by the terminal.
At present, the display method of the common session interface may be as follows: when a user opens a conversation interface of a social application, the conversation interface may display a fixed input box and fixed voice controls by default. In addition, an expandable control can be arranged in the preset range of the input box, when the triggering operation of the expandable control is detected, the session interface can display a secondary input page, and the secondary input page can display a plurality of fixed function controls.
Based on the display method of the session interface, the input frame and the voice control displayed by the session interface are fixed, and the user needs to click the secondary input page each time needing to publish information except for characters and voice, so that the user operation is complicated, and the display method of the session interface is not flexible enough.
Disclosure of Invention
In order to solve the problems that an input box and a function control in a session interface are fixedly displayed and user operation is complicated in the related art, the disclosure provides a display method, a display device, a display terminal and a storage medium of the session interface.
According to a first aspect of the embodiments of the present disclosure, a method for displaying a session interface is provided, including:
displaying a conversation interface, wherein the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
hiding the target function controls when the triggering operation of the input box is detected;
displaying a first expandable control and the input box based on original display areas of the target function controls, wherein the first expandable control is used for triggering display of the target function controls;
and when the triggering operation of the first extensible control is detected, restoring the display of the target function controls in a function bar of the session interface.
In one possible design, the displaying a first expandable control and the input box based on the original display areas of the plurality of target functionality controls includes:
displaying the first extensible control in a first sub-area of original display areas of the plurality of target function controls;
stretching the length of the input frame;
and displaying the stretched input box in the second sub-area of the original display areas of the target function controls and the original display area of the input box.
In one possible design, the displaying a first expandable control and the input box based on the original display areas of the plurality of target functionality controls includes:
displaying the first extensible control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
In one possible design, the displaying a conversation interface, the conversation interface including a conversation display area and a ribbon, the ribbon displaying at least an input box and a plurality of target functionality controls includes:
acquiring the use frequency of each function control;
determining a plurality of target function controls to be displayed based on the use frequency of each function control, wherein the use frequency of each target function control meets a preset condition;
and displaying a session display area in a preset area of the session interface, and displaying the target function controls and the input boxes in a function bar of the session interface.
In one possible design, the displaying the plurality of target functionality controls and input boxes in a ribbon of the conversation interface includes:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
displaying the input box in a second area of a function bar of the conversation interface.
In one possible design, the frequency of use of each target functionality control meeting the preset condition includes:
the frequency of use of each target function control is greater than a frequency threshold.
In one possible design, the frequency of use of each target functionality control meeting the preset condition includes:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
In one possible design, after the displaying the conversation interface, the method further includes:
when the triggering operation of a second extensible control of the function bar is detected, displaying a plurality of function controls and the input box in a third area of the session interface, wherein the plurality of function controls comprise a plurality of target function controls.
In one possible design, displaying a plurality of functionality controls and the input box in a third area of the conversation interface includes:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
In one possible design, displaying a plurality of functionality controls and the input box in a third area of the conversation interface includes:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in a sub-area of the third area.
According to a second aspect of the embodiments of the present disclosure, there is provided a display device of a conversation interface, including:
the display device comprises a first display unit, a second display unit and a display unit, wherein the first display unit is configured to display a conversation interface, the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
a hiding unit configured to hide the plurality of target function controls when a trigger operation on the input frame is detected;
the second display unit is configured to display a first expandable control and the input box based on original display areas of the target function controls, wherein the first expandable control is used for triggering display of the target function controls;
a restoring unit configured to restore display of the plurality of target functionality controls in a function bar of the session interface when a triggering operation on the first extensible control is detected.
In one possible design, the second display unit is configured to:
displaying the first extensible control in a first sub-area of original display areas of the plurality of target function controls;
stretching the length of the input frame;
and displaying the stretched input box in the second sub-area of the original display areas of the target function controls and the original display area of the input box.
In one possible design, the second display unit is configured to:
displaying the first extensible control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
In one possible design, the first display unit is configured to:
the obtaining subunit is configured to obtain the use frequency of each function control of the session interface;
the determining subunit is configured to determine a plurality of target function controls to be displayed based on the use frequency of each function control, and the use frequency of each target function control meets a preset condition;
the display subunit is configured to display a session display area in a preset area of the session interface, and display the target function controls and the input box in a function bar of the session interface.
In one possible design, the display subunit is configured to:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
displaying the input box in a second area of a function bar of the conversation interface.
In one possible design, the frequency of use of each target functionality control meeting the preset condition includes:
the frequency of use of each target function control is greater than a frequency threshold.
In one possible design, the frequency of use of each target functionality control meeting the preset condition includes:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
In one possible design, the apparatus further includes:
a third display unit configured to display a plurality of function controls and the input box in a third area of the session interface when a trigger operation on a second expandable control of the function bar is detected, wherein the plurality of function controls include the plurality of target function controls.
In one possible design, the third display unit is configured to:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
In one possible design, the third display unit is configured to:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in a sub-area of the third area.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying a conversation interface, wherein the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
hiding the target function controls when the triggering operation of the input box is detected;
displaying a first expandable control and the input box based on original display areas of the target function controls, wherein the first expandable control is used for triggering display of the target function controls;
and when the triggering operation of the first extensible control is detected, restoring the display of the target function controls in a function bar of the session interface.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions stored thereon, which when executed by a processor of a terminal, enable the terminal to perform a method of displaying a conversation interface, the method including:
displaying a conversation interface, wherein the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
hiding the target function controls when the triggering operation of the input box is detected;
displaying a first expandable control and the input box based on original display areas of the target function controls, wherein the first expandable control is used for triggering display of the target function controls;
and when the triggering operation of the first extensible control is detected, restoring the display of the target function controls in a function bar of the session interface.
According to a fifth aspect of embodiments of the present disclosure, there is provided an application program comprising one or more instructions which, when executed by a processor of a terminal, enable the terminal to perform a method of displaying a session interface, the method comprising:
displaying a conversation interface, wherein the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
hiding the target function controls when the triggering operation of the input box is detected;
displaying a first expandable control and the input box based on original display areas of the target function controls, wherein the first expandable control is used for triggering display of the target function controls;
and when the triggering operation of the first extensible control is detected, restoring the display of the target function controls in a function bar of the session interface.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method and the device, the input box is triggered by the user, the target function controls displayed on the session interface are hidden, so that the user does not need to see the target function controls when inputting characters in the input box, the simplicity of the session interface is improved, the target function controls are displayed on the session interface, the user can directly click the target function controls to acquire information which the user wants to publish, the operation steps of the user are reduced, and the user can publish the information in the session interface more quickly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method of displaying a conversation interface according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method of displaying a conversation interface in accordance with an exemplary embodiment.
FIG. 3 is an illustration of a conversation interface, in accordance with an exemplary embodiment.
FIG. 4 is an illustration of a conversation interface, in accordance with an exemplary embodiment.
FIG. 5 is an illustration of a conversation interface, in accordance with an exemplary embodiment.
FIG. 6 is an illustration of a conversation interface, in accordance with an exemplary embodiment.
FIG. 7 is an illustration of a conversation interface, in accordance with an exemplary embodiment.
FIG. 8 is a block diagram of a display device showing a conversation interface in accordance with an exemplary embodiment.
Fig. 9 is a block diagram illustrating a structure of a terminal 900 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a display method of a conversation interface according to an exemplary embodiment, as shown in fig. 1, including the following steps.
In step 101, a session interface is displayed, the session interface including a session display area and a ribbon, the ribbon displaying at least an input box and a plurality of target functionality controls.
In step 102, when the triggering operation of the input box is detected, the plurality of target function controls are hidden.
In step 103, based on the original display areas of the target function controls, a first expandable control and the input box are displayed, where the first expandable control is used to trigger the display of the target function controls.
In step 104, when the triggering operation on the first extensible control is detected, the display of the target function controls is resumed in the function bar of the session interface.
In some embodiments, the displaying the first expandable control and the input box based on the original display areas of the plurality of target functionality controls comprises:
displaying the first extensible control in a first sub-area of the original display areas of the target function controls;
stretching the length of the input frame;
and displaying the stretched input box in the second sub-area of the original display areas of the target function controls and the original display area of the input box.
In some embodiments, the displaying the first expandable control and the input box based on the original display areas of the plurality of target functionality controls comprises:
displaying the first expandable control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
In some embodiments, the displaying a conversation interface, the conversation interface including a conversation display area and a ribbon with at least an input box and a plurality of target functionality controls displayed includes:
acquiring the use frequency of each function control;
determining a plurality of target function controls to be displayed based on the use frequency of each function control, wherein the use frequency of each target function control meets a preset condition;
and displaying a session display area in a preset area of the session interface, and displaying the target function controls and the input boxes in a function bar of the session interface.
In some embodiments, the displaying the plurality of target functionality controls and input boxes in the ribbon of the conversation interface comprises:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
in a second region of the function bar of the conversation interface, the input box is displayed.
In some embodiments, the using frequency of each target functionality control meeting the preset condition includes:
the frequency of use of each target functionality control is greater than a frequency threshold.
In some embodiments, the using frequency of each target functionality control meeting the preset condition includes:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
In some embodiments, after the displaying the conversation interface, the method further comprises:
when the triggering operation of the second extensible control of the function bar is detected, displaying a plurality of function controls and the input box in a third area of the conversation interface, wherein the plurality of function controls comprise the plurality of target function controls.
In some embodiments, displaying a plurality of functionality controls and the input box in a third region of the conversation interface includes:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
In some embodiments, displaying a plurality of functionality controls and the input box in a third region of the conversation interface includes:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in the sub-area of the third area.
Fig. 2 is a flowchart illustrating a display method of a conversation interface according to an exemplary embodiment, as shown in fig. 2, including the steps of:
in step 200, the terminal obtains a session interface display request, where the session interface display request carries the user identifier and the social application identifier.
In the embodiment of the disclosure, the terminal may have a social application thereon, and the social application may provide a session function, such as a personal session function or a multi-person session function, based on which the user of the terminal may perform information interaction with other users. The session interface display request is used for indicating to acquire information related to the session interface so as to display the session interface on the terminal. When the terminal detects a trigger operation on any session of the social application, the terminal can be triggered to acquire the session interface display request. For example, when the terminal detects a trigger operation on any one person in the session list of the social application, the terminal may be triggered to acquire the session interface display request.
In step 201, the terminal obtains the frequency of use of each function control of the session interface.
In the embodiment of the present disclosure, the session interface is an interface corresponding to any session function, and the session interface is used for specific information interaction between the user and the user, for example, the user may publish information such as text, pictures, voice, and files in the session interface. As shown in fig. 3, the session interface may include a session display area 301 and a function bar 302, wherein the session display area 301 is used for displaying the latest chat information, the session display area is a main body part of the session interface, and the function bar 302 displays at least an input box and a plurality of target function controls. The input box is used for a user to input text information, and the target function controls are function controls which can be directly seen in the function bar 302 when the user opens the session interface. Each function control is all the function controls which can be acquired from the session interface by the user, and each function control can be associated with the corresponding function interface and is used for the user to publish information in other forms in the session interface. For example, the user may call a gallery of the terminal through a picture control, and have selected a corresponding picture to send to the session interface. The usage frequency is the number of times that the user uses the corresponding function control in a preset period, and the usage frequency can represent the preference degree of the user for the function control.
For example, the process of the terminal acquiring the use frequency of each function control of the session interface may be as follows: and the terminal acquires the use frequency of each function control in a preset time period corresponding to the user identification from the server based on the session interface display request. Specifically, the terminal may send the session interface display request to the server, and after receiving the session interface display request, the server may obtain the user database associated with the user identifier according to the user identifier carried in the session interface display request. Furthermore, the server may obtain, from the user database, a historical session record associated with the social application identifier according to the social application identifier carried by the session interface display request. Based on the historical session record, the server may obtain a usage time point of each function control corresponding to the session interface from the user using the social application. Based on the use time point of each function control, the server may obtain the use frequency of each function control within a preset time period, where the preset time period is a time period with the current time point as an end point. And then, the server can send the obtained use frequency of each function control to the terminal.
For example, the server may determine a usage time point of each of the functionality controls by the user in the last week, where each usage time point represents that the user used the functionality control once, and the server may obtain the usage frequency of each of the functionality controls by the user in the last week.
The terminal can determine that the function control with higher use frequency is directly displayed on the session interface by acquiring the use frequency of each function control, so that the function control directly displayed on the session interface can better accord with the recent use habit of the user, and the use hit rate of the user on the function control is improved.
The specific process of the server recording the use frequency of each function control can be as follows: the terminal can trigger a frequency recording instruction and send the frequency recording instruction to the server when detecting that the user uses one function control of the session interface, wherein the frequency recording instruction can carry a user identifier, a function control identifier, a social application identifier corresponding to the session interface and a time point for using the function control, and the server can correspondingly store the time point and the function control identifier in a historical session record of the user associated with the social application identifier, namely, the terminal represents the user to use the function control once.
It should be noted that, the above is described by taking an example that the terminal acquires the use frequency of each function control of the current session interface in real time, in other embodiments, the server may further perform statistics on the use frequency of each function control of all session interfaces corresponding to the social application, and the terminal may acquire the statistical use frequency of each function control of all session interfaces, which is not limited herein.
In step 202, the terminal determines a plurality of target function controls to be displayed based on the usage frequency of each function control, wherein the usage frequency of each target function control is greater than a frequency threshold.
In the embodiment of the present disclosure, the target function controls to be displayed are function controls whose usage frequency satisfies a preset condition. The preset condition may be that the frequency of use is greater than a threshold; alternatively, the preset condition may be that the usage frequency is located at a top preset digit of the usage frequency ranking of each function control.
The following describes a specific process of determining a plurality of target function controls to be displayed by the terminal, taking the preset condition as an example that the frequency of use is greater than the threshold: the terminal can compare the obtained use frequency of each function control with a frequency threshold set by the terminal in sequence, and the terminal can determine all function controls corresponding to the use frequency greater than the frequency threshold as target function controls to be displayed. For example, if the terminal acquires 4 function controls whose usage frequency is greater than the frequency threshold, the terminal may determine the 4 function controls as target function controls to be displayed. The frequency threshold may be any value set by the terminal, for example, the frequency threshold may be 20, and a frequency of use of one function control greater than the frequency threshold may indicate that a frequency of use of the one function control by the user is high.
Further, the terminal may also set the maximum number of the target function controls to be displayed. When the number of all the function controls acquired by the terminal and larger than the frequency threshold is smaller than the maximum number, the terminal can determine that all the function controls are the target function controls to be displayed; when the number of all the function controls acquired by the terminal and larger than the frequency threshold is larger than the maximum number, the terminal may determine the function controls with the maximum number from all the function controls according to a preset rule, and use the function controls with the maximum number as the target function controls to be displayed. For example, the terminal may randomly select the maximum number of function controls from all the function controls as the target function control to be displayed. Of course, the terminal may also determine the target function control to be displayed from all the function controls based on other preset rules, which is not limited herein in the embodiment of the present disclosure.
Of course, the preset condition may also be that the usage frequency is located at the top N bits of the usage frequency ranking of each function control. Specifically, the terminal may sequence the use frequency of each function control in a descending order, and the terminal may determine the function control corresponding to the use frequency of the top N bits as the plurality of target function controls to be displayed. Wherein, N may be any positive integer set by the terminal. In other embodiments, the terminal may further determine the target function controls to be displayed according to other preset conditions, which is not specifically limited herein in the embodiments of the present disclosure.
In the process, the terminal determines that the plurality of target function controls to be displayed are all the function controls most possibly selected by the user based on the use frequency of each function control, and the terminal can display the session interface based on the plurality of target function controls to be displayed, so that the experience of the user on the session interface can be greatly improved.
In step 203, the terminal sequentially displays the target function controls in the first area 303 of the function bar 302 of the session interface according to the order of the use frequency of the target function controls from high to low.
In this disclosure, the first area 303 is used to display the target function controls, and the first area 303 is a partial area of the function bar 302 of the session interface, for example, the first area 303 may be a partial area of the left third of the function bar 302, and of course, the first area 303 may also be another area of the function bar 302, which is not limited herein.
For example, the specific process of the terminal displaying the plurality of target function controls in the first region 303 may include the following steps 203A to 203B:
203A, the terminal may determine the display intervals of the target function controls and the display sizes of the target function controls according to the length of the first region 303 and the number of the target function controls.
The length of the first region 303 is a fixed length. The terminal may preferentially adjust the display intervals of the plurality of target function controls, specifically, the terminal may set a minimum display interval, and the terminal may determine, as the display interval, the length of the first region 303 occupied by each two target function controls on average according to the length of the first region 303 and the number of the plurality of target function controls. When the display space is larger than the minimum display space set by the terminal, the following step 203B may be executed; when the display interval is smaller than the minimum display interval set by the terminal, the terminal may adjust the display sizes of the target function controls so that the interval between the plurality of target function controls after the adjustment of the size reaches the minimum display interval, and then execute step 203B described below.
203B, the terminal may draw the plurality of target function controls in the first area 303 according to a preset rule.
Specifically, the terminal may draw the plurality of target function controls in step 203A in the first area 303 sequentially from left to right in the order from the largest use frequency to the smallest use frequency based on the use frequency of each target function control acquired from the server. Of course, the terminal may also draw the target function controls in the first area 303 according to other preset rules, for example, the terminal may also draw the target function controls at any position of the first area 303 at random, which is not limited herein.
In the above-mentioned steps 203A to 203B, the specific process of displaying the plurality of target function controls on the first region 303 is described by taking the length of the first region 303 as a fixed length as an example, in other embodiments, the length of the first region 303 may also be variable, and the terminal may change the length of the first region 303 according to the number of the plurality of target function controls without adjusting the display pitch and the display size of the plurality of target function controls. Of course, the terminal may also change the length of the first region 303, and adjust the display space and the display size of the target function controls, which is not limited herein.
The above-mentioned steps 200 to 203 are processes of displaying a session interface by the terminal, and the processes are described by taking as an example that after the terminal acquires the use frequency of each function control from the server, the terminal sorts the use frequency of each function control, and then determines and displays the plurality of target function controls.
In step 204, the terminal displays the input box in the second area 304 of the function bar 302 of the session interface.
In the embodiment of the present disclosure, the second area 304 is used for displaying the input box, the second area 304 is a partial area of the function bar 302 of the session interface, and the second area 304 and the first area 303 may not overlap, for example, the second area 304 may be a partial area in the middle third of the function bar 302, and of course, the second area 304 may also be other areas of the function bar 302, which is not limited herein. The input box is used for inputting text information by a user, and the user can directly see the input box when opening the session interface.
The length and the position of the input box seen by the session interface may be fixed and unchangeable each time the user opens the session interface, that is, the length of the second area 304 may be fixed and unchangeable, and the terminal may draw the fixed-length input box in the fixed second area 304 each time. Of course, when the length of the first region 303 is variable, the length or position of the input frame may be variable.
The following describes a specific process of displaying the input box in the second area 304 by the terminal, taking the length or position of the input box as an example:
the terminal can set the total length of the first region 303 and the second region 304 to be constant, and the terminal can adjust the length of the second region 304 based on the length of the first region 303, so that the length of the second region 304 is the total length minus the length of the first region 303. The terminal may set an initial length of the input box, and when the length of the second region 304 is greater than the initial length, the terminal may draw the input box of the initial length at a middle position of the second region 304; when the length of the second region 304 is smaller than the initial length, the terminal may adjust the initial length of the input box to a preset length, and the terminal may draw the input box with the preset length at a middle position of the second region 304, where the preset length is smaller than the length of the second region 304. Of course, the terminal may also display the input box at other positions in the second area 304 according to other manners, and the embodiment of the disclosure is not limited herein.
In step 205, when the terminal detects a trigger operation on the input box, hiding the plurality of target function controls.
In the embodiment of the present disclosure, when the terminal detects a user's trigger operation on any position of the second area 304 where the input box is located, the terminal may hide the plurality of target function controls displayed in the first area 303.
When the user clicks the input box, the fact that the user wants to publish the text information in the conversation interface is represented, but not other forms of information corresponding to the target function controls, therefore, the terminal hides the target function controls, a larger space can be provided for display of the input box, the function bar 302 of the conversation interface is simpler, and the visual effect of the user is greatly improved.
In step 206, the terminal displays the first extensible control 401 in a first sub-area of the original display areas of the target function controls.
In this embodiment of the disclosure, as shown in fig. 3, the original display area is the first area 303 in step 203, the first sub-area is a partial area in the first area 303, as shown in fig. 4, the first extensible control 401 is used to trigger the display of the multiple target function controls, and the first extensible control 401 may prompt the user that when the first sub-area is triggered, the terminal may display the multiple target function controls, so as to avoid that the user mistakenly triggers the first sub-area when the user does not need the multiple target function controls.
For example, when the terminal is in the first sub-area, the specific process of displaying the first extensible control 401 may include the following steps 206A to 206B:
206A, the terminal may determine the length of the first sub-region based on the length of the first region 303.
As can be seen from step 203, the length of the first region 303 may be a fixed length or a variable length.
Taking the length of the first region 303 as a first fixed length as an example, the process of the terminal determining the length of the first sub-region may be as follows: the terminal may preset a second fixed length as the length of the first sub-area, wherein the second fixed length is less than or equal to the first fixed length. Of course, the terminal may also determine the length of the first sub-area according to the first fixed length and the number of the target function controls, and specifically, the terminal may preset a ratio of the length of the first sub-area to the first fixed length according to the number of the target function controls. For example, the terminal may set the length of the first sub-area to occupy one third of the first fixed length when the number of target function controls is less than or equal to three, and the terminal may set the length of the first sub-area to occupy one half of the first fixed length when the number of target function controls is greater than three.
In addition, when the length of the first region 303 is a variable length, the terminal may preset a third fixed length as the length of the first sub-region, wherein the third fixed length is smaller than the variable minimum length of the first region 303. Of course, the terminal may also preset that the length of the first sub-region is always one-N times the length of the first region 303, where N is a positive integer. For example, the terminal may preset the length of the first sub-region to be always one third of the length of the first region 303, and when the length of the first region 303 is 3cm, the terminal may determine that the length of the first sub-region is 1 cm; when the length of the first region 303 becomes 4cm, the terminal may determine that the length of the first sub-region is 1.3 cm. Of course, the terminal may also determine the length of the first sub-area in other ways, and the embodiment of the present disclosure is not specifically limited herein.
206B, the terminal may determine the display size and display position of the first expandable control 401 based on the length of the first sub-region.
The display size and the display position may be fixed, and the terminal may obtain a preset display size and a preset display position, for example, the terminal may preset that the display position of the first extensible control 401 is always the middle position of the first sub-region, and the terminal may also preset that the display position of the first extensible control 401 is always the right end of the first sub-region.
The display size may be variable and the display position may be fixed. Specifically, the terminal may preset a display size of the first expandable control 401 according to the length of the first sub-region. The terminal may preset that when the length of the first sub-region is less than or equal to a preset length threshold, the display size of the first expandable control 401 is a first size, and when the length of the first sub-region is greater than the preset length threshold, the display size of the first expandable control 401 is a second size. Wherein the first size may be smaller than the second size. Of course, the terminal may also determine the display size and the display position of the first expandable control 401 in other manners, for example, the display size may be fixed, and the display position may be variable, which is not specifically limited herein.
In addition, the first expandable control 401 may be any shape and any color, and the disclosed embodiments are not limited thereto.
206C, drawing the first extensible control 401 at the display position of the first extensible control 401 corresponding to the first sub-region.
It should be noted that the terminal may also pre-configure parameters such as the display interval, the display size, and the display position of the target function controls, the input box, and the first extensible control 401, and the terminal may directly display the target function controls, the input box, and the first extensible control 401, which are pre-configured with parameters, in the function bar 302 of the session interface.
In step 207, the terminal stretches the input box length.
For example, the specific process of stretching the input box length by the terminal may include the following steps 207A to 207B:
207A, the terminal determines the target length of the input box according to the length of the first sub-region and the initial length of the input box.
The initial length of the input box is the length of the input box that is directly seen by the user when the user opens the session interface, that is, the length of the input box before the target function controls are hidden. The target length of the input box is the length to which the input box can be stretched.
Specifically, based on the length of the first sub-area determined by the terminal in step 206 and the length of the first area 303, the terminal may determine the length of the remaining area except for the first sub-area in the first area 303, the terminal may obtain the sum of the length of the other area and the initial length of the input box, and based on the sum, the terminal may determine the target length of the input box, where the target length may be greater than the initial length and less than or equal to the sum.
207B, the terminal extends the length of the input box to the target length.
In step 208, the terminal displays the stretched input box in the second sub-area of the original display areas of the plurality of target function controls and the original display area of the input box.
In this embodiment, the second sub-region is the rest of the first region 303 except the first sub-region, and the original display region of the input box is the second region 304 of the function bar 302 in step 204, that is, the display region of the input box before the target function controls are hidden.
For example, the specific process of the terminal displaying the stretched input box may include the following steps 208A to 208B:
208A, the terminal may determine the display position of the stretched input box based on the second sub-region and the original display region of the input box.
The terminal may determine, based on the display position of the second sub-region, a position with a preset length from the left end of the second sub-region as a first display position of the left end of the input box, and the terminal may determine, as a second display position of the right end of the input box, a position with a target length from the right side of the first display position, where the target length is the length of the stretched input box. The terminal may use a position between the first display position and the second display position as the display position of the stretched input frame. Of course, the terminal may also determine the display position of the right end of the input box first, and then determine the display position of the left end of the input box, which is not specifically limited herein in this embodiment of the disclosure.
Of course, the terminal may also determine the total display area based on the second sub-area and the original display area of the input frame, and the terminal may preset the display position of the stretched input frame, which is always the middle position of the total display area. In other embodiments, the terminal may also determine the display position of the stretched input box in other manners, and this embodiment of the disclosure is not specifically limited herein.
208B, the terminal may draw a stretched target length input box at the display position.
The above-mentioned steps 206 to 208 are to take the example that the length of the input box can be changed after the terminal hides the target function controls, and the display process of the first extensible control 401 and the input box is explained. Of course, after the terminal hides the target function controls, as shown in fig. 5, the length of the input box may also be unchanged, and the first extensible control 401 may also remain unchanged.
For example, the specific process of the terminal displaying the first expandable control 401 and the input box may further include the following steps (1) to (2):
(1) the terminal displays the first extensible control 401 in the original display areas of the target function controls.
The original display area is also the first area 303 of the target function controls, and the terminal may determine the display size and the display position of the first expandable control 401 according to the length of the first area 303. The process is the same as the process of determining the display size and the display position of the first expandable control 401 based on the length of the first sub-region by the terminal in step 206B, and details are not repeated here in the embodiment of the present disclosure.
(2) And the terminal keeps the display of the input box unchanged in the original display area of the input box.
The foregoing steps 207 to 208 are processes of displaying, by the terminal, the first extensible control 401 and the input box based on the original display areas of the multiple target function controls, in which the terminal may pre-configure the display position and the display size of the first extensible control 401, and the terminal may also adjust the first extensible control 401 and the input box according to changes in the first area 303 and the second area 304, which is not limited herein in the embodiment of the present disclosure.
In step 209, when the terminal detects the triggering operation of the first extensible control 401, the display of the target function controls is resumed in the function bar 302 of the session interface.
In the embodiment of the present disclosure, when the terminal detects the triggering operation on the first extensible control 401, the terminal may trigger a recovery instruction, where the recovery instruction is used to instruct the terminal to recover the plurality of target functionality controls hidden in step 205 in the first area 303 of the ribbon bar 302. The terminal may redraw the target function controls in the first region 303 based on the resume instruction, where the display positions, the display order, the display sizes, and the like of the target function controls displayed in the first region 303 are the same as the display positions, the display order, the display sizes, and the like of the target function controls displayed in the first region 303 in step 203.
In addition, if the function bar 302 displays the stretched input box while the function bar 302 displays the first expandable control 401, the terminal may also resume displaying the input box when the terminal resumes displaying the plurality of target function controls. That is, when the terminal detects the trigger operation on the first expandable control 401, the terminal may display an input box with an initial length in the original display area of the input box of the function bar 302.
In step 210, when the terminal detects a trigger operation on the second expandable control 402 of the ribbon board 302, the terminal hides the target function controls, displays an input box in the ribbon board 302, and displays a plurality of function controls in a sub-area 602 of a third area of the session interface, where the function controls include the target function controls.
In the embodiment of the disclosure, the second expandable control 402 is used to trigger the display of the plurality of function controls by the terminal, and the second expandable control 402 may be displayed at any position of the function bar 302, for example, the second expandable control 402 may be displayed in a region in a quarter of the right end of the function bar 302. As shown in fig. 6, the third area 601 is a partial area of the session interface, and the third area 601 includes the ribbon 302 and a sub-area 602 of the third area, where the sub-area 602 of the third area is an area formed by raising the ribbon 302 by a preset height, and the plurality of function controls are all function controls developed by the social application.
In one embodiment, as shown in fig. 6, when the terminal is in the scenario involved in step 205 to step 208, the user may perform a trigger operation on the second extensible control 402 of the function bar 302. In this scenario, when the terminal detects the trigger operation on the second extensible control 402, the terminal may keep the hidden states of the multiple target function controls in step 205 unchanged, and the terminal may keep the state of the input box in step 208 unchanged, where the state of the input box may be a stretched state or an initial state. Further, the terminal can display the plurality of function controls in the sub-area 602 of the third area.
For example, the process of the terminal displaying the plurality of function controls in the sub-area 602 of the third area may be as follows: the terminal may obtain the ranking of the use frequency of the plurality of function controls from large to small, and the terminal may sequentially display the plurality of function controls from the top of the sub-area 602 of the third area according to the ranking of the use frequency from large to small. The terminal can pre-configure parameters such as the display size, the display interval, the display position and the like of the plurality of function controls.
In an embodiment, as shown in fig. 7, when the terminal is in the scenario related to step 209, that is, in the scenario where the target function controls of the ribbon bar 302 are not hidden, the user may also perform a trigger operation on the second extensible control 402 of the ribbon bar 302. In this scenario, when the terminal detects the trigger operation on the second expandable control 402, the terminal may hide the plurality of expandable controls and display the input box stretched in step 208, and at the same time, the terminal may display the plurality of function controls in the sub-area 602 of the third area. Of course, in this scenario, the terminal may also keep the display states of the multiple target function controls in the first region 303 unchanged, keep the display states of the input box in the second region 304 unchanged, and display the remaining function controls, except for the multiple target function controls, in the sub-region 602 of the third region, in the multiple function controls, where a process of displaying the remaining function controls in the sub-region 602 of the third region by the terminal is similar to the process of displaying the multiple function controls in the sub-region 602 of the third region, and details of the embodiment of the present disclosure are not repeated here.
According to the method and the device, the input box is triggered by the user, the target function controls displayed on the session interface are hidden, so that the user does not need to see the target function controls when inputting characters in the input box, the simplicity of the session interface is improved, the target function controls are displayed on the session interface, the user can directly click the target function controls to acquire information which the user wants to publish, the operation steps of the user are reduced, and the user can publish the information in the session interface more quickly.
FIG. 8 is a block diagram of a display device showing a conversation interface in accordance with an exemplary embodiment. Referring to fig. 8, the apparatus includes: a first display unit 801, a concealment unit 802, a second display unit 803, and a recovery unit 804.
A first display unit 801 configured to display a conversation interface including a conversation display area and a function bar on which at least an input box and a plurality of target function controls are displayed;
a hiding unit 802 configured to hide the plurality of target function controls when a trigger operation on the input box is detected;
a second display unit 803, configured to display a first extensible control and the input box based on the original display areas of the target function controls, where the first extensible control is used to trigger display of the target function controls;
a restoring unit 804 configured to restore display of the plurality of target functionality controls in a ribbon bar of the session interface when the triggering operation on the first extensible control is detected.
In one possible design, the second display unit 803 is configured to:
displaying the first extensible control in a first sub-area of the original display areas of the target function controls;
stretching the length of the input frame;
and displaying the stretched input box in the second sub-area of the original display areas of the target function controls and the original display area of the input box.
In one possible design, the second display unit 803 is configured to:
displaying the first expandable control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
In one possible design, the first display unit 801 is configured to:
the obtaining subunit is configured to obtain the use frequency of each function control of the session interface;
the determining subunit is configured to determine a plurality of target function controls to be displayed based on the use frequency of each function control, and the use frequency of each target function control meets a preset condition;
and the display subunit is configured to display a session display area in a preset area of the session interface, and display the target function controls and the input boxes in a function bar of the session interface.
In one possible design, the display subunit is configured to:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
in a second region of the function bar of the conversation interface, the input box is displayed.
In one possible design, the using frequency of each target functionality control meeting the preset condition includes:
the frequency of use of each target functionality control is greater than a frequency threshold.
In one possible design, the using frequency of each target functionality control meeting the preset condition includes:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
In one possible design, the apparatus further includes:
and the third display unit is configured to display a plurality of function controls and the input box in a third area of the session interface when the triggering operation of the second extensible control of the function bar is detected, wherein the plurality of function controls comprise the plurality of target function controls.
In one possible design, the third display unit is configured to:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
In one possible design, the third display unit is configured to:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in the sub-area of the third area.
According to the method and the device, the input box is triggered by the user, the target function controls displayed on the session interface are hidden, so that the user does not need to see the target function controls when inputting characters in the input box, the simplicity of the session interface is improved, the target function controls are displayed on the session interface, the user can directly click the target function controls to acquire information which the user wants to publish, the operation steps of the user are reduced, and the user can publish the information in the session interface more quickly.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a structure of a terminal 900 according to an example embodiment. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, terminal 900 includes: a processor 901 and a memory 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 902 is used to store at least one instruction for execution by processor 901 to implement a method for displaying a conversation interface provided by a method embodiment of the present invention.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a touch display screen 905, a camera 906, an audio circuit 907, a positioning component 908, and a power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 904 may further include NFC (Near Field Communication) related circuits, which are not limited in this disclosure.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, providing the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. Optionally, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the terminal 900 for navigation or LBS (Location Based Service). The Positioning component 908 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the touch display 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 913 may be disposed on the side bezel of terminal 900 and/or underneath touch display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the touch display 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the touch display 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 905 is turned down. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
Proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the touch display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the processor 901 controls the touch display 905 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of terminal 900, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method for displaying a session interface in the above embodiments is also provided. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (20)

1. A display method of a session interface is characterized by comprising the following steps:
displaying a conversation interface, wherein the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
hiding the target function controls when the triggering operation of the input box is detected;
displaying a first extensible control in a first sub-area of original display areas of the target function controls, wherein the first extensible control is used for triggering display of the target function controls;
determining the stretched target length of the input frame according to the length of the second sub-area and the length of the original display area of the input frame; the second sub-area is an area except the first sub-area in the original display areas of the target function controls; stretching the length of the input frame according to the target length; determining the display position of the stretched input frame according to the second sub-area and the original display area of the input frame; displaying the stretched input frame at the stretched input frame display position;
and when the triggering operation of the first extensible control is detected, restoring the display of the target function controls in a function bar of the session interface.
2. The method of claim 1, further comprising:
displaying the first extensible control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
3. The method of claim 1, wherein the displaying a conversation interface, the conversation interface comprising a conversation display area and a ribbon, the ribbon displayed with at least an input box and a plurality of target functionality controls comprises:
acquiring the use frequency of each function control;
determining a plurality of target function controls to be displayed based on the use frequency of each function control, wherein the use frequency of each target function control meets a preset condition;
and displaying the session display area in a preset area of the session interface, and displaying the target function controls and the input box in a function bar of the session interface.
4. The method of claim 3, wherein the displaying the plurality of target functionality controls and the input box in a ribbon of the conversation interface comprises:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
displaying the input box in a second area of a function bar of the conversation interface.
5. The method of claim 3, wherein the frequency of use of each target functionality control meeting a preset condition comprises:
the frequency of use of each target function control is greater than a frequency threshold.
6. The method of claim 3, wherein the frequency of use of each target functionality control meeting a preset condition comprises:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
7. The method of claim 3, wherein after displaying the conversation interface, the method further comprises:
when the triggering operation of a second extensible control of the function bar is detected, displaying a plurality of function controls and the input box in a third area of the session interface, wherein the plurality of function controls comprise a plurality of target function controls.
8. The method of claim 7, wherein displaying a plurality of functionality controls and the input box in a third area of the conversation interface comprises:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
9. The method of claim 7, wherein displaying a plurality of functionality controls and the input box in a third area of the conversation interface comprises:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in a sub-area of the third area.
10. A display device of a conversation interface, comprising:
the display device comprises a first display unit, a second display unit and a display unit, wherein the first display unit is configured to display a conversation interface, the conversation interface comprises a conversation display area and a function bar, and the function bar at least displays an input frame and a plurality of target function controls;
a hiding unit configured to hide the plurality of target function controls when a trigger operation on the input frame is detected;
the second display unit is configured to display a first extensible control in a first sub-area of original display areas of the target function controls, wherein the first extensible control is used for triggering display of the target function controls; determining the stretched target length of the input frame according to the length of the second sub-area and the length of the original display area of the input frame; the second sub-area is an area except the first sub-area in the original display areas of the target function controls; stretching the length of the input frame according to the target length; determining the display position of the stretched input frame according to the second sub-area and the original display area of the input frame; displaying the stretched input frame at the stretched input frame display position;
a restoring unit configured to restore display of the plurality of target functionality controls in a function bar of the session interface when a triggering operation on the first extensible control is detected.
11. The apparatus of claim 10, wherein the second display unit is configured to:
displaying the first extensible control in the original display areas of the plurality of target function controls;
and keeping the display of the input box unchanged in the original display area of the input box.
12. The apparatus of claim 10, wherein the first display unit is configured to:
the obtaining subunit is configured to obtain the use frequency of each function control of the session interface;
the determining subunit is configured to determine a plurality of target function controls to be displayed based on the use frequency of each function control, and the use frequency of each target function control meets a preset condition;
the display subunit is configured to display a session display area in a preset area of the session interface, and display the target function controls and the input box in a function bar of the session interface.
13. The apparatus of claim 12, wherein the display subunit is configured to:
sequentially displaying the target function controls in a first area of a function bar of the session interface according to the sequence of the use frequency of the target function controls from large to small;
displaying the input box in a second area of a function bar of the conversation interface.
14. The apparatus according to claim 12, wherein the frequency of usage of each target functionality control meeting a preset condition comprises:
the frequency of use of each target function control is greater than a frequency threshold.
15. The apparatus according to claim 12, wherein the frequency of usage of each target functionality control meeting a preset condition comprises:
the using frequency of each target function control is positioned at the front preset digit of the using frequency sequence of each function control.
16. The apparatus of claim 10, further comprising:
a third display unit configured to display a plurality of function controls and the input box in a third area of the session interface when a trigger operation on a second expandable control of the function bar is detected, wherein the plurality of function controls include the plurality of target function controls.
17. The apparatus of claim 16, wherein the third display unit is configured to:
and keeping the display of the target function controls and the input box in the function bar unchanged, and displaying the rest function controls in the sub-area of the third area, wherein the rest function controls are the function controls except the target function controls in the function bars.
18. The apparatus of claim 16, wherein the third display unit is configured to:
hiding the target function controls, displaying the input box in the function bar, and displaying the function controls in a sub-area of the third area.
19. A terminal, comprising:
one or more processors;
one or more memories for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform method steps of the method of displaying a conversation interface in accordance with any one of claims 1 to 9.
20. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform method steps of the method of displaying a conversation interface according to any one of claims 1 to 9.
CN201811556524.3A 2018-12-19 2018-12-19 Session interface display method, device, terminal and storage medium Active CN109634688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811556524.3A CN109634688B (en) 2018-12-19 2018-12-19 Session interface display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811556524.3A CN109634688B (en) 2018-12-19 2018-12-19 Session interface display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109634688A CN109634688A (en) 2019-04-16
CN109634688B true CN109634688B (en) 2022-01-21

Family

ID=66075458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811556524.3A Active CN109634688B (en) 2018-12-19 2018-12-19 Session interface display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109634688B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143867B (en) * 2019-12-28 2023-01-17 飞天诚信科技股份有限公司 Safety input method and system applied to Mac platform
CN112182467A (en) * 2020-10-09 2021-01-05 广州河东科技有限公司 WEB construction system, generation method, device, electronic equipment and storage medium
CN112462987A (en) * 2020-11-24 2021-03-09 维沃移动通信(杭州)有限公司 Input box display method and device and electronic equipment
CN114035716A (en) * 2021-11-11 2022-02-11 北京字跳网络技术有限公司 Display control method, display control device, electronic equipment and storage medium

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856620B1 (en) * 2006-09-26 2010-12-21 Adobe Systems Incorporated Systems and methods providing interaction interfaces
US9304658B2 (en) * 2007-12-30 2016-04-05 Qualcomm Incorporated On-screen menu buttons including multiple modes
US20130346904A1 (en) * 2012-06-26 2013-12-26 International Business Machines Corporation Targeted key press zones on an interactive display
CN103870154B (en) * 2014-02-10 2017-03-29 广东欧珀移动通信有限公司 Dialogue input and display device
US10712929B2 (en) * 2014-03-26 2020-07-14 Unanimous A. I., Inc. Adaptive confidence calibration for real-time swarm intelligence systems
CN104951202B (en) * 2014-03-28 2019-06-07 腾讯科技(深圳)有限公司 A kind of method and device showing chat content
CN104572602A (en) * 2014-12-08 2015-04-29 广州三星通信技术研究有限公司 Method and device for displaying message
KR20160076201A (en) * 2014-12-22 2016-06-30 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN105278805B (en) * 2015-06-30 2019-01-29 维沃移动通信有限公司 Menu display method and device
CN106293342A (en) * 2016-08-09 2017-01-04 上海斐讯数据通信技术有限公司 A kind of operation interface display method
CN106406869A (en) * 2016-09-05 2017-02-15 乐视控股(北京)有限公司 Input processing method and apparatus of bullet screen information
CN108092872B (en) * 2016-11-22 2021-07-13 阿里巴巴集团控股有限公司 Communication method and device
CN108459781B (en) * 2016-12-13 2021-03-12 阿里巴巴(中国)有限公司 Input box display control method and device and user terminal
TWI754694B (en) * 2017-03-21 2022-02-11 香港商阿里巴巴集團服務有限公司 Communication method and device
CN108958805A (en) * 2017-05-26 2018-12-07 腾讯科技(深圳)有限公司 menu display method and device
CN107770045A (en) * 2017-09-29 2018-03-06 网易乐得科技有限公司 A kind of message editing method, apparatus and medium

Also Published As

Publication number Publication date
CN109634688A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN109634688B (en) Session interface display method, device, terminal and storage medium
CN108965922B (en) Video cover generation method and device and storage medium
CN109859102B (en) Special effect display method, device, terminal and storage medium
CN110300274B (en) Video file recording method, device and storage medium
CN111028144B (en) Video face changing method and device and storage medium
CN110769313B (en) Video processing method and device and storage medium
CN112565806B (en) Virtual gift giving method, device, computer equipment and medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN112383808A (en) Video playing method, device, terminal and storage medium
US11720219B2 (en) Method, apparatus and device for displaying lyric, and storage medium
CN108172176B (en) Page refreshing method and device for ink screen
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN111796990A (en) Resource display method, device, terminal and storage medium
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN110992268B (en) Background setting method, device, terminal and storage medium
CN112118482A (en) Audio file playing method and device, terminal and storage medium
CN113301422B (en) Method, terminal and storage medium for acquiring video cover
CN111369434B (en) Method, device, equipment and storage medium for generating spliced video covers
CN111522483B (en) Multimedia data sharing method and device, electronic equipment and storage medium
CN110267114B (en) Video file playing method, device, terminal and storage medium
CN109344284B (en) Song file playing method, device, equipment and storage medium
CN109189525B (en) Method, device and equipment for loading sub-page and computer readable storage medium
CN108881715B (en) Starting method and device of shooting mode, terminal and storage medium
CN112732133A (en) Message processing method and device, electronic equipment and storage medium
CN110956595B (en) Face beautifying processing method, device, system 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