#Region Project Attributes
#ApplicationLabel: BabushkaText
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: landscape
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private bbt1 As BabushkaText
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("main")
Dim myTextToDisplay(6) As String = Array As String("The Bryant Park Hotel" & Chr(10), "#6 of 434 ", "in New York City" & Chr(10), "2487 reviews" & Chr(10), "$540", " per night")
Dim mytextcolor(6) As Int = Array As Int(0xff414141, 0xff0081E2, 0xff969696, 0xff969696, 0xffF7B53F, 0xff969696)
Dim myTypeFace(6) As Int = Array As Int(bbt1.TYPEFACE_BOLD, bbt1.TYPEFACE_ITALIC, bbt1.TYPEFACE_BOLD_ITALIC, bbt1.TYPEFACE_NORMAL, bbt1.TYPEFACE_BOLD_ITALIC, bbt1.TYPEFACE_BOLD)
Dim mySuperScript(6) As Boolean = Array As Boolean(True, False, True, False, True, False)
Dim mySubScript(6) As Boolean = Array As Boolean(False, True, False, False, False, True)
Dim myUnderline(6) As Boolean = Array As Boolean(True, False, True, False, True, False)
Dim myStrikeThrough(6) As Boolean = Array As Boolean(True, True, False, False, True, False)
Dim myTextSize(6) As Int = Array As Int(35, 30, 35, 40, 45, 55)
Dim myTextBackColor(6) As Int = Array As Int(Colors.Red, Colors.Transparent, Colors.Green, Colors.Transparent, Colors.Transparent, Colors.Transparent)
bbt1.TextToDisplay = myTextToDisplay
bbt1.TextToDisplayColor = mytextcolor
bbt1.TextTypeface = myTypeFace
bbt1.SuperScript = mySuperScript
bbt1.SubScript = mySubScript
bbt1.TextUnderline = myUnderline
bbt1.TextStrikeThrough = myStrikeThrough
bbt1.TheTextSize = myTextSize
bbt1.TextBackgroundColor = myTextBackColor
bbt1.ShowText
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub