#Region Project Attributes
#ApplicationLabel: ImageTextView
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes: ..\resource
#AdditionalRes: C:\Users\----------2\Documents\Basic 4 Android\JOHAN APPS\JHS LIBS\resource\b4a_appcompat, de.amberhome.objects.appcompat
#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\design\res, android.support.design
#ExcludeClasses: .games, .drive, .ads, .fitness, .wearable, .measurement, .cast, .auth, .nearby
#ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .gcm, .maps, .panorama
#Extends: android.support.v7.app.AppCompatActivity
#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 itv1, itv2, itv3, itv4, itv5, itv6 As ImageTextView
Dim mbmd As BitmapDrawable
Dim mbm As Bitmap
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")
itv1.ImageTitle = "Brooke Shields"
itv1.ImageSubTitle = "Actress"
itv1.ImageTitleColor = Colors.Green
itv1.ImageTitleTextSize = 20
itv1.ImageSubTitleColor = Colors.Yellow
itv1.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"brooke.png")
mbmd.Initialize(mbm)
itv1.ImageDrawable = mbmd
itv2.ImageTitle = "Angelina Jolie"
itv2.ImageSubTitle = "Actress"
itv2.ImageTitleColor = Colors.Red
itv2.ImageTitleTextSize = 20
itv2.ImageSubTitleColor = Colors.Blue
itv2.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"angelina.png")
mbmd.Initialize(mbm)
itv2.ImageDrawable = mbmd
itv3.ImageTitle = "Charlize Theron"
itv3.ImageSubTitle = "Actress"
itv3.ImageTitleColor = Colors.Magenta
itv3.ImageTitleTextSize = 20
itv3.ImageSubTitleColor = Colors.Cyan
itv3.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"charlize1.jpg")
mbmd.Initialize(mbm)
itv3.ImageDrawable = mbmd
itv4.ImageTitle = "Unknown woman"
itv4.ImageSubTitle = "Sits at home all day long"
itv4.ImageTitleColor = Colors.Magenta
itv4.ImageTitleTextSize = 20
itv4.ImageSubTitleColor = Colors.Cyan
itv4.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"female.png")
mbmd.Initialize(mbm)
itv4.ImageDrawable = mbmd
itv5.ImageTitle = "Unknown man"
itv5.ImageSubTitle = "Lazy as what you can get"
itv5.ImageTitleColor = Colors.Cyan
itv5.ImageTitleTextSize = 20
itv5.ImageSubTitleColor = Colors.Magenta
itv5.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"male.png")
mbmd.Initialize(mbm)
itv5.ImageDrawable = mbmd
itv6.ImageTitle = "A cat..."
itv6.ImageSubTitle = "...but not my cat"
itv6.ImageTitleColor = Colors.White
itv6.ImageTitleTextSize = 20
itv6.ImageSubTitleColor = Colors.LightGray
itv6.ImageSubTitleTextSize = 15
mbm.Initialize(File.DirAssets,"cat.png")
mbmd.Initialize(mbm)
itv6.ImageDrawable = mbmd
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub