Wish B4Xview.Bitmap Gravity

Star-Dust

Expert
Licensed User
Longtime User
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
 
There is no Gravity.Fit in Android.

B4XView.Bitmap behavior:

SS-2018-05-17_09.11.28.png


Set to Fill:
Code: Copy
B4XView.Bitmap = Bitmap.Resize(B4XView.Width, B4XView.Height, False)
 
OK thanks. This already helps me
 
Back
Top