Hey everyone I have a quick question about changing an imagview image. But right now it will not work. I have a listview and it determines what is clicked by using the event below:
I am using the same activity for each listview item with the same layout all I am wanting to do is change the image when one or the the other is clicked on. I will attach a sample project of what I tried and it did not work. It will not load the image for some reason.
B4X:
Sub ListView1_ItemClick (Position As Int, Value As Object)
If Value = "1" Then
StartActivity(BulbAct)
End If
If Value = "2" Then
StartActivity(BulbAct)
End If
End Sub
I am using the same activity for each listview item with the same layout all I am wanting to do is change the image when one or the the other is clicked on. I will attach a sample project of what I tried and it did not work. It will not load the image for some reason.