vhd_bgh Member May 13, 2020 #1 Hi how can i change the pictures of "Cards list with CustomListView" example, with codes ? (given that it is in another layout) i used this: B4X: ImageView1.Bitmap=LoadBitmap(File.DirAssets,"test.png") but it did not apply i have to load items layout before it? Last edited: May 14, 2020
Hi how can i change the pictures of "Cards list with CustomListView" example, with codes ? (given that it is in another layout) i used this: B4X: ImageView1.Bitmap=LoadBitmap(File.DirAssets,"test.png") but it did not apply i have to load items layout before it?
Erel B4X founder Staff member Licensed User Longtime User May 14, 2020 #2 Do you want to change the image of an existing item? Why not change it when you add the item? Something like: B4X: Dim iv As B4XView = CLV1.GetPanel(ItemIndex).GetView(IndexOfImageView) iv.SetBitmap(...) Upvote 0
Do you want to change the image of an existing item? Why not change it when you add the item? Something like: B4X: Dim iv As B4XView = CLV1.GetPanel(ItemIndex).GetView(IndexOfImageView) iv.SetBitmap(...)