Android Question [Solved] SetLayoutAnimated - Different behavior between B4J and B4A

LucaMs

Expert
Licensed User
Longtime User
"Same project" (B4XPages):

B4J:
1.gif


B4A:
2.gif
 

Attachments

  • ResizeModeTest.zip
    149.8 KB · Views: 276

Erel

B4X founder
Staff member
Licensed User
Longtime User
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
Top