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

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

Info

Publication number
CN113032051A
CN113032051A CN202110549298.1A CN202110549298A CN113032051A CN 113032051 A CN113032051 A CN 113032051A CN 202110549298 A CN202110549298 A CN 202110549298A CN 113032051 A CN113032051 A CN 113032051A
Authority
CN
China
Prior art keywords
data
text
expression
voice control
list component
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.)
Pending
Application number
CN202110549298.1A
Other languages
Chinese (zh)
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 Yizhen Xuesi Education Technology Co Ltd
Original Assignee
Beijing Yizhen Xuesi Education 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 Yizhen Xuesi Education Technology Co Ltd filed Critical Beijing Yizhen Xuesi Education Technology Co Ltd
Priority to CN202110549298.1A priority Critical patent/CN113032051A/en
Publication of CN113032051A publication Critical patent/CN113032051A/en
Pending legal-status Critical Current

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/44568Immediately runnable code
    • 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

Abstract

The embodiment of the application provides a data display method and device, electronic equipment and a computer storage medium. The method comprises the following steps: acquiring service data and interactive data aiming at the service data; displaying interactive data in a pre-created sliding list component; the business data is displayed in a header layout previously added for the sliding list component. In the embodiment of the application, interactive data display is performed in a native page mode, so that the process degree of the data display process is higher, the data display effect is improved, and the user experience is improved. In addition, according to the embodiment of the application, the head layout is added to the sliding list component, the interactive data is displayed in the sliding list component, the service data is displayed in the head layout of the sliding list component, and decoupling of the service data and the interactive data is achieved.

Description

Data display method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the application relates to the technical field of page display, in particular to a data display method and device, electronic equipment and a computer storage medium.
Background
To improve the user's sense of participation, many APPs (applications) have an interactive function: during the use of the APP, the user may perform interactive operation on the service data provided by the APP, for example: when a user watches a certain piece of video or image-text data through the APP, the video or image-text data can be commented, and comment contents (namely interactive data) are displayed below the video or image-text data.
At present, the interactive data is mainly displayed through an H5 page, however, when the H5 page is opened each time, the acquired data needs to be reloaded, and the dependency degree on the network is high, and particularly in a weak network environment, the loading speed is slow, so that the display effect is poor, and correspondingly, the user experience is also poor.
Disclosure of Invention
The application aims to provide a data display method, a data display device, an electronic device and a computer storage medium, which are used for improving the display effect of data and further improving the user experience.
According to a first aspect of embodiments of the present application, there is provided a data display method, the method including:
acquiring service data and interactive data aiming at the service data;
displaying the interaction data in a pre-created sliding list component;
displaying the business data in a head layout which is added in advance for the sliding list component.
According to a second aspect of embodiments of the present application, there is provided a data display apparatus, the apparatus comprising:
the data acquisition module is used for acquiring service data and interactive data aiming at the service data;
the first display module is used for displaying the interaction data in a pre-created sliding list component;
and the second display module is used for displaying the service data in a head layout which is added in advance aiming at the sliding list component.
According to a third aspect of embodiments herein, there is provided an electronic apparatus, the apparatus comprising: one or more processors; a computer readable medium configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data display method of the first aspect.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable medium on which a computer program is stored, which when executed by a processor, implements the data display method according to the first aspect.
According to the data display method, the data display device, the electronic equipment and the computer storage medium, business data and interactive data aiming at the business data are obtained; displaying the interaction data in a pre-created sliding list component; displaying the business data in a head layout which is added in advance for the sliding list component.
In the embodiment of the application, a native sliding list component is created in advance for displaying interactive data, that is, in the embodiment of the application, interactive data is displayed in a native page mode, and compared with the display mode through an H5 page, the native page running speed is faster, so that the process degree of the data display process is higher, the display effect of data is improved, and further, the user experience is also improved.
In addition, according to the embodiment of the application, the head layout is added to the sliding list component, the interactive data is displayed in the sliding list component, the service data is displayed in the head layout of the sliding list component, and decoupling of the service data and the interactive data is achieved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart illustrating steps of a data display method according to a first embodiment of the present application;
fig. 2 is a schematic diagram of a display page provided in an embodiment of the present application;
FIG. 3 is a flow chart illustrating steps of a data display method according to a second embodiment of the present application;
FIG. 4 is a schematic diagram of another display page provided in the embodiments of the present application;
FIG. 5 is a flow chart of steps of a data display method according to a third embodiment of the present application;
FIG. 6 is a schematic structural diagram of a data display device according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application;
fig. 8 is a hardware structure of an electronic device according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The first embodiment,
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a title processing method according to a first embodiment of the present application.
The title processing method of the embodiment of the application comprises the following steps:
step 102, acquiring service data and interactive data aiming at the service data.
The business data may be object data targeted by an interactive operation, and the interactive operation may be a comment operation, and the like. For example: for the APP providing the teaching video, the teaching video is service data, a user can comment on the video content in the process of watching the teaching video, and comment data of the user is interactive data aiming at the service data.
And 104, displaying the interactive data in the pre-created sliding list component.
In the embodiment of the application, the interactive data may be audio data or text data. For text data, the text data may be plain text data containing only normal text, or rich text data, for example: rich text data containing static expressions (static pictures), rich text data containing hyperlinks containing static expressions and hyperlinks, and rich text data containing dynamic expressions, and the like.
When the amount of the interactive data is large (the interactive data cannot be displayed on the display page at the same time), the interactive data is usually additionally displayed through a pull-down operation of the user, and therefore, a sliding list component (a slidable list view) may be created in advance, so that the additional display of the interactive data is realized through the sliding list component after the interactive data is acquired. The sliding list component may include a RecycleView or a ListView.
And 106, displaying the business data in the head layout which is added in advance for the sliding list component.
Since the service data is usually existing data, and the corresponding logic code is usually mature on-line code, in order to ensure stability of the service data, a header layout (header view) added in the sliding list component in advance may be added to the service data in the header layout. And then the interactive data is displayed in the sliding list component, and the service data is displayed in the head layout of the sliding list component, so that the decoupling of the service data and the interactive data is realized, and the interactive function can be provided and the display of the interactive data and the service data is realized under the condition of not modifying the existing service code.
In addition, in the embodiment of the application, when the sliding list component is a recycle view, the layout effect of the head layout added for the sliding list component is not limited, and the head layout can be set through the layout manager according to actual needs. For example: the arrangement may be a linear arrangement, specifically, a longitudinal effect, a transverse effect, etc.
Referring to fig. 2, fig. 2 is a schematic diagram of a display page provided in the embodiment of the present application, where the display page includes two parts: the system comprises a sliding list component part and a head layout part added aiming at the sliding list component, wherein the acquired interactive data (comment data) aiming at the business data are displayed in the sliding list component part, and the acquired business data (teaching video) are displayed in the head layout part added aiming at the sliding list component.
In the embodiment of the application, a native sliding list component is created in advance for displaying interactive data, that is, in the embodiment of the application, interactive data is displayed in a native page mode, and compared with the display mode through an H5 page, the native page running speed is faster, so that the process degree of the data display process is higher, the display effect of data is improved, and further, the user experience is also improved.
In addition, according to the embodiment of the application, the head layout is added to the sliding list component, the interactive data is displayed in the sliding list component, the service data is displayed in the head layout of the sliding list component, and decoupling of the service data and the interactive data is achieved.
The data display method of the embodiments of the present application may be executed by any suitable electronic device having data processing capability and data display capability, including but not limited to: servers, PCs, even high performance mobile terminals, etc.
Example II,
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of a data display method according to a second embodiment of the present application.
The data display method of the embodiment of the application comprises the following steps:
step 302, service data and interactive data aiming at the service data are obtained, and the interactive data comprises a plurality of audio data.
The business data may be object data targeted by an interactive operation, and the interactive operation may be a comment operation, and the like. Also taking the APP providing the teaching video as an example, the teaching video is service data, the user can make an audio comment for the video content in the process of watching the teaching video, and the audio data when the user comments is interactive data for the service data. In the embodiment of the application, the number of the audio data may be multiple, for example, the audio data may be audio comment data of the same user on the same teaching type video, or audio comment data of different users on the same teaching type video, and the like.
Step 304, a voice control corresponding to the audio data is created in the pre-created slide list component.
Specifically, a corresponding speech control may be created for each (each piece of) audio data, for example: when the audio data obtained in step 302 are A, B and C, which are 3 in total, 3 speech controls may be created in the sliding list component, and are: a voice control K1 corresponding to the audio data a, a voice control K2 corresponding to the audio data B, and a voice control K3 corresponding to the audio data C.
Step 306, obtaining the duration information of the audio data, and displaying the duration information in the voice control.
The duration information of the audio data may be obtained simultaneously when the audio data is obtained from the server, or may be obtained after the audio data is obtained from the server and the obtained audio data is locally analyzed. In the embodiment of the present application, a specific manner for acquiring the duration information is not limited.
Referring to fig. 4, fig. 4 is a schematic diagram of another display page provided in the embodiment of the present application, and in fig. 4, 3 speech controls are created in a sliding list component: the voice control K1 corresponding to the audio data a, the voice control K2 corresponding to the audio data B, and the voice control K3 corresponding to the audio data C show the duration information of the audio data in the voice controls: the duration of the audio data a is shown in the voice control K1: 9s, the duration of the audio data B is shown in the voice control K2: 12s, and the duration of the audio data C is shown in the voice control K3: and 5 s.
Step 308, when the click operation for the first voice control is detected, performing broadcast registration on the first voice control and enabling the first voice control to send the first broadcast stopping information, so that the second voice control receiving the first broadcast information stops the voice broadcast operation and performs broadcast cancellation.
The first voice control and the second voice control are different voice controls.
Step 310, playing first audio data corresponding to the first voice control.
For the sake of understanding, the specific process of step 308 and step 310 is explained below by taking fig. 4 as an example:
suppose that, during the playing of the audio data B, a click operation of a user on the voice control K1 (the first voice control) is detected, at this time, a broadcast registration is performed on the voice control K1, after the broadcast registration process of K1 is completed, the K1 sends broadcast stop information, so that after the broadcast stop information sent by the K2 (the voice control corresponding to the audio data B, the second voice control) that completes the broadcast registration receives the broadcast stop information sent by the K1, the playing of the audio data B is stopped, and at the same time, a logout operation is performed on the broadcast that has been previously registered, and the playing of the audio data a (the first audio data corresponding to the voice control K1) is started.
In the process, when the current audio data starts to be played, the corresponding voice control is subjected to broadcast registration, and a notification of stopping broadcasting is sent to other voice controls which have finished broadcast registration, so that the other voice controls which are playing the audio data stop the playing operation of the audio data, and thus the current audio data is played.
In addition, after the broadcast registration is performed, the voice widget has a broadcast receiving function (i.e., starts a broadcast information listening state), and the listening state consumes system resources. In the embodiment of the application, when the voice control stops the playing operation of the audio data, the broadcast cancellation is performed on the voice control, so that the consumption of system resources is reduced while only one audio data can be in the playing state at the same time.
Optionally, in some of the embodiments, the method further comprises:
in the process of playing the first audio data, if the first voice control receives second broadcast stopping information sent by a local operating system, stopping playing the first voice playing operation; and the second broadcast stopping information is sent when the local operating system detects that the preset interrupt operation is performed.
The preset interruption operation may be an operation set according to actual needs and used for interrupting the playing process of the current audio data, for example: the screen turning operation triggered by the user can be as follows: a user clicks a preset screen rejection button to trigger screen rejection operation; operations may also be performed for displacing the background, for example: and clicking a replacement background operation triggered by a preset HOME key on the equipment by the user, and switching the APP to the background operation by the operation.
In the embodiment of the application, when the device operating system detects the preset interruption operation, broadcast stop information is sent to the first voice control corresponding to the first audio data in the playing state, so as to stop playing the first voice playing operation, and further improve the operation experience of the user.
In the embodiment of the application, a native sliding list component is created in advance for displaying interactive data, that is, in the embodiment of the application, interactive data is displayed in a native page mode, and compared with the display mode through an H5 page, the native page running speed is faster, so that the process degree of the data display process is higher, the display effect of data is improved, and further, the user experience is also improved.
In addition, according to the embodiment of the application, the head layout is added to the sliding list component, the interactive data is displayed in the sliding list component, the service data is displayed in the head layout of the sliding list component, and decoupling of the service data and the interactive data is achieved.
Meanwhile, in the embodiment of the application, when the current audio data starts to be played, the corresponding voice control is broadcast and registered, and a notification of stopping broadcasting is sent to other voice controls which have finished broadcast and registered, so that the other voice controls which are playing the audio data stop the playing operation of the audio data, and the current audio data is played.
The data display method of the embodiments of the present application may be executed by any suitable electronic device having data processing capability and data display capability, including but not limited to: servers, PCs, even high performance mobile terminals, etc.
Example III,
Referring to fig. 5, fig. 5 is a flowchart illustrating steps of a data display method according to a third embodiment of the present application.
The data display method of the embodiment of the application comprises the following steps:
step 502, acquiring service data and interactive data aiming at the service data, wherein the interactive data comprises text data, and the text data comprises a dynamic expression identifier.
The dynamic expression identifier may be a preset identifier corresponding to a dynamic expression, where the dynamic expression may be a lottie animation or the like.
The dynamic expression is generally represented by an expression data packet, the expression data packet includes multiple frames of static expression pictures, the data volume is large, and in general, the types and the number of the dynamic expressions included in a dynamic expression library are large. Therefore, in the embodiment of the application, the dynamic expression identifier is introduced, and when data interaction is performed between the server and the client device, if the interactive data contains a dynamic expression with a large data volume, the dynamic expression is represented by the dynamic expression identifier corresponding to the dynamic expression, so that the data volume in the data transmission process is reduced.
And step 504, creating a text control corresponding to the text data in the pre-created sliding list component.
In step 506, the position information of the dynamic emoticon in the text data is determined.
For example, the interaction data acquired in step 502 is: "i eat # oxygenation # today and have eaten # ku # haha", where "# oxygenation #" and "# ku #" are both dynamic expression identifiers, in this step, the position information of the two dynamic expression identifiers in the acquired interactive data can be determined.
Step 508, obtaining an expression data packet corresponding to the dynamic expression identifier from a preset dynamic expression library; the expression data packet comprises a plurality of frames of static expression pictures.
The preset dynamic expression library may be located locally in the device or in other devices.
Also taking the dynamic expression identifiers # oxygenation # "and # ku #" in the step 506 as examples, in this step, expression data packets corresponding to the dynamic expression identifiers "# oxygenation #" and "# ku #" may be respectively obtained from a preset dynamic expression library, specifically: the emotion data package comprises an emotion data package 1 corresponding to the # gaoxicing #, and an emotion data package 2 corresponding to the # ku #, wherein the emotion data package 1 and the emotion data package 2 both comprise a plurality of frames of static emotion pictures.
When the preset dynamic expression library is located in other equipment, in order to reduce the consumption of network resources in the expression data packet acquisition (loading) process, the expression data packet corresponding to the acquired dynamic expression identifier can be locally stored, so that when the expression data packet corresponding to the same dynamic expression identifier needs to be acquired again, the expression data packet can be locally acquired without asynchronous loading from the dynamic expression libraries of other equipment.
And step 510, replacing the dynamic expression identifier in the text data with the expression data packet according to the position information to obtain dynamically replaced text data.
And step 512, refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control.
According to the position information of the "# oxygenation #" and "# ku #" obtained in the step 506, for the text data that "i have eaten # oxygenation #, i have eaten # ku # haha", i have eaten # oxygenation #, i have eaten # ku # haha again, replacing the "# oxygenation #" with the expression data packet 1, and replacing the "# ku #" with the expression data packet 2, thereby obtaining dynamically replaced text data.
Optionally, in some embodiments, before step 510, it is also possible to:
judging whether the number of the dynamic expression identifiers contained in the text data is smaller than a preset number threshold value or not;
if so, executing the step of replacing the dynamic expression identifier in the text data by adopting the expression data packet according to the position information to obtain the replaced text data;
if not, selecting a frame of static expression picture from the expression package according to a preset selection rule to serve as a target static expression picture; replacing the dynamic expression identifier in the text data by the target static expression picture according to the position information to obtain statically replaced text data;
displaying the statically replaced text data in the text control.
Since the configuration of the device is more demanding for displaying dynamic data, for example: for devices with lower configuration, if more data needs to be dynamically displayed, a pause phenomenon may occur during display, and even more, the entire device may not be used normally. Therefore, in the embodiment of the application, after the expression data packets corresponding to the dynamic expression identifiers are obtained, the number of the dynamic expression identifiers (that is, the number of the dynamic expression data packets) may be judged first, and if the number is small (smaller than a preset number threshold), a subsequent operation is performed to obtain the dynamically replaced text data and dynamically display the dynamically replaced text data in the text control; however, if the number is large (greater than or equal to the preset number threshold), a frame of static expression picture is selected to replace the dynamic expression identifier in the text data, so that the statically replaced text data is obtained, and the statically replaced text data is statically displayed in the text control, so that the phenomenon of pause and abnormal use of the device can be effectively avoided, and the normal use of the device by the user is ensured.
In the embodiment of the present application, specific values of the preset number threshold are not limited, and may be determined according to the configuration of the device, for example: the preset number threshold may be set to 3 according to the configuration of the device, and when the number of the dynamic emoticons is greater than or equal to 3, the statically replaced text data is obtained by the above method, so as to statically display the statically replaced text data in the text control.
Optionally, in some embodiments, before the step 512 refreshes the text control according to a preset refresh rule to dynamically display the dynamically replaced text data in the text control, the method further includes:
judging whether the text control is in a display page or not;
if so, executing the step of refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control;
and if not, not dynamically displaying the dynamically replaced text data.
Specifically, whether the current file control is in a display page or not can be determined according to the range of a control (text control/voice control) in a sliding list component displayed in the page and the position of the current text control in all the controls of the sliding list component, and when the current text control is in the page, the text control is refreshed according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control; when the page is not in the page, the dynamically replaced text data is not dynamically displayed, specifically: for example, a frame of static emoticon may be selected to replace the dynamic emoticon identifier in the text data, resulting in statically replaced text data for static display of the statically replaced text data in the text control. For example: the range of controls in the sliding list component displayed in the page is: and if the current text control corresponding to the text data containing the dynamic expression identifier is located at the 20 th control in the whole sliding list component, the current text control is not located in the display page, and the text data containing the dynamic expression identifier is converted into the statically replaced text data instead of dynamically displaying the dynamically replaced text data, so that the statically replaced text data is added to the current text control.
In addition, in this embodiment of the application, the text data obtained in step 502 may further include plain text data, static expressions (static pictures), hyperlinks, and other data. For the static picture, the static picture can be directly added into the text control through the ImageSpan to be displayed; for the hyperlink, the hyperlink can be directly added to the text control for display through the ClickableSpan, and the display process of the plain text data, the picture and the hyperlink is not repeated here.
In the embodiment of the application, a native sliding list component is created in advance for displaying interactive data, that is, in the embodiment of the application, interactive data is displayed in a native page mode, and compared with the display mode through an H5 page, the native page running speed is faster, so that the process degree of the data display process is higher, the display effect of data is improved, and further, the user experience is also improved.
According to the embodiment of the application, the head layout is added to the sliding list component, then the interactive data is displayed in the sliding list component, the business data is displayed in the head layout of the sliding list component, and decoupling of the business data and the interactive data is achieved.
Meanwhile, in the embodiment of the application, when the interactive data is text data and the text data contains the dynamic expression identifier, the text data can be dynamically displayed, that is, in the embodiment of the application, the dynamic display of rich text data containing dynamic expressions can be realized, and the user experience is further improved.
The data display method of the embodiments of the present application may be executed by any suitable electronic device having data processing capability and data display capability, including but not limited to: servers, PCs, even high performance mobile terminals, etc.
Example four,
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data display device according to a fourth embodiment of the present application. The data display device provided by the embodiment of the application comprises:
a data obtaining module 602, configured to obtain service data and interaction data for the service data;
a first display module 604 for displaying interactive data in a pre-created sliding list component;
a second display module 606, configured to display the service data in the header layout that is added in advance for the sliding list component.
Optionally, in some of these embodiments, the interaction data comprises audio data; for the audio data, the first display module 604 is specifically configured to:
creating a voice control corresponding to the audio data in a pre-created sliding list component;
acquiring duration information of audio data, and displaying the duration information in a voice control;
and when the clicking operation aiming at the voice control is detected, playing the audio data corresponding to the voice control.
Optionally, in some embodiments, the number of the voice controls is multiple; when the first display module 404 executes, when the click operation for the voice control is detected and audio data corresponding to the voice control is played, specifically, the first display module is configured to:
when the click operation aiming at the first voice control is detected, the first voice control is subjected to broadcast registration and is enabled to send first broadcast stopping information, so that the second voice control receiving the first broadcast information stops the voice broadcast operation and is subjected to broadcast cancellation; the first voice control and the second voice control are different voice controls;
and playing first audio data corresponding to the first voice control.
Optionally, in some embodiments, the first display module 604 is further configured to:
in the process of playing the first audio data, if the first voice control receives second broadcast stopping information sent by a local operating system, stopping playing the first voice playing operation; and the second broadcast stopping information is sent when the local operating system detects the preset interrupt operation.
Optionally, in some embodiments, the interaction data includes text data, and the text data includes a dynamic emoticon; for text data, the first display module 604 is specifically configured to:
creating a text control corresponding to the text data in a pre-created sliding list component;
determining position information of the dynamic expression identifier in the text data;
acquiring an expression data packet corresponding to the dynamic expression identifier from a preset dynamic expression library; the expression data packet comprises a plurality of frames of static expression pictures;
replacing the dynamic expression identifier in the text data by adopting the expression data packet according to the position information to obtain dynamically replaced text data;
and refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control.
Optionally, in some embodiments, before performing replacing the dynamic emoticon identifier in the text data with the emoticon data packet according to the location information, and obtaining dynamically replaced text data, the first display module 604 is further configured to:
judging whether the number of the dynamic expression identifiers contained in the text data is smaller than a preset number threshold value or not;
if so, executing a step of replacing the dynamic expression identifier in the text data by adopting the expression data packet according to the position information to obtain the replaced text data;
if not, selecting a frame of static expression picture from the expression package according to a preset selection rule to serve as a target static expression picture; replacing the dynamic expression identifier in the text data by using the target static expression picture according to the position information to obtain statically replaced text data;
displaying statically replaced text data in a text control
Optionally, in some embodiments, the first display module 604, before performing refreshing the text control according to a preset refresh rule to dynamically display the dynamically replaced text data in the text control, is further configured to:
judging whether the text control is in a display page or not;
if so, executing a step of refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control;
and if not, dynamically displaying the dynamically replaced text data.
The data display device of the embodiment of the application is used for realizing the corresponding data display method in the foregoing multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again. In addition, the functional implementation of each module in the data display device in the embodiment of the present application can refer to the description of the corresponding part in the foregoing method embodiment, and is not repeated here.
Example V,
Fig. 7 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application; the electronic device may include:
one or more processors 701;
a computer-readable medium 702, which may be configured to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the data display method according to the first embodiment or the second embodiment.
Example six,
Fig. 8 is a hardware structure of an electronic device according to a sixth embodiment of the present application; as shown in fig. 8, the hardware structure of the electronic device may include: a processor 801, a communication interface 802, a computer-readable medium 803, and a communication bus 804;
wherein the processor 801, the communication interface 802, and the computer readable medium 803 communicate with each other via a communication bus 804;
alternatively, the communication interface 802 may be an interface of a communication module, such as an interface of a GSM module;
the processor 801 may be specifically configured to: acquiring service data and interactive data aiming at the service data; displaying interactive data in a pre-created sliding list component; the business data is displayed in a header layout previously added for the sliding list component.
The Processor 801 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The computer-readable medium 803 may be, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
In particular, according to an embodiment of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code configured to perform the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium. The computer program, when executed by a Central Processing Unit (CPU), performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code configured to carry out operations for the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may operate over any of a variety of networks: including a Local Area Network (LAN) or a Wide Area Network (WAN) -to the user's computer, or alternatively, to an external computer (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions configured to implement the specified logical function(s). In the above embodiments, specific precedence relationships are provided, but these precedence relationships are only exemplary, and in particular implementations, the steps may be fewer, more, or the execution order may be modified. That is, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a data acquisition module, a first display module, and a second display module. The names of these modules do not in some cases constitute a limitation to the modules themselves, and for example, the data acquisition module may also be described as a "module that acquires business data and interaction data for the business data".
As another aspect, the present application also provides a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing the data display method as described in the first or second embodiment.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: acquiring service data and interactive data aiming at the service data; displaying interactive data in a pre-created sliding list component; the business data is displayed in a header layout previously added for the sliding list component.
The expressions "first", "second", "said first" or "said second" used in various embodiments of the present disclosure may modify various components regardless of order and/or importance, but these expressions do not limit the respective components. The above description is only configured for the purpose of distinguishing elements from other elements. For example, the first user equipment and the second user equipment represent different user equipment, although both are user equipment. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure.
When an element (e.g., a first element) is referred to as being "operably or communicatively coupled" or "connected" (operably or communicatively) to "another element (e.g., a second element) or" connected "to another element (e.g., a second element), it is understood that the element is directly connected to the other element or the element is indirectly connected to the other element via yet another element (e.g., a third element). In contrast, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (a second element), no element (e.g., a third element) is interposed therebetween.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method of displaying data, the method comprising:
acquiring service data and interactive data aiming at the service data;
displaying the interaction data in a pre-created sliding list component;
displaying the business data in a head layout which is added in advance for the sliding list component.
2. The method of claim 1, wherein the interaction data comprises audio data; for the audio data, the displaying the interaction data in a pre-created sliding list component, comprising:
creating a voice control corresponding to the audio data in the pre-created sliding list component;
acquiring duration information of the audio data, and displaying the duration information in the voice control;
and when the clicking operation aiming at the voice control is detected, playing the audio data corresponding to the voice control.
3. The method of claim 2, wherein the number of the voice controls is plural; when the click operation for the voice control is detected, playing the audio data corresponding to the voice control, including:
when the click operation aiming at a first voice control is detected, performing broadcast registration on the first voice control and enabling the first voice control to send first broadcast stopping information, so that a second voice control receiving the first broadcast information stops the voice broadcast operation and performs broadcast cancellation; the first voice control and the second voice control are different voice controls;
and playing first audio data corresponding to the first voice control.
4. The method of claim 3, further comprising:
in the process of playing the first audio data, if the first voice control receives second broadcast stopping information sent by a local operating system, stopping playing the first voice playing operation; and the second broadcast stopping information is sent when the local operating system detects that the preset interrupt operation is performed.
5. The method of claim 1, wherein the interaction data comprises text data including dynamic emoticon identifiers;
for the text data, the displaying the interaction data in a pre-created sliding list component, comprising:
creating a text control corresponding to the text data in the pre-created sliding list component;
determining position information of the dynamic expression identifier in the text data;
acquiring an expression data packet corresponding to the dynamic expression identifier from a preset dynamic expression library; the expression data packet comprises a plurality of frames of static expression pictures;
replacing the dynamic expression identifier in the text data by the expression data packet according to the position information to obtain dynamically replaced text data;
and refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control.
6. The method according to claim 5, wherein before the replacing the dynamic emoticon identifier in the text data with the emoticon packet according to the location information to obtain dynamically replaced text data, the method further comprises:
judging whether the number of the dynamic expression identifiers contained in the text data is smaller than a preset number threshold value or not;
if so, executing the step of replacing the dynamic expression identifier in the text data by adopting the expression data packet according to the position information to obtain the replaced text data;
if not, selecting a frame of static expression picture from the expression package according to a preset selection rule to serve as a target static expression picture; replacing the dynamic expression identifier in the text data by the target static expression picture according to the position information to obtain statically replaced text data;
displaying the statically replaced text data in the text control.
7. The method of claim 5, wherein prior to said refreshing the text control according to a preset refresh rule to dynamically display the dynamically replaced text data in the text control, the method further comprises:
judging whether the text control is in a display page or not;
if so, executing the step of refreshing the text control according to a preset refreshing rule so as to dynamically display the dynamically replaced text data in the text control;
and if not, not dynamically displaying the dynamically replaced text data.
8. A data display device, the device comprising:
the data acquisition module is used for acquiring service data and interactive data aiming at the service data;
the first display module is used for displaying the interaction data in a pre-created sliding list component;
and the second display module is used for displaying the service data in a head layout which is added in advance aiming at the sliding list component.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the data display method according to any one of claims 1-7.
10. A computer storage medium, having stored thereon a computer program which, when executed by a processor, implements a data display method as claimed in any one of claims 1 to 7.
CN202110549298.1A 2021-05-20 2021-05-20 Data display method and device, electronic equipment and computer storage medium Pending CN113032051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110549298.1A CN113032051A (en) 2021-05-20 2021-05-20 Data display method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110549298.1A CN113032051A (en) 2021-05-20 2021-05-20 Data display method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN113032051A true CN113032051A (en) 2021-06-25

