boten Active Member Licensed User Longtime User Dec 3, 2015 #1 Just started on B4J. Is there an equivalent of imageview.GRAVITY? I want to add an imageview to a form, set it's size by setsize(,) and FILL it with an image read from assets.
Just started on B4J. Is there an equivalent of imageview.GRAVITY? I want to add an imageview to a form, set it's size by setsize(,) and FILL it with an image read from assets.
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2015 #2 Uncheck the preserve ratio option: Note that you can set the image as the background of a pane and then it will have more gravity options: Upvote 0
Uncheck the preserve ratio option: Note that you can set the image as the background of a pane and then it will have more gravity options:
boten Active Member Licensed User Longtime User Dec 6, 2015 #3 seems that gravity is NOT available when the view is imageview Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 6, 2015 #4 That's true. ImageView has two modes: Fill and Fit. The preserve ratio determines which mode will be used. Upvote 0
That's true. ImageView has two modes: Fill and Fit. The preserve ratio determines which mode will be used.