Android Question ImageView - B4XImageView - B4XView

LucaMs

Expert
Licensed User
Longtime User
I have a B4A routine that originally worked on a B4A ImageView; now I want to "convert" it to B4X.

When possible, from Designer I generate all members as B4XView. If I do this even for ImageViews, my routine works (*) but also the B4XImageView type exists. Furthermore, ImageView exists both in B4A and B4J (perhaps in B4i too), so I'm a little bit... lost!

In general, how to choose, how to proceed?


(*) My routine uses:
iv.Parent, iv.Left, iv.Top, iv.Width, iv.Height
iv is passed as a parameter (originally as B4A ImageView); B4XImageView doesn't have these properties, ImageView and B4XView do.


EDIT:
Only now I have read this thread:
[B4X] B4XImageView - ImageView + resize modes
I think the solution would be to add those properties to this new custom view :)
 
Last edited:
Top