Interface element display method, device, equipment and storage medium

文档序号:1415847 发布日期:2020-03-10 浏览:6次 中文

阅读说明:本技术 界面元素的显示方法、装置、设备及存储介质 (Interface element display method, device, equipment and storage medium ) 是由 李武军 于 2018-08-31 设计创作,主要内容包括:本发明实施例公开了一种界面元素的显示方法、装置、设备及存储介质。所述方法包括:在当前显示界面中,加载与所述当前显示界面关联的至少一个界面元素;获取与各所述界面元素对应的动画标签以及动画显示形式;将具有相同动画标签的界面元素,按照各自的动画显示形式,在所述当前显示界面中进行联动显示。通过本发明的技术方案,能够降低软件的开发和维护成本,提高软件功能的可扩展性以及稳定性。(The embodiment of the invention discloses a display method, a display device, display equipment and a storage medium of interface elements. The method comprises the following steps: loading at least one interface element associated with a current display interface in the current display interface; acquiring animation labels and animation display forms corresponding to the interface elements; and performing linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms. By the technical scheme, the development and maintenance cost of software can be reduced, and the expandability and stability of software functions can be improved.)

1. A display method of an interface element is characterized by comprising the following steps:

loading at least one interface element associated with a current display interface in the current display interface;

acquiring animation labels and animation display forms corresponding to the interface elements;

and performing linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms.

2. The method of claim 1, wherein after loading, in a current display interface, at least one interface element associated with the current display interface, further comprising:

acquiring a display hierarchy corresponding to each interface element;

and performing linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms, wherein the linkage display comprises the following steps:

and performing linkage display on the interface elements with the same animation label in the corresponding display level of the current display interface according to the respective animation display form and display level.

3. The method of claim 2, wherein prior to loading, in a current display interface, at least one interface element associated with the current display interface, further comprising:

acquiring a pre-configured function management class, wherein the function management class comprises a display hierarchy setting mode of each interface element associated with the current display interface;

and uniformly configuring the display hierarchy corresponding to each interface element through the function management class.

4. The method of claim 1, wherein prior to loading, in a current display interface, at least one interface element associated with the current display interface, further comprising:

acquiring a display interface matched with the screen display state of the display terminal as the current display interface;

different interface maintenance management classes are defined in different display interfaces, and the different interface maintenance management classes define associated interface elements;

the interface maintenance management class includes: a horizontal screen interface maintenance management class and a vertical screen interface maintenance management class.

5. The method of claim 1, wherein loading, in a current display interface, at least one interface element associated with the current display interface comprises:

if a trigger instruction for a target interface element is detected in a current display interface, loading an interface element display file corresponding to the target interface element;

and the interface element display file is configured with an animation label and an animation display form corresponding to the target interface element.

6. The method of claim 5, wherein the interface element display file is generated according to a corresponding layout file and a corresponding view base class;

wherein the layout file is used for determining the display form of the target interface element; different view base classes are used to implement different functions.

7. The method of claim 5, wherein obtaining an animation label and an animation display form corresponding to each interface element comprises:

determining at least one linkage interface element with the same animation label as the animation label corresponding to the target interface element in each interface element associated with the current display interface, and loading an interface element display file corresponding to the linkage interface element;

and performing linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms, wherein the linkage display comprises the following steps:

and performing linkage display on the target interface element and the linkage interface element in the current display interface according to respective animation display forms.

8. A display device for interface elements, comprising:

the element loading unit is used for loading at least one interface element associated with the current display interface in the current display interface;

the label obtaining unit is used for obtaining animation labels and animation display forms corresponding to the interface elements;

and the linkage display unit is used for carrying out linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms.

9. A display system for interface elements, comprising:

the device comprises an element setting module, a display module and a display module, wherein the element setting module is used for setting at least one interface element, and the interface element is correspondingly provided with an animation label and an animation display form;

the incidence relation setting module is used for setting the incidence relation between the at least one interface element and the display interface;

the element display module is used for displaying at least one interface element associated with the current display interface in the current display interface;

and the element management module is used for uniformly setting the interface display factors of the at least one interface element, wherein the interface display factors comprise display levels.

10. A computer device, the device comprising:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement a display method of an interface element as recited in any of claims 1-7.

11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of displaying an interface element according to any one of claims 1 to 7.

Technical Field

The embodiment of the invention relates to a computer technology, in particular to a user interface display technology.

Background

A large software platform often has multiple functions, and as the functions of the platform are continuously updated and increased, the maintenance cost and the instability of the platform are greatly increased.

Taking the live broadcast rooms in the network live broadcast platform as an example, each live broadcast room is correspondingly developed with a plurality of interface elements, such as interfaces of barrage, gift delivery, playing state, title setting, reporting and the like. Certain relations may exist among the interface elements, for example, the titles up and down need to enter and disappear at the same time, the live broadcast interface is reported to have to wait until the animation of the setting interface disappears, and then the animation is used.

Disclosure of Invention

The embodiment of the invention provides a display method, a display device, display equipment and a storage medium of interface elements, so as to reduce development and maintenance cost of software and improve expandability and stability of software functions.

In a first aspect, an embodiment of the present invention provides a method for displaying an interface element, including:

loading at least one interface element associated with a current display interface in the current display interface;

acquiring animation labels and animation display forms corresponding to the interface elements;

and performing linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms.

In a second aspect, an embodiment of the present invention further provides a display device for an interface element, where the display device includes:

the element loading unit is used for loading at least one interface element associated with the current display interface in the current display interface;

the label obtaining unit is used for obtaining animation labels and animation display forms corresponding to the interface elements;

and the linkage display unit is used for carrying out linkage display on the interface elements with the same animation label in the current display interface according to respective animation display forms.

In a third aspect, an embodiment of the present invention further provides a display system for an interface element, where the system includes:

the device comprises an element setting module, a display module and a display module, wherein the element setting module is used for setting at least one interface element, and the interface element is correspondingly provided with an animation label and an animation display form;

the incidence relation setting module is used for setting the incidence relation between the at least one interface element and the display interface;

the element display module is used for displaying at least one interface element associated with the current display interface in the current display interface;

and the element management module is used for uniformly setting the interface display factors of the at least one interface element, wherein the interface display factors comprise display levels.

In a fourth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:

one or more processors;

a memory for storing one or more programs;

when the one or more programs are executed by the one or more processors, the one or more processors implement the method for displaying the interface element according to any one of the embodiments of the present invention.

In a fifth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for displaying the interface element according to any one of the embodiments of the present invention.

According to the embodiment of the invention, at least one interface element associated with the display interface is loaded in the current display interface, the animation label and the animation display form corresponding to each interface element are obtained, the interface elements with the same animation label are displayed in a linkage manner in the current display interface according to the respective animation display forms, and the interface elements with the same animation label are displayed in a linkage manner, so that the animation label is only required to be changed when the linkage relationship is changed, the problems of high software development and maintenance cost and low software function expandability and stability caused by the fact that each interface element needs to be modified in the prior art are solved, and the effects of reducing the software development and maintenance cost and improving the software function expandability and stability are realized.

Drawings

Fig. 1 is a schematic flowchart illustrating a method for displaying an interface element according to an embodiment of the present invention;

fig. 2 is a schematic flowchart of a method for displaying an interface element according to a second embodiment of the present invention;

fig. 3 is a schematic structural diagram of a display device of an interface element according to a third embodiment of the present invention;

fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种直播间虚拟物品的显示方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类