How to fill ImageView and keep aspect ratio?
Erel's code resize ImageView1 fine, but I need fill ImageView 1 and keep the aspect ratio
Erel's code resize ImageView1 fine, but I need fill ImageView 1 and keep the aspect ratio
B4X:
Dim scale As Float = GetDeviceLayoutValues.NonnormalizedScale
ImageView1.Bitmap = LoadBitmapResize(File.DirAssets,"newest_filled.png",ImageView1.Width * scale,ImageView1.Height * scale,True)