Afternoon,
I am trying to add "Home", "Settings" and "About" to the bottom of screens in my app. Each of these are .png files and I utilize Transparent but it doesn't appear to be working.
Any ideas?
Thanks,
R
p.s. I was able to make this work in a previous application in 1.9 but not sure why it is not in 2.52.
I am trying to add "Home", "Settings" and "About" to the bottom of screens in my app. Each of these are .png files and I utilize Transparent but it doesn't appear to be working.
B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
StartActivity(disclaim)
hc.Initialize("hc")
Activity.LoadLayout("1")
homeicon.Initialize(File.DirAssets, "homeicon.png")
settingsicon.Initialize(File.DirAssets, "settingsicon.png")
abouticon.Initialize(File.DirAssets, "abouticon.png")
ImageView1.Initialize("")
ImageView2.Initialize("")
ImageView3.Initialize("")
ImageView1.Color = Colors.Transparent
ImageView2.Color = Colors.Transparent
ImageView3.Color = Colors.Transparent
Activity.AddView(ImageView1, 80, 380, 50, 40)
Activity.AddView(ImageView2, 140, 380, 50, 40)
Activity.AddView(ImageView3, 200, 380, 50, 40)
ImageView1.Bitmap = homeicon
ImageView2.Bitmap = settingsicon
ImageView3.Bitmap = abouticon
End If
Any ideas?
Thanks,
R
p.s. I was able to make this work in a previous application in 1.9 but not sure why it is not in 2.52.