Family

ID=76455406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110549298.1A Pending CN113032051A (en) 2021-05-20 2021-05-20 Data display method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113032051A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666406A (en) * 2016-07-29 2018-02-06 腾讯科技(深圳)有限公司 Intelligent cards display methods and device
CN108959495A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Page display method, device, equipment and the computer storage medium of H5 webpage
CN110543307A (en) * 2019-07-23 2019-12-06 江苏联盟信息工程有限公司 application construction method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107666406A (en) * 2016-07-29 2018-02-06 腾讯科技(深圳)有限公司 Intelligent cards display methods and device
CN108959495A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Page display method, device, equipment and the computer storage medium of H5 webpage
CN110543307A (en) * 2019-07-23 2019-12-06 江苏联盟信息工程有限公司 application construction method and device

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
ANDROID_小黑: "Android实现语音发送&播放功能以及示例代码", 《HTTPS://BLOG.CSDN.NET/QQ_40785165/ARTICLE/DETAILS/109658968》 *
MAXIMILIAN_M: "Android ListView、RecyclerView两种方式实现聊天界面搭建", 《HTTPS://BLOG.CSDN.NET/OMRAPOLLO/ARTICLE/DETAILS/52691320》 *
MAXIMILIAN_M: "Android聊天实现图文混排(包括gif显示)", 《HTTPS://BLOG.CSDN.NET/OMRAPOLLO/ARTICLE/DETAILS/50586902?UTM_MEDIUM=DISTRIBUTE.PC_RELEVANT_DOWNLOAD.NONE-TASK-BLOG-BAIDUJS-1.NONECASE&DEPTH_1-UTM_SOURCE=DISTRIBUTE.PC_RELEVANT_DOWNLOAD.NONE-TASK-BLOG-BAIDUJS-1.NONECASE》 *
XIAOXIAO_THINK: "RecyclerView评论列表嵌套子评论列表", 《HTTPS://BLOG.CSDN.NET/QQ_37758735/ARTICLE/DETAILS/79297090》 *
杰瑞教育: "android实现gif图与文字混排", 《HTTPS://WWW.CNBLOGS.COM/JEREHEDU/P/4568077.HTML》 *
高凯,等: "《Android智能手机软件开发教程》", 30 June 2012, 国防工业出版社 *

