i am using @Erel 's code for displaying a splashscreen with a transparent logo and an transparent screen:
Allw works fine, but the screen isn't transparent - the .png is !
and
The Sample code works fine !
I am always using paint.net to make pics transparent
B4X:
Sub ShowSplashScreen
Dim sp As Form
sp.Initialize("sp", 600, 600)
sp.SetFormStyle("TRANSPARENT")
sp.BackColor = fx.Colors.Transparent
'change image here
CSSUtils.SetBackgroundImage(sp.RootPane, File.DirAssets, "aLogo.png")
sp.Show
sp.RootPane.Alpha = 0
sp.RootPane.SetAlphaAnimated(500, 1)
Wait For (sp.RootPane) sp_AnimationCompleted
Sleep(3000)
sp.RootPane.SetAlphaAnimated(1000, 0)
Wait For (sp.RootPane) sp_AnimationCompleted
sp.Close
CallSubDelayed(Me, "Splash_Complete")
End Sub
Allw works fine, but the screen isn't transparent - the .png is !
B4X:
sp.SetFormStyle("TRANSPARENT")
sp.BackColor = fx.Colors.Transparent
and
B4X:
sp.RootPane.Alpha = 0
The Sample code works fine !
I am always using paint.net to make pics transparent