我刚开始用Basic4android编程。我已经创建了两个布局。splash和search。我想显示启动布局约2秒,然后自动移动到搜索布局。这是我到目前为止掌握的密码。
Sub Process_Globals
Dim SplashTimer As Timer
End Sub
Sub Activity_Create(FirstTime As Boolean)
SplashTimer.Initialize("SplashTimer", 3000)
SplashTimer.Enabled = True
If FirstTime = True Then
Activity.LoadLayout("splash")
End If
End Sub
Sub SplashTimer_Tick
Activity.LoadLayout("search")
End Sub问题是,即使在3秒后移动到搜索布局,在背景中仍然可以看到splash布局。有人能告诉我如何纠正这个问题吗?
发布于 2012-06-19 18:08:24
您应该将splash布局加载到面板中(使用Panel.LoadLayout),并将面板添加到活动中。
调用Panel.RemoveView删除面板及其布局。
https://stackoverflow.com/questions/11101353
复制相似问题