Android opens a new thread to realize the electronic billboard project

Using the multithreading technology we have learned before, we do a project to open a new thread to realize the electronic billboard

Interface layout file, add ImageView picture control to display a picture and a textview control to display advertising instructions.

res/layout/main.xml:

Add several advertising pictures (ad1.jpg, ad2.jpg, ad3.jpg, ad4.jpg, Ad5. JPG) under RES / drawable

In the main interface, generate image resource files with random numbers constantly transformed in ImageView space to realize an electronic billboard similar to slide mainactivity:

The display effect is shown in the figure

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