Android can customize the vertical loop scrolling layout

Vertical scrolling advertising subtitles are all in one line. This control can customize the layout, that is, the effect of the adapter on scrolling multiple lines of item loop can also be realized through multiple verticalbannerview methods... Effect figure 2

It's time to change the wheel, GitHub https://github.com/guojunustb/VerticalBannerView

design sketch

Effect drawing 2

Android studio uses

XML layout file

Like the normal layout, the adapter inherits from the basebaneradapter < T >

Set update data

start and stopping

Data flashing occurs

Note: after using the network request, remember to first stop (), then set the new data, and finally execute start ()

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
分享
二维码
< <上一篇
下一篇>>