Session interface display method and device, electronic equipment, storage medium and program product
By displaying the first interface element that supports movement in the conversational interface and adjusting its display mode in response to changes in the posture of the electronic device, the problem of a single display mode of interface elements in the conversational interface is solved, and a richer and more dynamic interface display is achieved.
Patent Information
- Application Number
- CN202410917798.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-15
AI Technical Summary
The display method of interface elements in existing conversational interfaces is relatively simple and lacks diversity.
The first interface element and the second interface element are displayed in the conversation interface. The first interface element supports movement within a preset area and adjusts its display mode in response to posture change information of the target electronic device, while maintaining the display mode of the second interface element. Change, the display mode of the first interface element is associated with the posture transformation information of the target electronic device.
By adjusting the display method of interface elements, the display method of the conversational interface is enriched, adapted to changes in the posture of electronic devices, and the display diversity and dynamics of interface elements are improved.
Smart Images

Figure CN118779054A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method, device, electronic device, storage medium, and program product for displaying a conversation interface. Background Art
[0002] Currently, when displaying a conversation interface, the interface elements of the conversation interface can be displayed in the conversation interface. However, the display method of the interface elements in the conversation interface is relatively simple. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device, storage medium, and program product for displaying a conversation interface to enrich the display method of interface elements in the conversation interface.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for displaying a conversation interface, including:
[0005] Displaying a first interface element and a second interface element in the conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface;
[0006] In response to receiving posture change information of a target electronic device, a first display mode of the first interface element in the session interface is adjusted, and a second display mode of the second interface element in the session interface is kept unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0007] In a second aspect, the present disclosure also provides a display device for a conversation interface, including:
[0008] An element display module, configured to display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface;
[0009] A mode adjustment module is used to adjust the first display mode of the first interface element in the session interface in response to receiving posture change information of a target electronic device, and keep the second display mode of the second interface element in the session interface unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0010] In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
[0011] one or more processors;
[0012] a memory for storing one or more programs,
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying a conversation interface as described in the embodiment of the present disclosure.
[0014] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for displaying a conversation interface as described in an embodiment of the present disclosure.
[0015] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product. When the computer program product is executed by a computer, the computer implements the method for displaying a conversation interface as described in the embodiments of the present disclosure.
[0016] The display method, device, electronic device, storage medium and program product of the conversation interface provided by the embodiments of the present disclosure adjust the display method of some interface elements in the conversation interface based on the posture change information and / or current posture information of the electronic device when the posture of the electronic device changes. Therefore, when the electronic device has different posture change information or presents different postures, the corresponding interface elements in the conversation interface can be displayed in different display methods, which can enrich the display method of the interface elements in the conversation interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0018] Figure 1 A flowchart of a method for displaying a conversation interface provided by an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram showing a conversation interface provided by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram showing another conversation interface provided in an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram showing another conversation interface provided by an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram showing a fourth conversation interface provided in an embodiment of the present disclosure;
[0023] Figure 6A flowchart of another method for displaying a conversation interface provided by an embodiment of the present disclosure;
[0024] Figure 7 A structural block diagram of a display device for a conversation interface provided in an embodiment of the present disclosure;
[0025] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0034] Figure 1 A flowchart of a method for displaying a conversation interface provided by an embodiment of the present disclosure. The method can be executed by a display device for a conversation interface, wherein the device can be implemented by software and / or hardware and can be configured in an electronic device, typically a mobile phone or a tablet computer. The method for displaying a conversation interface provided by an embodiment of the present disclosure is applicable to a scenario in which interface elements associated with posture information of an electronic device are displayed in a conversation interface. Figure 1 As shown, the method for displaying a conversation interface provided in this embodiment may include:
[0035] S101. Display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface.
[0036] The first interface element and the second interface element may be different interface elements in the conversation interface. The first interface element may be an interface element whose display mode is associated with the posture information of the target electronic device, such as an interface element whose movement trajectory and / or display position is associated with the posture information of the target electronic device. The second interface element may be an interface element whose display mode does not move in the conversation interface with the change of the posture information of the target electronic device, such as an interface element in the conversation interface other than the first interface element.
[0037] The first interface element supports movement within a preset area of the conversation interface. The display form of the first interface element in the conversation interface is not limited, such as the first interface element can be displayed in the conversation interface in the form of a foreground element or a background element. Exemplarily, the first interface element can be displayed in the conversation interface in the form of a background element. At this time, optionally, the preset area is the interface background area of the conversation interface, that is, the first interface element can be displayed within the interface background of the conversation interface.
[0038] The interface element (i.e., the first interface element) associated with the posture information of the target electronic device in the display mode of the conversation interface can be set as needed. Optionally, the first interface element includes a preset interface background element and / or an associated element of a preset conversation content, wherein the preset interface background element includes at least one of a weather element and an identification element, and the identification element includes an interactive achievement identification element between different users in the conversation corresponding to the conversation interface; the preset conversation content includes at least one of a preset emoticon image and a preset character.
[0039] The preset interface background elements may be understood as elements included in the interface background of the conversation interface, such as weather elements and / or logo elements, etc. For example, the interface background of the conversation interface may display weather elements and / or logo elements for the current user to view.
[0040] Weather elements can be understood as elements related to the weather conditions at the target location at the current moment. For example, when the weather at the target location at the current moment is cloudy, cloud elements can be displayed in the background of the session interface; when the weather at the target location at the current moment is raining, raindrop elements moving downward can be displayed in the background of the session interface, and so on. The target location can be set by the user in the session corresponding to the session interface, such as the target location can be the location entered by a user in the session and / or the current location of a user in the session. The current location of the user can be located with full authorization from the user.
[0041] The identification element can be understood as an element used to identify the corresponding object, which may include but is not limited to the interactive achievement identification element between different users in the conversation corresponding to the conversation interface. This interactive achievement identification element may be an interactive achievement identification displayed in the form of an interface element. This interactive achievement identification may be understood as an identification of an interactive achievement. For example, an interactive achievement icon, etc. An interactive achievement may be an achievement obtained through interactive behavior, and this interactive behavior may include a conversation interactive behavior and / or a work interactive behavior, etc. A conversation interactive behavior may be understood as an act of interacting through a conversation, such as an act of interacting by sending conversation information and / or an audio and video call, etc. A work interactive behavior may be understood as an act of interacting through a work, such as viewing the work published by the other party, performing a first interactive operation on the work published by the other party, and / or performing a second interactive operation on the comment information published by the other party under a certain work, etc. This first interactive operation may, for example, include a comment operation, a like operation, a share operation, and / or a collection operation, etc. This second interactive operation may, for example, include a like operation or a reply operation, etc.
[0042] The associated elements of the preset conversation content can be understood as elements related to the preset conversation content. The preset conversation content can be understood as the conversation content that is preset and included in the conversation information, such as preset emoticon pictures and / or preset characters. Thus, when a user in a conversation corresponding to the conversation interface sends a conversation message containing the preset conversation content in the conversation interface, the interface elements associated with the preset conversation content can be displayed in the conversation interface. For example, when a user in a conversation corresponding to the conversation interface sends a conversation message containing a fireworks emoticon picture in the conversation interface, the interface element of fireworks blooming can be displayed in the conversation interface, and so on.
[0043] Specifically, Figure 2 As shown in the figure (the first interface element 20 is an interactive achievement identification element as an example), the first interface element 20 that supports movement within a preset area of the session interface can be displayed in the session interface, and the second interface element that supports static display in the session interface can be displayed in the session interface, such as Figure 2 The interactive controls, session messages, user identification, etc. shown in the figure except the first interface element 20 are displayed for the user to view.
[0044] In this embodiment, the display timing of the first interface element and the second interface element in the conversation interface is not limited.
[0045] In some embodiments, when the session interface is displayed in response to a display operation on the session interface, the first interface element and the second interface element may be displayed in the session interface. For example, when a display operation on the session interface is received, the session interface may be displayed in response to the display operation, and the first interface element and the second interface element may be displayed in the session interface. At this time, optionally, the displaying of the first interface element and the second interface element in the session interface includes: displaying the session interface in response to a display operation on the session interface, and displaying the first interface element and the second interface element in the session interface. Among them, the display operation on the session interface may be understood as a trigger operation for indicating the display of the session interface, and the execution method of the display operation is not limited, such as the display operation may be an operation for triggering a session identifier of a certain session, etc.
[0046] In some embodiments, when a session interface is displayed in response to a display operation on the session interface, a second interface element may be displayed in the session interface, and when a display condition of the first interface element is met, such as when a preset trigger operation based on the session interface is received, the second interface element may be added to the session interface for display. At this time, optionally, the displaying of the first interface element and the second interface element in the session interface includes: displaying the second interface element in the session interface, and adding the display of the first interface element in the session interface in response to a preset trigger operation based on the session interface. The preset trigger operation may be understood as an operation that can trigger the display of the first interface element, which may include but is not limited to a sending operation for session information containing preset session content.
[0047] S102. In response to receiving posture change information of a target electronic device, adjusting a first display mode of the first interface element in the session interface, and maintaining a second display mode of the second interface element in the session interface unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0048] The target electronic device can be understood as the electronic device where the current application is installed, such as the mobile phone or tablet computer where the current application is installed. The current application can be the application that currently executes the method for displaying the session interface disclosed in the embodiment of the present disclosure.
[0049] The attitude change information of the target electronic device may be information describing the attitude change of the target electronic device, such as the angle change value of the target electronic device. The current attitude information of the target electronic device may be information describing the current attitude of the target electronic device, such as the angle value of the target electronic device relative to the horizontal plane at the current moment. Exemplarily, the attitude change information of the target electronic device may be the change value of the Euler angle of the target electronic device; the current attitude information of the target electronic device may be the Euler angle of the target electronic device at the current moment.
[0050] The first display mode can be understood as the display mode adopted when the first interface element is displayed in the conversation interface, such as the display position, moving direction and / or moving speed of the first interface element. The first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device. For example, when the posture change information and / or current posture information of the target electronic device are different, the display mode adopted when the first interface element is displayed in the conversation interface may be different.
[0051] The first display method of the first interface element is associated with the posture change information of the target electronic device. For example, the movement trajectory of the first interface element can be associated with the posture change information of the target electronic device. If the posture change information of the target electronic device is different, the first interface element can move along different movement trajectories.
[0052] The first display mode of the first interface element is associated with the current posture information of the target electronic device, which can be understood as the movement acceleration and / or display position of the first interface element is associated with the current posture information of the target electronic device. For example, the movement of the first interface element can be controlled based on gravity acceleration. Thus, when the target electronic device has different angles with the horizontal plane, the first interface element can have different movement accelerations and / or display positions.
[0053] Optionally, the first display mode is associated with component information of a current gravity acceleration component, where the current gravity acceleration component is an acceleration component of gravity acceleration within a target plane under the current posture information, and the target plane is a display plane of the conversation interface.
[0054] Among them, the current gravity acceleration component can be the acceleration component of gravity acceleration in the display plane of the conversation interface at the current moment. The target plane is the plane where the conversation interface is located, such as the plane where the screen of the target electronic device is located after the posture adjustment. The first display mode of the first interface element can be associated with the component information of the current gravity acceleration component, and optionally, the component information includes direction information and / or numerical information. For example, the display position to which the first interface element needs to be adjusted can be associated with the direction information of the current gravity acceleration component, and / or the movement trajectory, movement speed and / or movement acceleration of the first interface element when moving in the preset area of the conversation interface can be associated with the direction information and / or numerical information of the current gravity acceleration component, and so on.
[0055] The second display manner can be understood as the display manner used when the second interface element is displayed in the conversation interface, such as the display position of the second interface element.
[0056] Specifically, when the posture change information of the target electronic device is received, such as when it is detected that the current posture of the target electronic device has changed, the first display mode of the first interface element in the conversation interface can be adjusted according to the posture change information and / or the current posture information of the target electronic device, and the second display mode of the second interface element in the conversation interface is kept unchanged, such as Figure 2 Change to Figure 3 shown.
[0057] In some embodiments, the first interface element includes a mobile interface element that is moved and displayed in the conversation interface, and adjusting the first display mode of the first interface element in the conversation interface includes: controlling the mobile interface element to move within the preset area along a first movement trajectory corresponding to the posture change information and / or the current posture information; or controlling the mobile interface element to move out of the preset area along a first movement trajectory corresponding to the posture change information and / or the current posture information.
[0058] The mobile interface element may be a first interface element for mobile display, such as weather elements such as raindrops or snowflakes, and / or associated elements of preset conversation content such as fireworks or cakes. The first movement trajectory may be understood as the movement trajectory of the mobile interface element when it moves within a preset area of the conversation interface. The first movement trajectory may be associated with the current posture information and / or posture change information of the target electronic device.
[0059] In this embodiment, when the posture information of the target electronic device changes, the movement track of the mobile interface element within the preset area of the conversation interface can be adjusted.
[0060] Specifically, for a mobile interface element that is displayed in a mobile manner in a conversation interface, the mobile interface element can be controlled to move within a preset area along a first moving trajectory corresponding to the posture change information and / or current posture information of the target electronic device, or the mobile interface element can be controlled to move out of the preset area of the conversation interface along the first moving trajectory corresponding to the current posture information.
[0061] For example, a mobile interface element can be controlled to move along a certain moving trajectory within a preset area of the conversation interface, and after receiving posture change information of the target electronic device, the moving trajectory of the mobile interface element is adjusted based on the posture change information, and the mobile interface element is controlled to move along the adjusted moving trajectory within the preset area of the conversation interface.
[0062] For another example, the mobile interface element can be controlled to move within a preset area of the conversation interface under the action of the current gravity component, and rebound to change the movement trajectory after colliding with at least some interface elements in the conversation interface, and continue to move within the preset area of the conversation interface under the action of the current gravity component after changing the movement trajectory, and so on.
[0063] For another example, the first interface element can be controlled to move in a preset area of the conversation interface along the direction of the current gravity component. For example, when the target electronic device is perpendicular to the horizontal plane, the first interface element can move toward the bottom of the conversation interface along the information display direction of the conversation interface. Figure 4As shown; when the target electronic device changes from being perpendicular to the horizontal plane to being tilted to the right, the first interface element can be controlled to move toward the lower right side of the conversation interface along the direction of the current gravity component, as shown Figure 5 When a first interface element moves out of the preset area of the session interface, the first interface element that moves out of the preset area of the session interface may stop being displayed.
[0064] In some embodiments, the first interface element includes a static interface element that is statically displayed in the conversation interface, and adjusting the first display mode of the first interface element in the conversation interface includes: controlling the static interface element to move from an original display position along a second movement trajectory to a target display position in the conversation interface, the second movement trajectory and / or the target display position corresponding to the current posture information; when the static interface element moves to the target display position, keeping displaying the static interface element at the target display position.
[0065] The static interface element can be understood as a first interface element that is statically displayed in the conversation interface when the electronic device remains stationary, such as an interactive achievement identification element between different users in the conversation interface. The second movement trajectory can be understood as the movement trajectory of the static interface element when it moves within a preset area of the conversation interface. The second movement trajectory can be associated with the current posture information and / or posture change information of the target electronic device.
[0066] The original display position can be understood as the display position of the static interface element in the preset area of the conversation interface before the posture of the target electronic device changes, that is, the display position of the static interface element in the preset area of the conversation interface before the first display mode of the static interface element is adjusted this time. The target display position can be understood as the display position to which the static interface element needs to be adjusted after the posture of the target electronic device changes, that is, the display position to which the static interface element needs to be adjusted in the first display mode of the static interface element this time. The target display position can be associated with the posture change information and / or current posture information of the target electronic device.
[0067] In this embodiment, when the posture information of the target electronic device changes, the display position of the static interface element in the preset area of the conversation interface can be adjusted.
[0068] Specifically, for static interface elements that are displayed statically in the conversation interface, the static interface elements can be controlled to move from an original display position to a target display position corresponding to the posture change information and / or current posture information of the target electronic device along a moving trajectory corresponding to the posture change information and / or current posture information of the target electronic device, so as to display the static interface elements at this target display position.
[0069] For example, the target display position of the static interface element in the preset area of the conversation interface can be determined based on the current gravity acceleration component, that is, the target display position to which the static interface element needs to be moved under the action of the current gravity acceleration component. For example, when the target electronic device is perpendicular to the horizontal plane, the static interface element can be displayed at the bottom of the electronic device, such as Figure 2 When it is detected that the electronic device is tilted to the left, the static interface element can be controlled to move from the original display position to the lower left corner of the conversation interface for display, as shown in FIG. Figure 3 and / or, when it is detected that the electronic device is tilted to the right, the static interface element can be controlled to move from the original display position to the lower right corner of the conversation interface for display. Exemplarily, the movement trajectory of the static interface element can be determined based on its original display position and the target display position.
[0070] For another example, when the target electronic device is detected to be shaking, the static interface element can be controlled to move within the preset area of the conversation interface as the target electronic device shakes based on the posture change information of the target electronic device, and when the target electronic device stops shaking, the target display position of the static interface element within the preset area of the conversation interface is determined based on the current gravity acceleration component, and the first interface element is controlled to move to this target display position for display. Exemplarily, the movement trajectory of the static interface element when shaking can be determined based on the posture change information of the target electronic device, and / or the movement trajectory of the static interface element when moving to the target display position can be determined based on the display position and movement speed of the static interface element when the target electronic device stops shaking and the target display position of the static interface element.
[0071] The first interface element may collide with a preset interface element in the conversation interface during movement. In some embodiments, when the first interface element contacts the preset interface element in the conversation interface during movement, the movement trajectory of the first interface element within the preset area of the conversation interface can be adjusted based on the collision angle, the elastic coefficient of the first interface element, the elastic coefficient of the preset interface element, the current movement speed of the first interface element and / or the current gravity acceleration component according to relevant dynamic principles, and the first interface element can be controlled to continue moving along the adjusted movement trajectory until the first interface element moves out of the preset area of the conversation interface or the movement speed and movement acceleration of the first interface element are reduced to zero.
[0072] At this time, optionally, the method for displaying the conversation interface may also include: in response to the first interface element contacting a preset interface element in the conversation interface during movement, adjusting the current movement trajectory of the first interface element, the preset interface element including at least part of the interactive controls, the conversation message and at least one of the user identifier, and the current movement trajectory being the first movement trajectory or the second movement trajectory.
[0073] Among them, the preset interface element can be an interface element in the conversation interface that is configured to support the contact effect with the first interface element. The preset interface element may include at least part of the first interface element and / or at least part of the second interface element. For example, a first interface element may come into contact with other first interface elements in the preset area of the conversation interface during movement, and may also come into contact with one or more second interface elements in the preset area of the conversation interface. At least part of the second interface element that supports the contact effect with the first interface element may include, for example, at least part of the interactive control, the conversation message, and at least one of the user identification.
[0074] At least part of the above-mentioned interactive controls can be set as needed. Optionally, at least part of the interactive controls include a conversation message input control and / or an interactive control displayed in association with the conversation message input control. The conversation message input control can be a control for triggering the display of a conversation message input area for inputting the message content of a conversation message to be sent, such as a conversation message input box. The interactive control displayed in association with the conversation message input control can be understood as an interactive control whose display position is associated with the display position of the conversation message input control, such as a control displayed above the conversation message input control in the conversation interface.
[0075] In some embodiments, maintaining the second display mode of the second interface element in the session interface unchanged includes: maintaining the display view of the session interface unchanged, and maintaining the second display mode of the second interface element in the display view unchanged; or, switching the display view of the session interface, and maintaining the second display mode of the second interface element in the switched display view unchanged.
[0076] The display view may include but is not limited to a horizontal view and / or a vertical view. When the horizontal view is used for display, the interface width of the conversation interface is usually greater than the interface height of the conversation interface, and when the target electronic device is placed horizontally, the interface content of the conversation interface is displayed forward; when the vertical view is used for display, the interface width of the conversation interface is usually less than or equal to the interface height of the conversation interface, and when the target electronic device is placed vertically, the interface content of the conversation interface is displayed forward.
[0077] In the above embodiment, after receiving the posture change information of the target electronic device, the display view of the conversation interface can be adjusted or not, which can be specifically determined based on whether the conversation interface supports adjusting the display view, the current display view of the first interface and the current posture information of the target electronic device.
[0078] Exemplarily, if the conversation interface does not support adjustment of the display view, or the target conversation interface supports adjustment of the display view and the current display view of the first interface and the current posture information of the target electronic device do not meet the adjustment conditions of the display view, then after receiving the posture change information of the target electronic device, the display view of the conversation interface can be kept unchanged, and the second display mode of the second interface element in the conversation interface in the current display view can be kept unchanged; if the target conversation interface supports adjustment of the display view and the current display view of the first interface and the current posture information of the target electronic device meet the adjustment conditions of the display view, then after receiving the posture change information of the target electronic device, the display view of the conversation interface can be switched, and the second display mode of the second interface element in the conversation interface in the switched display view can be kept unchanged.
[0079] The method for displaying a conversation interface provided in this embodiment displays a first interface element and a second interface element in the conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface; in response to receiving posture change information of a target electronic device, adjusting a first display mode of the first interface element in the conversation interface, and maintaining a second display mode of the second interface element in the conversation interface unchanged, wherein the target electronic device is an electronic device on which the conversation interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device. This embodiment utilizes the above technical solution, and when the posture of the electronic device changes, the display mode of some interface elements in the conversation interface is adjusted based on the posture change information and / or current posture information of the electronic device, so that when the electronic device has different posture change information or presents different postures, the corresponding interface elements in the conversation interface can be displayed in different display modes, which can enrich the display mode of the interface elements in the conversation interface.
[0080] Figure 6 A flowchart of another method for displaying a conversation interface provided for an embodiment of the present disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, the first display method of adjusting the first interface element in the conversation interface includes: adjusting the movement trajectory of the first interface element in the conversation interface based on the posture change information; and / or adjusting the display position of the first interface element in the conversation interface based on the current posture information.
[0081] Correspondingly, such as Figure 3 As shown, the method for displaying a conversation interface provided in this embodiment may include:
[0082] S201. Display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface.
[0083] S202, in response to receiving posture change information of a target electronic device, adjusting a movement trajectory of the first interface element in the conversation interface based on the posture change information, and / or adjusting a display position of the first interface element in the conversation interface based on the current posture information; and keeping a second display mode of the second interface element in the conversation interface unchanged, the target electronic device being an electronic device on which the conversation interface is displayed, and the first display mode of the first interface element being associated with the posture change information and / or current posture information of the target electronic device.
[0084] In this embodiment, after receiving the posture change information of the target electronic device, the movement trajectory of the first interface element in the conversation interface can be adjusted based on the posture change information of the target electronic device, and / or the display position of the first interface element in the conversation interface can be adjusted based on the current posture information of the target electronic device.
[0085] When adjusting the movement trajectory of the first interface element in the conversation interface based on the posture transformation information of the target electronic device, exemplarily, the trajectory adjustment information of the first interface element can be determined based on the posture transformation information of the target electronic device, such as determining the angle at which the movement trajectory of the first interface element needs to be offset based on the original movement trajectory, and adjusting the movement trajectory of the first interface element in the conversation interface based on this.
[0086] When adjusting the display position of the first interface element in the conversation interface based on the current posture information of the target electronic device, illustratively, the gravity component of gravity in the conversation interface can be determined based on the current posture information of the target electronic device, and the display position of the first interface element can be adjusted based on this gravity component, such as controlling the first interface element to move under the action of this gravity component until the speed and acceleration of the first interface element are reduced to zero. When the speed and acceleration of the first interface element are reduced to zero, the first interface element can be controlled to stop moving.
[0087] The method for displaying a conversation interface provided in this embodiment adjusts the movement trajectory of a first interface element in the conversation interface based on the posture change information of a target electronic device, and / or adjusts the display position of the first interface element in the conversation interface based on the current posture information of the target electronic device, which can further improve the display method of interface elements in the conversation interface, thereby enriching the display method of the conversation interface.
[0088] Figure 7 This is a structural block diagram of a display device for a conversation interface provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware, and can be configured in an electronic device, typically a mobile phone or a tablet computer, and can display interface elements associated with the posture information of the electronic device in the conversation interface by executing the display method of the conversation interface. Figure 7 As shown, the display device of the conversation interface provided in this embodiment may include: an element display module 701 and a mode adjustment module 702, wherein:
[0089] An element display module 701 is used to display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface;
[0090] The mode adjustment module 702 is used to adjust the first display mode of the first interface element in the session interface in response to receiving the posture change information of the target electronic device, and keep the second display mode of the second interface element in the session interface unchanged. The target electronic device is the electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0091] The display device of the conversation interface provided in this embodiment displays the first interface element and the second interface element in the conversation interface through the element display module, and the first interface element supports movement within the preset area of the conversation interface; the mode adjustment module adjusts the first display mode of the first interface element in the conversation interface in response to the received posture change information of the target electronic device, and keeps the second display mode of the second interface element in the conversation interface unchanged, the target electronic device is the electronic device on which the conversation interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or the current posture information of the target electronic device. This embodiment uses the above technical solution, and when the posture of the electronic device changes, the display mode of some interface elements in the conversation interface is adjusted based on the posture change information and / or the current posture information of the electronic device, so that when the electronic device has different posture change information or presents different postures, the corresponding interface elements in the conversation interface can be displayed in different display modes, which can enrich the display mode of the interface elements in the conversation interface.
[0092] Optionally, the mode adjustment module 702 may be used to: adjust a movement trajectory of the first interface element in the conversation interface based on the posture change information; and / or adjust a display position of the first interface element in the conversation interface based on the current posture information.
[0093] Optionally, the first interface element includes a mobile interface element that is displayed in the conversation interface, and the mode adjustment module 702 can be specifically used to: control the mobile interface element to move within the preset area along a first moving trajectory corresponding to the posture change information and / or the current posture information; or control the mobile interface element to move out of the preset area along a first moving trajectory corresponding to the posture change information and / or the current posture information.
[0094] Optionally, the first interface element includes a static interface element that is displayed statically in the conversation interface, and the mode adjustment module 702 can be specifically used to: control the static interface element to move from an original display position along a second movement trajectory to a target display position in the conversation interface, the second movement trajectory and / or the target display position corresponding to at least one of the posture change information and the current posture information; when the static interface element moves to the target display position, keep displaying the static interface element at the target display position.
[0095] Furthermore, the display device of the conversation interface may also include: a trajectory adjustment module, which is used to adjust the current movement trajectory of the first interface element in response to the first interface element contacting with a preset interface element in the conversation interface during movement, the preset interface element includes at least part of the interactive control, the conversation message and at least one of the user identification, and the current movement trajectory is the first movement trajectory or the second movement trajectory.
[0096] Optionally, the at least part of the interactive controls include a conversation message input control and / or an interactive control displayed in association with the conversation message input control.
[0097] Optionally, the mode adjustment module 702 can be used to: keep the display view of the conversation interface unchanged, and keep the second display mode of the second interface element in the display view unchanged; or, switch the display view of the conversation interface, and keep the second display mode of the second interface element in the switched display view unchanged.
[0098] Optionally, the element display module 701 can be specifically used to: display the session interface in response to a display operation on the session interface, and display a first interface element and a second interface element in the session interface; and / or display the second interface element in the session interface, and in response to a preset trigger operation based on the session interface, add the first interface element to the session interface.
[0099] Optionally, the first interface element includes a preset interface background element and / or an associated element of a preset conversation content, wherein the preset interface background element includes at least one of a weather element and an identification element, and the identification element includes an interaction achievement identification element between different users in a conversation corresponding to the conversation interface; and the preset conversation content includes at least one of a preset emoticon image and a preset character.
[0100] Optionally, the first display mode is associated with component information of a current gravity acceleration component, where the current gravity acceleration component is an acceleration component of gravity acceleration within a target plane under the current posture information, and the target plane is a display plane of the conversation interface.
[0101] Optionally, the component information includes direction information and / or value information.
[0102] Optionally, the preset area is an interface background area of the conversation interface.
[0103] The display device of the conversation interface provided in the embodiment of the present disclosure can execute the display method of the conversation interface provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the display method of the conversation interface. For technical details not fully described in this embodiment, please refer to the display method of the conversation interface provided in any embodiment of the present disclosure.
[0104] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device (e.g., terminal device) 800 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0105] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0106] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0107] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0108] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0109] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0110] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0111] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: displays a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface; in response to receiving posture change information of a target electronic device, adjusts a first display mode of the first interface element in the conversation interface, and keeps a second display mode of the second interface element in the conversation interface unchanged, wherein the target electronic device is an electronic device on which the conversation interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0112] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0113] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the unit itself.
[0115] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0116] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0117] According to one or more embodiments of the present disclosure, Example 1 provides a method for displaying a conversation interface, including:
[0118] Displaying a first interface element and a second interface element in the conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface;
[0119] In response to receiving posture change information of a target electronic device, a first display mode of the first interface element in the session interface is adjusted, and a second display mode of the second interface element in the session interface is kept unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0120] According to one or more embodiments of the present disclosure, Example 2 is a method according to Example 1, wherein adjusting a first display mode of the first interface element in the conversation interface includes:
[0121] Adjusting the movement track of the first interface element in the conversation interface based on the posture change information; and / or
[0122] The display position of the first interface element in the conversation interface is adjusted based on the current posture information.
[0123] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2, wherein the first interface element includes a mobile interface element that is displayed in a mobile manner in the conversation interface, and the adjusting the first display mode of the first interface element in the conversation interface includes:
[0124] Controlling the mobile interface element to move within the preset area along a first movement trajectory corresponding to the posture change information and / or the current posture information; or
[0125] The mobile interface element is controlled to move out of the preset area along a first movement track corresponding to the posture change information and / or the current posture information.
[0126] According to one or more embodiments of the present disclosure, Example 4 is the method according to Example 3, wherein the first interface element includes a static interface element displayed statically in the conversation interface, and the adjusting the first display mode of the first interface element in the conversation interface includes:
[0127] Controlling the static interface element to move from an original display position along a second movement trajectory to a target display position in the conversation interface, wherein the second movement trajectory and / or the target display position corresponds to at least one of the posture change information and the current posture information;
[0128] After the static interface element moves to the target display position, the static interface element is kept displayed at the target display position.
[0129] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 3 or 4, further comprising:
[0130] In response to the first interface element contacting a preset interface element in the conversation interface during movement, adjusting a current movement trajectory of the first interface element, the preset interface element including at least part of an interactive control, a conversation message, and at least one of a user identifier, and the current movement trajectory being the first movement trajectory or the second movement trajectory.
[0131] According to one or more embodiments of the present disclosure, Example 6 is based on the method described in Example 5, wherein at least part of the interactive controls include a conversation message input control and / or an interactive control displayed in association with the conversation message input control.
[0132] According to one or more embodiments of the present disclosure, Example 7 is a method according to any one of Examples 1-4, wherein the step of maintaining the second display mode of the second interface element in the conversation interface unchanged includes:
[0133] Keep the display view of the conversation interface unchanged, and keep the second display mode of the second interface element in the display view unchanged; or
[0134] The display view of the conversation interface is switched, and the second display mode of the second interface element in the switched display view is kept unchanged.
[0135] According to one or more embodiments of the present disclosure, Example 8 is a method according to any one of Examples 1-4, wherein displaying the first interface element and the second interface element in the conversation interface includes:
[0136] In response to a display operation on the session interface, display the session interface, and present the first interface element and the second interface element in the session interface; and / or
[0137] A second interface element is displayed in the conversation interface, and in response to a preset trigger operation based on the conversation interface, a first interface element is additionally displayed in the conversation interface.
[0138] According to one or more embodiments of the present disclosure, Example 9 is a method according to any one of Examples 1-4, wherein the first interface element includes a preset interface background element and / or an associated element of a preset session content, wherein:
[0139] The preset interface background element includes at least one of a weather element and an identification element, and the identification element includes an interaction achievement identification element between different users in the session corresponding to the session interface;
[0140] The preset conversation content includes at least one of a preset expression picture and a preset character.
[0141] According to one or more embodiments of the present disclosure, Example 10 is based on the method described in any one of Examples 1-4, wherein the first display mode is associated with component information of a current gravitational acceleration component, the current gravitational acceleration component is the acceleration component of the gravitational acceleration in a target plane under the current posture information, and the target plane is a display plane of the conversation interface.
[0142] According to one or more embodiments of the present disclosure, Example 11 is based on the method of Example 10, and the component information includes direction information and / or numerical information.
[0143] According to one or more embodiments of the present disclosure, Example 12 is a method according to any one of Examples 1-4, wherein the preset area is an interface background area of the conversation interface.
[0144] According to one or more embodiments of the present disclosure, Example 13 provides a display device for a conversation interface, including:
[0145] An element display module, configured to display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface;
[0146] A mode adjustment module is used to adjust the first display mode of the first interface element in the session interface in response to receiving posture change information of a target electronic device, and keep the second display mode of the second interface element in the session interface unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
[0147] According to one or more embodiments of the present disclosure, Example 14 provides an electronic device, including:
[0148] one or more processors;
[0149] a memory for storing one or more programs,
[0150] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying a conversation interface as described in any one of Examples 1-12.
[0151] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for presenting a conversation interface as described in any one of Examples 1-12.
[0152] According to one or more embodiments of the present disclosure, Example 16 provides a computer program product. When the computer program product is executed by a computer, the computer implements the method for displaying a conversation interface as described in any one of Examples 1-12.
[0153] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0154] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0155] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A method for displaying a conversation interface, characterized in that: include: Displaying a first interface element and a second interface element in the conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface; In response to receiving posture change information of a target electronic device, a first display mode of the first interface element in the session interface is adjusted, and a second display mode of the second interface element in the session interface is kept unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
2. The method according to claim 1, characterized in that The adjusting the first display mode of the first interface element in the conversation interface includes: Adjusting the movement track of the first interface element in the conversation interface based on the posture change information; and / or The display position of the first interface element in the conversation interface is adjusted based on the current posture information.
3. The method according to claim 2, characterized in that The first interface element includes a mobile interface element that is displayed in a mobile manner in the session interface, and the adjusting the first display mode of the first interface element in the session interface includes: Controlling the mobile interface element to move within the preset area along a first movement trajectory corresponding to the posture change information and / or the current posture information; or The mobile interface element is controlled to move out of the preset area along a first movement track corresponding to the posture change information and / or the current posture information.
4. The method according to claim 3, characterized in that The first interface element includes a static interface element displayed statically in the conversation interface, and the adjusting a first display mode of the first interface element in the conversation interface includes: Controlling the static interface element to move from an original display position along a second movement trajectory to a target display position in the conversation interface, wherein the second movement trajectory and / or the target display position corresponds to at least one of the posture change information and the current posture information; After the static interface element moves to the target display position, the static interface element is kept displayed at the target display position.
5. The method according to claim 3 or 4, characterized in that: Also includes: In response to the first interface element contacting a preset interface element in the conversation interface during movement, adjusting a current movement trajectory of the first interface element, the preset interface element including at least part of an interactive control, a conversation message, and at least one of a user identifier, and the current movement trajectory being the first movement trajectory or the second movement trajectory.
6. The method according to claim 5, characterized in that The at least part of the interactive controls include a conversation message input control and / or an interactive control displayed in association with the conversation message input control.
7. The method according to any one of claims 1 to 4, characterized in that: The maintaining the second display mode of the second interface element in the conversation interface unchanged includes: Keep the display view of the conversation interface unchanged, and keep the second display mode of the second interface element in the display view unchanged; or The display view of the conversation interface is switched, and the second display mode of the second interface element in the switched display view is kept unchanged.
8. The method according to any one of claims 1 to 4, characterized in that: The displaying of the first interface element and the second interface element in the conversation interface includes: In response to a display operation on the session interface, display the session interface, and present the first interface element and the second interface element in the session interface; and / or A second interface element is displayed in the conversation interface, and in response to a preset trigger operation based on the conversation interface, a first interface element is additionally displayed in the conversation interface.
9. The method according to any one of claims 1 to 4, characterized in that: The first interface element includes a preset interface background element and / or an associated element of a preset conversation content, wherein: The preset interface background element includes at least one of a weather element and an identification element, and the identification element includes an interaction achievement identification element between different users in the session corresponding to the session interface; The preset conversation content includes at least one of a preset expression picture and a preset character.
10. The method according to any one of claims 1 to 4, characterized in that: The first display mode is associated with component information of a current gravity acceleration component, where the current gravity acceleration component is an acceleration component of gravity acceleration within a target plane under the current posture information, and the target plane is a display plane of the conversation interface.
11. The method according to claim 10, characterized in that The component information includes direction information and / or value information.
12. The method according to any one of claims 1 to 4, characterized in that: The preset area is the interface background area of the conversation interface.
13. A display device for a conversation interface, characterized in that: include: An element display module, configured to display a first interface element and a second interface element in a conversation interface, wherein the first interface element supports movement within a preset area of the conversation interface; A mode adjustment module is used to adjust the first display mode of the first interface element in the session interface in response to receiving posture change information of a target electronic device, and keep the second display mode of the second interface element in the session interface unchanged. The target electronic device is an electronic device on which the session interface is displayed, and the first display mode of the first interface element is associated with the posture change information and / or current posture information of the target electronic device.
14. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for displaying a conversation interface according to any one of claims 1-12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for displaying a conversation interface according to any one of claims 1 to 12 when executed.
16. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method for displaying a conversation interface according to any one of claims 1 to 12 is implemented.
Citation Information
Cited By
Conversation interface display method and apparatus, electronic device, storage medium, and program product
WO2026012374A1
