'Activity module
Sub Process_Globals
End Sub
Sub Globals
Dim lv As ListView
Dim sb As SeekBar
Dim lab As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.Color=Colors.yellow
lab.Initialize("lab")
lv.Initialize("lv")
Activity.AddView(lv,10%x,10%y,80%x,50%y)
lv.Color=Colors.black
' attach label to listview
'
'
lab = lv.SingleLineLayout.Label
lab.TextSize = 10
lv.AddSingleLine("Apples")
lab.TextSize = 15
lv.AddSingleLine("Pumpkins")
lab.TextSize = 20
lv.AddSingleLine("Corn")
lab.Invalidate
Lv.Invalidate
activity.Invalidate
'
' set up simple font size slider bar
'
sb.Initialize("sb")
Activity.AddView(sb,10%x,80%y,80%x,10%y)
sb.Max=22 'Max Font Size
sb.Value=11
End Sub
Sub sb_ValueChanged (Value As Int, UserChanged As Boolean)
' Msgbox("You changed the value", "Changed")
lab.Initialize("")
lv.Initialize("")
' lets not go lower than a text size 5
If Value > 6 Then
lab = lv.SingleLineLayout.Label
lab.TextSize = sb.Value
lv.AddSingleLine("FontSizeChanged")
lab.Invalidate
Lv.Invalidate
activity.Invalidate
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub