Wish B4Xview.Bitmap Gravity

Discussion in 'Bugs & wishlist' started by Star-Dust, May 17, 2018 at 6:56 AM.

  1. Star-Dust

    Star-Dust Expert Licensed 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:
    B4Xview.BitmapGravity=Value
    B4Xview.Bitmap=
    Bitmap
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no Gravity.Fit in Android.

    B4XView.Bitmap behavior:

    [​IMG]

    Set to Fill:
    Code:
    B4XView.Bitmap = Bitmap.Resize(B4XView.Width, B4XView.Height, False)
     
  3. Star-Dust

    Star-Dust Expert Licensed User

    OK thanks. This already helps me
     
Loading...