Public Sub Ajusta_Imagem1(ivImagem As ImageView,pastaImagem As String,nomeImagem As String)
#IF B4A
ivImagem.SetBackgroundImage(XUI.LoadBitmapResize(pastaImagem, nomeImagem, ivImagem.Width, ivImagem.Height, True)).Gravity = Gravity.CENTER
#ELSE IF B4I
Dim scale As Float = GetDeviceLayoutValues.NonnormalizedScale
ivImagem.Bitmap = LoadBitmapResize(pastaImagem,nomeImagem,ivImagem.Width * scale,ivImagem.Height * scale,True)
#End If
End Sub
Even so old models as iPhone 7, 8 Plus have width 1242 pixels. it looks that a picture in side menu is about 40% of width (approx. 500 pixels * 500 pixels).
Which size has a png-file ? Guess, that much less, so IOS really "stretches" and a picture on the screen looks terrible.
Use SVG file (if possible).