Hello,
I have a panel with some views. One of them is a imageview. When I click the imageview i want to change the star image (staron/staroff) but it is not working. What i am missing?
Any help appreciated.
Thanks a lot,
I have a panel with some views. One of them is a imageview. When I click the imageview i want to change the star image (staron/staroff) but it is not working. What i am missing?
Any help appreciated.
Thanks a lot,
Sub imvStar_click
End Sub
Dim send As ImageView
send=Sender
Dim Bitmap1 As Bitmap
Log("Fav("&send.Tag&")="&Favorito.Get(send.Tag))
If Favorito.Get(send.Tag)<>"1" Then
Else
End If
send.Bitmap=Bitmap1
SaveFavoritos
send=Sender
Dim Bitmap1 As Bitmap
Log("Fav("&send.Tag&")="&Favorito.Get(send.Tag))
If Favorito.Get(send.Tag)<>"1" Then
'ACTIVAMOS FAVORITO
'==================
Favorito.Set(send.Tag,"1")
Bitmap1.Initialize(File.DirAssets,"starOn.png")
'==================
Favorito.Set(send.Tag,"1")
Bitmap1.Initialize(File.DirAssets,"starOn.png")
Else
'DESACTIVAMOS FAVORITO
'=====================
Favorito.Set(send.Tag,"0")
Bitmap1.Initialize(File.DirAssets,"starOff.png")
'=====================
Favorito.Set(send.Tag,"0")
Bitmap1.Initialize(File.DirAssets,"starOff.png")
End If
send.Bitmap=Bitmap1
SaveFavoritos
End Sub
Last edited: