Hello,
I am attempting to displace an ImageView via the Left property but this has no effect. If I use SetlayoutAnimation it works. But I only need to work on the x axis. Can anyone tell me why .left doesn't work?
B4X:
Private ImageView1 As ImageView
ImageView1.left=500dip 'Not work '
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private Button1 As Button
Private ImageView1 As ImageView
End Sub
Public Sub Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
ImageView1.Left=300
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub