I am working on moving views, but I do not succeed getting left and top from views added in the Designer.
Here is what I get with Label1 view.
I made sure to generate the member, and to initialize it in Activity_Create.
I added click to Label1, here is what I placed in there. So indeed the program knows about Label1, and implements the click event :
Label1.text does not show, and Label1.Left triggers the following exception :
main_label1_click (B4A line: 121)
Log(Label1.Left)
java.lang.NullPointerException: Attempt to read from field 'int anywheresoftware.b4a.BALayout$LayoutParams.left' on a null object reference
../..
What am I missing ?
Here is what I get with Label1 view.
I made sure to generate the member, and to initialize it in Activity_Create.
I added click to Label1, here is what I placed in there. So indeed the program knows about Label1, and implements the click event :
B4X:
Sub Label1_Click
Log("Label1.Text: " & Label1.Text)
Log(Label1.Left)
End Sub
Label1.text does not show, and Label1.Left triggers the following exception :
main_label1_click (B4A line: 121)
Log(Label1.Left)
java.lang.NullPointerException: Attempt to read from field 'int anywheresoftware.b4a.BALayout$LayoutParams.left' on a null object reference
../..
What am I missing ?