How can i add a button to an activity without making a layout file ?
without using this
i tried everything to make the button visable , but no success
any ideas ?
without using this
B4X:
Activity.LoadLayout("Main")
i tried everything to make the button visable , but no success
B4X:
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
End Sub
Sub Globals
Dim test As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
test.Initialize("button")
test.SetLayout(0,0, 50%x, 50%y)
test.Enabled = True
test.Visible = True
test.Color = Colors.Yellow
test.RequestFocus
test.BringToFront
test.Invalidate
test.Text = "terfasf"
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
any ideas ?