Android Question images random

Tata Mapassa

Member
Licensed User
Longtime User
Hello, I have 4 images and I want an image to appear randomly on the background of the layout when opening the application.
 

Tata Mapassa

Member
Licensed User
Longtime User
i found this n = Rnd(1, 4) ' in your case between 1 and 3
ImageView1.Bitmap = LoadBitmap(File.DirAssets, "Image_" & NumberFormat(n, 2, 0) & ".png")
Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…