Similar Documents

Publication Publication Date Title
US20220385952A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
US20230289516A1 (en) Method and apparatus for displaying online document, and storage medium
US20140372179A1 (en) Real-time social analysis for multimedia content service
CN111930973B (en) Multimedia data playing method and device, electronic equipment and storage medium
US10362359B2 (en) Video player framework for a media distribution and management platform
US20160170623A1 (en) Method for one-click subscribing to multiple channels of information on a single topic
CN110866183B (en) Social interface recommendation method and device, electronic equipment and storage medium
US20220365985A1 (en) Page jump method and apparatus, electronic device and computer-readable storage medium
CN108959199A (en) A kind of log highlights method, apparatus, storage medium and android terminal
US11652763B2 (en) Information display method and apparatus, and electronic device
WO2016207735A1 (en) A system and methods thereof for auto-playing video content on mobile devices
CN113574555A (en) Intelligent summarization based on context analysis of auto-learning and user input
US11809690B2 (en) Human-computer interaction method and apparatus, and electronic device
CN113721807A (en) Information display method and device, electronic equipment and storage medium
CN111031376A (en) Bullet screen processing method and system based on WeChat applet
CN113254136A (en) Information recommendation popup window display method, device, equipment and computer readable medium
CN114679628B (en) Bullet screen adding method and device, electronic equipment and storage medium
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
US20170171266A1 (en) Method and electronic device based on android platform for multimedia resource play
CN114201705A (en) Video processing method and device, electronic equipment and storage medium
US20240073488A1 (en) Live video processing method and apparatus, device and medium
WO2023179549A1 (en) Document block sharing method, apparatus and system, and storage medium
US10328336B1 (en) Concurrent game functionality and video content
CN113032051A (en) Data display method and device, electronic equipment and computer storage medium
CN111246242A (en) Searching method and device based on played video, application server and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210625

RJ01 Rejection of invention patent application after publication