Android easybarrage achieves lightweight barrage effect

This paper introduces the lightweight barrage effect realized by Android easybarrage, which is shared with you as follows:

summary

Easybarrage is a lightweight bullet screen effect on Android platform. Currently, the following settings are supported:

github: https://github.com/shiweibsw/EasyBarrage

Display effect

Horizontal screen

Vertical screen

use

1 build.gradle

2 xml

Attribute description

3 java code

Add barrage data

Note that the barrage object has a variety of structures. You can set the font color and whether to display the border, such as

3.1 specify font color

App: random needs to be set_ Color = "false" is valid

3.2 display border

3.3 specify color and display border

3.3 display content only

Add a barrage

The destroy method is called at the end

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>