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.

B4X:
B4Xview.BitmapGravity=Value
B4Xview.Bitmap=Bitmap
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is no Gravity.Fit in Android.

B4XView.Bitmap behavior:

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


Set to Fill:
B4X:
B4XView.Bitmap = Bitmap.Resize(B4XView.Width, B4XView.Height, False)
 

Star-Dust

Expert
Licensed User
Longtime User
OK thanks. This already helps me
 
Top