B4J Question Center and Fit image on imageview?

techknight

Well-Known Member
Licensed User
Longtime User
I have been searching the forums for a bit without really cluing into what works with B4J.

But, I have images that I do not want to distort, but i want them to fit in the imageview without distortion. The Designer does this, but it puts the image at the top of the imageview. Not centered in the middle of the imageview vertically.

How do I achieve this?
 

jahswant

Well-Known Member
Licensed User
Longtime User
But, I have images that I do not want to distort, but i want them to fit in the imageview without distortion. The Designer does this, but it puts the image at the top of the imageview. Not centered in the middle of the imageview vertically.

How do I achieve this?
Use the customview B4XImageView in XUIViews thats all.
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
I might need to locate a new version as its not showing up in designer under customview, using 2.05

Ill go hunt down a newer version and try again. Thanks
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Use the customview B4XImageView in XUIViews thats all.

Just tried it, There is no fill-center. when you hit center it just goes outside of the box boundaries.

1627927654631.png
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
Still working on the code, it wont run until I get all the other errors/bugs fixed. since the designer wont run the customview extra stuff.
 
Upvote 0
Top