Android Question Msgbox2Async and LoadBitmapResize

ciginfo

Well-Known Member
Licensed User
Longtime User
Hello,
How to modify the size of the icon that I place in a Msgbox.
If I change the values 60dip, 60dip the size of the icon remains the same.
Thank you.
B4X:
Dim icon As  Bitmap = LoadBitmapResize(File.DirAssets, "btnsourd.png", 60dip, 200dip, True)
Msgbox2Async("Voulez vous envoyer votre message ?", "Envoi Message", "OUI", "Annuler", "NON", icon, False)
Wait For MsgBox_Result (Result As Int)
If Result = DialogResponse.POSITIVE Then
  ........
End If
 
1) you have 60 and 200 in your code, not 60, 60
2) Make the last parameter False, not True
 
Upvote 0
60dip and 200dip is a typo on my part.
If I set 60dip, 60dip or 200dip, 200dip with the last parameter set to False (or True) the size of the image always remains the same
 
Upvote 0
I don´t think you can change the size.
It is a Android-dialog which is shown.
 
Upvote 0
Back
Top