LucaMs Expert Licensed User Longtime User Jan 24, 2021 #1 "Same project" (B4XPages): B4J: B4A: Attachments ResizeModeTest.zip 149.8 KB · Views: 276
LucaMs Expert Licensed User Longtime User Jan 24, 2021 #2 The problem is the B4XImageView. Replacing it with an ImageView (B4A project) it works as expected. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #3 This will work better (in FILL mode): B4X: xImageView.mBase.SetLayoutAnimated(Duration, NewLeft, NewTop, NewWidth, NewHeight) xImageView.mBase.GetView(0).SetLayoutAnimated(Duration, 0, 0, NewWidth, NewHeight) In B4J the resize event is raised and it causes the internal ImageView to be updated when the base panel is resized. There is no similar event in B4A. Upvote 0
This will work better (in FILL mode): B4X: xImageView.mBase.SetLayoutAnimated(Duration, NewLeft, NewTop, NewWidth, NewHeight) xImageView.mBase.GetView(0).SetLayoutAnimated(Duration, 0, 0, NewWidth, NewHeight) In B4J the resize event is raised and it causes the internal ImageView to be updated when the base panel is resized. There is no similar event in B4A.
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #4 LucaMs said: The problem is the B4XImageView. Click to expand... B4XImageView is not a simple ImageView. It made of two views which have different sizes. Upvote 0
LucaMs said: The problem is the B4XImageView. Click to expand... B4XImageView is not a simple ImageView. It made of two views which have different sizes.
LucaMs Expert Licensed User Longtime User Jan 24, 2021 #5 Erel said: This will work better Click to expand... ? It's not what I need and get with B4J. No other way to solve? Upvote 0
Erel said: This will work better Click to expand... ? It's not what I need and get with B4J. No other way to solve?
LucaMs Expert Licensed User Longtime User Jan 24, 2021 #6 LucaMs said: No other way to solve? Click to expand... This one! LucaMs said: Replacing it with an ImageView (B4A project) it works as expected. Click to expand... Upvote 0
LucaMs said: No other way to solve? Click to expand... This one! LucaMs said: Replacing it with an ImageView (B4A project) it works as expected. Click to expand...
ramezaniabbas Active Member Licensed User Jan 24, 2021 #7 LucaMs said: This one! Click to expand... I edited your source code Please reload Attachments ResizeModeTest.zip 149.8 KB · Views: 307 Upvote 1
LucaMs Expert Licensed User Longtime User Jan 24, 2021 #8 ramezaniabbas said: I edited your source code Please reload Click to expand... You made me struggle to compare the two projects, to look for the changes and... it was just this line: B4X: xImageView.Update ? THANK YOU @ramezaniabbas ? Upvote 0
ramezaniabbas said: I edited your source code Please reload Click to expand... You made me struggle to compare the two projects, to look for the changes and... it was just this line: B4X: xImageView.Update ? THANK YOU @ramezaniabbas ?