fash866 Member Licensed User Longtime User Apr 21, 2015 #1 Hi: the problem is: there is many viewimages like : image1 image2 image3 image4 image5..... Can i use a for...next to handle them? example: for i =1 to 5 "image"&i . background = loadbitmap(...) next
Hi: the problem is: there is many viewimages like : image1 image2 image3 image4 image5..... Can i use a for...next to handle them? example: for i =1 to 5 "image"&i . background = loadbitmap(...) next
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2015 #2 Yes. There are many ways to do it. For example: B4X: Dim ImageViews As List = Array (image1, image2, ...) ... For Each iv As ImageView In ImageViews iv.Background = ... Next See this tutorial: https://www.b4x.com/android/forum/threads/8506/#content Upvote 0
Yes. There are many ways to do it. For example: B4X: Dim ImageViews As List = Array (image1, image2, ...) ... For Each iv As ImageView In ImageViews iv.Background = ... Next See this tutorial: https://www.b4x.com/android/forum/threads/8506/#content