Star-Dust Expert Licensed User Longtime User May 17, 2018 #1 I need to set the Gravity of the bitmap in the B4Xview views. Currently the default is set to Center, but I would like to set it to Fit or Fill. Code: Copy B4Xview.BitmapGravity=Value B4Xview.Bitmap=Bitmap
I need to set the Gravity of the bitmap in the B4Xview views. Currently the default is set to Center, but I would like to set it to Fit or Fill. Code: Copy B4Xview.BitmapGravity=Value B4Xview.Bitmap=Bitmap
Erel B4X founder Staff member Licensed User Longtime User May 17, 2018 #2 There is no Gravity.Fit in Android. B4XView.Bitmap behavior: Set to Fill: Code: Copy B4XView.Bitmap = Bitmap.Resize(B4XView.Width, B4XView.Height, False)
There is no Gravity.Fit in Android. B4XView.Bitmap behavior: Set to Fill: Code: Copy B4XView.Bitmap = Bitmap.Resize(B4XView.Width, B4XView.Height, False)