Hi all, i have this simple code:
Now i wait that this
and instead gives me this result:
I have correct result if i write this:
Thanks
Marco
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim segna_punti As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
segna_punti.Initialize("")
segna_punti.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL)
Dim c2 As ColorDrawable
c2.Initialize2(Colors.ARGB(255, 248, 0, 0),10dip,3dip,Colors.Black)
segna_punti.Background = c2
segna_punti.Text = "INDICE DI VENDIBILITA 0%"
segna_punti.TextSize = 16
segna_punti.Typeface = Typeface.DEFAULT_BOLD
segna_punti.TextColor = Colors.Black
Activity.AddView(segna_punti, 0, 70%y, 100%x, 100%y )
End Sub
Now i wait that this
give me this result:Activity.AddView(segna_punti, 0, 70%y, 100%x, 100%y )
and instead gives me this result:
I have correct result if i write this:
It has anything changed ??Activity.AddView(segna_punti, 0, 70%y, 100%x, 30%y )
Thanks
Marco