Sub Process_Globals
End Sub
Sub Globals
Dim lbl As Label
Dim btn As Button
Dim b As Boolean
End Sub
Sub Activity_Create(FirstTime As Boolean)
lbl.Initialize("")
Activity.AddView(lbl,40%x,40%y,20%x,20%y)
lbl.Visible = False
lbl.Color = Colors.Yellow
lbl.TextColor = Colors.Black
lbl.Text = "8"
btn.Initialize("btn")
Activity.AddView(btn,40%x,80%y,20%x,10%y)
btn.Text = "Action"
btn.TextSize = btn.Width/6
End Sub
Sub btn_Click
lbl.Visible = True
b = Not(b)
If b Then ' Smaller Text
lbl.TextSize = lbl.Width / 4
Else ' Larger Text
lbl.TextSize = lbl.Width / 2
End If
End Sub/CODE]
Thanks in advance for any suggestions.
Ron
You are right, no need to set the original text size because the Label is hidden at the beginning I missed this.... I didn't think it relevant to set the TextSize initially,...
Sure you can....but perhaps I could send you a compiled version of my program (a .apk file?)
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?